mirror of
https://github.com/foomo/go-clockify.git
synced 2025-10-16 12:35:40 +00:00
90801 lines
2.9 MiB
90801 lines
2.9 MiB
// Package clockify provides primitives to interact with the openapi HTTP API.
|
|
//
|
|
// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
|
|
package clockify
|
|
|
|
import (
|
|
"bytes"
|
|
"context"
|
|
"encoding/json"
|
|
"fmt"
|
|
"io"
|
|
"net/http"
|
|
"net/url"
|
|
"strings"
|
|
"time"
|
|
|
|
"github.com/oapi-codegen/runtime"
|
|
openapi_types "github.com/oapi-codegen/runtime/types"
|
|
)
|
|
|
|
const (
|
|
AddonKeyAuthScopes = "AddonKeyAuth.Scopes"
|
|
ApiKeyAuthScopes = "ApiKeyAuth.Scopes"
|
|
)
|
|
|
|
// Defines values for ABTestingDtoAbTestingType.
|
|
const (
|
|
UPGRADESCREEN ABTestingDtoAbTestingType = "UPGRADE_SCREEN"
|
|
)
|
|
|
|
// Defines values for ActivateTemplateRequestActivateOption.
|
|
const (
|
|
ADD ActivateTemplateRequestActivateOption = "ADD"
|
|
REPLACE ActivateTemplateRequestActivateOption = "REPLACE"
|
|
SKIP ActivateTemplateRequestActivateOption = "SKIP"
|
|
)
|
|
|
|
// Defines values for AddonComponentDtoAccessLevel.
|
|
const (
|
|
AddonComponentDtoAccessLevelADMINS AddonComponentDtoAccessLevel = "ADMINS"
|
|
AddonComponentDtoAccessLevelEVERYONE AddonComponentDtoAccessLevel = "EVERYONE"
|
|
)
|
|
|
|
// Defines values for AddonDtoMinimalSubscriptionPlan.
|
|
const (
|
|
AddonDtoMinimalSubscriptionPlanBASIC AddonDtoMinimalSubscriptionPlan = "BASIC"
|
|
AddonDtoMinimalSubscriptionPlanENTERPRISE AddonDtoMinimalSubscriptionPlan = "ENTERPRISE"
|
|
AddonDtoMinimalSubscriptionPlanFREE AddonDtoMinimalSubscriptionPlan = "FREE"
|
|
AddonDtoMinimalSubscriptionPlanPRO AddonDtoMinimalSubscriptionPlan = "PRO"
|
|
AddonDtoMinimalSubscriptionPlanSTANDARD AddonDtoMinimalSubscriptionPlan = "STANDARD"
|
|
)
|
|
|
|
// Defines values for AddonDtoStatus.
|
|
const (
|
|
AddonDtoStatusACTIVE AddonDtoStatus = "ACTIVE"
|
|
AddonDtoStatusINACTIVE AddonDtoStatus = "INACTIVE"
|
|
)
|
|
|
|
// Defines values for AddonSettingDtoType.
|
|
const (
|
|
AddonSettingDtoTypeCHECKBOX AddonSettingDtoType = "CHECKBOX"
|
|
AddonSettingDtoTypeDROPDOWNMULTIPLE AddonSettingDtoType = "DROPDOWN_MULTIPLE"
|
|
AddonSettingDtoTypeDROPDOWNSINGLE AddonSettingDtoType = "DROPDOWN_SINGLE"
|
|
AddonSettingDtoTypeLINK AddonSettingDtoType = "LINK"
|
|
AddonSettingDtoTypeNUMBER AddonSettingDtoType = "NUMBER"
|
|
AddonSettingDtoTypeTXT AddonSettingDtoType = "TXT"
|
|
AddonSettingDtoTypeUSERDROPDOWNMULTIPLE AddonSettingDtoType = "USER_DROPDOWN_MULTIPLE"
|
|
AddonSettingDtoTypeUSERDROPDOWNSINGLE AddonSettingDtoType = "USER_DROPDOWN_SINGLE"
|
|
)
|
|
|
|
// Defines values for AddonUpdateStatusRequestStatus.
|
|
const (
|
|
AddonUpdateStatusRequestStatusACTIVE AddonUpdateStatusRequestStatus = "ACTIVE"
|
|
AddonUpdateStatusRequestStatusINACTIVE AddonUpdateStatusRequestStatus = "INACTIVE"
|
|
)
|
|
|
|
// Defines values for AlertDtoAlertPerson.
|
|
const (
|
|
AlertDtoAlertPersonPROJECTMANAGER AlertDtoAlertPerson = "PROJECT_MANAGER"
|
|
AlertDtoAlertPersonTEAMMEMBERS AlertDtoAlertPerson = "TEAM_MEMBERS"
|
|
AlertDtoAlertPersonWORKSPACEADMIN AlertDtoAlertPerson = "WORKSPACE_ADMIN"
|
|
)
|
|
|
|
// Defines values for AlertDtoAlertType.
|
|
const (
|
|
AlertDtoAlertTypePROJECT AlertDtoAlertType = "PROJECT"
|
|
AlertDtoAlertTypeTASK AlertDtoAlertType = "TASK"
|
|
)
|
|
|
|
// Defines values for ApprovalGroupItemDtoApprovalState.
|
|
const (
|
|
ApprovalGroupItemDtoApprovalStateAPPROVED ApprovalGroupItemDtoApprovalState = "APPROVED"
|
|
ApprovalGroupItemDtoApprovalStatePENDING ApprovalGroupItemDtoApprovalState = "PENDING"
|
|
ApprovalGroupItemDtoApprovalStateREJECTED ApprovalGroupItemDtoApprovalState = "REJECTED"
|
|
ApprovalGroupItemDtoApprovalStateWITHDRAWNAPPROVAL ApprovalGroupItemDtoApprovalState = "WITHDRAWN_APPROVAL"
|
|
ApprovalGroupItemDtoApprovalStateWITHDRAWNSUBMISSION ApprovalGroupItemDtoApprovalState = "WITHDRAWN_SUBMISSION"
|
|
)
|
|
|
|
// Defines values for ApprovalRequestDtoApprovalStatuses.
|
|
const (
|
|
ApprovalRequestDtoApprovalStatusesAPPROVED ApprovalRequestDtoApprovalStatuses = "APPROVED"
|
|
ApprovalRequestDtoApprovalStatusesPENDING ApprovalRequestDtoApprovalStatuses = "PENDING"
|
|
ApprovalRequestDtoApprovalStatusesUNSUBMITTED ApprovalRequestDtoApprovalStatuses = "UNSUBMITTED"
|
|
)
|
|
|
|
// Defines values for ApprovalSettingsApprovalPeriod.
|
|
const (
|
|
ApprovalSettingsApprovalPeriodMONTHLY ApprovalSettingsApprovalPeriod = "MONTHLY"
|
|
ApprovalSettingsApprovalPeriodSEMIMONTHLY ApprovalSettingsApprovalPeriod = "SEMI_MONTHLY"
|
|
ApprovalSettingsApprovalPeriodWEEKLY ApprovalSettingsApprovalPeriod = "WEEKLY"
|
|
)
|
|
|
|
// Defines values for ApprovalSettingsApprovalRoles.
|
|
const (
|
|
ApprovalSettingsApprovalRolesADMIN ApprovalSettingsApprovalRoles = "ADMIN"
|
|
ApprovalSettingsApprovalRolesPROJECTMANAGER ApprovalSettingsApprovalRoles = "PROJECT_MANAGER"
|
|
ApprovalSettingsApprovalRolesTEAMMANAGER ApprovalSettingsApprovalRoles = "TEAM_MANAGER"
|
|
)
|
|
|
|
// Defines values for AssignmentPeriodRequestSeriesUpdateOption.
|
|
const (
|
|
AssignmentPeriodRequestSeriesUpdateOptionALL AssignmentPeriodRequestSeriesUpdateOption = "ALL"
|
|
AssignmentPeriodRequestSeriesUpdateOptionTHISANDFOLLOWING AssignmentPeriodRequestSeriesUpdateOption = "THIS_AND_FOLLOWING"
|
|
AssignmentPeriodRequestSeriesUpdateOptionTHISONE AssignmentPeriodRequestSeriesUpdateOption = "THIS_ONE"
|
|
)
|
|
|
|
// Defines values for AssignmentUpdateRequestSeriesUpdateOption.
|
|
const (
|
|
AssignmentUpdateRequestSeriesUpdateOptionALL AssignmentUpdateRequestSeriesUpdateOption = "ALL"
|
|
AssignmentUpdateRequestSeriesUpdateOptionTHISANDFOLLOWING AssignmentUpdateRequestSeriesUpdateOption = "THIS_AND_FOLLOWING"
|
|
AssignmentUpdateRequestSeriesUpdateOptionTHISONE AssignmentUpdateRequestSeriesUpdateOption = "THIS_ONE"
|
|
)
|
|
|
|
// Defines values for AuthDtoRoles.
|
|
const (
|
|
AuthDtoRolesADMIN AuthDtoRoles = "ADMIN"
|
|
AuthDtoRolesBILLING AuthDtoRoles = "BILLING"
|
|
AuthDtoRolesMANAGER AuthDtoRoles = "MANAGER"
|
|
AuthDtoRolesNOTIFIER AuthDtoRoles = "NOTIFIER"
|
|
AuthDtoRolesSALESADMIN AuthDtoRoles = "SALES_ADMIN"
|
|
AuthDtoRolesSALESAGENT AuthDtoRoles = "SALES_AGENT"
|
|
AuthDtoRolesSALESPANEL AuthDtoRoles = "SALES_PANEL"
|
|
AuthDtoRolesSUPPORTAGENT AuthDtoRoles = "SUPPORT_AGENT"
|
|
AuthDtoRolesUSER AuthDtoRoles = "USER"
|
|
)
|
|
|
|
// Defines values for AuthDtoStatus.
|
|
const (
|
|
AuthDtoStatusACTIVE AuthDtoStatus = "ACTIVE"
|
|
AuthDtoStatusDELETED AuthDtoStatus = "DELETED"
|
|
AuthDtoStatusLIMITED AuthDtoStatus = "LIMITED"
|
|
AuthDtoStatusLIMITEDDELETED AuthDtoStatus = "LIMITED_DELETED"
|
|
AuthDtoStatusNOTREGISTERED AuthDtoStatus = "NOT_REGISTERED"
|
|
AuthDtoStatusPENDINGEMAILVERIFICATION AuthDtoStatus = "PENDING_EMAIL_VERIFICATION"
|
|
)
|
|
|
|
// Defines values for AuthorizationSourceDtoType.
|
|
const (
|
|
AuthorizationSourceDtoTypeUSERGROUP AuthorizationSourceDtoType = "USER_GROUP"
|
|
)
|
|
|
|
// Defines values for AutomaticAccrualDtoPeriod.
|
|
const (
|
|
AutomaticAccrualDtoPeriodMONTH AutomaticAccrualDtoPeriod = "MONTH"
|
|
AutomaticAccrualDtoPeriodYEAR AutomaticAccrualDtoPeriod = "YEAR"
|
|
)
|
|
|
|
// Defines values for AutomaticAccrualDtoTimeUnit.
|
|
const (
|
|
AutomaticAccrualDtoTimeUnitDAYS AutomaticAccrualDtoTimeUnit = "DAYS"
|
|
AutomaticAccrualDtoTimeUnitHOURS AutomaticAccrualDtoTimeUnit = "HOURS"
|
|
)
|
|
|
|
// Defines values for AutomaticAccrualRequestPeriod.
|
|
const (
|
|
AutomaticAccrualRequestPeriodMONTH AutomaticAccrualRequestPeriod = "MONTH"
|
|
AutomaticAccrualRequestPeriodYEAR AutomaticAccrualRequestPeriod = "YEAR"
|
|
)
|
|
|
|
// Defines values for AutomaticAccrualRequestTimeUnit.
|
|
const (
|
|
AutomaticAccrualRequestTimeUnitDAYS AutomaticAccrualRequestTimeUnit = "DAYS"
|
|
AutomaticAccrualRequestTimeUnitHOURS AutomaticAccrualRequestTimeUnit = "HOURS"
|
|
)
|
|
|
|
// Defines values for AutomaticLockDtoChangeDay.
|
|
const (
|
|
AutomaticLockDtoChangeDayFRIDAY AutomaticLockDtoChangeDay = "FRIDAY"
|
|
AutomaticLockDtoChangeDayMONDAY AutomaticLockDtoChangeDay = "MONDAY"
|
|
AutomaticLockDtoChangeDaySATURDAY AutomaticLockDtoChangeDay = "SATURDAY"
|
|
AutomaticLockDtoChangeDaySUNDAY AutomaticLockDtoChangeDay = "SUNDAY"
|
|
AutomaticLockDtoChangeDayTHURSDAY AutomaticLockDtoChangeDay = "THURSDAY"
|
|
AutomaticLockDtoChangeDayTUESDAY AutomaticLockDtoChangeDay = "TUESDAY"
|
|
AutomaticLockDtoChangeDayWEDNESDAY AutomaticLockDtoChangeDay = "WEDNESDAY"
|
|
)
|
|
|
|
// Defines values for AutomaticLockDtoFirstDay.
|
|
const (
|
|
AutomaticLockDtoFirstDayFRIDAY AutomaticLockDtoFirstDay = "FRIDAY"
|
|
AutomaticLockDtoFirstDayMONDAY AutomaticLockDtoFirstDay = "MONDAY"
|
|
AutomaticLockDtoFirstDaySATURDAY AutomaticLockDtoFirstDay = "SATURDAY"
|
|
AutomaticLockDtoFirstDaySUNDAY AutomaticLockDtoFirstDay = "SUNDAY"
|
|
AutomaticLockDtoFirstDayTHURSDAY AutomaticLockDtoFirstDay = "THURSDAY"
|
|
AutomaticLockDtoFirstDayTUESDAY AutomaticLockDtoFirstDay = "TUESDAY"
|
|
AutomaticLockDtoFirstDayWEDNESDAY AutomaticLockDtoFirstDay = "WEDNESDAY"
|
|
)
|
|
|
|
// Defines values for AutomaticLockDtoOlderThanPeriod.
|
|
const (
|
|
AutomaticLockDtoOlderThanPeriodDAYS AutomaticLockDtoOlderThanPeriod = "DAYS"
|
|
AutomaticLockDtoOlderThanPeriodMONTHS AutomaticLockDtoOlderThanPeriod = "MONTHS"
|
|
AutomaticLockDtoOlderThanPeriodWEEKS AutomaticLockDtoOlderThanPeriod = "WEEKS"
|
|
)
|
|
|
|
// Defines values for AutomaticLockDtoType.
|
|
const (
|
|
AutomaticLockDtoTypeMONTHLY AutomaticLockDtoType = "MONTHLY"
|
|
AutomaticLockDtoTypeOLDERTHAN AutomaticLockDtoType = "OLDER_THAN"
|
|
AutomaticLockDtoTypeWEEKLY AutomaticLockDtoType = "WEEKLY"
|
|
)
|
|
|
|
// Defines values for BalanceHistoryDtoAction.
|
|
const (
|
|
BalanceHistoryDtoActionAPPROVED BalanceHistoryDtoAction = "APPROVED"
|
|
BalanceHistoryDtoActionAUTOMATIC BalanceHistoryDtoAction = "AUTOMATIC"
|
|
BalanceHistoryDtoActionAUTOMATICAPPROVAL BalanceHistoryDtoAction = "AUTOMATIC_APPROVAL"
|
|
BalanceHistoryDtoActionMANUAL BalanceHistoryDtoAction = "MANUAL"
|
|
BalanceHistoryDtoActionPENDING BalanceHistoryDtoAction = "PENDING"
|
|
BalanceHistoryDtoActionREJECTED BalanceHistoryDtoAction = "REJECTED"
|
|
BalanceHistoryDtoActionWITHDRAWN BalanceHistoryDtoAction = "WITHDRAWN"
|
|
)
|
|
|
|
// Defines values for BalanceHistoryDtoTimeUnit.
|
|
const (
|
|
BalanceHistoryDtoTimeUnitDAYS BalanceHistoryDtoTimeUnit = "DAYS"
|
|
BalanceHistoryDtoTimeUnitHOURS BalanceHistoryDtoTimeUnit = "HOURS"
|
|
)
|
|
|
|
// Defines values for BillingInformationDtoNextSubscriptionType.
|
|
const (
|
|
BillingInformationDtoNextSubscriptionTypeBASIC2021 BillingInformationDtoNextSubscriptionType = "BASIC_2021"
|
|
BillingInformationDtoNextSubscriptionTypeBASICYEAR2021 BillingInformationDtoNextSubscriptionType = "BASIC_YEAR_2021"
|
|
BillingInformationDtoNextSubscriptionTypeBUNDLE2024 BillingInformationDtoNextSubscriptionType = "BUNDLE_2024"
|
|
BillingInformationDtoNextSubscriptionTypeBUNDLEYEAR2024 BillingInformationDtoNextSubscriptionType = "BUNDLE_YEAR_2024"
|
|
BillingInformationDtoNextSubscriptionTypeENTERPRISE BillingInformationDtoNextSubscriptionType = "ENTERPRISE"
|
|
BillingInformationDtoNextSubscriptionTypeENTERPRISE2021 BillingInformationDtoNextSubscriptionType = "ENTERPRISE_2021"
|
|
BillingInformationDtoNextSubscriptionTypeENTERPRISEYEAR BillingInformationDtoNextSubscriptionType = "ENTERPRISE_YEAR"
|
|
BillingInformationDtoNextSubscriptionTypeENTERPRISEYEAR2021 BillingInformationDtoNextSubscriptionType = "ENTERPRISE_YEAR_2021"
|
|
BillingInformationDtoNextSubscriptionTypeFREE BillingInformationDtoNextSubscriptionType = "FREE"
|
|
BillingInformationDtoNextSubscriptionTypePREMIUM BillingInformationDtoNextSubscriptionType = "PREMIUM"
|
|
BillingInformationDtoNextSubscriptionTypePREMIUMYEAR BillingInformationDtoNextSubscriptionType = "PREMIUM_YEAR"
|
|
BillingInformationDtoNextSubscriptionTypePRO2021 BillingInformationDtoNextSubscriptionType = "PRO_2021"
|
|
BillingInformationDtoNextSubscriptionTypePROYEAR2021 BillingInformationDtoNextSubscriptionType = "PRO_YEAR_2021"
|
|
BillingInformationDtoNextSubscriptionTypeSELFHOSTED BillingInformationDtoNextSubscriptionType = "SELF_HOSTED"
|
|
BillingInformationDtoNextSubscriptionTypeSPECIAL BillingInformationDtoNextSubscriptionType = "SPECIAL"
|
|
BillingInformationDtoNextSubscriptionTypeSPECIALYEAR BillingInformationDtoNextSubscriptionType = "SPECIAL_YEAR"
|
|
BillingInformationDtoNextSubscriptionTypeSTANDARD2021 BillingInformationDtoNextSubscriptionType = "STANDARD_2021"
|
|
BillingInformationDtoNextSubscriptionTypeSTANDARDYEAR2021 BillingInformationDtoNextSubscriptionType = "STANDARD_YEAR_2021"
|
|
BillingInformationDtoNextSubscriptionTypeTRIAL BillingInformationDtoNextSubscriptionType = "TRIAL"
|
|
)
|
|
|
|
// Defines values for BillingInformationDtoType.
|
|
const (
|
|
BillingInformationDtoTypeBASIC2021 BillingInformationDtoType = "BASIC_2021"
|
|
BillingInformationDtoTypeBASICYEAR2021 BillingInformationDtoType = "BASIC_YEAR_2021"
|
|
BillingInformationDtoTypeBUNDLE2024 BillingInformationDtoType = "BUNDLE_2024"
|
|
BillingInformationDtoTypeBUNDLEYEAR2024 BillingInformationDtoType = "BUNDLE_YEAR_2024"
|
|
BillingInformationDtoTypeENTERPRISE BillingInformationDtoType = "ENTERPRISE"
|
|
BillingInformationDtoTypeENTERPRISE2021 BillingInformationDtoType = "ENTERPRISE_2021"
|
|
BillingInformationDtoTypeENTERPRISEYEAR BillingInformationDtoType = "ENTERPRISE_YEAR"
|
|
BillingInformationDtoTypeENTERPRISEYEAR2021 BillingInformationDtoType = "ENTERPRISE_YEAR_2021"
|
|
BillingInformationDtoTypeFREE BillingInformationDtoType = "FREE"
|
|
BillingInformationDtoTypePREMIUM BillingInformationDtoType = "PREMIUM"
|
|
BillingInformationDtoTypePREMIUMYEAR BillingInformationDtoType = "PREMIUM_YEAR"
|
|
BillingInformationDtoTypePRO2021 BillingInformationDtoType = "PRO_2021"
|
|
BillingInformationDtoTypePROYEAR2021 BillingInformationDtoType = "PRO_YEAR_2021"
|
|
BillingInformationDtoTypeSELFHOSTED BillingInformationDtoType = "SELF_HOSTED"
|
|
BillingInformationDtoTypeSPECIAL BillingInformationDtoType = "SPECIAL"
|
|
BillingInformationDtoTypeSPECIALYEAR BillingInformationDtoType = "SPECIAL_YEAR"
|
|
BillingInformationDtoTypeSTANDARD2021 BillingInformationDtoType = "STANDARD_2021"
|
|
BillingInformationDtoTypeSTANDARDYEAR2021 BillingInformationDtoType = "STANDARD_YEAR_2021"
|
|
BillingInformationDtoTypeTRIAL BillingInformationDtoType = "TRIAL"
|
|
)
|
|
|
|
// Defines values for ChangeInvoiceStatusRequestInvoiceStatus.
|
|
const (
|
|
ChangeInvoiceStatusRequestInvoiceStatusOVERDUE ChangeInvoiceStatusRequestInvoiceStatus = "OVERDUE"
|
|
ChangeInvoiceStatusRequestInvoiceStatusPAID ChangeInvoiceStatusRequestInvoiceStatus = "PAID"
|
|
ChangeInvoiceStatusRequestInvoiceStatusPARTIALLYPAID ChangeInvoiceStatusRequestInvoiceStatus = "PARTIALLY_PAID"
|
|
ChangeInvoiceStatusRequestInvoiceStatusSENT ChangeInvoiceStatusRequestInvoiceStatus = "SENT"
|
|
ChangeInvoiceStatusRequestInvoiceStatusUNSENT ChangeInvoiceStatusRequestInvoiceStatus = "UNSENT"
|
|
ChangeInvoiceStatusRequestInvoiceStatusVOID ChangeInvoiceStatusRequestInvoiceStatus = "VOID"
|
|
)
|
|
|
|
// Defines values for ContainsArchivedFilterRequestContains.
|
|
const (
|
|
ContainsArchivedFilterRequestContainsCONTAINS ContainsArchivedFilterRequestContains = "CONTAINS"
|
|
ContainsArchivedFilterRequestContainsCONTAINSONLY ContainsArchivedFilterRequestContains = "CONTAINS_ONLY"
|
|
ContainsArchivedFilterRequestContainsDOESNOTCONTAIN ContainsArchivedFilterRequestContains = "DOES_NOT_CONTAIN"
|
|
)
|
|
|
|
// Defines values for ContainsArchivedFilterRequestStatus.
|
|
const (
|
|
ContainsArchivedFilterRequestStatusACTIVE ContainsArchivedFilterRequestStatus = "ACTIVE"
|
|
ContainsArchivedFilterRequestStatusALL ContainsArchivedFilterRequestStatus = "ALL"
|
|
ContainsArchivedFilterRequestStatusDECLINED ContainsArchivedFilterRequestStatus = "DECLINED"
|
|
ContainsArchivedFilterRequestStatusINACTIVE ContainsArchivedFilterRequestStatus = "INACTIVE"
|
|
ContainsArchivedFilterRequestStatusPENDING ContainsArchivedFilterRequestStatus = "PENDING"
|
|
)
|
|
|
|
// Defines values for ContainsClientsFilterRequestContains.
|
|
const (
|
|
ContainsClientsFilterRequestContainsCONTAINS ContainsClientsFilterRequestContains = "CONTAINS"
|
|
ContainsClientsFilterRequestContainsCONTAINSONLY ContainsClientsFilterRequestContains = "CONTAINS_ONLY"
|
|
ContainsClientsFilterRequestContainsDOESNOTCONTAIN ContainsClientsFilterRequestContains = "DOES_NOT_CONTAIN"
|
|
)
|
|
|
|
// Defines values for ContainsClientsFilterRequestStatus.
|
|
const (
|
|
ContainsClientsFilterRequestStatusACTIVE ContainsClientsFilterRequestStatus = "ACTIVE"
|
|
ContainsClientsFilterRequestStatusALL ContainsClientsFilterRequestStatus = "ALL"
|
|
ContainsClientsFilterRequestStatusDECLINED ContainsClientsFilterRequestStatus = "DECLINED"
|
|
ContainsClientsFilterRequestStatusINACTIVE ContainsClientsFilterRequestStatus = "INACTIVE"
|
|
ContainsClientsFilterRequestStatusPENDING ContainsClientsFilterRequestStatus = "PENDING"
|
|
)
|
|
|
|
// Defines values for ContainsCompaniesFilterRequestContains.
|
|
const (
|
|
ContainsCompaniesFilterRequestContainsCONTAINS ContainsCompaniesFilterRequestContains = "CONTAINS"
|
|
ContainsCompaniesFilterRequestContainsCONTAINSONLY ContainsCompaniesFilterRequestContains = "CONTAINS_ONLY"
|
|
ContainsCompaniesFilterRequestContainsDOESNOTCONTAIN ContainsCompaniesFilterRequestContains = "DOES_NOT_CONTAIN"
|
|
)
|
|
|
|
// Defines values for ContainsCompaniesFilterRequestStatus.
|
|
const (
|
|
ContainsCompaniesFilterRequestStatusACTIVE ContainsCompaniesFilterRequestStatus = "ACTIVE"
|
|
ContainsCompaniesFilterRequestStatusALL ContainsCompaniesFilterRequestStatus = "ALL"
|
|
ContainsCompaniesFilterRequestStatusDECLINED ContainsCompaniesFilterRequestStatus = "DECLINED"
|
|
ContainsCompaniesFilterRequestStatusINACTIVE ContainsCompaniesFilterRequestStatus = "INACTIVE"
|
|
ContainsCompaniesFilterRequestStatusPENDING ContainsCompaniesFilterRequestStatus = "PENDING"
|
|
)
|
|
|
|
// Defines values for ContainsFilterRequestContains.
|
|
const (
|
|
ContainsFilterRequestContainsCONTAINS ContainsFilterRequestContains = "CONTAINS"
|
|
ContainsFilterRequestContainsDOESNOTCONTAIN ContainsFilterRequestContains = "DOES_NOT_CONTAIN"
|
|
)
|
|
|
|
// Defines values for ContainsFilterRequestStatus.
|
|
const (
|
|
ContainsFilterRequestStatusACTIVE ContainsFilterRequestStatus = "ACTIVE"
|
|
ContainsFilterRequestStatusALL ContainsFilterRequestStatus = "ALL"
|
|
ContainsFilterRequestStatusINACTIVE ContainsFilterRequestStatus = "INACTIVE"
|
|
)
|
|
|
|
// Defines values for ContainsProjectsFilterRequestContains.
|
|
const (
|
|
ContainsProjectsFilterRequestContainsCONTAINS ContainsProjectsFilterRequestContains = "CONTAINS"
|
|
ContainsProjectsFilterRequestContainsCONTAINSONLY ContainsProjectsFilterRequestContains = "CONTAINS_ONLY"
|
|
ContainsProjectsFilterRequestContainsDOESNOTCONTAIN ContainsProjectsFilterRequestContains = "DOES_NOT_CONTAIN"
|
|
)
|
|
|
|
// Defines values for ContainsProjectsFilterRequestStatus.
|
|
const (
|
|
ContainsProjectsFilterRequestStatusACTIVE ContainsProjectsFilterRequestStatus = "ACTIVE"
|
|
ContainsProjectsFilterRequestStatusALL ContainsProjectsFilterRequestStatus = "ALL"
|
|
ContainsProjectsFilterRequestStatusDECLINED ContainsProjectsFilterRequestStatus = "DECLINED"
|
|
ContainsProjectsFilterRequestStatusINACTIVE ContainsProjectsFilterRequestStatus = "INACTIVE"
|
|
ContainsProjectsFilterRequestStatusPENDING ContainsProjectsFilterRequestStatus = "PENDING"
|
|
)
|
|
|
|
// Defines values for ContainsUserGroupFilterRequestContains.
|
|
const (
|
|
ContainsUserGroupFilterRequestContainsCONTAINS ContainsUserGroupFilterRequestContains = "CONTAINS"
|
|
ContainsUserGroupFilterRequestContainsCONTAINSONLY ContainsUserGroupFilterRequestContains = "CONTAINS_ONLY"
|
|
ContainsUserGroupFilterRequestContainsDOESNOTCONTAIN ContainsUserGroupFilterRequestContains = "DOES_NOT_CONTAIN"
|
|
)
|
|
|
|
// Defines values for ContainsUserGroupFilterRequestStatus.
|
|
const (
|
|
ContainsUserGroupFilterRequestStatusACTIVE ContainsUserGroupFilterRequestStatus = "ACTIVE"
|
|
ContainsUserGroupFilterRequestStatusALL ContainsUserGroupFilterRequestStatus = "ALL"
|
|
ContainsUserGroupFilterRequestStatusDECLINED ContainsUserGroupFilterRequestStatus = "DECLINED"
|
|
ContainsUserGroupFilterRequestStatusINACTIVE ContainsUserGroupFilterRequestStatus = "INACTIVE"
|
|
ContainsUserGroupFilterRequestStatusPENDING ContainsUserGroupFilterRequestStatus = "PENDING"
|
|
)
|
|
|
|
// Defines values for ContainsUsersFilterRequestContains.
|
|
const (
|
|
ContainsUsersFilterRequestContainsCONTAINS ContainsUsersFilterRequestContains = "CONTAINS"
|
|
ContainsUsersFilterRequestContainsCONTAINSONLY ContainsUsersFilterRequestContains = "CONTAINS_ONLY"
|
|
ContainsUsersFilterRequestContainsDOESNOTCONTAIN ContainsUsersFilterRequestContains = "DOES_NOT_CONTAIN"
|
|
)
|
|
|
|
// Defines values for ContainsUsersFilterRequestSourceType.
|
|
const (
|
|
ContainsUsersFilterRequestSourceTypeUSERGROUP ContainsUsersFilterRequestSourceType = "USER_GROUP"
|
|
)
|
|
|
|
// Defines values for ContainsUsersFilterRequestStatus.
|
|
const (
|
|
ContainsUsersFilterRequestStatusACTIVE ContainsUsersFilterRequestStatus = "ACTIVE"
|
|
ContainsUsersFilterRequestStatusALL ContainsUsersFilterRequestStatus = "ALL"
|
|
ContainsUsersFilterRequestStatusDECLINED ContainsUsersFilterRequestStatus = "DECLINED"
|
|
ContainsUsersFilterRequestStatusINACTIVE ContainsUsersFilterRequestStatus = "INACTIVE"
|
|
ContainsUsersFilterRequestStatusPENDING ContainsUsersFilterRequestStatus = "PENDING"
|
|
)
|
|
|
|
// Defines values for ContainsUsersFilterRequestStatuses.
|
|
const (
|
|
ContainsUsersFilterRequestStatusesACTIVE ContainsUsersFilterRequestStatuses = "ACTIVE"
|
|
ContainsUsersFilterRequestStatusesALL ContainsUsersFilterRequestStatuses = "ALL"
|
|
ContainsUsersFilterRequestStatusesDECLINED ContainsUsersFilterRequestStatuses = "DECLINED"
|
|
ContainsUsersFilterRequestStatusesINACTIVE ContainsUsersFilterRequestStatuses = "INACTIVE"
|
|
ContainsUsersFilterRequestStatusesPENDING ContainsUsersFilterRequestStatuses = "PENDING"
|
|
)
|
|
|
|
// Defines values for ContainsUsersFilterRequestForHolidayContains.
|
|
const (
|
|
ContainsUsersFilterRequestForHolidayContainsCONTAINS ContainsUsersFilterRequestForHolidayContains = "CONTAINS"
|
|
ContainsUsersFilterRequestForHolidayContainsCONTAINSONLY ContainsUsersFilterRequestForHolidayContains = "CONTAINS_ONLY"
|
|
ContainsUsersFilterRequestForHolidayContainsDOESNOTCONTAIN ContainsUsersFilterRequestForHolidayContains = "DOES_NOT_CONTAIN"
|
|
)
|
|
|
|
// Defines values for ContainsUsersFilterRequestForHolidayStatus.
|
|
const (
|
|
ContainsUsersFilterRequestForHolidayStatusACTIVE ContainsUsersFilterRequestForHolidayStatus = "ACTIVE"
|
|
ContainsUsersFilterRequestForHolidayStatusALL ContainsUsersFilterRequestForHolidayStatus = "ALL"
|
|
ContainsUsersFilterRequestForHolidayStatusDECLINED ContainsUsersFilterRequestForHolidayStatus = "DECLINED"
|
|
ContainsUsersFilterRequestForHolidayStatusINACTIVE ContainsUsersFilterRequestForHolidayStatus = "INACTIVE"
|
|
ContainsUsersFilterRequestForHolidayStatusPENDING ContainsUsersFilterRequestForHolidayStatus = "PENDING"
|
|
)
|
|
|
|
// Defines values for CopyAssignmentRequestSeriesUpdateOption.
|
|
const (
|
|
CopyAssignmentRequestSeriesUpdateOptionALL CopyAssignmentRequestSeriesUpdateOption = "ALL"
|
|
CopyAssignmentRequestSeriesUpdateOptionTHISANDFOLLOWING CopyAssignmentRequestSeriesUpdateOption = "THIS_AND_FOLLOWING"
|
|
CopyAssignmentRequestSeriesUpdateOptionTHISONE CopyAssignmentRequestSeriesUpdateOption = "THIS_ONE"
|
|
)
|
|
|
|
// Defines values for CreateAlertRequestAlertPerson.
|
|
const (
|
|
CreateAlertRequestAlertPersonPROJECTMANAGER CreateAlertRequestAlertPerson = "PROJECT_MANAGER"
|
|
CreateAlertRequestAlertPersonTEAMMEMBERS CreateAlertRequestAlertPerson = "TEAM_MEMBERS"
|
|
CreateAlertRequestAlertPersonWORKSPACEADMIN CreateAlertRequestAlertPerson = "WORKSPACE_ADMIN"
|
|
)
|
|
|
|
// Defines values for CreateAlertRequestAlertType.
|
|
const (
|
|
CreateAlertRequestAlertTypePROJECT CreateAlertRequestAlertType = "PROJECT"
|
|
CreateAlertRequestAlertTypeTASK CreateAlertRequestAlertType = "TASK"
|
|
)
|
|
|
|
// Defines values for CreateApprovalRequestPeriod.
|
|
const (
|
|
CreateApprovalRequestPeriodMONTHLY CreateApprovalRequestPeriod = "MONTHLY"
|
|
CreateApprovalRequestPeriodSEMIMONTHLY CreateApprovalRequestPeriod = "SEMI_MONTHLY"
|
|
CreateApprovalRequestPeriodWEEKLY CreateApprovalRequestPeriod = "WEEKLY"
|
|
)
|
|
|
|
// Defines values for CreateFavoriteEntriesRequestType.
|
|
const (
|
|
CreateFavoriteEntriesRequestTypeBREAK CreateFavoriteEntriesRequestType = "BREAK"
|
|
CreateFavoriteEntriesRequestTypeHOLIDAY CreateFavoriteEntriesRequestType = "HOLIDAY"
|
|
CreateFavoriteEntriesRequestTypeREGULAR CreateFavoriteEntriesRequestType = "REGULAR"
|
|
CreateFavoriteEntriesRequestTypeTIMEOFF CreateFavoriteEntriesRequestType = "TIME_OFF"
|
|
)
|
|
|
|
// Defines values for CreateReminderRequestDateRange.
|
|
const (
|
|
CreateReminderRequestDateRangeDAY CreateReminderRequestDateRange = "DAY"
|
|
CreateReminderRequestDateRangeMONTH CreateReminderRequestDateRange = "MONTH"
|
|
CreateReminderRequestDateRangeWEEK CreateReminderRequestDateRange = "WEEK"
|
|
)
|
|
|
|
// Defines values for CustomFieldProjectDefaultValuesRequestStatus.
|
|
const (
|
|
CustomFieldProjectDefaultValuesRequestStatusINACTIVE CustomFieldProjectDefaultValuesRequestStatus = "INACTIVE"
|
|
CustomFieldProjectDefaultValuesRequestStatusINVISIBLE CustomFieldProjectDefaultValuesRequestStatus = "INVISIBLE"
|
|
CustomFieldProjectDefaultValuesRequestStatusVISIBLE CustomFieldProjectDefaultValuesRequestStatus = "VISIBLE"
|
|
)
|
|
|
|
// Defines values for CustomFieldRequestStatus.
|
|
const (
|
|
CustomFieldRequestStatusINACTIVE CustomFieldRequestStatus = "INACTIVE"
|
|
CustomFieldRequestStatusINVISIBLE CustomFieldRequestStatus = "INVISIBLE"
|
|
CustomFieldRequestStatusVISIBLE CustomFieldRequestStatus = "VISIBLE"
|
|
)
|
|
|
|
// Defines values for CustomFieldRequestType.
|
|
const (
|
|
CustomFieldRequestTypeCHECKBOX CustomFieldRequestType = "CHECKBOX"
|
|
CustomFieldRequestTypeDROPDOWNMULTIPLE CustomFieldRequestType = "DROPDOWN_MULTIPLE"
|
|
CustomFieldRequestTypeDROPDOWNSINGLE CustomFieldRequestType = "DROPDOWN_SINGLE"
|
|
CustomFieldRequestTypeLINK CustomFieldRequestType = "LINK"
|
|
CustomFieldRequestTypeNUMBER CustomFieldRequestType = "NUMBER"
|
|
CustomFieldRequestTypeTXT CustomFieldRequestType = "TXT"
|
|
)
|
|
|
|
// Defines values for CustomFieldValueDtoSourceType.
|
|
const (
|
|
CustomFieldValueDtoSourceTypePROJECT CustomFieldValueDtoSourceType = "PROJECT"
|
|
CustomFieldValueDtoSourceTypeTIMEENTRY CustomFieldValueDtoSourceType = "TIMEENTRY"
|
|
CustomFieldValueDtoSourceTypeWORKSPACE CustomFieldValueDtoSourceType = "WORKSPACE"
|
|
)
|
|
|
|
// Defines values for CustomerDtoSource.
|
|
const (
|
|
CAKEAG CustomerDtoSource = "CAKE_AG"
|
|
CAKEINC CustomerDtoSource = "CAKE_INC"
|
|
COINGINC CustomerDtoSource = "COING_INC"
|
|
CSMCAKEAG CustomerDtoSource = "CSM_CAKE_AG"
|
|
)
|
|
|
|
// Defines values for DayOfWeek.
|
|
const (
|
|
DayOfWeekFRIDAY DayOfWeek = "FRIDAY"
|
|
DayOfWeekMONDAY DayOfWeek = "MONDAY"
|
|
DayOfWeekSATURDAY DayOfWeek = "SATURDAY"
|
|
DayOfWeekSUNDAY DayOfWeek = "SUNDAY"
|
|
DayOfWeekTHURSDAY DayOfWeek = "THURSDAY"
|
|
DayOfWeekTUESDAY DayOfWeek = "TUESDAY"
|
|
DayOfWeekWEDNESDAY DayOfWeek = "WEDNESDAY"
|
|
)
|
|
|
|
// Defines values for EntityCreationPermissionsDtoWhoCanCreateProjectsAndClients.
|
|
const (
|
|
EntityCreationPermissionsDtoWhoCanCreateProjectsAndClientsADMINS EntityCreationPermissionsDtoWhoCanCreateProjectsAndClients = "ADMINS"
|
|
EntityCreationPermissionsDtoWhoCanCreateProjectsAndClientsADMINSANDPROJECTMANAGERS EntityCreationPermissionsDtoWhoCanCreateProjectsAndClients = "ADMINS_AND_PROJECT_MANAGERS"
|
|
EntityCreationPermissionsDtoWhoCanCreateProjectsAndClientsEVERYONE EntityCreationPermissionsDtoWhoCanCreateProjectsAndClients = "EVERYONE"
|
|
)
|
|
|
|
// Defines values for EntityCreationPermissionsDtoWhoCanCreateTags.
|
|
const (
|
|
EntityCreationPermissionsDtoWhoCanCreateTagsADMINS EntityCreationPermissionsDtoWhoCanCreateTags = "ADMINS"
|
|
EntityCreationPermissionsDtoWhoCanCreateTagsADMINSANDPROJECTMANAGERS EntityCreationPermissionsDtoWhoCanCreateTags = "ADMINS_AND_PROJECT_MANAGERS"
|
|
EntityCreationPermissionsDtoWhoCanCreateTagsEVERYONE EntityCreationPermissionsDtoWhoCanCreateTags = "EVERYONE"
|
|
)
|
|
|
|
// Defines values for EntityCreationPermissionsDtoWhoCanCreateTasks.
|
|
const (
|
|
EntityCreationPermissionsDtoWhoCanCreateTasksADMINS EntityCreationPermissionsDtoWhoCanCreateTasks = "ADMINS"
|
|
EntityCreationPermissionsDtoWhoCanCreateTasksADMINSANDPROJECTMANAGERS EntityCreationPermissionsDtoWhoCanCreateTasks = "ADMINS_AND_PROJECT_MANAGERS"
|
|
EntityCreationPermissionsDtoWhoCanCreateTasksEVERYONE EntityCreationPermissionsDtoWhoCanCreateTasks = "EVERYONE"
|
|
)
|
|
|
|
// Defines values for EstimateDtoType.
|
|
const (
|
|
EstimateDtoTypeAUTO EstimateDtoType = "AUTO"
|
|
EstimateDtoTypeMANUAL EstimateDtoType = "MANUAL"
|
|
)
|
|
|
|
// Defines values for EstimateRequestType.
|
|
const (
|
|
EstimateRequestTypeAUTO EstimateRequestType = "AUTO"
|
|
EstimateRequestTypeMANUAL EstimateRequestType = "MANUAL"
|
|
)
|
|
|
|
// Defines values for EstimateResetDtoDayOfWeek.
|
|
const (
|
|
EstimateResetDtoDayOfWeekFRIDAY EstimateResetDtoDayOfWeek = "FRIDAY"
|
|
EstimateResetDtoDayOfWeekMONDAY EstimateResetDtoDayOfWeek = "MONDAY"
|
|
EstimateResetDtoDayOfWeekSATURDAY EstimateResetDtoDayOfWeek = "SATURDAY"
|
|
EstimateResetDtoDayOfWeekSUNDAY EstimateResetDtoDayOfWeek = "SUNDAY"
|
|
EstimateResetDtoDayOfWeekTHURSDAY EstimateResetDtoDayOfWeek = "THURSDAY"
|
|
EstimateResetDtoDayOfWeekTUESDAY EstimateResetDtoDayOfWeek = "TUESDAY"
|
|
EstimateResetDtoDayOfWeekWEDNESDAY EstimateResetDtoDayOfWeek = "WEDNESDAY"
|
|
)
|
|
|
|
// Defines values for EstimateResetDtoInterval.
|
|
const (
|
|
EstimateResetDtoIntervalMONTHLY EstimateResetDtoInterval = "MONTHLY"
|
|
EstimateResetDtoIntervalWEEKLY EstimateResetDtoInterval = "WEEKLY"
|
|
EstimateResetDtoIntervalYEARLY EstimateResetDtoInterval = "YEARLY"
|
|
)
|
|
|
|
// Defines values for EstimateResetDtoMonth.
|
|
const (
|
|
EstimateResetDtoMonthAPRIL EstimateResetDtoMonth = "APRIL"
|
|
EstimateResetDtoMonthAUGUST EstimateResetDtoMonth = "AUGUST"
|
|
EstimateResetDtoMonthDECEMBER EstimateResetDtoMonth = "DECEMBER"
|
|
EstimateResetDtoMonthFEBRUARY EstimateResetDtoMonth = "FEBRUARY"
|
|
EstimateResetDtoMonthJANUARY EstimateResetDtoMonth = "JANUARY"
|
|
EstimateResetDtoMonthJULY EstimateResetDtoMonth = "JULY"
|
|
EstimateResetDtoMonthJUNE EstimateResetDtoMonth = "JUNE"
|
|
EstimateResetDtoMonthMARCH EstimateResetDtoMonth = "MARCH"
|
|
EstimateResetDtoMonthMAY EstimateResetDtoMonth = "MAY"
|
|
EstimateResetDtoMonthNOVEMBER EstimateResetDtoMonth = "NOVEMBER"
|
|
EstimateResetDtoMonthOCTOBER EstimateResetDtoMonth = "OCTOBER"
|
|
EstimateResetDtoMonthSEPTEMBER EstimateResetDtoMonth = "SEPTEMBER"
|
|
)
|
|
|
|
// Defines values for EstimateResetRequestDayOfWeek.
|
|
const (
|
|
EstimateResetRequestDayOfWeekFRIDAY EstimateResetRequestDayOfWeek = "FRIDAY"
|
|
EstimateResetRequestDayOfWeekMONDAY EstimateResetRequestDayOfWeek = "MONDAY"
|
|
EstimateResetRequestDayOfWeekSATURDAY EstimateResetRequestDayOfWeek = "SATURDAY"
|
|
EstimateResetRequestDayOfWeekSUNDAY EstimateResetRequestDayOfWeek = "SUNDAY"
|
|
EstimateResetRequestDayOfWeekTHURSDAY EstimateResetRequestDayOfWeek = "THURSDAY"
|
|
EstimateResetRequestDayOfWeekTUESDAY EstimateResetRequestDayOfWeek = "TUESDAY"
|
|
EstimateResetRequestDayOfWeekWEDNESDAY EstimateResetRequestDayOfWeek = "WEDNESDAY"
|
|
)
|
|
|
|
// Defines values for EstimateResetRequestInterval.
|
|
const (
|
|
EstimateResetRequestIntervalMONTHLY EstimateResetRequestInterval = "MONTHLY"
|
|
EstimateResetRequestIntervalWEEKLY EstimateResetRequestInterval = "WEEKLY"
|
|
EstimateResetRequestIntervalYEARLY EstimateResetRequestInterval = "YEARLY"
|
|
)
|
|
|
|
// Defines values for EstimateResetRequestMonth.
|
|
const (
|
|
EstimateResetRequestMonthAPRIL EstimateResetRequestMonth = "APRIL"
|
|
EstimateResetRequestMonthAUGUST EstimateResetRequestMonth = "AUGUST"
|
|
EstimateResetRequestMonthDECEMBER EstimateResetRequestMonth = "DECEMBER"
|
|
EstimateResetRequestMonthFEBRUARY EstimateResetRequestMonth = "FEBRUARY"
|
|
EstimateResetRequestMonthJANUARY EstimateResetRequestMonth = "JANUARY"
|
|
EstimateResetRequestMonthJULY EstimateResetRequestMonth = "JULY"
|
|
EstimateResetRequestMonthJUNE EstimateResetRequestMonth = "JUNE"
|
|
EstimateResetRequestMonthMARCH EstimateResetRequestMonth = "MARCH"
|
|
EstimateResetRequestMonthMAY EstimateResetRequestMonth = "MAY"
|
|
EstimateResetRequestMonthNOVEMBER EstimateResetRequestMonth = "NOVEMBER"
|
|
EstimateResetRequestMonthOCTOBER EstimateResetRequestMonth = "OCTOBER"
|
|
EstimateResetRequestMonthSEPTEMBER EstimateResetRequestMonth = "SEPTEMBER"
|
|
)
|
|
|
|
// Defines values for EstimateWithOptionsDtoResetOption.
|
|
const (
|
|
EstimateWithOptionsDtoResetOptionMONTHLY EstimateWithOptionsDtoResetOption = "MONTHLY"
|
|
EstimateWithOptionsDtoResetOptionWEEKLY EstimateWithOptionsDtoResetOption = "WEEKLY"
|
|
EstimateWithOptionsDtoResetOptionYEARLY EstimateWithOptionsDtoResetOption = "YEARLY"
|
|
)
|
|
|
|
// Defines values for EstimateWithOptionsDtoType.
|
|
const (
|
|
EstimateWithOptionsDtoTypeAUTO EstimateWithOptionsDtoType = "AUTO"
|
|
EstimateWithOptionsDtoTypeMANUAL EstimateWithOptionsDtoType = "MANUAL"
|
|
)
|
|
|
|
// Defines values for EstimateWithOptionsRequestResetOption.
|
|
const (
|
|
EstimateWithOptionsRequestResetOptionMONTHLY EstimateWithOptionsRequestResetOption = "MONTHLY"
|
|
EstimateWithOptionsRequestResetOptionWEEKLY EstimateWithOptionsRequestResetOption = "WEEKLY"
|
|
EstimateWithOptionsRequestResetOptionYEARLY EstimateWithOptionsRequestResetOption = "YEARLY"
|
|
)
|
|
|
|
// Defines values for EstimateWithOptionsRequestType.
|
|
const (
|
|
EstimateWithOptionsRequestTypeAUTO EstimateWithOptionsRequestType = "AUTO"
|
|
EstimateWithOptionsRequestTypeMANUAL EstimateWithOptionsRequestType = "MANUAL"
|
|
)
|
|
|
|
// Defines values for ExpenseHydratedDtoApprovalStatus.
|
|
const (
|
|
ExpenseHydratedDtoApprovalStatusAPPROVED ExpenseHydratedDtoApprovalStatus = "APPROVED"
|
|
ExpenseHydratedDtoApprovalStatusPENDING ExpenseHydratedDtoApprovalStatus = "PENDING"
|
|
ExpenseHydratedDtoApprovalStatusUNSUBMITTED ExpenseHydratedDtoApprovalStatus = "UNSUBMITTED"
|
|
)
|
|
|
|
// Defines values for ExpensesAndTotalsDtoApprovalPeriod.
|
|
const (
|
|
ExpensesAndTotalsDtoApprovalPeriodMONTHLY ExpensesAndTotalsDtoApprovalPeriod = "MONTHLY"
|
|
ExpensesAndTotalsDtoApprovalPeriodSEMIMONTHLY ExpensesAndTotalsDtoApprovalPeriod = "SEMI_MONTHLY"
|
|
ExpensesAndTotalsDtoApprovalPeriodWEEKLY ExpensesAndTotalsDtoApprovalPeriod = "WEEKLY"
|
|
)
|
|
|
|
// Defines values for FeatureSubscriptionsDtoStatus.
|
|
const (
|
|
FeatureSubscriptionsDtoStatusACTIVE FeatureSubscriptionsDtoStatus = "ACTIVE"
|
|
FeatureSubscriptionsDtoStatusPASTDUE FeatureSubscriptionsDtoStatus = "PAST_DUE"
|
|
FeatureSubscriptionsDtoStatusTERMINATED FeatureSubscriptionsDtoStatus = "TERMINATED"
|
|
)
|
|
|
|
// Defines values for FeatureSubscriptionsDtoType.
|
|
const (
|
|
FeatureSubscriptionsDtoTypeBASIC2021 FeatureSubscriptionsDtoType = "BASIC_2021"
|
|
FeatureSubscriptionsDtoTypeBASICYEAR2021 FeatureSubscriptionsDtoType = "BASIC_YEAR_2021"
|
|
FeatureSubscriptionsDtoTypeBUNDLE2024 FeatureSubscriptionsDtoType = "BUNDLE_2024"
|
|
FeatureSubscriptionsDtoTypeBUNDLEYEAR2024 FeatureSubscriptionsDtoType = "BUNDLE_YEAR_2024"
|
|
FeatureSubscriptionsDtoTypeENTERPRISE FeatureSubscriptionsDtoType = "ENTERPRISE"
|
|
FeatureSubscriptionsDtoTypeENTERPRISE2021 FeatureSubscriptionsDtoType = "ENTERPRISE_2021"
|
|
FeatureSubscriptionsDtoTypeENTERPRISEYEAR FeatureSubscriptionsDtoType = "ENTERPRISE_YEAR"
|
|
FeatureSubscriptionsDtoTypeENTERPRISEYEAR2021 FeatureSubscriptionsDtoType = "ENTERPRISE_YEAR_2021"
|
|
FeatureSubscriptionsDtoTypeFREE FeatureSubscriptionsDtoType = "FREE"
|
|
FeatureSubscriptionsDtoTypePREMIUM FeatureSubscriptionsDtoType = "PREMIUM"
|
|
FeatureSubscriptionsDtoTypePREMIUMYEAR FeatureSubscriptionsDtoType = "PREMIUM_YEAR"
|
|
FeatureSubscriptionsDtoTypePRO2021 FeatureSubscriptionsDtoType = "PRO_2021"
|
|
FeatureSubscriptionsDtoTypePROYEAR2021 FeatureSubscriptionsDtoType = "PRO_YEAR_2021"
|
|
FeatureSubscriptionsDtoTypeSELFHOSTED FeatureSubscriptionsDtoType = "SELF_HOSTED"
|
|
FeatureSubscriptionsDtoTypeSPECIAL FeatureSubscriptionsDtoType = "SPECIAL"
|
|
FeatureSubscriptionsDtoTypeSPECIALYEAR FeatureSubscriptionsDtoType = "SPECIAL_YEAR"
|
|
FeatureSubscriptionsDtoTypeSTANDARD2021 FeatureSubscriptionsDtoType = "STANDARD_2021"
|
|
FeatureSubscriptionsDtoTypeSTANDARDYEAR2021 FeatureSubscriptionsDtoType = "STANDARD_YEAR_2021"
|
|
FeatureSubscriptionsDtoTypeTRIAL FeatureSubscriptionsDtoType = "TRIAL"
|
|
)
|
|
|
|
// Defines values for GetDraftCountRequestViewType.
|
|
const (
|
|
GetDraftCountRequestViewTypeALL GetDraftCountRequestViewType = "ALL"
|
|
GetDraftCountRequestViewTypePROJECTS GetDraftCountRequestViewType = "PROJECTS"
|
|
GetDraftCountRequestViewTypeTEAM GetDraftCountRequestViewType = "TEAM"
|
|
)
|
|
|
|
// Defines values for GetMainReportRequestAccess.
|
|
const (
|
|
GetMainReportRequestAccessME GetMainReportRequestAccess = "ME"
|
|
GetMainReportRequestAccessTEAM GetMainReportRequestAccess = "TEAM"
|
|
)
|
|
|
|
// Defines values for GetMainReportRequestType.
|
|
const (
|
|
GetMainReportRequestTypeBILLABILITY GetMainReportRequestType = "BILLABILITY"
|
|
GetMainReportRequestTypePROJECT GetMainReportRequestType = "PROJECT"
|
|
)
|
|
|
|
// Defines values for GetMainReportRequestZoomLevel.
|
|
const (
|
|
GetMainReportRequestZoomLevelMONTH GetMainReportRequestZoomLevel = "MONTH"
|
|
GetMainReportRequestZoomLevelWEEK GetMainReportRequestZoomLevel = "WEEK"
|
|
GetMainReportRequestZoomLevelYEAR GetMainReportRequestZoomLevel = "YEAR"
|
|
)
|
|
|
|
// Defines values for GetTimeOffRequestsRequestStatuses.
|
|
const (
|
|
GetTimeOffRequestsRequestStatusesALL GetTimeOffRequestsRequestStatuses = "ALL"
|
|
GetTimeOffRequestsRequestStatusesAPPROVED GetTimeOffRequestsRequestStatuses = "APPROVED"
|
|
GetTimeOffRequestsRequestStatusesPENDING GetTimeOffRequestsRequestStatuses = "PENDING"
|
|
GetTimeOffRequestsRequestStatusesREJECTED GetTimeOffRequestsRequestStatuses = "REJECTED"
|
|
)
|
|
|
|
// Defines values for GetUnsubmittedEntriesDurationRequestShowUsers.
|
|
const (
|
|
GetUnsubmittedEntriesDurationRequestShowUsersALL GetUnsubmittedEntriesDurationRequestShowUsers = "ALL"
|
|
GetUnsubmittedEntriesDurationRequestShowUsersTRACKED GetUnsubmittedEntriesDurationRequestShowUsers = "TRACKED"
|
|
GetUnsubmittedEntriesDurationRequestShowUsersUNTRACKED GetUnsubmittedEntriesDurationRequestShowUsers = "UNTRACKED"
|
|
)
|
|
|
|
// Defines values for GetUserTotalsRequestStatusFilter.
|
|
const (
|
|
GetUserTotalsRequestStatusFilterALL GetUserTotalsRequestStatusFilter = "ALL"
|
|
GetUserTotalsRequestStatusFilterPUBLISHED GetUserTotalsRequestStatusFilter = "PUBLISHED"
|
|
GetUserTotalsRequestStatusFilterUNPUBLISHED GetUserTotalsRequestStatusFilter = "UNPUBLISHED"
|
|
)
|
|
|
|
// Defines values for InvoiceDefaultSettingsDtoTaxType.
|
|
const (
|
|
InvoiceDefaultSettingsDtoTaxTypeCOMPOUND InvoiceDefaultSettingsDtoTaxType = "COMPOUND"
|
|
InvoiceDefaultSettingsDtoTaxTypeNONE InvoiceDefaultSettingsDtoTaxType = "NONE"
|
|
InvoiceDefaultSettingsDtoTaxTypeSIMPLE InvoiceDefaultSettingsDtoTaxType = "SIMPLE"
|
|
)
|
|
|
|
// Defines values for InvoiceDefaultSettingsRequestTaxType.
|
|
const (
|
|
InvoiceDefaultSettingsRequestTaxTypeCOMPOUND InvoiceDefaultSettingsRequestTaxType = "COMPOUND"
|
|
InvoiceDefaultSettingsRequestTaxTypeNONE InvoiceDefaultSettingsRequestTaxType = "NONE"
|
|
InvoiceDefaultSettingsRequestTaxTypeSIMPLE InvoiceDefaultSettingsRequestTaxType = "SIMPLE"
|
|
)
|
|
|
|
// Defines values for InvoiceEmailTemplateDtoInvoiceEmailTemplateType.
|
|
const (
|
|
InvoiceEmailTemplateDtoInvoiceEmailTemplateTypeINVOICE InvoiceEmailTemplateDtoInvoiceEmailTemplateType = "INVOICE"
|
|
InvoiceEmailTemplateDtoInvoiceEmailTemplateTypeREMINDER InvoiceEmailTemplateDtoInvoiceEmailTemplateType = "REMINDER"
|
|
)
|
|
|
|
// Defines values for InvoiceEmailTemplateDtoInvoiceEmailType.
|
|
const (
|
|
InvoiceEmailTemplateDtoInvoiceEmailTypeINVOICE InvoiceEmailTemplateDtoInvoiceEmailType = "INVOICE"
|
|
InvoiceEmailTemplateDtoInvoiceEmailTypeREMINDER InvoiceEmailTemplateDtoInvoiceEmailType = "REMINDER"
|
|
)
|
|
|
|
// Defines values for InvoiceFilterRequestStatuses.
|
|
const (
|
|
InvoiceFilterRequestStatusesOVERDUE InvoiceFilterRequestStatuses = "OVERDUE"
|
|
InvoiceFilterRequestStatusesPAID InvoiceFilterRequestStatuses = "PAID"
|
|
InvoiceFilterRequestStatusesPARTIALLYPAID InvoiceFilterRequestStatuses = "PARTIALLY_PAID"
|
|
InvoiceFilterRequestStatusesSENT InvoiceFilterRequestStatuses = "SENT"
|
|
InvoiceFilterRequestStatusesUNSENT InvoiceFilterRequestStatuses = "UNSENT"
|
|
InvoiceFilterRequestStatusesVOID InvoiceFilterRequestStatuses = "VOID"
|
|
)
|
|
|
|
// Defines values for InvoiceInfoDtoStatus.
|
|
const (
|
|
InvoiceInfoDtoStatusOVERDUE InvoiceInfoDtoStatus = "OVERDUE"
|
|
InvoiceInfoDtoStatusPAID InvoiceInfoDtoStatus = "PAID"
|
|
InvoiceInfoDtoStatusPARTIALLYPAID InvoiceInfoDtoStatus = "PARTIALLY_PAID"
|
|
InvoiceInfoDtoStatusSENT InvoiceInfoDtoStatus = "SENT"
|
|
InvoiceInfoDtoStatusUNSENT InvoiceInfoDtoStatus = "UNSENT"
|
|
InvoiceInfoDtoStatusVOID InvoiceInfoDtoStatus = "VOID"
|
|
)
|
|
|
|
// Defines values for InvoiceInfoDtoVisibleZeroFields.
|
|
const (
|
|
InvoiceInfoDtoVisibleZeroFieldsDISCOUNT InvoiceInfoDtoVisibleZeroFields = "DISCOUNT"
|
|
InvoiceInfoDtoVisibleZeroFieldsTAX InvoiceInfoDtoVisibleZeroFields = "TAX"
|
|
InvoiceInfoDtoVisibleZeroFieldsTAX2 InvoiceInfoDtoVisibleZeroFields = "TAX_2"
|
|
)
|
|
|
|
// Defines values for InvoiceOverviewDtoStatus.
|
|
const (
|
|
InvoiceOverviewDtoStatusOVERDUE InvoiceOverviewDtoStatus = "OVERDUE"
|
|
InvoiceOverviewDtoStatusPAID InvoiceOverviewDtoStatus = "PAID"
|
|
InvoiceOverviewDtoStatusPARTIALLYPAID InvoiceOverviewDtoStatus = "PARTIALLY_PAID"
|
|
InvoiceOverviewDtoStatusSENT InvoiceOverviewDtoStatus = "SENT"
|
|
InvoiceOverviewDtoStatusUNSENT InvoiceOverviewDtoStatus = "UNSENT"
|
|
InvoiceOverviewDtoStatusVOID InvoiceOverviewDtoStatus = "VOID"
|
|
)
|
|
|
|
// Defines values for InvoiceOverviewDtoVisibleZeroFields.
|
|
const (
|
|
InvoiceOverviewDtoVisibleZeroFieldsDISCOUNT InvoiceOverviewDtoVisibleZeroFields = "DISCOUNT"
|
|
InvoiceOverviewDtoVisibleZeroFieldsTAX InvoiceOverviewDtoVisibleZeroFields = "TAX"
|
|
InvoiceOverviewDtoVisibleZeroFieldsTAX2 InvoiceOverviewDtoVisibleZeroFields = "TAX_2"
|
|
)
|
|
|
|
// Defines values for KioskDtoStatus.
|
|
const (
|
|
KioskDtoStatusACTIVE KioskDtoStatus = "ACTIVE"
|
|
KioskDtoStatusDELETED KioskDtoStatus = "DELETED"
|
|
KioskDtoStatusINACTIVE KioskDtoStatus = "INACTIVE"
|
|
)
|
|
|
|
// Defines values for KioskHydratedDtoStatus.
|
|
const (
|
|
KioskHydratedDtoStatusACTIVE KioskHydratedDtoStatus = "ACTIVE"
|
|
KioskHydratedDtoStatusDELETED KioskHydratedDtoStatus = "DELETED"
|
|
KioskHydratedDtoStatusINACTIVE KioskHydratedDtoStatus = "INACTIVE"
|
|
)
|
|
|
|
// Defines values for KioskUserPinCodeDtoPinCodeContext.
|
|
const (
|
|
KioskUserPinCodeDtoPinCodeContextADMIN KioskUserPinCodeDtoPinCodeContext = "ADMIN"
|
|
KioskUserPinCodeDtoPinCodeContextINITIAL KioskUserPinCodeDtoPinCodeContext = "INITIAL"
|
|
KioskUserPinCodeDtoPinCodeContextUNIVERSAL KioskUserPinCodeDtoPinCodeContext = "UNIVERSAL"
|
|
KioskUserPinCodeDtoPinCodeContextUSER KioskUserPinCodeDtoPinCodeContext = "USER"
|
|
)
|
|
|
|
// Defines values for MemberProfileFullRequestWeekStart.
|
|
const (
|
|
MemberProfileFullRequestWeekStartFRIDAY MemberProfileFullRequestWeekStart = "FRIDAY"
|
|
MemberProfileFullRequestWeekStartMONDAY MemberProfileFullRequestWeekStart = "MONDAY"
|
|
MemberProfileFullRequestWeekStartSATURDAY MemberProfileFullRequestWeekStart = "SATURDAY"
|
|
MemberProfileFullRequestWeekStartSUNDAY MemberProfileFullRequestWeekStart = "SUNDAY"
|
|
MemberProfileFullRequestWeekStartTHURSDAY MemberProfileFullRequestWeekStart = "THURSDAY"
|
|
MemberProfileFullRequestWeekStartTUESDAY MemberProfileFullRequestWeekStart = "TUESDAY"
|
|
MemberProfileFullRequestWeekStartWEDNESDAY MemberProfileFullRequestWeekStart = "WEDNESDAY"
|
|
)
|
|
|
|
// Defines values for MemberProfileFullRequestWorkingDays.
|
|
const (
|
|
MemberProfileFullRequestWorkingDaysFRIDAY MemberProfileFullRequestWorkingDays = "FRIDAY"
|
|
MemberProfileFullRequestWorkingDaysMONDAY MemberProfileFullRequestWorkingDays = "MONDAY"
|
|
MemberProfileFullRequestWorkingDaysSATURDAY MemberProfileFullRequestWorkingDays = "SATURDAY"
|
|
MemberProfileFullRequestWorkingDaysSUNDAY MemberProfileFullRequestWorkingDays = "SUNDAY"
|
|
MemberProfileFullRequestWorkingDaysTHURSDAY MemberProfileFullRequestWorkingDays = "THURSDAY"
|
|
MemberProfileFullRequestWorkingDaysTUESDAY MemberProfileFullRequestWorkingDays = "TUESDAY"
|
|
MemberProfileFullRequestWorkingDaysWEDNESDAY MemberProfileFullRequestWorkingDays = "WEDNESDAY"
|
|
)
|
|
|
|
// Defines values for MemberProfileRequestWeekStart.
|
|
const (
|
|
MemberProfileRequestWeekStartFRIDAY MemberProfileRequestWeekStart = "FRIDAY"
|
|
MemberProfileRequestWeekStartMONDAY MemberProfileRequestWeekStart = "MONDAY"
|
|
MemberProfileRequestWeekStartSATURDAY MemberProfileRequestWeekStart = "SATURDAY"
|
|
MemberProfileRequestWeekStartSUNDAY MemberProfileRequestWeekStart = "SUNDAY"
|
|
MemberProfileRequestWeekStartTHURSDAY MemberProfileRequestWeekStart = "THURSDAY"
|
|
MemberProfileRequestWeekStartTUESDAY MemberProfileRequestWeekStart = "TUESDAY"
|
|
MemberProfileRequestWeekStartWEDNESDAY MemberProfileRequestWeekStart = "WEDNESDAY"
|
|
)
|
|
|
|
// Defines values for MemberProfileRequestWorkingDays.
|
|
const (
|
|
MemberProfileRequestWorkingDaysFRIDAY MemberProfileRequestWorkingDays = "FRIDAY"
|
|
MemberProfileRequestWorkingDaysMONDAY MemberProfileRequestWorkingDays = "MONDAY"
|
|
MemberProfileRequestWorkingDaysSATURDAY MemberProfileRequestWorkingDays = "SATURDAY"
|
|
MemberProfileRequestWorkingDaysSUNDAY MemberProfileRequestWorkingDays = "SUNDAY"
|
|
MemberProfileRequestWorkingDaysTHURSDAY MemberProfileRequestWorkingDays = "THURSDAY"
|
|
MemberProfileRequestWorkingDaysTUESDAY MemberProfileRequestWorkingDays = "TUESDAY"
|
|
MemberProfileRequestWorkingDaysWEDNESDAY MemberProfileRequestWorkingDays = "WEDNESDAY"
|
|
)
|
|
|
|
// Defines values for MemberSettingsRequestWeekStart.
|
|
const (
|
|
MemberSettingsRequestWeekStartFRIDAY MemberSettingsRequestWeekStart = "FRIDAY"
|
|
MemberSettingsRequestWeekStartMONDAY MemberSettingsRequestWeekStart = "MONDAY"
|
|
MemberSettingsRequestWeekStartSATURDAY MemberSettingsRequestWeekStart = "SATURDAY"
|
|
MemberSettingsRequestWeekStartSUNDAY MemberSettingsRequestWeekStart = "SUNDAY"
|
|
MemberSettingsRequestWeekStartTHURSDAY MemberSettingsRequestWeekStart = "THURSDAY"
|
|
MemberSettingsRequestWeekStartTUESDAY MemberSettingsRequestWeekStart = "TUESDAY"
|
|
MemberSettingsRequestWeekStartWEDNESDAY MemberSettingsRequestWeekStart = "WEDNESDAY"
|
|
)
|
|
|
|
// Defines values for MemberSettingsRequestWorkingDays.
|
|
const (
|
|
MemberSettingsRequestWorkingDaysFRIDAY MemberSettingsRequestWorkingDays = "FRIDAY"
|
|
MemberSettingsRequestWorkingDaysMONDAY MemberSettingsRequestWorkingDays = "MONDAY"
|
|
MemberSettingsRequestWorkingDaysSATURDAY MemberSettingsRequestWorkingDays = "SATURDAY"
|
|
MemberSettingsRequestWorkingDaysSUNDAY MemberSettingsRequestWorkingDays = "SUNDAY"
|
|
MemberSettingsRequestWorkingDaysTHURSDAY MemberSettingsRequestWorkingDays = "THURSDAY"
|
|
MemberSettingsRequestWorkingDaysTUESDAY MemberSettingsRequestWorkingDays = "TUESDAY"
|
|
MemberSettingsRequestWorkingDaysWEDNESDAY MemberSettingsRequestWorkingDays = "WEDNESDAY"
|
|
)
|
|
|
|
// Defines values for MembershipDtoMembershipStatus.
|
|
const (
|
|
MembershipDtoMembershipStatusACTIVE MembershipDtoMembershipStatus = "ACTIVE"
|
|
MembershipDtoMembershipStatusALL MembershipDtoMembershipStatus = "ALL"
|
|
MembershipDtoMembershipStatusDECLINED MembershipDtoMembershipStatus = "DECLINED"
|
|
MembershipDtoMembershipStatusINACTIVE MembershipDtoMembershipStatus = "INACTIVE"
|
|
MembershipDtoMembershipStatusPENDING MembershipDtoMembershipStatus = "PENDING"
|
|
)
|
|
|
|
// Defines values for MembershipRequestMembershipStatus.
|
|
const (
|
|
MembershipRequestMembershipStatusACTIVE MembershipRequestMembershipStatus = "ACTIVE"
|
|
MembershipRequestMembershipStatusALL MembershipRequestMembershipStatus = "ALL"
|
|
MembershipRequestMembershipStatusDECLINED MembershipRequestMembershipStatus = "DECLINED"
|
|
MembershipRequestMembershipStatusINACTIVE MembershipRequestMembershipStatus = "INACTIVE"
|
|
MembershipRequestMembershipStatusPENDING MembershipRequestMembershipStatus = "PENDING"
|
|
)
|
|
|
|
// Defines values for MembershipRequestMembershipType.
|
|
const (
|
|
MembershipRequestMembershipTypePROJECT MembershipRequestMembershipType = "PROJECT"
|
|
MembershipRequestMembershipTypeUSERGROUP MembershipRequestMembershipType = "USERGROUP"
|
|
MembershipRequestMembershipTypeWORKSPACE MembershipRequestMembershipType = "WORKSPACE"
|
|
)
|
|
|
|
// Defines values for NegativeBalanceRequestPeriod.
|
|
const (
|
|
NegativeBalanceRequestPeriodMONTH NegativeBalanceRequestPeriod = "MONTH"
|
|
NegativeBalanceRequestPeriodYEAR NegativeBalanceRequestPeriod = "YEAR"
|
|
)
|
|
|
|
// Defines values for NegativeBalanceRequestTimeUnit.
|
|
const (
|
|
NegativeBalanceRequestTimeUnitDAYS NegativeBalanceRequestTimeUnit = "DAYS"
|
|
NegativeBalanceRequestTimeUnitHOURS NegativeBalanceRequestTimeUnit = "HOURS"
|
|
)
|
|
|
|
// Defines values for NewsDtoUserRole.
|
|
const (
|
|
NewsDtoUserRoleADMIN NewsDtoUserRole = "ADMIN"
|
|
NewsDtoUserRoleBILLING NewsDtoUserRole = "BILLING"
|
|
NewsDtoUserRoleMANAGER NewsDtoUserRole = "MANAGER"
|
|
NewsDtoUserRoleNOTIFIER NewsDtoUserRole = "NOTIFIER"
|
|
NewsDtoUserRoleSALESADMIN NewsDtoUserRole = "SALES_ADMIN"
|
|
NewsDtoUserRoleSALESAGENT NewsDtoUserRole = "SALES_AGENT"
|
|
NewsDtoUserRoleSALESPANEL NewsDtoUserRole = "SALES_PANEL"
|
|
NewsDtoUserRoleSUPPORTAGENT NewsDtoUserRole = "SUPPORT_AGENT"
|
|
NewsDtoUserRoleUSER NewsDtoUserRole = "USER"
|
|
)
|
|
|
|
// Defines values for NewsDtoWorkspacePlan.
|
|
const (
|
|
NewsDtoWorkspacePlanALL NewsDtoWorkspacePlan = "ALL"
|
|
NewsDtoWorkspacePlanFREE NewsDtoWorkspacePlan = "FREE"
|
|
NewsDtoWorkspacePlanPAID NewsDtoWorkspacePlan = "PAID"
|
|
)
|
|
|
|
// Defines values for NewsRequestRole.
|
|
const (
|
|
NewsRequestRoleADMIN NewsRequestRole = "ADMIN"
|
|
NewsRequestRoleBILLING NewsRequestRole = "BILLING"
|
|
NewsRequestRoleMANAGER NewsRequestRole = "MANAGER"
|
|
NewsRequestRoleNOTIFIER NewsRequestRole = "NOTIFIER"
|
|
NewsRequestRoleSALESADMIN NewsRequestRole = "SALES_ADMIN"
|
|
NewsRequestRoleSALESAGENT NewsRequestRole = "SALES_AGENT"
|
|
NewsRequestRoleSALESPANEL NewsRequestRole = "SALES_PANEL"
|
|
NewsRequestRoleSUPPORTAGENT NewsRequestRole = "SUPPORT_AGENT"
|
|
NewsRequestRoleUSER NewsRequestRole = "USER"
|
|
)
|
|
|
|
// Defines values for NewsRequestWorkspacePlan.
|
|
const (
|
|
NewsRequestWorkspacePlanALL NewsRequestWorkspacePlan = "ALL"
|
|
NewsRequestWorkspacePlanFREE NewsRequestWorkspacePlan = "FREE"
|
|
NewsRequestWorkspacePlanPAID NewsRequestWorkspacePlan = "PAID"
|
|
)
|
|
|
|
// Defines values for NotificationDataDtoType.
|
|
const (
|
|
NotificationDataDtoTypeACCOUNTVERIFICATION NotificationDataDtoType = "ACCOUNT_VERIFICATION"
|
|
NotificationDataDtoTypeCONTACTSALES NotificationDataDtoType = "CONTACT_SALES"
|
|
NotificationDataDtoTypeEMAILVERIFICATION NotificationDataDtoType = "EMAIL_VERIFICATION"
|
|
NotificationDataDtoTypeFEATURESUBSCRIPTION NotificationDataDtoType = "FEATURE_SUBSCRIPTION"
|
|
NotificationDataDtoTypeFILEIMPORTCOMPLETED NotificationDataDtoType = "FILE_IMPORT_COMPLETED"
|
|
NotificationDataDtoTypeMONITORING NotificationDataDtoType = "MONITORING"
|
|
NotificationDataDtoTypeNEWS NotificationDataDtoType = "NEWS"
|
|
NotificationDataDtoTypePAYMENTFAILED NotificationDataDtoType = "PAYMENT_FAILED"
|
|
NotificationDataDtoTypePUMBLECOUPON NotificationDataDtoType = "PUMBLE_COUPON"
|
|
NotificationDataDtoTypeUSERSETTINGS NotificationDataDtoType = "USER_SETTINGS"
|
|
NotificationDataDtoTypeWORKSPACECHANGED NotificationDataDtoType = "WORKSPACE_CHANGED"
|
|
NotificationDataDtoTypeWORKSPACEINVITATION NotificationDataDtoType = "WORKSPACE_INVITATION"
|
|
)
|
|
|
|
// Defines values for NotificationDtoStatus.
|
|
const (
|
|
READ NotificationDtoStatus = "READ"
|
|
UNREAD NotificationDtoStatus = "UNREAD"
|
|
)
|
|
|
|
// Defines values for NotificationDtoType.
|
|
const (
|
|
NotificationDtoTypeACCOUNTVERIFICATION NotificationDtoType = "ACCOUNT_VERIFICATION"
|
|
NotificationDtoTypeCONTACTSALES NotificationDtoType = "CONTACT_SALES"
|
|
NotificationDtoTypeEMAILVERIFICATION NotificationDtoType = "EMAIL_VERIFICATION"
|
|
NotificationDtoTypeFEATURESUBSCRIPTION NotificationDtoType = "FEATURE_SUBSCRIPTION"
|
|
NotificationDtoTypeFILEIMPORTCOMPLETED NotificationDtoType = "FILE_IMPORT_COMPLETED"
|
|
NotificationDtoTypeMONITORING NotificationDtoType = "MONITORING"
|
|
NotificationDtoTypeNEWS NotificationDtoType = "NEWS"
|
|
NotificationDtoTypePAYMENTFAILED NotificationDtoType = "PAYMENT_FAILED"
|
|
NotificationDtoTypePUMBLECOUPON NotificationDtoType = "PUMBLE_COUPON"
|
|
NotificationDtoTypeUSERSETTINGS NotificationDtoType = "USER_SETTINGS"
|
|
NotificationDtoTypeWORKSPACECHANGED NotificationDtoType = "WORKSPACE_CHANGED"
|
|
NotificationDtoTypeWORKSPACEINVITATION NotificationDtoType = "WORKSPACE_INVITATION"
|
|
)
|
|
|
|
// Defines values for OrganizationDtoAutoLogin.
|
|
const (
|
|
OrganizationDtoAutoLoginOAUTH2 OrganizationDtoAutoLogin = "OAUTH2"
|
|
OrganizationDtoAutoLoginOFF OrganizationDtoAutoLogin = "OFF"
|
|
OrganizationDtoAutoLoginSAML2 OrganizationDtoAutoLogin = "SAML2"
|
|
)
|
|
|
|
// Defines values for OrganizationRequestAutoLogin.
|
|
const (
|
|
OrganizationRequestAutoLoginOAUTH2 OrganizationRequestAutoLogin = "OAUTH2"
|
|
OrganizationRequestAutoLoginOFF OrganizationRequestAutoLogin = "OFF"
|
|
OrganizationRequestAutoLoginSAML2 OrganizationRequestAutoLogin = "SAML2"
|
|
)
|
|
|
|
// Defines values for PatchProjectRequestChangeFields.
|
|
const (
|
|
PatchProjectRequestChangeFieldsARCHIVED PatchProjectRequestChangeFields = "ARCHIVED"
|
|
PatchProjectRequestChangeFieldsBILLABLE PatchProjectRequestChangeFields = "BILLABLE"
|
|
PatchProjectRequestChangeFieldsCLIENT PatchProjectRequestChangeFields = "CLIENT"
|
|
PatchProjectRequestChangeFieldsCOLOR PatchProjectRequestChangeFields = "COLOR"
|
|
PatchProjectRequestChangeFieldsESTIMATE PatchProjectRequestChangeFields = "ESTIMATE"
|
|
PatchProjectRequestChangeFieldsHOURLYRATE PatchProjectRequestChangeFields = "HOURLY_RATE"
|
|
PatchProjectRequestChangeFieldsMEMBERS PatchProjectRequestChangeFields = "MEMBERS"
|
|
PatchProjectRequestChangeFieldsMEMBERSADD PatchProjectRequestChangeFields = "MEMBERS_ADD"
|
|
PatchProjectRequestChangeFieldsTASK PatchProjectRequestChangeFields = "TASK"
|
|
PatchProjectRequestChangeFieldsVISIBILITY PatchProjectRequestChangeFields = "VISIBILITY"
|
|
)
|
|
|
|
// Defines values for PaymentCardInformationMonth.
|
|
const (
|
|
APRIL PaymentCardInformationMonth = "APRIL"
|
|
AUGUST PaymentCardInformationMonth = "AUGUST"
|
|
DECEMBER PaymentCardInformationMonth = "DECEMBER"
|
|
FEBRUARY PaymentCardInformationMonth = "FEBRUARY"
|
|
JANUARY PaymentCardInformationMonth = "JANUARY"
|
|
JULY PaymentCardInformationMonth = "JULY"
|
|
JUNE PaymentCardInformationMonth = "JUNE"
|
|
MARCH PaymentCardInformationMonth = "MARCH"
|
|
MAY PaymentCardInformationMonth = "MAY"
|
|
NOVEMBER PaymentCardInformationMonth = "NOVEMBER"
|
|
OCTOBER PaymentCardInformationMonth = "OCTOBER"
|
|
SEPTEMBER PaymentCardInformationMonth = "SEPTEMBER"
|
|
)
|
|
|
|
// Defines values for PaymentRequestType.
|
|
const (
|
|
PaymentRequestTypeBASIC2021 PaymentRequestType = "BASIC_2021"
|
|
PaymentRequestTypeBASICYEAR2021 PaymentRequestType = "BASIC_YEAR_2021"
|
|
PaymentRequestTypeBUNDLE2024 PaymentRequestType = "BUNDLE_2024"
|
|
PaymentRequestTypeBUNDLEYEAR2024 PaymentRequestType = "BUNDLE_YEAR_2024"
|
|
PaymentRequestTypeENTERPRISE PaymentRequestType = "ENTERPRISE"
|
|
PaymentRequestTypeENTERPRISE2021 PaymentRequestType = "ENTERPRISE_2021"
|
|
PaymentRequestTypeENTERPRISEYEAR PaymentRequestType = "ENTERPRISE_YEAR"
|
|
PaymentRequestTypeENTERPRISEYEAR2021 PaymentRequestType = "ENTERPRISE_YEAR_2021"
|
|
PaymentRequestTypeFREE PaymentRequestType = "FREE"
|
|
PaymentRequestTypePREMIUM PaymentRequestType = "PREMIUM"
|
|
PaymentRequestTypePREMIUMYEAR PaymentRequestType = "PREMIUM_YEAR"
|
|
PaymentRequestTypePRO2021 PaymentRequestType = "PRO_2021"
|
|
PaymentRequestTypePROYEAR2021 PaymentRequestType = "PRO_YEAR_2021"
|
|
PaymentRequestTypeSELFHOSTED PaymentRequestType = "SELF_HOSTED"
|
|
PaymentRequestTypeSPECIAL PaymentRequestType = "SPECIAL"
|
|
PaymentRequestTypeSPECIALYEAR PaymentRequestType = "SPECIAL_YEAR"
|
|
PaymentRequestTypeSTANDARD2021 PaymentRequestType = "STANDARD_2021"
|
|
PaymentRequestTypeSTANDARDYEAR2021 PaymentRequestType = "STANDARD_YEAR_2021"
|
|
PaymentRequestTypeTRIAL PaymentRequestType = "TRIAL"
|
|
)
|
|
|
|
// Defines values for PenalizeTimeEntryRequestPenaltyType.
|
|
const (
|
|
DELETE PenalizeTimeEntryRequestPenaltyType = "DELETE"
|
|
END PenalizeTimeEntryRequestPenaltyType = "END"
|
|
SPLIT PenalizeTimeEntryRequestPenaltyType = "SPLIT"
|
|
START PenalizeTimeEntryRequestPenaltyType = "START"
|
|
)
|
|
|
|
// Defines values for PolicyAssignmentFullDtoStatus.
|
|
const (
|
|
PolicyAssignmentFullDtoStatusACTIVE PolicyAssignmentFullDtoStatus = "ACTIVE"
|
|
PolicyAssignmentFullDtoStatusINACTIVE PolicyAssignmentFullDtoStatus = "INACTIVE"
|
|
)
|
|
|
|
// Defines values for PolicyDtoTimeUnit.
|
|
const (
|
|
PolicyDtoTimeUnitDAYS PolicyDtoTimeUnit = "DAYS"
|
|
PolicyDtoTimeUnitHOURS PolicyDtoTimeUnit = "HOURS"
|
|
)
|
|
|
|
// Defines values for PolicyFullDtoTimeUnit.
|
|
const (
|
|
PolicyFullDtoTimeUnitDAYS PolicyFullDtoTimeUnit = "DAYS"
|
|
PolicyFullDtoTimeUnitHOURS PolicyFullDtoTimeUnit = "HOURS"
|
|
)
|
|
|
|
// Defines values for PolicyRedactedDtoTimeUnit.
|
|
const (
|
|
PolicyRedactedDtoTimeUnitDAYS PolicyRedactedDtoTimeUnit = "DAYS"
|
|
PolicyRedactedDtoTimeUnitHOURS PolicyRedactedDtoTimeUnit = "HOURS"
|
|
)
|
|
|
|
// Defines values for ProjectTotalsRequestStatusFilter.
|
|
const (
|
|
ProjectTotalsRequestStatusFilterALL ProjectTotalsRequestStatusFilter = "ALL"
|
|
ProjectTotalsRequestStatusFilterPUBLISHED ProjectTotalsRequestStatusFilter = "PUBLISHED"
|
|
ProjectTotalsRequestStatusFilterUNPUBLISHED ProjectTotalsRequestStatusFilter = "UNPUBLISHED"
|
|
)
|
|
|
|
// Defines values for PublishAssignmentsRequestViewType.
|
|
const (
|
|
PublishAssignmentsRequestViewTypeALL PublishAssignmentsRequestViewType = "ALL"
|
|
PublishAssignmentsRequestViewTypePROJECTS PublishAssignmentsRequestViewType = "PROJECTS"
|
|
PublishAssignmentsRequestViewTypeTEAM PublishAssignmentsRequestViewType = "TEAM"
|
|
)
|
|
|
|
// Defines values for ReminderDtoDateRange.
|
|
const (
|
|
ReminderDtoDateRangeDAY ReminderDtoDateRange = "DAY"
|
|
ReminderDtoDateRangeMONTH ReminderDtoDateRange = "MONTH"
|
|
ReminderDtoDateRangeWEEK ReminderDtoDateRange = "WEEK"
|
|
)
|
|
|
|
// Defines values for SchedulingExcludeDayType.
|
|
const (
|
|
SchedulingExcludeDayTypeHOLIDAY SchedulingExcludeDayType = "HOLIDAY"
|
|
SchedulingExcludeDayTypeTIMEOFF SchedulingExcludeDayType = "TIME_OFF"
|
|
SchedulingExcludeDayTypeWEEKEND SchedulingExcludeDayType = "WEEKEND"
|
|
)
|
|
|
|
// Defines values for SchedulingSettingsDtoWhoCanCreateAssignments.
|
|
const (
|
|
ADMINS SchedulingSettingsDtoWhoCanCreateAssignments = "ADMINS"
|
|
ADMINSANDPROJECTMANAGERS SchedulingSettingsDtoWhoCanCreateAssignments = "ADMINS_AND_PROJECT_MANAGERS"
|
|
ANYONE SchedulingSettingsDtoWhoCanCreateAssignments = "ANYONE"
|
|
)
|
|
|
|
// Defines values for SchedulingUsersTotalsWithoutBillableDtoWorkingDays.
|
|
const (
|
|
SchedulingUsersTotalsWithoutBillableDtoWorkingDaysFRIDAY SchedulingUsersTotalsWithoutBillableDtoWorkingDays = "FRIDAY"
|
|
SchedulingUsersTotalsWithoutBillableDtoWorkingDaysMONDAY SchedulingUsersTotalsWithoutBillableDtoWorkingDays = "MONDAY"
|
|
SchedulingUsersTotalsWithoutBillableDtoWorkingDaysSATURDAY SchedulingUsersTotalsWithoutBillableDtoWorkingDays = "SATURDAY"
|
|
SchedulingUsersTotalsWithoutBillableDtoWorkingDaysSUNDAY SchedulingUsersTotalsWithoutBillableDtoWorkingDays = "SUNDAY"
|
|
SchedulingUsersTotalsWithoutBillableDtoWorkingDaysTHURSDAY SchedulingUsersTotalsWithoutBillableDtoWorkingDays = "THURSDAY"
|
|
SchedulingUsersTotalsWithoutBillableDtoWorkingDaysTUESDAY SchedulingUsersTotalsWithoutBillableDtoWorkingDays = "TUESDAY"
|
|
SchedulingUsersTotalsWithoutBillableDtoWorkingDaysWEDNESDAY SchedulingUsersTotalsWithoutBillableDtoWorkingDays = "WEDNESDAY"
|
|
)
|
|
|
|
// Defines values for SetWorkspaceMembershipStatusRequestMembershipStatus.
|
|
const (
|
|
SetWorkspaceMembershipStatusRequestMembershipStatusACTIVE SetWorkspaceMembershipStatusRequestMembershipStatus = "ACTIVE"
|
|
SetWorkspaceMembershipStatusRequestMembershipStatusALL SetWorkspaceMembershipStatusRequestMembershipStatus = "ALL"
|
|
SetWorkspaceMembershipStatusRequestMembershipStatusDECLINED SetWorkspaceMembershipStatusRequestMembershipStatus = "DECLINED"
|
|
SetWorkspaceMembershipStatusRequestMembershipStatusINACTIVE SetWorkspaceMembershipStatusRequestMembershipStatus = "INACTIVE"
|
|
SetWorkspaceMembershipStatusRequestMembershipStatusPENDING SetWorkspaceMembershipStatusRequestMembershipStatus = "PENDING"
|
|
)
|
|
|
|
// Defines values for StopStopwatchRequestState.
|
|
const (
|
|
STOPPED StopStopwatchRequestState = "STOPPED"
|
|
)
|
|
|
|
// Defines values for StripeInvoiceDtoCakeProduct.
|
|
const (
|
|
StripeInvoiceDtoCakeProductBUNDLE StripeInvoiceDtoCakeProduct = "BUNDLE"
|
|
StripeInvoiceDtoCakeProductCLOCKIFY StripeInvoiceDtoCakeProduct = "CLOCKIFY"
|
|
StripeInvoiceDtoCakeProductMARKETPLACE StripeInvoiceDtoCakeProduct = "MARKETPLACE"
|
|
StripeInvoiceDtoCakeProductPLAKY StripeInvoiceDtoCakeProduct = "PLAKY"
|
|
StripeInvoiceDtoCakeProductPUMBLE StripeInvoiceDtoCakeProduct = "PUMBLE"
|
|
StripeInvoiceDtoCakeProductUNKNOWN StripeInvoiceDtoCakeProduct = "UNKNOWN"
|
|
)
|
|
|
|
// Defines values for StripeInvoiceDtoDescription.
|
|
const (
|
|
StripeInvoiceDtoDescriptionADDEDSEATS StripeInvoiceDtoDescription = "ADDED_SEATS"
|
|
StripeInvoiceDtoDescriptionMONTHLYRENEWAL StripeInvoiceDtoDescription = "MONTHLY_RENEWAL"
|
|
StripeInvoiceDtoDescriptionPLANUPGRADE StripeInvoiceDtoDescription = "PLAN_UPGRADE"
|
|
StripeInvoiceDtoDescriptionREMOVEDSEATS StripeInvoiceDtoDescription = "REMOVED_SEATS"
|
|
StripeInvoiceDtoDescriptionUNKNOWN StripeInvoiceDtoDescription = "UNKNOWN"
|
|
StripeInvoiceDtoDescriptionYEARLYRENEWAL StripeInvoiceDtoDescription = "YEARLY_RENEWAL"
|
|
)
|
|
|
|
// Defines values for TaskDtoStatus.
|
|
const (
|
|
TaskDtoStatusACTIVE TaskDtoStatus = "ACTIVE"
|
|
TaskDtoStatusALL TaskDtoStatus = "ALL"
|
|
TaskDtoStatusDONE TaskDtoStatus = "DONE"
|
|
)
|
|
|
|
// Defines values for TaskDtoImplStatus.
|
|
const (
|
|
TaskDtoImplStatusACTIVE TaskDtoImplStatus = "ACTIVE"
|
|
TaskDtoImplStatusALL TaskDtoImplStatus = "ALL"
|
|
TaskDtoImplStatusDONE TaskDtoImplStatus = "DONE"
|
|
)
|
|
|
|
// Defines values for TaskFullDtoStatus.
|
|
const (
|
|
TaskFullDtoStatusACTIVE TaskFullDtoStatus = "ACTIVE"
|
|
TaskFullDtoStatusALL TaskFullDtoStatus = "ALL"
|
|
TaskFullDtoStatusDONE TaskFullDtoStatus = "DONE"
|
|
)
|
|
|
|
// Defines values for TimeEntriesPatchRequestChangeFields.
|
|
const (
|
|
TimeEntriesPatchRequestChangeFieldsBILLABLE TimeEntriesPatchRequestChangeFields = "BILLABLE"
|
|
TimeEntriesPatchRequestChangeFieldsCUSTOMFIELDS TimeEntriesPatchRequestChangeFields = "CUSTOM_FIELDS"
|
|
TimeEntriesPatchRequestChangeFieldsDATE TimeEntriesPatchRequestChangeFields = "DATE"
|
|
TimeEntriesPatchRequestChangeFieldsDESCRIPTION TimeEntriesPatchRequestChangeFields = "DESCRIPTION"
|
|
TimeEntriesPatchRequestChangeFieldsPROJECT TimeEntriesPatchRequestChangeFields = "PROJECT"
|
|
TimeEntriesPatchRequestChangeFieldsTAG TimeEntriesPatchRequestChangeFields = "TAG"
|
|
TimeEntriesPatchRequestChangeFieldsTAGADD TimeEntriesPatchRequestChangeFields = "TAG_ADD"
|
|
TimeEntriesPatchRequestChangeFieldsTASK TimeEntriesPatchRequestChangeFields = "TASK"
|
|
TimeEntriesPatchRequestChangeFieldsTIME TimeEntriesPatchRequestChangeFields = "TIME"
|
|
TimeEntriesPatchRequestChangeFieldsTIMEINTERVAL TimeEntriesPatchRequestChangeFields = "TIMEINTERVAL"
|
|
TimeEntriesPatchRequestChangeFieldsTYPE TimeEntriesPatchRequestChangeFields = "TYPE"
|
|
TimeEntriesPatchRequestChangeFieldsUSER TimeEntriesPatchRequestChangeFields = "USER"
|
|
)
|
|
|
|
// Defines values for TimeEntryDtoImplApprovalStatus.
|
|
const (
|
|
TimeEntryDtoImplApprovalStatusAPPROVED TimeEntryDtoImplApprovalStatus = "APPROVED"
|
|
TimeEntryDtoImplApprovalStatusPENDING TimeEntryDtoImplApprovalStatus = "PENDING"
|
|
TimeEntryDtoImplApprovalStatusUNSUBMITTED TimeEntryDtoImplApprovalStatus = "UNSUBMITTED"
|
|
)
|
|
|
|
// Defines values for TimeEntryFullDtoApprovalStatus.
|
|
const (
|
|
TimeEntryFullDtoApprovalStatusAPPROVED TimeEntryFullDtoApprovalStatus = "APPROVED"
|
|
TimeEntryFullDtoApprovalStatusPENDING TimeEntryFullDtoApprovalStatus = "PENDING"
|
|
TimeEntryFullDtoApprovalStatusUNSUBMITTED TimeEntryFullDtoApprovalStatus = "UNSUBMITTED"
|
|
)
|
|
|
|
// Defines values for TimeEntryInfoDtoType.
|
|
const (
|
|
TimeEntryInfoDtoTypeBREAK TimeEntryInfoDtoType = "BREAK"
|
|
TimeEntryInfoDtoTypeHOLIDAY TimeEntryInfoDtoType = "HOLIDAY"
|
|
TimeEntryInfoDtoTypeREGULAR TimeEntryInfoDtoType = "REGULAR"
|
|
TimeEntryInfoDtoTypeTIMEOFF TimeEntryInfoDtoType = "TIME_OFF"
|
|
)
|
|
|
|
// Defines values for TimeEntryUpdatedDtoApprovalStatus.
|
|
const (
|
|
TimeEntryUpdatedDtoApprovalStatusAPPROVED TimeEntryUpdatedDtoApprovalStatus = "APPROVED"
|
|
TimeEntryUpdatedDtoApprovalStatusPENDING TimeEntryUpdatedDtoApprovalStatus = "PENDING"
|
|
TimeEntryUpdatedDtoApprovalStatusUNSUBMITTED TimeEntryUpdatedDtoApprovalStatus = "UNSUBMITTED"
|
|
)
|
|
|
|
// Defines values for TimeEntryWithUsernameDtoApprovalStatus.
|
|
const (
|
|
TimeEntryWithUsernameDtoApprovalStatusAPPROVED TimeEntryWithUsernameDtoApprovalStatus = "APPROVED"
|
|
TimeEntryWithUsernameDtoApprovalStatusPENDING TimeEntryWithUsernameDtoApprovalStatus = "PENDING"
|
|
TimeEntryWithUsernameDtoApprovalStatusUNSUBMITTED TimeEntryWithUsernameDtoApprovalStatus = "UNSUBMITTED"
|
|
)
|
|
|
|
// Defines values for TimeEstimateDtoResetOption.
|
|
const (
|
|
TimeEstimateDtoResetOptionMONTHLY TimeEstimateDtoResetOption = "MONTHLY"
|
|
TimeEstimateDtoResetOptionWEEKLY TimeEstimateDtoResetOption = "WEEKLY"
|
|
TimeEstimateDtoResetOptionYEARLY TimeEstimateDtoResetOption = "YEARLY"
|
|
)
|
|
|
|
// Defines values for TimeEstimateDtoType.
|
|
const (
|
|
TimeEstimateDtoTypeAUTO TimeEstimateDtoType = "AUTO"
|
|
TimeEstimateDtoTypeMANUAL TimeEstimateDtoType = "MANUAL"
|
|
)
|
|
|
|
// Defines values for TimeEstimateRequestResetOption.
|
|
const (
|
|
TimeEstimateRequestResetOptionMONTHLY TimeEstimateRequestResetOption = "MONTHLY"
|
|
TimeEstimateRequestResetOptionWEEKLY TimeEstimateRequestResetOption = "WEEKLY"
|
|
TimeEstimateRequestResetOptionYEARLY TimeEstimateRequestResetOption = "YEARLY"
|
|
)
|
|
|
|
// Defines values for TimeEstimateRequestType.
|
|
const (
|
|
TimeEstimateRequestTypeAUTO TimeEstimateRequestType = "AUTO"
|
|
TimeEstimateRequestTypeMANUAL TimeEstimateRequestType = "MANUAL"
|
|
)
|
|
|
|
// Defines values for TimeOffRequestPeriodHalfDayPeriod.
|
|
const (
|
|
FIRSTHALF TimeOffRequestPeriodHalfDayPeriod = "FIRST_HALF"
|
|
NOTDEFINED TimeOffRequestPeriodHalfDayPeriod = "NOT_DEFINED"
|
|
SECONDHALF TimeOffRequestPeriodHalfDayPeriod = "SECOND_HALF"
|
|
)
|
|
|
|
// Defines values for TimeOffRequestStatusStatusType.
|
|
const (
|
|
TimeOffRequestStatusStatusTypeALL TimeOffRequestStatusStatusType = "ALL"
|
|
TimeOffRequestStatusStatusTypeAPPROVED TimeOffRequestStatusStatusType = "APPROVED"
|
|
TimeOffRequestStatusStatusTypePENDING TimeOffRequestStatusStatusType = "PENDING"
|
|
TimeOffRequestStatusStatusTypeREJECTED TimeOffRequestStatusStatusType = "REJECTED"
|
|
)
|
|
|
|
// Defines values for TrialActivationDataDtoFeaturesToActivate.
|
|
const (
|
|
TrialActivationDataDtoFeaturesToActivateADDTIMEFOROTHERS TrialActivationDataDtoFeaturesToActivate = "ADD_TIME_FOR_OTHERS"
|
|
TrialActivationDataDtoFeaturesToActivateADMINPANEL TrialActivationDataDtoFeaturesToActivate = "ADMIN_PANEL"
|
|
TrialActivationDataDtoFeaturesToActivateALERTS TrialActivationDataDtoFeaturesToActivate = "ALERTS"
|
|
TrialActivationDataDtoFeaturesToActivateAPPROVAL TrialActivationDataDtoFeaturesToActivate = "APPROVAL"
|
|
TrialActivationDataDtoFeaturesToActivateATTENDANCEREPORT TrialActivationDataDtoFeaturesToActivate = "ATTENDANCE_REPORT"
|
|
TrialActivationDataDtoFeaturesToActivateAUDITLOG TrialActivationDataDtoFeaturesToActivate = "AUDIT_LOG"
|
|
TrialActivationDataDtoFeaturesToActivateAUTOMATICLOCK TrialActivationDataDtoFeaturesToActivate = "AUTOMATIC_LOCK"
|
|
TrialActivationDataDtoFeaturesToActivateBRANDEDREPORTS TrialActivationDataDtoFeaturesToActivate = "BRANDED_REPORTS"
|
|
TrialActivationDataDtoFeaturesToActivateBREAKS TrialActivationDataDtoFeaturesToActivate = "BREAKS"
|
|
TrialActivationDataDtoFeaturesToActivateBULKEDIT TrialActivationDataDtoFeaturesToActivate = "BULK_EDIT"
|
|
TrialActivationDataDtoFeaturesToActivateCLIENTCURRENCY TrialActivationDataDtoFeaturesToActivate = "CLIENT_CURRENCY"
|
|
TrialActivationDataDtoFeaturesToActivateCUSTOMFIELDS TrialActivationDataDtoFeaturesToActivate = "CUSTOM_FIELDS"
|
|
TrialActivationDataDtoFeaturesToActivateCUSTOMREPORTING TrialActivationDataDtoFeaturesToActivate = "CUSTOM_REPORTING"
|
|
TrialActivationDataDtoFeaturesToActivateCUSTOMSUBDOMAIN TrialActivationDataDtoFeaturesToActivate = "CUSTOM_SUBDOMAIN"
|
|
TrialActivationDataDtoFeaturesToActivateDECIMALFORMAT TrialActivationDataDtoFeaturesToActivate = "DECIMAL_FORMAT"
|
|
TrialActivationDataDtoFeaturesToActivateDISABLEMANUALMODE TrialActivationDataDtoFeaturesToActivate = "DISABLE_MANUAL_MODE"
|
|
TrialActivationDataDtoFeaturesToActivateEDITMEMBERPROFILE TrialActivationDataDtoFeaturesToActivate = "EDIT_MEMBER_PROFILE"
|
|
TrialActivationDataDtoFeaturesToActivateEXCLUDENONBILLABLEFROMESTIMATE TrialActivationDataDtoFeaturesToActivate = "EXCLUDE_NON_BILLABLE_FROM_ESTIMATE"
|
|
TrialActivationDataDtoFeaturesToActivateEXPENSES TrialActivationDataDtoFeaturesToActivate = "EXPENSES"
|
|
TrialActivationDataDtoFeaturesToActivateFAVORITEENTRIES TrialActivationDataDtoFeaturesToActivate = "FAVORITE_ENTRIES"
|
|
TrialActivationDataDtoFeaturesToActivateFILEIMPORT TrialActivationDataDtoFeaturesToActivate = "FILE_IMPORT"
|
|
TrialActivationDataDtoFeaturesToActivateFORECASTING TrialActivationDataDtoFeaturesToActivate = "FORECASTING"
|
|
TrialActivationDataDtoFeaturesToActivateHIDEPAGES TrialActivationDataDtoFeaturesToActivate = "HIDE_PAGES"
|
|
TrialActivationDataDtoFeaturesToActivateHISTORICRATES TrialActivationDataDtoFeaturesToActivate = "HISTORIC_RATES"
|
|
TrialActivationDataDtoFeaturesToActivateINVOICEEMAILS TrialActivationDataDtoFeaturesToActivate = "INVOICE_EMAILS"
|
|
TrialActivationDataDtoFeaturesToActivateINVOICING TrialActivationDataDtoFeaturesToActivate = "INVOICING"
|
|
TrialActivationDataDtoFeaturesToActivateKIOSK TrialActivationDataDtoFeaturesToActivate = "KIOSK"
|
|
TrialActivationDataDtoFeaturesToActivateKIOSKPINREQUIRED TrialActivationDataDtoFeaturesToActivate = "KIOSK_PIN_REQUIRED"
|
|
TrialActivationDataDtoFeaturesToActivateKIOSKSESSIONDURATION TrialActivationDataDtoFeaturesToActivate = "KIOSK_SESSION_DURATION"
|
|
TrialActivationDataDtoFeaturesToActivateLABORCOST TrialActivationDataDtoFeaturesToActivate = "LABOR_COST"
|
|
TrialActivationDataDtoFeaturesToActivateLOCATIONS TrialActivationDataDtoFeaturesToActivate = "LOCATIONS"
|
|
TrialActivationDataDtoFeaturesToActivateMANAGERROLE TrialActivationDataDtoFeaturesToActivate = "MANAGER_ROLE"
|
|
TrialActivationDataDtoFeaturesToActivateMULTIFACTORAUTHENTICATION TrialActivationDataDtoFeaturesToActivate = "MULTI_FACTOR_AUTHENTICATION"
|
|
TrialActivationDataDtoFeaturesToActivatePROJECTBUDGET TrialActivationDataDtoFeaturesToActivate = "PROJECT_BUDGET"
|
|
TrialActivationDataDtoFeaturesToActivatePROJECTTEMPLATES TrialActivationDataDtoFeaturesToActivate = "PROJECT_TEMPLATES"
|
|
TrialActivationDataDtoFeaturesToActivateQUICKBOOKSINTEGRATION TrialActivationDataDtoFeaturesToActivate = "QUICKBOOKS_INTEGRATION"
|
|
TrialActivationDataDtoFeaturesToActivateRECURRINGESTIMATES TrialActivationDataDtoFeaturesToActivate = "RECURRING_ESTIMATES"
|
|
TrialActivationDataDtoFeaturesToActivateREQUIREDFIELDS TrialActivationDataDtoFeaturesToActivate = "REQUIRED_FIELDS"
|
|
TrialActivationDataDtoFeaturesToActivateSCHEDULEDREPORTS TrialActivationDataDtoFeaturesToActivate = "SCHEDULED_REPORTS"
|
|
TrialActivationDataDtoFeaturesToActivateSCHEDULING TrialActivationDataDtoFeaturesToActivate = "SCHEDULING"
|
|
TrialActivationDataDtoFeaturesToActivateSCHEDULINGFORECASTING TrialActivationDataDtoFeaturesToActivate = "SCHEDULING_FORECASTING"
|
|
TrialActivationDataDtoFeaturesToActivateSCREENSHOTS TrialActivationDataDtoFeaturesToActivate = "SCREENSHOTS"
|
|
TrialActivationDataDtoFeaturesToActivateSPLITTIMEENTRY TrialActivationDataDtoFeaturesToActivate = "SPLIT_TIME_ENTRY"
|
|
TrialActivationDataDtoFeaturesToActivateSSO TrialActivationDataDtoFeaturesToActivate = "SSO"
|
|
TrialActivationDataDtoFeaturesToActivateSUMMARYESTIMATE TrialActivationDataDtoFeaturesToActivate = "SUMMARY_ESTIMATE"
|
|
TrialActivationDataDtoFeaturesToActivateTARGETSANDREMINDERS TrialActivationDataDtoFeaturesToActivate = "TARGETS_AND_REMINDERS"
|
|
TrialActivationDataDtoFeaturesToActivateTASKRATES TrialActivationDataDtoFeaturesToActivate = "TASK_RATES"
|
|
TrialActivationDataDtoFeaturesToActivateTIMEOFF TrialActivationDataDtoFeaturesToActivate = "TIME_OFF"
|
|
TrialActivationDataDtoFeaturesToActivateTIMETRACKING TrialActivationDataDtoFeaturesToActivate = "TIME_TRACKING"
|
|
TrialActivationDataDtoFeaturesToActivateUNLIMITEDREPORTS TrialActivationDataDtoFeaturesToActivate = "UNLIMITED_REPORTS"
|
|
TrialActivationDataDtoFeaturesToActivateUSERCUSTOMFIELDS TrialActivationDataDtoFeaturesToActivate = "USER_CUSTOM_FIELDS"
|
|
TrialActivationDataDtoFeaturesToActivateWHOCANCHANGETIMEENTRYBILLABILITY TrialActivationDataDtoFeaturesToActivate = "WHO_CAN_CHANGE_TIMEENTRY_BILLABILITY"
|
|
TrialActivationDataDtoFeaturesToActivateWHOCANSEEALLTIMEENTRIES TrialActivationDataDtoFeaturesToActivate = "WHO_CAN_SEE_ALL_TIME_ENTRIES"
|
|
TrialActivationDataDtoFeaturesToActivateWHOCANSEEPROJECTSTATUS TrialActivationDataDtoFeaturesToActivate = "WHO_CAN_SEE_PROJECT_STATUS"
|
|
TrialActivationDataDtoFeaturesToActivateWHOCANSEEPUBLICPROJECTSENTRIES TrialActivationDataDtoFeaturesToActivate = "WHO_CAN_SEE_PUBLIC_PROJECTS_ENTRIES"
|
|
TrialActivationDataDtoFeaturesToActivateWHOCANSEETEAMSDASHBOARD TrialActivationDataDtoFeaturesToActivate = "WHO_CAN_SEE_TEAMS_DASHBOARD"
|
|
TrialActivationDataDtoFeaturesToActivateWORKSPACELOCKTIMEENTRIES TrialActivationDataDtoFeaturesToActivate = "WORKSPACE_LOCK_TIMEENTRIES"
|
|
TrialActivationDataDtoFeaturesToActivateWORKSPACETIMEAUDIT TrialActivationDataDtoFeaturesToActivate = "WORKSPACE_TIME_AUDIT"
|
|
TrialActivationDataDtoFeaturesToActivateWORKSPACETIMEROUNDING TrialActivationDataDtoFeaturesToActivate = "WORKSPACE_TIME_ROUNDING"
|
|
TrialActivationDataDtoFeaturesToActivateWORKSPACETRANSFER TrialActivationDataDtoFeaturesToActivate = "WORKSPACE_TRANSFER"
|
|
)
|
|
|
|
// Defines values for UpdateApprovalRequestState.
|
|
const (
|
|
UpdateApprovalRequestStateAPPROVED UpdateApprovalRequestState = "APPROVED"
|
|
UpdateApprovalRequestStatePENDING UpdateApprovalRequestState = "PENDING"
|
|
UpdateApprovalRequestStateREJECTED UpdateApprovalRequestState = "REJECTED"
|
|
UpdateApprovalRequestStateWITHDRAWNAPPROVAL UpdateApprovalRequestState = "WITHDRAWN_APPROVAL"
|
|
UpdateApprovalRequestStateWITHDRAWNSUBMISSION UpdateApprovalRequestState = "WITHDRAWN_SUBMISSION"
|
|
)
|
|
|
|
// Defines values for UpdateApprovalSettingsRequestApprovalPeriod.
|
|
const (
|
|
MONTHLY UpdateApprovalSettingsRequestApprovalPeriod = "MONTHLY"
|
|
SEMIMONTHLY UpdateApprovalSettingsRequestApprovalPeriod = "SEMI_MONTHLY"
|
|
WEEKLY UpdateApprovalSettingsRequestApprovalPeriod = "WEEKLY"
|
|
)
|
|
|
|
// Defines values for UpdateApprovalSettingsRequestApprovalRoles.
|
|
const (
|
|
UpdateApprovalSettingsRequestApprovalRolesADMIN UpdateApprovalSettingsRequestApprovalRoles = "ADMIN"
|
|
UpdateApprovalSettingsRequestApprovalRolesPROJECTMANAGER UpdateApprovalSettingsRequestApprovalRoles = "PROJECT_MANAGER"
|
|
UpdateApprovalSettingsRequestApprovalRolesTEAMMANAGER UpdateApprovalSettingsRequestApprovalRoles = "TEAM_MANAGER"
|
|
)
|
|
|
|
// Defines values for UpdateCustomFieldRequestSourceType.
|
|
const (
|
|
UpdateCustomFieldRequestSourceTypePROJECT UpdateCustomFieldRequestSourceType = "PROJECT"
|
|
UpdateCustomFieldRequestSourceTypeTIMEENTRY UpdateCustomFieldRequestSourceType = "TIMEENTRY"
|
|
UpdateCustomFieldRequestSourceTypeWORKSPACE UpdateCustomFieldRequestSourceType = "WORKSPACE"
|
|
)
|
|
|
|
// Defines values for UpdateDashboardSelectionDashboardSelection.
|
|
const (
|
|
UpdateDashboardSelectionDashboardSelectionME UpdateDashboardSelectionDashboardSelection = "ME"
|
|
UpdateDashboardSelectionDashboardSelectionTEAM UpdateDashboardSelectionDashboardSelection = "TEAM"
|
|
)
|
|
|
|
// Defines values for UpdateExpenseRequestChangeFields.
|
|
const (
|
|
UpdateExpenseRequestChangeFieldsAMOUNT UpdateExpenseRequestChangeFields = "AMOUNT"
|
|
UpdateExpenseRequestChangeFieldsBILLABLE UpdateExpenseRequestChangeFields = "BILLABLE"
|
|
UpdateExpenseRequestChangeFieldsCATEGORY UpdateExpenseRequestChangeFields = "CATEGORY"
|
|
UpdateExpenseRequestChangeFieldsDATE UpdateExpenseRequestChangeFields = "DATE"
|
|
UpdateExpenseRequestChangeFieldsFILE UpdateExpenseRequestChangeFields = "FILE"
|
|
UpdateExpenseRequestChangeFieldsNOTES UpdateExpenseRequestChangeFields = "NOTES"
|
|
UpdateExpenseRequestChangeFieldsPROJECT UpdateExpenseRequestChangeFields = "PROJECT"
|
|
UpdateExpenseRequestChangeFieldsTASK UpdateExpenseRequestChangeFields = "TASK"
|
|
UpdateExpenseRequestChangeFieldsUSER UpdateExpenseRequestChangeFields = "USER"
|
|
)
|
|
|
|
// Defines values for UpdateKioskStatusRequestStatus.
|
|
const (
|
|
UpdateKioskStatusRequestStatusACTIVE UpdateKioskStatusRequestStatus = "ACTIVE"
|
|
UpdateKioskStatusRequestStatusDELETED UpdateKioskStatusRequestStatus = "DELETED"
|
|
UpdateKioskStatusRequestStatusINACTIVE UpdateKioskStatusRequestStatus = "INACTIVE"
|
|
)
|
|
|
|
// Defines values for UpdateQuantityRequestSeatType.
|
|
const (
|
|
UpdateQuantityRequestSeatTypeLIMITED UpdateQuantityRequestSeatType = "LIMITED"
|
|
UpdateQuantityRequestSeatTypeREGULAR UpdateQuantityRequestSeatType = "REGULAR"
|
|
)
|
|
|
|
// Defines values for UpdateRoleRequestRole.
|
|
const (
|
|
OWNER UpdateRoleRequestRole = "OWNER"
|
|
PROJECTMANAGER UpdateRoleRequestRole = "PROJECT_MANAGER"
|
|
TEAMMANAGER UpdateRoleRequestRole = "TEAM_MANAGER"
|
|
WORKSPACEADMIN UpdateRoleRequestRole = "WORKSPACE_ADMIN"
|
|
)
|
|
|
|
// Defines values for UpdateWorkspaceSettingsRequestAdminOnlyPages.
|
|
const (
|
|
UpdateWorkspaceSettingsRequestAdminOnlyPagesPROJECT UpdateWorkspaceSettingsRequestAdminOnlyPages = "PROJECT"
|
|
UpdateWorkspaceSettingsRequestAdminOnlyPagesREPORTS UpdateWorkspaceSettingsRequestAdminOnlyPages = "REPORTS"
|
|
UpdateWorkspaceSettingsRequestAdminOnlyPagesTEAM UpdateWorkspaceSettingsRequestAdminOnlyPages = "TEAM"
|
|
)
|
|
|
|
// Defines values for UpdateWorkspaceSettingsRequestCurrencyFormat.
|
|
const (
|
|
UpdateWorkspaceSettingsRequestCurrencyFormatCURRENCYSPACEVALUE UpdateWorkspaceSettingsRequestCurrencyFormat = "CURRENCY_SPACE_VALUE"
|
|
UpdateWorkspaceSettingsRequestCurrencyFormatCURRENCYVALUE UpdateWorkspaceSettingsRequestCurrencyFormat = "CURRENCY_VALUE"
|
|
UpdateWorkspaceSettingsRequestCurrencyFormatVALUECURRENCY UpdateWorkspaceSettingsRequestCurrencyFormat = "VALUE_CURRENCY"
|
|
UpdateWorkspaceSettingsRequestCurrencyFormatVALUESPACECURRENCY UpdateWorkspaceSettingsRequestCurrencyFormat = "VALUE_SPACE_CURRENCY"
|
|
)
|
|
|
|
// Defines values for UpdateWorkspaceSettingsRequestDurationFormat.
|
|
const (
|
|
UpdateWorkspaceSettingsRequestDurationFormatCOMPACT UpdateWorkspaceSettingsRequestDurationFormat = "COMPACT"
|
|
UpdateWorkspaceSettingsRequestDurationFormatDECIMAL UpdateWorkspaceSettingsRequestDurationFormat = "DECIMAL"
|
|
UpdateWorkspaceSettingsRequestDurationFormatFULL UpdateWorkspaceSettingsRequestDurationFormat = "FULL"
|
|
)
|
|
|
|
// Defines values for UpdateWorkspaceSettingsRequestNumberFormat.
|
|
const (
|
|
UpdateWorkspaceSettingsRequestNumberFormatCOMMAPERIOD UpdateWorkspaceSettingsRequestNumberFormat = "COMMA_PERIOD"
|
|
UpdateWorkspaceSettingsRequestNumberFormatPERIODCOMMA UpdateWorkspaceSettingsRequestNumberFormat = "PERIOD_COMMA"
|
|
UpdateWorkspaceSettingsRequestNumberFormatQUOTATIONMARKPERIOD UpdateWorkspaceSettingsRequestNumberFormat = "QUOTATION_MARK_PERIOD"
|
|
UpdateWorkspaceSettingsRequestNumberFormatSPACECOMMA UpdateWorkspaceSettingsRequestNumberFormat = "SPACE_COMMA"
|
|
)
|
|
|
|
// Defines values for UpdateWorkspaceSettingsRequestTimeTrackingMode.
|
|
const (
|
|
UpdateWorkspaceSettingsRequestTimeTrackingModeDEFAULT UpdateWorkspaceSettingsRequestTimeTrackingMode = "DEFAULT"
|
|
UpdateWorkspaceSettingsRequestTimeTrackingModeSTOPWATCHONLY UpdateWorkspaceSettingsRequestTimeTrackingMode = "STOPWATCH_ONLY"
|
|
)
|
|
|
|
// Defines values for UserAdminDtoStatus.
|
|
const (
|
|
UserAdminDtoStatusACTIVE UserAdminDtoStatus = "ACTIVE"
|
|
UserAdminDtoStatusDELETED UserAdminDtoStatus = "DELETED"
|
|
UserAdminDtoStatusLIMITED UserAdminDtoStatus = "LIMITED"
|
|
UserAdminDtoStatusLIMITEDDELETED UserAdminDtoStatus = "LIMITED_DELETED"
|
|
UserAdminDtoStatusNOTREGISTERED UserAdminDtoStatus = "NOT_REGISTERED"
|
|
UserAdminDtoStatusPENDINGEMAILVERIFICATION UserAdminDtoStatus = "PENDING_EMAIL_VERIFICATION"
|
|
)
|
|
|
|
// Defines values for UserAssignmentsRequestStatusFilter.
|
|
const (
|
|
UserAssignmentsRequestStatusFilterALL UserAssignmentsRequestStatusFilter = "ALL"
|
|
UserAssignmentsRequestStatusFilterPUBLISHED UserAssignmentsRequestStatusFilter = "PUBLISHED"
|
|
UserAssignmentsRequestStatusFilterUNPUBLISHED UserAssignmentsRequestStatusFilter = "UNPUBLISHED"
|
|
)
|
|
|
|
// Defines values for UserDtoStatus.
|
|
const (
|
|
UserDtoStatusACTIVE UserDtoStatus = "ACTIVE"
|
|
UserDtoStatusDELETED UserDtoStatus = "DELETED"
|
|
UserDtoStatusLIMITED UserDtoStatus = "LIMITED"
|
|
UserDtoStatusLIMITEDDELETED UserDtoStatus = "LIMITED_DELETED"
|
|
UserDtoStatusNOTREGISTERED UserDtoStatus = "NOT_REGISTERED"
|
|
UserDtoStatusPENDINGEMAILVERIFICATION UserDtoStatus = "PENDING_EMAIL_VERIFICATION"
|
|
)
|
|
|
|
// Defines values for UserInfoWithMembershipStatusDtoMembershipStatus.
|
|
const (
|
|
UserInfoWithMembershipStatusDtoMembershipStatusACTIVE UserInfoWithMembershipStatusDtoMembershipStatus = "ACTIVE"
|
|
UserInfoWithMembershipStatusDtoMembershipStatusALL UserInfoWithMembershipStatusDtoMembershipStatus = "ALL"
|
|
UserInfoWithMembershipStatusDtoMembershipStatusDECLINED UserInfoWithMembershipStatusDtoMembershipStatus = "DECLINED"
|
|
UserInfoWithMembershipStatusDtoMembershipStatusINACTIVE UserInfoWithMembershipStatusDtoMembershipStatus = "INACTIVE"
|
|
UserInfoWithMembershipStatusDtoMembershipStatusPENDING UserInfoWithMembershipStatusDtoMembershipStatus = "PENDING"
|
|
)
|
|
|
|
// Defines values for UserSettingsDtoDashboardSelection.
|
|
const (
|
|
UserSettingsDtoDashboardSelectionME UserSettingsDtoDashboardSelection = "ME"
|
|
UserSettingsDtoDashboardSelectionTEAM UserSettingsDtoDashboardSelection = "TEAM"
|
|
)
|
|
|
|
// Defines values for UserSettingsDtoDashboardViewType.
|
|
const (
|
|
UserSettingsDtoDashboardViewTypeBILLABILITY UserSettingsDtoDashboardViewType = "BILLABILITY"
|
|
UserSettingsDtoDashboardViewTypePROJECT UserSettingsDtoDashboardViewType = "PROJECT"
|
|
)
|
|
|
|
// Defines values for UserSettingsDtoTheme.
|
|
const (
|
|
UserSettingsDtoThemeDARK UserSettingsDtoTheme = "DARK"
|
|
UserSettingsDtoThemeDEFAULT UserSettingsDtoTheme = "DEFAULT"
|
|
)
|
|
|
|
// Defines values for UserSettingsDtoWeekStart.
|
|
const (
|
|
UserSettingsDtoWeekStartFRIDAY UserSettingsDtoWeekStart = "FRIDAY"
|
|
UserSettingsDtoWeekStartMONDAY UserSettingsDtoWeekStart = "MONDAY"
|
|
UserSettingsDtoWeekStartSATURDAY UserSettingsDtoWeekStart = "SATURDAY"
|
|
UserSettingsDtoWeekStartSUNDAY UserSettingsDtoWeekStart = "SUNDAY"
|
|
UserSettingsDtoWeekStartTHURSDAY UserSettingsDtoWeekStart = "THURSDAY"
|
|
UserSettingsDtoWeekStartTUESDAY UserSettingsDtoWeekStart = "TUESDAY"
|
|
UserSettingsDtoWeekStartWEDNESDAY UserSettingsDtoWeekStart = "WEDNESDAY"
|
|
)
|
|
|
|
// Defines values for WalkthroughDtoUnfinished.
|
|
const (
|
|
INITIALAPPSWITCHER WalkthroughDtoUnfinished = "INITIAL_APP_SWITCHER"
|
|
)
|
|
|
|
// Defines values for WebhookDtoTriggerSourceType.
|
|
const (
|
|
WebhookDtoTriggerSourceTypeASSIGNMENTID WebhookDtoTriggerSourceType = "ASSIGNMENT_ID"
|
|
WebhookDtoTriggerSourceTypeEXPENSEID WebhookDtoTriggerSourceType = "EXPENSE_ID"
|
|
WebhookDtoTriggerSourceTypeINVOICEID WebhookDtoTriggerSourceType = "INVOICE_ID"
|
|
WebhookDtoTriggerSourceTypePROJECTID WebhookDtoTriggerSourceType = "PROJECT_ID"
|
|
WebhookDtoTriggerSourceTypeTAGID WebhookDtoTriggerSourceType = "TAG_ID"
|
|
WebhookDtoTriggerSourceTypeTASKID WebhookDtoTriggerSourceType = "TASK_ID"
|
|
WebhookDtoTriggerSourceTypeUSERGROUPID WebhookDtoTriggerSourceType = "USER_GROUP_ID"
|
|
WebhookDtoTriggerSourceTypeUSERID WebhookDtoTriggerSourceType = "USER_ID"
|
|
WebhookDtoTriggerSourceTypeWORKSPACEID WebhookDtoTriggerSourceType = "WORKSPACE_ID"
|
|
)
|
|
|
|
// Defines values for WebhookDtoWebhookEvent.
|
|
const (
|
|
WebhookDtoWebhookEventAPPROVALREQUESTSTATUSUPDATED WebhookDtoWebhookEvent = "APPROVAL_REQUEST_STATUS_UPDATED"
|
|
WebhookDtoWebhookEventASSIGNMENTCREATED WebhookDtoWebhookEvent = "ASSIGNMENT_CREATED"
|
|
WebhookDtoWebhookEventASSIGNMENTDELETED WebhookDtoWebhookEvent = "ASSIGNMENT_DELETED"
|
|
WebhookDtoWebhookEventASSIGNMENTPUBLISHED WebhookDtoWebhookEvent = "ASSIGNMENT_PUBLISHED"
|
|
WebhookDtoWebhookEventASSIGNMENTUPDATED WebhookDtoWebhookEvent = "ASSIGNMENT_UPDATED"
|
|
WebhookDtoWebhookEventBALANCEUPDATED WebhookDtoWebhookEvent = "BALANCE_UPDATED"
|
|
WebhookDtoWebhookEventCLIENTDELETED WebhookDtoWebhookEvent = "CLIENT_DELETED"
|
|
WebhookDtoWebhookEventCLIENTUPDATED WebhookDtoWebhookEvent = "CLIENT_UPDATED"
|
|
WebhookDtoWebhookEventEXPENSECREATED WebhookDtoWebhookEvent = "EXPENSE_CREATED"
|
|
WebhookDtoWebhookEventEXPENSEDELETED WebhookDtoWebhookEvent = "EXPENSE_DELETED"
|
|
WebhookDtoWebhookEventEXPENSERESTORED WebhookDtoWebhookEvent = "EXPENSE_RESTORED"
|
|
WebhookDtoWebhookEventEXPENSEUPDATED WebhookDtoWebhookEvent = "EXPENSE_UPDATED"
|
|
WebhookDtoWebhookEventINVOICEUPDATED WebhookDtoWebhookEvent = "INVOICE_UPDATED"
|
|
WebhookDtoWebhookEventNEWAPPROVALREQUEST WebhookDtoWebhookEvent = "NEW_APPROVAL_REQUEST"
|
|
WebhookDtoWebhookEventNEWCLIENT WebhookDtoWebhookEvent = "NEW_CLIENT"
|
|
WebhookDtoWebhookEventNEWINVOICE WebhookDtoWebhookEvent = "NEW_INVOICE"
|
|
WebhookDtoWebhookEventNEWPROJECT WebhookDtoWebhookEvent = "NEW_PROJECT"
|
|
WebhookDtoWebhookEventNEWTAG WebhookDtoWebhookEvent = "NEW_TAG"
|
|
WebhookDtoWebhookEventNEWTASK WebhookDtoWebhookEvent = "NEW_TASK"
|
|
WebhookDtoWebhookEventNEWTIMEENTRY WebhookDtoWebhookEvent = "NEW_TIME_ENTRY"
|
|
WebhookDtoWebhookEventNEWTIMERSTARTED WebhookDtoWebhookEvent = "NEW_TIMER_STARTED"
|
|
WebhookDtoWebhookEventRESEND WebhookDtoWebhookEvent = "RESEND"
|
|
WebhookDtoWebhookEventTAGDELETED WebhookDtoWebhookEvent = "TAG_DELETED"
|
|
WebhookDtoWebhookEventTAGUPDATED WebhookDtoWebhookEvent = "TAG_UPDATED"
|
|
WebhookDtoWebhookEventTASKDELETED WebhookDtoWebhookEvent = "TASK_DELETED"
|
|
WebhookDtoWebhookEventTASKUPDATED WebhookDtoWebhookEvent = "TASK_UPDATED"
|
|
WebhookDtoWebhookEventTEST WebhookDtoWebhookEvent = "TEST"
|
|
WebhookDtoWebhookEventTIMEENTRYDELETED WebhookDtoWebhookEvent = "TIME_ENTRY_DELETED"
|
|
WebhookDtoWebhookEventTIMEENTRYRESTORED WebhookDtoWebhookEvent = "TIME_ENTRY_RESTORED"
|
|
WebhookDtoWebhookEventTIMEENTRYSPLIT WebhookDtoWebhookEvent = "TIME_ENTRY_SPLIT"
|
|
WebhookDtoWebhookEventTIMEENTRYUPDATED WebhookDtoWebhookEvent = "TIME_ENTRY_UPDATED"
|
|
WebhookDtoWebhookEventTIMEOFFREQUESTAPPROVED WebhookDtoWebhookEvent = "TIME_OFF_REQUEST_APPROVED"
|
|
WebhookDtoWebhookEventTIMEOFFREQUESTED WebhookDtoWebhookEvent = "TIME_OFF_REQUESTED"
|
|
WebhookDtoWebhookEventTIMEOFFREQUESTREJECTED WebhookDtoWebhookEvent = "TIME_OFF_REQUEST_REJECTED"
|
|
WebhookDtoWebhookEventTIMEOFFREQUESTWITHDRAWN WebhookDtoWebhookEvent = "TIME_OFF_REQUEST_WITHDRAWN"
|
|
WebhookDtoWebhookEventTIMERSTOPPED WebhookDtoWebhookEvent = "TIMER_STOPPED"
|
|
WebhookDtoWebhookEventUSERACTIVATEDONWORKSPACE WebhookDtoWebhookEvent = "USER_ACTIVATED_ON_WORKSPACE"
|
|
WebhookDtoWebhookEventUSERDEACTIVATEDONWORKSPACE WebhookDtoWebhookEvent = "USER_DEACTIVATED_ON_WORKSPACE"
|
|
WebhookDtoWebhookEventUSERDELETEDFROMWORKSPACE WebhookDtoWebhookEvent = "USER_DELETED_FROM_WORKSPACE"
|
|
WebhookDtoWebhookEventUSEREMAILCHANGED WebhookDtoWebhookEvent = "USER_EMAIL_CHANGED"
|
|
WebhookDtoWebhookEventUSERJOINEDWORKSPACE WebhookDtoWebhookEvent = "USER_JOINED_WORKSPACE"
|
|
WebhookDtoWebhookEventUSERUPDATED WebhookDtoWebhookEvent = "USER_UPDATED"
|
|
)
|
|
|
|
// Defines values for WebhookRequestTriggerSourceType.
|
|
const (
|
|
WebhookRequestTriggerSourceTypeASSIGNMENTID WebhookRequestTriggerSourceType = "ASSIGNMENT_ID"
|
|
WebhookRequestTriggerSourceTypeEXPENSEID WebhookRequestTriggerSourceType = "EXPENSE_ID"
|
|
WebhookRequestTriggerSourceTypeINVOICEID WebhookRequestTriggerSourceType = "INVOICE_ID"
|
|
WebhookRequestTriggerSourceTypePROJECTID WebhookRequestTriggerSourceType = "PROJECT_ID"
|
|
WebhookRequestTriggerSourceTypeTAGID WebhookRequestTriggerSourceType = "TAG_ID"
|
|
WebhookRequestTriggerSourceTypeTASKID WebhookRequestTriggerSourceType = "TASK_ID"
|
|
WebhookRequestTriggerSourceTypeUSERGROUPID WebhookRequestTriggerSourceType = "USER_GROUP_ID"
|
|
WebhookRequestTriggerSourceTypeUSERID WebhookRequestTriggerSourceType = "USER_ID"
|
|
WebhookRequestTriggerSourceTypeWORKSPACEID WebhookRequestTriggerSourceType = "WORKSPACE_ID"
|
|
)
|
|
|
|
// Defines values for WebhookRequestWebhookEvent.
|
|
const (
|
|
WebhookRequestWebhookEventAPPROVALREQUESTSTATUSUPDATED WebhookRequestWebhookEvent = "APPROVAL_REQUEST_STATUS_UPDATED"
|
|
WebhookRequestWebhookEventASSIGNMENTCREATED WebhookRequestWebhookEvent = "ASSIGNMENT_CREATED"
|
|
WebhookRequestWebhookEventASSIGNMENTDELETED WebhookRequestWebhookEvent = "ASSIGNMENT_DELETED"
|
|
WebhookRequestWebhookEventASSIGNMENTPUBLISHED WebhookRequestWebhookEvent = "ASSIGNMENT_PUBLISHED"
|
|
WebhookRequestWebhookEventASSIGNMENTUPDATED WebhookRequestWebhookEvent = "ASSIGNMENT_UPDATED"
|
|
WebhookRequestWebhookEventBALANCEUPDATED WebhookRequestWebhookEvent = "BALANCE_UPDATED"
|
|
WebhookRequestWebhookEventCLIENTDELETED WebhookRequestWebhookEvent = "CLIENT_DELETED"
|
|
WebhookRequestWebhookEventCLIENTUPDATED WebhookRequestWebhookEvent = "CLIENT_UPDATED"
|
|
WebhookRequestWebhookEventEXPENSECREATED WebhookRequestWebhookEvent = "EXPENSE_CREATED"
|
|
WebhookRequestWebhookEventEXPENSEDELETED WebhookRequestWebhookEvent = "EXPENSE_DELETED"
|
|
WebhookRequestWebhookEventEXPENSERESTORED WebhookRequestWebhookEvent = "EXPENSE_RESTORED"
|
|
WebhookRequestWebhookEventEXPENSEUPDATED WebhookRequestWebhookEvent = "EXPENSE_UPDATED"
|
|
WebhookRequestWebhookEventINVOICEUPDATED WebhookRequestWebhookEvent = "INVOICE_UPDATED"
|
|
WebhookRequestWebhookEventNEWAPPROVALREQUEST WebhookRequestWebhookEvent = "NEW_APPROVAL_REQUEST"
|
|
WebhookRequestWebhookEventNEWCLIENT WebhookRequestWebhookEvent = "NEW_CLIENT"
|
|
WebhookRequestWebhookEventNEWINVOICE WebhookRequestWebhookEvent = "NEW_INVOICE"
|
|
WebhookRequestWebhookEventNEWPROJECT WebhookRequestWebhookEvent = "NEW_PROJECT"
|
|
WebhookRequestWebhookEventNEWTAG WebhookRequestWebhookEvent = "NEW_TAG"
|
|
WebhookRequestWebhookEventNEWTASK WebhookRequestWebhookEvent = "NEW_TASK"
|
|
WebhookRequestWebhookEventNEWTIMEENTRY WebhookRequestWebhookEvent = "NEW_TIME_ENTRY"
|
|
WebhookRequestWebhookEventNEWTIMERSTARTED WebhookRequestWebhookEvent = "NEW_TIMER_STARTED"
|
|
WebhookRequestWebhookEventRESEND WebhookRequestWebhookEvent = "RESEND"
|
|
WebhookRequestWebhookEventTAGDELETED WebhookRequestWebhookEvent = "TAG_DELETED"
|
|
WebhookRequestWebhookEventTAGUPDATED WebhookRequestWebhookEvent = "TAG_UPDATED"
|
|
WebhookRequestWebhookEventTASKDELETED WebhookRequestWebhookEvent = "TASK_DELETED"
|
|
WebhookRequestWebhookEventTASKUPDATED WebhookRequestWebhookEvent = "TASK_UPDATED"
|
|
WebhookRequestWebhookEventTEST WebhookRequestWebhookEvent = "TEST"
|
|
WebhookRequestWebhookEventTIMEENTRYDELETED WebhookRequestWebhookEvent = "TIME_ENTRY_DELETED"
|
|
WebhookRequestWebhookEventTIMEENTRYRESTORED WebhookRequestWebhookEvent = "TIME_ENTRY_RESTORED"
|
|
WebhookRequestWebhookEventTIMEENTRYSPLIT WebhookRequestWebhookEvent = "TIME_ENTRY_SPLIT"
|
|
WebhookRequestWebhookEventTIMEENTRYUPDATED WebhookRequestWebhookEvent = "TIME_ENTRY_UPDATED"
|
|
WebhookRequestWebhookEventTIMEOFFREQUESTAPPROVED WebhookRequestWebhookEvent = "TIME_OFF_REQUEST_APPROVED"
|
|
WebhookRequestWebhookEventTIMEOFFREQUESTED WebhookRequestWebhookEvent = "TIME_OFF_REQUESTED"
|
|
WebhookRequestWebhookEventTIMEOFFREQUESTREJECTED WebhookRequestWebhookEvent = "TIME_OFF_REQUEST_REJECTED"
|
|
WebhookRequestWebhookEventTIMEOFFREQUESTWITHDRAWN WebhookRequestWebhookEvent = "TIME_OFF_REQUEST_WITHDRAWN"
|
|
WebhookRequestWebhookEventTIMERSTOPPED WebhookRequestWebhookEvent = "TIMER_STOPPED"
|
|
WebhookRequestWebhookEventUSERACTIVATEDONWORKSPACE WebhookRequestWebhookEvent = "USER_ACTIVATED_ON_WORKSPACE"
|
|
WebhookRequestWebhookEventUSERDEACTIVATEDONWORKSPACE WebhookRequestWebhookEvent = "USER_DEACTIVATED_ON_WORKSPACE"
|
|
WebhookRequestWebhookEventUSERDELETEDFROMWORKSPACE WebhookRequestWebhookEvent = "USER_DELETED_FROM_WORKSPACE"
|
|
WebhookRequestWebhookEventUSEREMAILCHANGED WebhookRequestWebhookEvent = "USER_EMAIL_CHANGED"
|
|
WebhookRequestWebhookEventUSERJOINEDWORKSPACE WebhookRequestWebhookEvent = "USER_JOINED_WORKSPACE"
|
|
WebhookRequestWebhookEventUSERUPDATED WebhookRequestWebhookEvent = "USER_UPDATED"
|
|
)
|
|
|
|
// Defines values for WorkspaceDtoFeatureSubscriptionType.
|
|
const (
|
|
WorkspaceDtoFeatureSubscriptionTypeBASIC2021 WorkspaceDtoFeatureSubscriptionType = "BASIC_2021"
|
|
WorkspaceDtoFeatureSubscriptionTypeBASICYEAR2021 WorkspaceDtoFeatureSubscriptionType = "BASIC_YEAR_2021"
|
|
WorkspaceDtoFeatureSubscriptionTypeBUNDLE2024 WorkspaceDtoFeatureSubscriptionType = "BUNDLE_2024"
|
|
WorkspaceDtoFeatureSubscriptionTypeBUNDLEYEAR2024 WorkspaceDtoFeatureSubscriptionType = "BUNDLE_YEAR_2024"
|
|
WorkspaceDtoFeatureSubscriptionTypeENTERPRISE WorkspaceDtoFeatureSubscriptionType = "ENTERPRISE"
|
|
WorkspaceDtoFeatureSubscriptionTypeENTERPRISE2021 WorkspaceDtoFeatureSubscriptionType = "ENTERPRISE_2021"
|
|
WorkspaceDtoFeatureSubscriptionTypeENTERPRISEYEAR WorkspaceDtoFeatureSubscriptionType = "ENTERPRISE_YEAR"
|
|
WorkspaceDtoFeatureSubscriptionTypeENTERPRISEYEAR2021 WorkspaceDtoFeatureSubscriptionType = "ENTERPRISE_YEAR_2021"
|
|
WorkspaceDtoFeatureSubscriptionTypeFREE WorkspaceDtoFeatureSubscriptionType = "FREE"
|
|
WorkspaceDtoFeatureSubscriptionTypePREMIUM WorkspaceDtoFeatureSubscriptionType = "PREMIUM"
|
|
WorkspaceDtoFeatureSubscriptionTypePREMIUMYEAR WorkspaceDtoFeatureSubscriptionType = "PREMIUM_YEAR"
|
|
WorkspaceDtoFeatureSubscriptionTypePRO2021 WorkspaceDtoFeatureSubscriptionType = "PRO_2021"
|
|
WorkspaceDtoFeatureSubscriptionTypePROYEAR2021 WorkspaceDtoFeatureSubscriptionType = "PRO_YEAR_2021"
|
|
WorkspaceDtoFeatureSubscriptionTypeSELFHOSTED WorkspaceDtoFeatureSubscriptionType = "SELF_HOSTED"
|
|
WorkspaceDtoFeatureSubscriptionTypeSPECIAL WorkspaceDtoFeatureSubscriptionType = "SPECIAL"
|
|
WorkspaceDtoFeatureSubscriptionTypeSPECIALYEAR WorkspaceDtoFeatureSubscriptionType = "SPECIAL_YEAR"
|
|
WorkspaceDtoFeatureSubscriptionTypeSTANDARD2021 WorkspaceDtoFeatureSubscriptionType = "STANDARD_2021"
|
|
WorkspaceDtoFeatureSubscriptionTypeSTANDARDYEAR2021 WorkspaceDtoFeatureSubscriptionType = "STANDARD_YEAR_2021"
|
|
WorkspaceDtoFeatureSubscriptionTypeTRIAL WorkspaceDtoFeatureSubscriptionType = "TRIAL"
|
|
)
|
|
|
|
// Defines values for WorkspaceDtoFeatures.
|
|
const (
|
|
WorkspaceDtoFeaturesADDTIMEFOROTHERS WorkspaceDtoFeatures = "ADD_TIME_FOR_OTHERS"
|
|
WorkspaceDtoFeaturesADMINPANEL WorkspaceDtoFeatures = "ADMIN_PANEL"
|
|
WorkspaceDtoFeaturesALERTS WorkspaceDtoFeatures = "ALERTS"
|
|
WorkspaceDtoFeaturesAPPROVAL WorkspaceDtoFeatures = "APPROVAL"
|
|
WorkspaceDtoFeaturesATTENDANCEREPORT WorkspaceDtoFeatures = "ATTENDANCE_REPORT"
|
|
WorkspaceDtoFeaturesAUDITLOG WorkspaceDtoFeatures = "AUDIT_LOG"
|
|
WorkspaceDtoFeaturesAUTOMATICLOCK WorkspaceDtoFeatures = "AUTOMATIC_LOCK"
|
|
WorkspaceDtoFeaturesBRANDEDREPORTS WorkspaceDtoFeatures = "BRANDED_REPORTS"
|
|
WorkspaceDtoFeaturesBREAKS WorkspaceDtoFeatures = "BREAKS"
|
|
WorkspaceDtoFeaturesBULKEDIT WorkspaceDtoFeatures = "BULK_EDIT"
|
|
WorkspaceDtoFeaturesCLIENTCURRENCY WorkspaceDtoFeatures = "CLIENT_CURRENCY"
|
|
WorkspaceDtoFeaturesCUSTOMFIELDS WorkspaceDtoFeatures = "CUSTOM_FIELDS"
|
|
WorkspaceDtoFeaturesCUSTOMREPORTING WorkspaceDtoFeatures = "CUSTOM_REPORTING"
|
|
WorkspaceDtoFeaturesCUSTOMSUBDOMAIN WorkspaceDtoFeatures = "CUSTOM_SUBDOMAIN"
|
|
WorkspaceDtoFeaturesDECIMALFORMAT WorkspaceDtoFeatures = "DECIMAL_FORMAT"
|
|
WorkspaceDtoFeaturesDISABLEMANUALMODE WorkspaceDtoFeatures = "DISABLE_MANUAL_MODE"
|
|
WorkspaceDtoFeaturesEDITMEMBERPROFILE WorkspaceDtoFeatures = "EDIT_MEMBER_PROFILE"
|
|
WorkspaceDtoFeaturesEXCLUDENONBILLABLEFROMESTIMATE WorkspaceDtoFeatures = "EXCLUDE_NON_BILLABLE_FROM_ESTIMATE"
|
|
WorkspaceDtoFeaturesEXPENSES WorkspaceDtoFeatures = "EXPENSES"
|
|
WorkspaceDtoFeaturesFAVORITEENTRIES WorkspaceDtoFeatures = "FAVORITE_ENTRIES"
|
|
WorkspaceDtoFeaturesFILEIMPORT WorkspaceDtoFeatures = "FILE_IMPORT"
|
|
WorkspaceDtoFeaturesFORECASTING WorkspaceDtoFeatures = "FORECASTING"
|
|
WorkspaceDtoFeaturesHIDEPAGES WorkspaceDtoFeatures = "HIDE_PAGES"
|
|
WorkspaceDtoFeaturesHISTORICRATES WorkspaceDtoFeatures = "HISTORIC_RATES"
|
|
WorkspaceDtoFeaturesINVOICEEMAILS WorkspaceDtoFeatures = "INVOICE_EMAILS"
|
|
WorkspaceDtoFeaturesINVOICING WorkspaceDtoFeatures = "INVOICING"
|
|
WorkspaceDtoFeaturesKIOSK WorkspaceDtoFeatures = "KIOSK"
|
|
WorkspaceDtoFeaturesKIOSKPINREQUIRED WorkspaceDtoFeatures = "KIOSK_PIN_REQUIRED"
|
|
WorkspaceDtoFeaturesKIOSKSESSIONDURATION WorkspaceDtoFeatures = "KIOSK_SESSION_DURATION"
|
|
WorkspaceDtoFeaturesLABORCOST WorkspaceDtoFeatures = "LABOR_COST"
|
|
WorkspaceDtoFeaturesLOCATIONS WorkspaceDtoFeatures = "LOCATIONS"
|
|
WorkspaceDtoFeaturesMANAGERROLE WorkspaceDtoFeatures = "MANAGER_ROLE"
|
|
WorkspaceDtoFeaturesMULTIFACTORAUTHENTICATION WorkspaceDtoFeatures = "MULTI_FACTOR_AUTHENTICATION"
|
|
WorkspaceDtoFeaturesPROJECTBUDGET WorkspaceDtoFeatures = "PROJECT_BUDGET"
|
|
WorkspaceDtoFeaturesPROJECTTEMPLATES WorkspaceDtoFeatures = "PROJECT_TEMPLATES"
|
|
WorkspaceDtoFeaturesQUICKBOOKSINTEGRATION WorkspaceDtoFeatures = "QUICKBOOKS_INTEGRATION"
|
|
WorkspaceDtoFeaturesRECURRINGESTIMATES WorkspaceDtoFeatures = "RECURRING_ESTIMATES"
|
|
WorkspaceDtoFeaturesREQUIREDFIELDS WorkspaceDtoFeatures = "REQUIRED_FIELDS"
|
|
WorkspaceDtoFeaturesSCHEDULEDREPORTS WorkspaceDtoFeatures = "SCHEDULED_REPORTS"
|
|
WorkspaceDtoFeaturesSCHEDULING WorkspaceDtoFeatures = "SCHEDULING"
|
|
WorkspaceDtoFeaturesSCHEDULINGFORECASTING WorkspaceDtoFeatures = "SCHEDULING_FORECASTING"
|
|
WorkspaceDtoFeaturesSCREENSHOTS WorkspaceDtoFeatures = "SCREENSHOTS"
|
|
WorkspaceDtoFeaturesSPLITTIMEENTRY WorkspaceDtoFeatures = "SPLIT_TIME_ENTRY"
|
|
WorkspaceDtoFeaturesSSO WorkspaceDtoFeatures = "SSO"
|
|
WorkspaceDtoFeaturesSUMMARYESTIMATE WorkspaceDtoFeatures = "SUMMARY_ESTIMATE"
|
|
WorkspaceDtoFeaturesTARGETSANDREMINDERS WorkspaceDtoFeatures = "TARGETS_AND_REMINDERS"
|
|
WorkspaceDtoFeaturesTASKRATES WorkspaceDtoFeatures = "TASK_RATES"
|
|
WorkspaceDtoFeaturesTIMEOFF WorkspaceDtoFeatures = "TIME_OFF"
|
|
WorkspaceDtoFeaturesTIMETRACKING WorkspaceDtoFeatures = "TIME_TRACKING"
|
|
WorkspaceDtoFeaturesUNLIMITEDREPORTS WorkspaceDtoFeatures = "UNLIMITED_REPORTS"
|
|
WorkspaceDtoFeaturesUSERCUSTOMFIELDS WorkspaceDtoFeatures = "USER_CUSTOM_FIELDS"
|
|
WorkspaceDtoFeaturesWHOCANCHANGETIMEENTRYBILLABILITY WorkspaceDtoFeatures = "WHO_CAN_CHANGE_TIMEENTRY_BILLABILITY"
|
|
WorkspaceDtoFeaturesWHOCANSEEALLTIMEENTRIES WorkspaceDtoFeatures = "WHO_CAN_SEE_ALL_TIME_ENTRIES"
|
|
WorkspaceDtoFeaturesWHOCANSEEPROJECTSTATUS WorkspaceDtoFeatures = "WHO_CAN_SEE_PROJECT_STATUS"
|
|
WorkspaceDtoFeaturesWHOCANSEEPUBLICPROJECTSENTRIES WorkspaceDtoFeatures = "WHO_CAN_SEE_PUBLIC_PROJECTS_ENTRIES"
|
|
WorkspaceDtoFeaturesWHOCANSEETEAMSDASHBOARD WorkspaceDtoFeatures = "WHO_CAN_SEE_TEAMS_DASHBOARD"
|
|
WorkspaceDtoFeaturesWORKSPACELOCKTIMEENTRIES WorkspaceDtoFeatures = "WORKSPACE_LOCK_TIMEENTRIES"
|
|
WorkspaceDtoFeaturesWORKSPACETIMEAUDIT WorkspaceDtoFeatures = "WORKSPACE_TIME_AUDIT"
|
|
WorkspaceDtoFeaturesWORKSPACETIMEROUNDING WorkspaceDtoFeatures = "WORKSPACE_TIME_ROUNDING"
|
|
WorkspaceDtoFeaturesWORKSPACETRANSFER WorkspaceDtoFeatures = "WORKSPACE_TRANSFER"
|
|
)
|
|
|
|
// Defines values for WorkspaceOverviewDtoFeatureSubscriptionType.
|
|
const (
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypeBASIC2021 WorkspaceOverviewDtoFeatureSubscriptionType = "BASIC_2021"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypeBASICYEAR2021 WorkspaceOverviewDtoFeatureSubscriptionType = "BASIC_YEAR_2021"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypeBUNDLE2024 WorkspaceOverviewDtoFeatureSubscriptionType = "BUNDLE_2024"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypeBUNDLEYEAR2024 WorkspaceOverviewDtoFeatureSubscriptionType = "BUNDLE_YEAR_2024"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypeENTERPRISE WorkspaceOverviewDtoFeatureSubscriptionType = "ENTERPRISE"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypeENTERPRISE2021 WorkspaceOverviewDtoFeatureSubscriptionType = "ENTERPRISE_2021"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypeENTERPRISEYEAR WorkspaceOverviewDtoFeatureSubscriptionType = "ENTERPRISE_YEAR"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypeENTERPRISEYEAR2021 WorkspaceOverviewDtoFeatureSubscriptionType = "ENTERPRISE_YEAR_2021"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypeFREE WorkspaceOverviewDtoFeatureSubscriptionType = "FREE"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypePREMIUM WorkspaceOverviewDtoFeatureSubscriptionType = "PREMIUM"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypePREMIUMYEAR WorkspaceOverviewDtoFeatureSubscriptionType = "PREMIUM_YEAR"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypePRO2021 WorkspaceOverviewDtoFeatureSubscriptionType = "PRO_2021"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypePROYEAR2021 WorkspaceOverviewDtoFeatureSubscriptionType = "PRO_YEAR_2021"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypeSELFHOSTED WorkspaceOverviewDtoFeatureSubscriptionType = "SELF_HOSTED"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypeSPECIAL WorkspaceOverviewDtoFeatureSubscriptionType = "SPECIAL"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypeSPECIALYEAR WorkspaceOverviewDtoFeatureSubscriptionType = "SPECIAL_YEAR"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypeSTANDARD2021 WorkspaceOverviewDtoFeatureSubscriptionType = "STANDARD_2021"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypeSTANDARDYEAR2021 WorkspaceOverviewDtoFeatureSubscriptionType = "STANDARD_YEAR_2021"
|
|
WorkspaceOverviewDtoFeatureSubscriptionTypeTRIAL WorkspaceOverviewDtoFeatureSubscriptionType = "TRIAL"
|
|
)
|
|
|
|
// Defines values for WorkspaceOverviewDtoFeatures.
|
|
const (
|
|
WorkspaceOverviewDtoFeaturesADDTIMEFOROTHERS WorkspaceOverviewDtoFeatures = "ADD_TIME_FOR_OTHERS"
|
|
WorkspaceOverviewDtoFeaturesADMINPANEL WorkspaceOverviewDtoFeatures = "ADMIN_PANEL"
|
|
WorkspaceOverviewDtoFeaturesALERTS WorkspaceOverviewDtoFeatures = "ALERTS"
|
|
WorkspaceOverviewDtoFeaturesAPPROVAL WorkspaceOverviewDtoFeatures = "APPROVAL"
|
|
WorkspaceOverviewDtoFeaturesATTENDANCEREPORT WorkspaceOverviewDtoFeatures = "ATTENDANCE_REPORT"
|
|
WorkspaceOverviewDtoFeaturesAUDITLOG WorkspaceOverviewDtoFeatures = "AUDIT_LOG"
|
|
WorkspaceOverviewDtoFeaturesAUTOMATICLOCK WorkspaceOverviewDtoFeatures = "AUTOMATIC_LOCK"
|
|
WorkspaceOverviewDtoFeaturesBRANDEDREPORTS WorkspaceOverviewDtoFeatures = "BRANDED_REPORTS"
|
|
WorkspaceOverviewDtoFeaturesBREAKS WorkspaceOverviewDtoFeatures = "BREAKS"
|
|
WorkspaceOverviewDtoFeaturesBULKEDIT WorkspaceOverviewDtoFeatures = "BULK_EDIT"
|
|
WorkspaceOverviewDtoFeaturesCLIENTCURRENCY WorkspaceOverviewDtoFeatures = "CLIENT_CURRENCY"
|
|
WorkspaceOverviewDtoFeaturesCUSTOMFIELDS WorkspaceOverviewDtoFeatures = "CUSTOM_FIELDS"
|
|
WorkspaceOverviewDtoFeaturesCUSTOMREPORTING WorkspaceOverviewDtoFeatures = "CUSTOM_REPORTING"
|
|
WorkspaceOverviewDtoFeaturesCUSTOMSUBDOMAIN WorkspaceOverviewDtoFeatures = "CUSTOM_SUBDOMAIN"
|
|
WorkspaceOverviewDtoFeaturesDECIMALFORMAT WorkspaceOverviewDtoFeatures = "DECIMAL_FORMAT"
|
|
WorkspaceOverviewDtoFeaturesDISABLEMANUALMODE WorkspaceOverviewDtoFeatures = "DISABLE_MANUAL_MODE"
|
|
WorkspaceOverviewDtoFeaturesEDITMEMBERPROFILE WorkspaceOverviewDtoFeatures = "EDIT_MEMBER_PROFILE"
|
|
WorkspaceOverviewDtoFeaturesEXCLUDENONBILLABLEFROMESTIMATE WorkspaceOverviewDtoFeatures = "EXCLUDE_NON_BILLABLE_FROM_ESTIMATE"
|
|
WorkspaceOverviewDtoFeaturesEXPENSES WorkspaceOverviewDtoFeatures = "EXPENSES"
|
|
WorkspaceOverviewDtoFeaturesFAVORITEENTRIES WorkspaceOverviewDtoFeatures = "FAVORITE_ENTRIES"
|
|
WorkspaceOverviewDtoFeaturesFILEIMPORT WorkspaceOverviewDtoFeatures = "FILE_IMPORT"
|
|
WorkspaceOverviewDtoFeaturesFORECASTING WorkspaceOverviewDtoFeatures = "FORECASTING"
|
|
WorkspaceOverviewDtoFeaturesHIDEPAGES WorkspaceOverviewDtoFeatures = "HIDE_PAGES"
|
|
WorkspaceOverviewDtoFeaturesHISTORICRATES WorkspaceOverviewDtoFeatures = "HISTORIC_RATES"
|
|
WorkspaceOverviewDtoFeaturesINVOICEEMAILS WorkspaceOverviewDtoFeatures = "INVOICE_EMAILS"
|
|
WorkspaceOverviewDtoFeaturesINVOICING WorkspaceOverviewDtoFeatures = "INVOICING"
|
|
WorkspaceOverviewDtoFeaturesKIOSK WorkspaceOverviewDtoFeatures = "KIOSK"
|
|
WorkspaceOverviewDtoFeaturesKIOSKPINREQUIRED WorkspaceOverviewDtoFeatures = "KIOSK_PIN_REQUIRED"
|
|
WorkspaceOverviewDtoFeaturesKIOSKSESSIONDURATION WorkspaceOverviewDtoFeatures = "KIOSK_SESSION_DURATION"
|
|
WorkspaceOverviewDtoFeaturesLABORCOST WorkspaceOverviewDtoFeatures = "LABOR_COST"
|
|
WorkspaceOverviewDtoFeaturesLOCATIONS WorkspaceOverviewDtoFeatures = "LOCATIONS"
|
|
WorkspaceOverviewDtoFeaturesMANAGERROLE WorkspaceOverviewDtoFeatures = "MANAGER_ROLE"
|
|
WorkspaceOverviewDtoFeaturesMULTIFACTORAUTHENTICATION WorkspaceOverviewDtoFeatures = "MULTI_FACTOR_AUTHENTICATION"
|
|
WorkspaceOverviewDtoFeaturesPROJECTBUDGET WorkspaceOverviewDtoFeatures = "PROJECT_BUDGET"
|
|
WorkspaceOverviewDtoFeaturesPROJECTTEMPLATES WorkspaceOverviewDtoFeatures = "PROJECT_TEMPLATES"
|
|
WorkspaceOverviewDtoFeaturesQUICKBOOKSINTEGRATION WorkspaceOverviewDtoFeatures = "QUICKBOOKS_INTEGRATION"
|
|
WorkspaceOverviewDtoFeaturesRECURRINGESTIMATES WorkspaceOverviewDtoFeatures = "RECURRING_ESTIMATES"
|
|
WorkspaceOverviewDtoFeaturesREQUIREDFIELDS WorkspaceOverviewDtoFeatures = "REQUIRED_FIELDS"
|
|
WorkspaceOverviewDtoFeaturesSCHEDULEDREPORTS WorkspaceOverviewDtoFeatures = "SCHEDULED_REPORTS"
|
|
WorkspaceOverviewDtoFeaturesSCHEDULING WorkspaceOverviewDtoFeatures = "SCHEDULING"
|
|
WorkspaceOverviewDtoFeaturesSCHEDULINGFORECASTING WorkspaceOverviewDtoFeatures = "SCHEDULING_FORECASTING"
|
|
WorkspaceOverviewDtoFeaturesSCREENSHOTS WorkspaceOverviewDtoFeatures = "SCREENSHOTS"
|
|
WorkspaceOverviewDtoFeaturesSPLITTIMEENTRY WorkspaceOverviewDtoFeatures = "SPLIT_TIME_ENTRY"
|
|
WorkspaceOverviewDtoFeaturesSSO WorkspaceOverviewDtoFeatures = "SSO"
|
|
WorkspaceOverviewDtoFeaturesSUMMARYESTIMATE WorkspaceOverviewDtoFeatures = "SUMMARY_ESTIMATE"
|
|
WorkspaceOverviewDtoFeaturesTARGETSANDREMINDERS WorkspaceOverviewDtoFeatures = "TARGETS_AND_REMINDERS"
|
|
WorkspaceOverviewDtoFeaturesTASKRATES WorkspaceOverviewDtoFeatures = "TASK_RATES"
|
|
WorkspaceOverviewDtoFeaturesTIMEOFF WorkspaceOverviewDtoFeatures = "TIME_OFF"
|
|
WorkspaceOverviewDtoFeaturesTIMETRACKING WorkspaceOverviewDtoFeatures = "TIME_TRACKING"
|
|
WorkspaceOverviewDtoFeaturesUNLIMITEDREPORTS WorkspaceOverviewDtoFeatures = "UNLIMITED_REPORTS"
|
|
WorkspaceOverviewDtoFeaturesUSERCUSTOMFIELDS WorkspaceOverviewDtoFeatures = "USER_CUSTOM_FIELDS"
|
|
WorkspaceOverviewDtoFeaturesWHOCANCHANGETIMEENTRYBILLABILITY WorkspaceOverviewDtoFeatures = "WHO_CAN_CHANGE_TIMEENTRY_BILLABILITY"
|
|
WorkspaceOverviewDtoFeaturesWHOCANSEEALLTIMEENTRIES WorkspaceOverviewDtoFeatures = "WHO_CAN_SEE_ALL_TIME_ENTRIES"
|
|
WorkspaceOverviewDtoFeaturesWHOCANSEEPROJECTSTATUS WorkspaceOverviewDtoFeatures = "WHO_CAN_SEE_PROJECT_STATUS"
|
|
WorkspaceOverviewDtoFeaturesWHOCANSEEPUBLICPROJECTSENTRIES WorkspaceOverviewDtoFeatures = "WHO_CAN_SEE_PUBLIC_PROJECTS_ENTRIES"
|
|
WorkspaceOverviewDtoFeaturesWHOCANSEETEAMSDASHBOARD WorkspaceOverviewDtoFeatures = "WHO_CAN_SEE_TEAMS_DASHBOARD"
|
|
WorkspaceOverviewDtoFeaturesWORKSPACELOCKTIMEENTRIES WorkspaceOverviewDtoFeatures = "WORKSPACE_LOCK_TIMEENTRIES"
|
|
WorkspaceOverviewDtoFeaturesWORKSPACETIMEAUDIT WorkspaceOverviewDtoFeatures = "WORKSPACE_TIME_AUDIT"
|
|
WorkspaceOverviewDtoFeaturesWORKSPACETIMEROUNDING WorkspaceOverviewDtoFeatures = "WORKSPACE_TIME_ROUNDING"
|
|
WorkspaceOverviewDtoFeaturesWORKSPACETRANSFER WorkspaceOverviewDtoFeatures = "WORKSPACE_TRANSFER"
|
|
)
|
|
|
|
// Defines values for WorkspaceSettingsDtoAdminOnlyPages.
|
|
const (
|
|
WorkspaceSettingsDtoAdminOnlyPagesPROJECT WorkspaceSettingsDtoAdminOnlyPages = "PROJECT"
|
|
WorkspaceSettingsDtoAdminOnlyPagesREPORTS WorkspaceSettingsDtoAdminOnlyPages = "REPORTS"
|
|
WorkspaceSettingsDtoAdminOnlyPagesTEAM WorkspaceSettingsDtoAdminOnlyPages = "TEAM"
|
|
)
|
|
|
|
// Defines values for WorkspaceSettingsDtoCurrencyFormat.
|
|
const (
|
|
WorkspaceSettingsDtoCurrencyFormatCURRENCYSPACEVALUE WorkspaceSettingsDtoCurrencyFormat = "CURRENCY_SPACE_VALUE"
|
|
WorkspaceSettingsDtoCurrencyFormatCURRENCYVALUE WorkspaceSettingsDtoCurrencyFormat = "CURRENCY_VALUE"
|
|
WorkspaceSettingsDtoCurrencyFormatVALUECURRENCY WorkspaceSettingsDtoCurrencyFormat = "VALUE_CURRENCY"
|
|
WorkspaceSettingsDtoCurrencyFormatVALUESPACECURRENCY WorkspaceSettingsDtoCurrencyFormat = "VALUE_SPACE_CURRENCY"
|
|
)
|
|
|
|
// Defines values for WorkspaceSettingsDtoDurationFormat.
|
|
const (
|
|
WorkspaceSettingsDtoDurationFormatCOMPACT WorkspaceSettingsDtoDurationFormat = "COMPACT"
|
|
WorkspaceSettingsDtoDurationFormatDECIMAL WorkspaceSettingsDtoDurationFormat = "DECIMAL"
|
|
WorkspaceSettingsDtoDurationFormatFULL WorkspaceSettingsDtoDurationFormat = "FULL"
|
|
)
|
|
|
|
// Defines values for WorkspaceSettingsDtoNumberFormat.
|
|
const (
|
|
WorkspaceSettingsDtoNumberFormatCOMMAPERIOD WorkspaceSettingsDtoNumberFormat = "COMMA_PERIOD"
|
|
WorkspaceSettingsDtoNumberFormatPERIODCOMMA WorkspaceSettingsDtoNumberFormat = "PERIOD_COMMA"
|
|
WorkspaceSettingsDtoNumberFormatQUOTATIONMARKPERIOD WorkspaceSettingsDtoNumberFormat = "QUOTATION_MARK_PERIOD"
|
|
WorkspaceSettingsDtoNumberFormatSPACECOMMA WorkspaceSettingsDtoNumberFormat = "SPACE_COMMA"
|
|
)
|
|
|
|
// Defines values for WorkspaceSettingsDtoTimeTrackingMode.
|
|
const (
|
|
WorkspaceSettingsDtoTimeTrackingModeDEFAULT WorkspaceSettingsDtoTimeTrackingMode = "DEFAULT"
|
|
WorkspaceSettingsDtoTimeTrackingModeSTOPWATCHONLY WorkspaceSettingsDtoTimeTrackingMode = "STOPWATCH_ONLY"
|
|
)
|
|
|
|
// Defines values for WorkspaceSettingsDtoWeekStart.
|
|
const (
|
|
WorkspaceSettingsDtoWeekStartFRIDAY WorkspaceSettingsDtoWeekStart = "FRIDAY"
|
|
WorkspaceSettingsDtoWeekStartMONDAY WorkspaceSettingsDtoWeekStart = "MONDAY"
|
|
WorkspaceSettingsDtoWeekStartSATURDAY WorkspaceSettingsDtoWeekStart = "SATURDAY"
|
|
WorkspaceSettingsDtoWeekStartSUNDAY WorkspaceSettingsDtoWeekStart = "SUNDAY"
|
|
WorkspaceSettingsDtoWeekStartTHURSDAY WorkspaceSettingsDtoWeekStart = "THURSDAY"
|
|
WorkspaceSettingsDtoWeekStartTUESDAY WorkspaceSettingsDtoWeekStart = "TUESDAY"
|
|
WorkspaceSettingsDtoWeekStartWEDNESDAY WorkspaceSettingsDtoWeekStart = "WEDNESDAY"
|
|
)
|
|
|
|
// Defines values for WorkspaceSettingsDtoWorkingDays.
|
|
const (
|
|
FRIDAY WorkspaceSettingsDtoWorkingDays = "FRIDAY"
|
|
MONDAY WorkspaceSettingsDtoWorkingDays = "MONDAY"
|
|
SATURDAY WorkspaceSettingsDtoWorkingDays = "SATURDAY"
|
|
SUNDAY WorkspaceSettingsDtoWorkingDays = "SUNDAY"
|
|
THURSDAY WorkspaceSettingsDtoWorkingDays = "THURSDAY"
|
|
TUESDAY WorkspaceSettingsDtoWorkingDays = "TUESDAY"
|
|
WEDNESDAY WorkspaceSettingsDtoWorkingDays = "WEDNESDAY"
|
|
)
|
|
|
|
// Defines values for WorkspaceTransferPossibleDtoReason.
|
|
const (
|
|
WorkspaceTransferPossibleDtoReasonACCOUNTONDESTINATION WorkspaceTransferPossibleDtoReason = "ACCOUNT_ON_DESTINATION"
|
|
WorkspaceTransferPossibleDtoReasonBUNDLESUBSCRIPTION WorkspaceTransferPossibleDtoReason = "BUNDLE_SUBSCRIPTION"
|
|
WorkspaceTransferPossibleDtoReasonCAKEMIGRATION WorkspaceTransferPossibleDtoReason = "CAKE_MIGRATION"
|
|
WorkspaceTransferPossibleDtoReasonCUSTOMPRICE WorkspaceTransferPossibleDtoReason = "CUSTOM_PRICE"
|
|
WorkspaceTransferPossibleDtoReasonDEFAULT WorkspaceTransferPossibleDtoReason = "DEFAULT"
|
|
WorkspaceTransferPossibleDtoReasonNOACTIVESUBSCRIPTION WorkspaceTransferPossibleDtoReason = "NO_ACTIVE_SUBSCRIPTION"
|
|
WorkspaceTransferPossibleDtoReasonUNPAIDINVOICES WorkspaceTransferPossibleDtoReason = "UNPAID_INVOICES"
|
|
WorkspaceTransferPossibleDtoReasonWORKSPACELOCKED WorkspaceTransferPossibleDtoReason = "WORKSPACE_LOCKED"
|
|
)
|
|
|
|
// Defines values for IsAvailableParamsPinContext.
|
|
const (
|
|
IsAvailableParamsPinContextADMIN IsAvailableParamsPinContext = "ADMIN"
|
|
IsAvailableParamsPinContextINITIAL IsAvailableParamsPinContext = "INITIAL"
|
|
IsAvailableParamsPinContextUNIVERSAL IsAvailableParamsPinContext = "UNIVERSAL"
|
|
IsAvailableParamsPinContextUSER IsAvailableParamsPinContext = "USER"
|
|
)
|
|
|
|
// Defines values for GeneratePinCodeParamsContext.
|
|
const (
|
|
GeneratePinCodeParamsContextADMIN GeneratePinCodeParamsContext = "ADMIN"
|
|
GeneratePinCodeParamsContextINITIAL GeneratePinCodeParamsContext = "INITIAL"
|
|
GeneratePinCodeParamsContextUNIVERSAL GeneratePinCodeParamsContext = "UNIVERSAL"
|
|
GeneratePinCodeParamsContextUSER GeneratePinCodeParamsContext = "USER"
|
|
)
|
|
|
|
// Defines values for GetUsers3ParamsStatusFilter.
|
|
const (
|
|
GetUsers3ParamsStatusFilterALL GetUsers3ParamsStatusFilter = "ALL"
|
|
GetUsers3ParamsStatusFilterPUBLISHED GetUsers3ParamsStatusFilter = "PUBLISHED"
|
|
GetUsers3ParamsStatusFilterUNPUBLISHED GetUsers3ParamsStatusFilter = "UNPUBLISHED"
|
|
)
|
|
|
|
// Defines values for GetProjects1ParamsStatusFilter.
|
|
const (
|
|
ALL GetProjects1ParamsStatusFilter = "ALL"
|
|
PUBLISHED GetProjects1ParamsStatusFilter = "PUBLISHED"
|
|
UNPUBLISHED GetProjects1ParamsStatusFilter = "UNPUBLISHED"
|
|
)
|
|
|
|
// ABTestingDto defines model for ABTestingDto.
|
|
type ABTestingDto struct {
|
|
AbTestingEnabled *bool `json:"abTestingEnabled,omitempty"`
|
|
AbTestingType *ABTestingDtoAbTestingType `json:"abTestingType,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// ABTestingDtoAbTestingType defines model for ABTestingDto.AbTestingType.
|
|
type ABTestingDtoAbTestingType string
|
|
|
|
// ActivateTemplateRequest defines model for ActivateTemplateRequest.
|
|
type ActivateTemplateRequest struct {
|
|
ActivateOption *ActivateTemplateRequestActivateOption `json:"activateOption,omitempty"`
|
|
WeekStart openapi_types.Date `json:"weekStart"`
|
|
}
|
|
|
|
// ActivateTemplateRequestActivateOption defines model for ActivateTemplateRequest.ActivateOption.
|
|
type ActivateTemplateRequestActivateOption string
|
|
|
|
// ActiveMembersDto defines model for ActiveMembersDto.
|
|
type ActiveMembersDto struct {
|
|
ActiveLimitedMembersCount *int32 `json:"activeLimitedMembersCount,omitempty"`
|
|
ActiveMembersCount *int32 `json:"activeMembersCount,omitempty"`
|
|
OrganizationLimitedMembersCount *int32 `json:"organizationLimitedMembersCount,omitempty"`
|
|
OrganizationMembersCount *int32 `json:"organizationMembersCount,omitempty"`
|
|
}
|
|
|
|
// AddAndRemoveProjectPermissionsRequest defines model for AddAndRemoveProjectPermissionsRequest.
|
|
type AddAndRemoveProjectPermissionsRequest struct {
|
|
Permissions []string `json:"permissions"`
|
|
}
|
|
|
|
// AddEmailRequest defines model for AddEmailRequest.
|
|
type AddEmailRequest struct {
|
|
Email *string `json:"email,omitempty"`
|
|
}
|
|
|
|
// AddLimitedUserToWorkspaceRequest defines model for AddLimitedUserToWorkspaceRequest.
|
|
type AddLimitedUserToWorkspaceRequest struct {
|
|
Names []string `json:"names"`
|
|
}
|
|
|
|
// AddOrRemoveUsersFromUserGroups defines model for AddOrRemoveUsersFromUserGroups.
|
|
type AddOrRemoveUsersFromUserGroups struct {
|
|
UserGroupIds *[]string `json:"userGroupIds,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
UserIds *[]string `json:"userIds,omitempty"`
|
|
}
|
|
|
|
// AddProfilePictureRequest defines model for AddProfilePictureRequest.
|
|
type AddProfilePictureRequest struct {
|
|
ImageUrl *string `json:"imageUrl,omitempty"`
|
|
}
|
|
|
|
// AddUsersToProjectRequest defines model for AddUsersToProjectRequest.
|
|
type AddUsersToProjectRequest struct {
|
|
Exclude *bool `json:"exclude,omitempty"`
|
|
ExcludeGivenIds *bool `json:"excludeGivenIds,omitempty"`
|
|
UserGroupIds *[]string `json:"userGroupIds,omitempty"`
|
|
UserIds *[]string `json:"userIds,omitempty"`
|
|
}
|
|
|
|
// AddUsersToWorkspaceRequest defines model for AddUsersToWorkspaceRequest.
|
|
type AddUsersToWorkspaceRequest struct {
|
|
Captcha *CaptchaResponseDto `json:"captcha,omitempty"`
|
|
CaptchaValue *CaptchaResponseDto `json:"captchaValue,omitempty"`
|
|
DoNotSendEmail *bool `json:"doNotSendEmail,omitempty"`
|
|
Emails *[]string `json:"emails,omitempty"`
|
|
}
|
|
|
|
// AddonComponentDto defines model for AddonComponentDto.
|
|
type AddonComponentDto struct {
|
|
AccessLevel AddonComponentDtoAccessLevel `json:"accessLevel"`
|
|
Height *int32 `json:"height,omitempty"`
|
|
IconPath *string `json:"iconPath,omitempty"`
|
|
Label *string `json:"label,omitempty"`
|
|
Options *map[string]map[string]interface{} `json:"options,omitempty"`
|
|
Path string `json:"path"`
|
|
Type string `json:"type"`
|
|
Width *int32 `json:"width,omitempty"`
|
|
}
|
|
|
|
// AddonComponentDtoAccessLevel defines model for AddonComponentDto.AccessLevel.
|
|
type AddonComponentDtoAccessLevel string
|
|
|
|
// AddonDto defines model for AddonDto.
|
|
type AddonDto struct {
|
|
AddonApiToken *string `json:"addonApiToken,omitempty"`
|
|
AddonKey *string `json:"addonKey,omitempty"`
|
|
Components *[]AddonComponentDto `json:"components,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
IconPath *string `json:"iconPath,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
MinimalSubscriptionPlan *AddonDtoMinimalSubscriptionPlan `json:"minimalSubscriptionPlan,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
SelfHostedSettings *AddonSelfHostedSettingsDto `json:"selfHostedSettings,omitempty"`
|
|
Settings *AddonSettingsDto `json:"settings,omitempty"`
|
|
Status *AddonDtoStatus `json:"status,omitempty"`
|
|
StatusChangeDate *time.Time `json:"statusChangeDate,omitempty"`
|
|
Url *string `json:"url,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WebhookIds *[]string `json:"webhookIds,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// AddonDtoMinimalSubscriptionPlan defines model for AddonDto.MinimalSubscriptionPlan.
|
|
type AddonDtoMinimalSubscriptionPlan string
|
|
|
|
// AddonDtoStatus defines model for AddonDto.Status.
|
|
type AddonDtoStatus string
|
|
|
|
// AddonInstallRequest defines model for AddonInstallRequest.
|
|
type AddonInstallRequest struct {
|
|
ManifestUrl *Url `json:"manifestUrl,omitempty"`
|
|
Url *string `json:"url,omitempty"`
|
|
}
|
|
|
|
// AddonKeysRequest defines model for AddonKeysRequest.
|
|
type AddonKeysRequest struct {
|
|
Exclude *bool `json:"exclude,omitempty"`
|
|
Keys []string `json:"keys"`
|
|
}
|
|
|
|
// AddonSelfHostedSettingsDto defines model for AddonSelfHostedSettingsDto.
|
|
type AddonSelfHostedSettingsDto struct {
|
|
Path string `json:"path"`
|
|
}
|
|
|
|
// AddonSettingDto defines model for AddonSettingDto.
|
|
type AddonSettingDto struct {
|
|
AccessLevel string `json:"accessLevel"`
|
|
AllowedValues *[]string `json:"allowedValues,omitempty"`
|
|
Copyable *bool `json:"copyable,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
Id string `json:"id"`
|
|
Key *string `json:"key,omitempty"`
|
|
Name string `json:"name"`
|
|
Placeholder *string `json:"placeholder,omitempty"`
|
|
ReadOnly *bool `json:"readOnly,omitempty"`
|
|
Required *bool `json:"required,omitempty"`
|
|
Type AddonSettingDtoType `json:"type"`
|
|
Value map[string]interface{} `json:"value"`
|
|
}
|
|
|
|
// AddonSettingDtoType defines model for AddonSettingDto.Type.
|
|
type AddonSettingDtoType string
|
|
|
|
// AddonSettingsDto defines model for AddonSettingsDto.
|
|
type AddonSettingsDto struct {
|
|
Tabs *[]AddonSettingsTabDto `json:"tabs,omitempty"`
|
|
}
|
|
|
|
// AddonSettingsGroupDto defines model for AddonSettingsGroupDto.
|
|
type AddonSettingsGroupDto struct {
|
|
Description *string `json:"description,omitempty"`
|
|
Header *AddonSettingsHeaderDto `json:"header,omitempty"`
|
|
Id string `json:"id"`
|
|
Settings *[]AddonSettingDto `json:"settings,omitempty"`
|
|
Title string `json:"title"`
|
|
}
|
|
|
|
// AddonSettingsHeaderDto defines model for AddonSettingsHeaderDto.
|
|
type AddonSettingsHeaderDto struct {
|
|
Title string `json:"title"`
|
|
}
|
|
|
|
// AddonSettingsTabDto defines model for AddonSettingsTabDto.
|
|
type AddonSettingsTabDto struct {
|
|
Groups *[]AddonSettingsGroupDto `json:"groups,omitempty"`
|
|
Header *AddonSettingsHeaderDto `json:"header,omitempty"`
|
|
Id string `json:"id"`
|
|
Name string `json:"name"`
|
|
Settings *[]AddonSettingDto `json:"settings,omitempty"`
|
|
}
|
|
|
|
// AddonUninstallRequest defines model for AddonUninstallRequest.
|
|
type AddonUninstallRequest struct {
|
|
ManifestUrl *Url `json:"manifestUrl,omitempty"`
|
|
Url *string `json:"url,omitempty"`
|
|
}
|
|
|
|
// AddonUpdateSettingRequest defines model for AddonUpdateSettingRequest.
|
|
type AddonUpdateSettingRequest struct {
|
|
Id string `json:"id"`
|
|
Value *map[string]interface{} `json:"value,omitempty"`
|
|
}
|
|
|
|
// AddonUpdateSettingsRequest defines model for AddonUpdateSettingsRequest.
|
|
type AddonUpdateSettingsRequest struct {
|
|
Settings []AddonUpdateSettingRequest `json:"settings"`
|
|
}
|
|
|
|
// AddonUpdateStatusRequest defines model for AddonUpdateStatusRequest.
|
|
type AddonUpdateStatusRequest struct {
|
|
Status *AddonUpdateStatusRequestStatus `json:"status,omitempty"`
|
|
}
|
|
|
|
// AddonUpdateStatusRequestStatus defines model for AddonUpdateStatusRequest.Status.
|
|
type AddonUpdateStatusRequestStatus string
|
|
|
|
// AlertDto defines model for AlertDto.
|
|
type AlertDto struct {
|
|
Id *string `json:"_id,omitempty"`
|
|
AlertPerson *AlertDtoAlertPerson `json:"alertPerson,omitempty"`
|
|
AlertType *AlertDtoAlertType `json:"alertType,omitempty"`
|
|
Id1 *string `json:"id,omitempty"`
|
|
Percentage *float64 `json:"percentage,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// AlertDtoAlertPerson defines model for AlertDto.AlertPerson.
|
|
type AlertDtoAlertPerson string
|
|
|
|
// AlertDtoAlertType defines model for AlertDto.AlertType.
|
|
type AlertDtoAlertType string
|
|
|
|
// AllowedUpdates defines model for AllowedUpdates.
|
|
type AllowedUpdates struct {
|
|
ForceProjectAllowed *bool `json:"forceProjectAllowed,omitempty"`
|
|
ForceTaskAllowed *bool `json:"forceTaskAllowed,omitempty"`
|
|
}
|
|
|
|
// AmountWithCurrencyDto defines model for AmountWithCurrencyDto.
|
|
type AmountWithCurrencyDto struct {
|
|
Amount *float64 `json:"amount,omitempty"`
|
|
Currency *string `json:"currency,omitempty"`
|
|
}
|
|
|
|
// ApiKeyDto defines model for ApiKeyDto.
|
|
type ApiKeyDto struct {
|
|
Active *bool `json:"active,omitempty"`
|
|
ApiKey *string `json:"apiKey,omitempty"`
|
|
ApiKeyFirstFiveCharsPlain *string `json:"apiKeyFirstFiveCharsPlain,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IsActive *bool `json:"isActive,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
}
|
|
|
|
// AppleConfigurationDto defines model for AppleConfigurationDto.
|
|
type AppleConfigurationDto struct {
|
|
Active *bool `json:"active,omitempty"`
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
Url *string `json:"url,omitempty"`
|
|
}
|
|
|
|
// ApprovalDashboardDto defines model for ApprovalDashboardDto.
|
|
type ApprovalDashboardDto struct {
|
|
BarChartData *[]BarChartDataDto `json:"barChartData,omitempty"`
|
|
DateAndTotalTime *map[string][]TotalTimeItemDto `json:"dateAndTotalTime,omitempty"`
|
|
Dates *[]string `json:"dates,omitempty"`
|
|
ProjectCountByDate *[]int32 `json:"projectCountByDate,omitempty"`
|
|
TotalDurationByDate *[]struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"totalDurationByDate,omitempty"`
|
|
TotalTime *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"totalTime,omitempty"`
|
|
}
|
|
|
|
// ApprovalDetailsDto defines model for ApprovalDetailsDto.
|
|
type ApprovalDetailsDto struct {
|
|
ApprovalRequest *ApprovalRequestDto `json:"approvalRequest,omitempty"`
|
|
ApprovedTime *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"approvedTime,omitempty"`
|
|
ApprovedTimeOff *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"approvedTimeOff,omitempty"`
|
|
BillableAmount *float64 `json:"billableAmount,omitempty"`
|
|
BillableAmountCurrencyTotal *[]CurrencyWithAmountDto `json:"billableAmountCurrencyTotal,omitempty"`
|
|
BillableTime *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"billableTime,omitempty"`
|
|
BreakTime *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"breakTime,omitempty"`
|
|
CostAmount *float64 `json:"costAmount,omitempty"`
|
|
CostAmountCurrencyTotal *[]CurrencyWithAmountDto `json:"costAmountCurrencyTotal,omitempty"`
|
|
Entries *[]TimeEntryInfoDto `json:"entries,omitempty"`
|
|
ExpenseCurrencyTotal *[]CurrencyWithAmountDto `json:"expenseCurrencyTotal,omitempty"`
|
|
ExpenseDailyTotal *[]ExpenseDailyTotalsDto `json:"expenseDailyTotal,omitempty"`
|
|
ExpenseTotal *float64 `json:"expenseTotal,omitempty"`
|
|
Expenses *[]ExpenseHydratedDto `json:"expenses,omitempty"`
|
|
PendingTime *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"pendingTime,omitempty"`
|
|
TrackedTime *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"trackedTime,omitempty"`
|
|
}
|
|
|
|
// ApprovalGroupDto defines model for ApprovalGroupDto.
|
|
type ApprovalGroupDto struct {
|
|
Items *[]ApprovalGroupItemDto `json:"items,omitempty"`
|
|
Title *string `json:"title,omitempty"`
|
|
}
|
|
|
|
// ApprovalGroupItemDto defines model for ApprovalGroupItemDto.
|
|
type ApprovalGroupItemDto struct {
|
|
ApprovalRequestId *string `json:"approvalRequestId,omitempty"`
|
|
ApprovalState *ApprovalGroupItemDtoApprovalState `json:"approvalState,omitempty"`
|
|
ApprovedTimeOff *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"approvedTimeOff,omitempty"`
|
|
CurrencyTotal *[]CurrencyWithAmountDto `json:"currencyTotal,omitempty"`
|
|
ExpenseTotal *int64 `json:"expenseTotal,omitempty"`
|
|
Label *string `json:"label,omitempty"`
|
|
Managers *[]EntityIdNameDto `json:"managers,omitempty"`
|
|
Total *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"total,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
UserManagers *[]EntityIdNameDto `json:"userManagers,omitempty"`
|
|
}
|
|
|
|
// ApprovalGroupItemDtoApprovalState defines model for ApprovalGroupItemDto.ApprovalState.
|
|
type ApprovalGroupItemDtoApprovalState string
|
|
|
|
// ApprovalInfoDto defines model for ApprovalInfoDto.
|
|
type ApprovalInfoDto struct {
|
|
DateRange *DateRangeDto `json:"dateRange,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
WorkspaceName *string `json:"workspaceName,omitempty"`
|
|
}
|
|
|
|
// ApprovalPeriodTotalsDto defines model for ApprovalPeriodTotalsDto.
|
|
type ApprovalPeriodTotalsDto struct {
|
|
CurrencyTotal *[]CurrencyWithAmountDto `json:"currencyTotal,omitempty"`
|
|
DailyExpenseCurrencyTotals *[]ExpenseDailyTotalsDto `json:"dailyExpenseCurrencyTotals,omitempty"`
|
|
DailyExpenseTotals *map[string]int64 `json:"dailyExpenseTotals,omitempty"`
|
|
DailyTotals *map[string]struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"dailyTotals,omitempty"`
|
|
DateRange *DateRangeDto `json:"dateRange,omitempty"`
|
|
ExpenseTotal *int64 `json:"expenseTotal,omitempty"`
|
|
Total *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"total,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
UserName *string `json:"userName,omitempty"`
|
|
}
|
|
|
|
// ApprovalRequestCreatorDto defines model for ApprovalRequestCreatorDto.
|
|
type ApprovalRequestCreatorDto struct {
|
|
UserEmail *string `json:"userEmail,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
UserName *string `json:"userName,omitempty"`
|
|
}
|
|
|
|
// ApprovalRequestDto defines model for ApprovalRequestDto.
|
|
type ApprovalRequestDto struct {
|
|
ApprovalStatuses *map[string]ApprovalRequestDtoApprovalStatuses `json:"approvalStatuses,omitempty"`
|
|
Creator *ApprovalRequestCreatorDto `json:"creator,omitempty"`
|
|
DateRange *DateRangeDto `json:"dateRange,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Owner *ApprovalRequestOwnerDto `json:"owner,omitempty"`
|
|
Status *ApprovalRequestStatusDto `json:"status,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// ApprovalRequestDtoApprovalStatuses defines model for ApprovalRequestDto.ApprovalStatuses.
|
|
type ApprovalRequestDtoApprovalStatuses string
|
|
|
|
// ApprovalRequestOwnerDto defines model for ApprovalRequestOwnerDto.
|
|
type ApprovalRequestOwnerDto struct {
|
|
StartOfWeek *string `json:"startOfWeek,omitempty"`
|
|
TimeZone *string `json:"timeZone,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
UserName *string `json:"userName,omitempty"`
|
|
}
|
|
|
|
// ApprovalRequestStatusDto defines model for ApprovalRequestStatusDto.
|
|
type ApprovalRequestStatusDto struct {
|
|
Note *string `json:"note,omitempty"`
|
|
State *string `json:"state,omitempty"`
|
|
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
|
|
UpdatedBy *string `json:"updatedBy,omitempty"`
|
|
UpdatedByUserName *string `json:"updatedByUserName,omitempty"`
|
|
}
|
|
|
|
// ApprovalSettings defines model for ApprovalSettings.
|
|
type ApprovalSettings struct {
|
|
ApprovalEnabled *bool `json:"approvalEnabled,omitempty"`
|
|
ApprovalPeriod *ApprovalSettingsApprovalPeriod `json:"approvalPeriod,omitempty"`
|
|
ApprovalRoles *[]ApprovalSettingsApprovalRoles `json:"approvalRoles,omitempty"`
|
|
}
|
|
|
|
// ApprovalSettingsApprovalPeriod defines model for ApprovalSettings.ApprovalPeriod.
|
|
type ApprovalSettingsApprovalPeriod string
|
|
|
|
// ApprovalSettingsApprovalRoles defines model for ApprovalSettings.ApprovalRoles.
|
|
type ApprovalSettingsApprovalRoles string
|
|
|
|
// ApproveDto defines model for ApproveDto.
|
|
type ApproveDto struct {
|
|
// RequiresApproval Indicates whether it requires approval
|
|
RequiresApproval *bool `json:"requiresApproval,omitempty"`
|
|
|
|
// SpecificMembers Indicates whether it requires specific members
|
|
SpecificMembers *bool `json:"specificMembers,omitempty"`
|
|
|
|
// TeamManagers Indicates whether it requires team manager's approval
|
|
TeamManagers *bool `json:"teamManagers,omitempty"`
|
|
|
|
// UserIds Represents set of user's identifier across the system
|
|
UserIds *[]string `json:"userIds,omitempty"`
|
|
}
|
|
|
|
// ApproveRequestsRequest defines model for ApproveRequestsRequest.
|
|
type ApproveRequestsRequest struct {
|
|
UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"`
|
|
UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"`
|
|
}
|
|
|
|
// ArchivePermissionDto defines model for ArchivePermissionDto.
|
|
type ArchivePermissionDto struct {
|
|
CanArchiveProjects *bool `json:"canArchiveProjects,omitempty"`
|
|
HaveProjects *bool `json:"haveProjects,omitempty"`
|
|
HaveTasks *bool `json:"haveTasks,omitempty"`
|
|
}
|
|
|
|
// AssignmentCreateRequest defines model for AssignmentCreateRequest.
|
|
type AssignmentCreateRequest struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
End *string `json:"end,omitempty"`
|
|
HoursPerDay *float64 `json:"hoursPerDay,omitempty"`
|
|
IncludeNonWorkingDays *bool `json:"includeNonWorkingDays,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
Period *DateRange `json:"period,omitempty"`
|
|
ProjectId string `json:"projectId"`
|
|
Recurring *RecurringAssignmentRequest `json:"recurring,omitempty"`
|
|
RecurringAssignment *RecurringAssignmentRequest `json:"recurringAssignment,omitempty"`
|
|
Start *string `json:"start,omitempty"`
|
|
StartTime *string `json:"startTime,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
UserId string `json:"userId"`
|
|
}
|
|
|
|
// AssignmentDto defines model for AssignmentDto.
|
|
type AssignmentDto struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
BillableAmountPerDay *AmountWithCurrencyDto `json:"billableAmountPerDay,omitempty"`
|
|
CostAmountPerDay *AmountWithCurrencyDto `json:"costAmountPerDay,omitempty"`
|
|
ExcludeDays *[]SchedulingExcludeDay `json:"excludeDays,omitempty"`
|
|
HoursPerDay *float64 `json:"hoursPerDay,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IncludeNonWorkingDays *bool `json:"includeNonWorkingDays,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
Period *DateRangeDto `json:"period,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
Published *bool `json:"published,omitempty"`
|
|
Recurring *RecurringAssignmentDto `json:"recurring,omitempty"`
|
|
StartTime *string `json:"startTime,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
TaskName *string `json:"taskName,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// AssignmentHydratedDto defines model for AssignmentHydratedDto.
|
|
type AssignmentHydratedDto struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
ClientName *string `json:"clientName,omitempty"`
|
|
ExcludeDays *[]SchedulingExcludeDay `json:"excludeDays,omitempty"`
|
|
HoursPerDay *float64 `json:"hoursPerDay,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IncludeNonWorkingDays *bool `json:"includeNonWorkingDays,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
Period *DateRangeDto `json:"period,omitempty"`
|
|
ProjectArchived *bool `json:"projectArchived,omitempty"`
|
|
ProjectBillable *bool `json:"projectBillable,omitempty"`
|
|
ProjectColor *string `json:"projectColor,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
ProjectName *string `json:"projectName,omitempty"`
|
|
StartTime *string `json:"startTime,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
TaskName *string `json:"taskName,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
UserName *string `json:"userName,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// AssignmentPerDayDto defines model for AssignmentPerDayDto.
|
|
type AssignmentPerDayDto struct {
|
|
Date *time.Time `json:"date,omitempty"`
|
|
HasAssignment *bool `json:"hasAssignment,omitempty"`
|
|
}
|
|
|
|
// AssignmentPeriodRequest defines model for AssignmentPeriodRequest.
|
|
type AssignmentPeriodRequest struct {
|
|
End *string `json:"end,omitempty"`
|
|
Period *DateRange `json:"period,omitempty"`
|
|
SeriesUpdateOption *AssignmentPeriodRequestSeriesUpdateOption `json:"seriesUpdateOption,omitempty"`
|
|
Start *string `json:"start,omitempty"`
|
|
}
|
|
|
|
// AssignmentPeriodRequestSeriesUpdateOption defines model for AssignmentPeriodRequest.SeriesUpdateOption.
|
|
type AssignmentPeriodRequestSeriesUpdateOption string
|
|
|
|
// AssignmentUpdateRequest defines model for AssignmentUpdateRequest.
|
|
type AssignmentUpdateRequest struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
End *string `json:"end,omitempty"`
|
|
HoursPerDay *float64 `json:"hoursPerDay,omitempty"`
|
|
IncludeNonWorkingDays *bool `json:"includeNonWorkingDays,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
Period *DateRange `json:"period,omitempty"`
|
|
SeriesUpdateOption *AssignmentUpdateRequestSeriesUpdateOption `json:"seriesUpdateOption,omitempty"`
|
|
Start *string `json:"start,omitempty"`
|
|
StartTime *string `json:"startTime,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
}
|
|
|
|
// AssignmentUpdateRequestSeriesUpdateOption defines model for AssignmentUpdateRequest.SeriesUpdateOption.
|
|
type AssignmentUpdateRequestSeriesUpdateOption string
|
|
|
|
// AuditLogSettingsDto defines model for AuditLogSettingsDto.
|
|
type AuditLogSettingsDto struct {
|
|
AuditEnabled *bool `json:"auditEnabled,omitempty"`
|
|
ClientAuditing *bool `json:"clientAuditing,omitempty"`
|
|
ClientStartedRecording *time.Time `json:"clientStartedRecording,omitempty"`
|
|
ExpensesAuditing *bool `json:"expensesAuditing,omitempty"`
|
|
ExpensesStartedRecording *time.Time `json:"expensesStartedRecording,omitempty"`
|
|
ProjectAuditing *bool `json:"projectAuditing,omitempty"`
|
|
ProjectStartedRecording *time.Time `json:"projectStartedRecording,omitempty"`
|
|
TagAuditing *bool `json:"tagAuditing,omitempty"`
|
|
TagStartedRecording *time.Time `json:"tagStartedRecording,omitempty"`
|
|
TimeEntryAuditing *bool `json:"timeEntryAuditing,omitempty"`
|
|
TimeEntryStartedRecording *time.Time `json:"timeEntryStartedRecording,omitempty"`
|
|
}
|
|
|
|
// AuthDto defines model for AuthDto.
|
|
type AuthDto struct {
|
|
Id *string `json:"id,omitempty"`
|
|
Key *string `json:"key,omitempty"`
|
|
Memberships *[]MembershipDto `json:"memberships,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
New *bool `json:"new,omitempty"`
|
|
RefreshToken *string `json:"refreshToken,omitempty"`
|
|
Roles *[]AuthDtoRoles `json:"roles,omitempty"`
|
|
Status *AuthDtoStatus `json:"status,omitempty"`
|
|
Token *string `json:"token,omitempty"`
|
|
}
|
|
|
|
// AuthDtoRoles defines model for AuthDto.Roles.
|
|
type AuthDtoRoles string
|
|
|
|
// AuthDtoStatus defines model for AuthDto.Status.
|
|
type AuthDtoStatus string
|
|
|
|
// AuthorizationDto defines model for AuthorizationDto.
|
|
type AuthorizationDto struct {
|
|
Name *string `json:"name,omitempty"`
|
|
ObjectId *string `json:"objectId,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
}
|
|
|
|
// AuthorizationSourceDto defines model for AuthorizationSourceDto.
|
|
type AuthorizationSourceDto struct {
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Type *AuthorizationSourceDtoType `json:"type,omitempty"`
|
|
}
|
|
|
|
// AuthorizationSourceDtoType defines model for AuthorizationSourceDto.Type.
|
|
type AuthorizationSourceDtoType string
|
|
|
|
// AutomaticAccrualDto defines model for AutomaticAccrualDto.
|
|
type AutomaticAccrualDto struct {
|
|
// Amount Represents automatic accrual's amount
|
|
Amount *float64 `json:"amount,omitempty"`
|
|
|
|
// Period Represents automatic accrual's period
|
|
Period *AutomaticAccrualDtoPeriod `json:"period,omitempty"`
|
|
|
|
// TimeUnit Represents automatic accrual's time unit
|
|
TimeUnit *AutomaticAccrualDtoTimeUnit `json:"timeUnit,omitempty"`
|
|
}
|
|
|
|
// AutomaticAccrualDtoPeriod Represents automatic accrual's period
|
|
type AutomaticAccrualDtoPeriod string
|
|
|
|
// AutomaticAccrualDtoTimeUnit Represents automatic accrual's time unit
|
|
type AutomaticAccrualDtoTimeUnit string
|
|
|
|
// AutomaticAccrualRequest defines model for AutomaticAccrualRequest.
|
|
type AutomaticAccrualRequest struct {
|
|
// Amount Represents amount of automatic accrual.
|
|
Amount float64 `json:"amount"`
|
|
AmountValidForTimeUnit *bool `json:"amountValidForTimeUnit,omitempty"`
|
|
|
|
// Period Represents automatic accrual period.
|
|
Period *AutomaticAccrualRequestPeriod `json:"period,omitempty"`
|
|
|
|
// TimeUnit Represents automatic accrual time unit.
|
|
TimeUnit *AutomaticAccrualRequestTimeUnit `json:"timeUnit,omitempty"`
|
|
}
|
|
|
|
// AutomaticAccrualRequestPeriod Represents automatic accrual period.
|
|
type AutomaticAccrualRequestPeriod string
|
|
|
|
// AutomaticAccrualRequestTimeUnit Represents automatic accrual time unit.
|
|
type AutomaticAccrualRequestTimeUnit string
|
|
|
|
// AutomaticLockDto defines model for AutomaticLockDto.
|
|
type AutomaticLockDto struct {
|
|
ChangeDay *AutomaticLockDtoChangeDay `json:"changeDay,omitempty"`
|
|
ChangeHour *int32 `json:"changeHour,omitempty"`
|
|
DayOfMonth *int32 `json:"dayOfMonth,omitempty"`
|
|
FirstDay *AutomaticLockDtoFirstDay `json:"firstDay,omitempty"`
|
|
OlderThanPeriod *AutomaticLockDtoOlderThanPeriod `json:"olderThanPeriod,omitempty"`
|
|
OlderThanValue *int32 `json:"olderThanValue,omitempty"`
|
|
TimeZone *string `json:"timeZone,omitempty"`
|
|
Type *AutomaticLockDtoType `json:"type,omitempty"`
|
|
}
|
|
|
|
// AutomaticLockDtoChangeDay defines model for AutomaticLockDto.ChangeDay.
|
|
type AutomaticLockDtoChangeDay string
|
|
|
|
// AutomaticLockDtoFirstDay defines model for AutomaticLockDto.FirstDay.
|
|
type AutomaticLockDtoFirstDay string
|
|
|
|
// AutomaticLockDtoOlderThanPeriod defines model for AutomaticLockDto.OlderThanPeriod.
|
|
type AutomaticLockDtoOlderThanPeriod string
|
|
|
|
// AutomaticLockDtoType defines model for AutomaticLockDto.Type.
|
|
type AutomaticLockDtoType string
|
|
|
|
// AutomaticTimeEntryCreationDto defines model for AutomaticTimeEntryCreationDto.
|
|
type AutomaticTimeEntryCreationDto struct {
|
|
DefaultEntities *DefaultEntitiesDto `json:"defaultEntities,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
}
|
|
|
|
// AutomaticTimeEntryCreationRequest defines model for AutomaticTimeEntryCreationRequest.
|
|
type AutomaticTimeEntryCreationRequest struct {
|
|
// DefaultEntities Provides information about default project and task for automatically created time entries.
|
|
DefaultEntities DefaultEntitiesRequest `json:"defaultEntities"`
|
|
|
|
// Enabled Indicates that automatic time entry creation is enabled.
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
}
|
|
|
|
// Balance defines model for Balance.
|
|
type Balance struct {
|
|
Accrued *float64 `json:"accrued,omitempty"`
|
|
Balance *float64 `json:"balance,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
NegativeBalanceAmount *float64 `json:"negativeBalanceAmount,omitempty"`
|
|
NegativeBalanceLimit *bool `json:"negativeBalanceLimit,omitempty"`
|
|
PolicyArchived *bool `json:"policyArchived,omitempty"`
|
|
PolicyColor *string `json:"policyColor,omitempty"`
|
|
PolicyId *string `json:"policyId,omitempty"`
|
|
PolicyName *string `json:"policyName,omitempty"`
|
|
PolicyTimeUnit *string `json:"policyTimeUnit,omitempty"`
|
|
Total *float64 `json:"total,omitempty"`
|
|
Used *float64 `json:"used,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
UserImageUrl *string `json:"userImageUrl,omitempty"`
|
|
UserInactive *bool `json:"userInactive,omitempty"`
|
|
UserName *string `json:"userName,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// BalanceHistoryDto defines model for BalanceHistoryDto.
|
|
type BalanceHistoryDto struct {
|
|
Action *BalanceHistoryDtoAction `json:"action,omitempty"`
|
|
AuthorName *string `json:"authorName,omitempty"`
|
|
Balance *string `json:"balance,omitempty"`
|
|
Date *time.Time `json:"date,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
PolicyId *string `json:"policyId,omitempty"`
|
|
TimeOffPeriod *PtoRequestPeriodDto `json:"timeOffPeriod,omitempty"`
|
|
TimeUnit *BalanceHistoryDtoTimeUnit `json:"timeUnit,omitempty"`
|
|
TimeZone *string `json:"timeZone,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// BalanceHistoryDtoAction defines model for BalanceHistoryDto.Action.
|
|
type BalanceHistoryDtoAction string
|
|
|
|
// BalanceHistoryDtoTimeUnit defines model for BalanceHistoryDto.TimeUnit.
|
|
type BalanceHistoryDtoTimeUnit string
|
|
|
|
// BalancesWithCount defines model for BalancesWithCount.
|
|
type BalancesWithCount struct {
|
|
Balances *[]Balance `json:"balances,omitempty"`
|
|
Count *int32 `json:"count,omitempty"`
|
|
}
|
|
|
|
// BarChartDataDto defines model for BarChartDataDto.
|
|
type BarChartDataDto struct {
|
|
BackgroundColor *string `json:"backgroundColor,omitempty"`
|
|
ClientName *string `json:"clientName,omitempty"`
|
|
Data *[]struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"data,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
HoverBackgroundColor *string `json:"hoverBackgroundColor,omitempty"`
|
|
Label *string `json:"label,omitempty"`
|
|
}
|
|
|
|
// BillableAndCostAmountDto defines model for BillableAndCostAmountDto.
|
|
type BillableAndCostAmountDto struct {
|
|
BillableAmount *AmountWithCurrencyDto `json:"billableAmount,omitempty"`
|
|
CostAmount *AmountWithCurrencyDto `json:"costAmount,omitempty"`
|
|
}
|
|
|
|
// BillingInformationDto defines model for BillingInformationDto.
|
|
type BillingInformationDto struct {
|
|
Amount *float64 `json:"amount,omitempty"`
|
|
BillingDate *time.Time `json:"billingDate,omitempty"`
|
|
ClientSecret *string `json:"clientSecret,omitempty"`
|
|
IsChargeAutomatically *bool `json:"isChargeAutomatically,omitempty"`
|
|
IsPaid *bool `json:"isPaid,omitempty"`
|
|
LimitedAmount *float64 `json:"limitedAmount,omitempty"`
|
|
LimitedQuantity *int64 `json:"limitedQuantity,omitempty"`
|
|
NextSubscriptionType *BillingInformationDtoNextSubscriptionType `json:"nextSubscriptionType,omitempty"`
|
|
Paid *bool `json:"paid,omitempty"`
|
|
PaymentMethodId *string `json:"paymentMethodId,omitempty"`
|
|
Quantity *int64 `json:"quantity,omitempty"`
|
|
RequiresAction *bool `json:"requiresAction,omitempty"`
|
|
TotalAmount *float64 `json:"totalAmount,omitempty"`
|
|
Type *BillingInformationDtoType `json:"type,omitempty"`
|
|
UpcomingPriceDetails *UpgradePriceDto `json:"upcomingPriceDetails,omitempty"`
|
|
}
|
|
|
|
// BillingInformationDtoNextSubscriptionType defines model for BillingInformationDto.NextSubscriptionType.
|
|
type BillingInformationDtoNextSubscriptionType string
|
|
|
|
// BillingInformationDtoType defines model for BillingInformationDto.Type.
|
|
type BillingInformationDtoType string
|
|
|
|
// BreakSettingsDto defines model for BreakSettingsDto.
|
|
type BreakSettingsDto struct {
|
|
BreaksEnabled *bool `json:"breaksEnabled,omitempty"`
|
|
DefaultBreakEntities *DefaultBreakEntitiesDto `json:"defaultBreakEntities,omitempty"`
|
|
}
|
|
|
|
// BreakSettingsRequest defines model for BreakSettingsRequest.
|
|
type BreakSettingsRequest struct {
|
|
BreaksEnabled *bool `json:"breaksEnabled,omitempty"`
|
|
DefaultBreakEntities *DefaultBreakEntitiesRequest `json:"defaultBreakEntities,omitempty"`
|
|
}
|
|
|
|
// BulkEditUsersRequest defines model for BulkEditUsersRequest.
|
|
type BulkEditUsersRequest struct {
|
|
BillableRate *HourlyRateRequest `json:"billableRate,omitempty"`
|
|
CostRate *CostRateRequest `json:"costRate,omitempty"`
|
|
HourlyRate *HourlyRateRequest `json:"hourlyRate,omitempty"`
|
|
Statuses *[]string `json:"statuses,omitempty"`
|
|
|
|
// UserCustomFields Represents a list of upsert user custom field request.
|
|
UserCustomFields *[]UpsertUserCustomFieldRequest `json:"userCustomFields,omitempty"`
|
|
|
|
// UserIds Represents a unique list of user ids.
|
|
UserIds []string `json:"userIds"`
|
|
|
|
// WeekStart Represents a day of the week.
|
|
WeekStart *DayOfWeek `json:"weekStart,omitempty"`
|
|
|
|
// WorkCapacity Represents work capacity as duration.
|
|
WorkCapacity *string `json:"workCapacity,omitempty"`
|
|
|
|
// WorkingDays Represents a day of the week.
|
|
WorkingDays *DayOfWeek `json:"workingDays,omitempty"`
|
|
}
|
|
|
|
// BulkProjectEditDto defines model for BulkProjectEditDto.
|
|
type BulkProjectEditDto struct {
|
|
BulkTaskEditResult *BulkTaskEditResultDto `json:"bulkTaskEditResult,omitempty"`
|
|
Projects *[]ProjectDtoImpl `json:"projects,omitempty"`
|
|
}
|
|
|
|
// BulkTaskEditResultDto defines model for BulkTaskEditResultDto.
|
|
type BulkTaskEditResultDto struct {
|
|
AllTasksOverwrittenSuccessfully *bool `json:"allTasksOverwrittenSuccessfully,omitempty"`
|
|
Reasons *[]string `json:"reasons,omitempty"`
|
|
}
|
|
|
|
// BulkTaskInfoRequest defines model for BulkTaskInfoRequest.
|
|
type BulkTaskInfoRequest struct {
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// BulkUpdateCompaniesRequest defines model for BulkUpdateCompaniesRequest.
|
|
type BulkUpdateCompaniesRequest struct {
|
|
Companies *[]CompanyRequest `json:"companies,omitempty"`
|
|
CompaniesForCreate *[]CompanyRequest `json:"companiesForCreate,omitempty"`
|
|
CompaniesForUpdate *[]CompanyRequest `json:"companiesForUpdate,omitempty"`
|
|
}
|
|
|
|
// BulkUpdateKioskDefaultsRequest defines model for BulkUpdateKioskDefaultsRequest.
|
|
type BulkUpdateKioskDefaultsRequest struct {
|
|
KioskIds *[]string `json:"kioskIds,omitempty"`
|
|
Kiosks *[]KioskDefault `json:"kiosks,omitempty"`
|
|
ProjectIds *[]string `json:"projectIds,omitempty"`
|
|
TaskIds *[]string `json:"taskIds,omitempty"`
|
|
}
|
|
|
|
// CakeOrganization defines model for CakeOrganization.
|
|
type CakeOrganization struct {
|
|
CakeOrganizationId *string `json:"cakeOrganizationId,omitempty"`
|
|
CakeOrganizationName *string `json:"cakeOrganizationName,omitempty"`
|
|
CakeOrganizationPermissions *[]string `json:"cakeOrganizationPermissions,omitempty"`
|
|
}
|
|
|
|
// CakeUserInfo defines model for CakeUserInfo.
|
|
type CakeUserInfo struct {
|
|
Email *string `json:"email,omitempty"`
|
|
IsTermsAccepted *bool `json:"isTermsAccepted,omitempty"`
|
|
UserName *string `json:"userName,omitempty"`
|
|
}
|
|
|
|
// CancellationReasonDto defines model for CancellationReasonDto.
|
|
type CancellationReasonDto struct {
|
|
AdditionalMessage *string `json:"additionalMessage,omitempty"`
|
|
InitialReason *string `json:"initialReason,omitempty"`
|
|
Message *string `json:"message,omitempty"`
|
|
MovingToAnotherTool *string `json:"movingToAnotherTool,omitempty"`
|
|
NoLongerNeedReason *string `json:"noLongerNeedReason,omitempty"`
|
|
SelectedTool *string `json:"selectedTool,omitempty"`
|
|
}
|
|
|
|
// CaptchaResponseDto defines model for CaptchaResponseDto.
|
|
type CaptchaResponseDto struct {
|
|
Response *string `json:"response,omitempty"`
|
|
Version *string `json:"version,omitempty"`
|
|
}
|
|
|
|
// ChangeBalanceRequest defines model for ChangeBalanceRequest.
|
|
type ChangeBalanceRequest struct {
|
|
Note *string `json:"note,omitempty"`
|
|
UserIds []string `json:"userIds"`
|
|
Value float64 `json:"value"`
|
|
}
|
|
|
|
// ChangeEmailRequest defines model for ChangeEmailRequest.
|
|
type ChangeEmailRequest struct {
|
|
// Email Represents email address of the user.
|
|
Email string `json:"email"`
|
|
}
|
|
|
|
// ChangeInvoiceStatusRequest defines model for ChangeInvoiceStatusRequest.
|
|
type ChangeInvoiceStatusRequest struct {
|
|
InvoiceStatus *ChangeInvoiceStatusRequestInvoiceStatus `json:"invoiceStatus,omitempty"`
|
|
}
|
|
|
|
// ChangeInvoiceStatusRequestInvoiceStatus defines model for ChangeInvoiceStatusRequest.InvoiceStatus.
|
|
type ChangeInvoiceStatusRequestInvoiceStatus string
|
|
|
|
// ChangeUsernameRequest defines model for ChangeUsernameRequest.
|
|
type ChangeUsernameRequest struct {
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// CheckUsersResponse defines model for CheckUsersResponse.
|
|
type CheckUsersResponse struct {
|
|
WorkspaceNonMembers *[]string `json:"workspaceNonMembers,omitempty"`
|
|
}
|
|
|
|
// ClientDto defines model for ClientDto.
|
|
type ClientDto struct {
|
|
Address *string `json:"address,omitempty"`
|
|
Archived *bool `json:"archived,omitempty"`
|
|
CurrencyId *string `json:"currencyId,omitempty"`
|
|
Email *string `json:"email,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// ClientIdsRequest defines model for ClientIdsRequest.
|
|
type ClientIdsRequest struct {
|
|
ExcludedIds *[]string `json:"excludedIds,omitempty"`
|
|
Ids *[]string `json:"ids,omitempty"`
|
|
}
|
|
|
|
// ClientWithCurrencyDto defines model for ClientWithCurrencyDto.
|
|
type ClientWithCurrencyDto struct {
|
|
Address *string `json:"address,omitempty"`
|
|
Archived *bool `json:"archived,omitempty"`
|
|
CurrencyCode *string `json:"currencyCode,omitempty"`
|
|
CurrencyId *string `json:"currencyId,omitempty"`
|
|
Email *string `json:"email,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// CompanyDto defines model for CompanyDto.
|
|
type CompanyDto struct {
|
|
Address *string `json:"address,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IsDefault *bool `json:"isDefault,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// CompanyRequest defines model for CompanyRequest.
|
|
type CompanyRequest struct {
|
|
Address *string `json:"address,omitempty"`
|
|
Default *bool `json:"default,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IsDefault *bool `json:"isDefault,omitempty"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// ContainsArchivedFilterRequest defines model for ContainsArchivedFilterRequest.
|
|
type ContainsArchivedFilterRequest struct {
|
|
// Contains Filter type.
|
|
Contains *ContainsArchivedFilterRequestContains `json:"contains,omitempty"`
|
|
|
|
// Ids Represents a list of filter identifiers.
|
|
Ids *[]string `json:"ids,omitempty"`
|
|
|
|
// Status Filters entities by status.
|
|
Status *ContainsArchivedFilterRequestStatus `json:"status,omitempty"`
|
|
}
|
|
|
|
// ContainsArchivedFilterRequestContains Filter type.
|
|
type ContainsArchivedFilterRequestContains string
|
|
|
|
// ContainsArchivedFilterRequestStatus Filters entities by status.
|
|
type ContainsArchivedFilterRequestStatus string
|
|
|
|
// ContainsClientsFilterRequest defines model for ContainsClientsFilterRequest.
|
|
type ContainsClientsFilterRequest struct {
|
|
// Contains Filter type.
|
|
Contains *ContainsClientsFilterRequestContains `json:"contains,omitempty"`
|
|
|
|
// Ids Represents a list of filter identifiers.
|
|
Ids *[]string `json:"ids,omitempty"`
|
|
|
|
// Status Filters entities by status.
|
|
Status *ContainsClientsFilterRequestStatus `json:"status,omitempty"`
|
|
}
|
|
|
|
// ContainsClientsFilterRequestContains Filter type.
|
|
type ContainsClientsFilterRequestContains string
|
|
|
|
// ContainsClientsFilterRequestStatus Filters entities by status.
|
|
type ContainsClientsFilterRequestStatus string
|
|
|
|
// ContainsCompaniesFilterRequest defines model for ContainsCompaniesFilterRequest.
|
|
type ContainsCompaniesFilterRequest struct {
|
|
// Contains Filter type.
|
|
Contains *ContainsCompaniesFilterRequestContains `json:"contains,omitempty"`
|
|
|
|
// Ids Represents a list of filter identifiers.
|
|
Ids *[]string `json:"ids,omitempty"`
|
|
|
|
// Status Filters entities by status.
|
|
Status *ContainsCompaniesFilterRequestStatus `json:"status,omitempty"`
|
|
}
|
|
|
|
// ContainsCompaniesFilterRequestContains Filter type.
|
|
type ContainsCompaniesFilterRequestContains string
|
|
|
|
// ContainsCompaniesFilterRequestStatus Filters entities by status.
|
|
type ContainsCompaniesFilterRequestStatus string
|
|
|
|
// ContainsFilterRequest defines model for ContainsFilterRequest.
|
|
type ContainsFilterRequest struct {
|
|
Contains *ContainsFilterRequestContains `json:"contains,omitempty"`
|
|
|
|
// Ids Represents ids upon which filtering is performed.
|
|
Ids *[]string `json:"ids,omitempty"`
|
|
|
|
// Status Represents user status.
|
|
Status *ContainsFilterRequestStatus `json:"status,omitempty"`
|
|
}
|
|
|
|
// ContainsFilterRequestContains defines model for ContainsFilterRequest.Contains.
|
|
type ContainsFilterRequestContains string
|
|
|
|
// ContainsFilterRequestStatus Represents user status.
|
|
type ContainsFilterRequestStatus string
|
|
|
|
// ContainsProjectsFilterRequest defines model for ContainsProjectsFilterRequest.
|
|
type ContainsProjectsFilterRequest struct {
|
|
// Contains Filter type.
|
|
Contains *ContainsProjectsFilterRequestContains `json:"contains,omitempty"`
|
|
|
|
// Ids Represents a list of filter identifiers.
|
|
Ids *[]string `json:"ids,omitempty"`
|
|
|
|
// Status Filters entities by status.
|
|
Status *ContainsProjectsFilterRequestStatus `json:"status,omitempty"`
|
|
}
|
|
|
|
// ContainsProjectsFilterRequestContains Filter type.
|
|
type ContainsProjectsFilterRequestContains string
|
|
|
|
// ContainsProjectsFilterRequestStatus Filters entities by status.
|
|
type ContainsProjectsFilterRequestStatus string
|
|
|
|
// ContainsUserGroupFilterRequest defines model for ContainsUserGroupFilterRequest.
|
|
type ContainsUserGroupFilterRequest struct {
|
|
// Contains Filter type.
|
|
Contains *ContainsUserGroupFilterRequestContains `json:"contains,omitempty"`
|
|
|
|
// Ids Represents a list of filter identifiers.
|
|
Ids *[]string `json:"ids,omitempty"`
|
|
|
|
// Status Filters entities by status.
|
|
Status *ContainsUserGroupFilterRequestStatus `json:"status,omitempty"`
|
|
}
|
|
|
|
// ContainsUserGroupFilterRequestContains Filter type.
|
|
type ContainsUserGroupFilterRequestContains string
|
|
|
|
// ContainsUserGroupFilterRequestStatus Filters entities by status.
|
|
type ContainsUserGroupFilterRequestStatus string
|
|
|
|
// ContainsUsersFilterRequest defines model for ContainsUsersFilterRequest.
|
|
type ContainsUsersFilterRequest struct {
|
|
ArchivedFilterValue *bool `json:"archivedFilterValue,omitempty"`
|
|
|
|
// Contains Filter type.
|
|
Contains *ContainsUsersFilterRequestContains `json:"contains,omitempty"`
|
|
|
|
// Ids Represents a list of filter identifiers.
|
|
Ids *[]string `json:"ids,omitempty"`
|
|
SourceType *ContainsUsersFilterRequestSourceType `json:"sourceType,omitempty"`
|
|
|
|
// Status Filters entities by status.
|
|
Status *ContainsUsersFilterRequestStatus `json:"status,omitempty"`
|
|
Statuses *[]ContainsUsersFilterRequestStatuses `json:"statuses,omitempty"`
|
|
}
|
|
|
|
// ContainsUsersFilterRequestContains Filter type.
|
|
type ContainsUsersFilterRequestContains string
|
|
|
|
// ContainsUsersFilterRequestSourceType defines model for ContainsUsersFilterRequest.SourceType.
|
|
type ContainsUsersFilterRequestSourceType string
|
|
|
|
// ContainsUsersFilterRequestStatus Filters entities by status.
|
|
type ContainsUsersFilterRequestStatus string
|
|
|
|
// ContainsUsersFilterRequestStatuses defines model for ContainsUsersFilterRequest.Statuses.
|
|
type ContainsUsersFilterRequestStatuses string
|
|
|
|
// ContainsUsersFilterRequestForHoliday defines model for ContainsUsersFilterRequestForHoliday.
|
|
type ContainsUsersFilterRequestForHoliday struct {
|
|
// Contains Filter type.
|
|
Contains *ContainsUsersFilterRequestForHolidayContains `json:"contains,omitempty"`
|
|
|
|
// Ids Represents a list of filter identifiers.
|
|
Ids *[]string `json:"ids,omitempty"`
|
|
|
|
// Status Filters entities by status.
|
|
Status *ContainsUsersFilterRequestForHolidayStatus `json:"status,omitempty"`
|
|
Statuses *[]string `json:"statuses,omitempty"`
|
|
}
|
|
|
|
// ContainsUsersFilterRequestForHolidayContains Filter type.
|
|
type ContainsUsersFilterRequestForHolidayContains string
|
|
|
|
// ContainsUsersFilterRequestForHolidayStatus Filters entities by status.
|
|
type ContainsUsersFilterRequestForHolidayStatus string
|
|
|
|
// CopiedEntriesDto defines model for CopiedEntriesDto.
|
|
type CopiedEntriesDto struct {
|
|
EntriesCreated *[]TimeEntryWithCustomFieldsDto `json:"entriesCreated,omitempty"`
|
|
EntriesSkipped *int32 `json:"entriesSkipped,omitempty"`
|
|
}
|
|
|
|
// CopyAssignmentRequest defines model for CopyAssignmentRequest.
|
|
type CopyAssignmentRequest struct {
|
|
SeriesUpdateOption *CopyAssignmentRequestSeriesUpdateOption `json:"seriesUpdateOption,omitempty"`
|
|
UserId string `json:"userId"`
|
|
}
|
|
|
|
// CopyAssignmentRequestSeriesUpdateOption defines model for CopyAssignmentRequest.SeriesUpdateOption.
|
|
type CopyAssignmentRequestSeriesUpdateOption string
|
|
|
|
// CopyEntriesRequest defines model for CopyEntriesRequest.
|
|
type CopyEntriesRequest struct {
|
|
DayOffset *int32 `json:"dayOffset,omitempty"`
|
|
End *time.Time `json:"end,omitempty"`
|
|
Start *time.Time `json:"start,omitempty"`
|
|
}
|
|
|
|
// CostRateRequest defines model for CostRateRequest.
|
|
type CostRateRequest struct {
|
|
// Amount Represents an amount as integer.
|
|
Amount *int32 `json:"amount,omitempty"`
|
|
|
|
// Since Represents a datetime in yyyy-MM-ddThh:mm:ssZ format.
|
|
Since *string `json:"since,omitempty"`
|
|
SinceAsInstant *time.Time `json:"sinceAsInstant,omitempty"`
|
|
}
|
|
|
|
// CreateAlertRequest defines model for CreateAlertRequest.
|
|
type CreateAlertRequest struct {
|
|
AlertPerson *CreateAlertRequestAlertPerson `json:"alertPerson,omitempty"`
|
|
AlertType *CreateAlertRequestAlertType `json:"alertType,omitempty"`
|
|
Percentage *float64 `json:"percentage,omitempty"`
|
|
}
|
|
|
|
// CreateAlertRequestAlertPerson defines model for CreateAlertRequest.AlertPerson.
|
|
type CreateAlertRequestAlertPerson string
|
|
|
|
// CreateAlertRequestAlertType defines model for CreateAlertRequest.AlertType.
|
|
type CreateAlertRequestAlertType string
|
|
|
|
// CreateApprovalRequest defines model for CreateApprovalRequest.
|
|
type CreateApprovalRequest struct {
|
|
// Period Specifies the approval period. It has to match the workspace approval period setting.
|
|
Period *CreateApprovalRequestPeriod `json:"period,omitempty"`
|
|
|
|
// PeriodStart Specifies an approval period start date in yyyy-MM-ddThh:mm:ssZ format.
|
|
PeriodStart string `json:"periodStart"`
|
|
}
|
|
|
|
// CreateApprovalRequestPeriod Specifies the approval period. It has to match the workspace approval period setting.
|
|
type CreateApprovalRequestPeriod string
|
|
|
|
// CreateClientRequest defines model for CreateClientRequest.
|
|
type CreateClientRequest struct {
|
|
Address *string `json:"address,omitempty"`
|
|
Email *string `json:"email,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
}
|
|
|
|
// CreateCurrencyRequest defines model for CreateCurrencyRequest.
|
|
type CreateCurrencyRequest struct {
|
|
Code string `json:"code"`
|
|
}
|
|
|
|
// CreateCustomAttributeRequest defines model for CreateCustomAttributeRequest.
|
|
type CreateCustomAttributeRequest struct {
|
|
// Name Represents custom attribute name.
|
|
Name string `json:"name"`
|
|
|
|
// Namespace Represents custom attribute namespace.
|
|
Namespace string `json:"namespace"`
|
|
|
|
// Value Represents custom attribute value.
|
|
Value string `json:"value"`
|
|
}
|
|
|
|
// CreateEmailContentRequest defines model for CreateEmailContentRequest.
|
|
type CreateEmailContentRequest struct {
|
|
Body string `json:"body"`
|
|
Subject string `json:"subject"`
|
|
}
|
|
|
|
// CreateExpenseRequest defines model for CreateExpenseRequest.
|
|
type CreateExpenseRequest struct {
|
|
Amount float64 `json:"amount"`
|
|
Billable *bool `json:"billable,omitempty"`
|
|
CategoryId *string `json:"categoryId,omitempty"`
|
|
Date *time.Time `json:"date,omitempty"`
|
|
File *openapi_types.File `json:"file,omitempty"`
|
|
Notes *string `json:"notes,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
UserId string `json:"userId"`
|
|
}
|
|
|
|
// CreateFavoriteEntriesRequest defines model for CreateFavoriteEntriesRequest.
|
|
type CreateFavoriteEntriesRequest struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
TagIds *[]string `json:"tagIds,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
Type *CreateFavoriteEntriesRequestType `json:"type,omitempty"`
|
|
}
|
|
|
|
// CreateFavoriteEntriesRequestType defines model for CreateFavoriteEntriesRequest.Type.
|
|
type CreateFavoriteEntriesRequestType string
|
|
|
|
// CreateFromTemplateRequest defines model for CreateFromTemplateRequest.
|
|
type CreateFromTemplateRequest struct {
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
Color *string `json:"color,omitempty"`
|
|
IsPublic *bool `json:"isPublic,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Public *bool `json:"public,omitempty"`
|
|
TemplateId string `json:"templateId"`
|
|
}
|
|
|
|
// CreateInvoiceDto defines model for CreateInvoiceDto.
|
|
type CreateInvoiceDto struct {
|
|
BillFrom *string `json:"billFrom,omitempty"`
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
Currency *string `json:"currency,omitempty"`
|
|
DueDate *time.Time `json:"dueDate,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IssuedDate *time.Time `json:"issuedDate,omitempty"`
|
|
Number *string `json:"number,omitempty"`
|
|
}
|
|
|
|
// CreateInvoiceEmailTemplateRequest defines model for CreateInvoiceEmailTemplateRequest.
|
|
type CreateInvoiceEmailTemplateRequest struct {
|
|
EmailContent CreateEmailContentRequest `json:"emailContent"`
|
|
InvoiceEmailTemplateType *string `json:"invoiceEmailTemplateType,omitempty"`
|
|
}
|
|
|
|
// CreateInvoiceItemTypeDto defines model for CreateInvoiceItemTypeDto.
|
|
type CreateInvoiceItemTypeDto struct {
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// CreateInvoiceItemTypeRequest defines model for CreateInvoiceItemTypeRequest.
|
|
type CreateInvoiceItemTypeRequest struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// CreateInvoicePaymentRequest defines model for CreateInvoicePaymentRequest.
|
|
type CreateInvoicePaymentRequest struct {
|
|
// Amount Represents an invoice payment amount as long.
|
|
Amount *int64 `json:"amount,omitempty"`
|
|
|
|
// Note Represents an invoice payment note.
|
|
Note *string `json:"note,omitempty"`
|
|
|
|
// PaymentDate Represents an invoice payment date in yyyy-MM-ddThh:mm:ssZ format.
|
|
PaymentDate *string `json:"paymentDate,omitempty"`
|
|
}
|
|
|
|
// CreateInvoiceRequest defines model for CreateInvoiceRequest.
|
|
type CreateInvoiceRequest struct {
|
|
// ClientId Represents client identifier across the system.
|
|
ClientId string `json:"clientId"`
|
|
|
|
// Currency Represents the currency used by the invoice.
|
|
Currency string `json:"currency"`
|
|
|
|
// DueDate Represents an invoice due date in yyyy-MM-ddThh:mm:ssZ format.
|
|
DueDate time.Time `json:"dueDate"`
|
|
|
|
// IssuedDate Represents an invoice issued date in yyyy-MM-ddThh:mm:ssZ format.
|
|
IssuedDate time.Time `json:"issuedDate"`
|
|
|
|
// Number Represents an invoice number.
|
|
Number string `json:"number"`
|
|
}
|
|
|
|
// CreateKioskRequest defines model for CreateKioskRequest.
|
|
type CreateKioskRequest struct {
|
|
DefaultBreakProjectId *string `json:"defaultBreakProjectId,omitempty"`
|
|
DefaultBreakTaskId *string `json:"defaultBreakTaskId,omitempty"`
|
|
DefaultEntities *DefaultKioskEntitiesRequest `json:"defaultEntities,omitempty"`
|
|
DefaultProjectId *string `json:"defaultProjectId,omitempty"`
|
|
DefaultTaskId *string `json:"defaultTaskId,omitempty"`
|
|
EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"`
|
|
Groups *ContainsUserGroupFilterRequest `json:"groups,omitempty"`
|
|
Name string `json:"name"`
|
|
Pin *PinSettingRequest `json:"pin,omitempty"`
|
|
SessionDuration *int32 `json:"sessionDuration,omitempty"`
|
|
Users *ContainsUsersFilterRequest `json:"users,omitempty"`
|
|
}
|
|
|
|
// CreateOrganizationRequest defines model for CreateOrganizationRequest.
|
|
type CreateOrganizationRequest struct {
|
|
OrganizationName *string `json:"organizationName,omitempty"`
|
|
}
|
|
|
|
// CreatePolicyRequest defines model for CreatePolicyRequest.
|
|
type CreatePolicyRequest struct {
|
|
AllowHalfDay *bool `json:"allowHalfDay,omitempty"`
|
|
AllowNegativeBalance *bool `json:"allowNegativeBalance,omitempty"`
|
|
Approve ApproveDto `json:"approve"`
|
|
Archived *bool `json:"archived,omitempty"`
|
|
AutomaticAccrual *AutomaticAccrualRequest `json:"automaticAccrual,omitempty"`
|
|
AutomaticTimeEntryCreation *AutomaticTimeEntryCreationRequest `json:"automaticTimeEntryCreation,omitempty"`
|
|
Color *string `json:"color,omitempty"`
|
|
EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"`
|
|
Name string `json:"name"`
|
|
NegativeBalance *NegativeBalanceRequest `json:"negativeBalance,omitempty"`
|
|
TimeUnit *string `json:"timeUnit,omitempty"`
|
|
UserGroups *ContainsFilterRequest `json:"userGroups,omitempty"`
|
|
Users *ContainsFilterRequest `json:"users,omitempty"`
|
|
}
|
|
|
|
// CreateProjectRequest defines model for CreateProjectRequest.
|
|
type CreateProjectRequest struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
Color *string `json:"color,omitempty"`
|
|
Estimate *EstimateRequest `json:"estimate,omitempty"`
|
|
HourlyRate *HourlyRateRequest `json:"hourlyRate,omitempty"`
|
|
IsPublic *bool `json:"isPublic,omitempty"`
|
|
Memberships *[]MembershipRequest `json:"memberships,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Public *bool `json:"public,omitempty"`
|
|
Tasks *[]TaskRequest `json:"tasks,omitempty"`
|
|
}
|
|
|
|
// CreateReminderRequest defines model for CreateReminderRequest.
|
|
type CreateReminderRequest struct {
|
|
DateRange *CreateReminderRequestDateRange `json:"dateRange,omitempty"`
|
|
Days *[]int32 `json:"days,omitempty"`
|
|
Hours *float64 `json:"hours,omitempty"`
|
|
Less *bool `json:"less,omitempty"`
|
|
Receivers *[]string `json:"receivers,omitempty"`
|
|
Users *ContainsUsersFilterRequest `json:"users,omitempty"`
|
|
}
|
|
|
|
// CreateReminderRequestDateRange defines model for CreateReminderRequest.DateRange.
|
|
type CreateReminderRequestDateRange string
|
|
|
|
// CreateSubscriptionQuantityRequest defines model for CreateSubscriptionQuantityRequest.
|
|
type CreateSubscriptionQuantityRequest struct {
|
|
LimitedQuantity *int32 `json:"limitedQuantity,omitempty"`
|
|
Quantity *int32 `json:"quantity,omitempty"`
|
|
RegularQuantity int32 `json:"regularQuantity"`
|
|
}
|
|
|
|
// CreateTimeEntryForManyRequest defines model for CreateTimeEntryForManyRequest.
|
|
type CreateTimeEntryForManyRequest struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
End *time.Time `json:"end,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
Start *time.Time `json:"start,omitempty"`
|
|
TagIds *[]string `json:"tagIds,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
UserGroups *ContainsUsersFilterRequest `json:"userGroups,omitempty"`
|
|
Users *ContainsUsersFilterRequest `json:"users,omitempty"`
|
|
}
|
|
|
|
// CreateTimeEntryRequest defines model for CreateTimeEntryRequest.
|
|
type CreateTimeEntryRequest struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
CustomAttributes *[]CreateCustomAttributeRequest `json:"customAttributes,omitempty"`
|
|
CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
End *time.Time `json:"end,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
Start *time.Time `json:"start,omitempty"`
|
|
StartAsString *string `json:"startAsString,omitempty"`
|
|
TagIds *[]string `json:"tagIds,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
}
|
|
|
|
// CreateTimeOffRequestRequest defines model for CreateTimeOffRequestRequest.
|
|
type CreateTimeOffRequestRequest struct {
|
|
Note *string `json:"note,omitempty"`
|
|
TimeOffPeriod TimeOffRequestPeriodRequest `json:"timeOffPeriod"`
|
|
}
|
|
|
|
// CreateUserGroupRequest defines model for CreateUserGroupRequest.
|
|
type CreateUserGroupRequest struct {
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// CreateWorkspaceRequest defines model for CreateWorkspaceRequest.
|
|
type CreateWorkspaceRequest struct {
|
|
Name *string `json:"name,omitempty"`
|
|
OrganizationId *string `json:"organizationId,omitempty"`
|
|
}
|
|
|
|
// CurrencyDto defines model for CurrencyDto.
|
|
type CurrencyDto struct {
|
|
Code *string `json:"code,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
}
|
|
|
|
// CurrencyWithAmountDto defines model for CurrencyWithAmountDto.
|
|
type CurrencyWithAmountDto struct {
|
|
Amount *int64 `json:"amount,omitempty"`
|
|
Currency *string `json:"currency,omitempty"`
|
|
}
|
|
|
|
// CustomAttributeDto defines model for CustomAttributeDto.
|
|
type CustomAttributeDto struct {
|
|
EntityId *string `json:"entityId,omitempty"`
|
|
EntityType *string `json:"entityType,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Namespace *string `json:"namespace,omitempty"`
|
|
Value *string `json:"value,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// CustomFieldDefaultValuesDto defines model for CustomFieldDefaultValuesDto.
|
|
type CustomFieldDefaultValuesDto struct {
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
Status *string `json:"status,omitempty"`
|
|
Value *map[string]interface{} `json:"value,omitempty"`
|
|
}
|
|
|
|
// CustomFieldDto defines model for CustomFieldDto.
|
|
type CustomFieldDto struct {
|
|
AllowedValues *[]string `json:"allowedValues,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
EntityType *string `json:"entityType,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
OnlyAdminCanEdit *bool `json:"onlyAdminCanEdit,omitempty"`
|
|
Placeholder *string `json:"placeholder,omitempty"`
|
|
ProjectDefaultValues *[]CustomFieldDefaultValuesDto `json:"projectDefaultValues,omitempty"`
|
|
Required *bool `json:"required,omitempty"`
|
|
Status *string `json:"status,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
WorkspaceDefaultValue *map[string]interface{} `json:"workspaceDefaultValue,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// CustomFieldFilter defines model for CustomFieldFilter.
|
|
type CustomFieldFilter struct {
|
|
Empty *bool `json:"empty,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IsEmpty *bool `json:"isEmpty,omitempty"`
|
|
NumberComparison *string `json:"numberComparison,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
Value *map[string]interface{} `json:"value,omitempty"`
|
|
}
|
|
|
|
// CustomFieldProjectDefaultValuesRequest defines model for CustomFieldProjectDefaultValuesRequest.
|
|
type CustomFieldProjectDefaultValuesRequest struct {
|
|
// DefaultValue Represents a custom field's default value.
|
|
DefaultValue *map[string]interface{} `json:"defaultValue,omitempty"`
|
|
|
|
// Status Represents custom field status.
|
|
Status *CustomFieldProjectDefaultValuesRequestStatus `json:"status,omitempty"`
|
|
}
|
|
|
|
// CustomFieldProjectDefaultValuesRequestStatus Represents custom field status.
|
|
type CustomFieldProjectDefaultValuesRequestStatus string
|
|
|
|
// CustomFieldRequest defines model for CustomFieldRequest.
|
|
type CustomFieldRequest struct {
|
|
AllowedValues *[]string `json:"allowedValues,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
EntityType *string `json:"entityType,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
OnlyAdminCanEdit *bool `json:"onlyAdminCanEdit,omitempty"`
|
|
Placeholder *string `json:"placeholder,omitempty"`
|
|
Required *bool `json:"required,omitempty"`
|
|
Status *CustomFieldRequestStatus `json:"status,omitempty"`
|
|
Type *CustomFieldRequestType `json:"type,omitempty"`
|
|
WorkspaceDefaultValue *map[string]interface{} `json:"workspaceDefaultValue,omitempty"`
|
|
}
|
|
|
|
// CustomFieldRequestStatus defines model for CustomFieldRequest.Status.
|
|
type CustomFieldRequestStatus string
|
|
|
|
// CustomFieldRequestType defines model for CustomFieldRequest.Type.
|
|
type CustomFieldRequestType string
|
|
|
|
// CustomFieldRequiredAvailabilityDto defines model for CustomFieldRequiredAvailabilityDto.
|
|
type CustomFieldRequiredAvailabilityDto struct {
|
|
AllowedValues *[]string `json:"allowedValues,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
EntityType *string `json:"entityType,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
OnlyAdminCanEdit *bool `json:"onlyAdminCanEdit,omitempty"`
|
|
Placeholder *string `json:"placeholder,omitempty"`
|
|
ProjectDefaultValues *[]CustomFieldDefaultValuesDto `json:"projectDefaultValues,omitempty"`
|
|
Required *bool `json:"required,omitempty"`
|
|
RequiredStatus *CustomFieldRequiredStatusDto `json:"requiredStatus,omitempty"`
|
|
Status *string `json:"status,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
WorkspaceDefaultValue *map[string]interface{} `json:"workspaceDefaultValue,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// CustomFieldRequiredStatusDto defines model for CustomFieldRequiredStatusDto.
|
|
type CustomFieldRequiredStatusDto struct {
|
|
CanBeRequired *bool `json:"canBeRequired,omitempty"`
|
|
Reason *string `json:"reason,omitempty"`
|
|
}
|
|
|
|
// CustomFieldValueDto defines model for CustomFieldValueDto.
|
|
type CustomFieldValueDto struct {
|
|
// CustomFieldId Represents custom field identifier across the system.
|
|
CustomFieldId *string `json:"customFieldId,omitempty"`
|
|
|
|
// SourceType Represents a custom field value source type.
|
|
SourceType *CustomFieldValueDtoSourceType `json:"sourceType,omitempty"`
|
|
|
|
// TimeEntryId Represents time entry identifier across the system.
|
|
TimeEntryId *string `json:"timeEntryId,omitempty"`
|
|
|
|
// Value Represents custom field value.
|
|
Value *map[string]interface{} `json:"value,omitempty"`
|
|
}
|
|
|
|
// CustomFieldValueDtoSourceType Represents a custom field value source type.
|
|
type CustomFieldValueDtoSourceType string
|
|
|
|
// CustomFieldValueFullDto defines model for CustomFieldValueFullDto.
|
|
type CustomFieldValueFullDto struct {
|
|
CustomField *CustomFieldDto `json:"customField,omitempty"`
|
|
CustomFieldDto *CustomFieldDto `json:"customFieldDto,omitempty"`
|
|
CustomFieldId *string `json:"customFieldId,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
SourceType *string `json:"sourceType,omitempty"`
|
|
TimeEntryId *string `json:"timeEntryId,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
Value *map[string]interface{} `json:"value,omitempty"`
|
|
}
|
|
|
|
// CustomLabelsDto defines model for CustomLabelsDto.
|
|
type CustomLabelsDto struct {
|
|
ProjectGroupingLabel *string `json:"projectGroupingLabel,omitempty"`
|
|
ProjectLabel *string `json:"projectLabel,omitempty"`
|
|
TaskLabel *string `json:"taskLabel,omitempty"`
|
|
}
|
|
|
|
// CustomLabelsRequest defines model for CustomLabelsRequest.
|
|
type CustomLabelsRequest struct {
|
|
ProjectGroupingLabel *string `json:"projectGroupingLabel,omitempty"`
|
|
ProjectLabel *string `json:"projectLabel,omitempty"`
|
|
TaskLabel *string `json:"taskLabel,omitempty"`
|
|
}
|
|
|
|
// CustomSupportLinksSettings defines model for CustomSupportLinksSettings.
|
|
type CustomSupportLinksSettings struct {
|
|
CustomLinks *[]Link `json:"customLinks,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
}
|
|
|
|
// CustomSupportLinksSettingsDto defines model for CustomSupportLinksSettingsDto.
|
|
type CustomSupportLinksSettingsDto struct {
|
|
CustomLinks *[]LinkDto `json:"customLinks,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
}
|
|
|
|
// CustomSupportLinksSettingsRequest defines model for CustomSupportLinksSettingsRequest.
|
|
type CustomSupportLinksSettingsRequest struct {
|
|
CustomLinks *[]LinkRequest `json:"customLinks,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
Links *[]LinkRequest `json:"links,omitempty"`
|
|
}
|
|
|
|
// CustomerBillingInformationDto defines model for CustomerBillingInformationDto.
|
|
type CustomerBillingInformationDto struct {
|
|
AccountType *string `json:"accountType,omitempty"`
|
|
Address1 *string `json:"address1,omitempty"`
|
|
Address2 *string `json:"address2,omitempty"`
|
|
BillingCountry *string `json:"billingCountry,omitempty"`
|
|
City *string `json:"city,omitempty"`
|
|
CompanyName *string `json:"companyName,omitempty"`
|
|
Country *string `json:"country,omitempty"`
|
|
Currency *string `json:"currency,omitempty"`
|
|
Email *string `json:"email,omitempty"`
|
|
Source *string `json:"source,omitempty"`
|
|
State *string `json:"state,omitempty"`
|
|
TaxIds *map[string]string `json:"taxIds,omitempty"`
|
|
Zip *string `json:"zip,omitempty"`
|
|
}
|
|
|
|
// CustomerBillingRequest defines model for CustomerBillingRequest.
|
|
type CustomerBillingRequest struct {
|
|
CompanyName *string `json:"companyName,omitempty"`
|
|
CustomerId *string `json:"customerId,omitempty"`
|
|
Email *string `json:"email,omitempty"`
|
|
InvoiceAddress1 *string `json:"invoiceAddress1,omitempty"`
|
|
InvoiceAddress2 *string `json:"invoiceAddress2,omitempty"`
|
|
InvoiceCity *string `json:"invoiceCity,omitempty"`
|
|
InvoiceZip *string `json:"invoiceZip,omitempty"`
|
|
TaxIds *map[string]string `json:"taxIds,omitempty"`
|
|
}
|
|
|
|
// CustomerDto defines model for CustomerDto.
|
|
type CustomerDto struct {
|
|
CountryCode *string `json:"countryCode,omitempty"`
|
|
Source *CustomerDtoSource `json:"source,omitempty"`
|
|
}
|
|
|
|
// CustomerDtoSource defines model for CustomerDto.Source.
|
|
type CustomerDtoSource string
|
|
|
|
// CustomerInformationDto defines model for CustomerInformationDto.
|
|
type CustomerInformationDto struct {
|
|
Account *string `json:"account,omitempty"`
|
|
CustomerId *string `json:"customerId,omitempty"`
|
|
}
|
|
|
|
// CustomerPaymentInformationDto defines model for CustomerPaymentInformationDto.
|
|
type CustomerPaymentInformationDto struct {
|
|
CardExpMonth *string `json:"cardExpMonth,omitempty"`
|
|
CardExpYear *string `json:"cardExpYear,omitempty"`
|
|
CardHolder *string `json:"cardHolder,omitempty"`
|
|
City *string `json:"city,omitempty"`
|
|
Country *string `json:"country,omitempty"`
|
|
Last4 *string `json:"last4,omitempty"`
|
|
State *string `json:"state,omitempty"`
|
|
Street *string `json:"street,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
Zip *string `json:"zip,omitempty"`
|
|
}
|
|
|
|
// CustomerRequest defines model for CustomerRequest.
|
|
type CustomerRequest struct {
|
|
AccountType *string `json:"accountType,omitempty"`
|
|
Country *string `json:"country,omitempty"`
|
|
State *string `json:"state,omitempty"`
|
|
}
|
|
|
|
// DatePeriod Represents startDate and endDate of the holiday. Date is in format yyyy-mm-dd
|
|
type DatePeriod struct {
|
|
EndDate *openapi_types.Date `json:"endDate,omitempty"`
|
|
StartDate *openapi_types.Date `json:"startDate,omitempty"`
|
|
}
|
|
|
|
// DatePeriodRequest defines model for DatePeriodRequest.
|
|
type DatePeriodRequest struct {
|
|
// EndDate yyyy-MM-dd format date
|
|
EndDate string `json:"endDate"`
|
|
|
|
// StartDate yyyy-MM-dd format date
|
|
StartDate string `json:"startDate"`
|
|
}
|
|
|
|
// DateRange defines model for DateRange.
|
|
type DateRange struct {
|
|
End *time.Time `json:"end,omitempty"`
|
|
Start *time.Time `json:"start,omitempty"`
|
|
}
|
|
|
|
// DateRangeDto defines model for DateRangeDto.
|
|
type DateRangeDto struct {
|
|
End *time.Time `json:"end,omitempty"`
|
|
Start *time.Time `json:"start,omitempty"`
|
|
}
|
|
|
|
// DayOfWeek Represents a day of the week.
|
|
type DayOfWeek string
|
|
|
|
// DefaultBreakEntitiesDto defines model for DefaultBreakEntitiesDto.
|
|
type DefaultBreakEntitiesDto struct {
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
}
|
|
|
|
// DefaultBreakEntitiesRequest defines model for DefaultBreakEntitiesRequest.
|
|
type DefaultBreakEntitiesRequest struct {
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
}
|
|
|
|
// DefaultEntitiesDto defines model for DefaultEntitiesDto.
|
|
type DefaultEntitiesDto struct {
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
}
|
|
|
|
// DefaultEntitiesRequest Provides information about default project and task for automatically created time entries.
|
|
type DefaultEntitiesRequest struct {
|
|
// ProjectId Default project for automatically created time entries
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
|
|
// TaskId Default task for automatically created time entries
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
}
|
|
|
|
// DefaultKioskEntitiesRequest defines model for DefaultKioskEntitiesRequest.
|
|
type DefaultKioskEntitiesRequest struct {
|
|
BreakProjectId *string `json:"breakProjectId,omitempty"`
|
|
BreakTaskId *string `json:"breakTaskId,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
}
|
|
|
|
// DeleteCustomAttributeRequest defines model for DeleteCustomAttributeRequest.
|
|
type DeleteCustomAttributeRequest struct {
|
|
Name string `json:"name"`
|
|
Namespace string `json:"namespace"`
|
|
}
|
|
|
|
// DisableAccessToEntitiesInTransferRequest defines model for DisableAccessToEntitiesInTransferRequest.
|
|
type DisableAccessToEntitiesInTransferRequest struct {
|
|
AccessDisabledDetails *map[string]string `json:"accessDisabledDetails,omitempty"`
|
|
DomainName *string `json:"domainName,omitempty"`
|
|
Reason *string `json:"reason,omitempty"`
|
|
UserEmails *[]string `json:"userEmails,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// DiscardStopwatchRequest defines model for DiscardStopwatchRequest.
|
|
type DiscardStopwatchRequest struct {
|
|
UserId *string `json:"userId,omitempty"`
|
|
}
|
|
|
|
// DraftAssignmentsCountDto defines model for DraftAssignmentsCountDto.
|
|
type DraftAssignmentsCountDto struct {
|
|
Count *int64 `json:"count,omitempty"`
|
|
}
|
|
|
|
// DurationAndAmount defines model for DurationAndAmount.
|
|
type DurationAndAmount struct {
|
|
Billable *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"billable,omitempty"`
|
|
BillableExpenses *float64 `json:"billableExpenses,omitempty"`
|
|
ExpenseBillableAmount *float64 `json:"expenseBillableAmount,omitempty"`
|
|
ExpenseNonBillableAmount *float64 `json:"expenseNonBillableAmount,omitempty"`
|
|
NonBillable *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"nonBillable,omitempty"`
|
|
NonBillableExpenses *float64 `json:"nonBillableExpenses,omitempty"`
|
|
TotalAmount *float64 `json:"totalAmount,omitempty"`
|
|
TotalExpensesAmount *float64 `json:"totalExpensesAmount,omitempty"`
|
|
}
|
|
|
|
// EmailContentDto defines model for EmailContentDto.
|
|
type EmailContentDto struct {
|
|
Body *string `json:"body,omitempty"`
|
|
Subject *string `json:"subject,omitempty"`
|
|
}
|
|
|
|
// EntityCreationPermissionsDto defines model for EntityCreationPermissionsDto.
|
|
type EntityCreationPermissionsDto struct {
|
|
WhoCanCreateProjectsAndClients *EntityCreationPermissionsDtoWhoCanCreateProjectsAndClients `json:"whoCanCreateProjectsAndClients,omitempty"`
|
|
WhoCanCreateTags *EntityCreationPermissionsDtoWhoCanCreateTags `json:"whoCanCreateTags,omitempty"`
|
|
WhoCanCreateTasks *EntityCreationPermissionsDtoWhoCanCreateTasks `json:"whoCanCreateTasks,omitempty"`
|
|
}
|
|
|
|
// EntityCreationPermissionsDtoWhoCanCreateProjectsAndClients defines model for EntityCreationPermissionsDto.WhoCanCreateProjectsAndClients.
|
|
type EntityCreationPermissionsDtoWhoCanCreateProjectsAndClients string
|
|
|
|
// EntityCreationPermissionsDtoWhoCanCreateTags defines model for EntityCreationPermissionsDto.WhoCanCreateTags.
|
|
type EntityCreationPermissionsDtoWhoCanCreateTags string
|
|
|
|
// EntityCreationPermissionsDtoWhoCanCreateTasks defines model for EntityCreationPermissionsDto.WhoCanCreateTasks.
|
|
type EntityCreationPermissionsDtoWhoCanCreateTasks string
|
|
|
|
// EntityIdNameDto defines model for EntityIdNameDto.
|
|
type EntityIdNameDto struct {
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// EstimateDto defines model for EstimateDto.
|
|
type EstimateDto struct {
|
|
Estimate *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"estimate,omitempty"`
|
|
Type *EstimateDtoType `json:"type,omitempty"`
|
|
}
|
|
|
|
// EstimateDtoType defines model for EstimateDto.Type.
|
|
type EstimateDtoType string
|
|
|
|
// EstimateRequest defines model for EstimateRequest.
|
|
type EstimateRequest struct {
|
|
// Estimate Represents a time duration in ISO-8601 format.
|
|
Estimate *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"estimate,omitempty"`
|
|
|
|
// Type Represents an estimate type enum.
|
|
Type *EstimateRequestType `json:"type,omitempty"`
|
|
}
|
|
|
|
// EstimateRequestType Represents an estimate type enum.
|
|
type EstimateRequestType string
|
|
|
|
// EstimateResetDto defines model for EstimateResetDto.
|
|
type EstimateResetDto struct {
|
|
DayOfMonth *int32 `json:"dayOfMonth,omitempty"`
|
|
DayOfWeek *EstimateResetDtoDayOfWeek `json:"dayOfWeek,omitempty"`
|
|
Hour *int32 `json:"hour,omitempty"`
|
|
Interval *EstimateResetDtoInterval `json:"interval,omitempty"`
|
|
Month *EstimateResetDtoMonth `json:"month,omitempty"`
|
|
}
|
|
|
|
// EstimateResetDtoDayOfWeek defines model for EstimateResetDto.DayOfWeek.
|
|
type EstimateResetDtoDayOfWeek string
|
|
|
|
// EstimateResetDtoInterval defines model for EstimateResetDto.Interval.
|
|
type EstimateResetDtoInterval string
|
|
|
|
// EstimateResetDtoMonth defines model for EstimateResetDto.Month.
|
|
type EstimateResetDtoMonth string
|
|
|
|
// EstimateResetRequest Represents estimate reset request object.
|
|
type EstimateResetRequest struct {
|
|
// DayOfMonth Represents a day of the month.
|
|
DayOfMonth *int32 `json:"dayOfMonth,omitempty"`
|
|
|
|
// DayOfWeek Represents a day of the week.
|
|
DayOfWeek *EstimateResetRequestDayOfWeek `json:"dayOfWeek,omitempty"`
|
|
|
|
// Hour Represents an hour of the day in 24 hour time format.
|
|
Hour *int32 `json:"hour,omitempty"`
|
|
|
|
// Interval Represents a reset option enum.
|
|
Interval *EstimateResetRequestInterval `json:"interval,omitempty"`
|
|
|
|
// Month Represents a month enum.
|
|
Month *EstimateResetRequestMonth `json:"month,omitempty"`
|
|
}
|
|
|
|
// EstimateResetRequestDayOfWeek Represents a day of the week.
|
|
type EstimateResetRequestDayOfWeek string
|
|
|
|
// EstimateResetRequestInterval Represents a reset option enum.
|
|
type EstimateResetRequestInterval string
|
|
|
|
// EstimateResetRequestMonth Represents a month enum.
|
|
type EstimateResetRequestMonth string
|
|
|
|
// EstimateWithOptionsDto defines model for EstimateWithOptionsDto.
|
|
type EstimateWithOptionsDto struct {
|
|
Active *bool `json:"active,omitempty"`
|
|
|
|
// Estimate Represents an estimate as long.
|
|
Estimate *int64 `json:"estimate,omitempty"`
|
|
|
|
// IncludeExpenses Indicates whether estimate includes non-billable or not.
|
|
IncludeExpenses *bool `json:"includeExpenses,omitempty"`
|
|
|
|
// ResetOption Represents a reset option enum.
|
|
ResetOption *EstimateWithOptionsDtoResetOption `json:"resetOption,omitempty"`
|
|
|
|
// Type Represents an estimate type enum.
|
|
Type *EstimateWithOptionsDtoType `json:"type,omitempty"`
|
|
}
|
|
|
|
// EstimateWithOptionsDtoResetOption Represents a reset option enum.
|
|
type EstimateWithOptionsDtoResetOption string
|
|
|
|
// EstimateWithOptionsDtoType Represents an estimate type enum.
|
|
type EstimateWithOptionsDtoType string
|
|
|
|
// EstimateWithOptionsRequest Represents estimate with options request object.
|
|
type EstimateWithOptionsRequest struct {
|
|
// Active Flag whether to set estimate as active or not.
|
|
Active *bool `json:"active,omitempty"`
|
|
|
|
// Estimate Represents an estimate as long.
|
|
Estimate *int64 `json:"estimate,omitempty"`
|
|
|
|
// IncludeExpenses Flag whether to include billable expenses.
|
|
IncludeExpenses *bool `json:"includeExpenses,omitempty"`
|
|
|
|
// ResetOption Represents a reset option enum.
|
|
ResetOption *EstimateWithOptionsRequestResetOption `json:"resetOption,omitempty"`
|
|
|
|
// Type Represents an estimate type enum.
|
|
Type *EstimateWithOptionsRequestType `json:"type,omitempty"`
|
|
}
|
|
|
|
// EstimateWithOptionsRequestResetOption Represents a reset option enum.
|
|
type EstimateWithOptionsRequestResetOption string
|
|
|
|
// EstimateWithOptionsRequestType Represents an estimate type enum.
|
|
type EstimateWithOptionsRequestType string
|
|
|
|
// ExpenseCategoriesWithCountDto defines model for ExpenseCategoriesWithCountDto.
|
|
type ExpenseCategoriesWithCountDto struct {
|
|
Categories *[]ExpenseCategoryDto `json:"categories,omitempty"`
|
|
Count *int32 `json:"count,omitempty"`
|
|
}
|
|
|
|
// ExpenseCategoryArchiveRequest defines model for ExpenseCategoryArchiveRequest.
|
|
type ExpenseCategoryArchiveRequest struct {
|
|
Archived *bool `json:"archived,omitempty"`
|
|
}
|
|
|
|
// ExpenseCategoryDto defines model for ExpenseCategoryDto.
|
|
type ExpenseCategoryDto struct {
|
|
// Archived Flag that indicates whether the expense category is archived or not.
|
|
Archived *bool `json:"archived,omitempty"`
|
|
|
|
// HasUnitPrice Represents whether expense category has unit price or none.
|
|
HasUnitPrice *bool `json:"hasUnitPrice,omitempty"`
|
|
|
|
// Id Represents expense category identifier across the system.
|
|
Id *string `json:"id,omitempty"`
|
|
|
|
// Name Represents expense category name.
|
|
Name *string `json:"name,omitempty"`
|
|
|
|
// PriceInCents Represents price in cents as integer.
|
|
PriceInCents *int32 `json:"priceInCents,omitempty"`
|
|
|
|
// Unit Represents expense category unit.
|
|
Unit *string `json:"unit,omitempty"`
|
|
|
|
// WorkspaceId Represents workspace identifier across the system.
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// ExpenseCategoryRequest defines model for ExpenseCategoryRequest.
|
|
type ExpenseCategoryRequest struct {
|
|
HasUnitPrice *bool `json:"hasUnitPrice,omitempty"`
|
|
Name string `json:"name"`
|
|
PriceInCents *int32 `json:"priceInCents,omitempty"`
|
|
Unit *string `json:"unit,omitempty"`
|
|
}
|
|
|
|
// ExpenseDailyTotalsDto defines model for ExpenseDailyTotalsDto.
|
|
type ExpenseDailyTotalsDto struct {
|
|
CurrencyTotal *[]CurrencyWithAmountDto `json:"currencyTotal,omitempty"`
|
|
Date *string `json:"date,omitempty"`
|
|
DateAsInstant *time.Time `json:"dateAsInstant,omitempty"`
|
|
Total *float64 `json:"total,omitempty"`
|
|
}
|
|
|
|
// ExpenseDeletedDto defines model for ExpenseDeletedDto.
|
|
type ExpenseDeletedDto struct {
|
|
ApprovalRequestWithdrawn *bool `json:"approvalRequestWithdrawn,omitempty"`
|
|
}
|
|
|
|
// ExpenseDto defines model for ExpenseDto.
|
|
type ExpenseDto struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
CategoryId *string `json:"categoryId,omitempty"`
|
|
Date *string `json:"date,omitempty"`
|
|
FileId *string `json:"fileId,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IsLocked *bool `json:"isLocked,omitempty"`
|
|
Locked *bool `json:"locked,omitempty"`
|
|
Notes *string `json:"notes,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
Quantity *float64 `json:"quantity,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
Total *float64 `json:"total,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// ExpenseHydratedDto defines model for ExpenseHydratedDto.
|
|
type ExpenseHydratedDto struct {
|
|
// ApprovalRequestId Represents approval request identifier across the system.
|
|
ApprovalRequestId *string `json:"approvalRequestId,omitempty"`
|
|
|
|
// ApprovalStatus Represents the approval status of the expense
|
|
ApprovalStatus *ExpenseHydratedDtoApprovalStatus `json:"approvalStatus,omitempty"`
|
|
|
|
// Billable Indicates whether expense is billable or not.
|
|
Billable *bool `json:"billable,omitempty"`
|
|
Category *ExpenseCategoryDto `json:"category,omitempty"`
|
|
|
|
// Currency Represents a currency.
|
|
Currency *string `json:"currency,omitempty"`
|
|
|
|
// Date Represents a date in yyyy-MM-dd format.
|
|
Date *string `json:"date,omitempty"`
|
|
|
|
// FileId Represents file identifier across the system.
|
|
FileId *string `json:"fileId,omitempty"`
|
|
|
|
// FileName Represents file name.
|
|
FileName *string `json:"fileName,omitempty"`
|
|
|
|
// Id Represents expense identifier across the system.
|
|
Id *string `json:"id,omitempty"`
|
|
IsLocked *bool `json:"isLocked,omitempty"`
|
|
Locked *bool `json:"locked,omitempty"`
|
|
|
|
// Notes Represents notes for an expense.
|
|
Notes *string `json:"notes,omitempty"`
|
|
Project *ProjectInfoDto `json:"project,omitempty"`
|
|
|
|
// Quantity Represents expense quantity as double data type.
|
|
Quantity *float64 `json:"quantity,omitempty"`
|
|
Task *TaskInfoDto `json:"task,omitempty"`
|
|
|
|
// Total Represents expense total as double data type.
|
|
Total *float64 `json:"total,omitempty"`
|
|
|
|
// UserId Represents user identifier across the system.
|
|
UserId *string `json:"userId,omitempty"`
|
|
|
|
// WorkspaceId Represents workspace identifier across the system.
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// ExpenseHydratedDtoApprovalStatus Represents the approval status of the expense
|
|
type ExpenseHydratedDtoApprovalStatus string
|
|
|
|
// ExpensePeriodTotalsDto defines model for ExpensePeriodTotalsDto.
|
|
type ExpensePeriodTotalsDto struct {
|
|
CurrencyTotal *[]CurrencyWithAmountDto `json:"currencyTotal,omitempty"`
|
|
Date *string `json:"date,omitempty"`
|
|
DateAsInstant *time.Time `json:"dateAsInstant,omitempty"`
|
|
DateRange *DateRange `json:"dateRange,omitempty"`
|
|
Total *float64 `json:"total,omitempty"`
|
|
}
|
|
|
|
// ExpenseWeekApprovalStatusDto defines model for ExpenseWeekApprovalStatusDto.
|
|
type ExpenseWeekApprovalStatusDto struct {
|
|
ApprovalRequestId *string `json:"approvalRequestId,omitempty"`
|
|
ApprovedCount *int64 `json:"approvedCount,omitempty"`
|
|
CurrencyTotal *[]CurrencyWithAmountDto `json:"currencyTotal,omitempty"`
|
|
DateRange *DateRangeDto `json:"dateRange,omitempty"`
|
|
ExpensesCount *int64 `json:"expensesCount,omitempty"`
|
|
HasUnSubmitted *bool `json:"hasUnSubmitted,omitempty"`
|
|
Status *string `json:"status,omitempty"`
|
|
SubmitterName *string `json:"submitterName,omitempty"`
|
|
Total *float64 `json:"total,omitempty"`
|
|
UnsubmittedExpensesCount *int64 `json:"unsubmittedExpensesCount,omitempty"`
|
|
}
|
|
|
|
// ExpenseWithApprovalRequestUpdatedDto defines model for ExpenseWithApprovalRequestUpdatedDto.
|
|
type ExpenseWithApprovalRequestUpdatedDto struct {
|
|
ApprovalRequestWithdrawn *bool `json:"approvalRequestWithdrawn,omitempty"`
|
|
Billable *bool `json:"billable,omitempty"`
|
|
CategoryId *string `json:"categoryId,omitempty"`
|
|
Date *string `json:"date,omitempty"`
|
|
FileId *string `json:"fileId,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IsLocked *bool `json:"isLocked,omitempty"`
|
|
Locked *bool `json:"locked,omitempty"`
|
|
Notes *string `json:"notes,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
Quantity *float64 `json:"quantity,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
Total *float64 `json:"total,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// ExpensesAndTotalsDto defines model for ExpensesAndTotalsDto.
|
|
type ExpensesAndTotalsDto struct {
|
|
ApprovalPeriod *ExpensesAndTotalsDtoApprovalPeriod `json:"approvalPeriod,omitempty"`
|
|
DailyTotals *[]ExpenseDailyTotalsDto `json:"dailyTotals,omitempty"`
|
|
Expenses *ExpensesWithCountDto `json:"expenses,omitempty"`
|
|
PeriodStatusMap *map[string]ExpenseWeekApprovalStatusDto `json:"periodStatusMap,omitempty"`
|
|
PeriodTotals *[]ExpensePeriodTotalsDto `json:"periodTotals,omitempty"`
|
|
// Deprecated:
|
|
WeeklyStatusMap *map[string]ExpenseWeekApprovalStatusDto `json:"weeklyStatusMap,omitempty"`
|
|
// Deprecated:
|
|
WeeklyTotals *[]ExpensePeriodTotalsDto `json:"weeklyTotals,omitempty"`
|
|
}
|
|
|
|
// ExpensesAndTotalsDtoApprovalPeriod defines model for ExpensesAndTotalsDto.ApprovalPeriod.
|
|
type ExpensesAndTotalsDtoApprovalPeriod string
|
|
|
|
// ExpensesIdsRequest defines model for ExpensesIdsRequest.
|
|
type ExpensesIdsRequest struct {
|
|
Ids *[]string `json:"ids,omitempty"`
|
|
}
|
|
|
|
// ExpensesWithCountDto defines model for ExpensesWithCountDto.
|
|
type ExpensesWithCountDto struct {
|
|
Count *int32 `json:"count,omitempty"`
|
|
Expenses *[]ExpenseHydratedDto `json:"expenses,omitempty"`
|
|
}
|
|
|
|
// FavoriteTimeEntryFullDto defines model for FavoriteTimeEntryFullDto.
|
|
type FavoriteTimeEntryFullDto struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
Client *ClientDto `json:"client,omitempty"`
|
|
CustomFields *[]CustomFieldValueDto `json:"customFields,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Order *int32 `json:"order,omitempty"`
|
|
Project *ProjectDtoImpl `json:"project,omitempty"`
|
|
Tags *[]TagDto `json:"tags,omitempty"`
|
|
Task *TaskDtoImpl `json:"task,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
User *UserDto `json:"user,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// FeatureSubscriptionsDto defines model for FeatureSubscriptionsDto.
|
|
type FeatureSubscriptionsDto struct {
|
|
EndDate *time.Time `json:"endDate,omitempty"`
|
|
Status *FeatureSubscriptionsDtoStatus `json:"status,omitempty"`
|
|
Type *FeatureSubscriptionsDtoType `json:"type,omitempty"`
|
|
}
|
|
|
|
// FeatureSubscriptionsDtoStatus defines model for FeatureSubscriptionsDto.Status.
|
|
type FeatureSubscriptionsDtoStatus string
|
|
|
|
// FeatureSubscriptionsDtoType defines model for FeatureSubscriptionsDto.Type.
|
|
type FeatureSubscriptionsDtoType string
|
|
|
|
// FetchCustomAttributesRequest defines model for FetchCustomAttributesRequest.
|
|
type FetchCustomAttributesRequest struct {
|
|
CustomAttributes map[string]string `json:"customAttributes"`
|
|
EntityType *string `json:"entityType,omitempty"`
|
|
Namespace string `json:"namespace"`
|
|
}
|
|
|
|
// FileImportRequest defines model for FileImportRequest.
|
|
type FileImportRequest struct {
|
|
ImportDataId *string `json:"importDataId,omitempty"`
|
|
}
|
|
|
|
// GetApprovalTotalsRequest defines model for GetApprovalTotalsRequest.
|
|
type GetApprovalTotalsRequest struct {
|
|
End *string `json:"end,omitempty"`
|
|
Start *string `json:"start,omitempty"`
|
|
}
|
|
|
|
// GetApprovalsRequest defines model for GetApprovalsRequest.
|
|
type GetApprovalsRequest struct {
|
|
Groupby *string `json:"group-by,omitempty"`
|
|
Groupby1 *string `json:"groupBy,omitempty"`
|
|
Limit *int32 `json:"limit,omitempty"`
|
|
Offset *int32 `json:"offset,omitempty"`
|
|
Page *int32 `json:"page,omitempty"`
|
|
Pagesize *int32 `json:"page-size,omitempty"`
|
|
Pagesize1 *int32 `json:"pageSize,omitempty"`
|
|
States *[]string `json:"states,omitempty"`
|
|
UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"`
|
|
UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"`
|
|
}
|
|
|
|
// GetCountRequest defines model for GetCountRequest.
|
|
type GetCountRequest struct {
|
|
States *[]string `json:"states,omitempty"`
|
|
UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"`
|
|
UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"`
|
|
}
|
|
|
|
// GetDraftCountRequest defines model for GetDraftCountRequest.
|
|
type GetDraftCountRequest struct {
|
|
End *time.Time `json:"end,omitempty"`
|
|
Search *string `json:"search,omitempty"`
|
|
Start *time.Time `json:"start,omitempty"`
|
|
UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"`
|
|
UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"`
|
|
ViewType *GetDraftCountRequestViewType `json:"viewType,omitempty"`
|
|
}
|
|
|
|
// GetDraftCountRequestViewType defines model for GetDraftCountRequest.ViewType.
|
|
type GetDraftCountRequestViewType string
|
|
|
|
// GetMainReportRequest defines model for GetMainReportRequest.
|
|
type GetMainReportRequest struct {
|
|
Access *GetMainReportRequestAccess `json:"access,omitempty"`
|
|
EndDate *string `json:"endDate,omitempty"`
|
|
StartDate *string `json:"startDate,omitempty"`
|
|
Type *GetMainReportRequestType `json:"type,omitempty"`
|
|
ZoomLevel *GetMainReportRequestZoomLevel `json:"zoomLevel,omitempty"`
|
|
}
|
|
|
|
// GetMainReportRequestAccess defines model for GetMainReportRequest.Access.
|
|
type GetMainReportRequestAccess string
|
|
|
|
// GetMainReportRequestType defines model for GetMainReportRequest.Type.
|
|
type GetMainReportRequestType string
|
|
|
|
// GetMainReportRequestZoomLevel defines model for GetMainReportRequest.ZoomLevel.
|
|
type GetMainReportRequestZoomLevel string
|
|
|
|
// GetProjectsAuthorizationsForUserRequest defines model for GetProjectsAuthorizationsForUserRequest.
|
|
type GetProjectsAuthorizationsForUserRequest struct {
|
|
ProjectIds []string `json:"projectIds"`
|
|
}
|
|
|
|
// GetTimeOffRequestsRequest defines model for GetTimeOffRequestsRequest.
|
|
type GetTimeOffRequestsRequest struct {
|
|
End *time.Time `json:"end,omitempty"`
|
|
Limit *int32 `json:"limit,omitempty"`
|
|
Offset *int32 `json:"offset,omitempty"`
|
|
Page *int32 `json:"page,omitempty"`
|
|
PageSize *int32 `json:"pageSize,omitempty"`
|
|
Start *time.Time `json:"start,omitempty"`
|
|
Status *[]string `json:"status,omitempty"`
|
|
Statuses *[]GetTimeOffRequestsRequestStatuses `json:"statuses,omitempty"`
|
|
UserGroups *ContainsFilterRequest `json:"userGroups,omitempty"`
|
|
Users *ContainsFilterRequest `json:"users,omitempty"`
|
|
}
|
|
|
|
// GetTimeOffRequestsRequestStatuses defines model for GetTimeOffRequestsRequest.Statuses.
|
|
type GetTimeOffRequestsRequestStatuses string
|
|
|
|
// GetTimelineRequest defines model for GetTimelineRequest.
|
|
type GetTimelineRequest struct {
|
|
End *time.Time `json:"end,omitempty"`
|
|
ForceFilter *bool `json:"forceFilter,omitempty"`
|
|
RequestStatuses *[]string `json:"requestStatuses,omitempty"`
|
|
Start *time.Time `json:"start,omitempty"`
|
|
UserGroups *ContainsFilterRequest `json:"userGroups,omitempty"`
|
|
Users *ContainsFilterRequest `json:"users,omitempty"`
|
|
}
|
|
|
|
// GetUnsubmittedEntriesDurationRequest defines model for GetUnsubmittedEntriesDurationRequest.
|
|
type GetUnsubmittedEntriesDurationRequest struct {
|
|
End *string `json:"end,omitempty"`
|
|
ShowUsers *GetUnsubmittedEntriesDurationRequestShowUsers `json:"showUsers,omitempty"`
|
|
Start *string `json:"start,omitempty"`
|
|
UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"`
|
|
UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"`
|
|
}
|
|
|
|
// GetUnsubmittedEntriesDurationRequestShowUsers defines model for GetUnsubmittedEntriesDurationRequest.ShowUsers.
|
|
type GetUnsubmittedEntriesDurationRequestShowUsers string
|
|
|
|
// GetUserGroupByIdsRequest defines model for GetUserGroupByIdsRequest.
|
|
type GetUserGroupByIdsRequest struct {
|
|
ExcludeIds *[]string `json:"excludeIds,omitempty"`
|
|
UserGroupIds *[]string `json:"userGroupIds,omitempty"`
|
|
}
|
|
|
|
// GetUserTotalsRequest defines model for GetUserTotalsRequest.
|
|
type GetUserTotalsRequest struct {
|
|
End *time.Time `json:"end,omitempty"`
|
|
Page *int32 `json:"page,omitempty"`
|
|
Pagesize *int32 `json:"page-size,omitempty"`
|
|
Pagesize1 *int32 `json:"pageSize,omitempty"`
|
|
Search *string `json:"search,omitempty"`
|
|
Start *time.Time `json:"start,omitempty"`
|
|
StatusFilter *GetUserTotalsRequestStatusFilter `json:"statusFilter,omitempty"`
|
|
UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"`
|
|
UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"`
|
|
}
|
|
|
|
// GetUserTotalsRequestStatusFilter defines model for GetUserTotalsRequest.StatusFilter.
|
|
type GetUserTotalsRequestStatusFilter string
|
|
|
|
// GetUsersByIdsRequest defines model for GetUsersByIdsRequest.
|
|
type GetUsersByIdsRequest struct {
|
|
UserIds *[]string `json:"userIds,omitempty"`
|
|
}
|
|
|
|
// GetWorkspacesAuthorizationsForUserRequest defines model for GetWorkspacesAuthorizationsForUserRequest.
|
|
type GetWorkspacesAuthorizationsForUserRequest struct {
|
|
WorkspaceIds *[]string `json:"workspaceIds,omitempty"`
|
|
}
|
|
|
|
// GroupsAndCountDto defines model for GroupsAndCountDto.
|
|
type GroupsAndCountDto struct {
|
|
Count *int64 `json:"count,omitempty"`
|
|
Groups *[]UserGroupDto `json:"groups,omitempty"`
|
|
}
|
|
|
|
// HolidayDto defines model for HolidayDto.
|
|
type HolidayDto struct {
|
|
AutomaticTimeEntryCreation *AutomaticTimeEntryCreationDto `json:"automaticTimeEntryCreation,omitempty"`
|
|
|
|
// Color Provide color in format ^#(?:[0-9a-fA-F]{6}){1}$. Explanation: A valid color code should start with '#' and consist of six hexadecimal characters, representing a color in hexadecimal format. Color value is in standard RGB hexadecimal format.
|
|
Color *string `json:"color,omitempty"`
|
|
|
|
// DatePeriod Represents startDate and endDate of the holiday. Date is in format yyyy-mm-dd
|
|
DatePeriod *DatePeriod `json:"datePeriod,omitempty"`
|
|
|
|
// EveryoneIncludingNew Indicates whether the holiday is shown to new users.
|
|
EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"`
|
|
|
|
// Id Represents holiday identifier across the system.
|
|
Id *string `json:"id,omitempty"`
|
|
|
|
// Name Represents the name of the holiday.
|
|
Name *string `json:"name,omitempty"`
|
|
|
|
// OccursAnnually Indicates whether the holiday occurs annually.
|
|
OccursAnnually *bool `json:"occursAnnually,omitempty"`
|
|
|
|
// UserGroupIds Indicates which user groups are included.
|
|
UserGroupIds *[]string `json:"userGroupIds,omitempty"`
|
|
|
|
// UserIds Indicates which users are included.
|
|
UserIds *[]string `json:"userIds,omitempty"`
|
|
|
|
// WorkspaceId Represents workspace identifier across the system.
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// HolidayProjection defines model for HolidayProjection.
|
|
type HolidayProjection struct {
|
|
Color *string `json:"color,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// HolidayRequest defines model for HolidayRequest.
|
|
type HolidayRequest struct {
|
|
AutomaticTimeEntryCreation *AutomaticTimeEntryCreationRequest `json:"automaticTimeEntryCreation,omitempty"`
|
|
AutomaticTimeEntryCreationEnabled *bool `json:"automaticTimeEntryCreationEnabled,omitempty"`
|
|
Color *string `json:"color,omitempty"`
|
|
DatePeriod DatePeriodRequest `json:"datePeriod"`
|
|
DatePeriodRequest *DatePeriodRequest `json:"datePeriodRequest,omitempty"`
|
|
EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"`
|
|
Name string `json:"name"`
|
|
OccursAnnually *bool `json:"occursAnnually,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
UserGroups *ContainsUserGroupFilterRequest `json:"userGroups,omitempty"`
|
|
Users *ContainsUsersFilterRequestForHoliday `json:"users,omitempty"`
|
|
}
|
|
|
|
// HourlyRateRequest defines model for HourlyRateRequest.
|
|
type HourlyRateRequest struct {
|
|
// Amount Represents a cost rate amount as integer.
|
|
Amount int32 `json:"amount"`
|
|
|
|
// Since Represents a datetime in yyyy-MM-ddThh:mm:ssZ format.
|
|
Since *string `json:"since,omitempty"`
|
|
}
|
|
|
|
// IdNamePairDto defines model for IdNamePairDto.
|
|
type IdNamePairDto struct {
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// ImportTimeEntriesAndExpensesRequest defines model for ImportTimeEntriesAndExpensesRequest.
|
|
type ImportTimeEntriesAndExpensesRequest struct {
|
|
ExpenseDescriptionConfig *[]string `json:"expenseDescriptionConfig,omitempty"`
|
|
ExpenseDescriptionConfigs *[]string `json:"expenseDescriptionConfigs,omitempty"`
|
|
ExpensesGroupBy *string `json:"expensesGroupBy,omitempty"`
|
|
ExpensesGroupType *string `json:"expensesGroupType,omitempty"`
|
|
FieldsForDetailed *[]string `json:"fieldsForDetailed,omitempty"`
|
|
From *string `json:"from,omitempty"`
|
|
GroupEntries *string `json:"groupEntries,omitempty"`
|
|
IncludeExpenses *bool `json:"includeExpenses,omitempty"`
|
|
PrimaryGroupBy *string `json:"primaryGroupBy,omitempty"`
|
|
ProjectsFilter *ContainsProjectsFilterRequest `json:"projectsFilter,omitempty"`
|
|
RoundEntries *bool `json:"roundEntries,omitempty"`
|
|
RoundEntryDuration *bool `json:"roundEntryDuration,omitempty"`
|
|
SecondaryGroupBy *string `json:"secondaryGroupBy,omitempty"`
|
|
To *string `json:"to,omitempty"`
|
|
}
|
|
|
|
// InitialPriceRequest defines model for InitialPriceRequest.
|
|
type InitialPriceRequest struct {
|
|
Address1 *string `json:"address1,omitempty"`
|
|
City *string `json:"city,omitempty"`
|
|
Country *string `json:"country,omitempty"`
|
|
CustomerExists *bool `json:"customerExists,omitempty"`
|
|
CustomerType *string `json:"customerType,omitempty"`
|
|
LimitedQuantity *int32 `json:"limitedQuantity,omitempty"`
|
|
Quantity int32 `json:"quantity"`
|
|
Source *string `json:"source,omitempty"`
|
|
State *string `json:"state,omitempty"`
|
|
TaxIds *map[string]string `json:"taxIds,omitempty"`
|
|
Type string `json:"type"`
|
|
Zip *string `json:"zip,omitempty"`
|
|
}
|
|
|
|
// InvisibleReCaptchaRequest defines model for InvisibleReCaptchaRequest.
|
|
type InvisibleReCaptchaRequest struct {
|
|
CaptchaValue *CaptchaResponseDto `json:"captchaValue,omitempty"`
|
|
}
|
|
|
|
// InvitedEmailsInfo defines model for InvitedEmailsInfo.
|
|
type InvitedEmailsInfo struct {
|
|
AlreadyInvitedEmails *[]string `json:"alreadyInvitedEmails,omitempty"`
|
|
InvalidEmails *[]string `json:"invalidEmails,omitempty"`
|
|
}
|
|
|
|
// InvoiceDefaultSettingsDto defines model for InvoiceDefaultSettingsDto.
|
|
type InvoiceDefaultSettingsDto struct {
|
|
// CompanyId Represents company identifier across the system.
|
|
CompanyId *string `json:"companyId,omitempty"`
|
|
|
|
// DefaultImportExpenseItemTypeId Represents item type identifier across the system.
|
|
DefaultImportExpenseItemTypeId *string `json:"defaultImportExpenseItemTypeId,omitempty"`
|
|
|
|
// DefaultImportTimeItemTypeId Represents item type identifier across the system.
|
|
DefaultImportTimeItemTypeId *string `json:"defaultImportTimeItemTypeId,omitempty"`
|
|
|
|
// DueDays Represents an invoice number of due days.
|
|
DueDays *int32 `json:"dueDays,omitempty"`
|
|
ItemType *string `json:"itemType,omitempty"`
|
|
|
|
// ItemTypeId Represents item type identifier across the system.
|
|
ItemTypeId *string `json:"itemTypeId,omitempty"`
|
|
|
|
// Notes Represents an invoice note.
|
|
Notes *string `json:"notes,omitempty"`
|
|
|
|
// Subject Represents an invoice subject.
|
|
Subject *string `json:"subject,omitempty"`
|
|
// Deprecated:
|
|
Tax *int64 `json:"tax,omitempty"`
|
|
// Deprecated:
|
|
Tax2 *int64 `json:"tax2,omitempty"`
|
|
|
|
// Tax2Percent Represents a tax amount in percentage.
|
|
Tax2Percent *float64 `json:"tax2Percent,omitempty"`
|
|
|
|
// TaxPercent Represents a tax amount in percentage.
|
|
TaxPercent *float64 `json:"taxPercent,omitempty"`
|
|
|
|
// TaxType Represents a tax type.
|
|
TaxType *InvoiceDefaultSettingsDtoTaxType `json:"taxType,omitempty"`
|
|
}
|
|
|
|
// InvoiceDefaultSettingsDtoTaxType Represents a tax type.
|
|
type InvoiceDefaultSettingsDtoTaxType string
|
|
|
|
// InvoiceDefaultSettingsRequest defines model for InvoiceDefaultSettingsRequest.
|
|
type InvoiceDefaultSettingsRequest struct {
|
|
CompanyId *string `json:"companyId,omitempty"`
|
|
DueDays *int32 `json:"dueDays,omitempty"`
|
|
ItemTypeId *string `json:"itemTypeId,omitempty"`
|
|
Notes string `json:"notes"`
|
|
Subject string `json:"subject"`
|
|
Tax2Percent *float64 `json:"tax2Percent,omitempty"`
|
|
TaxPercent *float64 `json:"taxPercent,omitempty"`
|
|
TaxType *InvoiceDefaultSettingsRequestTaxType `json:"taxType,omitempty"`
|
|
}
|
|
|
|
// InvoiceDefaultSettingsRequestTaxType defines model for InvoiceDefaultSettingsRequest.TaxType.
|
|
type InvoiceDefaultSettingsRequestTaxType string
|
|
|
|
// InvoiceEmailDataDto defines model for InvoiceEmailDataDto.
|
|
type InvoiceEmailDataDto struct {
|
|
Body string `json:"body"`
|
|
FromEmail string `json:"fromEmail"`
|
|
Subject string `json:"subject"`
|
|
ToEmail string `json:"toEmail"`
|
|
}
|
|
|
|
// InvoiceEmailDataRequest defines model for InvoiceEmailDataRequest.
|
|
type InvoiceEmailDataRequest struct {
|
|
Body string `json:"body"`
|
|
Subject string `json:"subject"`
|
|
ToEmail *string `json:"toEmail,omitempty"`
|
|
}
|
|
|
|
// InvoiceEmailLinkDto defines model for InvoiceEmailLinkDto.
|
|
type InvoiceEmailLinkDto struct {
|
|
BlockExpiresAt *time.Time `json:"blockExpiresAt,omitempty"`
|
|
LinkExpiresAt *time.Time `json:"linkExpiresAt,omitempty"`
|
|
}
|
|
|
|
// InvoiceEmailLinkPinRequest defines model for InvoiceEmailLinkPinRequest.
|
|
type InvoiceEmailLinkPinRequest struct {
|
|
EnteredPin *string `json:"enteredPin,omitempty"`
|
|
}
|
|
|
|
// InvoiceEmailLinkPinValidationDto defines model for InvoiceEmailLinkPinValidationDto.
|
|
type InvoiceEmailLinkPinValidationDto struct {
|
|
BlockExpiresAt *time.Time `json:"blockExpiresAt,omitempty"`
|
|
ValidPin *bool `json:"validPin,omitempty"`
|
|
}
|
|
|
|
// InvoiceEmailTemplateDto defines model for InvoiceEmailTemplateDto.
|
|
type InvoiceEmailTemplateDto struct {
|
|
Id *string `json:"_id,omitempty"`
|
|
EmailContent *EmailContentDto `json:"emailContent,omitempty"`
|
|
Identity *string `json:"identity,omitempty"`
|
|
InvoiceEmailTemplateType *InvoiceEmailTemplateDtoInvoiceEmailTemplateType `json:"invoiceEmailTemplateType,omitempty"`
|
|
InvoiceEmailType *InvoiceEmailTemplateDtoInvoiceEmailType `json:"invoiceEmailType,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// InvoiceEmailTemplateDtoInvoiceEmailTemplateType defines model for InvoiceEmailTemplateDto.InvoiceEmailTemplateType.
|
|
type InvoiceEmailTemplateDtoInvoiceEmailTemplateType string
|
|
|
|
// InvoiceEmailTemplateDtoInvoiceEmailType defines model for InvoiceEmailTemplateDto.InvoiceEmailType.
|
|
type InvoiceEmailTemplateDtoInvoiceEmailType string
|
|
|
|
// InvoiceExportFields defines model for InvoiceExportFields.
|
|
type InvoiceExportFields struct {
|
|
Rtl *bool `json:"RTL,omitempty"`
|
|
ItemType *bool `json:"itemType,omitempty"`
|
|
Quantity *bool `json:"quantity,omitempty"`
|
|
Rtl1 *bool `json:"rtl,omitempty"`
|
|
UnitPrice *bool `json:"unitPrice,omitempty"`
|
|
}
|
|
|
|
// InvoiceExportFieldsRequest defines model for InvoiceExportFieldsRequest.
|
|
type InvoiceExportFieldsRequest struct {
|
|
// ItemType Indicates whether to export item type.
|
|
ItemType *bool `json:"itemType,omitempty"`
|
|
|
|
// Quantity Indicates whether to export quantity.
|
|
Quantity *bool `json:"quantity,omitempty"`
|
|
|
|
// Rtl Indicates whether to export RTL.
|
|
Rtl *bool `json:"rtl,omitempty"`
|
|
|
|
// UnitPrice Indicates whether to export unit price.
|
|
UnitPrice *bool `json:"unitPrice,omitempty"`
|
|
}
|
|
|
|
// InvoiceFilterNumericData defines model for InvoiceFilterNumericData.
|
|
type InvoiceFilterNumericData struct {
|
|
ExactValue *int64 `json:"exactValue,omitempty"`
|
|
GreaterThanValue *int64 `json:"greaterThanValue,omitempty"`
|
|
LessThanValue *int64 `json:"lessThanValue,omitempty"`
|
|
}
|
|
|
|
// InvoiceFilterRequest defines model for InvoiceFilterRequest.
|
|
type InvoiceFilterRequest struct {
|
|
AmountFilterData *InvoiceFilterNumericData `json:"amountFilterData,omitempty"`
|
|
BalanceFilterData *InvoiceFilterNumericData `json:"balanceFilterData,omitempty"`
|
|
Clients *ContainsClientsFilterRequest `json:"clients,omitempty"`
|
|
Companies *ContainsCompaniesFilterRequest `json:"companies,omitempty"`
|
|
ContainsClientsFilterRequest *ContainsClientsFilterRequest `json:"containsClientsFilterRequest,omitempty"`
|
|
ContainsCompaniesFilterRequest *ContainsCompaniesFilterRequest `json:"containsCompaniesFilterRequest,omitempty"`
|
|
ExactAmount *int64 `json:"exact-amount,omitempty"`
|
|
ExactBalance *int64 `json:"exact-balance,omitempty"`
|
|
GreaterThanAmount *int64 `json:"greater-than-amount,omitempty"`
|
|
GreaterThanBalance *int64 `json:"greater-than-balance,omitempty"`
|
|
Invoicenumber *string `json:"invoice-number,omitempty"`
|
|
Invoicenumber1 *string `json:"invoiceNumber,omitempty"`
|
|
IssueDate *TimeRangeRequest `json:"issue-date,omitempty"`
|
|
LessThanAmount *int64 `json:"less-than-amount,omitempty"`
|
|
LessThanBalance *int64 `json:"less-than-balance,omitempty"`
|
|
Page int32 `json:"page"`
|
|
Pagesize *int32 `json:"page-size,omitempty"`
|
|
Pagesize1 int32 `json:"pageSize"`
|
|
Sortcolumn *string `json:"sort-column,omitempty"`
|
|
Sortorder *string `json:"sort-order,omitempty"`
|
|
Sortcolumn1 *string `json:"sortColumn,omitempty"`
|
|
Sortorder1 *string `json:"sortOrder,omitempty"`
|
|
Statuses *[]InvoiceFilterRequestStatuses `json:"statuses,omitempty"`
|
|
StrictIdSearch *bool `json:"strict-id-search,omitempty"`
|
|
StrictSearch *bool `json:"strictSearch,omitempty"`
|
|
TimeRangeRequest *TimeRangeRequest `json:"timeRangeRequest,omitempty"`
|
|
}
|
|
|
|
// InvoiceFilterRequestStatuses defines model for InvoiceFilterRequest.Statuses.
|
|
type InvoiceFilterRequestStatuses string
|
|
|
|
// InvoiceInfoDto defines model for InvoiceInfoDto.
|
|
type InvoiceInfoDto struct {
|
|
Amount *int64 `json:"amount,omitempty"`
|
|
Balance *int64 `json:"balance,omitempty"`
|
|
BillFrom *string `json:"billFrom,omitempty"`
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
ClientName *string `json:"clientName,omitempty"`
|
|
Currency *string `json:"currency,omitempty"`
|
|
DaysOverdue *int64 `json:"daysOverdue,omitempty"`
|
|
DueDate *time.Time `json:"dueDate,omitempty"`
|
|
HasPayments *bool `json:"hasPayments,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IssuedDate *time.Time `json:"issuedDate,omitempty"`
|
|
Number *string `json:"number,omitempty"`
|
|
Paid *int64 `json:"paid,omitempty"`
|
|
Status *InvoiceInfoDtoStatus `json:"status,omitempty"`
|
|
VisibleZeroFields *[]InvoiceInfoDtoVisibleZeroFields `json:"visibleZeroFields,omitempty"`
|
|
}
|
|
|
|
// InvoiceInfoDtoStatus defines model for InvoiceInfoDto.Status.
|
|
type InvoiceInfoDtoStatus string
|
|
|
|
// InvoiceInfoDtoVisibleZeroFields defines model for InvoiceInfoDto.VisibleZeroFields.
|
|
type InvoiceInfoDtoVisibleZeroFields string
|
|
|
|
// InvoiceInfoResponseDto defines model for InvoiceInfoResponseDto.
|
|
type InvoiceInfoResponseDto struct {
|
|
Invoices *[]InvoiceInfoDto `json:"invoices,omitempty"`
|
|
Total *int64 `json:"total,omitempty"`
|
|
}
|
|
|
|
// InvoiceItemDto defines model for InvoiceItemDto.
|
|
type InvoiceItemDto struct {
|
|
// Amount Represents item amount.
|
|
Amount *int64 `json:"amount,omitempty"`
|
|
|
|
// Description Represents an invoice item description.
|
|
Description *string `json:"description,omitempty"`
|
|
|
|
// ItemType Represents item type.
|
|
ItemType *string `json:"itemType,omitempty"`
|
|
|
|
// Order Represents an integer.
|
|
Order *int32 `json:"order,omitempty"`
|
|
|
|
// Quantity Represents item quantity.
|
|
Quantity *int64 `json:"quantity,omitempty"`
|
|
|
|
// TimeEntryIds Represents a list of time entrry IDs.
|
|
TimeEntryIds *[]string `json:"timeEntryIds,omitempty"`
|
|
|
|
// UnitPrice Represents item unit price.
|
|
UnitPrice *int64 `json:"unitPrice,omitempty"`
|
|
}
|
|
|
|
// InvoiceItemTypeDto defines model for InvoiceItemTypeDto.
|
|
type InvoiceItemTypeDto struct {
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// InvoiceOverviewDto defines model for InvoiceOverviewDto.
|
|
type InvoiceOverviewDto struct {
|
|
Amount *int64 `json:"amount,omitempty"`
|
|
Balance *int64 `json:"balance,omitempty"`
|
|
BillFrom *string `json:"billFrom,omitempty"`
|
|
ClientAddress *string `json:"clientAddress,omitempty"`
|
|
ClientArchived *bool `json:"clientArchived,omitempty"`
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
ClientName *string `json:"clientName,omitempty"`
|
|
CompanyId *string `json:"companyId,omitempty"`
|
|
ContainsAttachedReceipts *bool `json:"containsAttachedReceipts,omitempty"`
|
|
ContainsImportedExpenses *bool `json:"containsImportedExpenses,omitempty"`
|
|
ContainsImportedTimes *bool `json:"containsImportedTimes,omitempty"`
|
|
Currency *string `json:"currency,omitempty"`
|
|
DaysOverdue *int64 `json:"daysOverdue,omitempty"`
|
|
// Deprecated:
|
|
Discount *float64 `json:"discount,omitempty"`
|
|
DiscountAmount *int64 `json:"discountAmount,omitempty"`
|
|
DiscountPercent *float64 `json:"discountPercent,omitempty"`
|
|
DueDate *time.Time `json:"dueDate,omitempty"`
|
|
HasPayments *bool `json:"hasPayments,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IssuedDate *time.Time `json:"issuedDate,omitempty"`
|
|
Items *[]InvoiceItemDto `json:"items,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
Number *string `json:"number,omitempty"`
|
|
Paid *int64 `json:"paid,omitempty"`
|
|
Status *InvoiceOverviewDtoStatus `json:"status,omitempty"`
|
|
Subject *string `json:"subject,omitempty"`
|
|
Subtotal *int64 `json:"subtotal,omitempty"`
|
|
// Deprecated:
|
|
Tax *float64 `json:"tax,omitempty"`
|
|
// Deprecated:
|
|
Tax2 *float64 `json:"tax2,omitempty"`
|
|
Tax2Amount *int64 `json:"tax2Amount,omitempty"`
|
|
Tax2Percent *float64 `json:"tax2Percent,omitempty"`
|
|
TaxAmount *int64 `json:"taxAmount,omitempty"`
|
|
TaxPercent *float64 `json:"taxPercent,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
VisibleZeroFields *[]InvoiceOverviewDtoVisibleZeroFields `json:"visibleZeroFields,omitempty"`
|
|
}
|
|
|
|
// InvoiceOverviewDtoStatus defines model for InvoiceOverviewDto.Status.
|
|
type InvoiceOverviewDtoStatus string
|
|
|
|
// InvoiceOverviewDtoVisibleZeroFields defines model for InvoiceOverviewDto.VisibleZeroFields.
|
|
type InvoiceOverviewDtoVisibleZeroFields string
|
|
|
|
// InvoicePaymentDto defines model for InvoicePaymentDto.
|
|
type InvoicePaymentDto struct {
|
|
Amount *int64 `json:"amount,omitempty"`
|
|
Author *string `json:"author,omitempty"`
|
|
Date *time.Time `json:"date,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
}
|
|
|
|
// InvoicePermissionsDto defines model for InvoicePermissionsDto.
|
|
type InvoicePermissionsDto struct {
|
|
EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"`
|
|
SelectedUsersCount *int32 `json:"selectedUsersCount,omitempty"`
|
|
SpecificMembersAllowed *bool `json:"specificMembersAllowed,omitempty"`
|
|
UserGroupIds *[]string `json:"userGroupIds,omitempty"`
|
|
UserIds *[]string `json:"userIds,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// InvoicePermissionsRequest defines model for InvoicePermissionsRequest.
|
|
type InvoicePermissionsRequest struct {
|
|
EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"`
|
|
SpecificMembersAllowed *bool `json:"specificMembersAllowed,omitempty"`
|
|
UserGroupIds *[]string `json:"userGroupIds,omitempty"`
|
|
UserIds *[]string `json:"userIds,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// InvoiceSettingsDto defines model for InvoiceSettingsDto.
|
|
type InvoiceSettingsDto struct {
|
|
Defaults *InvoiceDefaultSettingsDto `json:"defaults,omitempty"`
|
|
ExportFields *InvoiceExportFields `json:"exportFields,omitempty"`
|
|
Labels *LabelsCustomization `json:"labels,omitempty"`
|
|
}
|
|
|
|
// KioskDefault defines model for KioskDefault.
|
|
type KioskDefault struct {
|
|
KioskId string `json:"kioskId"`
|
|
ProjectId string `json:"projectId"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
}
|
|
|
|
// KioskDto defines model for KioskDto.
|
|
type KioskDto struct {
|
|
DefaultEntities *DefaultEntitiesDto `json:"defaultEntities,omitempty"`
|
|
EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"`
|
|
GroupIds *[]string `json:"groupIds,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Pin *PinSettingDto `json:"pin,omitempty"`
|
|
SessionDuration *int32 `json:"sessionDuration,omitempty"`
|
|
Status *KioskDtoStatus `json:"status,omitempty"`
|
|
UrlSlug *string `json:"urlSlug,omitempty"`
|
|
UserIds *[]string `json:"userIds,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// KioskDtoStatus defines model for KioskDto.Status.
|
|
type KioskDtoStatus string
|
|
|
|
// KioskHydratedDto defines model for KioskHydratedDto.
|
|
type KioskHydratedDto struct {
|
|
DefaultEntities *DefaultEntitiesDto `json:"defaultEntities,omitempty"`
|
|
EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"`
|
|
Groups *[]UserGroupInfoDto `json:"groups,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Pin *PinSettingDto `json:"pin,omitempty"`
|
|
SessionDuration *int32 `json:"sessionDuration,omitempty"`
|
|
Status *KioskHydratedDtoStatus `json:"status,omitempty"`
|
|
UrlSlug *string `json:"urlSlug,omitempty"`
|
|
UrlToken *string `json:"urlToken,omitempty"`
|
|
Users *[]UserInfoWithMembershipStatusDto `json:"users,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// KioskHydratedDtoStatus defines model for KioskHydratedDto.Status.
|
|
type KioskHydratedDtoStatus string
|
|
|
|
// KioskHydratedWithCountDto defines model for KioskHydratedWithCountDto.
|
|
type KioskHydratedWithCountDto struct {
|
|
Count *int32 `json:"count,omitempty"`
|
|
Kiosks *[]KioskHydratedDto `json:"kiosks,omitempty"`
|
|
}
|
|
|
|
// KioskUserPinCodeDto defines model for KioskUserPinCodeDto.
|
|
type KioskUserPinCodeDto struct {
|
|
Id *string `json:"id,omitempty"`
|
|
PinCode *PinCode `json:"pinCode,omitempty"`
|
|
PinCodeContext *KioskUserPinCodeDtoPinCodeContext `json:"pinCodeContext,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// KioskUserPinCodeDtoPinCodeContext defines model for KioskUserPinCodeDto.PinCodeContext.
|
|
type KioskUserPinCodeDtoPinCodeContext string
|
|
|
|
// LabelsCustomization defines model for LabelsCustomization.
|
|
type LabelsCustomization struct {
|
|
// Amount Represents invoice amount.
|
|
Amount *string `json:"amount,omitempty"`
|
|
|
|
// BillFrom Represents a string an invoice is billed from.
|
|
BillFrom *string `json:"billFrom,omitempty"`
|
|
|
|
// BillTo Represents a string an invoice is billed to.
|
|
BillTo *string `json:"billTo,omitempty"`
|
|
|
|
// Description Represents a description of an invoice.
|
|
Description *string `json:"description,omitempty"`
|
|
|
|
// Discount Represents invoice discount amount.
|
|
Discount *string `json:"discount,omitempty"`
|
|
|
|
// DueDate Represents a due date in yyyy-MM-dd format.
|
|
DueDate *string `json:"dueDate,omitempty"`
|
|
|
|
// IssueDate Represents an issue date in yyyy-MM-dd format.
|
|
IssueDate *string `json:"issueDate,omitempty"`
|
|
|
|
// ItemType Represents an item type.
|
|
ItemType *string `json:"itemType,omitempty"`
|
|
|
|
// Notes Represents notes for an invoice.
|
|
Notes *string `json:"notes,omitempty"`
|
|
|
|
// Paid Represents invoice paid amount.
|
|
Paid *string `json:"paid,omitempty"`
|
|
|
|
// Quantity Represents quantity.
|
|
Quantity *string `json:"quantity,omitempty"`
|
|
|
|
// Subtotal Represents invoice subtotal.
|
|
Subtotal *string `json:"subtotal,omitempty"`
|
|
|
|
// Tax Represents invoice tax amount.
|
|
Tax *string `json:"tax,omitempty"`
|
|
|
|
// Tax2 Represents invoice tax amount.
|
|
Tax2 *string `json:"tax2,omitempty"`
|
|
|
|
// Total Represents invoice total amount.
|
|
Total *string `json:"total,omitempty"`
|
|
|
|
// TotalAmount Represents invoice total amount.
|
|
TotalAmount *string `json:"totalAmount,omitempty"`
|
|
|
|
// UnitPrice Represents unit price.
|
|
UnitPrice *string `json:"unitPrice,omitempty"`
|
|
}
|
|
|
|
// LabelsCustomizationRequest defines model for LabelsCustomizationRequest.
|
|
type LabelsCustomizationRequest struct {
|
|
// Amount Represents invoice amount label.
|
|
Amount string `json:"amount"`
|
|
|
|
// BillFrom Represents invoice bill from label.
|
|
BillFrom string `json:"billFrom"`
|
|
|
|
// BillTo Represents invoice bill to label.
|
|
BillTo string `json:"billTo"`
|
|
|
|
// Description Represents invoice description label.
|
|
Description string `json:"description"`
|
|
|
|
// Discount Represents invoice discount amount label.
|
|
Discount string `json:"discount"`
|
|
|
|
// DueDate Represents invoice due date label.
|
|
DueDate string `json:"dueDate"`
|
|
|
|
// IssueDate Represents invoice issue date label.
|
|
IssueDate string `json:"issueDate"`
|
|
|
|
// ItemType Represents invoice item type label.
|
|
ItemType string `json:"itemType"`
|
|
|
|
// Notes Represents invoice notes label.
|
|
Notes string `json:"notes"`
|
|
|
|
// Paid Represents invoice paid amount label.
|
|
Paid string `json:"paid"`
|
|
|
|
// Quantity Represents invoice quantity label.
|
|
Quantity string `json:"quantity"`
|
|
|
|
// Subtotal Represents invoice subtotal label.
|
|
Subtotal string `json:"subtotal"`
|
|
|
|
// Tax Represents invoice tax amount label.
|
|
Tax string `json:"tax"`
|
|
|
|
// Tax2 Represents invoice tax 2 amount label.
|
|
Tax2 string `json:"tax2"`
|
|
|
|
// Total Represents invoice total amount label.
|
|
Total string `json:"total"`
|
|
|
|
// TotalAmountDue Represents invoice total amount due label.
|
|
TotalAmountDue string `json:"totalAmountDue"`
|
|
|
|
// UnitPrice Represents invoice unit price label.
|
|
UnitPrice string `json:"unitPrice"`
|
|
}
|
|
|
|
// LatestActivityItemDto defines model for LatestActivityItemDto.
|
|
type LatestActivityItemDto struct {
|
|
ClientName *string `json:"clientName,omitempty"`
|
|
Color *string `json:"color,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
Label *string `json:"label,omitempty"`
|
|
Percentage *string `json:"percentage,omitempty"`
|
|
ProjectName *string `json:"projectName,omitempty"`
|
|
TransformedLabel *string `json:"transformedLabel,omitempty"`
|
|
TransformedProjectName *string `json:"transformedProjectName,omitempty"`
|
|
}
|
|
|
|
// LegacyPlanNotificationRequest defines model for LegacyPlanNotificationRequest.
|
|
type LegacyPlanNotificationRequest struct {
|
|
WorkspaceIds *[]string `json:"workspaceIds,omitempty"`
|
|
}
|
|
|
|
// LegacyPlanUpgradeDataDto defines model for LegacyPlanUpgradeDataDto.
|
|
type LegacyPlanUpgradeDataDto struct {
|
|
HasLegacyWorkspace *bool `json:"hasLegacyWorkspace,omitempty"`
|
|
IsAcknowledged *bool `json:"isAcknowledged,omitempty"`
|
|
IsCurrentWorkspaceLegacy *bool `json:"isCurrentWorkspaceLegacy,omitempty"`
|
|
}
|
|
|
|
// LimboTokenRequest defines model for LimboTokenRequest.
|
|
type LimboTokenRequest struct {
|
|
CakeAccessToken *string `json:"cakeAccessToken,omitempty"`
|
|
ClockifyAccessToken *string `json:"clockifyAccessToken,omitempty"`
|
|
ExchangeToken *string `json:"exchangeToken,omitempty"`
|
|
}
|
|
|
|
// Link defines model for Link.
|
|
type Link struct {
|
|
Copy *string `json:"copy,omitempty"`
|
|
Uri *string `json:"uri,omitempty"`
|
|
}
|
|
|
|
// LinkDto defines model for LinkDto.
|
|
type LinkDto struct {
|
|
Copy *string `json:"copy,omitempty"`
|
|
Uri *string `json:"uri,omitempty"`
|
|
}
|
|
|
|
// LinkRequest defines model for LinkRequest.
|
|
type LinkRequest struct {
|
|
Copy *string `json:"copy,omitempty"`
|
|
Uri *string `json:"uri,omitempty"`
|
|
}
|
|
|
|
// LoginSettingsDto defines model for LoginSettingsDto.
|
|
type LoginSettingsDto struct {
|
|
AppleConfiguration *AppleConfigurationDto `json:"appleConfiguration,omitempty"`
|
|
AutoLogin *string `json:"autoLogin,omitempty"`
|
|
GetoAuthConfiguration *OAuthConfigurationDto `json:"getoAuthConfiguration,omitempty"`
|
|
IsoAuthAutomaticJoinWorkspace *bool `json:"isoAuthAutomaticJoinWorkspace,omitempty"`
|
|
LoginPreferences *[]string `json:"loginPreferences,omitempty"`
|
|
LogoURL *string `json:"logoURL,omitempty"`
|
|
Oauth2Forced *bool `json:"oauth2Forced,omitempty"`
|
|
RegistrationLocked *bool `json:"registrationLocked,omitempty"`
|
|
Saml2AutomaticJoinWorkspace *bool `json:"saml2AutomaticJoinWorkspace,omitempty"`
|
|
Saml2Forced *bool `json:"saml2Forced,omitempty"`
|
|
Saml2Settings *SAML2LoginSettingsDto `json:"saml2Settings,omitempty"`
|
|
}
|
|
|
|
// MainReportDto defines model for MainReportDto.
|
|
type MainReportDto struct {
|
|
BillableAndTotalTime *map[string]TotalTimeItemDto `json:"billableAndTotalTime,omitempty"`
|
|
DateAndTotalTime *map[string][]TotalTimeItemDto `json:"dateAndTotalTime,omitempty"`
|
|
EarningByUserMap *map[string]int64 `json:"earningByUserMap,omitempty"`
|
|
EarningWithCurrencyByUserMap *map[string][]AmountWithCurrencyDto `json:"earningWithCurrencyByUserMap,omitempty"`
|
|
ProjectAndTotalTime *map[string]TotalTimeItemDto `json:"projectAndTotalTime,omitempty"`
|
|
TopClient *string `json:"topClient,omitempty"`
|
|
TopProject *string `json:"topProject,omitempty"`
|
|
TotalBillable *string `json:"totalBillable,omitempty"`
|
|
TotalEarned *int64 `json:"totalEarned,omitempty"`
|
|
TotalEarnedByCurrency *[]AmountWithCurrencyDto `json:"totalEarnedByCurrency,omitempty"`
|
|
TotalTime *string `json:"totalTime,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// MemberProfileDto defines model for MemberProfileDto.
|
|
type MemberProfileDto struct {
|
|
Email *string `json:"email,omitempty"`
|
|
HasPassword *bool `json:"hasPassword,omitempty"`
|
|
HasPendingApprovalRequest *bool `json:"hasPendingApprovalRequest,omitempty"`
|
|
ImageUrl *string `json:"imageUrl,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
UserCustomFieldValues *[]UserCustomFieldValueFullDto `json:"userCustomFieldValues,omitempty"`
|
|
WeekStart *string `json:"weekStart,omitempty"`
|
|
WorkCapacity *string `json:"workCapacity,omitempty"`
|
|
WorkingDays *[]string `json:"workingDays,omitempty"`
|
|
WorkspaceNumber *int32 `json:"workspaceNumber,omitempty"`
|
|
}
|
|
|
|
// MemberProfileFullRequest defines model for MemberProfileFullRequest.
|
|
type MemberProfileFullRequest struct {
|
|
ImageUrl *Url `json:"imageUrl,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
RemoveProfileImage *bool `json:"removeProfileImage,omitempty"`
|
|
UserCustomFields *[]UpsertUserCustomFieldRequest `json:"userCustomFields,omitempty"`
|
|
UserCustomFieldsOptional *[]UpsertUserCustomFieldRequest `json:"userCustomFieldsOptional,omitempty"`
|
|
WeekStart *MemberProfileFullRequestWeekStart `json:"weekStart,omitempty"`
|
|
WorkCapacity *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"workCapacity,omitempty"`
|
|
WorkingDays *[]MemberProfileFullRequestWorkingDays `json:"workingDays,omitempty"`
|
|
}
|
|
|
|
// MemberProfileFullRequestWeekStart defines model for MemberProfileFullRequest.WeekStart.
|
|
type MemberProfileFullRequestWeekStart string
|
|
|
|
// MemberProfileFullRequestWorkingDays defines model for MemberProfileFullRequest.WorkingDays.
|
|
type MemberProfileFullRequestWorkingDays string
|
|
|
|
// MemberProfileRequest defines model for MemberProfileRequest.
|
|
type MemberProfileRequest struct {
|
|
ImageUrl *Url `json:"imageUrl,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
RemoveProfileImage *bool `json:"removeProfileImage,omitempty"`
|
|
WeekStart *MemberProfileRequestWeekStart `json:"weekStart,omitempty"`
|
|
WorkCapacity *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"workCapacity,omitempty"`
|
|
WorkingDays *[]MemberProfileRequestWorkingDays `json:"workingDays,omitempty"`
|
|
}
|
|
|
|
// MemberProfileRequestWeekStart defines model for MemberProfileRequest.WeekStart.
|
|
type MemberProfileRequestWeekStart string
|
|
|
|
// MemberProfileRequestWorkingDays defines model for MemberProfileRequest.WorkingDays.
|
|
type MemberProfileRequestWorkingDays string
|
|
|
|
// MemberSettingsRequest defines model for MemberSettingsRequest.
|
|
type MemberSettingsRequest struct {
|
|
WeekStart *MemberSettingsRequestWeekStart `json:"weekStart,omitempty"`
|
|
WorkCapacity *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"workCapacity,omitempty"`
|
|
WorkingDays *[]MemberSettingsRequestWorkingDays `json:"workingDays,omitempty"`
|
|
}
|
|
|
|
// MemberSettingsRequestWeekStart defines model for MemberSettingsRequest.WeekStart.
|
|
type MemberSettingsRequestWeekStart string
|
|
|
|
// MemberSettingsRequestWorkingDays defines model for MemberSettingsRequest.WorkingDays.
|
|
type MemberSettingsRequestWorkingDays string
|
|
|
|
// MembersCountDto defines model for MembersCountDto.
|
|
type MembersCountDto struct {
|
|
ActiveLimitedMembersCount *int32 `json:"activeLimitedMembersCount,omitempty"`
|
|
ActiveMembersCount *int32 `json:"activeMembersCount,omitempty"`
|
|
InactiveMembersCount *int32 `json:"inactiveMembersCount,omitempty"`
|
|
}
|
|
|
|
// MembershipDto defines model for MembershipDto.
|
|
type MembershipDto struct {
|
|
CostRate *RateDto `json:"costRate,omitempty"`
|
|
HourlyRate *RateDto `json:"hourlyRate,omitempty"`
|
|
MembershipStatus *MembershipDtoMembershipStatus `json:"membershipStatus,omitempty"`
|
|
MembershipType *string `json:"membershipType,omitempty"`
|
|
TargetId *string `json:"targetId,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
}
|
|
|
|
// MembershipDtoMembershipStatus defines model for MembershipDto.MembershipStatus.
|
|
type MembershipDtoMembershipStatus string
|
|
|
|
// MembershipRequest defines model for MembershipRequest.
|
|
type MembershipRequest struct {
|
|
HourlyRate *HourlyRateRequest `json:"hourlyRate,omitempty"`
|
|
|
|
// MembershipStatus Represents a membership status enum.
|
|
MembershipStatus *MembershipRequestMembershipStatus `json:"membershipStatus,omitempty"`
|
|
|
|
// MembershipType Represents membership type enum.
|
|
MembershipType *MembershipRequestMembershipType `json:"membershipType,omitempty"`
|
|
|
|
// UserId Represents user identifier across the system.
|
|
UserId *string `json:"userId,omitempty"`
|
|
}
|
|
|
|
// MembershipRequestMembershipStatus Represents a membership status enum.
|
|
type MembershipRequestMembershipStatus string
|
|
|
|
// MembershipRequestMembershipType Represents membership type enum.
|
|
type MembershipRequestMembershipType string
|
|
|
|
// MilestoneCreateRequest defines model for MilestoneCreateRequest.
|
|
type MilestoneCreateRequest struct {
|
|
Date *string `json:"date,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
ProjectId string `json:"projectId"`
|
|
}
|
|
|
|
// MilestoneDateRequest defines model for MilestoneDateRequest.
|
|
type MilestoneDateRequest struct {
|
|
Date *time.Time `json:"date,omitempty"`
|
|
}
|
|
|
|
// MilestoneDto defines model for MilestoneDto.
|
|
type MilestoneDto struct {
|
|
// Date Represents a date in yyyy-MM-ddThh:mm:ssZ format.
|
|
Date *time.Time `json:"date,omitempty"`
|
|
|
|
// Id Represents milestone identifier across the system.
|
|
Id *string `json:"id,omitempty"`
|
|
|
|
// Name Represents milestone name.
|
|
Name *string `json:"name,omitempty"`
|
|
|
|
// ProjectId Represents project identifier across the system.
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
|
|
// WorkspaceId Represents workspace identifier across the system.
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// MilestoneUpdateRequest defines model for MilestoneUpdateRequest.
|
|
type MilestoneUpdateRequest struct {
|
|
Date *time.Time `json:"date,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// MostTrackedDto defines model for MostTrackedDto.
|
|
type MostTrackedDto struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
ClientName *string `json:"clientName,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
ProjectColor *string `json:"projectColor,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
ProjectName *string `json:"projectName,omitempty"`
|
|
TagIds *[]string `json:"tagIds,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
TaskName *string `json:"taskName,omitempty"`
|
|
}
|
|
|
|
// NegativeBalanceDto defines model for NegativeBalanceDto.
|
|
type NegativeBalanceDto struct {
|
|
Amount *float64 `json:"amount,omitempty"`
|
|
Period *string `json:"period,omitempty"`
|
|
TimeUnit *string `json:"timeUnit,omitempty"`
|
|
}
|
|
|
|
// NegativeBalanceRequest defines model for NegativeBalanceRequest.
|
|
type NegativeBalanceRequest struct {
|
|
// Amount Represents negative balance amount.
|
|
Amount float64 `json:"amount"`
|
|
AmountValidForTimeUnit *bool `json:"amountValidForTimeUnit,omitempty"`
|
|
|
|
// Period Represents negative balance period.
|
|
Period *NegativeBalanceRequestPeriod `json:"period,omitempty"`
|
|
|
|
// TimeUnit Represents negative balance time unit.
|
|
TimeUnit *NegativeBalanceRequestTimeUnit `json:"timeUnit,omitempty"`
|
|
}
|
|
|
|
// NegativeBalanceRequestPeriod Represents negative balance period.
|
|
type NegativeBalanceRequestPeriod string
|
|
|
|
// NegativeBalanceRequestTimeUnit Represents negative balance time unit.
|
|
type NegativeBalanceRequestTimeUnit string
|
|
|
|
// NewsDto defines model for NewsDto.
|
|
type NewsDto struct {
|
|
Id *string `json:"id,omitempty"`
|
|
Image *NewsImageInfo `json:"image,omitempty"`
|
|
Link *string `json:"link,omitempty"`
|
|
LinkText *string `json:"linkText,omitempty"`
|
|
Message *string `json:"message,omitempty"`
|
|
Title *string `json:"title,omitempty"`
|
|
UserRole *NewsDtoUserRole `json:"userRole,omitempty"`
|
|
WorkspacePlan *NewsDtoWorkspacePlan `json:"workspacePlan,omitempty"`
|
|
}
|
|
|
|
// NewsDtoUserRole defines model for NewsDto.UserRole.
|
|
type NewsDtoUserRole string
|
|
|
|
// NewsDtoWorkspacePlan defines model for NewsDto.WorkspacePlan.
|
|
type NewsDtoWorkspacePlan string
|
|
|
|
// NewsImageInfo defines model for NewsImageInfo.
|
|
type NewsImageInfo struct {
|
|
ImageName *string `json:"imageName,omitempty"`
|
|
ImagePath *string `json:"imagePath,omitempty"`
|
|
}
|
|
|
|
// NewsRequest defines model for NewsRequest.
|
|
type NewsRequest struct {
|
|
Body *string `json:"body,omitempty"`
|
|
Header *string `json:"header,omitempty"`
|
|
Image *NewsImageInfo `json:"image,omitempty"`
|
|
Link *string `json:"link,omitempty"`
|
|
LinkText *string `json:"linkText,omitempty"`
|
|
Role *NewsRequestRole `json:"role,omitempty"`
|
|
WorkspaceIds *[]string `json:"workspaceIds,omitempty"`
|
|
WorkspacePlan *NewsRequestWorkspacePlan `json:"workspacePlan,omitempty"`
|
|
}
|
|
|
|
// NewsRequestRole defines model for NewsRequest.Role.
|
|
type NewsRequestRole string
|
|
|
|
// NewsRequestWorkspacePlan defines model for NewsRequest.WorkspacePlan.
|
|
type NewsRequestWorkspacePlan string
|
|
|
|
// NextCustomerInformationDto defines model for NextCustomerInformationDto.
|
|
type NextCustomerInformationDto struct {
|
|
BillingAddress *string `json:"billingAddress,omitempty"`
|
|
BillingAddress2 *string `json:"billingAddress2,omitempty"`
|
|
BillingCity *string `json:"billingCity,omitempty"`
|
|
BillingCountry *string `json:"billingCountry,omitempty"`
|
|
BillingState *string `json:"billingState,omitempty"`
|
|
BillingZip *string `json:"billingZip,omitempty"`
|
|
Currency *string `json:"currency,omitempty"`
|
|
}
|
|
|
|
// NextInvoiceNumberDto defines model for NextInvoiceNumberDto.
|
|
type NextInvoiceNumberDto struct {
|
|
NextNumber *string `json:"nextNumber,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// NotificationDataDto defines model for NotificationDataDto.
|
|
type NotificationDataDto struct {
|
|
Type *NotificationDataDtoType `json:"type,omitempty"`
|
|
}
|
|
|
|
// NotificationDataDtoType defines model for NotificationDataDto.Type.
|
|
type NotificationDataDtoType string
|
|
|
|
// NotificationDto defines model for NotificationDto.
|
|
type NotificationDto struct {
|
|
Data *NotificationDataDto `json:"data,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Status *NotificationDtoStatus `json:"status,omitempty"`
|
|
Type *NotificationDtoType `json:"type,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
}
|
|
|
|
// NotificationDtoStatus defines model for NotificationDto.Status.
|
|
type NotificationDtoStatus string
|
|
|
|
// NotificationDtoType defines model for NotificationDto.Type.
|
|
type NotificationDtoType string
|
|
|
|
// OAuth2ConfigurationDto defines model for OAuth2ConfigurationDto.
|
|
type OAuth2ConfigurationDto struct {
|
|
AccessTokenPath *string `json:"accessTokenPath,omitempty"`
|
|
Active *bool `json:"active,omitempty"`
|
|
AuthorizationCodePath *string `json:"authorizationCodePath,omitempty"`
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
ClientSecret *string `json:"clientSecret,omitempty"`
|
|
EmailTokenField *string `json:"emailTokenField,omitempty"`
|
|
FirstNameTokenField *string `json:"firstNameTokenField,omitempty"`
|
|
ForceSSO *bool `json:"forceSSO,omitempty"`
|
|
IsActive *bool `json:"isActive,omitempty"`
|
|
LastNameTokenField *string `json:"lastNameTokenField,omitempty"`
|
|
LogoUri *string `json:"logoUri,omitempty"`
|
|
Scope *string `json:"scope,omitempty"`
|
|
UserInfoOpenIdPath *string `json:"userInfoOpenIdPath,omitempty"`
|
|
UsernameTokenField *string `json:"usernameTokenField,omitempty"`
|
|
}
|
|
|
|
// OAuthConfigurationDto defines model for OAuthConfigurationDto.
|
|
type OAuthConfigurationDto struct {
|
|
Active *bool `json:"active,omitempty"`
|
|
ForceSSO *bool `json:"forceSSO,omitempty"`
|
|
IsActive *bool `json:"isActive,omitempty"`
|
|
LogoUri *string `json:"logoUri,omitempty"`
|
|
Url *string `json:"url,omitempty"`
|
|
}
|
|
|
|
// OAuthConfigurationRequest defines model for OAuthConfigurationRequest.
|
|
type OAuthConfigurationRequest struct {
|
|
AccessTokenPath string `json:"accessTokenPath"`
|
|
Active *bool `json:"active,omitempty"`
|
|
AuthorizationCodePath string `json:"authorizationCodePath"`
|
|
ClientId string `json:"clientId"`
|
|
ClientSecret string `json:"clientSecret"`
|
|
EmailTokenField string `json:"emailTokenField"`
|
|
FirstNameTokenField *string `json:"firstNameTokenField,omitempty"`
|
|
ForceSSO *bool `json:"forceSSO,omitempty"`
|
|
LastNameTokenField *string `json:"lastNameTokenField,omitempty"`
|
|
LogoUri *string `json:"logoUri,omitempty"`
|
|
Scope string `json:"scope"`
|
|
UserInfoOpenIdPath string `json:"userInfoOpenIdPath"`
|
|
UsernameTokenField *string `json:"usernameTokenField,omitempty"`
|
|
}
|
|
|
|
// OrganizationDto defines model for OrganizationDto.
|
|
type OrganizationDto struct {
|
|
Auth *AuthDto `json:"auth,omitempty"`
|
|
AutoLogin *OrganizationDtoAutoLogin `json:"autoLogin,omitempty"`
|
|
CustomSupportLinksSettings *CustomSupportLinksSettingsDto `json:"customSupportLinksSettings,omitempty"`
|
|
DomainName *string `json:"domainName,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
LoginPreferences *[]string `json:"loginPreferences,omitempty"`
|
|
LogoURL *string `json:"logoURL,omitempty"`
|
|
OAuthAutomaticJoinWorkspace *bool `json:"oAuthAutomaticJoinWorkspace,omitempty"`
|
|
Saml2AutomaticJoinWorkspace *bool `json:"saml2AutomaticJoinWorkspace,omitempty"`
|
|
WorkspaceIds *[]string `json:"workspaceIds,omitempty"`
|
|
}
|
|
|
|
// OrganizationDtoAutoLogin defines model for OrganizationDto.AutoLogin.
|
|
type OrganizationDtoAutoLogin string
|
|
|
|
// OrganizationNameDto defines model for OrganizationNameDto.
|
|
type OrganizationNameDto struct {
|
|
DomainName *string `json:"domainName,omitempty"`
|
|
}
|
|
|
|
// OrganizationRequest defines model for OrganizationRequest.
|
|
type OrganizationRequest struct {
|
|
AutoLogin *OrganizationRequestAutoLogin `json:"autoLogin,omitempty"`
|
|
ConvertedCustomLinks *CustomSupportLinksSettings `json:"convertedCustomLinks,omitempty"`
|
|
CustomSupportLinksSettings *CustomSupportLinksSettingsRequest `json:"customSupportLinksSettings,omitempty"`
|
|
DomainName *string `json:"domainName,omitempty"`
|
|
LoginPreferences *[]string `json:"loginPreferences,omitempty"`
|
|
LogoURL *string `json:"logoURL,omitempty"`
|
|
OAuthAutomaticJoinWorkspace *bool `json:"oAuthAutomaticJoinWorkspace,omitempty"`
|
|
Saml2AutomaticJoinWorkspace *bool `json:"saml2AutomaticJoinWorkspace,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// OrganizationRequestAutoLogin defines model for OrganizationRequest.AutoLogin.
|
|
type OrganizationRequestAutoLogin string
|
|
|
|
// OwnerIdResponse defines model for OwnerIdResponse.
|
|
type OwnerIdResponse struct {
|
|
OwnerId *string `json:"ownerId,omitempty"`
|
|
}
|
|
|
|
// OwnerTimeZoneResponse defines model for OwnerTimeZoneResponse.
|
|
type OwnerTimeZoneResponse struct {
|
|
OwnerTimeZone *string `json:"ownerTimeZone,omitempty"`
|
|
}
|
|
|
|
// PageProjectDto defines model for PageProjectDto.
|
|
type PageProjectDto struct {
|
|
Count *int32 `json:"count,omitempty"`
|
|
List *[]ProjectDto `json:"list,omitempty"`
|
|
}
|
|
|
|
// PatchProjectRequest defines model for PatchProjectRequest.
|
|
type PatchProjectRequest struct {
|
|
Archived *bool `json:"archived,omitempty"`
|
|
Billable *bool `json:"billable,omitempty"`
|
|
ChangeFields *[]PatchProjectRequestChangeFields `json:"changeFields,omitempty"`
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
Color *string `json:"color,omitempty"`
|
|
Estimate *EstimateRequest `json:"estimate,omitempty"`
|
|
HourlyRate *HourlyRateRequest `json:"hourlyRate,omitempty"`
|
|
IsPublic *bool `json:"isPublic,omitempty"`
|
|
OverwriteTasks *bool `json:"overwriteTasks,omitempty"`
|
|
ProjectIds *[]string `json:"projectIds,omitempty"`
|
|
Public *bool `json:"public,omitempty"`
|
|
Tasks *[]BulkTaskInfoRequest `json:"tasks,omitempty"`
|
|
// Deprecated:
|
|
UserGroupIds *[]string `json:"userGroupIds,omitempty"`
|
|
UserGroups *ContainsUsersFilterRequest `json:"userGroups,omitempty"`
|
|
// Deprecated:
|
|
UserIds *[]string `json:"userIds,omitempty"`
|
|
Users *ContainsUsersFilterRequest `json:"users,omitempty"`
|
|
}
|
|
|
|
// PatchProjectRequestChangeFields defines model for PatchProjectRequest.ChangeFields.
|
|
type PatchProjectRequestChangeFields string
|
|
|
|
// PaymentCardInformation defines model for PaymentCardInformation.
|
|
type PaymentCardInformation struct {
|
|
CardHolder *string `json:"cardHolder,omitempty"`
|
|
Last4digits *int64 `json:"last4digits,omitempty"`
|
|
Month *PaymentCardInformationMonth `json:"month,omitempty"`
|
|
PaymentMethodId *string `json:"paymentMethodId,omitempty"`
|
|
Year *struct {
|
|
Leap *bool `json:"leap,omitempty"`
|
|
Value *int32 `json:"value,omitempty"`
|
|
} `json:"year,omitempty"`
|
|
}
|
|
|
|
// PaymentCardInformationMonth defines model for PaymentCardInformation.Month.
|
|
type PaymentCardInformationMonth string
|
|
|
|
// PaymentMethodAddressRequest defines model for PaymentMethodAddressRequest.
|
|
type PaymentMethodAddressRequest struct {
|
|
InvoiceCountry *string `json:"invoiceCountry,omitempty"`
|
|
InvoiceState *string `json:"invoiceState,omitempty"`
|
|
PaymentAddress *string `json:"paymentAddress,omitempty"`
|
|
PaymentCity *string `json:"paymentCity,omitempty"`
|
|
PaymentZip *string `json:"paymentZip,omitempty"`
|
|
PmAddress *string `json:"pmAddress,omitempty"`
|
|
PmCity *string `json:"pmCity,omitempty"`
|
|
PmCountry *string `json:"pmCountry,omitempty"`
|
|
PmState *string `json:"pmState,omitempty"`
|
|
PmZip *string `json:"pmZip,omitempty"`
|
|
}
|
|
|
|
// PaymentRequest defines model for PaymentRequest.
|
|
type PaymentRequest struct {
|
|
CardHolder *string `json:"cardHolder,omitempty"`
|
|
Last4 *int64 `json:"last4,omitempty"`
|
|
Month *int32 `json:"month,omitempty"`
|
|
PaymentCardInformation *PaymentCardInformation `json:"paymentCardInformation,omitempty"`
|
|
PaymentMethodId *string `json:"paymentMethodId,omitempty"`
|
|
Type *PaymentRequestType `json:"type,omitempty"`
|
|
Year *int32 `json:"year,omitempty"`
|
|
}
|
|
|
|
// PaymentRequestType defines model for PaymentRequest.Type.
|
|
type PaymentRequestType string
|
|
|
|
// PenalizeTimeEntryRequest defines model for PenalizeTimeEntryRequest.
|
|
type PenalizeTimeEntryRequest struct {
|
|
Penalty int64 `json:"penalty"`
|
|
PenaltyTimePoint *string `json:"penaltyTimePoint,omitempty"`
|
|
PenaltyType *PenalizeTimeEntryRequestPenaltyType `json:"penaltyType,omitempty"`
|
|
}
|
|
|
|
// PenalizeTimeEntryRequestPenaltyType defines model for PenalizeTimeEntryRequest.PenaltyType.
|
|
type PenalizeTimeEntryRequestPenaltyType string
|
|
|
|
// PendingEmailChangeResponse defines model for PendingEmailChangeResponse.
|
|
type PendingEmailChangeResponse struct {
|
|
NewEmailAddress *string `json:"newEmailAddress,omitempty"`
|
|
}
|
|
|
|
// Period defines model for Period.
|
|
type Period struct {
|
|
End *time.Time `json:"end,omitempty"`
|
|
Start *time.Time `json:"start,omitempty"`
|
|
}
|
|
|
|
// PeriodRequest defines model for PeriodRequest.
|
|
type PeriodRequest struct {
|
|
End *string `json:"end,omitempty"`
|
|
EndAsInstant *time.Time `json:"endAsInstant,omitempty"`
|
|
Start *string `json:"start,omitempty"`
|
|
StartAsInstant *time.Time `json:"startAsInstant,omitempty"`
|
|
}
|
|
|
|
// PickerOptions defines model for PickerOptions.
|
|
type PickerOptions = map[string]interface{}
|
|
|
|
// PinCode defines model for PinCode.
|
|
type PinCode struct {
|
|
Code *string `json:"code,omitempty"`
|
|
}
|
|
|
|
// PinCodeDto defines model for PinCodeDto.
|
|
type PinCodeDto struct {
|
|
Code *string `json:"code,omitempty"`
|
|
}
|
|
|
|
// PinSettingDto defines model for PinSettingDto.
|
|
type PinSettingDto struct {
|
|
Code *string `json:"code,omitempty"`
|
|
Required *bool `json:"required,omitempty"`
|
|
}
|
|
|
|
// PinSettingRequest defines model for PinSettingRequest.
|
|
type PinSettingRequest struct {
|
|
Code string `json:"code"`
|
|
Required *bool `json:"required,omitempty"`
|
|
}
|
|
|
|
// PolicyAssignmentFullDto defines model for PolicyAssignmentFullDto.
|
|
type PolicyAssignmentFullDto struct {
|
|
Balance *float64 `json:"balance,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
|
|
// Policy PolicyDto
|
|
Policy *PolicyDto `json:"policy,omitempty"`
|
|
PolicyId *string `json:"policyId,omitempty"`
|
|
Status *PolicyAssignmentFullDtoStatus `json:"status,omitempty"`
|
|
Used *float64 `json:"used,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// PolicyAssignmentFullDtoStatus defines model for PolicyAssignmentFullDto.Status.
|
|
type PolicyAssignmentFullDtoStatus string
|
|
|
|
// PolicyDto PolicyDto
|
|
type PolicyDto struct {
|
|
AllowHalfDay *bool `json:"allowHalfDay,omitempty"`
|
|
AllowNegativeBalance *bool `json:"allowNegativeBalance,omitempty"`
|
|
Color *string `json:"color,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
NegativeBalance *NegativeBalanceDto `json:"negativeBalance,omitempty"`
|
|
TimeUnit *PolicyDtoTimeUnit `json:"timeUnit,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
union json.RawMessage
|
|
}
|
|
|
|
// PolicyDtoTimeUnit defines model for PolicyDto.TimeUnit.
|
|
type PolicyDtoTimeUnit string
|
|
|
|
// PolicyFullDto defines model for PolicyFullDto.
|
|
type PolicyFullDto struct {
|
|
AllowHalfDay *bool `json:"allowHalfDay,omitempty"`
|
|
AllowNegativeBalance *bool `json:"allowNegativeBalance,omitempty"`
|
|
Approve *ApproveDto `json:"approve,omitempty"`
|
|
Archived *bool `json:"archived,omitempty"`
|
|
AutomaticAccrual *AutomaticAccrualDto `json:"automaticAccrual,omitempty"`
|
|
AutomaticTimeEntryCreation *AutomaticTimeEntryCreationDto `json:"automaticTimeEntryCreation,omitempty"`
|
|
Color *string `json:"color,omitempty"`
|
|
EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
NegativeBalance *NegativeBalanceDto `json:"negativeBalance,omitempty"`
|
|
TimeUnit *PolicyFullDtoTimeUnit `json:"timeUnit,omitempty"`
|
|
UserGroupIds *[]string `json:"userGroupIds,omitempty"`
|
|
UserIds *[]string `json:"userIds,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// PolicyFullDtoTimeUnit defines model for PolicyFullDto.TimeUnit.
|
|
type PolicyFullDtoTimeUnit string
|
|
|
|
// PolicyProjection defines model for PolicyProjection.
|
|
type PolicyProjection struct {
|
|
Color *string `json:"color,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// PolicyRedactedDto defines model for PolicyRedactedDto.
|
|
type PolicyRedactedDto struct {
|
|
AllowHalfDay *bool `json:"allowHalfDay,omitempty"`
|
|
AllowNegativeBalance *bool `json:"allowNegativeBalance,omitempty"`
|
|
Color *string `json:"color,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
NegativeBalance *NegativeBalanceDto `json:"negativeBalance,omitempty"`
|
|
TimeUnit *PolicyRedactedDtoTimeUnit `json:"timeUnit,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// PolicyRedactedDtoTimeUnit defines model for PolicyRedactedDto.TimeUnit.
|
|
type PolicyRedactedDtoTimeUnit string
|
|
|
|
// ProjectDto defines model for ProjectDto.
|
|
type ProjectDto struct {
|
|
Color *string `json:"color,omitempty"`
|
|
Duration *string `json:"duration,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Memberships *[]MembershipDto `json:"memberships,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
Public *bool `json:"public,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// ProjectDtoImpl defines model for ProjectDtoImpl.
|
|
type ProjectDtoImpl struct {
|
|
Archived *bool `json:"archived,omitempty"`
|
|
Billable *bool `json:"billable,omitempty"`
|
|
BudgetEstimate *EstimateWithOptionsDto `json:"budgetEstimate,omitempty"`
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
ClientName *string `json:"clientName,omitempty"`
|
|
Color *string `json:"color,omitempty"`
|
|
CostRate *RateDto `json:"costRate,omitempty"`
|
|
Currency *CurrencyDto `json:"currency,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
Estimate *EstimateDto `json:"estimate,omitempty"`
|
|
EstimateReset *EstimateResetDto `json:"estimateReset,omitempty"`
|
|
HourlyRate *RateDto `json:"hourlyRate,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IsPublic *bool `json:"isPublic,omitempty"`
|
|
IsTemplate *bool `json:"isTemplate,omitempty"`
|
|
Memberships *[]MembershipDto `json:"memberships,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
Public *bool `json:"public,omitempty"`
|
|
Template *bool `json:"template,omitempty"`
|
|
TimeEstimate *TimeEstimateDto `json:"timeEstimate,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// ProjectEstimateRequest defines model for ProjectEstimateRequest.
|
|
type ProjectEstimateRequest struct {
|
|
// BudgetEstimate Represents estimate with options request object.
|
|
BudgetEstimate *EstimateWithOptionsRequest `json:"budgetEstimate,omitempty"`
|
|
|
|
// EstimateReset Represents estimate reset request object.
|
|
EstimateReset *EstimateResetRequest `json:"estimateReset,omitempty"`
|
|
|
|
// TimeEstimate Represents project time estimate request object.
|
|
TimeEstimate *TimeEstimateRequest `json:"timeEstimate,omitempty"`
|
|
}
|
|
|
|
// ProjectFavoritesDto defines model for ProjectFavoritesDto.
|
|
type ProjectFavoritesDto struct {
|
|
Id *string `json:"id,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
}
|
|
|
|
// ProjectFilterRequest defines model for ProjectFilterRequest.
|
|
type ProjectFilterRequest struct {
|
|
Archived *bool `json:"archived,omitempty"`
|
|
Billable *bool `json:"billable,omitempty"`
|
|
Clientstatus *string `json:"client-status,omitempty"`
|
|
ClientIds *[]string `json:"clientIds,omitempty"`
|
|
Clientstatus1 *string `json:"clientStatus,omitempty"`
|
|
Clients *[]string `json:"clients,omitempty"`
|
|
Containsclient *bool `json:"contains-client,omitempty"`
|
|
Containsuser *bool `json:"contains-user,omitempty"`
|
|
Containsclient1 *bool `json:"containsClient,omitempty"`
|
|
Containsuser1 *bool `json:"containsUser,omitempty"`
|
|
Hydrated *bool `json:"hydrated,omitempty"`
|
|
Istemplate *bool `json:"is-template,omitempty"`
|
|
Istemplate1 *bool `json:"isTemplate,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Page *int32 `json:"page,omitempty"`
|
|
Pagesize *int32 `json:"page-size,omitempty"`
|
|
Pagesize1 *int32 `json:"pageSize,omitempty"`
|
|
Sortcolumn *string `json:"sort-column,omitempty"`
|
|
Sortorder *string `json:"sort-order,omitempty"`
|
|
Sortcolumn1 *string `json:"sortColumn,omitempty"`
|
|
Sortorder1 *string `json:"sortOrder,omitempty"`
|
|
Strictnamesearch *bool `json:"strict-name-search,omitempty"`
|
|
Strictnamesearch1 *bool `json:"strictNameSearch,omitempty"`
|
|
Userstatus *string `json:"user-status,omitempty"`
|
|
UserIds *[]string `json:"userIds,omitempty"`
|
|
Userstatus1 *string `json:"userStatus,omitempty"`
|
|
Users *[]string `json:"users,omitempty"`
|
|
}
|
|
|
|
// ProjectFullDto defines model for ProjectFullDto.
|
|
type ProjectFullDto struct {
|
|
Archived *bool `json:"archived,omitempty"`
|
|
Billable *bool `json:"billable,omitempty"`
|
|
BillableDuration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"billableDuration,omitempty"`
|
|
BillableTime *float64 `json:"billableTime,omitempty"`
|
|
Budget *float64 `json:"budget,omitempty"`
|
|
BudgetEstimate *EstimateWithOptionsDto `json:"budgetEstimate,omitempty"`
|
|
Client *ClientDto `json:"client,omitempty"`
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
Color *string `json:"color,omitempty"`
|
|
CostRate *RateDto `json:"costRate,omitempty"`
|
|
Currency *CurrencyDto `json:"currency,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
EntriesProgress *float64 `json:"entriesProgress,omitempty"`
|
|
Estimate *EstimateDto `json:"estimate,omitempty"`
|
|
EstimateReset *EstimateResetDto `json:"estimateReset,omitempty"`
|
|
EstimateResetDto *EstimateResetDto `json:"estimateResetDto,omitempty"`
|
|
ExpenseBillableAmount *float64 `json:"expenseBillableAmount,omitempty"`
|
|
ExpenseNonBillableAmount *float64 `json:"expenseNonBillableAmount,omitempty"`
|
|
ExpensesProgress *float64 `json:"expensesProgress,omitempty"`
|
|
Favorite *bool `json:"favorite,omitempty"`
|
|
HourlyRate *RateDto `json:"hourlyRate,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IsFavorite *bool `json:"isFavorite,omitempty"`
|
|
IsPublic *bool `json:"isPublic,omitempty"`
|
|
IsTemplate *bool `json:"isTemplate,omitempty"`
|
|
Memberships *[]MembershipDto `json:"memberships,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
NonBillableDuration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"nonBillableDuration,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
Permissions *ProjectFullDto `json:"permissions,omitempty"`
|
|
Progress *float64 `json:"progress,omitempty"`
|
|
Public *bool `json:"public,omitempty"`
|
|
TaskCount *int32 `json:"taskCount,omitempty"`
|
|
Tasks *[]TaskDto `json:"tasks,omitempty"`
|
|
Template *bool `json:"template,omitempty"`
|
|
TimeEstimate *TimeEstimateDto `json:"timeEstimate,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// ProjectId defines model for ProjectId.
|
|
type ProjectId struct {
|
|
DateOfCreationFromObjectId *time.Time `json:"dateOfCreationFromObjectId,omitempty"`
|
|
}
|
|
|
|
// ProjectIdsRequest defines model for ProjectIdsRequest.
|
|
type ProjectIdsRequest struct {
|
|
ExcludedIds *[]string `json:"excludedIds,omitempty"`
|
|
Ids *[]string `json:"ids,omitempty"`
|
|
SearchValue *string `json:"searchValue,omitempty"`
|
|
}
|
|
|
|
// ProjectInfoDto defines model for ProjectInfoDto.
|
|
type ProjectInfoDto struct {
|
|
// ClientId Represents client identifier across the system.
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
|
|
// ClientName Represents client name.
|
|
ClientName *string `json:"clientName,omitempty"`
|
|
|
|
// Color Color format ^#(?:[0-9a-fA-F]{6}){1}$. Explanation: A valid color code should start with '#' and consist of six hexadecimal characters, representing a color in hexadecimal format. Color value is in standard RGB hexadecimal format.
|
|
Color *string `json:"color,omitempty"`
|
|
|
|
// Id Represents project identifier across the system.
|
|
Id *string `json:"id,omitempty"`
|
|
|
|
// Name Represents a project name.
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// ProjectPatchRequest defines model for ProjectPatchRequest.
|
|
type ProjectPatchRequest struct {
|
|
Archived *bool `json:"archived,omitempty"`
|
|
Billable *bool `json:"billable,omitempty"`
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
Color *string `json:"color,omitempty"`
|
|
IsPublic *bool `json:"isPublic,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
}
|
|
|
|
// ProjectReportFilterRequest defines model for ProjectReportFilterRequest.
|
|
type ProjectReportFilterRequest struct {
|
|
Archived *string `json:"archived,omitempty"`
|
|
Clients *ContainsArchivedFilterRequest `json:"clients,omitempty"`
|
|
ExcludedIds *[]string `json:"excludedIds,omitempty"`
|
|
FilterOptions *ReportFilterOptions `json:"filterOptions,omitempty"`
|
|
IgnoreResultGrouping *bool `json:"ignoreResultGrouping,omitempty"`
|
|
IncludedIds *[]string `json:"includedIds,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Options *ReportFilterOptions `json:"options,omitempty"`
|
|
Page *int32 `json:"page,omitempty"`
|
|
PageSize *int32 `json:"pageSize,omitempty"`
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
|
|
// ProjectStatus defines model for ProjectStatus.
|
|
type ProjectStatus struct {
|
|
Billable *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"billable,omitempty"`
|
|
BillableExpenses *float64 `json:"billableExpenses,omitempty"`
|
|
NonBillable *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"nonBillable,omitempty"`
|
|
NonBillableExpenses *float64 `json:"nonBillableExpenses,omitempty"`
|
|
Progress *float64 `json:"progress,omitempty"`
|
|
TaskStatus *map[string]DurationAndAmount `json:"taskStatus,omitempty"`
|
|
TotalAmount *float64 `json:"totalAmount,omitempty"`
|
|
TotalExpensesAmount *float64 `json:"totalExpensesAmount,omitempty"`
|
|
}
|
|
|
|
// ProjectSummaryDto defines model for ProjectSummaryDto.
|
|
type ProjectSummaryDto struct {
|
|
Color *string `json:"color,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// ProjectTaskRequest defines model for ProjectTaskRequest.
|
|
type ProjectTaskRequest struct {
|
|
ProjectName string `json:"projectName"`
|
|
TaskName string `json:"taskName"`
|
|
}
|
|
|
|
// ProjectTaskTupleDto defines model for ProjectTaskTupleDto.
|
|
type ProjectTaskTupleDto struct {
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
}
|
|
|
|
// ProjectTaskTupleFullDto defines model for ProjectTaskTupleFullDto.
|
|
type ProjectTaskTupleFullDto struct {
|
|
Project *ProjectDtoImpl `json:"project,omitempty"`
|
|
ProjectId *ProjectDtoImpl `json:"projectId,omitempty"`
|
|
Task *TaskDtoImpl `json:"task,omitempty"`
|
|
TaskId *TaskDtoImpl `json:"taskId,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
}
|
|
|
|
// ProjectTaskTupleRequest defines model for ProjectTaskTupleRequest.
|
|
type ProjectTaskTupleRequest struct {
|
|
ProjectId string `json:"projectId"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
}
|
|
|
|
// ProjectTotalsRequest defines model for ProjectTotalsRequest.
|
|
type ProjectTotalsRequest struct {
|
|
End *time.Time `json:"end,omitempty"`
|
|
Page *int32 `json:"page,omitempty"`
|
|
PageSize *int32 `json:"pageSize,omitempty"`
|
|
Search *string `json:"search,omitempty"`
|
|
Start *time.Time `json:"start,omitempty"`
|
|
StatusFilter *ProjectTotalsRequestStatusFilter `json:"statusFilter,omitempty"`
|
|
}
|
|
|
|
// ProjectTotalsRequestStatusFilter defines model for ProjectTotalsRequest.StatusFilter.
|
|
type ProjectTotalsRequestStatusFilter string
|
|
|
|
// ProjectsByClientDto defines model for ProjectsByClientDto.
|
|
type ProjectsByClientDto struct {
|
|
Client *ClientDto `json:"client,omitempty"`
|
|
Projects *[]ProjectFullDto `json:"projects,omitempty"`
|
|
ProjectsCount *int32 `json:"projectsCount,omitempty"`
|
|
}
|
|
|
|
// PtoRequestPeriodDto defines model for PtoRequestPeriodDto.
|
|
type PtoRequestPeriodDto struct {
|
|
HalfDay *bool `json:"halfDay,omitempty"`
|
|
HalfDayHours *Period `json:"halfDayHours,omitempty"`
|
|
HalfDayPeriod *string `json:"halfDayPeriod,omitempty"`
|
|
Period *Period `json:"period,omitempty"`
|
|
}
|
|
|
|
// PtoTeamMemberDto defines model for PtoTeamMemberDto.
|
|
type PtoTeamMemberDto struct {
|
|
Email *string `json:"email,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// PtoTeamMembersAndCountDto defines model for PtoTeamMembersAndCountDto.
|
|
type PtoTeamMembersAndCountDto struct {
|
|
Count *int64 `json:"count,omitempty"`
|
|
Members *[]PtoTeamMemberDto `json:"members,omitempty"`
|
|
}
|
|
|
|
// PublishAssignmentsRequest defines model for PublishAssignmentsRequest.
|
|
type PublishAssignmentsRequest struct {
|
|
End *string `json:"end,omitempty"`
|
|
NotifyUsers *bool `json:"notifyUsers,omitempty"`
|
|
Search *string `json:"search,omitempty"`
|
|
Start *string `json:"start,omitempty"`
|
|
UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"`
|
|
UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"`
|
|
ViewType *PublishAssignmentsRequestViewType `json:"viewType,omitempty"`
|
|
}
|
|
|
|
// PublishAssignmentsRequestViewType defines model for PublishAssignmentsRequest.ViewType.
|
|
type PublishAssignmentsRequestViewType string
|
|
|
|
// PumbleConnectedDto defines model for PumbleConnectedDto.
|
|
type PumbleConnectedDto struct {
|
|
Connected *bool `json:"connected,omitempty"`
|
|
IsConnected *bool `json:"isConnected,omitempty"`
|
|
PumbleWorkspaceId *string `json:"pumbleWorkspaceId,omitempty"`
|
|
PumbleWorkspaceName *string `json:"pumbleWorkspaceName,omitempty"`
|
|
}
|
|
|
|
// PumbleInitialConnectionDto defines model for PumbleInitialConnectionDto.
|
|
type PumbleInitialConnectionDto struct {
|
|
SkippedUsers *int32 `json:"skippedUsers,omitempty"`
|
|
}
|
|
|
|
// PumbleIntegrationRequest defines model for PumbleIntegrationRequest.
|
|
type PumbleIntegrationRequest struct {
|
|
PumbleWorkspaceId *string `json:"pumbleWorkspaceId,omitempty"`
|
|
}
|
|
|
|
// PumbleIntegrationSettingsDto defines model for PumbleIntegrationSettingsDto.
|
|
type PumbleIntegrationSettingsDto struct {
|
|
ShowChatWidget *bool `json:"showChatWidget,omitempty"`
|
|
}
|
|
|
|
// RateDto defines model for RateDto.
|
|
type RateDto struct {
|
|
// Amount Represents an amount as integer.
|
|
Amount *int32 `json:"amount,omitempty"`
|
|
|
|
// Currency Represents a currency.
|
|
Currency *string `json:"currency,omitempty"`
|
|
}
|
|
|
|
// ReadNewsRequest defines model for ReadNewsRequest.
|
|
type ReadNewsRequest struct {
|
|
NewsIds []string `json:"newsIds"`
|
|
}
|
|
|
|
// RecurringAssignmentDto defines model for RecurringAssignmentDto.
|
|
type RecurringAssignmentDto struct {
|
|
// Repeat Indicates whether assignment is recurring or not.
|
|
Repeat *bool `json:"repeat,omitempty"`
|
|
|
|
// SeriesId Represents series identifier.
|
|
SeriesId *string `json:"seriesId,omitempty"`
|
|
|
|
// Weeks Represents number of weeks for thhis assignment.
|
|
Weeks *int32 `json:"weeks,omitempty"`
|
|
}
|
|
|
|
// RecurringAssignmentRequest defines model for RecurringAssignmentRequest.
|
|
type RecurringAssignmentRequest struct {
|
|
// Repeat Indicates whether assignment is recurring or not.
|
|
Repeat *bool `json:"repeat,omitempty"`
|
|
|
|
// Weeks Indicates number of weeks for assignment.
|
|
Weeks *int32 `json:"weeks,omitempty"`
|
|
}
|
|
|
|
// RegionDto defines model for RegionDto.
|
|
type RegionDto struct {
|
|
CurrentlyActive *bool `json:"currentlyActive,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Region *string `json:"region,omitempty"`
|
|
Url *string `json:"url,omitempty"`
|
|
}
|
|
|
|
// RejectTimeOffRequestRequest defines model for RejectTimeOffRequestRequest.
|
|
type RejectTimeOffRequestRequest struct {
|
|
RejectionNote string `json:"rejectionNote"`
|
|
}
|
|
|
|
// RemindToApproveRequest defines model for RemindToApproveRequest.
|
|
type RemindToApproveRequest struct {
|
|
UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"`
|
|
UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"`
|
|
}
|
|
|
|
// RemindToSubmitAndTrackRequest defines model for RemindToSubmitAndTrackRequest.
|
|
type RemindToSubmitAndTrackRequest struct {
|
|
End *string `json:"end,omitempty"`
|
|
RemindToTrack *bool `json:"remindToTrack,omitempty"`
|
|
Start *string `json:"start,omitempty"`
|
|
UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"`
|
|
UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"`
|
|
}
|
|
|
|
// ReminderDto defines model for ReminderDto.
|
|
type ReminderDto struct {
|
|
DateRange *ReminderDtoDateRange `json:"dateRange,omitempty"`
|
|
Days *[]int32 `json:"days,omitempty"`
|
|
Hours *float64 `json:"hours,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Less *bool `json:"less,omitempty"`
|
|
Receivers *[]string `json:"receivers,omitempty"`
|
|
Users *[]string `json:"users,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// ReminderDtoDateRange defines model for ReminderDto.DateRange.
|
|
type ReminderDtoDateRange string
|
|
|
|
// ReorderFavoriteEntriesRequest defines model for ReorderFavoriteEntriesRequest.
|
|
type ReorderFavoriteEntriesRequest struct {
|
|
Ids *[]string `json:"ids,omitempty"`
|
|
}
|
|
|
|
// ReorderInvoiceItemRequest defines model for ReorderInvoiceItemRequest.
|
|
type ReorderInvoiceItemRequest struct {
|
|
CurrentPosition int32 `json:"currentPosition"`
|
|
NewPosition int32 `json:"newPosition"`
|
|
}
|
|
|
|
// ReportFilterOptions defines model for ReportFilterOptions.
|
|
type ReportFilterOptions struct {
|
|
Scope *string `json:"scope,omitempty"`
|
|
}
|
|
|
|
// ReportFilterUsersWithCountDto defines model for ReportFilterUsersWithCountDto.
|
|
type ReportFilterUsersWithCountDto struct {
|
|
Count *int32 `json:"count,omitempty"`
|
|
IdNamePairs *[]IdNamePairDto `json:"idNamePairs,omitempty"`
|
|
}
|
|
|
|
// RoleEntityDto defines model for RoleEntityDto.
|
|
type RoleEntityDto struct {
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Source *AuthorizationSourceDto `json:"source,omitempty"`
|
|
}
|
|
|
|
// RoleInfoDto defines model for RoleInfoDto.
|
|
type RoleInfoDto struct {
|
|
Entities *[]RoleEntityDto `json:"entities,omitempty"`
|
|
FormatterRoleName *string `json:"formatterRoleName,omitempty"`
|
|
Role *string `json:"role,omitempty"`
|
|
}
|
|
|
|
// RoleNameDto defines model for RoleNameDto.
|
|
type RoleNameDto struct {
|
|
Role *string `json:"role,omitempty"`
|
|
}
|
|
|
|
// RoundDto defines model for RoundDto.
|
|
type RoundDto struct {
|
|
Minutes *string `json:"minutes,omitempty"`
|
|
Round *string `json:"round,omitempty"`
|
|
}
|
|
|
|
// SAML2ConfigurationDto defines model for SAML2ConfigurationDto.
|
|
type SAML2ConfigurationDto struct {
|
|
AssertionConsumerServiceUrl *string `json:"assertionConsumerServiceUrl,omitempty"`
|
|
Certificates *[]string `json:"certificates,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
ForceSAML2 *bool `json:"forceSAML2,omitempty"`
|
|
LoginUrl *string `json:"loginUrl,omitempty"`
|
|
LogoutUrl *string `json:"logoutUrl,omitempty"`
|
|
MetadataUrl *string `json:"metadataUrl,omitempty"`
|
|
RelyingPartyIdentifier *string `json:"relyingPartyIdentifier,omitempty"`
|
|
}
|
|
|
|
// SAML2ConfigurationRequest defines model for SAML2ConfigurationRequest.
|
|
type SAML2ConfigurationRequest struct {
|
|
AssertionConsumerServiceUrl string `json:"assertionConsumerServiceUrl"`
|
|
Certificates *[]string `json:"certificates,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
ForceSAML2 *bool `json:"forceSAML2,omitempty"`
|
|
LoginUrl string `json:"loginUrl"`
|
|
LogoutUrl *string `json:"logoutUrl,omitempty"`
|
|
MetadataUrl string `json:"metadataUrl"`
|
|
RelyingPartyIdentifier string `json:"relyingPartyIdentifier"`
|
|
}
|
|
|
|
// SAML2LoginSettingsDto defines model for SAML2LoginSettingsDto.
|
|
type SAML2LoginSettingsDto struct {
|
|
Active *bool `json:"active,omitempty"`
|
|
ForceSAML2 *bool `json:"forceSAML2,omitempty"`
|
|
LoginUrl *string `json:"loginUrl,omitempty"`
|
|
LogoutUrl *string `json:"logoutUrl,omitempty"`
|
|
SamlRequest *string `json:"samlRequest,omitempty"`
|
|
}
|
|
|
|
// SMTPConfigurationDto defines model for SMTPConfigurationDto.
|
|
type SMTPConfigurationDto struct {
|
|
DebugEnabled *bool `json:"debugEnabled,omitempty"`
|
|
EmailAddress *string `json:"emailAddress,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
FromName *string `json:"fromName,omitempty"`
|
|
Host *string `json:"host,omitempty"`
|
|
Password *string `json:"password,omitempty"`
|
|
Port *int32 `json:"port,omitempty"`
|
|
StartTlsEnabled *bool `json:"startTlsEnabled,omitempty"`
|
|
Username *string `json:"username,omitempty"`
|
|
}
|
|
|
|
// SchedulingExcludeDay defines model for SchedulingExcludeDay.
|
|
type SchedulingExcludeDay struct {
|
|
// Date Represents a datetimr in yyyy-MM-ddThh:mm:ssZ format.
|
|
Date *time.Time `json:"date,omitempty"`
|
|
|
|
// Type Represents the scheduling exclude day enum.
|
|
Type *SchedulingExcludeDayType `json:"type,omitempty"`
|
|
}
|
|
|
|
// SchedulingExcludeDayType Represents the scheduling exclude day enum.
|
|
type SchedulingExcludeDayType string
|
|
|
|
// SchedulingProjectsBaseDto defines model for SchedulingProjectsBaseDto.
|
|
type SchedulingProjectsBaseDto = map[string]interface{}
|
|
|
|
// SchedulingProjectsDto defines model for SchedulingProjectsDto.
|
|
type SchedulingProjectsDto struct {
|
|
Assignments *[]map[string]interface{} `json:"assignments,omitempty"`
|
|
ClientName *string `json:"clientName,omitempty"`
|
|
HasProjectAccess *bool `json:"hasProjectAccess,omitempty"`
|
|
ProjectArchived *bool `json:"projectArchived,omitempty"`
|
|
ProjectBillable *bool `json:"projectBillable,omitempty"`
|
|
ProjectColor *string `json:"projectColor,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
ProjectName *string `json:"projectName,omitempty"`
|
|
TotalHours *float64 `json:"totalHours,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// SchedulingProjectsTotalsWithoutBillableDto defines model for SchedulingProjectsTotalsWithoutBillableDto.
|
|
type SchedulingProjectsTotalsWithoutBillableDto struct {
|
|
Assignments *[]AssignmentPerDayDto `json:"assignments,omitempty"`
|
|
ClientName *string `json:"clientName,omitempty"`
|
|
Milestones *[]MilestoneDto `json:"milestones,omitempty"`
|
|
ProjectArchived *bool `json:"projectArchived,omitempty"`
|
|
ProjectBillable *bool `json:"projectBillable,omitempty"`
|
|
ProjectColor *string `json:"projectColor,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
ProjectName *string `json:"projectName,omitempty"`
|
|
TotalHours *float64 `json:"totalHours,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// SchedulingSettingsDto defines model for SchedulingSettingsDto.
|
|
type SchedulingSettingsDto struct {
|
|
CanSeeBillableAndCostAmount *bool `json:"canSeeBillableAndCostAmount,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
EveryoneCanSeeAllAssignments *bool `json:"everyoneCanSeeAllAssignments,omitempty"`
|
|
WhoCanCreateAssignments *SchedulingSettingsDtoWhoCanCreateAssignments `json:"whoCanCreateAssignments,omitempty"`
|
|
}
|
|
|
|
// SchedulingSettingsDtoWhoCanCreateAssignments defines model for SchedulingSettingsDto.WhoCanCreateAssignments.
|
|
type SchedulingSettingsDtoWhoCanCreateAssignments string
|
|
|
|
// SchedulingUsersBaseDto defines model for SchedulingUsersBaseDto.
|
|
type SchedulingUsersBaseDto = map[string]interface{}
|
|
|
|
// SchedulingUsersTotalsWithoutBillableDto defines model for SchedulingUsersTotalsWithoutBillableDto.
|
|
type SchedulingUsersTotalsWithoutBillableDto struct {
|
|
CapacityPerDay *float64 `json:"capacityPerDay,omitempty"`
|
|
TotalHoursPerDay *[]TotalsPerDayDto `json:"totalHoursPerDay,omitempty"`
|
|
TotalsPerDay *[]TotalsPerDayDto `json:"totalsPerDay,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
UserImage *string `json:"userImage,omitempty"`
|
|
UserName *string `json:"userName,omitempty"`
|
|
UserStatus *string `json:"userStatus,omitempty"`
|
|
WeeklyCapacity *[]WeeklyCapacityDto `json:"weeklyCapacity,omitempty"`
|
|
WorkingDays *[]SchedulingUsersTotalsWithoutBillableDtoWorkingDays `json:"workingDays,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// SchedulingUsersTotalsWithoutBillableDtoWorkingDays defines model for SchedulingUsersTotalsWithoutBillableDto.WorkingDays.
|
|
type SchedulingUsersTotalsWithoutBillableDtoWorkingDays string
|
|
|
|
// SendInvoiceEmailRequest defines model for SendInvoiceEmailRequest.
|
|
type SendInvoiceEmailRequest struct {
|
|
AttachExpenses *bool `json:"attachExpenses,omitempty"`
|
|
AttachInvoice *bool `json:"attachInvoice,omitempty"`
|
|
EmailData InvoiceEmailDataRequest `json:"emailData"`
|
|
SendMeCopy *bool `json:"sendMeCopy,omitempty"`
|
|
}
|
|
|
|
// SetWorkspaceMembershipStatusRequest defines model for SetWorkspaceMembershipStatusRequest.
|
|
type SetWorkspaceMembershipStatusRequest struct {
|
|
MembershipStatus *SetWorkspaceMembershipStatusRequestMembershipStatus `json:"membershipStatus,omitempty"`
|
|
Status *string `json:"status,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
// Deprecated:
|
|
UserIds *[]string `json:"userIds,omitempty"`
|
|
}
|
|
|
|
// SetWorkspaceMembershipStatusRequestMembershipStatus defines model for SetWorkspaceMembershipStatusRequest.MembershipStatus.
|
|
type SetWorkspaceMembershipStatusRequestMembershipStatus string
|
|
|
|
// SetupIntentDto defines model for SetupIntentDto.
|
|
type SetupIntentDto struct {
|
|
ClientSecret *string `json:"clientSecret,omitempty"`
|
|
}
|
|
|
|
// ShiftScheduleRequest defines model for ShiftScheduleRequest.
|
|
type ShiftScheduleRequest struct {
|
|
From *time.Time `json:"from,omitempty"`
|
|
To *time.Time `json:"to,omitempty"`
|
|
}
|
|
|
|
// SidebarItemRequest defines model for SidebarItemRequest.
|
|
type SidebarItemRequest struct {
|
|
Interactive *bool `json:"interactive,omitempty"`
|
|
Order *int32 `json:"order,omitempty"`
|
|
SidebarItem *string `json:"sidebarItem,omitempty"`
|
|
SidebarSection *string `json:"sidebarSection,omitempty"`
|
|
}
|
|
|
|
// SidebarResponseDto defines model for SidebarResponseDto.
|
|
type SidebarResponseDto struct {
|
|
Sidebar *map[string][]string `json:"sidebar,omitempty"`
|
|
}
|
|
|
|
// SmtpConfigurationRequest defines model for SmtpConfigurationRequest.
|
|
type SmtpConfigurationRequest struct {
|
|
DebugEnabled *bool `json:"debugEnabled,omitempty"`
|
|
EmailAddress *string `json:"emailAddress,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
FromName *string `json:"fromName,omitempty"`
|
|
Host *string `json:"host,omitempty"`
|
|
Password *string `json:"password,omitempty"`
|
|
Port *int32 `json:"port,omitempty"`
|
|
StartTlsEnabled *bool `json:"startTlsEnabled,omitempty"`
|
|
Username *string `json:"username,omitempty"`
|
|
}
|
|
|
|
// SplitAssignmentRequest defines model for SplitAssignmentRequest.
|
|
type SplitAssignmentRequest struct {
|
|
Date *time.Time `json:"date,omitempty"`
|
|
}
|
|
|
|
// StartStopwatchRequest defines model for StartStopwatchRequest.
|
|
type StartStopwatchRequest struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
ContinueStrategy *string `json:"continueStrategy,omitempty"`
|
|
CustomAttributes *[]CreateCustomAttributeRequest `json:"customAttributes,omitempty"`
|
|
CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
TagIds *[]string `json:"tagIds,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
}
|
|
|
|
// StopStopwatchRequest defines model for StopStopwatchRequest.
|
|
type StopStopwatchRequest struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
State *StopStopwatchRequestState `json:"state,omitempty"`
|
|
TagIds *[]string `json:"tagIds,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
}
|
|
|
|
// StopStopwatchRequestState defines model for StopStopwatchRequest.State.
|
|
type StopStopwatchRequestState string
|
|
|
|
// StripeInvoiceDto defines model for StripeInvoiceDto.
|
|
type StripeInvoiceDto struct {
|
|
Amount *string `json:"amount,omitempty"`
|
|
CakeProduct *StripeInvoiceDtoCakeProduct `json:"cakeProduct,omitempty"`
|
|
Currency *string `json:"currency,omitempty"`
|
|
Date *string `json:"date,omitempty"`
|
|
Description *StripeInvoiceDtoDescription `json:"description,omitempty"`
|
|
InvoiceId *string `json:"invoiceId,omitempty"`
|
|
InvoicePay *string `json:"invoicePay,omitempty"`
|
|
InvoicePdf *string `json:"invoicePdf,omitempty"`
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
|
|
// StripeInvoiceDtoCakeProduct defines model for StripeInvoiceDto.CakeProduct.
|
|
type StripeInvoiceDtoCakeProduct string
|
|
|
|
// StripeInvoiceDtoDescription defines model for StripeInvoiceDto.Description.
|
|
type StripeInvoiceDtoDescription string
|
|
|
|
// StripeInvoicePayDto defines model for StripeInvoicePayDto.
|
|
type StripeInvoicePayDto struct {
|
|
InvoicePay *string `json:"invoicePay,omitempty"`
|
|
}
|
|
|
|
// StripeInvoicesDto defines model for StripeInvoicesDto.
|
|
type StripeInvoicesDto struct {
|
|
Invoices *[]StripeInvoiceDto `json:"invoices,omitempty"`
|
|
NextPage *string `json:"nextPage,omitempty"`
|
|
}
|
|
|
|
// SubmitApprovalRequest defines model for SubmitApprovalRequest.
|
|
type SubmitApprovalRequest struct {
|
|
Period *string `json:"period,omitempty"`
|
|
StartTime *string `json:"startTime,omitempty"`
|
|
}
|
|
|
|
// SubscriptionCouponDto defines model for SubscriptionCouponDto.
|
|
type SubscriptionCouponDto struct {
|
|
Coupon *string `json:"coupon,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
Used *bool `json:"used,omitempty"`
|
|
}
|
|
|
|
// SummaryReportSettingsDto defines model for SummaryReportSettingsDto.
|
|
type SummaryReportSettingsDto struct {
|
|
Group string `json:"group"`
|
|
Subgroup string `json:"subgroup"`
|
|
}
|
|
|
|
// SyncClientsRequest defines model for SyncClientsRequest.
|
|
type SyncClientsRequest struct {
|
|
ClientSyncId string `json:"clientSyncId"`
|
|
}
|
|
|
|
// SyncProjectsRequest defines model for SyncProjectsRequest.
|
|
type SyncProjectsRequest struct {
|
|
ProjectSyncId string `json:"projectSyncId"`
|
|
}
|
|
|
|
// TagDto defines model for TagDto.
|
|
type TagDto struct {
|
|
// Archived Indicates whether tag is archived or not.
|
|
Archived *bool `json:"archived,omitempty"`
|
|
|
|
// Id Represents tag identifier across the system.
|
|
Id *string `json:"id,omitempty"`
|
|
|
|
// Name Represents tag name.
|
|
Name *string `json:"name,omitempty"`
|
|
|
|
// WorkspaceId Represents workspace identifier across the system.
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// TagIdsRequest defines model for TagIdsRequest.
|
|
type TagIdsRequest struct {
|
|
Ids *[]string `json:"ids,omitempty"`
|
|
}
|
|
|
|
// TagRequest defines model for TagRequest.
|
|
type TagRequest struct {
|
|
Archived *bool `json:"archived,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// TaskDto defines model for TaskDto.
|
|
type TaskDto struct {
|
|
AssigneeIds *[]string `json:"assigneeIds,omitempty"`
|
|
Billable *bool `json:"billable,omitempty"`
|
|
BudgetEstimate *int64 `json:"budgetEstimate,omitempty"`
|
|
CostRate *RateDto `json:"costRate,omitempty"`
|
|
Estimate *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"estimate,omitempty"`
|
|
HourlyRate *RateDto `json:"hourlyRate,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Progress *float64 `json:"progress,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
Status *TaskDtoStatus `json:"status,omitempty"`
|
|
UserGroupIds *[]string `json:"userGroupIds,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// TaskDtoStatus defines model for TaskDto.Status.
|
|
type TaskDtoStatus string
|
|
|
|
// TaskDtoImpl defines model for TaskDtoImpl.
|
|
type TaskDtoImpl struct {
|
|
// Deprecated:
|
|
AssigneeId *string `json:"assigneeId,omitempty"`
|
|
AssigneeIds *[]string `json:"assigneeIds,omitempty"`
|
|
Billable *bool `json:"billable,omitempty"`
|
|
BudgetEstimate *int64 `json:"budgetEstimate,omitempty"`
|
|
CostRate *RateDto `json:"costRate,omitempty"`
|
|
Estimate *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"estimate,omitempty"`
|
|
HourlyRate *RateDto `json:"hourlyRate,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Progress *float64 `json:"progress,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
Status *TaskDtoImplStatus `json:"status,omitempty"`
|
|
UserGroupIds *[]string `json:"userGroupIds,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// TaskDtoImplStatus defines model for TaskDtoImpl.Status.
|
|
type TaskDtoImplStatus string
|
|
|
|
// TaskFavoritesDto defines model for TaskFavoritesDto.
|
|
type TaskFavoritesDto struct {
|
|
Id *string `json:"_id,omitempty"`
|
|
Id1 *string `json:"id,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// TaskFullDto defines model for TaskFullDto.
|
|
type TaskFullDto struct {
|
|
AssigneeIds *[]string `json:"assigneeIds,omitempty"`
|
|
Billable *bool `json:"billable,omitempty"`
|
|
BudgetEstimate *int64 `json:"budgetEstimate,omitempty"`
|
|
CostRate *RateDto `json:"costRate,omitempty"`
|
|
Estimate *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"estimate,omitempty"`
|
|
Favorite *bool `json:"favorite,omitempty"`
|
|
HourlyRate *RateDto `json:"hourlyRate,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IsFavorite *bool `json:"isFavorite,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Progress *float64 `json:"progress,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
Status *TaskFullDtoStatus `json:"status,omitempty"`
|
|
UserGroupIds *[]string `json:"userGroupIds,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// TaskFullDtoStatus defines model for TaskFullDto.Status.
|
|
type TaskFullDtoStatus string
|
|
|
|
// TaskId defines model for TaskId.
|
|
type TaskId struct {
|
|
DateOfCreationFromObjectId *time.Time `json:"dateOfCreationFromObjectId,omitempty"`
|
|
}
|
|
|
|
// TaskIdsRequest defines model for TaskIdsRequest.
|
|
type TaskIdsRequest struct {
|
|
Ids *[]string `json:"ids,omitempty"`
|
|
}
|
|
|
|
// TaskInfoDto defines model for TaskInfoDto.
|
|
type TaskInfoDto struct {
|
|
// Id Represents task identifier across the system.
|
|
Id *string `json:"id,omitempty"`
|
|
|
|
// Name Represents task name.
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// TaskReportFilterRequest defines model for TaskReportFilterRequest.
|
|
type TaskReportFilterRequest struct {
|
|
Clients *ContainsArchivedFilterRequest `json:"clients,omitempty"`
|
|
ExcludedIds *[]string `json:"excludedIds,omitempty"`
|
|
IgnoreResultGrouping *bool `json:"ignoreResultGrouping,omitempty"`
|
|
IncludedIds *[]string `json:"includedIds,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
OfIncludedIds *[]string `json:"ofIncludedIds,omitempty"`
|
|
Page *int32 `json:"page,omitempty"`
|
|
PageSize *int32 `json:"pageSize,omitempty"`
|
|
Projects *ContainsArchivedFilterRequest `json:"projects,omitempty"`
|
|
Status *string `json:"status,omitempty"`
|
|
}
|
|
|
|
// TaskRequest defines model for TaskRequest.
|
|
type TaskRequest struct {
|
|
// Deprecated:
|
|
AssigneeId *string `json:"assigneeId,omitempty"`
|
|
|
|
// AssigneeIds Represents list of assignee ids for the task.
|
|
AssigneeIds *[]string `json:"assigneeIds,omitempty"`
|
|
|
|
// Billable Flag to set whether task is billable or not
|
|
Billable *bool `json:"billable,omitempty"`
|
|
BudgetEstimate *int64 `json:"budgetEstimate,omitempty"`
|
|
CostRate *CostRateRequest `json:"costRate,omitempty"`
|
|
|
|
// Estimate Represents a task duration estimate.
|
|
Estimate *string `json:"estimate,omitempty"`
|
|
HourlyRate *HourlyRateRequest `json:"hourlyRate,omitempty"`
|
|
|
|
// Id Represents task identifier across the system.
|
|
Id *string `json:"id,omitempty"`
|
|
|
|
// Name Represents task name.
|
|
Name string `json:"name"`
|
|
|
|
// ProjectId Represents project identifier across the system.
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
Status *string `json:"status,omitempty"`
|
|
|
|
// UserGroupIds Represents list of user group ids for the task.
|
|
UserGroupIds *[]string `json:"userGroupIds,omitempty"`
|
|
}
|
|
|
|
// TaskWithProjectDto defines model for TaskWithProjectDto.
|
|
type TaskWithProjectDto struct {
|
|
Project *ProjectFullDto `json:"project,omitempty"`
|
|
Task *TaskFullDto `json:"task,omitempty"`
|
|
}
|
|
|
|
// TasksGroupedByProjectIdDto defines model for TasksGroupedByProjectIdDto.
|
|
type TasksGroupedByProjectIdDto struct {
|
|
ClientName *string `json:"clientName,omitempty"`
|
|
ProjectName *string `json:"projectName,omitempty"`
|
|
Tasks *[]TaskDtoImpl `json:"tasks,omitempty"`
|
|
}
|
|
|
|
// TeamActivityDto defines model for TeamActivityDto.
|
|
type TeamActivityDto struct {
|
|
Description *string `json:"description,omitempty"`
|
|
LatestActivityItems *[]LatestActivityItemDto `json:"latestActivityItems,omitempty"`
|
|
Project *ProjectInfoDto `json:"project,omitempty"`
|
|
Task *TaskInfoDto `json:"task,omitempty"`
|
|
TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"`
|
|
TotalTime *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"totalTime,omitempty"`
|
|
TransformedActivityItems *[]LatestActivityItemDto `json:"transformedActivityItems,omitempty"`
|
|
User *TeamMemberInfoDto `json:"user,omitempty"`
|
|
}
|
|
|
|
// TeamMemberDto defines model for TeamMemberDto.
|
|
type TeamMemberDto struct {
|
|
AccessEnabled *bool `json:"accessEnabled,omitempty"`
|
|
Email *string `json:"email,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Memberships *[]MembershipDto `json:"memberships,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
RemoveOptionEnabled *bool `json:"removeOptionEnabled,omitempty"`
|
|
Roles *[]RoleNameDto `json:"roles,omitempty"`
|
|
}
|
|
|
|
// TeamMemberInfoDto defines model for TeamMemberInfoDto.
|
|
type TeamMemberInfoDto struct {
|
|
Email *string `json:"email,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
ProfilePicture *string `json:"profilePicture,omitempty"`
|
|
}
|
|
|
|
// TeamMemberRequest defines model for TeamMemberRequest.
|
|
type TeamMemberRequest struct {
|
|
Email *string `json:"email,omitempty"`
|
|
Id string `json:"id"`
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// TeamMembersAndCountDto defines model for TeamMembersAndCountDto.
|
|
type TeamMembersAndCountDto struct {
|
|
Count *int64 `json:"count,omitempty"`
|
|
Users *[]TeamMemberDto `json:"users,omitempty"`
|
|
}
|
|
|
|
// TeamPolicyAssignmentsDistribution defines model for TeamPolicyAssignmentsDistribution.
|
|
type TeamPolicyAssignmentsDistribution struct {
|
|
SuperiorHasAssignments *bool `json:"superiorHasAssignments,omitempty"`
|
|
TeamMembersHaveAssignments *bool `json:"teamMembersHaveAssignments,omitempty"`
|
|
}
|
|
|
|
// TemplateDto defines model for TemplateDto.
|
|
type TemplateDto struct {
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// TemplateDtoImpl defines model for TemplateDtoImpl.
|
|
type TemplateDtoImpl struct {
|
|
Entries *[]TimeEntryWithCustomFieldsDto `json:"entries,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
ProjectsAndTasks *[]ProjectTaskTupleDto `json:"projectsAndTasks,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WeekStart *openapi_types.Date `json:"weekStart,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// TemplateFullWithEntitiesFullDto defines model for TemplateFullWithEntitiesFullDto.
|
|
type TemplateFullWithEntitiesFullDto struct {
|
|
Entries *[]TimeEntryFullDto `json:"entries,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
ProjectsAndTasks *[]ProjectTaskTupleFullDto `json:"projectsAndTasks,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WeekStart *openapi_types.Date `json:"weekStart,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// TemplatePatchRequest defines model for TemplatePatchRequest.
|
|
type TemplatePatchRequest struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// TemplateRequest defines model for TemplateRequest.
|
|
type TemplateRequest struct {
|
|
Name string `json:"name"`
|
|
ProjectsAndTasks []ProjectTaskTupleRequest `json:"projectsAndTasks"`
|
|
TimeEntryIds *[]string `json:"timeEntryIds,omitempty"`
|
|
WeekStart *openapi_types.Date `json:"weekStart,omitempty"`
|
|
}
|
|
|
|
// TerminateSubscriptionRequest defines model for TerminateSubscriptionRequest.
|
|
type TerminateSubscriptionRequest struct {
|
|
NotifyUser *bool `json:"notifyUser,omitempty"`
|
|
}
|
|
|
|
// TimeEntriesDurationRequest defines model for TimeEntriesDurationRequest.
|
|
type TimeEntriesDurationRequest struct {
|
|
End *time.Time `json:"end,omitempty"`
|
|
Start *time.Time `json:"start,omitempty"`
|
|
}
|
|
|
|
// TimeEntriesPatchRequest defines model for TimeEntriesPatchRequest.
|
|
type TimeEntriesPatchRequest struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
ChangeFields *[]TimeEntriesPatchRequestChangeFields `json:"changeFields,omitempty"`
|
|
CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
End *time.Time `json:"end,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
Start *time.Time `json:"start,omitempty"`
|
|
TagIds *[]string `json:"tagIds,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
TimeEntryIds *[]string `json:"timeEntryIds,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
}
|
|
|
|
// TimeEntriesPatchRequestChangeFields defines model for TimeEntriesPatchRequest.ChangeFields.
|
|
type TimeEntriesPatchRequestChangeFields string
|
|
|
|
// TimeEntryApprovalStatusDto defines model for TimeEntryApprovalStatusDto.
|
|
type TimeEntryApprovalStatusDto struct {
|
|
ApprovalRequestId *string `json:"approvalRequestId,omitempty"`
|
|
ApprovedCount *int32 `json:"approvedCount,omitempty"`
|
|
DateRange *DateRangeDto `json:"dateRange,omitempty"`
|
|
EntriesCount *int32 `json:"entriesCount,omitempty"`
|
|
HasUnSubmitted *bool `json:"hasUnSubmitted,omitempty"`
|
|
Status *string `json:"status,omitempty"`
|
|
SubmitterName *string `json:"submitterName,omitempty"`
|
|
Total *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"total,omitempty"`
|
|
UnsubmittedEntriesCount *int64 `json:"unsubmittedEntriesCount,omitempty"`
|
|
}
|
|
|
|
// TimeEntryDto defines model for TimeEntryDto.
|
|
type TimeEntryDto struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Locked *bool `json:"locked,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
}
|
|
|
|
// TimeEntryDtoImpl defines model for TimeEntryDtoImpl.
|
|
type TimeEntryDtoImpl struct {
|
|
ApprovalStatus *TimeEntryDtoImplApprovalStatus `json:"approvalStatus,omitempty"`
|
|
Billable *bool `json:"billable,omitempty"`
|
|
CostRate *RateDto `json:"costRate,omitempty"`
|
|
CurrentlyRunning *bool `json:"currentlyRunning,omitempty"`
|
|
CustomFieldValues *[]CustomFieldValueFullDto `json:"customFieldValues,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
HourlyRate *RateDto `json:"hourlyRate,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IsLocked *bool `json:"isLocked,omitempty"`
|
|
KioskId *string `json:"kioskId,omitempty"`
|
|
ProjectCurrency *string `json:"projectCurrency,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
TagIds *[]string `json:"tagIds,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// TimeEntryDtoImplApprovalStatus defines model for TimeEntryDtoImpl.ApprovalStatus.
|
|
type TimeEntryDtoImplApprovalStatus string
|
|
|
|
// TimeEntryFullDto defines model for TimeEntryFullDto.
|
|
type TimeEntryFullDto struct {
|
|
ApprovalRequestId *string `json:"approvalRequestId,omitempty"`
|
|
ApprovalStatus *TimeEntryFullDtoApprovalStatus `json:"approvalStatus,omitempty"`
|
|
Billable *bool `json:"billable,omitempty"`
|
|
CustomFieldValues *[]CustomFieldValueFullDto `json:"customFieldValues,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
HourlyRate *RateDto `json:"hourlyRate,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IsLocked *bool `json:"isLocked,omitempty"`
|
|
Kiosk *EntityIdNameDto `json:"kiosk,omitempty"`
|
|
KioskId *string `json:"kioskId,omitempty"`
|
|
Project *ProjectDtoImpl `json:"project,omitempty"`
|
|
ProjectCurrency *string `json:"projectCurrency,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
Tags *[]TagDto `json:"tags,omitempty"`
|
|
Task *TaskDtoImpl `json:"task,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"`
|
|
TotalBillable *int64 `json:"totalBillable,omitempty"`
|
|
TotalBillableDecimal *float64 `json:"totalBillableDecimal,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
User *UserDto `json:"user,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// TimeEntryFullDtoApprovalStatus defines model for TimeEntryFullDto.ApprovalStatus.
|
|
type TimeEntryFullDtoApprovalStatus string
|
|
|
|
// TimeEntryIdsRequest defines model for TimeEntryIdsRequest.
|
|
type TimeEntryIdsRequest struct {
|
|
TimeEntryIds *[]string `json:"timeEntryIds,omitempty"`
|
|
}
|
|
|
|
// TimeEntryInfoDto defines model for TimeEntryInfoDto.
|
|
type TimeEntryInfoDto struct {
|
|
// ApprovalRequestId Represents approval identifier across the system.
|
|
ApprovalRequestId *string `json:"approvalRequestId,omitempty"`
|
|
|
|
// Billable Indicates whether time entry is billable or not.
|
|
Billable *bool `json:"billable,omitempty"`
|
|
CostRate *RateDto `json:"costRate,omitempty"`
|
|
|
|
// CustomFieldValues Represents a list of custom field value objects.
|
|
CustomFieldValues *[]CustomFieldValueDto `json:"customFieldValues,omitempty"`
|
|
|
|
// Description Represents a time entry description.
|
|
Description *string `json:"description,omitempty"`
|
|
HourlyRate *RateDto `json:"hourlyRate,omitempty"`
|
|
|
|
// Id Represents time entry identifier across the system.
|
|
Id *string `json:"id,omitempty"`
|
|
|
|
// IsLocked Indicates whether time entry is locked or not.
|
|
IsLocked *bool `json:"isLocked,omitempty"`
|
|
Project *ProjectInfoDto `json:"project,omitempty"`
|
|
|
|
// Tags Represents a list of tag objects.
|
|
Tags *[]TagDto `json:"tags,omitempty"`
|
|
Task *TaskInfoDto `json:"task,omitempty"`
|
|
TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"`
|
|
|
|
// Type Represents a time entry type enum.
|
|
Type *TimeEntryInfoDtoType `json:"type,omitempty"`
|
|
}
|
|
|
|
// TimeEntryInfoDtoType Represents a time entry type enum.
|
|
type TimeEntryInfoDtoType string
|
|
|
|
// TimeEntryPatchSplitRequest defines model for TimeEntryPatchSplitRequest.
|
|
type TimeEntryPatchSplitRequest struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
End *time.Time `json:"end,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
SplitTime *time.Time `json:"splitTime,omitempty"`
|
|
Start *time.Time `json:"start,omitempty"`
|
|
StartAsString *string `json:"startAsString,omitempty"`
|
|
TagIds *[]string `json:"tagIds,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
}
|
|
|
|
// TimeEntryRecentlyUsedDto defines model for TimeEntryRecentlyUsedDto.
|
|
type TimeEntryRecentlyUsedDto struct {
|
|
BillableBasedOnCurrentTaskAndProject *bool `json:"billableBasedOnCurrentTaskAndProject,omitempty"`
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
ClientName *string `json:"clientName,omitempty"`
|
|
CustomFieldValues *[]CustomFieldValueDto `json:"customFieldValues,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
ProjectBillable *bool `json:"projectBillable,omitempty"`
|
|
ProjectColor *string `json:"projectColor,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
ProjectName *string `json:"projectName,omitempty"`
|
|
Tags *[]TagDto `json:"tags,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
TaskName *string `json:"taskName,omitempty"`
|
|
}
|
|
|
|
// TimeEntrySplitRequest defines model for TimeEntrySplitRequest.
|
|
type TimeEntrySplitRequest struct {
|
|
SplitTime *time.Time `json:"splitTime,omitempty"`
|
|
}
|
|
|
|
// TimeEntrySummaryDto defines model for TimeEntrySummaryDto.
|
|
type TimeEntrySummaryDto struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
ClientName *string `json:"clientName,omitempty"`
|
|
CustomFields *[]CustomFieldValueFullDto `json:"customFields,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
HourlyRate *RateDto `json:"hourlyRate,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IsLocked *bool `json:"isLocked,omitempty"`
|
|
Project *ProjectSummaryDto `json:"project,omitempty"`
|
|
Tags *[]TagDto `json:"tags,omitempty"`
|
|
Task *TaskDto `json:"task,omitempty"`
|
|
TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"`
|
|
TotalBillable *int64 `json:"totalBillable,omitempty"`
|
|
TotalBillableDecimal *float64 `json:"totalBillableDecimal,omitempty"`
|
|
User *UserSummaryDto `json:"user,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// TimeEntryUpdatedDto defines model for TimeEntryUpdatedDto.
|
|
type TimeEntryUpdatedDto struct {
|
|
ApprovalRequestWithdrawn *bool `json:"approvalRequestWithdrawn,omitempty"`
|
|
ApprovalStatus *TimeEntryUpdatedDtoApprovalStatus `json:"approvalStatus,omitempty"`
|
|
Billable *bool `json:"billable,omitempty"`
|
|
CostRate *RateDto `json:"costRate,omitempty"`
|
|
CurrentlyRunning *bool `json:"currentlyRunning,omitempty"`
|
|
CustomFieldValues *[]CustomFieldValueFullDto `json:"customFieldValues,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
HourlyRate *RateDto `json:"hourlyRate,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IsLocked *bool `json:"isLocked,omitempty"`
|
|
KioskId *string `json:"kioskId,omitempty"`
|
|
ProjectCurrency *string `json:"projectCurrency,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
TagIds *[]string `json:"tagIds,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// TimeEntryUpdatedDtoApprovalStatus defines model for TimeEntryUpdatedDto.ApprovalStatus.
|
|
type TimeEntryUpdatedDtoApprovalStatus string
|
|
|
|
// TimeEntryWithCustomFieldsDto defines model for TimeEntryWithCustomFieldsDto.
|
|
type TimeEntryWithCustomFieldsDto struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
CustomFieldValues *[]CustomFieldValueDto `json:"customFieldValues,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
TagIds *[]string `json:"tagIds,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// TimeEntryWithUsernameDto defines model for TimeEntryWithUsernameDto.
|
|
type TimeEntryWithUsernameDto struct {
|
|
ApprovalStatus *TimeEntryWithUsernameDtoApprovalStatus `json:"approvalStatus,omitempty"`
|
|
Billable *bool `json:"billable,omitempty"`
|
|
CostRate *RateDto `json:"costRate,omitempty"`
|
|
CurrentlyRunning *bool `json:"currentlyRunning,omitempty"`
|
|
CustomFieldValues *[]CustomFieldValueFullDto `json:"customFieldValues,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
HourlyRate *RateDto `json:"hourlyRate,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
IsLocked *bool `json:"isLocked,omitempty"`
|
|
KioskId *string `json:"kioskId,omitempty"`
|
|
ProjectCurrency *string `json:"projectCurrency,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
TagIds *[]string `json:"tagIds,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
TimeInterval *TimeIntervalDto `json:"timeInterval,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
UserName *string `json:"userName,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// TimeEntryWithUsernameDtoApprovalStatus defines model for TimeEntryWithUsernameDto.ApprovalStatus.
|
|
type TimeEntryWithUsernameDtoApprovalStatus string
|
|
|
|
// TimeEstimateDto defines model for TimeEstimateDto.
|
|
type TimeEstimateDto struct {
|
|
Active *bool `json:"active,omitempty"`
|
|
|
|
// Estimate Represents project duration in milliseconds.
|
|
Estimate *string `json:"estimate,omitempty"`
|
|
IncludeNonBillable *bool `json:"includeNonBillable,omitempty"`
|
|
|
|
// ResetOption Represents a reset option enum.
|
|
ResetOption *TimeEstimateDtoResetOption `json:"resetOption,omitempty"`
|
|
|
|
// Type Represents an estimate type enum.
|
|
Type *TimeEstimateDtoType `json:"type,omitempty"`
|
|
}
|
|
|
|
// TimeEstimateDtoResetOption Represents a reset option enum.
|
|
type TimeEstimateDtoResetOption string
|
|
|
|
// TimeEstimateDtoType Represents an estimate type enum.
|
|
type TimeEstimateDtoType string
|
|
|
|
// TimeEstimateRequest Represents project time estimate request object.
|
|
type TimeEstimateRequest struct {
|
|
// Active Flag whether to include only active or inactive estimates.
|
|
Active *bool `json:"active,omitempty"`
|
|
|
|
// Estimate Represents a time duration in ISO-8601 format.
|
|
Estimate *string `json:"estimate,omitempty"`
|
|
|
|
// IncludeNonBillable Flag whether to include non-billable expenses.
|
|
IncludeNonBillable *bool `json:"includeNonBillable,omitempty"`
|
|
|
|
// ResetOption Represents a reset option enum.
|
|
ResetOption *TimeEstimateRequestResetOption `json:"resetOption,omitempty"`
|
|
|
|
// Type Represents an estimate type enum.
|
|
Type *TimeEstimateRequestType `json:"type,omitempty"`
|
|
}
|
|
|
|
// TimeEstimateRequestResetOption Represents a reset option enum.
|
|
type TimeEstimateRequestResetOption string
|
|
|
|
// TimeEstimateRequestType Represents an estimate type enum.
|
|
type TimeEstimateRequestType string
|
|
|
|
// TimeIntervalDto defines model for TimeIntervalDto.
|
|
type TimeIntervalDto struct {
|
|
// Duration Represents a time duration.
|
|
Duration *string `json:"duration,omitempty"`
|
|
End *time.Time `json:"end,omitempty"`
|
|
Start *time.Time `json:"start,omitempty"`
|
|
}
|
|
|
|
// TimeOffDto defines model for TimeOffDto.
|
|
type TimeOffDto struct {
|
|
Active *bool `json:"active,omitempty"`
|
|
RegularUserCanSeeOtherUsersTimeOff *bool `json:"regularUserCanSeeOtherUsersTimeOff,omitempty"`
|
|
Type *bool `json:"type,omitempty"`
|
|
}
|
|
|
|
// TimeOffPolicyHolidayForClients defines model for TimeOffPolicyHolidayForClients.
|
|
type TimeOffPolicyHolidayForClients struct {
|
|
ClientIds *[]string `json:"clientIds,omitempty"`
|
|
Holidays *[]HolidayProjection `json:"holidays,omitempty"`
|
|
Policies *[]PolicyProjection `json:"policies,omitempty"`
|
|
ProjectIds *[]string `json:"projectIds,omitempty"`
|
|
TaskIds *[]string `json:"taskIds,omitempty"`
|
|
}
|
|
|
|
// TimeOffPolicyHolidayForProjects defines model for TimeOffPolicyHolidayForProjects.
|
|
type TimeOffPolicyHolidayForProjects struct {
|
|
Holidays *[]HolidayProjection `json:"holidays,omitempty"`
|
|
Policies *[]PolicyProjection `json:"policies,omitempty"`
|
|
ProjectIds *[]string `json:"projectIds,omitempty"`
|
|
}
|
|
|
|
// TimeOffPolicyHolidayForTasks defines model for TimeOffPolicyHolidayForTasks.
|
|
type TimeOffPolicyHolidayForTasks struct {
|
|
Holidays *[]HolidayProjection `json:"holidays,omitempty"`
|
|
Policies *[]PolicyProjection `json:"policies,omitempty"`
|
|
TaskIds *[]string `json:"taskIds,omitempty"`
|
|
}
|
|
|
|
// TimeOffRequestDto defines model for TimeOffRequestDto.
|
|
type TimeOffRequestDto struct {
|
|
BalanceDiff *float64 `json:"balanceDiff,omitempty"`
|
|
CreatedAt *time.Time `json:"createdAt,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
PolicyId *string `json:"policyId,omitempty"`
|
|
Status *TimeOffRequestStatus `json:"status,omitempty"`
|
|
TimeOffPeriod *TimeOffRequestPeriodDto `json:"timeOffPeriod,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// TimeOffRequestFullDto defines model for TimeOffRequestFullDto.
|
|
type TimeOffRequestFullDto struct {
|
|
AllowNegativeBalance *bool `json:"allowNegativeBalance,omitempty"`
|
|
Balance *float64 `json:"balance,omitempty"`
|
|
BalanceDiff *float64 `json:"balanceDiff,omitempty"`
|
|
BalanceValueAtRequest *float64 `json:"balanceValueAtRequest,omitempty"`
|
|
CanBeApproved *bool `json:"canBeApproved,omitempty"`
|
|
CanBeWithdrawn *bool `json:"canBeWithdrawn,omitempty"`
|
|
CreatedAt *time.Time `json:"createdAt,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
LimitNegativeBalance *bool `json:"limitNegativeBalance,omitempty"`
|
|
NegativeBalance *float64 `json:"negativeBalance,omitempty"`
|
|
NegativeBalanceAmount *float64 `json:"negativeBalanceAmount,omitempty"`
|
|
NegativeBalanceUsed *float64 `json:"negativeBalanceUsed,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
PolicyColor *string `json:"policyColor,omitempty"`
|
|
PolicyId *string `json:"policyId,omitempty"`
|
|
PolicyName *string `json:"policyName,omitempty"`
|
|
RequesterUserId *string `json:"requesterUserId,omitempty"`
|
|
RequesterUserName *string `json:"requesterUserName,omitempty"`
|
|
Status *TimeOffRequestStatus `json:"status,omitempty"`
|
|
TimeOffPeriod *TimeOffRequestPeriodDto `json:"timeOffPeriod,omitempty"`
|
|
TimeUnit *string `json:"timeUnit,omitempty"`
|
|
TimeZone *string `json:"timeZone,omitempty"`
|
|
UserEmail *string `json:"userEmail,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
UserImageUrl *string `json:"userImageUrl,omitempty"`
|
|
UserName *string `json:"userName,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// TimeOffRequestPeriod defines model for TimeOffRequestPeriod.
|
|
type TimeOffRequestPeriod struct {
|
|
HalfDayHours *Period `json:"halfDayHours,omitempty"`
|
|
HalfDayPeriod *TimeOffRequestPeriodHalfDayPeriod `json:"halfDayPeriod,omitempty"`
|
|
IsHalfDay *bool `json:"isHalfDay,omitempty"`
|
|
Period *Period `json:"period,omitempty"`
|
|
}
|
|
|
|
// TimeOffRequestPeriodHalfDayPeriod defines model for TimeOffRequestPeriod.HalfDayPeriod.
|
|
type TimeOffRequestPeriodHalfDayPeriod string
|
|
|
|
// TimeOffRequestPeriodDto defines model for TimeOffRequestPeriodDto.
|
|
type TimeOffRequestPeriodDto struct {
|
|
HalfDayHours *Period `json:"halfDayHours,omitempty"`
|
|
HalfDayPeriod *string `json:"halfDayPeriod,omitempty"`
|
|
IsHalfDay *bool `json:"isHalfDay,omitempty"`
|
|
Period *Period `json:"period,omitempty"`
|
|
}
|
|
|
|
// TimeOffRequestPeriodRequest defines model for TimeOffRequestPeriodRequest.
|
|
type TimeOffRequestPeriodRequest struct {
|
|
HalfDayHours *PeriodRequest `json:"halfDayHours,omitempty"`
|
|
HalfDayPeriod *string `json:"halfDayPeriod,omitempty"`
|
|
IsHalfDay *bool `json:"isHalfDay,omitempty"`
|
|
Period PeriodRequest `json:"period"`
|
|
}
|
|
|
|
// TimeOffRequestStatus defines model for TimeOffRequestStatus.
|
|
type TimeOffRequestStatus struct {
|
|
ChangedAt *time.Time `json:"changedAt,omitempty"`
|
|
ChangedByUserId *string `json:"changedByUserId,omitempty"`
|
|
ChangedByUserName *string `json:"changedByUserName,omitempty"`
|
|
ChangedForUserName *string `json:"changedForUserName,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
StatusType *TimeOffRequestStatusStatusType `json:"statusType,omitempty"`
|
|
}
|
|
|
|
// TimeOffRequestStatusStatusType defines model for TimeOffRequestStatus.StatusType.
|
|
type TimeOffRequestStatusStatusType string
|
|
|
|
// TimeOffRequestsWithCountDto defines model for TimeOffRequestsWithCountDto.
|
|
type TimeOffRequestsWithCountDto struct {
|
|
Count *int32 `json:"count,omitempty"`
|
|
Requests *[]TimeOffRequestFullDto `json:"requests,omitempty"`
|
|
}
|
|
|
|
// TimeRangeRequest defines model for TimeRangeRequest.
|
|
type TimeRangeRequest struct {
|
|
// IssueDateEnd Represents a date in yyyy-MM-dd format. This is the upper bound of the time range.
|
|
IssueDateEnd *string `json:"issueDateEnd,omitempty"`
|
|
|
|
// IssueDateStart Represents a date in yyyy-MM-dd format. This is the lower bound of the time range.
|
|
IssueDateStart *string `json:"issueDateStart,omitempty"`
|
|
}
|
|
|
|
// TimelineHolidayDto defines model for TimelineHolidayDto.
|
|
type TimelineHolidayDto struct {
|
|
Color *string `json:"color,omitempty"`
|
|
|
|
// DatePeriod Represents startDate and endDate of the holiday. Date is in format yyyy-mm-dd
|
|
DatePeriod *DatePeriod `json:"datePeriod,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// TimelineTimeOffRequestBaseDto defines model for TimelineTimeOffRequestBaseDto.
|
|
type TimelineTimeOffRequestBaseDto struct {
|
|
BalanceDiff *float64 `json:"balanceDiff,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
PolicyName *string `json:"policyName,omitempty"`
|
|
Status *TimeOffRequestStatus `json:"status,omitempty"`
|
|
TimeOffPeriod *TimeOffRequestPeriod `json:"timeOffPeriod,omitempty"`
|
|
TimeUnit *string `json:"timeUnit,omitempty"`
|
|
TimeZone *string `json:"timeZone,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
}
|
|
|
|
// TimelineUserDto defines model for TimelineUserDto.
|
|
type TimelineUserDto struct {
|
|
Holidays *[]TimelineHolidayDto `json:"holidays,omitempty"`
|
|
Requests *[]TimelineTimeOffRequestBaseDto `json:"requests,omitempty"`
|
|
TimeZone *string `json:"timeZone,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
UserImageUrl *string `json:"userImageUrl,omitempty"`
|
|
UserName *string `json:"userName,omitempty"`
|
|
WorkingDays *[]string `json:"workingDays,omitempty"`
|
|
}
|
|
|
|
// TimelineUsersDto defines model for TimelineUsersDto.
|
|
type TimelineUsersDto struct {
|
|
Users *[]TimelineUserDto `json:"users,omitempty"`
|
|
}
|
|
|
|
// TotalTimeItemDto defines model for TotalTimeItemDto.
|
|
type TotalTimeItemDto struct {
|
|
AmountWithCurrency *[]AmountWithCurrencyDto `json:"amountWithCurrency,omitempty"`
|
|
BillableDuration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"billableDuration,omitempty"`
|
|
ClientName *string `json:"clientName,omitempty"`
|
|
Color *string `json:"color,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
Earned *int64 `json:"earned,omitempty"`
|
|
EndDateTime *time.Time `json:"endDateTime,omitempty"`
|
|
Label *string `json:"label,omitempty"`
|
|
Percentage *string `json:"percentage,omitempty"`
|
|
ProjectName *string `json:"projectName,omitempty"`
|
|
}
|
|
|
|
// TotalsPerDayDto defines model for TotalsPerDayDto.
|
|
type TotalsPerDayDto struct {
|
|
Date *time.Time `json:"date,omitempty"`
|
|
TotalHours *float64 `json:"totalHours,omitempty"`
|
|
}
|
|
|
|
// TransferOwnerRequest defines model for TransferOwnerRequest.
|
|
type TransferOwnerRequest struct {
|
|
UserId *string `json:"userId,omitempty"`
|
|
}
|
|
|
|
// TransferSeatDetailsDto defines model for TransferSeatDetailsDto.
|
|
type TransferSeatDetailsDto struct {
|
|
CustomPrice *bool `json:"customPrice,omitempty"`
|
|
PayedForLimited *int32 `json:"payedForLimited,omitempty"`
|
|
PayedForRegular *int32 `json:"payedForRegular,omitempty"`
|
|
}
|
|
|
|
// TrialActivationDataDto defines model for TrialActivationDataDto.
|
|
type TrialActivationDataDto struct {
|
|
ActivateTrial *bool `json:"activateTrial,omitempty"`
|
|
FeaturesToActivate *[]TrialActivationDataDtoFeaturesToActivate `json:"featuresToActivate,omitempty"`
|
|
}
|
|
|
|
// TrialActivationDataDtoFeaturesToActivate defines model for TrialActivationDataDto.FeaturesToActivate.
|
|
type TrialActivationDataDtoFeaturesToActivate string
|
|
|
|
// UnsubmittedSummaryGroupDto defines model for UnsubmittedSummaryGroupDto.
|
|
type UnsubmittedSummaryGroupDto struct {
|
|
PeriodRange *string `json:"periodRange,omitempty"`
|
|
Users *[]UnsubmittedUserSummaryDto `json:"users,omitempty"`
|
|
// Deprecated:
|
|
WeekRange *string `json:"weekRange,omitempty"`
|
|
}
|
|
|
|
// UnsubmittedUserSummaryDto defines model for UnsubmittedUserSummaryDto.
|
|
type UnsubmittedUserSummaryDto struct {
|
|
ApprovedTimeOff *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"approvedTimeOff,omitempty"`
|
|
CurrencyTotal *[]CurrencyWithAmountDto `json:"currencyTotal,omitempty"`
|
|
DateRange *DateRangeDto `json:"dateRange,omitempty"`
|
|
ExpenseTotal *int64 `json:"expenseTotal,omitempty"`
|
|
HasSubmittedTimesheet *bool `json:"hasSubmittedTimesheet,omitempty"`
|
|
Total *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"total,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
UserName *string `json:"userName,omitempty"`
|
|
}
|
|
|
|
// UpdateApprovalRequest defines model for UpdateApprovalRequest.
|
|
type UpdateApprovalRequest struct {
|
|
// Note Additional notes for the approval request.
|
|
Note *string `json:"note,omitempty"`
|
|
|
|
// State Specifies the approval state to set.
|
|
State UpdateApprovalRequestState `json:"state"`
|
|
}
|
|
|
|
// UpdateApprovalRequestState Specifies the approval state to set.
|
|
type UpdateApprovalRequestState string
|
|
|
|
// UpdateApprovalSettingsRequest defines model for UpdateApprovalSettingsRequest.
|
|
type UpdateApprovalSettingsRequest struct {
|
|
ApprovalEnabled *bool `json:"approvalEnabled,omitempty"`
|
|
ApprovalPeriod *UpdateApprovalSettingsRequestApprovalPeriod `json:"approvalPeriod,omitempty"`
|
|
ApprovalRoles *[]UpdateApprovalSettingsRequestApprovalRoles `json:"approvalRoles,omitempty"`
|
|
}
|
|
|
|
// UpdateApprovalSettingsRequestApprovalPeriod defines model for UpdateApprovalSettingsRequest.ApprovalPeriod.
|
|
type UpdateApprovalSettingsRequestApprovalPeriod string
|
|
|
|
// UpdateApprovalSettingsRequestApprovalRoles defines model for UpdateApprovalSettingsRequest.ApprovalRoles.
|
|
type UpdateApprovalSettingsRequestApprovalRoles string
|
|
|
|
// UpdateAudiLogSettingsRequest defines model for UpdateAudiLogSettingsRequest.
|
|
type UpdateAudiLogSettingsRequest struct {
|
|
AuditEnabled bool `json:"auditEnabled"`
|
|
ClientAuditing bool `json:"clientAuditing"`
|
|
ExpensesAuditing bool `json:"expensesAuditing"`
|
|
ProjectAuditing bool `json:"projectAuditing"`
|
|
TagAuditing bool `json:"tagAuditing"`
|
|
TimeEntryAuditing bool `json:"timeEntryAuditing"`
|
|
}
|
|
|
|
// UpdateAutomaticLockRequest defines model for UpdateAutomaticLockRequest.
|
|
type UpdateAutomaticLockRequest struct {
|
|
ChangeDay *string `json:"changeDay,omitempty"`
|
|
ChangeHour *int32 `json:"changeHour,omitempty"`
|
|
DayOfMonth *int32 `json:"dayOfMonth,omitempty"`
|
|
FirstDay *string `json:"firstDay,omitempty"`
|
|
OlderThanPeriod *string `json:"olderThanPeriod,omitempty"`
|
|
OlderThanValue *int32 `json:"olderThanValue,omitempty"`
|
|
TimeZone *string `json:"timeZone,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
}
|
|
|
|
// UpdateClientRequest defines model for UpdateClientRequest.
|
|
type UpdateClientRequest struct {
|
|
Address *string `json:"address,omitempty"`
|
|
Archived *bool `json:"archived,omitempty"`
|
|
CurrencyId *string `json:"currencyId,omitempty"`
|
|
Email *string `json:"email,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
}
|
|
|
|
// UpdateCompactViewSettings defines model for UpdateCompactViewSettings.
|
|
type UpdateCompactViewSettings struct {
|
|
IsCompactViewOn bool `json:"isCompactViewOn"`
|
|
}
|
|
|
|
// UpdateCurrencyCodeRequest defines model for UpdateCurrencyCodeRequest.
|
|
type UpdateCurrencyCodeRequest struct {
|
|
Code string `json:"code"`
|
|
}
|
|
|
|
// UpdateCustomFieldRequest defines model for UpdateCustomFieldRequest.
|
|
type UpdateCustomFieldRequest struct {
|
|
// CustomFieldId Represents custom field identifier across the system.
|
|
CustomFieldId string `json:"customFieldId"`
|
|
|
|
// SourceType Represents a custom field value source type.
|
|
SourceType *UpdateCustomFieldRequestSourceType `json:"sourceType,omitempty"`
|
|
|
|
// Value Represents a custom field's value.
|
|
Value *map[string]interface{} `json:"value,omitempty"`
|
|
}
|
|
|
|
// UpdateCustomFieldRequestSourceType Represents a custom field value source type.
|
|
type UpdateCustomFieldRequestSourceType string
|
|
|
|
// UpdateDashboardSelection defines model for UpdateDashboardSelection.
|
|
type UpdateDashboardSelection struct {
|
|
DashboardSelection UpdateDashboardSelectionDashboardSelection `json:"dashboardSelection"`
|
|
}
|
|
|
|
// UpdateDashboardSelectionDashboardSelection defines model for UpdateDashboardSelection.DashboardSelection.
|
|
type UpdateDashboardSelectionDashboardSelection string
|
|
|
|
// UpdateDefaultWorkspaceCurrencyRequest defines model for UpdateDefaultWorkspaceCurrencyRequest.
|
|
type UpdateDefaultWorkspaceCurrencyRequest struct {
|
|
CurrencyId *string `json:"currencyId,omitempty"`
|
|
}
|
|
|
|
// UpdateEntityCreationPermissionsRequest defines model for UpdateEntityCreationPermissionsRequest.
|
|
type UpdateEntityCreationPermissionsRequest struct {
|
|
WhoCanCreateProjectsAndClients *string `json:"whoCanCreateProjectsAndClients,omitempty"`
|
|
WhoCanCreateTags *string `json:"whoCanCreateTags,omitempty"`
|
|
WhoCanCreateTasks *string `json:"whoCanCreateTasks,omitempty"`
|
|
}
|
|
|
|
// UpdateExpenseRequest defines model for UpdateExpenseRequest.
|
|
type UpdateExpenseRequest struct {
|
|
Amount float64 `json:"amount"`
|
|
Billable *bool `json:"billable,omitempty"`
|
|
CategoryId *string `json:"categoryId,omitempty"`
|
|
ChangeFields *[]UpdateExpenseRequestChangeFields `json:"changeFields,omitempty"`
|
|
Date *time.Time `json:"date,omitempty"`
|
|
File *openapi_types.File `json:"file,omitempty"`
|
|
Notes *string `json:"notes,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
UserId string `json:"userId"`
|
|
}
|
|
|
|
// UpdateExpenseRequestChangeFields defines model for UpdateExpenseRequest.ChangeFields.
|
|
type UpdateExpenseRequestChangeFields string
|
|
|
|
// UpdateFavoriteEntriesRequest defines model for UpdateFavoriteEntriesRequest.
|
|
type UpdateFavoriteEntriesRequest struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
TagIds *[]string `json:"tagIds,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
}
|
|
|
|
// UpdateInvoiceItemRequest defines model for UpdateInvoiceItemRequest.
|
|
type UpdateInvoiceItemRequest struct {
|
|
Description *string `json:"description,omitempty"`
|
|
ItemType *string `json:"itemType,omitempty"`
|
|
Quantity int32 `json:"quantity"`
|
|
UnitPrice int32 `json:"unitPrice"`
|
|
}
|
|
|
|
// UpdateInvoiceItemTypeRequest defines model for UpdateInvoiceItemTypeRequest.
|
|
type UpdateInvoiceItemTypeRequest struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
// UpdateInvoiceRequest defines model for UpdateInvoiceRequest.
|
|
type UpdateInvoiceRequest struct {
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
CompanyId *string `json:"companyId,omitempty"`
|
|
Currency string `json:"currency"`
|
|
Discount *float64 `json:"discount,omitempty"`
|
|
DiscountPercent *float64 `json:"discountPercent,omitempty"`
|
|
DueDate *time.Time `json:"dueDate,omitempty"`
|
|
IssuedDate *time.Time `json:"issuedDate,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
Number string `json:"number"`
|
|
Subject *string `json:"subject,omitempty"`
|
|
Tax *float64 `json:"tax,omitempty"`
|
|
Tax2 *float64 `json:"tax2,omitempty"`
|
|
Tax2Percent *float64 `json:"tax2Percent,omitempty"`
|
|
TaxPercent *float64 `json:"taxPercent,omitempty"`
|
|
VisibleZeroFields *[]string `json:"visibleZeroFields,omitempty"`
|
|
}
|
|
|
|
// UpdateInvoiceSettingsRequest defines model for UpdateInvoiceSettingsRequest.
|
|
type UpdateInvoiceSettingsRequest struct {
|
|
Defaults *InvoiceDefaultSettingsRequest `json:"defaults,omitempty"`
|
|
ExportFields *InvoiceExportFieldsRequest `json:"exportFields,omitempty"`
|
|
Labels LabelsCustomizationRequest `json:"labels"`
|
|
}
|
|
|
|
// UpdateInvoicedStatusRequest defines model for UpdateInvoicedStatusRequest.
|
|
type UpdateInvoicedStatusRequest struct {
|
|
// Invoiced Indicates whether time entry is invoiced or not.
|
|
Invoiced bool `json:"invoiced"`
|
|
|
|
// TimeEntries Represents a list of invoiced time entry ids
|
|
TimeEntries []string `json:"timeEntries"`
|
|
}
|
|
|
|
// UpdateKioskRequest defines model for UpdateKioskRequest.
|
|
type UpdateKioskRequest struct {
|
|
DefaultBreakProjectId *string `json:"defaultBreakProjectId,omitempty"`
|
|
DefaultBreakTaskId *string `json:"defaultBreakTaskId,omitempty"`
|
|
DefaultEntities *DefaultKioskEntitiesRequest `json:"defaultEntities,omitempty"`
|
|
DefaultProjectId *string `json:"defaultProjectId,omitempty"`
|
|
DefaultTaskId *string `json:"defaultTaskId,omitempty"`
|
|
EveryoneIncludingNew *bool `json:"everyoneIncludingNew,omitempty"`
|
|
Groups *ContainsUserGroupFilterRequest `json:"groups,omitempty"`
|
|
Name string `json:"name"`
|
|
Pin *PinSettingRequest `json:"pin,omitempty"`
|
|
SessionDuration *int32 `json:"sessionDuration,omitempty"`
|
|
Users *ContainsUsersFilterRequest `json:"users,omitempty"`
|
|
}
|
|
|
|
// UpdateKioskStatusRequest defines model for UpdateKioskStatusRequest.
|
|
type UpdateKioskStatusRequest struct {
|
|
Status *UpdateKioskStatusRequestStatus `json:"status,omitempty"`
|
|
}
|
|
|
|
// UpdateKioskStatusRequestStatus defines model for UpdateKioskStatusRequest.Status.
|
|
type UpdateKioskStatusRequestStatus string
|
|
|
|
// UpdateLangRequest defines model for UpdateLangRequest.
|
|
type UpdateLangRequest struct {
|
|
Lang *string `json:"lang,omitempty"`
|
|
}
|
|
|
|
// UpdateManyClientsRequest defines model for UpdateManyClientsRequest.
|
|
type UpdateManyClientsRequest struct {
|
|
ArchiveProjects *bool `json:"archiveProjects,omitempty"`
|
|
Archived bool `json:"archived"`
|
|
ClientIds []string `json:"clientIds"`
|
|
MarkTasksAsDone *bool `json:"markTasksAsDone,omitempty"`
|
|
}
|
|
|
|
// UpdateManyTagsRequest defines model for UpdateManyTagsRequest.
|
|
type UpdateManyTagsRequest struct {
|
|
Archived bool `json:"archived"`
|
|
TagIds []string `json:"tagIds"`
|
|
}
|
|
|
|
// UpdateNameAndProfilePictureRequest defines model for UpdateNameAndProfilePictureRequest.
|
|
type UpdateNameAndProfilePictureRequest struct {
|
|
Name *string `json:"name,omitempty"`
|
|
ProfilePictureUrl *string `json:"profilePictureUrl,omitempty"`
|
|
}
|
|
|
|
// UpdatePinCodeRequest defines model for UpdatePinCodeRequest.
|
|
type UpdatePinCodeRequest struct {
|
|
PinCode string `json:"pinCode"`
|
|
Since *string `json:"since,omitempty"`
|
|
}
|
|
|
|
// UpdatePolicyRequest defines model for UpdatePolicyRequest.
|
|
type UpdatePolicyRequest struct {
|
|
AllowHalfDay bool `json:"allowHalfDay"`
|
|
AllowNegativeBalance bool `json:"allowNegativeBalance"`
|
|
Approve ApproveDto `json:"approve"`
|
|
Archived bool `json:"archived"`
|
|
AutomaticAccrual *AutomaticAccrualRequest `json:"automaticAccrual,omitempty"`
|
|
AutomaticTimeEntryCreation *AutomaticTimeEntryCreationRequest `json:"automaticTimeEntryCreation,omitempty"`
|
|
Color *string `json:"color,omitempty"`
|
|
EveryoneIncludingNew bool `json:"everyoneIncludingNew"`
|
|
Name string `json:"name"`
|
|
NegativeBalance *NegativeBalanceRequest `json:"negativeBalance,omitempty"`
|
|
UserGroups ContainsFilterRequest `json:"userGroups"`
|
|
Users ContainsFilterRequest `json:"users"`
|
|
}
|
|
|
|
// UpdateProjectRequest defines model for UpdateProjectRequest.
|
|
type UpdateProjectRequest struct {
|
|
Archived *bool `json:"archived,omitempty"`
|
|
Billable *bool `json:"billable,omitempty"`
|
|
ClientId *string `json:"clientId,omitempty"`
|
|
Color *string `json:"color,omitempty"`
|
|
CostRate *CostRateRequest `json:"costRate,omitempty"`
|
|
HourlyRate *HourlyRateRequest `json:"hourlyRate,omitempty"`
|
|
IsPublic *bool `json:"isPublic,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Note *string `json:"note,omitempty"`
|
|
}
|
|
|
|
// UpdateProjectsRequest defines model for UpdateProjectsRequest.
|
|
type UpdateProjectsRequest struct {
|
|
ProjectUpdateSyncId *string `json:"projectUpdateSyncId,omitempty"`
|
|
UpdateSyncId *string `json:"updateSyncId,omitempty"`
|
|
}
|
|
|
|
// UpdatePumbleIntegrationSettingsRequest defines model for UpdatePumbleIntegrationSettingsRequest.
|
|
type UpdatePumbleIntegrationSettingsRequest struct {
|
|
ShowChatWidget *bool `json:"showChatWidget,omitempty"`
|
|
}
|
|
|
|
// UpdateQuantityRequest defines model for UpdateQuantityRequest.
|
|
type UpdateQuantityRequest struct {
|
|
ItemType *string `json:"itemType,omitempty"`
|
|
Quantity int32 `json:"quantity"`
|
|
SeatType UpdateQuantityRequestSeatType `json:"seatType"`
|
|
}
|
|
|
|
// UpdateQuantityRequestSeatType defines model for UpdateQuantityRequest.SeatType.
|
|
type UpdateQuantityRequestSeatType string
|
|
|
|
// UpdateRoleRequest defines model for UpdateRoleRequest.
|
|
type UpdateRoleRequest struct {
|
|
ContainsRoleObjectsFilter *ContainsUsersFilterRequest `json:"containsRoleObjectsFilter,omitempty"`
|
|
Entity *ContainsUsersFilterRequest `json:"entity,omitempty"`
|
|
Role *UpdateRoleRequestRole `json:"role,omitempty"`
|
|
}
|
|
|
|
// UpdateRoleRequestRole defines model for UpdateRoleRequest.Role.
|
|
type UpdateRoleRequestRole string
|
|
|
|
// UpdateRoundRequest defines model for UpdateRoundRequest.
|
|
type UpdateRoundRequest struct {
|
|
Minutes *string `json:"minutes,omitempty"`
|
|
Round *string `json:"round,omitempty"`
|
|
}
|
|
|
|
// UpdateSchedulingSettingsRequest defines model for UpdateSchedulingSettingsRequest.
|
|
type UpdateSchedulingSettingsRequest struct {
|
|
CanSeeBillableAndCostAmount *bool `json:"canSeeBillableAndCostAmount,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
EveryoneCanSeeAllAssignments *bool `json:"everyoneCanSeeAllAssignments,omitempty"`
|
|
WhoCanCreateAssignments *string `json:"whoCanCreateAssignments,omitempty"`
|
|
}
|
|
|
|
// UpdateSidebarRequest defines model for UpdateSidebarRequest.
|
|
type UpdateSidebarRequest struct {
|
|
Sidebar *[]SidebarItemRequest `json:"sidebar,omitempty"`
|
|
}
|
|
|
|
// UpdateSummaryReportSettingsRequest defines model for UpdateSummaryReportSettingsRequest.
|
|
type UpdateSummaryReportSettingsRequest struct {
|
|
Group string `json:"group"`
|
|
Subgroup string `json:"subgroup"`
|
|
}
|
|
|
|
// UpdateTaskRequest defines model for UpdateTaskRequest.
|
|
type UpdateTaskRequest struct {
|
|
AssigneeId *string `json:"assigneeId,omitempty"`
|
|
AssigneeIds *[]string `json:"assigneeIds,omitempty"`
|
|
Billable *bool `json:"billable,omitempty"`
|
|
BudgetEstimate *int64 `json:"budgetEstimate,omitempty"`
|
|
Estimate *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Units *[]struct {
|
|
DateBased *bool `json:"dateBased,omitempty"`
|
|
Duration *struct {
|
|
Nano *int32 `json:"nano,omitempty"`
|
|
Negative *bool `json:"negative,omitempty"`
|
|
Positive *bool `json:"positive,omitempty"`
|
|
Seconds *int64 `json:"seconds,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"duration,omitempty"`
|
|
DurationEstimated *bool `json:"durationEstimated,omitempty"`
|
|
TimeBased *bool `json:"timeBased,omitempty"`
|
|
} `json:"units,omitempty"`
|
|
Zero *bool `json:"zero,omitempty"`
|
|
} `json:"estimate,omitempty"`
|
|
Name string `json:"name"`
|
|
Status *string `json:"status,omitempty"`
|
|
UserGroupIds *[]string `json:"userGroupIds,omitempty"`
|
|
}
|
|
|
|
// UpdateTimeEntryBillableRequest defines model for UpdateTimeEntryBillableRequest.
|
|
type UpdateTimeEntryBillableRequest struct {
|
|
Billable bool `json:"billable"`
|
|
}
|
|
|
|
// UpdateTimeEntryDescriptionRequest defines model for UpdateTimeEntryDescriptionRequest.
|
|
type UpdateTimeEntryDescriptionRequest struct {
|
|
Description *string `json:"description,omitempty"`
|
|
}
|
|
|
|
// UpdateTimeEntryEndRequest defines model for UpdateTimeEntryEndRequest.
|
|
type UpdateTimeEntryEndRequest struct {
|
|
End *time.Time `json:"end,omitempty"`
|
|
}
|
|
|
|
// UpdateTimeEntryProjectRequest defines model for UpdateTimeEntryProjectRequest.
|
|
type UpdateTimeEntryProjectRequest struct {
|
|
ProjectId *ProjectId `json:"projectId,omitempty"`
|
|
}
|
|
|
|
// UpdateTimeEntryRequest defines model for UpdateTimeEntryRequest.
|
|
type UpdateTimeEntryRequest struct {
|
|
Billable *bool `json:"billable,omitempty"`
|
|
CustomFields *[]UpdateCustomFieldRequest `json:"customFields,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
End *time.Time `json:"end,omitempty"`
|
|
ProjectId *string `json:"projectId,omitempty"`
|
|
Start *time.Time `json:"start,omitempty"`
|
|
StartAsString *string `json:"startAsString,omitempty"`
|
|
TagIds *[]string `json:"tagIds,omitempty"`
|
|
TaskId *string `json:"taskId,omitempty"`
|
|
}
|
|
|
|
// UpdateTimeEntryStartRequest defines model for UpdateTimeEntryStartRequest.
|
|
type UpdateTimeEntryStartRequest struct {
|
|
Start *time.Time `json:"start,omitempty"`
|
|
}
|
|
|
|
// UpdateTimeEntryTagsRequest defines model for UpdateTimeEntryTagsRequest.
|
|
type UpdateTimeEntryTagsRequest struct {
|
|
TagIds *[]string `json:"tagIds,omitempty"`
|
|
}
|
|
|
|
// UpdateTimeEntryTaskRequest defines model for UpdateTimeEntryTaskRequest.
|
|
type UpdateTimeEntryTaskRequest struct {
|
|
TaskId *TaskId `json:"taskId,omitempty"`
|
|
}
|
|
|
|
// UpdateTimeEntryUserRequest defines model for UpdateTimeEntryUserRequest.
|
|
type UpdateTimeEntryUserRequest struct {
|
|
UserId string `json:"userId"`
|
|
}
|
|
|
|
// UpdateTimeOffRequest defines model for UpdateTimeOffRequest.
|
|
type UpdateTimeOffRequest struct {
|
|
Active *bool `json:"active,omitempty"`
|
|
RegularUserCanSeeOtherUsersTimeOff *bool `json:"regularUserCanSeeOtherUsersTimeOff,omitempty"`
|
|
Type *bool `json:"type,omitempty"`
|
|
}
|
|
|
|
// UpdateTimeTrackingSettingsRequest defines model for UpdateTimeTrackingSettingsRequest.
|
|
type UpdateTimeTrackingSettingsRequest struct {
|
|
TimeTrackingManual bool `json:"timeTrackingManual"`
|
|
}
|
|
|
|
// UpdateTimezoneRequest defines model for UpdateTimezoneRequest.
|
|
type UpdateTimezoneRequest struct {
|
|
Timezone string `json:"timezone"`
|
|
}
|
|
|
|
// UpdateUserGroupNameRequest defines model for UpdateUserGroupNameRequest.
|
|
type UpdateUserGroupNameRequest struct {
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// UpdateUserRolesRequest defines model for UpdateUserRolesRequest.
|
|
type UpdateUserRolesRequest struct {
|
|
Roles *[]UpdateRoleRequest `json:"roles,omitempty"`
|
|
UpdateRoleRequests *[]UpdateRoleRequest `json:"updateRoleRequests,omitempty"`
|
|
}
|
|
|
|
// UpdateUserSettingsRequest defines model for UpdateUserSettingsRequest.
|
|
type UpdateUserSettingsRequest struct {
|
|
Name *string `json:"name,omitempty"`
|
|
ProfilePicture *string `json:"profilePicture,omitempty"`
|
|
ProfilePictureUrl *string `json:"profilePictureUrl,omitempty"`
|
|
Settings UserSettingsDto `json:"settings"`
|
|
}
|
|
|
|
// UpdateUsersFromUserGroupsRequest defines model for UpdateUsersFromUserGroupsRequest.
|
|
type UpdateUsersFromUserGroupsRequest struct {
|
|
UserFilter *ContainsUsersFilterRequest `json:"userFilter,omitempty"`
|
|
UserGroupFilter *ContainsUserGroupFilterRequest `json:"userGroupFilter,omitempty"`
|
|
UserGroupId *string `json:"userGroupId,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
}
|
|
|
|
// UpdateWorkspaceRequest defines model for UpdateWorkspaceRequest.
|
|
type UpdateWorkspaceRequest struct {
|
|
ImageUrl *string `json:"imageUrl,omitempty"`
|
|
Name string `json:"name"`
|
|
WorkspaceSettings *UpdateWorkspaceSettingsRequest `json:"workspaceSettings,omitempty"`
|
|
}
|
|
|
|
// UpdateWorkspaceSettingsRequest defines model for UpdateWorkspaceSettingsRequest.
|
|
type UpdateWorkspaceSettingsRequest struct {
|
|
ActiveBillableHours *bool `json:"activeBillableHours,omitempty"`
|
|
AdminOnlyPages *[]UpdateWorkspaceSettingsRequestAdminOnlyPages `json:"adminOnlyPages,omitempty"`
|
|
ApprovalSettings *UpdateApprovalSettingsRequest `json:"approvalSettings,omitempty"`
|
|
AuditLogSettings *UpdateAudiLogSettingsRequest `json:"auditLogSettings,omitempty"`
|
|
AutomaticLock *UpdateAutomaticLockRequest `json:"automaticLock,omitempty"`
|
|
BreakSettings *BreakSettingsRequest `json:"breakSettings,omitempty"`
|
|
CanManagerEditUsersTime *bool `json:"canManagerEditUsersTime,omitempty"`
|
|
CanManagerLaunchKiosk *bool `json:"canManagerLaunchKiosk,omitempty"`
|
|
CanSeeTimeSheet *bool `json:"canSeeTimeSheet,omitempty"`
|
|
CanSeeTracker *bool `json:"canSeeTracker,omitempty"`
|
|
CompanyAddress *string `json:"companyAddress,omitempty"`
|
|
CostRateActive *bool `json:"costRateActive,omitempty"`
|
|
CurrencyFormat *UpdateWorkspaceSettingsRequestCurrencyFormat `json:"currencyFormat,omitempty"`
|
|
// Deprecated:
|
|
DecimalFormat *bool `json:"decimalFormat,omitempty"`
|
|
DefaultBillableProjects *bool `json:"defaultBillableProjects,omitempty"`
|
|
DurationFormat *UpdateWorkspaceSettingsRequestDurationFormat `json:"durationFormat,omitempty"`
|
|
EntityCreationPermissions *UpdateEntityCreationPermissionsRequest `json:"entityCreationPermissions,omitempty"`
|
|
ExpensesEnabled *bool `json:"expensesEnabled,omitempty"`
|
|
FavoriteEntriesEnabled *bool `json:"favoriteEntriesEnabled,omitempty"`
|
|
ForceDescription *bool `json:"forceDescription,omitempty"`
|
|
ForceProjects *bool `json:"forceProjects,omitempty"`
|
|
ForceTags *bool `json:"forceTags,omitempty"`
|
|
ForceTasks *bool `json:"forceTasks,omitempty"`
|
|
HighResolutionScreenshots *bool `json:"highResolutionScreenshots,omitempty"`
|
|
InvoicingEnabled *bool `json:"invoicingEnabled,omitempty"`
|
|
IsCostRateActive *bool `json:"isCostRateActive,omitempty"`
|
|
IsProjectPublicByDefault *bool `json:"isProjectPublicByDefault,omitempty"`
|
|
KioskAutologinEnabled *bool `json:"kioskAutologinEnabled,omitempty"`
|
|
KioskEnabled *bool `json:"kioskEnabled,omitempty"`
|
|
KioskProjectsAndTasksEnabled *bool `json:"kioskProjectsAndTasksEnabled,omitempty"`
|
|
LocationsEnabled *bool `json:"locationsEnabled,omitempty"`
|
|
LockTimeEntries *string `json:"lockTimeEntries,omitempty"`
|
|
LockTimeZone *string `json:"lockTimeZone,omitempty"`
|
|
LockedTimeEntries *string `json:"lockedTimeEntries,omitempty"`
|
|
MultiFactorEnabled *bool `json:"multiFactorEnabled,omitempty"`
|
|
NumberFormat *UpdateWorkspaceSettingsRequestNumberFormat `json:"numberFormat,omitempty"`
|
|
OnlyAdminsCanChangeBillableStatus *bool `json:"onlyAdminsCanChangeBillableStatus,omitempty"`
|
|
OnlyAdminsCreateProject *bool `json:"onlyAdminsCreateProject,omitempty"`
|
|
OnlyAdminsCreateTag *bool `json:"onlyAdminsCreateTag,omitempty"`
|
|
OnlyAdminsCreateTask *bool `json:"onlyAdminsCreateTask,omitempty"`
|
|
OnlyAdminsSeeAllTimeEntries *bool `json:"onlyAdminsSeeAllTimeEntries,omitempty"`
|
|
OnlyAdminsSeeBillableRates *bool `json:"onlyAdminsSeeBillableRates,omitempty"`
|
|
OnlyAdminsSeeDashboard *bool `json:"onlyAdminsSeeDashboard,omitempty"`
|
|
OnlyAdminsSeeProjectStatus *bool `json:"onlyAdminsSeeProjectStatus,omitempty"`
|
|
OnlyAdminsSeePublicProjectsEntries *bool `json:"onlyAdminsSeePublicProjectsEntries,omitempty"`
|
|
ProjectFavorite *bool `json:"projectFavorite,omitempty"`
|
|
ProjectFavorites *bool `json:"projectFavorites,omitempty"`
|
|
ProjectGroupingLabel string `json:"projectGroupingLabel"`
|
|
ProjectPickerSpecialFilter *bool `json:"projectPickerSpecialFilter,omitempty"`
|
|
ProjectPublicByDefault *bool `json:"projectPublicByDefault,omitempty"`
|
|
PumbleIntegrationSettings *UpdatePumbleIntegrationSettingsRequest `json:"pumbleIntegrationSettings,omitempty"`
|
|
PumbleIntegrationSettingsRequest *UpdatePumbleIntegrationSettingsRequest `json:"pumbleIntegrationSettingsRequest,omitempty"`
|
|
Round *UpdateRoundRequest `json:"round,omitempty"`
|
|
SchedulingEnabled *bool `json:"schedulingEnabled,omitempty"`
|
|
SchedulingSettings *UpdateSchedulingSettingsRequest `json:"schedulingSettings,omitempty"`
|
|
ScreenshotsEnabled *bool `json:"screenshotsEnabled,omitempty"`
|
|
TaskBillableEnabled *bool `json:"taskBillableEnabled,omitempty"`
|
|
TaskRateEnabled *bool `json:"taskRateEnabled,omitempty"`
|
|
TimeApprovalEnabled *bool `json:"timeApprovalEnabled,omitempty"`
|
|
TimeOff *UpdateTimeOffRequest `json:"timeOff,omitempty"`
|
|
TimeRoundingInReports *bool `json:"timeRoundingInReports,omitempty"`
|
|
TimeTrackingMode *UpdateWorkspaceSettingsRequestTimeTrackingMode `json:"timeTrackingMode,omitempty"`
|
|
TimesheetOn *bool `json:"timesheetOn,omitempty"`
|
|
TrackTimeDownToSecond *bool `json:"trackTimeDownToSecond,omitempty"`
|
|
TrackerOn *bool `json:"trackerOn,omitempty"`
|
|
WeekStart *string `json:"weekStart,omitempty"`
|
|
WorkingDays *[]string `json:"workingDays,omitempty"`
|
|
}
|
|
|
|
// UpdateWorkspaceSettingsRequestAdminOnlyPages defines model for UpdateWorkspaceSettingsRequest.AdminOnlyPages.
|
|
type UpdateWorkspaceSettingsRequestAdminOnlyPages string
|
|
|
|
// UpdateWorkspaceSettingsRequestCurrencyFormat defines model for UpdateWorkspaceSettingsRequest.CurrencyFormat.
|
|
type UpdateWorkspaceSettingsRequestCurrencyFormat string
|
|
|
|
// UpdateWorkspaceSettingsRequestDurationFormat defines model for UpdateWorkspaceSettingsRequest.DurationFormat.
|
|
type UpdateWorkspaceSettingsRequestDurationFormat string
|
|
|
|
// UpdateWorkspaceSettingsRequestNumberFormat defines model for UpdateWorkspaceSettingsRequest.NumberFormat.
|
|
type UpdateWorkspaceSettingsRequestNumberFormat string
|
|
|
|
// UpdateWorkspaceSettingsRequestTimeTrackingMode defines model for UpdateWorkspaceSettingsRequest.TimeTrackingMode.
|
|
type UpdateWorkspaceSettingsRequestTimeTrackingMode string
|
|
|
|
// UpgradePreCheckDto defines model for UpgradePreCheckDto.
|
|
type UpgradePreCheckDto struct {
|
|
CanUpgrade *bool `json:"canUpgrade,omitempty"`
|
|
WorkspaceForRedirect *string `json:"workspaceForRedirect,omitempty"`
|
|
}
|
|
|
|
// UpgradePriceDto defines model for UpgradePriceDto.
|
|
type UpgradePriceDto struct {
|
|
AppliedBalance *float64 `json:"appliedBalance,omitempty"`
|
|
Currency *string `json:"currency,omitempty"`
|
|
MinLimitedQty *int32 `json:"minLimitedQty,omitempty"`
|
|
MinRegularQty *int32 `json:"minRegularQty,omitempty"`
|
|
Price *float64 `json:"price,omitempty"`
|
|
Subtotal *float64 `json:"subtotal,omitempty"`
|
|
Taxes *map[string]float64 `json:"taxes,omitempty"`
|
|
Total *float64 `json:"total,omitempty"`
|
|
}
|
|
|
|
// UploadFileResponseV1 defines model for UploadFileResponseV1.
|
|
type UploadFileResponseV1 struct {
|
|
// Name File name of the uploaded image
|
|
Name *string `json:"name,omitempty"`
|
|
|
|
// Url The URL of the uploaded image in the server
|
|
Url *string `json:"url,omitempty"`
|
|
}
|
|
|
|
// UpsertUserCustomFieldRequest defines model for UpsertUserCustomFieldRequest.
|
|
type UpsertUserCustomFieldRequest struct {
|
|
// CustomFieldId Represents custom field identifier across the system.
|
|
CustomFieldId string `json:"customFieldId"`
|
|
|
|
// Value Represents custom field value.
|
|
Value *map[string]interface{} `json:"value,omitempty"`
|
|
}
|
|
|
|
// Url defines model for Url.
|
|
type Url = map[string]interface{}
|
|
|
|
// UserAdminDto defines model for UserAdminDto.
|
|
type UserAdminDto struct {
|
|
AccessEnabled *bool `json:"accessEnabled,omitempty"`
|
|
ApiKey *ApiKeyDto `json:"apiKey,omitempty"`
|
|
CountActiveWsMemberships *int64 `json:"countActiveWsMemberships,omitempty"`
|
|
CountInactiveWsMemberships *int64 `json:"countInactiveWsMemberships,omitempty"`
|
|
CountInvitedWsMemberships *int64 `json:"countInvitedWsMemberships,omitempty"`
|
|
CountOfWorkspaces *int64 `json:"countOfWorkspaces,omitempty"`
|
|
Email *string `json:"email,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Status *UserAdminDtoStatus `json:"status,omitempty"`
|
|
}
|
|
|
|
// UserAdminDtoStatus defines model for UserAdminDto.Status.
|
|
type UserAdminDtoStatus string
|
|
|
|
// UserAssignmentsRequest defines model for UserAssignmentsRequest.
|
|
type UserAssignmentsRequest struct {
|
|
End *time.Time `json:"end,omitempty"`
|
|
Start *time.Time `json:"start,omitempty"`
|
|
StatusFilter *UserAssignmentsRequestStatusFilter `json:"statusFilter,omitempty"`
|
|
}
|
|
|
|
// UserAssignmentsRequestStatusFilter defines model for UserAssignmentsRequest.StatusFilter.
|
|
type UserAssignmentsRequestStatusFilter string
|
|
|
|
// UserAttendanceReportFilterRequest defines model for UserAttendanceReportFilterRequest.
|
|
type UserAttendanceReportFilterRequest struct {
|
|
CustomFields *[]CustomFieldFilter `json:"customFields,omitempty"`
|
|
IncludeUsers *bool `json:"includeUsers,omitempty"`
|
|
Page *int32 `json:"page,omitempty"`
|
|
PageSize *int32 `json:"pageSize,omitempty"`
|
|
SearchValue *string `json:"searchValue,omitempty"`
|
|
SortColumn *string `json:"sortColumn,omitempty"`
|
|
SortOrder *string `json:"sortOrder,omitempty"`
|
|
Statuses *[]string `json:"statuses,omitempty"`
|
|
UserIds *[]string `json:"userIds,omitempty"`
|
|
UserStatuses *[]string `json:"userStatuses,omitempty"`
|
|
}
|
|
|
|
// UserCapacityDto defines model for UserCapacityDto.
|
|
type UserCapacityDto struct {
|
|
Capacity *int64 `json:"capacity,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
}
|
|
|
|
// UserCustomFieldPutRequest defines model for UserCustomFieldPutRequest.
|
|
type UserCustomFieldPutRequest struct {
|
|
UserCustomFields *[]UpsertUserCustomFieldRequest `json:"userCustomFields,omitempty"`
|
|
}
|
|
|
|
// UserCustomFieldValueDto defines model for UserCustomFieldValueDto.
|
|
type UserCustomFieldValueDto struct {
|
|
CustomFieldId *string `json:"customFieldId,omitempty"`
|
|
SourceType *string `json:"sourceType,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
Value *map[string]interface{} `json:"value,omitempty"`
|
|
}
|
|
|
|
// UserCustomFieldValueFullDto defines model for UserCustomFieldValueFullDto.
|
|
type UserCustomFieldValueFullDto struct {
|
|
CustomField *CustomFieldDto `json:"customField,omitempty"`
|
|
CustomFieldDto *CustomFieldDto `json:"customFieldDto,omitempty"`
|
|
CustomFieldId *string `json:"customFieldId,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
SourceType *string `json:"sourceType,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
Value *map[string]interface{} `json:"value,omitempty"`
|
|
}
|
|
|
|
// UserDeleteRequest defines model for UserDeleteRequest.
|
|
type UserDeleteRequest struct {
|
|
EmailForm *string `json:"emailForm,omitempty"`
|
|
Message *string `json:"message,omitempty"`
|
|
}
|
|
|
|
// UserDto defines model for UserDto.
|
|
type UserDto struct {
|
|
ActiveWorkspace *string `json:"activeWorkspace,omitempty"`
|
|
DefaultWorkspace *string `json:"defaultWorkspace,omitempty"`
|
|
Email *string `json:"email,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Memberships *[]MembershipDto `json:"memberships,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
ProfilePicture *string `json:"profilePicture,omitempty"`
|
|
Settings *UserSettingsDto `json:"settings,omitempty"`
|
|
Status *UserDtoStatus `json:"status,omitempty"`
|
|
}
|
|
|
|
// UserDtoStatus defines model for UserDto.Status.
|
|
type UserDtoStatus string
|
|
|
|
// UserEmailsRequest defines model for UserEmailsRequest.
|
|
type UserEmailsRequest struct {
|
|
Emails *[]string `json:"emails,omitempty"`
|
|
}
|
|
|
|
// UserGroupAttendanceFilterRequest defines model for UserGroupAttendanceFilterRequest.
|
|
type UserGroupAttendanceFilterRequest struct {
|
|
ExcludedIds *[]string `json:"excludedIds,omitempty"`
|
|
ForceFilter *bool `json:"forceFilter,omitempty"`
|
|
IncludeUsers *bool `json:"includeUsers,omitempty"`
|
|
Page *int32 `json:"page,omitempty"`
|
|
PageSize *int32 `json:"pageSize,omitempty"`
|
|
SearchValue *string `json:"searchValue,omitempty"`
|
|
UserIds *[]string `json:"userIds,omitempty"`
|
|
}
|
|
|
|
// UserGroupDto defines model for UserGroupDto.
|
|
type UserGroupDto struct {
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
UserIds *[]string `json:"userIds,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// UserGroupInfoDto defines model for UserGroupInfoDto.
|
|
type UserGroupInfoDto struct {
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// UserGroupReportFilterRequest defines model for UserGroupReportFilterRequest.
|
|
type UserGroupReportFilterRequest struct {
|
|
ExcludeIds *[]string `json:"excludeIds,omitempty"`
|
|
ForApproval *bool `json:"forApproval,omitempty"`
|
|
ForceFilter *bool `json:"forceFilter,omitempty"`
|
|
IgnoreFilter *bool `json:"ignoreFilter,omitempty"`
|
|
Page *int32 `json:"page,omitempty"`
|
|
PageSize *int32 `json:"pageSize,omitempty"`
|
|
SearchValue *string `json:"searchValue,omitempty"`
|
|
}
|
|
|
|
// UserInfoWithMembershipStatusDto defines model for UserInfoWithMembershipStatusDto.
|
|
type UserInfoWithMembershipStatusDto struct {
|
|
Email *string `json:"email,omitempty"`
|
|
MembershipStatus *UserInfoWithMembershipStatusDtoMembershipStatus `json:"membershipStatus,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
}
|
|
|
|
// UserInfoWithMembershipStatusDtoMembershipStatus defines model for UserInfoWithMembershipStatusDto.MembershipStatus.
|
|
type UserInfoWithMembershipStatusDtoMembershipStatus string
|
|
|
|
// UserInvitationDto defines model for UserInvitationDto.
|
|
type UserInvitationDto struct {
|
|
CakeOrganizationId *string `json:"cakeOrganizationId,omitempty"`
|
|
CakeOrganizationName *string `json:"cakeOrganizationName,omitempty"`
|
|
Creation *time.Time `json:"creation,omitempty"`
|
|
InvitationCode *string `json:"invitationCode,omitempty"`
|
|
InvitationId *string `json:"invitationId,omitempty"`
|
|
InvitedBy *string `json:"invitedBy,omitempty"`
|
|
Lang *string `json:"lang,omitempty"`
|
|
NotificationId *string `json:"notificationId,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WorkspaceDetail *WorkspaceDetailDto `json:"workspaceDetail,omitempty"`
|
|
}
|
|
|
|
// UserListAndCountDto defines model for UserListAndCountDto.
|
|
type UserListAndCountDto struct {
|
|
Count *int64 `json:"count,omitempty"`
|
|
Users *[]UserDto `json:"users,omitempty"`
|
|
}
|
|
|
|
// UserMembershipAndInviteDto defines model for UserMembershipAndInviteDto.
|
|
type UserMembershipAndInviteDto struct {
|
|
CakeOrganizations *[]CakeOrganization `json:"cakeOrganizations,omitempty"`
|
|
PendingInvitations *[]UserInvitationDto `json:"pendingInvitations,omitempty"`
|
|
Regions *[]RegionDto `json:"regions,omitempty"`
|
|
UserInfo *CakeUserInfo `json:"userInfo,omitempty"`
|
|
WorkspaceDetails *[]WorkspaceUserMembershipDto `json:"workspaceDetails,omitempty"`
|
|
}
|
|
|
|
// UserNotificationMarkAsReadManyRequest defines model for UserNotificationMarkAsReadManyRequest.
|
|
type UserNotificationMarkAsReadManyRequest struct {
|
|
Notifications *[]string `json:"notifications,omitempty"`
|
|
}
|
|
|
|
// UserNotificationMarkAsReadRequest defines model for UserNotificationMarkAsReadRequest.
|
|
type UserNotificationMarkAsReadRequest struct {
|
|
NotificationId string `json:"notificationId"`
|
|
}
|
|
|
|
// UserReportFilterRequest defines model for UserReportFilterRequest.
|
|
type UserReportFilterRequest struct {
|
|
CustomFields *[]CustomFieldFilter `json:"customFields,omitempty"`
|
|
ExcludeIds *[]string `json:"excludeIds,omitempty"`
|
|
ForApproval *bool `json:"forApproval,omitempty"`
|
|
ForceFilter *bool `json:"forceFilter,omitempty"`
|
|
IgnoreFilter *bool `json:"ignoreFilter,omitempty"`
|
|
Page *int32 `json:"page,omitempty"`
|
|
PageSize *int32 `json:"pageSize,omitempty"`
|
|
ReportType *string `json:"reportType,omitempty"`
|
|
SearchValue *string `json:"searchValue,omitempty"`
|
|
SortColumn *string `json:"sortColumn,omitempty"`
|
|
SortOrder *string `json:"sortOrder,omitempty"`
|
|
Statuses *[]string `json:"statuses,omitempty"`
|
|
UserStatuses *[]string `json:"userStatuses,omitempty"`
|
|
}
|
|
|
|
// UserRolesInfoDto defines model for UserRolesInfoDto.
|
|
type UserRolesInfoDto struct {
|
|
Userroles *[]RoleInfoDto `json:"user-roles,omitempty"`
|
|
Userroles1 *[]RoleInfoDto `json:"userRoles,omitempty"`
|
|
}
|
|
|
|
// UserSettingsDto defines model for UserSettingsDto.
|
|
type UserSettingsDto struct {
|
|
Alerts *bool `json:"alerts,omitempty"`
|
|
Approval *bool `json:"approval,omitempty"`
|
|
CollapseAllProjectLists *bool `json:"collapseAllProjectLists,omitempty"`
|
|
DarkTheme *bool `json:"darkTheme,omitempty"`
|
|
DashboardPinToTop *bool `json:"dashboardPinToTop,omitempty"`
|
|
DashboardSelection *UserSettingsDtoDashboardSelection `json:"dashboardSelection,omitempty"`
|
|
DashboardViewType *UserSettingsDtoDashboardViewType `json:"dashboardViewType,omitempty"`
|
|
DateFormat string `json:"dateFormat"`
|
|
GroupSimilarEntriesDisabled *bool `json:"groupSimilarEntriesDisabled,omitempty"`
|
|
IsCompactViewOn *bool `json:"isCompactViewOn,omitempty"`
|
|
Lang *string `json:"lang,omitempty"`
|
|
LongRunning *bool `json:"longRunning,omitempty"`
|
|
MultiFactorEnabled *bool `json:"multiFactorEnabled,omitempty"`
|
|
MyStartOfDay *string `json:"myStartOfDay,omitempty"`
|
|
Onboarding *bool `json:"onboarding,omitempty"`
|
|
ProjectListCollapse *int32 `json:"projectListCollapse,omitempty"`
|
|
ProjectPickerSpecialFilter *bool `json:"projectPickerSpecialFilter,omitempty"`
|
|
Pto *bool `json:"pto,omitempty"`
|
|
Reminders *bool `json:"reminders,omitempty"`
|
|
ScheduledReports *bool `json:"scheduledReports,omitempty"`
|
|
Scheduling *bool `json:"scheduling,omitempty"`
|
|
SendNewsletter *bool `json:"sendNewsletter,omitempty"`
|
|
ShowOnlyWorkingDays *bool `json:"showOnlyWorkingDays,omitempty"`
|
|
SummaryReportSettings *SummaryReportSettingsDto `json:"summaryReportSettings,omitempty"`
|
|
Theme *UserSettingsDtoTheme `json:"theme,omitempty"`
|
|
TimeFormat string `json:"timeFormat"`
|
|
TimeTrackingManual *bool `json:"timeTrackingManual,omitempty"`
|
|
TimeZone string `json:"timeZone"`
|
|
WeekStart *UserSettingsDtoWeekStart `json:"weekStart,omitempty"`
|
|
WeeklyUpdates *bool `json:"weeklyUpdates,omitempty"`
|
|
}
|
|
|
|
// UserSettingsDtoDashboardSelection defines model for UserSettingsDto.DashboardSelection.
|
|
type UserSettingsDtoDashboardSelection string
|
|
|
|
// UserSettingsDtoDashboardViewType defines model for UserSettingsDto.DashboardViewType.
|
|
type UserSettingsDtoDashboardViewType string
|
|
|
|
// UserSettingsDtoTheme defines model for UserSettingsDto.Theme.
|
|
type UserSettingsDtoTheme string
|
|
|
|
// UserSettingsDtoWeekStart defines model for UserSettingsDto.WeekStart.
|
|
type UserSettingsDtoWeekStart string
|
|
|
|
// UserSummaryDto defines model for UserSummaryDto.
|
|
type UserSummaryDto struct {
|
|
Email *string `json:"email,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// UsersAndCountDto defines model for UsersAndCountDto.
|
|
type UsersAndCountDto struct {
|
|
Count *int64 `json:"count,omitempty"`
|
|
Users *[]UserAdminDto `json:"users,omitempty"`
|
|
}
|
|
|
|
// UsersDto defines model for UsersDto.
|
|
type UsersDto struct {
|
|
Users *[]UserAdminDto `json:"users,omitempty"`
|
|
}
|
|
|
|
// UsersExistRequest defines model for UsersExistRequest.
|
|
type UsersExistRequest struct {
|
|
IncludeInvitations *bool `json:"includeInvitations,omitempty"`
|
|
UserEmails []string `json:"userEmails"`
|
|
UserIds *[]string `json:"userIds,omitempty"`
|
|
}
|
|
|
|
// UsersIdsRequest defines model for UsersIdsRequest.
|
|
type UsersIdsRequest struct {
|
|
ExcludeIds *[]string `json:"excludeIds,omitempty"`
|
|
Ids *[]string `json:"ids,omitempty"`
|
|
}
|
|
|
|
// UsersNameAndProfilePictureDto defines model for UsersNameAndProfilePictureDto.
|
|
type UsersNameAndProfilePictureDto struct {
|
|
Name *string `json:"name,omitempty"`
|
|
ProfilePictureUrl *string `json:"profilePictureUrl,omitempty"`
|
|
}
|
|
|
|
// WalkthroughCreationRequest defines model for WalkthroughCreationRequest.
|
|
type WalkthroughCreationRequest struct {
|
|
Walkthrough *string `json:"walkthrough,omitempty"`
|
|
}
|
|
|
|
// WalkthroughDto defines model for WalkthroughDto.
|
|
type WalkthroughDto struct {
|
|
Unfinished *[]WalkthroughDtoUnfinished `json:"unfinished,omitempty"`
|
|
}
|
|
|
|
// WalkthroughDtoUnfinished defines model for WalkthroughDto.Unfinished.
|
|
type WalkthroughDtoUnfinished string
|
|
|
|
// WebhookDto defines model for WebhookDto.
|
|
type WebhookDto struct {
|
|
AuthToken *string `json:"authToken,omitempty"`
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
TriggerSource *[]string `json:"triggerSource,omitempty"`
|
|
TriggerSourceType *WebhookDtoTriggerSourceType `json:"triggerSourceType,omitempty"`
|
|
Url *string `json:"url,omitempty"`
|
|
UserId *string `json:"userId,omitempty"`
|
|
WebhookEvent *WebhookDtoWebhookEvent `json:"webhookEvent,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// WebhookDtoTriggerSourceType defines model for WebhookDto.TriggerSourceType.
|
|
type WebhookDtoTriggerSourceType string
|
|
|
|
// WebhookDtoWebhookEvent defines model for WebhookDto.WebhookEvent.
|
|
type WebhookDtoWebhookEvent string
|
|
|
|
// WebhookLogDto defines model for WebhookLogDto.
|
|
type WebhookLogDto struct {
|
|
Id *string `json:"id,omitempty"`
|
|
RequestBody *string `json:"requestBody,omitempty"`
|
|
RespondedAt *string `json:"respondedAt,omitempty"`
|
|
ResponseBody *string `json:"responseBody,omitempty"`
|
|
StatusCode *int32 `json:"statusCode,omitempty"`
|
|
WebhookId *string `json:"webhookId,omitempty"`
|
|
}
|
|
|
|
// WebhookRequest defines model for WebhookRequest.
|
|
type WebhookRequest struct {
|
|
Name *string `json:"name,omitempty"`
|
|
TriggerSource []string `json:"triggerSource"`
|
|
TriggerSourceType *WebhookRequestTriggerSourceType `json:"triggerSourceType,omitempty"`
|
|
Url string `json:"url"`
|
|
WebhookEvent *WebhookRequestWebhookEvent `json:"webhookEvent,omitempty"`
|
|
}
|
|
|
|
// WebhookRequestTriggerSourceType defines model for WebhookRequest.TriggerSourceType.
|
|
type WebhookRequestTriggerSourceType string
|
|
|
|
// WebhookRequestWebhookEvent defines model for WebhookRequest.WebhookEvent.
|
|
type WebhookRequestWebhookEvent string
|
|
|
|
// WebhooksDto defines model for WebhooksDto.
|
|
type WebhooksDto struct {
|
|
Webhooks *[]WebhookDto `json:"webhooks,omitempty"`
|
|
WorkspaceWebhookCount *int32 `json:"workspaceWebhookCount,omitempty"`
|
|
}
|
|
|
|
// WeeklyCapacityDto defines model for WeeklyCapacityDto.
|
|
type WeeklyCapacityDto struct {
|
|
FirstDateOfWeek *openapi_types.Date `json:"firstDateOfWeek,omitempty"`
|
|
OffHours *float64 `json:"offHours,omitempty"`
|
|
Percentage *float64 `json:"percentage,omitempty"`
|
|
WorkingHours *float64 `json:"workingHours,omitempty"`
|
|
}
|
|
|
|
// WorkspaceDetailDto defines model for WorkspaceDetailDto.
|
|
type WorkspaceDetailDto struct {
|
|
IsOnSubdomain *bool `json:"isOnSubdomain,omitempty"`
|
|
Region *string `json:"region,omitempty"`
|
|
RequireSSO *bool `json:"requireSSO,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
WorkspaceImageUrl *string `json:"workspaceImageUrl,omitempty"`
|
|
WorkspaceName *string `json:"workspaceName,omitempty"`
|
|
WorkspaceStatus *string `json:"workspaceStatus,omitempty"`
|
|
WorkspaceUrl *string `json:"workspaceUrl,omitempty"`
|
|
}
|
|
|
|
// WorkspaceDto defines model for WorkspaceDto.
|
|
type WorkspaceDto struct {
|
|
CostRate *RateDto `json:"costRate,omitempty"`
|
|
Currency *CurrencyDto `json:"currency,omitempty"`
|
|
FeatureSubscriptionType *WorkspaceDtoFeatureSubscriptionType `json:"featureSubscriptionType,omitempty"`
|
|
Features *[]WorkspaceDtoFeatures `json:"features,omitempty"`
|
|
HourlyRate *RateDto `json:"hourlyRate,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
ImageUrl *string `json:"imageUrl,omitempty"`
|
|
Memberships *[]MembershipDto `json:"memberships,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
// Deprecated:
|
|
OnSubdomain *bool `json:"onSubdomain,omitempty"`
|
|
Subdomain *WorkspaceSubdomainDto `json:"subdomain,omitempty"`
|
|
WorkspaceSettings *WorkspaceSettingsDto `json:"workspaceSettings,omitempty"`
|
|
}
|
|
|
|
// WorkspaceDtoFeatureSubscriptionType defines model for WorkspaceDto.FeatureSubscriptionType.
|
|
type WorkspaceDtoFeatureSubscriptionType string
|
|
|
|
// WorkspaceDtoFeatures defines model for WorkspaceDto.Features.
|
|
type WorkspaceDtoFeatures string
|
|
|
|
// WorkspaceOverviewDto defines model for WorkspaceOverviewDto.
|
|
type WorkspaceOverviewDto struct {
|
|
AccessEnabled *bool `json:"accessEnabled,omitempty"`
|
|
CakeOrganizationId *string `json:"cakeOrganizationId,omitempty"`
|
|
CakeOrganizationName *string `json:"cakeOrganizationName,omitempty"`
|
|
CostRate *RateDto `json:"costRate,omitempty"`
|
|
Currency *CurrencyDto `json:"currency,omitempty"`
|
|
FeatureSubscriptionType *WorkspaceOverviewDtoFeatureSubscriptionType `json:"featureSubscriptionType,omitempty"`
|
|
Features *[]WorkspaceOverviewDtoFeatures `json:"features,omitempty"`
|
|
HourlyRate *RateDto `json:"hourlyRate,omitempty"`
|
|
Id *string `json:"id,omitempty"`
|
|
ImageUrl *string `json:"imageUrl,omitempty"`
|
|
Memberships *[]MembershipDto `json:"memberships,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
// Deprecated:
|
|
OnSubdomain *bool `json:"onSubdomain,omitempty"`
|
|
Reason *string `json:"reason,omitempty"`
|
|
Subdomain *WorkspaceSubdomainDto `json:"subdomain,omitempty"`
|
|
WorkspaceSettings *WorkspaceSettingsDto `json:"workspaceSettings,omitempty"`
|
|
}
|
|
|
|
// WorkspaceOverviewDtoFeatureSubscriptionType defines model for WorkspaceOverviewDto.FeatureSubscriptionType.
|
|
type WorkspaceOverviewDtoFeatureSubscriptionType string
|
|
|
|
// WorkspaceOverviewDtoFeatures defines model for WorkspaceOverviewDto.Features.
|
|
type WorkspaceOverviewDtoFeatures string
|
|
|
|
// WorkspaceSettingsDto defines model for WorkspaceSettingsDto.
|
|
type WorkspaceSettingsDto struct {
|
|
ActiveBillableHours *bool `json:"activeBillableHours,omitempty"`
|
|
AdminOnlyPages *[]WorkspaceSettingsDtoAdminOnlyPages `json:"adminOnlyPages,omitempty"`
|
|
ApprovalSettings *ApprovalSettings `json:"approvalSettings,omitempty"`
|
|
AuditLogSettings *AuditLogSettingsDto `json:"auditLogSettings,omitempty"`
|
|
AutomaticLock *AutomaticLockDto `json:"automaticLock,omitempty"`
|
|
BreakSettings *BreakSettingsDto `json:"breakSettings,omitempty"`
|
|
CanManagerEditUsersTime *bool `json:"canManagerEditUsersTime,omitempty"`
|
|
CanManagerLaunchKiosk *bool `json:"canManagerLaunchKiosk,omitempty"`
|
|
CanSeeTimeSheet *bool `json:"canSeeTimeSheet,omitempty"`
|
|
CanSeeTracker *bool `json:"canSeeTracker,omitempty"`
|
|
CompanyAddress *string `json:"companyAddress,omitempty"`
|
|
CurrencyFormat *WorkspaceSettingsDtoCurrencyFormat `json:"currencyFormat,omitempty"`
|
|
CustomLabels *CustomLabelsDto `json:"customLabels,omitempty"`
|
|
// Deprecated:
|
|
DecimalFormat *bool `json:"decimalFormat,omitempty"`
|
|
DefaultBillableProjects *bool `json:"defaultBillableProjects,omitempty"`
|
|
DurationFormat *WorkspaceSettingsDtoDurationFormat `json:"durationFormat,omitempty"`
|
|
EntityCreationPermissions *EntityCreationPermissionsDto `json:"entityCreationPermissions,omitempty"`
|
|
ExpensesEnabled *bool `json:"expensesEnabled,omitempty"`
|
|
FavoriteEntriesEnabled *bool `json:"favoriteEntriesEnabled,omitempty"`
|
|
ForceDescription *bool `json:"forceDescription,omitempty"`
|
|
ForceProjects *bool `json:"forceProjects,omitempty"`
|
|
ForceTags *bool `json:"forceTags,omitempty"`
|
|
ForceTasks *bool `json:"forceTasks,omitempty"`
|
|
HighResolutionScreenshots *bool `json:"highResolutionScreenshots,omitempty"`
|
|
InvoicingEnabled *bool `json:"invoicingEnabled,omitempty"`
|
|
IsCostRateActive *bool `json:"isCostRateActive,omitempty"`
|
|
IsProjectPublicByDefault *bool `json:"isProjectPublicByDefault,omitempty"`
|
|
KioskAutologinEnabled *bool `json:"kioskAutologinEnabled,omitempty"`
|
|
KioskEnabled *bool `json:"kioskEnabled,omitempty"`
|
|
KioskProjectsAndTasksEnabled *bool `json:"kioskProjectsAndTasksEnabled,omitempty"`
|
|
LocationsEnabled *bool `json:"locationsEnabled,omitempty"`
|
|
LockTimeEntries *string `json:"lockTimeEntries,omitempty"`
|
|
LockTimeZone *string `json:"lockTimeZone,omitempty"`
|
|
MultiFactorEnabled *bool `json:"multiFactorEnabled,omitempty"`
|
|
NumberFormat *WorkspaceSettingsDtoNumberFormat `json:"numberFormat,omitempty"`
|
|
OnlyAdminsCanChangeBillableStatus *bool `json:"onlyAdminsCanChangeBillableStatus,omitempty"`
|
|
OnlyAdminsCreateProject *bool `json:"onlyAdminsCreateProject,omitempty"`
|
|
OnlyAdminsCreateTag *bool `json:"onlyAdminsCreateTag,omitempty"`
|
|
OnlyAdminsCreateTask *bool `json:"onlyAdminsCreateTask,omitempty"`
|
|
OnlyAdminsSeeAllTimeEntries *bool `json:"onlyAdminsSeeAllTimeEntries,omitempty"`
|
|
OnlyAdminsSeeBillableRates *bool `json:"onlyAdminsSeeBillableRates,omitempty"`
|
|
OnlyAdminsSeeDashboard *bool `json:"onlyAdminsSeeDashboard,omitempty"`
|
|
OnlyAdminsSeeProjectStatus *bool `json:"onlyAdminsSeeProjectStatus,omitempty"`
|
|
OnlyAdminsSeePublicProjectsEntries *bool `json:"onlyAdminsSeePublicProjectsEntries,omitempty"`
|
|
ProjectFavorites *bool `json:"projectFavorites,omitempty"`
|
|
ProjectGroupingLabel *string `json:"projectGroupingLabel,omitempty"`
|
|
ProjectLabel *string `json:"projectLabel,omitempty"`
|
|
ProjectPickerSpecialFilter *bool `json:"projectPickerSpecialFilter,omitempty"`
|
|
PumbleIntegrationSettings *PumbleIntegrationSettingsDto `json:"pumbleIntegrationSettings,omitempty"`
|
|
Round *RoundDto `json:"round,omitempty"`
|
|
SchedulingEnabled *bool `json:"schedulingEnabled,omitempty"`
|
|
SchedulingSettings *SchedulingSettingsDto `json:"schedulingSettings,omitempty"`
|
|
ScreenshotsEnabled *bool `json:"screenshotsEnabled,omitempty"`
|
|
TaskBillableEnabled *bool `json:"taskBillableEnabled,omitempty"`
|
|
TaskLabel *string `json:"taskLabel,omitempty"`
|
|
TaskRateEnabled *bool `json:"taskRateEnabled,omitempty"`
|
|
// Deprecated:
|
|
TimeApprovalEnabled *bool `json:"timeApprovalEnabled,omitempty"`
|
|
TimeOff *TimeOffDto `json:"timeOff,omitempty"`
|
|
TimeRoundingInReports *bool `json:"timeRoundingInReports,omitempty"`
|
|
TimeTrackingMode *WorkspaceSettingsDtoTimeTrackingMode `json:"timeTrackingMode,omitempty"`
|
|
// Deprecated:
|
|
TrackTimeDownToSecond *bool `json:"trackTimeDownToSecond,omitempty"`
|
|
WeekStart *WorkspaceSettingsDtoWeekStart `json:"weekStart,omitempty"`
|
|
WorkingDays *[]WorkspaceSettingsDtoWorkingDays `json:"workingDays,omitempty"`
|
|
}
|
|
|
|
// WorkspaceSettingsDtoAdminOnlyPages defines model for WorkspaceSettingsDto.AdminOnlyPages.
|
|
type WorkspaceSettingsDtoAdminOnlyPages string
|
|
|
|
// WorkspaceSettingsDtoCurrencyFormat defines model for WorkspaceSettingsDto.CurrencyFormat.
|
|
type WorkspaceSettingsDtoCurrencyFormat string
|
|
|
|
// WorkspaceSettingsDtoDurationFormat defines model for WorkspaceSettingsDto.DurationFormat.
|
|
type WorkspaceSettingsDtoDurationFormat string
|
|
|
|
// WorkspaceSettingsDtoNumberFormat defines model for WorkspaceSettingsDto.NumberFormat.
|
|
type WorkspaceSettingsDtoNumberFormat string
|
|
|
|
// WorkspaceSettingsDtoTimeTrackingMode defines model for WorkspaceSettingsDto.TimeTrackingMode.
|
|
type WorkspaceSettingsDtoTimeTrackingMode string
|
|
|
|
// WorkspaceSettingsDtoWeekStart defines model for WorkspaceSettingsDto.WeekStart.
|
|
type WorkspaceSettingsDtoWeekStart string
|
|
|
|
// WorkspaceSettingsDtoWorkingDays defines model for WorkspaceSettingsDto.WorkingDays.
|
|
type WorkspaceSettingsDtoWorkingDays string
|
|
|
|
// WorkspaceSubdomainDto defines model for WorkspaceSubdomainDto.
|
|
type WorkspaceSubdomainDto struct {
|
|
Enabled *bool `json:"enabled,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
}
|
|
|
|
// WorkspaceSubscriptionInfoDto defines model for WorkspaceSubscriptionInfoDto.
|
|
type WorkspaceSubscriptionInfoDto struct {
|
|
AccessDisabled *bool `json:"accessDisabled,omitempty"`
|
|
CurrentSubscriptionPlan *string `json:"currentSubscriptionPlan,omitempty"`
|
|
CustomerIds *map[string]string `json:"customerIds,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
NumberOfActiveLimitedUsers *int32 `json:"numberOfActiveLimitedUsers,omitempty"`
|
|
NumberOfActiveUsers *int32 `json:"numberOfActiveUsers,omitempty"`
|
|
NumberOfInactiveUsers *int32 `json:"numberOfInactiveUsers,omitempty"`
|
|
NumberOfPendingUsers *int32 `json:"numberOfPendingUsers,omitempty"`
|
|
OwnerEmail *string `json:"ownerEmail,omitempty"`
|
|
StripeCustomerId *string `json:"stripeCustomerId,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// WorkspaceTransferAccessDisabledDto defines model for WorkspaceTransferAccessDisabledDto.
|
|
type WorkspaceTransferAccessDisabledDto struct {
|
|
DomainUrl *string `json:"domainUrl,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// WorkspaceTransferDeprecatedRequest defines model for WorkspaceTransferDeprecatedRequest.
|
|
type WorkspaceTransferDeprecatedRequest struct {
|
|
Code *string `json:"code,omitempty"`
|
|
PasswordConfirm *string `json:"passwordConfirm,omitempty"`
|
|
TargetRegion string `json:"targetRegion"`
|
|
}
|
|
|
|
// WorkspaceTransferDto defines model for WorkspaceTransferDto.
|
|
type WorkspaceTransferDto struct {
|
|
Id *string `json:"id,omitempty"`
|
|
SourceRegion *string `json:"sourceRegion,omitempty"`
|
|
StartTime *string `json:"startTime,omitempty"`
|
|
Status *string `json:"status,omitempty"`
|
|
TargetRegion *string `json:"targetRegion,omitempty"`
|
|
TargetRegionDomainUrl *string `json:"targetRegionDomainUrl,omitempty"`
|
|
TargetRegionUrl *string `json:"targetRegionUrl,omitempty"`
|
|
TransferMessage *string `json:"transferMessage,omitempty"`
|
|
WorkspaceId *string `json:"workspaceId,omitempty"`
|
|
}
|
|
|
|
// WorkspaceTransferFailedRequest defines model for WorkspaceTransferFailedRequest.
|
|
type WorkspaceTransferFailedRequest struct {
|
|
Error *string `json:"error,omitempty"`
|
|
ProcessingError *string `json:"processingError,omitempty"`
|
|
SourceRegion *string `json:"sourceRegion,omitempty"`
|
|
SourceRegionUrl *string `json:"sourceRegionUrl,omitempty"`
|
|
TargetRegion *string `json:"targetRegion,omitempty"`
|
|
TargetRegionUrl *string `json:"targetRegionUrl,omitempty"`
|
|
TransferAppId *string `json:"transferAppId,omitempty"`
|
|
}
|
|
|
|
// WorkspaceTransferFinishedRequest defines model for WorkspaceTransferFinishedRequest.
|
|
type WorkspaceTransferFinishedRequest struct {
|
|
SendErrorEmail *bool `json:"sendErrorEmail,omitempty"`
|
|
SourceRegion *string `json:"sourceRegion,omitempty"`
|
|
SourceRegionUrl *string `json:"sourceRegionUrl,omitempty"`
|
|
TargetRegion *string `json:"targetRegion,omitempty"`
|
|
TargetRegionApiUrl *string `json:"targetRegionApiUrl,omitempty"`
|
|
TargetRegionDomainUrl *string `json:"targetRegionDomainUrl,omitempty"`
|
|
TargetRegionUrl *string `json:"targetRegionUrl,omitempty"`
|
|
TransferAppId *string `json:"transferAppId,omitempty"`
|
|
TransferSeatDetailsDto *TransferSeatDetailsDto `json:"transferSeatDetailsDto,omitempty"`
|
|
}
|
|
|
|
// WorkspaceTransferPossibleDto defines model for WorkspaceTransferPossibleDto.
|
|
type WorkspaceTransferPossibleDto struct {
|
|
Reason *WorkspaceTransferPossibleDtoReason `json:"reason,omitempty"`
|
|
TransferPossible *bool `json:"transferPossible,omitempty"`
|
|
}
|
|
|
|
// WorkspaceTransferPossibleDtoReason defines model for WorkspaceTransferPossibleDto.Reason.
|
|
type WorkspaceTransferPossibleDtoReason string
|
|
|
|
// WorkspaceTransferRequest defines model for WorkspaceTransferRequest.
|
|
type WorkspaceTransferRequest struct {
|
|
Code *string `json:"code,omitempty"`
|
|
TargetRegion string `json:"targetRegion"`
|
|
}
|
|
|
|
// WorkspaceUserMembershipDto defines model for WorkspaceUserMembershipDto.
|
|
type WorkspaceUserMembershipDto struct {
|
|
CakeOrganizationId *string `json:"cakeOrganizationId,omitempty"`
|
|
CakeOrganizationName *string `json:"cakeOrganizationName,omitempty"`
|
|
UserStatus *string `json:"userStatus,omitempty"`
|
|
WorkspaceDetail *WorkspaceDetailDto `json:"workspaceDetail,omitempty"`
|
|
}
|
|
|
|
// GetAllUsersParams defines parameters for GetAllUsers.
|
|
type GetAllUsersParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
|
|
SortColumn *string `form:"sortColumn,omitempty" json:"sortColumn,omitempty"`
|
|
SortOrder *string `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`
|
|
SearchEmail *string `form:"searchEmail,omitempty" json:"searchEmail,omitempty"`
|
|
StrictEmailSearch *bool `form:"strictEmailSearch,omitempty" json:"strictEmailSearch,omitempty"`
|
|
SearchName *string `form:"searchName,omitempty" json:"searchName,omitempty"`
|
|
StrictNameSearch *bool `form:"strictNameSearch,omitempty" json:"strictNameSearch,omitempty"`
|
|
}
|
|
|
|
// GetUserMembershipsAndInvitesParams defines parameters for GetUserMembershipsAndInvites.
|
|
type GetUserMembershipsAndInvitesParams struct {
|
|
SubDomainName *string `json:"Sub-Domain-Name,omitempty"`
|
|
}
|
|
|
|
// AddNotificationsMultipartBody defines parameters for AddNotifications.
|
|
type AddNotificationsMultipartBody struct {
|
|
Image *openapi_types.File `json:"image,omitempty"`
|
|
Request NewsRequest `json:"request"`
|
|
}
|
|
|
|
// UpdateNewsMultipartBody defines parameters for UpdateNews.
|
|
type UpdateNewsMultipartBody struct {
|
|
Image *openapi_types.File `json:"image,omitempty"`
|
|
Request NewsRequest `json:"request"`
|
|
}
|
|
|
|
// SearchAllUsersParams defines parameters for SearchAllUsers.
|
|
type SearchAllUsersParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
|
|
SortColumn *string `form:"sortColumn,omitempty" json:"sortColumn,omitempty"`
|
|
SortOrder *string `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`
|
|
Email *string `form:"email,omitempty" json:"email,omitempty"`
|
|
StrictEmailSearch *bool `form:"strictEmailSearch,omitempty" json:"strictEmailSearch,omitempty"`
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
StrictNameSearch *bool `form:"strictNameSearch,omitempty" json:"strictNameSearch,omitempty"`
|
|
WorkspaceId *string `form:"workspaceId,omitempty" json:"workspaceId,omitempty"`
|
|
AgentTicketLink *string `json:"Agent-Ticket-Link,omitempty"`
|
|
}
|
|
|
|
// NumberOfUsersRegisteredParams defines parameters for NumberOfUsersRegistered.
|
|
type NumberOfUsersRegisteredParams struct {
|
|
Days *string `form:"days,omitempty" json:"days,omitempty"`
|
|
}
|
|
|
|
// GetUsersOnWorkspaceParams defines parameters for GetUsersOnWorkspace.
|
|
type GetUsersOnWorkspaceParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"`
|
|
SortOrder *string `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`
|
|
SortColumn *string `form:"sortColumn,omitempty" json:"sortColumn,omitempty"`
|
|
SearchEmail *string `form:"searchEmail,omitempty" json:"searchEmail,omitempty"`
|
|
}
|
|
|
|
// GetUsersOfWorkspace5Params defines parameters for GetUsersOfWorkspace5.
|
|
type GetUsersOfWorkspace5Params struct {
|
|
Email *string `form:"email,omitempty" json:"email,omitempty"`
|
|
ProjectId *string `form:"projectId,omitempty" json:"projectId,omitempty"`
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
Status *string `form:"status,omitempty" json:"status,omitempty"`
|
|
SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Memberships *string `form:"memberships,omitempty" json:"memberships,omitempty"`
|
|
}
|
|
|
|
// GetMembersInfoParams defines parameters for GetMembersInfo.
|
|
type GetMembersInfoParams struct {
|
|
SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
}
|
|
|
|
// GetUserNamesParams defines parameters for GetUserNames.
|
|
type GetUserNamesParams struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Status string `form:"status" json:"status"`
|
|
Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"`
|
|
}
|
|
|
|
// GetUsersAndUsersFromUserGroupsAssignedToProjectParams defines parameters for GetUsersAndUsersFromUserGroupsAssignedToProject.
|
|
type GetUsersAndUsersFromUserGroupsAssignedToProjectParams struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"`
|
|
SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
Memberships *string `form:"memberships,omitempty" json:"memberships,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
}
|
|
|
|
// GetUsersOfWorkspace4Params defines parameters for GetUsersOfWorkspace4.
|
|
type GetUsersOfWorkspace4Params struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
Status *string `form:"status,omitempty" json:"status,omitempty"`
|
|
}
|
|
|
|
// GetUsersForReportFilterOldParams defines parameters for GetUsersForReportFilterOld.
|
|
type GetUsersForReportFilterOldParams struct {
|
|
SearchValue *string `form:"searchValue,omitempty" json:"searchValue,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
ForceFilter *bool `form:"force-filter,omitempty" json:"force-filter,omitempty"`
|
|
IgnoreFilter *bool `form:"ignore-filter,omitempty" json:"ignore-filter,omitempty"`
|
|
ExcludeIds *[]string `form:"excludeIds,omitempty" json:"excludeIds,omitempty"`
|
|
Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"`
|
|
UserStatuses *[]string `form:"userStatuses,omitempty" json:"userStatuses,omitempty"`
|
|
ReportType *string `form:"reportType,omitempty" json:"reportType,omitempty"`
|
|
}
|
|
|
|
// GetUsersOfUserGroupParams defines parameters for GetUsersOfUserGroup.
|
|
type GetUsersOfUserGroupParams struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Memberships *string `form:"memberships,omitempty" json:"memberships,omitempty"`
|
|
}
|
|
|
|
// GetUsersOfWorkspace3Params defines parameters for GetUsersOfWorkspace3.
|
|
type GetUsersOfWorkspace3Params struct {
|
|
Status *string `form:"status,omitempty" json:"status,omitempty"`
|
|
}
|
|
|
|
// GetUsersOfWorkspace2Params defines parameters for GetUsersOfWorkspace2.
|
|
type GetUsersOfWorkspace2Params struct {
|
|
Email *string `form:"email,omitempty" json:"email,omitempty"`
|
|
SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
SearchByNameOnly *bool `form:"searchByNameOnly,omitempty" json:"searchByNameOnly,omitempty"`
|
|
EmailAsName *bool `form:"email-as-name,omitempty" json:"email-as-name,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"`
|
|
Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"`
|
|
UserStatuses *[]string `form:"userStatuses,omitempty" json:"userStatuses,omitempty"`
|
|
}
|
|
|
|
// ChangeEmailParams defines parameters for ChangeEmail.
|
|
type ChangeEmailParams struct {
|
|
SubDomainName *string `json:"Sub-Domain-Name,omitempty"`
|
|
}
|
|
|
|
// GetNotificationsParams defines parameters for GetNotifications.
|
|
type GetNotificationsParams struct {
|
|
Type *string `form:"type,omitempty" json:"type,omitempty"`
|
|
ExcludeInvitations *bool `form:"excludeInvitations,omitempty" json:"excludeInvitations,omitempty"`
|
|
}
|
|
|
|
// UpdateSettingsParams defines parameters for UpdateSettings.
|
|
type UpdateSettingsParams struct {
|
|
SubDomainName *string `json:"Sub-Domain-Name,omitempty"`
|
|
}
|
|
|
|
// UploadImageMultipartBody defines parameters for UploadImage.
|
|
type UploadImageMultipartBody struct {
|
|
// File Image to be uploaded
|
|
File openapi_types.File `json:"file"`
|
|
}
|
|
|
|
// GetWorkspaceInfoParams defines parameters for GetWorkspaceInfo.
|
|
type GetWorkspaceInfoParams struct {
|
|
WorkspaceId *string `form:"workspaceId,omitempty" json:"workspaceId,omitempty"`
|
|
Email *string `form:"email,omitempty" json:"email,omitempty"`
|
|
}
|
|
|
|
// UpdateWorkspaceParams defines parameters for UpdateWorkspace.
|
|
type UpdateWorkspaceParams struct {
|
|
SubDomainName *string `json:"Sub-Domain-Name,omitempty"`
|
|
}
|
|
|
|
// GetABTestingParams defines parameters for GetABTesting.
|
|
type GetABTestingParams struct {
|
|
Type string `form:"type" json:"type"`
|
|
}
|
|
|
|
// GetInstalledAddonsParams defines parameters for GetInstalledAddons.
|
|
type GetInstalledAddonsParams struct {
|
|
Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"`
|
|
SearchTerm *string `form:"search-term,omitempty" json:"search-term,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
}
|
|
|
|
// GetInstalledAddonsIdNamePairParams defines parameters for GetInstalledAddonsIdNamePair.
|
|
type GetInstalledAddonsIdNamePairParams struct {
|
|
Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"`
|
|
SearchTerm *string `form:"search-term,omitempty" json:"search-term,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
}
|
|
|
|
// GetAddonUserJWTParams defines parameters for GetAddonUserJWT.
|
|
type GetAddonUserJWTParams struct {
|
|
Type string `form:"type" json:"type"`
|
|
}
|
|
|
|
// CheckWorkspaceTransferPossibilityParams defines parameters for CheckWorkspaceTransferPossibility.
|
|
type CheckWorkspaceTransferPossibilityParams struct {
|
|
Region string `form:"region" json:"region"`
|
|
}
|
|
|
|
// GetClients1Params defines parameters for GetClients1.
|
|
type GetClients1Params struct {
|
|
Archived *bool `form:"archived,omitempty" json:"archived,omitempty"`
|
|
}
|
|
|
|
// GetClientsOfIdsParams defines parameters for GetClientsOfIds.
|
|
type GetClientsOfIdsParams struct {
|
|
SearchValue *string `form:"searchValue,omitempty" json:"searchValue,omitempty"`
|
|
Archived *bool `form:"archived,omitempty" json:"archived,omitempty"`
|
|
}
|
|
|
|
// GetClientsForInvoiceFilter1Params defines parameters for GetClientsForInvoiceFilter1.
|
|
type GetClientsForInvoiceFilter1Params struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"`
|
|
SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Archived *bool `form:"archived,omitempty" json:"archived,omitempty"`
|
|
}
|
|
|
|
// GetClients2Params defines parameters for GetClients2.
|
|
type GetClients2Params struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"`
|
|
SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Archived *bool `form:"archived,omitempty" json:"archived,omitempty"`
|
|
}
|
|
|
|
// GetClientsForReportFilterParams defines parameters for GetClientsForReportFilter.
|
|
type GetClientsForReportFilterParams struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
Status *string `form:"status,omitempty" json:"status,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"`
|
|
}
|
|
|
|
// GetClientIdsForReportFilterParams defines parameters for GetClientIdsForReportFilter.
|
|
type GetClientIdsForReportFilterParams struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
Status *string `form:"status,omitempty" json:"status,omitempty"`
|
|
}
|
|
|
|
// Update10Params defines parameters for Update10.
|
|
type Update10Params struct {
|
|
ArchiveProjects *bool `form:"archive-projects,omitempty" json:"archive-projects,omitempty"`
|
|
MarkTasksAsDone *bool `form:"mark-tasks-as-done,omitempty" json:"mark-tasks-as-done,omitempty"`
|
|
}
|
|
|
|
// GetCouponParams defines parameters for GetCoupon.
|
|
type GetCouponParams struct {
|
|
Type string `form:"type" json:"type"`
|
|
}
|
|
|
|
// OfWorkspaceParams defines parameters for OfWorkspace.
|
|
type OfWorkspaceParams struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
Status *string `form:"status,omitempty" json:"status,omitempty"`
|
|
EntityType *[]string `form:"entityType,omitempty" json:"entityType,omitempty"`
|
|
}
|
|
|
|
// OfWorkspaceWithRequiredAvailabilityParams defines parameters for OfWorkspaceWithRequiredAvailability.
|
|
type OfWorkspaceWithRequiredAvailabilityParams struct {
|
|
EntityType *[]string `form:"entityType,omitempty" json:"entityType,omitempty"`
|
|
}
|
|
|
|
// GetOfProjectParams defines parameters for GetOfProject.
|
|
type GetOfProjectParams struct {
|
|
Status string `form:"status" json:"status"`
|
|
EntityType *[]string `form:"entityType,omitempty" json:"entityType,omitempty"`
|
|
}
|
|
|
|
// AddEmailParams defines parameters for AddEmail.
|
|
type AddEmailParams struct {
|
|
SendEmail *bool `form:"sendEmail,omitempty" json:"sendEmail,omitempty"`
|
|
}
|
|
|
|
// GetExpensesParams defines parameters for GetExpenses.
|
|
type GetExpensesParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
UserId *string `form:"userId,omitempty" json:"userId,omitempty"`
|
|
}
|
|
|
|
// GetCategoriesParams defines parameters for GetCategories.
|
|
type GetCategoriesParams struct {
|
|
ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"`
|
|
SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Archived *bool `form:"archived,omitempty" json:"archived,omitempty"`
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
}
|
|
|
|
// GetCategoriesByIdsParams defines parameters for GetCategoriesByIds.
|
|
type GetCategoriesByIdsParams struct {
|
|
Ids *[]string `form:"ids,omitempty" json:"ids,omitempty"`
|
|
Archived *bool `form:"archived,omitempty" json:"archived,omitempty"`
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
}
|
|
|
|
// GetExpensesInDateRangeParams defines parameters for GetExpensesInDateRange.
|
|
type GetExpensesInDateRangeParams struct {
|
|
UserId string `form:"userId" json:"userId"`
|
|
Start string `form:"start" json:"start"`
|
|
End string `form:"end" json:"end"`
|
|
}
|
|
|
|
// GetInvoiceEmailTemplatesParams defines parameters for GetInvoiceEmailTemplates.
|
|
type GetInvoiceEmailTemplatesParams struct {
|
|
InvoiceEmailTemplateType *string `form:"invoiceEmailTemplateType,omitempty" json:"invoiceEmailTemplateType,omitempty"`
|
|
}
|
|
|
|
// GetClientsForInvoiceFilterParams defines parameters for GetClientsForInvoiceFilter.
|
|
type GetClientsForInvoiceFilterParams struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
}
|
|
|
|
// ExportInvoiceParams defines parameters for ExportInvoice.
|
|
type ExportInvoiceParams struct {
|
|
UserLocale string `form:"userLocale" json:"userLocale"`
|
|
}
|
|
|
|
// DeleteInvoiceItemsParams defines parameters for DeleteInvoiceItems.
|
|
type DeleteInvoiceItemsParams struct {
|
|
InvoiceItemsOrder []int32 `form:"invoiceItemsOrder" json:"invoiceItemsOrder"`
|
|
}
|
|
|
|
// GetPaymentsForInvoiceParams defines parameters for GetPaymentsForInvoice.
|
|
type GetPaymentsForInvoiceParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
}
|
|
|
|
// IsAvailableParams defines parameters for IsAvailable.
|
|
type IsAvailableParams struct {
|
|
PinContext IsAvailableParamsPinContext `form:"pinContext" json:"pinContext"`
|
|
PinCode string `form:"pinCode" json:"pinCode"`
|
|
}
|
|
|
|
// IsAvailableParamsPinContext defines parameters for IsAvailable.
|
|
type IsAvailableParamsPinContext string
|
|
|
|
// IsAvailable1Params defines parameters for IsAvailable1.
|
|
type IsAvailable1Params struct {
|
|
PinCode string `form:"pinCode" json:"pinCode"`
|
|
}
|
|
|
|
// GeneratePinCodeParams defines parameters for GeneratePinCode.
|
|
type GeneratePinCodeParams struct {
|
|
Context GeneratePinCodeParamsContext `form:"context" json:"context"`
|
|
}
|
|
|
|
// GeneratePinCodeParamsContext defines parameters for GeneratePinCode.
|
|
type GeneratePinCodeParamsContext string
|
|
|
|
// GetKiosksOfWorkspaceParams defines parameters for GetKiosksOfWorkspace.
|
|
type GetKiosksOfWorkspaceParams struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
}
|
|
|
|
// GetWithoutDefaultsParams defines parameters for GetWithoutDefaults.
|
|
type GetWithoutDefaultsParams struct {
|
|
Type *string `form:"type,omitempty" json:"type,omitempty"`
|
|
IsBreak *bool `form:"isBreak,omitempty" json:"isBreak,omitempty"`
|
|
}
|
|
|
|
// CheckAvailabilityOfDomainNameParams defines parameters for CheckAvailabilityOfDomainName.
|
|
type CheckAvailabilityOfDomainNameParams struct {
|
|
DomainName string `form:"domain-name" json:"domain-name"`
|
|
}
|
|
|
|
// GetAllOrganizationsOfUserParams defines parameters for GetAllOrganizationsOfUser.
|
|
type GetAllOrganizationsOfUserParams struct {
|
|
MembershipStatus *string `form:"membership-status,omitempty" json:"membership-status,omitempty"`
|
|
}
|
|
|
|
// GetCustomerInfoParams defines parameters for GetCustomerInfo.
|
|
type GetCustomerInfoParams struct {
|
|
CountryCode *string `form:"countryCode,omitempty" json:"countryCode,omitempty"`
|
|
}
|
|
|
|
// UpdateCustomerJSONBody defines parameters for UpdateCustomer.
|
|
type UpdateCustomerJSONBody struct {
|
|
CustomerBillingRequest *CustomerBillingRequest `json:"customerBillingRequest,omitempty"`
|
|
CustomerRequest *CustomerRequest `json:"customerRequest,omitempty"`
|
|
}
|
|
|
|
// ExtendTrialParams defines parameters for ExtendTrial.
|
|
type ExtendTrialParams struct {
|
|
Days *int32 `form:"days,omitempty" json:"days,omitempty"`
|
|
}
|
|
|
|
// GetFeatureSubscriptionsParams defines parameters for GetFeatureSubscriptions.
|
|
type GetFeatureSubscriptionsParams struct {
|
|
Type *string `form:"type,omitempty" json:"type,omitempty"`
|
|
}
|
|
|
|
// GetInvoicesParams defines parameters for GetInvoices.
|
|
type GetInvoicesParams struct {
|
|
Status *[]string `form:"status,omitempty" json:"status,omitempty"`
|
|
StartingAfter *string `form:"startingAfter,omitempty" json:"startingAfter,omitempty"`
|
|
Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
|
|
}
|
|
|
|
// GetInvoicesCountParams defines parameters for GetInvoicesCount.
|
|
type GetInvoicesCountParams struct {
|
|
Status *[]string `form:"status,omitempty" json:"status,omitempty"`
|
|
}
|
|
|
|
// GetInvoicesListParams defines parameters for GetInvoicesList.
|
|
type GetInvoicesListParams struct {
|
|
Status *[]string `form:"status,omitempty" json:"status,omitempty"`
|
|
NextPage *string `form:"nextPage,omitempty" json:"nextPage,omitempty"`
|
|
Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
|
|
}
|
|
|
|
// CreateSetupIntentForPaymentMethodJSONBody defines parameters for CreateSetupIntentForPaymentMethod.
|
|
type CreateSetupIntentForPaymentMethodJSONBody struct {
|
|
CustomerBillingRequest *CustomerBillingRequest `json:"customerBillingRequest,omitempty"`
|
|
InvisibleReCaptchaRequest *InvisibleReCaptchaRequest `json:"invisibleReCaptchaRequest,omitempty"`
|
|
PaymentMethodAddressRequest *PaymentMethodAddressRequest `json:"paymentMethodAddressRequest,omitempty"`
|
|
}
|
|
|
|
// PreviewUpgradeParams defines parameters for PreviewUpgrade.
|
|
type PreviewUpgradeParams struct {
|
|
Type *string `form:"type,omitempty" json:"type,omitempty"`
|
|
Quantity *int32 `form:"quantity,omitempty" json:"quantity,omitempty"`
|
|
LimitedQuantity *int32 `form:"limitedQuantity,omitempty" json:"limitedQuantity,omitempty"`
|
|
}
|
|
|
|
// CreateSetupIntentForInitialSubscriptionJSONBody defines parameters for CreateSetupIntentForInitialSubscription.
|
|
type CreateSetupIntentForInitialSubscriptionJSONBody struct {
|
|
CustomerBillingRequest *CustomerBillingRequest `json:"customerBillingRequest,omitempty"`
|
|
CustomerRequest *CustomerRequest `json:"customerRequest,omitempty"`
|
|
InvisibleReCaptchaRequest *InvisibleReCaptchaRequest `json:"invisibleReCaptchaRequest,omitempty"`
|
|
PaymentMethodAddressRequest *PaymentMethodAddressRequest `json:"paymentMethodAddressRequest,omitempty"`
|
|
}
|
|
|
|
// CreateSubscriptionJSONBody defines parameters for CreateSubscription.
|
|
type CreateSubscriptionJSONBody struct {
|
|
CustomerRequest *CustomerRequest `json:"customerRequest,omitempty"`
|
|
PaymentRequest *PaymentRequest `json:"paymentRequest,omitempty"`
|
|
QuantityRequest *CreateSubscriptionQuantityRequest `json:"quantityRequest,omitempty"`
|
|
}
|
|
|
|
// UpgradePreCheckParams defines parameters for UpgradePreCheck.
|
|
type UpgradePreCheckParams struct {
|
|
Type string `form:"type" json:"type"`
|
|
}
|
|
|
|
// FindForUserAndPolicyParams defines parameters for FindForUserAndPolicy.
|
|
type FindForUserAndPolicyParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
}
|
|
|
|
// GetClientsParams defines parameters for GetClients.
|
|
type GetClientsParams struct {
|
|
Search *string `form:"search,omitempty" json:"search,omitempty"`
|
|
Page *string `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *string `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
ExcludedProjects *[]string `form:"excludedProjects,omitempty" json:"excludedProjects,omitempty"`
|
|
ExcludedTasks *[]string `form:"excludedTasks,omitempty" json:"excludedTasks,omitempty"`
|
|
UserId *string `form:"userId,omitempty" json:"userId,omitempty"`
|
|
PickerOptions PickerOptions `form:"pickerOptions" json:"pickerOptions"`
|
|
Archived *bool `form:"archived,omitempty" json:"archived,omitempty"`
|
|
}
|
|
|
|
// GetProjects3Params defines parameters for GetProjects3.
|
|
type GetProjects3Params struct {
|
|
ClientId *string `form:"clientId,omitempty" json:"clientId,omitempty"`
|
|
Search *string `form:"search,omitempty" json:"search,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
ExcludedTasks *[]string `form:"excludedTasks,omitempty" json:"excludedTasks,omitempty"`
|
|
ExcludedProjects *[]string `form:"excludedProjects,omitempty" json:"excludedProjects,omitempty"`
|
|
UserId *string `form:"userId,omitempty" json:"userId,omitempty"`
|
|
Favorites *bool `form:"favorites,omitempty" json:"favorites,omitempty"`
|
|
Archived *bool `form:"archived,omitempty" json:"archived,omitempty"`
|
|
}
|
|
|
|
// GetProjectFavoritesParams defines parameters for GetProjectFavorites.
|
|
type GetProjectFavoritesParams struct {
|
|
Search *string `form:"search,omitempty" json:"search,omitempty"`
|
|
ExcludedTasks *[]string `form:"excludedTasks,omitempty" json:"excludedTasks,omitempty"`
|
|
UserId *string `form:"userId,omitempty" json:"userId,omitempty"`
|
|
}
|
|
|
|
// GetTasks21Params defines parameters for GetTasks21.
|
|
type GetTasks21Params struct {
|
|
Search *string `form:"search,omitempty" json:"search,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
ExcludedTasks *[]string `form:"excludedTasks,omitempty" json:"excludedTasks,omitempty"`
|
|
UserId *string `form:"userId,omitempty" json:"userId,omitempty"`
|
|
TaskFilterEnabled *bool `form:"taskFilterEnabled,omitempty" json:"taskFilterEnabled,omitempty"`
|
|
}
|
|
|
|
// GetProjects2Params defines parameters for GetProjects2.
|
|
type GetProjects2Params struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
StrictNameSearch *bool `form:"strict-name-search,omitempty" json:"strict-name-search,omitempty"`
|
|
Archived *bool `form:"archived,omitempty" json:"archived,omitempty"`
|
|
Billable *bool `form:"billable,omitempty" json:"billable,omitempty"`
|
|
Clients *[]string `form:"clients,omitempty" json:"clients,omitempty"`
|
|
ContainsClient *bool `form:"contains-client,omitempty" json:"contains-client,omitempty"`
|
|
ClientStatus *string `form:"client-status,omitempty" json:"client-status,omitempty"`
|
|
Users *[]string `form:"users,omitempty" json:"users,omitempty"`
|
|
ContainsUser *bool `form:"contains-user,omitempty" json:"contains-user,omitempty"`
|
|
UserStatus *string `form:"user-status,omitempty" json:"user-status,omitempty"`
|
|
IsTemplate *bool `form:"is-template,omitempty" json:"is-template,omitempty"`
|
|
SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
Hydrated *bool `form:"hydrated,omitempty" json:"hydrated,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
}
|
|
|
|
// UpdateMany1Params defines parameters for UpdateMany1.
|
|
type UpdateMany1Params struct {
|
|
TasksStatus *string `form:"tasks-status,omitempty" json:"tasks-status,omitempty"`
|
|
}
|
|
|
|
// GetFilteredProjectsCountParams defines parameters for GetFilteredProjectsCount.
|
|
type GetFilteredProjectsCountParams struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
Archived *bool `form:"archived,omitempty" json:"archived,omitempty"`
|
|
Billable *bool `form:"billable,omitempty" json:"billable,omitempty"`
|
|
Clients *[]string `form:"clients,omitempty" json:"clients,omitempty"`
|
|
ContainsClient *bool `form:"contains-client,omitempty" json:"contains-client,omitempty"`
|
|
ClientStatus *string `form:"client-status,omitempty" json:"client-status,omitempty"`
|
|
Users *[]string `form:"users,omitempty" json:"users,omitempty"`
|
|
ContainsUser *bool `form:"contains-user,omitempty" json:"contains-user,omitempty"`
|
|
UserStatus *string `form:"user-status,omitempty" json:"user-status,omitempty"`
|
|
}
|
|
|
|
// LastUsedProject1Params defines parameters for LastUsedProject1.
|
|
type LastUsedProject1Params struct {
|
|
Type *string `form:"type,omitempty" json:"type,omitempty"`
|
|
}
|
|
|
|
// GetProjectsListParams defines parameters for GetProjectsList.
|
|
type GetProjectsListParams struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
StrictNameSearch *bool `form:"strict-name-search,omitempty" json:"strict-name-search,omitempty"`
|
|
Archived *bool `form:"archived,omitempty" json:"archived,omitempty"`
|
|
Billable *bool `form:"billable,omitempty" json:"billable,omitempty"`
|
|
Clients *[]string `form:"clients,omitempty" json:"clients,omitempty"`
|
|
ContainsClient *bool `form:"contains-client,omitempty" json:"contains-client,omitempty"`
|
|
ClientStatus *string `form:"client-status,omitempty" json:"client-status,omitempty"`
|
|
Users *[]string `form:"users,omitempty" json:"users,omitempty"`
|
|
ContainsUser *bool `form:"contains-user,omitempty" json:"contains-user,omitempty"`
|
|
UserStatus *string `form:"user-status,omitempty" json:"user-status,omitempty"`
|
|
IsTemplate *bool `form:"is-template,omitempty" json:"is-template,omitempty"`
|
|
SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
Hydrated *bool `form:"hydrated,omitempty" json:"hydrated,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
}
|
|
|
|
// GetAllTasksJSONBody defines parameters for GetAllTasks.
|
|
type GetAllTasksJSONBody = []string
|
|
|
|
// GetTasksJSONBody defines parameters for GetTasks.
|
|
type GetTasksJSONBody = []string
|
|
|
|
// GetTasksParams defines parameters for GetTasks.
|
|
type GetTasksParams struct {
|
|
Page *string `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *string `form:"pageSize,omitempty" json:"pageSize,omitempty"`
|
|
SortOrder *string `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`
|
|
SortColumn *string `form:"sortColumn,omitempty" json:"sortColumn,omitempty"`
|
|
Search *string `form:"search,omitempty" json:"search,omitempty"`
|
|
}
|
|
|
|
// GetProject1Params defines parameters for GetProject1.
|
|
type GetProject1Params struct {
|
|
Hydrated *bool `form:"hydrated,omitempty" json:"hydrated,omitempty"`
|
|
}
|
|
|
|
// Update14Params defines parameters for Update14.
|
|
type Update14Params struct {
|
|
TasksStatus *string `form:"tasks-status,omitempty" json:"tasks-status,omitempty"`
|
|
}
|
|
|
|
// Update6Params defines parameters for Update6.
|
|
type Update6Params struct {
|
|
TasksStatus *string `form:"tasks-status,omitempty" json:"tasks-status,omitempty"`
|
|
}
|
|
|
|
// Create13Params defines parameters for Create13.
|
|
type Create13Params struct {
|
|
ContainsAssignee *bool `form:"contains-assignee,omitempty" json:"contains-assignee,omitempty"`
|
|
}
|
|
|
|
// Update7Params defines parameters for Update7.
|
|
type Update7Params struct {
|
|
ContainsAssignee *bool `form:"contains-assignee,omitempty" json:"contains-assignee,omitempty"`
|
|
MembershipStatus *string `form:"membership-status,omitempty" json:"membership-status,omitempty"`
|
|
}
|
|
|
|
// GetUsers4Params defines parameters for GetUsers4.
|
|
type GetUsers4Params struct {
|
|
Memberships *string `form:"memberships,omitempty" json:"memberships,omitempty"`
|
|
}
|
|
|
|
// OfWorkspaceIdAndUserIdParams defines parameters for OfWorkspaceIdAndUserId.
|
|
type OfWorkspaceIdAndUserIdParams struct {
|
|
Hydrated *bool `form:"hydrated,omitempty" json:"hydrated,omitempty"`
|
|
}
|
|
|
|
// GetMyMostTrackedParams defines parameters for GetMyMostTracked.
|
|
type GetMyMostTrackedParams struct {
|
|
Count *string `form:"count,omitempty" json:"count,omitempty"`
|
|
Start *string `form:"start,omitempty" json:"start,omitempty"`
|
|
End *string `form:"end,omitempty" json:"end,omitempty"`
|
|
}
|
|
|
|
// GetTeamActivitiesParams defines parameters for GetTeamActivities.
|
|
type GetTeamActivitiesParams struct {
|
|
Start *string `form:"start,omitempty" json:"start,omitempty"`
|
|
End *string `form:"end,omitempty" json:"end,omitempty"`
|
|
Type *string `form:"type,omitempty" json:"type,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
}
|
|
|
|
// GetAmountPreviewParams defines parameters for GetAmountPreview.
|
|
type GetAmountPreviewParams struct {
|
|
UserId string `form:"userId" json:"userId"`
|
|
ProjectId string `form:"projectId" json:"projectId"`
|
|
TaskId string `form:"taskId" json:"taskId"`
|
|
TotalHours float64 `form:"totalHours" json:"totalHours"`
|
|
Billable bool `form:"billable" json:"billable"`
|
|
}
|
|
|
|
// GetProjectTotalsParams defines parameters for GetProjectTotals.
|
|
type GetProjectTotalsParams struct {
|
|
Search *string `form:"search,omitempty" json:"search,omitempty"`
|
|
Start string `form:"start" json:"start"`
|
|
End string `form:"end" json:"end"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
}
|
|
|
|
// GetProjectTotalsForSingleProjectParams defines parameters for GetProjectTotalsForSingleProject.
|
|
type GetProjectTotalsForSingleProjectParams struct {
|
|
Start string `form:"start" json:"start"`
|
|
End string `form:"end" json:"end"`
|
|
}
|
|
|
|
// GetProjectsForUserParams defines parameters for GetProjectsForUser.
|
|
type GetProjectsForUserParams struct {
|
|
Start string `form:"start" json:"start"`
|
|
End string `form:"end" json:"end"`
|
|
}
|
|
|
|
// Delete11Params defines parameters for Delete11.
|
|
type Delete11Params struct {
|
|
SeriesUpdateOption *string `form:"seriesUpdateOption,omitempty" json:"seriesUpdateOption,omitempty"`
|
|
}
|
|
|
|
// GetAssignmentsForUserParams defines parameters for GetAssignmentsForUser.
|
|
type GetAssignmentsForUserParams struct {
|
|
Start string `form:"start" json:"start"`
|
|
End string `form:"end" json:"end"`
|
|
Published bool `form:"published" json:"published"`
|
|
}
|
|
|
|
// GetUsers3Params defines parameters for GetUsers3.
|
|
type GetUsers3Params struct {
|
|
Exclude *[]string `form:"exclude,omitempty" json:"exclude,omitempty"`
|
|
Start string `form:"start" json:"start"`
|
|
End string `form:"end" json:"end"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
StatusFilter *GetUsers3ParamsStatusFilter `form:"statusFilter,omitempty" json:"statusFilter,omitempty"`
|
|
}
|
|
|
|
// GetUsers3ParamsStatusFilter defines parameters for GetUsers3.
|
|
type GetUsers3ParamsStatusFilter string
|
|
|
|
// GetProjects1Params defines parameters for GetProjects1.
|
|
type GetProjects1Params struct {
|
|
Exclude *[]string `form:"exclude,omitempty" json:"exclude,omitempty"`
|
|
Start string `form:"start" json:"start"`
|
|
End string `form:"end" json:"end"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
StatusFilter *GetProjects1ParamsStatusFilter `form:"statusFilter,omitempty" json:"statusFilter,omitempty"`
|
|
}
|
|
|
|
// GetProjects1ParamsStatusFilter defines parameters for GetProjects1.
|
|
type GetProjects1ParamsStatusFilter string
|
|
|
|
// RemindToPublishParams defines parameters for RemindToPublish.
|
|
type RemindToPublishParams struct {
|
|
StartDate string `form:"startDate" json:"startDate"`
|
|
EndDate string `form:"endDate" json:"endDate"`
|
|
}
|
|
|
|
// GetUserTotalsForSingleUserParams defines parameters for GetUserTotalsForSingleUser.
|
|
type GetUserTotalsForSingleUserParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Start string `form:"start" json:"start"`
|
|
End string `form:"end" json:"end"`
|
|
}
|
|
|
|
// GetProjectsParams defines parameters for GetProjects.
|
|
type GetProjectsParams struct {
|
|
UserId string `form:"userId" json:"userId"`
|
|
Search *string `form:"search,omitempty" json:"search,omitempty"`
|
|
IncludeHidden *bool `form:"includeHidden,omitempty" json:"includeHidden,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Start string `form:"start" json:"start"`
|
|
End string `form:"end" json:"end"`
|
|
}
|
|
|
|
// GetUsers2Params defines parameters for GetUsers2.
|
|
type GetUsers2Params struct {
|
|
ProjectId string `form:"projectId" json:"projectId"`
|
|
TaskId *string `form:"taskId,omitempty" json:"taskId,omitempty"`
|
|
Search *string `form:"search,omitempty" json:"search,omitempty"`
|
|
IncludeHidden *bool `form:"includeHidden,omitempty" json:"includeHidden,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Start string `form:"start" json:"start"`
|
|
End string `form:"end" json:"end"`
|
|
Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"`
|
|
}
|
|
|
|
// GetUsersAssignedToProjectParams defines parameters for GetUsersAssignedToProject.
|
|
type GetUsersAssignedToProjectParams struct {
|
|
TaskId string `form:"taskId" json:"taskId"`
|
|
Search *string `form:"search,omitempty" json:"search,omitempty"`
|
|
IncludeHidden *bool `form:"includeHidden,omitempty" json:"includeHidden,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Start string `form:"start" json:"start"`
|
|
End string `form:"end" json:"end"`
|
|
Statuses *[]string `form:"statuses,omitempty" json:"statuses,omitempty"`
|
|
Memberships *string `form:"memberships,omitempty" json:"memberships,omitempty"`
|
|
}
|
|
|
|
// FilterUsersByStatusJSONBody defines parameters for FilterUsersByStatus.
|
|
type FilterUsersByStatusJSONBody = []TeamMemberRequest
|
|
|
|
// FilterUsersByStatusParams defines parameters for FilterUsersByStatus.
|
|
type FilterUsersByStatusParams struct {
|
|
Status *string `form:"status,omitempty" json:"status,omitempty"`
|
|
}
|
|
|
|
// StartParams defines parameters for Start.
|
|
type StartParams struct {
|
|
TimeEntryId *string `form:"timeEntryId,omitempty" json:"timeEntryId,omitempty"`
|
|
AssignmentId *string `form:"assignmentId,omitempty" json:"assignmentId,omitempty"`
|
|
AppName *string `json:"App-Name,omitempty"`
|
|
RequestId *string `json:"Request-Id,omitempty"`
|
|
Signature *string `json:"Signature,omitempty"`
|
|
}
|
|
|
|
// GetTagsParams defines parameters for GetTags.
|
|
type GetTagsParams struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
StrictNameSearch *bool `form:"strict-name-search,omitempty" json:"strict-name-search,omitempty"`
|
|
ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"`
|
|
SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Archived *bool `form:"archived,omitempty" json:"archived,omitempty"`
|
|
}
|
|
|
|
// GetTagIdsByNameAndStatusParams defines parameters for GetTagIdsByNameAndStatus.
|
|
type GetTagIdsByNameAndStatusParams struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
Status *string `form:"status,omitempty" json:"status,omitempty"`
|
|
}
|
|
|
|
// GetTemplatesParams defines parameters for GetTemplates.
|
|
type GetTemplatesParams struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
RemoveInactivePairs *bool `form:"remove-inactive-pairs,omitempty" json:"remove-inactive-pairs,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
WeekStart *string `form:"week-start,omitempty" json:"week-start,omitempty"`
|
|
}
|
|
|
|
// GetTemplateParams defines parameters for GetTemplate.
|
|
type GetTemplateParams struct {
|
|
RemoveInactivePairs *bool `form:"remove-inactive-pairs,omitempty" json:"remove-inactive-pairs,omitempty"`
|
|
}
|
|
|
|
// GetTeamMembersOfAdminParams defines parameters for GetTeamMembersOfAdmin.
|
|
type GetTeamMembersOfAdminParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Search *string `form:"search,omitempty" json:"search,omitempty"`
|
|
Status *string `form:"status,omitempty" json:"status,omitempty"`
|
|
}
|
|
|
|
// GetBalancesForPolicyParams defines parameters for GetBalancesForPolicy.
|
|
type GetBalancesForPolicyParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Sort *string `form:"sort,omitempty" json:"sort,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
}
|
|
|
|
// GetBalancesForUserParams defines parameters for GetBalancesForUser.
|
|
type GetBalancesForUserParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Sort *string `form:"sort,omitempty" json:"sort,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
WithArchived *bool `form:"with-archived,omitempty" json:"with-archived,omitempty"`
|
|
}
|
|
|
|
// GetTeamMembersOfManagerParams defines parameters for GetTeamMembersOfManager.
|
|
type GetTeamMembersOfManagerParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Search *string `form:"search,omitempty" json:"search,omitempty"`
|
|
Status *string `form:"status,omitempty" json:"status,omitempty"`
|
|
}
|
|
|
|
// FindPoliciesForWorkspaceParams defines parameters for FindPoliciesForWorkspace.
|
|
type FindPoliciesForWorkspaceParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
Status *string `form:"status,omitempty" json:"status,omitempty"`
|
|
}
|
|
|
|
// FindPoliciesForUserParams defines parameters for FindPoliciesForUser.
|
|
type FindPoliciesForUserParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
}
|
|
|
|
// Get1Params defines parameters for Get1.
|
|
type Get1Params struct {
|
|
FetchScope *string `form:"fetch-scope,omitempty" json:"fetch-scope,omitempty"`
|
|
}
|
|
|
|
// GetAllUsersOfWorkspaceParams defines parameters for GetAllUsersOfWorkspace.
|
|
type GetAllUsersOfWorkspaceParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Search *string `form:"search,omitempty" json:"search,omitempty"`
|
|
Status *string `form:"status,omitempty" json:"status,omitempty"`
|
|
}
|
|
|
|
// GetUserGroupsOfWorkspaceParams defines parameters for GetUserGroupsOfWorkspace.
|
|
type GetUserGroupsOfWorkspaceParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Search *string `form:"search,omitempty" json:"search,omitempty"`
|
|
FilterTeam *bool `form:"filter-team,omitempty" json:"filter-team,omitempty"`
|
|
}
|
|
|
|
// GetUsersOfWorkspaceParams defines parameters for GetUsersOfWorkspace.
|
|
type GetUsersOfWorkspaceParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
Search *string `form:"search,omitempty" json:"search,omitempty"`
|
|
Status *string `form:"status,omitempty" json:"status,omitempty"`
|
|
FilterTeam *bool `form:"filter-team,omitempty" json:"filter-team,omitempty"`
|
|
}
|
|
|
|
// GetParams defines parameters for Get.
|
|
type GetParams struct {
|
|
Hydrated *bool `form:"hydrated,omitempty" json:"hydrated,omitempty"`
|
|
FetchScope *string `form:"fetch-scope,omitempty" json:"fetch-scope,omitempty"`
|
|
}
|
|
|
|
// GetTimelineForReportsParams defines parameters for GetTimelineForReports.
|
|
type GetTimelineForReportsParams struct {
|
|
Hydrated *bool `form:"hydrated,omitempty" json:"hydrated,omitempty"`
|
|
FetchScope *string `form:"fetch-scope,omitempty" json:"fetch-scope,omitempty"`
|
|
}
|
|
|
|
// GetTimeEntriesBySearchValueParams defines parameters for GetTimeEntriesBySearchValue.
|
|
type GetTimeEntriesBySearchValueParams struct {
|
|
SearchValue string `form:"searchValue" json:"searchValue"`
|
|
}
|
|
|
|
// Create6Params defines parameters for Create6.
|
|
type Create6Params struct {
|
|
FromEntry *string `form:"from-entry,omitempty" json:"from-entry,omitempty"`
|
|
AppName *string `json:"App-Name,omitempty"`
|
|
RequestId *string `json:"Request-Id,omitempty"`
|
|
Signature *string `json:"Signature,omitempty"`
|
|
}
|
|
|
|
// GetMultipleTimeEntriesByIdParams defines parameters for GetMultipleTimeEntriesById.
|
|
type GetMultipleTimeEntriesByIdParams struct {
|
|
Id []string `form:"id" json:"id"`
|
|
}
|
|
|
|
// CreateFull1Params defines parameters for CreateFull1.
|
|
type CreateFull1Params struct {
|
|
AppName *string `json:"App-Name,omitempty"`
|
|
RequestId *string `json:"Request-Id,omitempty"`
|
|
Signature *string `json:"Signature,omitempty"`
|
|
}
|
|
|
|
// GetTimeEntriesRecentlyUsedParams defines parameters for GetTimeEntriesRecentlyUsed.
|
|
type GetTimeEntriesRecentlyUsedParams struct {
|
|
Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
|
|
}
|
|
|
|
// ListOfFullParams defines parameters for ListOfFull.
|
|
type ListOfFullParams struct {
|
|
Page *string `form:"page,omitempty" json:"page,omitempty"`
|
|
Limit *string `form:"limit,omitempty" json:"limit,omitempty"`
|
|
}
|
|
|
|
// GetTimeEntriesParams defines parameters for GetTimeEntries.
|
|
type GetTimeEntriesParams struct {
|
|
Description *string `form:"description,omitempty" json:"description,omitempty"`
|
|
Start *string `form:"start,omitempty" json:"start,omitempty"`
|
|
End *string `form:"end,omitempty" json:"end,omitempty"`
|
|
Project *string `form:"project,omitempty" json:"project,omitempty"`
|
|
Task *string `form:"task,omitempty" json:"task,omitempty"`
|
|
Tags *[]string `form:"tags,omitempty" json:"tags,omitempty"`
|
|
ProjectRequired *bool `form:"project-required,omitempty" json:"project-required,omitempty"`
|
|
TaskRequired *bool `form:"task-required,omitempty" json:"task-required,omitempty"`
|
|
Hydrated *bool `form:"hydrated,omitempty" json:"hydrated,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
InProgress *bool `form:"in-progress,omitempty" json:"in-progress,omitempty"`
|
|
GetWeekBefore *string `form:"get-week-before,omitempty" json:"get-week-before,omitempty"`
|
|
}
|
|
|
|
// AssertTimeEntriesExistInDateRangeParams defines parameters for AssertTimeEntriesExistInDateRange.
|
|
type AssertTimeEntriesExistInDateRangeParams struct {
|
|
Start string `form:"start" json:"start"`
|
|
End string `form:"end" json:"end"`
|
|
}
|
|
|
|
// CreateFullParams defines parameters for CreateFull.
|
|
type CreateFullParams struct {
|
|
AppName *string `json:"App-Name,omitempty"`
|
|
RequestId *string `json:"Request-Id,omitempty"`
|
|
Signature *string `json:"Signature,omitempty"`
|
|
}
|
|
|
|
// GetTimeEntriesInRangeParams defines parameters for GetTimeEntriesInRange.
|
|
type GetTimeEntriesInRangeParams struct {
|
|
Start string `form:"start" json:"start"`
|
|
End string `form:"end" json:"end"`
|
|
}
|
|
|
|
// GetTimeEntriesForTimesheetParams defines parameters for GetTimeEntriesForTimesheet.
|
|
type GetTimeEntriesForTimesheetParams struct {
|
|
Start *string `form:"start,omitempty" json:"start,omitempty"`
|
|
End *string `form:"end,omitempty" json:"end,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
InProgress *bool `form:"in-progress,omitempty" json:"in-progress,omitempty"`
|
|
}
|
|
|
|
// PatchJSONBody defines parameters for Patch.
|
|
type PatchJSONBody map[string]map[string]interface{}
|
|
|
|
// Update3Params defines parameters for Update3.
|
|
type Update3Params struct {
|
|
AppName *string `json:"App-Name,omitempty"`
|
|
RequestId *string `json:"Request-Id,omitempty"`
|
|
Signature *string `json:"Signature,omitempty"`
|
|
}
|
|
|
|
// UpdateFullParams defines parameters for UpdateFull.
|
|
type UpdateFullParams struct {
|
|
StopTimer *bool `form:"stop-timer,omitempty" json:"stop-timer,omitempty"`
|
|
}
|
|
|
|
// UpdateProjectAndTaskJSONBody defines parameters for UpdateProjectAndTask.
|
|
type UpdateProjectAndTaskJSONBody struct {
|
|
Request1 *UpdateTimeEntryTaskRequest `json:"request1,omitempty"`
|
|
Request2 *UpdateTimeEntryProjectRequest `json:"request2,omitempty"`
|
|
}
|
|
|
|
// GetTrialActivationDataParams defines parameters for GetTrialActivationData.
|
|
type GetTrialActivationDataParams struct {
|
|
TestReverseFreeTrialPhase *string `form:"testReverseFreeTrialPhase,omitempty" json:"testReverseFreeTrialPhase,omitempty"`
|
|
TestActivateTrial *bool `form:"testActivateTrial,omitempty" json:"testActivateTrial,omitempty"`
|
|
}
|
|
|
|
// GetUserGroups2Params defines parameters for GetUserGroups2.
|
|
type GetUserGroups2Params struct {
|
|
ProjectId *string `form:"projectId,omitempty" json:"projectId,omitempty"`
|
|
ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"`
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
SortColumn *string `form:"sort-column,omitempty" json:"sort-column,omitempty"`
|
|
SortOrder *string `form:"sort-order,omitempty" json:"sort-order,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
SearchGroups *bool `form:"search-groups,omitempty" json:"search-groups,omitempty"`
|
|
}
|
|
|
|
// GetUsersForReportFilter1Params defines parameters for GetUsersForReportFilter1.
|
|
type GetUsersForReportFilter1Params struct {
|
|
SearchValue *string `form:"searchValue,omitempty" json:"searchValue,omitempty"`
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
ForceFilter *bool `form:"force-filter,omitempty" json:"force-filter,omitempty"`
|
|
IgnoreFilter *bool `form:"ignore-filter,omitempty" json:"ignore-filter,omitempty"`
|
|
ExcludedIds *[]string `form:"excludedIds,omitempty" json:"excludedIds,omitempty"`
|
|
ForApproval *bool `form:"forApproval,omitempty" json:"forApproval,omitempty"`
|
|
}
|
|
|
|
// GetUserGroupIdsByNameParams defines parameters for GetUserGroupIdsByName.
|
|
type GetUserGroupIdsByNameParams struct {
|
|
Name *string `form:"name,omitempty" json:"name,omitempty"`
|
|
}
|
|
|
|
// GetUserGroupsParams defines parameters for GetUserGroups.
|
|
type GetUserGroupsParams struct {
|
|
SearchValue *string `form:"searchValue,omitempty" json:"searchValue,omitempty"`
|
|
}
|
|
|
|
// RemoveUserParams defines parameters for RemoveUser.
|
|
type RemoveUserParams struct {
|
|
UserGroupIds *[]string `form:"userGroupIds,omitempty" json:"userGroupIds,omitempty"`
|
|
UserId *string `form:"userId,omitempty" json:"userId,omitempty"`
|
|
}
|
|
|
|
// AddUsersParams defines parameters for AddUsers.
|
|
type AddUsersParams struct {
|
|
SendEmail *bool `form:"sendEmail,omitempty" json:"sendEmail,omitempty"`
|
|
}
|
|
|
|
// GetExpensesForUsersParams defines parameters for GetExpensesForUsers.
|
|
type GetExpensesForUsersParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
UserId []string `form:"userId" json:"userId"`
|
|
}
|
|
|
|
// GetPreviewParams defines parameters for GetPreview.
|
|
type GetPreviewParams struct {
|
|
Unsubmitted *bool `form:"unsubmitted,omitempty" json:"unsubmitted,omitempty"`
|
|
}
|
|
|
|
// GetTimeEntryStatusParams defines parameters for GetTimeEntryStatus.
|
|
type GetTimeEntryStatusParams struct {
|
|
Start *string `form:"start,omitempty" json:"start,omitempty"`
|
|
}
|
|
|
|
// GetTimeEntryWeekStatusParams defines parameters for GetTimeEntryWeekStatus.
|
|
type GetTimeEntryWeekStatusParams struct {
|
|
Start *string `form:"start,omitempty" json:"start,omitempty"`
|
|
}
|
|
|
|
// GetHolidays1Params defines parameters for GetHolidays1.
|
|
type GetHolidays1Params struct {
|
|
Start string `form:"start" json:"start"`
|
|
End string `form:"end" json:"end"`
|
|
}
|
|
|
|
// GetUserRolesParams defines parameters for GetUserRoles.
|
|
type GetUserRolesParams struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
PageSize *int32 `form:"page-size,omitempty" json:"page-size,omitempty"`
|
|
}
|
|
|
|
// GetWebhooksParams defines parameters for GetWebhooks.
|
|
type GetWebhooksParams struct {
|
|
Type *[]string `form:"type,omitempty" json:"type,omitempty"`
|
|
}
|
|
|
|
// GetLogsForWebhook1Params defines parameters for GetLogsForWebhook1.
|
|
type GetLogsForWebhook1Params struct {
|
|
Page *int32 `form:"page,omitempty" json:"page,omitempty"`
|
|
Size *int32 `form:"size,omitempty" json:"size,omitempty"`
|
|
Status *string `form:"status,omitempty" json:"status,omitempty"`
|
|
SortByNewest *bool `form:"sortByNewest,omitempty" json:"sortByNewest,omitempty"`
|
|
From *string `form:"from,omitempty" json:"from,omitempty"`
|
|
To *string `form:"to,omitempty" json:"to,omitempty"`
|
|
}
|
|
|
|
// GetLogCountParams defines parameters for GetLogCount.
|
|
type GetLogCountParams struct {
|
|
Status *string `form:"status,omitempty" json:"status,omitempty"`
|
|
}
|
|
|
|
// DownloadReportJSONRequestBody defines body for DownloadReport for application/json ContentType.
|
|
type DownloadReportJSONRequestBody = InvoiceEmailLinkPinRequest
|
|
|
|
// ValidatePinJSONRequestBody defines body for ValidatePin for application/json ContentType.
|
|
type ValidatePinJSONRequestBody = InvoiceEmailLinkPinRequest
|
|
|
|
// UpdateSmtpConfigurationJSONRequestBody defines body for UpdateSmtpConfiguration for application/json ContentType.
|
|
type UpdateSmtpConfigurationJSONRequestBody = SmtpConfigurationRequest
|
|
|
|
// DisableAccessToEntitiesInTransferJSONRequestBody defines body for DisableAccessToEntitiesInTransfer for application/json ContentType.
|
|
type DisableAccessToEntitiesInTransferJSONRequestBody = DisableAccessToEntitiesInTransferRequest
|
|
|
|
// UsersExistJSONRequestBody defines body for UsersExist for application/json ContentType.
|
|
type UsersExistJSONRequestBody = UsersExistRequest
|
|
|
|
// HandleTransferCompletedFailureJSONRequestBody defines body for HandleTransferCompletedFailure for application/json ContentType.
|
|
type HandleTransferCompletedFailureJSONRequestBody = WorkspaceTransferFailedRequest
|
|
|
|
// HandleTransferCompletedSuccessJSONRequestBody defines body for HandleTransferCompletedSuccess for application/json ContentType.
|
|
type HandleTransferCompletedSuccessJSONRequestBody = WorkspaceTransferFinishedRequest
|
|
|
|
// GetUserInfoJSONRequestBody defines body for GetUserInfo for application/json ContentType.
|
|
type GetUserInfoJSONRequestBody = UsersIdsRequest
|
|
|
|
// GetUserMembershipsAndInvitesJSONRequestBody defines body for GetUserMembershipsAndInvites for application/json ContentType.
|
|
type GetUserMembershipsAndInvitesJSONRequestBody = LimboTokenRequest
|
|
|
|
// AddNotificationsMultipartRequestBody defines body for AddNotifications for multipart/form-data ContentType.
|
|
type AddNotificationsMultipartRequestBody AddNotificationsMultipartBody
|
|
|
|
// UpdateNewsMultipartRequestBody defines body for UpdateNews for multipart/form-data ContentType.
|
|
type UpdateNewsMultipartRequestBody UpdateNewsMultipartBody
|
|
|
|
// BulkEditUsersJSONRequestBody defines body for BulkEditUsers for application/json ContentType.
|
|
type BulkEditUsersJSONRequestBody = BulkEditUsersRequest
|
|
|
|
// GetInfoJSONRequestBody defines body for GetInfo for application/json ContentType.
|
|
type GetInfoJSONRequestBody = UsersIdsRequest
|
|
|
|
// GetUserNamesJSONRequestBody defines body for GetUserNames for application/json ContentType.
|
|
type GetUserNamesJSONRequestBody = UsersIdsRequest
|
|
|
|
// GetUsersForProjectMembersFilterJSONRequestBody defines body for GetUsersForProjectMembersFilter for application/json ContentType.
|
|
type GetUsersForProjectMembersFilterJSONRequestBody = UserReportFilterRequest
|
|
|
|
// GetUsersForAttendanceReportFilter1JSONRequestBody defines body for GetUsersForAttendanceReportFilter1 for application/json ContentType.
|
|
type GetUsersForAttendanceReportFilter1JSONRequestBody = UserAttendanceReportFilterRequest
|
|
|
|
// GetUsersForReportFilterJSONRequestBody defines body for GetUsersForReportFilter for application/json ContentType.
|
|
type GetUsersForReportFilterJSONRequestBody = UserReportFilterRequest
|
|
|
|
// UpdateTimeTrackingSettings1JSONRequestBody defines body for UpdateTimeTrackingSettings1 for application/json ContentType.
|
|
type UpdateTimeTrackingSettings1JSONRequestBody = UpdateCompactViewSettings
|
|
|
|
// UpdateDashboardSelectionJSONRequestBody defines body for UpdateDashboardSelection for application/json ContentType.
|
|
type UpdateDashboardSelectionJSONRequestBody = UpdateDashboardSelection
|
|
|
|
// DeleteUserJSONRequestBody defines body for DeleteUser for application/json ContentType.
|
|
type DeleteUserJSONRequestBody = UserDeleteRequest
|
|
|
|
// ChangeEmailJSONRequestBody defines body for ChangeEmail for application/json ContentType.
|
|
type ChangeEmailJSONRequestBody = ChangeEmailRequest
|
|
|
|
// UpdateLangJSONRequestBody defines body for UpdateLang for application/json ContentType.
|
|
type UpdateLangJSONRequestBody = UpdateLangRequest
|
|
|
|
// MarkAsRead1JSONRequestBody defines body for MarkAsRead1 for application/json ContentType.
|
|
type MarkAsRead1JSONRequestBody = UserNotificationMarkAsReadManyRequest
|
|
|
|
// MarkAsReadJSONRequestBody defines body for MarkAsRead for application/json ContentType.
|
|
type MarkAsReadJSONRequestBody = UserNotificationMarkAsReadRequest
|
|
|
|
// ChangeNameAdminJSONRequestBody defines body for ChangeNameAdmin for application/json ContentType.
|
|
type ChangeNameAdminJSONRequestBody = ChangeUsernameRequest
|
|
|
|
// ReadNewsJSONRequestBody defines body for ReadNews for application/json ContentType.
|
|
type ReadNewsJSONRequestBody = ReadNewsRequest
|
|
|
|
// UpdatePictureJSONRequestBody defines body for UpdatePicture for application/json ContentType.
|
|
type UpdatePictureJSONRequestBody = AddProfilePictureRequest
|
|
|
|
// UpdateNameAndProfilePictureJSONRequestBody defines body for UpdateNameAndProfilePicture for application/json ContentType.
|
|
type UpdateNameAndProfilePictureJSONRequestBody = UpdateNameAndProfilePictureRequest
|
|
|
|
// UpdateSettingsJSONRequestBody defines body for UpdateSettings for application/json ContentType.
|
|
type UpdateSettingsJSONRequestBody = UpdateUserSettingsRequest
|
|
|
|
// UpdateSummaryReportSettingsJSONRequestBody defines body for UpdateSummaryReportSettings for application/json ContentType.
|
|
type UpdateSummaryReportSettingsJSONRequestBody = UpdateSummaryReportSettingsRequest
|
|
|
|
// UpdateTimeTrackingSettingsJSONRequestBody defines body for UpdateTimeTrackingSettings for application/json ContentType.
|
|
type UpdateTimeTrackingSettingsJSONRequestBody = UpdateTimeTrackingSettingsRequest
|
|
|
|
// UpdateTimezoneJSONRequestBody defines body for UpdateTimezone for application/json ContentType.
|
|
type UpdateTimezoneJSONRequestBody = UpdateTimezoneRequest
|
|
|
|
// MarkNotificationsAsReadJSONRequestBody defines body for MarkNotificationsAsRead for application/json ContentType.
|
|
type MarkNotificationsAsReadJSONRequestBody = UserNotificationMarkAsReadManyRequest
|
|
|
|
// UploadImageMultipartRequestBody defines body for UploadImage for multipart/form-data ContentType.
|
|
type UploadImageMultipartRequestBody UploadImageMultipartBody
|
|
|
|
// FinishWalkthroughJSONRequestBody defines body for FinishWalkthrough for application/json ContentType.
|
|
type FinishWalkthroughJSONRequestBody = WalkthroughCreationRequest
|
|
|
|
// CreateJSONRequestBody defines body for Create for application/json ContentType.
|
|
type CreateJSONRequestBody = CreateWorkspaceRequest
|
|
|
|
// InsertLegacyPlanNotificationsJSONRequestBody defines body for InsertLegacyPlanNotifications for application/json ContentType.
|
|
type InsertLegacyPlanNotificationsJSONRequestBody = LegacyPlanNotificationRequest
|
|
|
|
// GetPermissionsToUserForWorkspacesJSONRequestBody defines body for GetPermissionsToUserForWorkspaces for application/json ContentType.
|
|
type GetPermissionsToUserForWorkspacesJSONRequestBody = GetWorkspacesAuthorizationsForUserRequest
|
|
|
|
// UpdateWorkspaceJSONRequestBody defines body for UpdateWorkspace for application/json ContentType.
|
|
type UpdateWorkspaceJSONRequestBody = UpdateWorkspaceRequest
|
|
|
|
// UninstallJSONRequestBody defines body for Uninstall for application/json ContentType.
|
|
type UninstallJSONRequestBody = AddonUninstallRequest
|
|
|
|
// InstallJSONRequestBody defines body for Install for application/json ContentType.
|
|
type InstallJSONRequestBody = AddonInstallRequest
|
|
|
|
// GetInstalledAddonsByKeysJSONRequestBody defines body for GetInstalledAddonsByKeys for application/json ContentType.
|
|
type GetInstalledAddonsByKeysJSONRequestBody = AddonKeysRequest
|
|
|
|
// UpdateSettings1JSONRequestBody defines body for UpdateSettings1 for application/json ContentType.
|
|
type UpdateSettings1JSONRequestBody = AddonUpdateSettingsRequest
|
|
|
|
// UpdateStatus3JSONRequestBody defines body for UpdateStatus3 for application/json ContentType.
|
|
type UpdateStatus3JSONRequestBody = AddonUpdateStatusRequest
|
|
|
|
// Create20JSONRequestBody defines body for Create20 for application/json ContentType.
|
|
type Create20JSONRequestBody = CreateAlertRequest
|
|
|
|
// Update11JSONRequestBody defines body for Update11 for application/json ContentType.
|
|
type Update11JSONRequestBody = CreateAlertRequest
|
|
|
|
// ApproveRequestsJSONRequestBody defines body for ApproveRequests for application/json ContentType.
|
|
type ApproveRequestsJSONRequestBody = ApproveRequestsRequest
|
|
|
|
// CountJSONRequestBody defines body for Count for application/json ContentType.
|
|
type CountJSONRequestBody = GetCountRequest
|
|
|
|
// RemindManagersToApproveJSONRequestBody defines body for RemindManagersToApprove for application/json ContentType.
|
|
type RemindManagersToApproveJSONRequestBody = RemindToApproveRequest
|
|
|
|
// RemindUsersToSubmitJSONRequestBody defines body for RemindUsersToSubmit for application/json ContentType.
|
|
type RemindUsersToSubmitJSONRequestBody = RemindToSubmitAndTrackRequest
|
|
|
|
// GetApprovalGroupsJSONRequestBody defines body for GetApprovalGroups for application/json ContentType.
|
|
type GetApprovalGroupsJSONRequestBody = GetApprovalsRequest
|
|
|
|
// GetUnsubmittedSummariesJSONRequestBody defines body for GetUnsubmittedSummaries for application/json ContentType.
|
|
type GetUnsubmittedSummariesJSONRequestBody = GetUnsubmittedEntriesDurationRequest
|
|
|
|
// UpdateStatus2JSONRequestBody defines body for UpdateStatus2 for application/json ContentType.
|
|
type UpdateStatus2JSONRequestBody = UpdateApprovalRequest
|
|
|
|
// FetchCustomAttributesJSONRequestBody defines body for FetchCustomAttributes for application/json ContentType.
|
|
type FetchCustomAttributesJSONRequestBody = FetchCustomAttributesRequest
|
|
|
|
// DeleteMany3JSONRequestBody defines body for DeleteMany3 for application/json ContentType.
|
|
type DeleteMany3JSONRequestBody = ClientIdsRequest
|
|
|
|
// UpdateMany2JSONRequestBody defines body for UpdateMany2 for application/json ContentType.
|
|
type UpdateMany2JSONRequestBody = UpdateManyClientsRequest
|
|
|
|
// Create19JSONRequestBody defines body for Create19 for application/json ContentType.
|
|
type Create19JSONRequestBody = CreateClientRequest
|
|
|
|
// GetArchivePermissionsJSONRequestBody defines body for GetArchivePermissions for application/json ContentType.
|
|
type GetArchivePermissionsJSONRequestBody = ClientIdsRequest
|
|
|
|
// HaveRelatedTasksJSONRequestBody defines body for HaveRelatedTasks for application/json ContentType.
|
|
type HaveRelatedTasksJSONRequestBody = ClientIdsRequest
|
|
|
|
// GetClientsOfIdsJSONRequestBody defines body for GetClientsOfIds for application/json ContentType.
|
|
type GetClientsOfIdsJSONRequestBody = ClientIdsRequest
|
|
|
|
// GetTimeOffPoliciesAndHolidaysForClientJSONRequestBody defines body for GetTimeOffPoliciesAndHolidaysForClient for application/json ContentType.
|
|
type GetTimeOffPoliciesAndHolidaysForClientJSONRequestBody = ClientIdsRequest
|
|
|
|
// Update10JSONRequestBody defines body for Update10 for application/json ContentType.
|
|
type Update10JSONRequestBody = UpdateClientRequest
|
|
|
|
// SetCostRate2JSONRequestBody defines body for SetCostRate2 for application/json ContentType.
|
|
type SetCostRate2JSONRequestBody = CostRateRequest
|
|
|
|
// CreateCurrencyJSONRequestBody defines body for CreateCurrency for application/json ContentType.
|
|
type CreateCurrencyJSONRequestBody = CreateCurrencyRequest
|
|
|
|
// UpdateCurrencyCodeJSONRequestBody defines body for UpdateCurrencyCode for application/json ContentType.
|
|
type UpdateCurrencyCodeJSONRequestBody = UpdateCurrencyCodeRequest
|
|
|
|
// SetCurrencyJSONRequestBody defines body for SetCurrency for application/json ContentType.
|
|
type SetCurrencyJSONRequestBody = UpdateDefaultWorkspaceCurrencyRequest
|
|
|
|
// Create18JSONRequestBody defines body for Create18 for application/json ContentType.
|
|
type Create18JSONRequestBody = CustomFieldRequest
|
|
|
|
// EditJSONRequestBody defines body for Edit for application/json ContentType.
|
|
type EditJSONRequestBody = UpdateCustomFieldRequest
|
|
|
|
// EditDefaultValuesJSONRequestBody defines body for EditDefaultValues for application/json ContentType.
|
|
type EditDefaultValuesJSONRequestBody = CustomFieldProjectDefaultValuesRequest
|
|
|
|
// UpdateCustomLabelsJSONRequestBody defines body for UpdateCustomLabels for application/json ContentType.
|
|
type UpdateCustomLabelsJSONRequestBody = CustomLabelsRequest
|
|
|
|
// AddEmailJSONRequestBody defines body for AddEmail for application/json ContentType.
|
|
type AddEmailJSONRequestBody = AddEmailRequest
|
|
|
|
// DeleteManyExpensesJSONRequestBody defines body for DeleteManyExpenses for application/json ContentType.
|
|
type DeleteManyExpensesJSONRequestBody = ExpensesIdsRequest
|
|
|
|
// CreateExpenseMultipartRequestBody defines body for CreateExpense for multipart/form-data ContentType.
|
|
type CreateExpenseMultipartRequestBody = CreateExpenseRequest
|
|
|
|
// Create17JSONRequestBody defines body for Create17 for application/json ContentType.
|
|
type Create17JSONRequestBody = ExpenseCategoryRequest
|
|
|
|
// UpdateCategoryJSONRequestBody defines body for UpdateCategory for application/json ContentType.
|
|
type UpdateCategoryJSONRequestBody = ExpenseCategoryRequest
|
|
|
|
// UpdateStatus1JSONRequestBody defines body for UpdateStatus1 for application/json ContentType.
|
|
type UpdateStatus1JSONRequestBody = ExpenseCategoryArchiveRequest
|
|
|
|
// UpdateInvoicedStatus1JSONRequestBody defines body for UpdateInvoicedStatus1 for application/json ContentType.
|
|
type UpdateInvoicedStatus1JSONRequestBody = UpdateInvoicedStatusRequest
|
|
|
|
// RestoreManyExpensesJSONRequestBody defines body for RestoreManyExpenses for application/json ContentType.
|
|
type RestoreManyExpensesJSONRequestBody = ExpensesIdsRequest
|
|
|
|
// UpdateExpenseMultipartRequestBody defines body for UpdateExpense for multipart/form-data ContentType.
|
|
type UpdateExpenseMultipartRequestBody = UpdateExpenseRequest
|
|
|
|
// ImportFileDataJSONRequestBody defines body for ImportFileData for application/json ContentType.
|
|
type ImportFileDataJSONRequestBody = FileImportRequest
|
|
|
|
// Create16JSONRequestBody defines body for Create16 for application/json ContentType.
|
|
type Create16JSONRequestBody = HolidayRequest
|
|
|
|
// Update9JSONRequestBody defines body for Update9 for application/json ContentType.
|
|
type Update9JSONRequestBody = HolidayRequest
|
|
|
|
// SetHourlyRate2JSONRequestBody defines body for SetHourlyRate2 for application/json ContentType.
|
|
type SetHourlyRate2JSONRequestBody = HourlyRateRequest
|
|
|
|
// GetInvitedEmailsInfoJSONRequestBody defines body for GetInvitedEmailsInfo for application/json ContentType.
|
|
type GetInvitedEmailsInfoJSONRequestBody = UserEmailsRequest
|
|
|
|
// UpsertInvoiceEmailTemplateJSONRequestBody defines body for UpsertInvoiceEmailTemplate for application/json ContentType.
|
|
type UpsertInvoiceEmailTemplateJSONRequestBody = CreateInvoiceEmailTemplateRequest
|
|
|
|
// SendInvoiceEmailJSONRequestBody defines body for SendInvoiceEmail for application/json ContentType.
|
|
type SendInvoiceEmailJSONRequestBody = SendInvoiceEmailRequest
|
|
|
|
// CreateInvoiceJSONRequestBody defines body for CreateInvoice for application/json ContentType.
|
|
type CreateInvoiceJSONRequestBody = CreateInvoiceRequest
|
|
|
|
// CreateCompanyJSONRequestBody defines body for CreateCompany for application/json ContentType.
|
|
type CreateCompanyJSONRequestBody = CompanyRequest
|
|
|
|
// UpdateCompaniesInWorkspaceJSONRequestBody defines body for UpdateCompaniesInWorkspace for application/json ContentType.
|
|
type UpdateCompaniesInWorkspaceJSONRequestBody = BulkUpdateCompaniesRequest
|
|
|
|
// UpdateCompanyJSONRequestBody defines body for UpdateCompany for application/json ContentType.
|
|
type UpdateCompanyJSONRequestBody = CompanyRequest
|
|
|
|
// GetInvoicesInfoJSONRequestBody defines body for GetInvoicesInfo for application/json ContentType.
|
|
type GetInvoicesInfoJSONRequestBody = InvoiceFilterRequest
|
|
|
|
// CreateInvoiceItemTypeJSONRequestBody defines body for CreateInvoiceItemType for application/json ContentType.
|
|
type CreateInvoiceItemTypeJSONRequestBody = CreateInvoiceItemTypeRequest
|
|
|
|
// UpdateInvoiceItemTypeJSONRequestBody defines body for UpdateInvoiceItemType for application/json ContentType.
|
|
type UpdateInvoiceItemTypeJSONRequestBody = UpdateInvoiceItemTypeRequest
|
|
|
|
// UpdateInvoicePermissionsJSONRequestBody defines body for UpdateInvoicePermissions for application/json ContentType.
|
|
type UpdateInvoicePermissionsJSONRequestBody = InvoicePermissionsRequest
|
|
|
|
// UpdateInvoiceSettingsJSONRequestBody defines body for UpdateInvoiceSettings for application/json ContentType.
|
|
type UpdateInvoiceSettingsJSONRequestBody = UpdateInvoiceSettingsRequest
|
|
|
|
// UpdateInvoiceJSONRequestBody defines body for UpdateInvoice for application/json ContentType.
|
|
type UpdateInvoiceJSONRequestBody = UpdateInvoiceRequest
|
|
|
|
// ImportTimeAndExpensesJSONRequestBody defines body for ImportTimeAndExpenses for application/json ContentType.
|
|
type ImportTimeAndExpensesJSONRequestBody = ImportTimeEntriesAndExpensesRequest
|
|
|
|
// ReorderInvoiceItem1JSONRequestBody defines body for ReorderInvoiceItem1 for application/json ContentType.
|
|
type ReorderInvoiceItem1JSONRequestBody = ReorderInvoiceItemRequest
|
|
|
|
// EditInvoiceItemJSONRequestBody defines body for EditInvoiceItem for application/json ContentType.
|
|
type EditInvoiceItemJSONRequestBody = UpdateInvoiceItemRequest
|
|
|
|
// CreateInvoicePaymentJSONRequestBody defines body for CreateInvoicePayment for application/json ContentType.
|
|
type CreateInvoicePaymentJSONRequestBody = CreateInvoicePaymentRequest
|
|
|
|
// ChangeInvoiceStatusJSONRequestBody defines body for ChangeInvoiceStatus for application/json ContentType.
|
|
type ChangeInvoiceStatusJSONRequestBody = ChangeInvoiceStatusRequest
|
|
|
|
// UpdatePinCodeJSONRequestBody defines body for UpdatePinCode for application/json ContentType.
|
|
type UpdatePinCodeJSONRequestBody = UpdatePinCodeRequest
|
|
|
|
// Create15JSONRequestBody defines body for Create15 for application/json ContentType.
|
|
type Create15JSONRequestBody = CreateKioskRequest
|
|
|
|
// UpdateBreakDefaultsJSONRequestBody defines body for UpdateBreakDefaults for application/json ContentType.
|
|
type UpdateBreakDefaultsJSONRequestBody = BulkUpdateKioskDefaultsRequest
|
|
|
|
// UpdateDefaultsJSONRequestBody defines body for UpdateDefaults for application/json ContentType.
|
|
type UpdateDefaultsJSONRequestBody = BulkUpdateKioskDefaultsRequest
|
|
|
|
// GetWithProjectJSONRequestBody defines body for GetWithProject for application/json ContentType.
|
|
type GetWithProjectJSONRequestBody = ProjectIdsRequest
|
|
|
|
// GetWithTaskJSONRequestBody defines body for GetWithTask for application/json ContentType.
|
|
type GetWithTaskJSONRequestBody = TaskIdsRequest
|
|
|
|
// Update8JSONRequestBody defines body for Update8 for application/json ContentType.
|
|
type Update8JSONRequestBody = UpdateKioskRequest
|
|
|
|
// UpdateStatusJSONRequestBody defines body for UpdateStatus for application/json ContentType.
|
|
type UpdateStatusJSONRequestBody = UpdateKioskStatusRequest
|
|
|
|
// AddLimitedUsersJSONRequestBody defines body for AddLimitedUsers for application/json ContentType.
|
|
type AddLimitedUsersJSONRequestBody = AddLimitedUserToWorkspaceRequest
|
|
|
|
// UpdateMemberProfileJSONRequestBody defines body for UpdateMemberProfile for application/json ContentType.
|
|
type UpdateMemberProfileJSONRequestBody = MemberProfileRequest
|
|
|
|
// UpdateMemberProfileWithAdditionalDataJSONRequestBody defines body for UpdateMemberProfileWithAdditionalData for application/json ContentType.
|
|
type UpdateMemberProfileWithAdditionalDataJSONRequestBody = MemberProfileFullRequest
|
|
|
|
// UpdateMemberSettingsJSONRequestBody defines body for UpdateMemberSettings for application/json ContentType.
|
|
type UpdateMemberSettingsJSONRequestBody = MemberSettingsRequest
|
|
|
|
// UpdateMemberWorkingDaysAndCapacityJSONRequestBody defines body for UpdateMemberWorkingDaysAndCapacity for application/json ContentType.
|
|
type UpdateMemberWorkingDaysAndCapacityJSONRequestBody = MemberSettingsRequest
|
|
|
|
// FindNotInvitedEmailsInJSONRequestBody defines body for FindNotInvitedEmailsIn for application/json ContentType.
|
|
type FindNotInvitedEmailsInJSONRequestBody = UserEmailsRequest
|
|
|
|
// Create14JSONRequestBody defines body for Create14 for application/json ContentType.
|
|
type Create14JSONRequestBody = CreateOrganizationRequest
|
|
|
|
// UpdateOrganizationJSONRequestBody defines body for UpdateOrganization for application/json ContentType.
|
|
type UpdateOrganizationJSONRequestBody = OrganizationRequest
|
|
|
|
// UpdateOAuth2Configuration1JSONRequestBody defines body for UpdateOAuth2Configuration1 for application/json ContentType.
|
|
type UpdateOAuth2Configuration1JSONRequestBody = OAuthConfigurationRequest
|
|
|
|
// TestOAuth2ConfigurationJSONRequestBody defines body for TestOAuth2Configuration for application/json ContentType.
|
|
type TestOAuth2ConfigurationJSONRequestBody = OAuthConfigurationRequest
|
|
|
|
// UpdateSAML2ConfigurationJSONRequestBody defines body for UpdateSAML2Configuration for application/json ContentType.
|
|
type UpdateSAML2ConfigurationJSONRequestBody = SAML2ConfigurationRequest
|
|
|
|
// TestSAML2ConfigurationJSONRequestBody defines body for TestSAML2Configuration for application/json ContentType.
|
|
type TestSAML2ConfigurationJSONRequestBody = SAML2ConfigurationRequest
|
|
|
|
// TransferOwnershipJSONRequestBody defines body for TransferOwnership for application/json ContentType.
|
|
type TransferOwnershipJSONRequestBody = TransferOwnerRequest
|
|
|
|
// CancelSubscriptionJSONRequestBody defines body for CancelSubscription for application/json ContentType.
|
|
type CancelSubscriptionJSONRequestBody = CancellationReasonDto
|
|
|
|
// CreateCustomerJSONRequestBody defines body for CreateCustomer for application/json ContentType.
|
|
type CreateCustomerJSONRequestBody = CustomerRequest
|
|
|
|
// UpdateCustomerJSONRequestBody defines body for UpdateCustomer for application/json ContentType.
|
|
type UpdateCustomerJSONRequestBody UpdateCustomerJSONBody
|
|
|
|
// EditInvoiceInformationJSONRequestBody defines body for EditInvoiceInformation for application/json ContentType.
|
|
type EditInvoiceInformationJSONRequestBody = CustomerBillingRequest
|
|
|
|
// EditPaymentInformationJSONRequestBody defines body for EditPaymentInformation for application/json ContentType.
|
|
type EditPaymentInformationJSONRequestBody = PaymentRequest
|
|
|
|
// InitialUpgradeJSONRequestBody defines body for InitialUpgrade for application/json ContentType.
|
|
type InitialUpgradeJSONRequestBody = InitialPriceRequest
|
|
|
|
// CreateSetupIntentForPaymentMethodJSONRequestBody defines body for CreateSetupIntentForPaymentMethod for application/json ContentType.
|
|
type CreateSetupIntentForPaymentMethodJSONRequestBody CreateSetupIntentForPaymentMethodJSONBody
|
|
|
|
// UpdateUserSeatsJSONRequestBody defines body for UpdateUserSeats for application/json ContentType.
|
|
type UpdateUserSeatsJSONRequestBody = UpdateQuantityRequest
|
|
|
|
// CreateSetupIntentForInitialSubscriptionJSONRequestBody defines body for CreateSetupIntentForInitialSubscription for application/json ContentType.
|
|
type CreateSetupIntentForInitialSubscriptionJSONRequestBody CreateSetupIntentForInitialSubscriptionJSONBody
|
|
|
|
// CreateSubscriptionJSONRequestBody defines body for CreateSubscription for application/json ContentType.
|
|
type CreateSubscriptionJSONRequestBody CreateSubscriptionJSONBody
|
|
|
|
// UpdateSubscriptionJSONRequestBody defines body for UpdateSubscription for application/json ContentType.
|
|
type UpdateSubscriptionJSONRequestBody = PaymentRequest
|
|
|
|
// DeleteSubscriptionJSONRequestBody defines body for DeleteSubscription for application/json ContentType.
|
|
type DeleteSubscriptionJSONRequestBody = TerminateSubscriptionRequest
|
|
|
|
// GetProjectAndTaskJSONRequestBody defines body for GetProjectAndTask for application/json ContentType.
|
|
type GetProjectAndTaskJSONRequestBody = ProjectTaskRequest
|
|
|
|
// DeleteMany2JSONRequestBody defines body for DeleteMany2 for application/json ContentType.
|
|
type DeleteMany2JSONRequestBody = ProjectIdsRequest
|
|
|
|
// UpdateMany1JSONRequestBody defines body for UpdateMany1 for application/json ContentType.
|
|
type UpdateMany1JSONRequestBody = PatchProjectRequest
|
|
|
|
// Create12JSONRequestBody defines body for Create12 for application/json ContentType.
|
|
type Create12JSONRequestBody = CreateProjectRequest
|
|
|
|
// GetFilteredProjectsJSONRequestBody defines body for GetFilteredProjects for application/json ContentType.
|
|
type GetFilteredProjectsJSONRequestBody = ProjectFilterRequest
|
|
|
|
// CreateFromTemplateJSONRequestBody defines body for CreateFromTemplate for application/json ContentType.
|
|
type CreateFromTemplateJSONRequestBody = CreateFromTemplateRequest
|
|
|
|
// GetProjectJSONRequestBody defines body for GetProject for application/json ContentType.
|
|
type GetProjectJSONRequestBody = ProjectIdsRequest
|
|
|
|
// GetProjectsForReportFilterJSONRequestBody defines body for GetProjectsForReportFilter for application/json ContentType.
|
|
type GetProjectsForReportFilterJSONRequestBody = ProjectReportFilterRequest
|
|
|
|
// GetProjectIdsForReportFilterJSONRequestBody defines body for GetProjectIdsForReportFilter for application/json ContentType.
|
|
type GetProjectIdsForReportFilterJSONRequestBody = ProjectReportFilterRequest
|
|
|
|
// GetTasksByIdsJSONRequestBody defines body for GetTasksByIds for application/json ContentType.
|
|
type GetTasksByIdsJSONRequestBody = TaskIdsRequest
|
|
|
|
// GetAllTasksJSONRequestBody defines body for GetAllTasks for application/json ContentType.
|
|
type GetAllTasksJSONRequestBody = GetAllTasksJSONBody
|
|
|
|
// GetTasksJSONRequestBody defines body for GetTasks for application/json ContentType.
|
|
type GetTasksJSONRequestBody = GetTasksJSONBody
|
|
|
|
// GetTasksForReportFilterJSONRequestBody defines body for GetTasksForReportFilter for application/json ContentType.
|
|
type GetTasksForReportFilterJSONRequestBody = TaskReportFilterRequest
|
|
|
|
// GetTaskIdsForReportFilterJSONRequestBody defines body for GetTaskIdsForReportFilter for application/json ContentType.
|
|
type GetTaskIdsForReportFilterJSONRequestBody = TaskReportFilterRequest
|
|
|
|
// GetTimeOffPoliciesAndHolidaysWithProjectsJSONRequestBody defines body for GetTimeOffPoliciesAndHolidaysWithProjects for application/json ContentType.
|
|
type GetTimeOffPoliciesAndHolidaysWithProjectsJSONRequestBody = ProjectIdsRequest
|
|
|
|
// GetPermissionsToUserForProjectsJSONRequestBody defines body for GetPermissionsToUserForProjects for application/json ContentType.
|
|
type GetPermissionsToUserForProjectsJSONRequestBody = GetProjectsAuthorizationsForUserRequest
|
|
|
|
// Update14JSONRequestBody defines body for Update14 for application/json ContentType.
|
|
type Update14JSONRequestBody = ProjectPatchRequest
|
|
|
|
// Update6JSONRequestBody defines body for Update6 for application/json ContentType.
|
|
type Update6JSONRequestBody = UpdateProjectRequest
|
|
|
|
// SetCostRate1JSONRequestBody defines body for SetCostRate1 for application/json ContentType.
|
|
type SetCostRate1JSONRequestBody = CostRateRequest
|
|
|
|
// UpdateEstimateJSONRequestBody defines body for UpdateEstimate for application/json ContentType.
|
|
type UpdateEstimateJSONRequestBody = ProjectEstimateRequest
|
|
|
|
// SetHourlyRate1JSONRequestBody defines body for SetHourlyRate1 for application/json ContentType.
|
|
type SetHourlyRate1JSONRequestBody = HourlyRateRequest
|
|
|
|
// Create13JSONRequestBody defines body for Create13 for application/json ContentType.
|
|
type Create13JSONRequestBody = TaskRequest
|
|
|
|
// GetTimeOffPoliciesAndHolidaysWithTasksJSONRequestBody defines body for GetTimeOffPoliciesAndHolidaysWithTasks for application/json ContentType.
|
|
type GetTimeOffPoliciesAndHolidaysWithTasksJSONRequestBody = TaskIdsRequest
|
|
|
|
// Update7JSONRequestBody defines body for Update7 for application/json ContentType.
|
|
type Update7JSONRequestBody = UpdateTaskRequest
|
|
|
|
// SetCostRateJSONRequestBody defines body for SetCostRate for application/json ContentType.
|
|
type SetCostRateJSONRequestBody = CostRateRequest
|
|
|
|
// SetHourlyRateJSONRequestBody defines body for SetHourlyRate for application/json ContentType.
|
|
type SetHourlyRateJSONRequestBody = HourlyRateRequest
|
|
|
|
// AddUsers1JSONRequestBody defines body for AddUsers1 for application/json ContentType.
|
|
type AddUsers1JSONRequestBody = AddUsersToProjectRequest
|
|
|
|
// AddUsersCostRate1JSONRequestBody defines body for AddUsersCostRate1 for application/json ContentType.
|
|
type AddUsersCostRate1JSONRequestBody = CostRateRequest
|
|
|
|
// AddUsersHourlyRate1JSONRequestBody defines body for AddUsersHourlyRate1 for application/json ContentType.
|
|
type AddUsersHourlyRate1JSONRequestBody = HourlyRateRequest
|
|
|
|
// RemovePermissionsToUserJSONRequestBody defines body for RemovePermissionsToUser for application/json ContentType.
|
|
type RemovePermissionsToUserJSONRequestBody = AddAndRemoveProjectPermissionsRequest
|
|
|
|
// AddPermissionsToUserJSONRequestBody defines body for AddPermissionsToUser for application/json ContentType.
|
|
type AddPermissionsToUserJSONRequestBody = AddAndRemoveProjectPermissionsRequest
|
|
|
|
// ConnectJSONRequestBody defines body for Connect for application/json ContentType.
|
|
type ConnectJSONRequestBody = PumbleIntegrationRequest
|
|
|
|
// SyncClientsJSONRequestBody defines body for SyncClients for application/json ContentType.
|
|
type SyncClientsJSONRequestBody = SyncClientsRequest
|
|
|
|
// SyncProjectsJSONRequestBody defines body for SyncProjects for application/json ContentType.
|
|
type SyncProjectsJSONRequestBody = SyncProjectsRequest
|
|
|
|
// UpdateProjectsJSONRequestBody defines body for UpdateProjects for application/json ContentType.
|
|
type UpdateProjectsJSONRequestBody = UpdateProjectsRequest
|
|
|
|
// Create11JSONRequestBody defines body for Create11 for application/json ContentType.
|
|
type Create11JSONRequestBody = CreateReminderRequest
|
|
|
|
// Update5JSONRequestBody defines body for Update5 for application/json ContentType.
|
|
type Update5JSONRequestBody = CreateReminderRequest
|
|
|
|
// GetDashboardInfoJSONRequestBody defines body for GetDashboardInfo for application/json ContentType.
|
|
type GetDashboardInfoJSONRequestBody = GetMainReportRequest
|
|
|
|
// GetDraftAssignmentsCountJSONRequestBody defines body for GetDraftAssignmentsCount for application/json ContentType.
|
|
type GetDraftAssignmentsCountJSONRequestBody = GetDraftCountRequest
|
|
|
|
// GetFilteredProjectTotalsJSONRequestBody defines body for GetFilteredProjectTotals for application/json ContentType.
|
|
type GetFilteredProjectTotalsJSONRequestBody = ProjectTotalsRequest
|
|
|
|
// PublishAssignmentsJSONRequestBody defines body for PublishAssignments for application/json ContentType.
|
|
type PublishAssignmentsJSONRequestBody = PublishAssignmentsRequest
|
|
|
|
// CreateRecurringJSONRequestBody defines body for CreateRecurring for application/json ContentType.
|
|
type CreateRecurringJSONRequestBody = AssignmentCreateRequest
|
|
|
|
// EditRecurringJSONRequestBody defines body for EditRecurring for application/json ContentType.
|
|
type EditRecurringJSONRequestBody = AssignmentUpdateRequest
|
|
|
|
// EditPeriodForRecurringJSONRequestBody defines body for EditPeriodForRecurring for application/json ContentType.
|
|
type EditPeriodForRecurringJSONRequestBody = AssignmentPeriodRequest
|
|
|
|
// EditRecurringPeriodJSONRequestBody defines body for EditRecurringPeriod for application/json ContentType.
|
|
type EditRecurringPeriodJSONRequestBody = RecurringAssignmentRequest
|
|
|
|
// GetUserTotalsJSONRequestBody defines body for GetUserTotals for application/json ContentType.
|
|
type GetUserTotalsJSONRequestBody = GetUserTotalsRequest
|
|
|
|
// GetFilteredAssignmentsForUserJSONRequestBody defines body for GetFilteredAssignmentsForUser for application/json ContentType.
|
|
type GetFilteredAssignmentsForUserJSONRequestBody = UserAssignmentsRequest
|
|
|
|
// CopyAssignmentJSONRequestBody defines body for CopyAssignment for application/json ContentType.
|
|
type CopyAssignmentJSONRequestBody = CopyAssignmentRequest
|
|
|
|
// SplitAssignmentJSONRequestBody defines body for SplitAssignment for application/json ContentType.
|
|
type SplitAssignmentJSONRequestBody = SplitAssignmentRequest
|
|
|
|
// ShiftScheduleJSONRequestBody defines body for ShiftSchedule for application/json ContentType.
|
|
type ShiftScheduleJSONRequestBody = ShiftScheduleRequest
|
|
|
|
// Create10JSONRequestBody defines body for Create10 for application/json ContentType.
|
|
type Create10JSONRequestBody = MilestoneCreateRequest
|
|
|
|
// Edit1JSONRequestBody defines body for Edit1 for application/json ContentType.
|
|
type Edit1JSONRequestBody = MilestoneUpdateRequest
|
|
|
|
// EditDateJSONRequestBody defines body for EditDate for application/json ContentType.
|
|
type EditDateJSONRequestBody = MilestoneDateRequest
|
|
|
|
// UpdateSidebarJSONRequestBody defines body for UpdateSidebar for application/json ContentType.
|
|
type UpdateSidebarJSONRequestBody = UpdateSidebarRequest
|
|
|
|
// FilterUsersByStatusJSONRequestBody defines body for FilterUsersByStatus for application/json ContentType.
|
|
type FilterUsersByStatusJSONRequestBody = FilterUsersByStatusJSONBody
|
|
|
|
// Delete9JSONRequestBody defines body for Delete9 for application/json ContentType.
|
|
type Delete9JSONRequestBody = DiscardStopwatchRequest
|
|
|
|
// StopJSONRequestBody defines body for Stop for application/json ContentType.
|
|
type StopJSONRequestBody = StopStopwatchRequest
|
|
|
|
// StartJSONRequestBody defines body for Start for application/json ContentType.
|
|
type StartJSONRequestBody = StartStopwatchRequest
|
|
|
|
// DeleteMany1JSONRequestBody defines body for DeleteMany1 for application/json ContentType.
|
|
type DeleteMany1JSONRequestBody = TagIdsRequest
|
|
|
|
// UpdateManyJSONRequestBody defines body for UpdateMany for application/json ContentType.
|
|
type UpdateManyJSONRequestBody = UpdateManyTagsRequest
|
|
|
|
// Create9JSONRequestBody defines body for Create9 for application/json ContentType.
|
|
type Create9JSONRequestBody = TagRequest
|
|
|
|
// ConnectedToApprovedEntriesJSONRequestBody defines body for ConnectedToApprovedEntries for application/json ContentType.
|
|
type ConnectedToApprovedEntriesJSONRequestBody = TagIdsRequest
|
|
|
|
// GetTagsOfIdsJSONRequestBody defines body for GetTagsOfIds for application/json ContentType.
|
|
type GetTagsOfIdsJSONRequestBody = TagIdsRequest
|
|
|
|
// Update4JSONRequestBody defines body for Update4 for application/json ContentType.
|
|
type Update4JSONRequestBody = TagRequest
|
|
|
|
// Create8JSONRequestBody defines body for Create8 for application/json ContentType.
|
|
type Create8JSONRequestBody = TemplateRequest
|
|
|
|
// Update13JSONRequestBody defines body for Update13 for application/json ContentType.
|
|
type Update13JSONRequestBody = TemplatePatchRequest
|
|
|
|
// ActivateJSONRequestBody defines body for Activate for application/json ContentType.
|
|
type ActivateJSONRequestBody = ActivateTemplateRequest
|
|
|
|
// DeactivateJSONRequestBody defines body for Deactivate for application/json ContentType.
|
|
type DeactivateJSONRequestBody = ActivateTemplateRequest
|
|
|
|
// CopyTimeEntriesJSONRequestBody defines body for CopyTimeEntries for application/json ContentType.
|
|
type CopyTimeEntriesJSONRequestBody = CopyEntriesRequest
|
|
|
|
// UpdateBalanceJSONRequestBody defines body for UpdateBalance for application/json ContentType.
|
|
type UpdateBalanceJSONRequestBody = ChangeBalanceRequest
|
|
|
|
// CreatePolicyJSONRequestBody defines body for CreatePolicy for application/json ContentType.
|
|
type CreatePolicyJSONRequestBody = CreatePolicyRequest
|
|
|
|
// UpdatePolicyJSONRequestBody defines body for UpdatePolicy for application/json ContentType.
|
|
type UpdatePolicyJSONRequestBody = UpdatePolicyRequest
|
|
|
|
// Create7JSONRequestBody defines body for Create7 for application/json ContentType.
|
|
type Create7JSONRequestBody = CreateTimeOffRequestRequest
|
|
|
|
// RejectJSONRequestBody defines body for Reject for application/json ContentType.
|
|
type RejectJSONRequestBody = RejectTimeOffRequestRequest
|
|
|
|
// CreateForOther1JSONRequestBody defines body for CreateForOther1 for application/json ContentType.
|
|
type CreateForOther1JSONRequestBody = CreateTimeOffRequestRequest
|
|
|
|
// Get1JSONRequestBody defines body for Get1 for application/json ContentType.
|
|
type Get1JSONRequestBody = GetTimeOffRequestsRequest
|
|
|
|
// GetJSONRequestBody defines body for Get for application/json ContentType.
|
|
type GetJSONRequestBody = GetTimelineRequest
|
|
|
|
// GetTimelineForReportsJSONRequestBody defines body for GetTimelineForReports for application/json ContentType.
|
|
type GetTimelineForReportsJSONRequestBody = GetTimelineRequest
|
|
|
|
// DeleteManyJSONRequestBody defines body for DeleteMany for application/json ContentType.
|
|
type DeleteManyJSONRequestBody = TimeEntryIdsRequest
|
|
|
|
// Create6JSONRequestBody defines body for Create6 for application/json ContentType.
|
|
type Create6JSONRequestBody = CreateTimeEntryRequest
|
|
|
|
// PatchTimeEntriesJSONRequestBody defines body for PatchTimeEntries for application/json ContentType.
|
|
type PatchTimeEntriesJSONRequestBody = TimeEntriesPatchRequest
|
|
|
|
// EndStartedJSONRequestBody defines body for EndStarted for application/json ContentType.
|
|
type EndStartedJSONRequestBody = UpdateTimeEntryEndRequest
|
|
|
|
// CreateFull1JSONRequestBody defines body for CreateFull1 for application/json ContentType.
|
|
type CreateFull1JSONRequestBody = CreateTimeEntryRequest
|
|
|
|
// UpdateInvoicedStatusJSONRequestBody defines body for UpdateInvoicedStatus for application/json ContentType.
|
|
type UpdateInvoicedStatusJSONRequestBody = UpdateInvoicedStatusRequest
|
|
|
|
// RestoreTimeEntriesJSONRequestBody defines body for RestoreTimeEntries for application/json ContentType.
|
|
type RestoreTimeEntriesJSONRequestBody = TimeEntryIdsRequest
|
|
|
|
// CreateForManyJSONRequestBody defines body for CreateForMany for application/json ContentType.
|
|
type CreateForManyJSONRequestBody = CreateTimeEntryForManyRequest
|
|
|
|
// CreateForOthersJSONRequestBody defines body for CreateForOthers for application/json ContentType.
|
|
type CreateForOthersJSONRequestBody = CreateTimeEntryRequest
|
|
|
|
// CreateFullJSONRequestBody defines body for CreateFull for application/json ContentType.
|
|
type CreateFullJSONRequestBody = CreateTimeEntryRequest
|
|
|
|
// PatchJSONRequestBody defines body for Patch for application/json ContentType.
|
|
type PatchJSONRequestBody PatchJSONBody
|
|
|
|
// Update3JSONRequestBody defines body for Update3 for application/json ContentType.
|
|
type Update3JSONRequestBody = UpdateTimeEntryRequest
|
|
|
|
// CreateTimeEntryAttributeJSONRequestBody defines body for CreateTimeEntryAttribute for application/json ContentType.
|
|
type CreateTimeEntryAttributeJSONRequestBody = CreateCustomAttributeRequest
|
|
|
|
// DeleteTimeEntryAttributeJSONRequestBody defines body for DeleteTimeEntryAttribute for application/json ContentType.
|
|
type DeleteTimeEntryAttributeJSONRequestBody = DeleteCustomAttributeRequest
|
|
|
|
// UpdateBillableJSONRequestBody defines body for UpdateBillable for application/json ContentType.
|
|
type UpdateBillableJSONRequestBody = UpdateTimeEntryBillableRequest
|
|
|
|
// UpdateDescriptionJSONRequestBody defines body for UpdateDescription for application/json ContentType.
|
|
type UpdateDescriptionJSONRequestBody = UpdateTimeEntryDescriptionRequest
|
|
|
|
// UpdateEndJSONRequestBody defines body for UpdateEnd for application/json ContentType.
|
|
type UpdateEndJSONRequestBody = UpdateTimeEntryEndRequest
|
|
|
|
// UpdateFullJSONRequestBody defines body for UpdateFull for application/json ContentType.
|
|
type UpdateFullJSONRequestBody = UpdateTimeEntryRequest
|
|
|
|
// UpdateProjectJSONRequestBody defines body for UpdateProject for application/json ContentType.
|
|
type UpdateProjectJSONRequestBody = UpdateTimeEntryProjectRequest
|
|
|
|
// UpdateProjectAndTaskJSONRequestBody defines body for UpdateProjectAndTask for application/json ContentType.
|
|
type UpdateProjectAndTaskJSONRequestBody UpdateProjectAndTaskJSONBody
|
|
|
|
// UpdateAndSplitJSONRequestBody defines body for UpdateAndSplit for application/json ContentType.
|
|
type UpdateAndSplitJSONRequestBody = TimeEntryPatchSplitRequest
|
|
|
|
// SplitTimeEntryJSONRequestBody defines body for SplitTimeEntry for application/json ContentType.
|
|
type SplitTimeEntryJSONRequestBody = TimeEntrySplitRequest
|
|
|
|
// UpdateStartJSONRequestBody defines body for UpdateStart for application/json ContentType.
|
|
type UpdateStartJSONRequestBody = UpdateTimeEntryStartRequest
|
|
|
|
// UpdateTagsJSONRequestBody defines body for UpdateTags for application/json ContentType.
|
|
type UpdateTagsJSONRequestBody = UpdateTimeEntryTagsRequest
|
|
|
|
// UpdateTimeIntervalJSONRequestBody defines body for UpdateTimeInterval for application/json ContentType.
|
|
type UpdateTimeIntervalJSONRequestBody = TimeEntriesDurationRequest
|
|
|
|
// UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.
|
|
type UpdateUserJSONRequestBody = UpdateTimeEntryUserRequest
|
|
|
|
// UpdateCustomFieldJSONRequestBody defines body for UpdateCustomField for application/json ContentType.
|
|
type UpdateCustomFieldJSONRequestBody = UpdateCustomFieldRequest
|
|
|
|
// PenalizeCurrentTimerAndStartNewTimeEntryJSONRequestBody defines body for PenalizeCurrentTimerAndStartNewTimeEntry for application/json ContentType.
|
|
type PenalizeCurrentTimerAndStartNewTimeEntryJSONRequestBody = PenalizeTimeEntryRequest
|
|
|
|
// TransferWorkspaceDeprecatedFlowJSONRequestBody defines body for TransferWorkspaceDeprecatedFlow for application/json ContentType.
|
|
type TransferWorkspaceDeprecatedFlowJSONRequestBody = WorkspaceTransferDeprecatedRequest
|
|
|
|
// TransferWorkspaceJSONRequestBody defines body for TransferWorkspace for application/json ContentType.
|
|
type TransferWorkspaceJSONRequestBody = WorkspaceTransferRequest
|
|
|
|
// CopyTimeEntryCalendarDragJSONRequestBody defines body for CopyTimeEntryCalendarDrag for application/json ContentType.
|
|
type CopyTimeEntryCalendarDragJSONRequestBody = CreateTimeEntryRequest
|
|
|
|
// Create5JSONRequestBody defines body for Create5 for application/json ContentType.
|
|
type Create5JSONRequestBody = CreateUserGroupRequest
|
|
|
|
// GetUserGroupNamesJSONRequestBody defines body for GetUserGroupNames for application/json ContentType.
|
|
type GetUserGroupNamesJSONRequestBody = UsersIdsRequest
|
|
|
|
// GetUserGroupForReportFilterPostJSONRequestBody defines body for GetUserGroupForReportFilterPost for application/json ContentType.
|
|
type GetUserGroupForReportFilterPostJSONRequestBody = UserGroupReportFilterRequest
|
|
|
|
// GetUsersForAttendanceReportFilterJSONRequestBody defines body for GetUsersForAttendanceReportFilter for application/json ContentType.
|
|
type GetUsersForAttendanceReportFilterJSONRequestBody = UserGroupAttendanceFilterRequest
|
|
|
|
// GetUserGroupsJSONRequestBody defines body for GetUserGroups for application/json ContentType.
|
|
type GetUserGroupsJSONRequestBody = GetUserGroupByIdsRequest
|
|
|
|
// RemoveUserJSONRequestBody defines body for RemoveUser for application/json ContentType.
|
|
type RemoveUserJSONRequestBody = AddOrRemoveUsersFromUserGroups
|
|
|
|
// AddUsersToUserGroupsFilterJSONRequestBody defines body for AddUsersToUserGroupsFilter for application/json ContentType.
|
|
type AddUsersToUserGroupsFilterJSONRequestBody = UpdateUsersFromUserGroupsRequest
|
|
|
|
// Update2JSONRequestBody defines body for Update2 for application/json ContentType.
|
|
type Update2JSONRequestBody = UpdateUserGroupNameRequest
|
|
|
|
// GetUsersJSONRequestBody defines body for GetUsers for application/json ContentType.
|
|
type GetUsersJSONRequestBody = GetUsersByIdsRequest
|
|
|
|
// AddUsersJSONRequestBody defines body for AddUsers for application/json ContentType.
|
|
type AddUsersJSONRequestBody = AddUsersToWorkspaceRequest
|
|
|
|
// SetMembershipsJSONRequestBody defines body for SetMemberships for application/json ContentType.
|
|
type SetMembershipsJSONRequestBody = SetWorkspaceMembershipStatusRequest
|
|
|
|
// CreateDeprecatedJSONRequestBody defines body for CreateDeprecated for application/json ContentType.
|
|
type CreateDeprecatedJSONRequestBody = CreateApprovalRequest
|
|
|
|
// GetApprovedTotalsJSONRequestBody defines body for GetApprovedTotals for application/json ContentType.
|
|
type GetApprovedTotalsJSONRequestBody = GetApprovalTotalsRequest
|
|
|
|
// CreateForOtherDeprecatedJSONRequestBody defines body for CreateForOtherDeprecated for application/json ContentType.
|
|
type CreateForOtherDeprecatedJSONRequestBody = CreateApprovalRequest
|
|
|
|
// GetPreviewJSONRequestBody defines body for GetPreview for application/json ContentType.
|
|
type GetPreviewJSONRequestBody = GetApprovalTotalsRequest
|
|
|
|
// SetCostRateForUser1JSONRequestBody defines body for SetCostRateForUser1 for application/json ContentType.
|
|
type SetCostRateForUser1JSONRequestBody = CostRateRequest
|
|
|
|
// UpsertUserCustomFieldValueJSONRequestBody defines body for UpsertUserCustomFieldValue for application/json ContentType.
|
|
type UpsertUserCustomFieldValueJSONRequestBody = UserCustomFieldPutRequest
|
|
|
|
// CreateFavoriteTimeEntryJSONRequestBody defines body for CreateFavoriteTimeEntry for application/json ContentType.
|
|
type CreateFavoriteTimeEntryJSONRequestBody = CreateFavoriteEntriesRequest
|
|
|
|
// ReorderInvoiceItemJSONRequestBody defines body for ReorderInvoiceItem for application/json ContentType.
|
|
type ReorderInvoiceItemJSONRequestBody = ReorderFavoriteEntriesRequest
|
|
|
|
// Update1JSONRequestBody defines body for Update1 for application/json ContentType.
|
|
type Update1JSONRequestBody = UpdateFavoriteEntriesRequest
|
|
|
|
// SetHourlyRateForUser1JSONRequestBody defines body for SetHourlyRateForUser1 for application/json ContentType.
|
|
type SetHourlyRateForUser1JSONRequestBody = HourlyRateRequest
|
|
|
|
// ReSubmitJSONRequestBody defines body for ReSubmit for application/json ContentType.
|
|
type ReSubmitJSONRequestBody = SubmitApprovalRequest
|
|
|
|
// UpdateUserRolesJSONRequestBody defines body for UpdateUserRoles for application/json ContentType.
|
|
type UpdateUserRolesJSONRequestBody = UpdateUserRolesRequest
|
|
|
|
// Create2JSONRequestBody defines body for Create2 for application/json ContentType.
|
|
type Create2JSONRequestBody = SubmitApprovalRequest
|
|
|
|
// CreateForOtherJSONRequestBody defines body for CreateForOther for application/json ContentType.
|
|
type CreateForOtherJSONRequestBody = SubmitApprovalRequest
|
|
|
|
// Create1JSONRequestBody defines body for Create1 for application/json ContentType.
|
|
type Create1JSONRequestBody = WebhookRequest
|
|
|
|
// UpdateJSONRequestBody defines body for Update for application/json ContentType.
|
|
type UpdateJSONRequestBody = WebhookRequest
|
|
|
|
// AsPolicyFullDto returns the union data inside the PolicyDto as a PolicyFullDto
|
|
func (t PolicyDto) AsPolicyFullDto() (PolicyFullDto, error) {
|
|
var body PolicyFullDto
|
|
err := json.Unmarshal(t.union, &body)
|
|
return body, err
|
|
}
|
|
|
|
// FromPolicyFullDto overwrites any union data inside the PolicyDto as the provided PolicyFullDto
|
|
func (t *PolicyDto) FromPolicyFullDto(v PolicyFullDto) error {
|
|
b, err := json.Marshal(v)
|
|
t.union = b
|
|
return err
|
|
}
|
|
|
|
// MergePolicyFullDto performs a merge with any union data inside the PolicyDto, using the provided PolicyFullDto
|
|
func (t *PolicyDto) MergePolicyFullDto(v PolicyFullDto) error {
|
|
b, err := json.Marshal(v)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
merged, err := runtime.JSONMerge(t.union, b)
|
|
t.union = merged
|
|
return err
|
|
}
|
|
|
|
// AsPolicyRedactedDto returns the union data inside the PolicyDto as a PolicyRedactedDto
|
|
func (t PolicyDto) AsPolicyRedactedDto() (PolicyRedactedDto, error) {
|
|
var body PolicyRedactedDto
|
|
err := json.Unmarshal(t.union, &body)
|
|
return body, err
|
|
}
|
|
|
|
// FromPolicyRedactedDto overwrites any union data inside the PolicyDto as the provided PolicyRedactedDto
|
|
func (t *PolicyDto) FromPolicyRedactedDto(v PolicyRedactedDto) error {
|
|
b, err := json.Marshal(v)
|
|
t.union = b
|
|
return err
|
|
}
|
|
|
|
// MergePolicyRedactedDto performs a merge with any union data inside the PolicyDto, using the provided PolicyRedactedDto
|
|
func (t *PolicyDto) MergePolicyRedactedDto(v PolicyRedactedDto) error {
|
|
b, err := json.Marshal(v)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
merged, err := runtime.JSONMerge(t.union, b)
|
|
t.union = merged
|
|
return err
|
|
}
|
|
|
|
func (t PolicyDto) MarshalJSON() ([]byte, error) {
|
|
b, err := t.union.MarshalJSON()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
object := make(map[string]json.RawMessage)
|
|
if t.union != nil {
|
|
err = json.Unmarshal(b, &object)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
}
|
|
|
|
if t.AllowHalfDay != nil {
|
|
object["allowHalfDay"], err = json.Marshal(t.AllowHalfDay)
|
|
if err != nil {
|
|
return nil, fmt.Errorf("error marshaling 'allowHalfDay': %w", err)
|
|
}
|
|
}
|
|
|
|
if t.AllowNegativeBalance != nil {
|
|
object["allowNegativeBalance"], err = json.Marshal(t.AllowNegativeBalance)
|
|
if err != nil {
|
|
return nil, fmt.Errorf("error marshaling 'allowNegativeBalance': %w", err)
|
|
}
|
|
}
|
|
|
|
if t.Color != nil {
|
|
object["color"], err = json.Marshal(t.Color)
|
|
if err != nil {
|
|
return nil, fmt.Errorf("error marshaling 'color': %w", err)
|
|
}
|
|
}
|
|
|
|
if t.Id != nil {
|
|
object["id"], err = json.Marshal(t.Id)
|
|
if err != nil {
|
|
return nil, fmt.Errorf("error marshaling 'id': %w", err)
|
|
}
|
|
}
|
|
|
|
if t.Name != nil {
|
|
object["name"], err = json.Marshal(t.Name)
|
|
if err != nil {
|
|
return nil, fmt.Errorf("error marshaling 'name': %w", err)
|
|
}
|
|
}
|
|
|
|
if t.NegativeBalance != nil {
|
|
object["negativeBalance"], err = json.Marshal(t.NegativeBalance)
|
|
if err != nil {
|
|
return nil, fmt.Errorf("error marshaling 'negativeBalance': %w", err)
|
|
}
|
|
}
|
|
|
|
if t.TimeUnit != nil {
|
|
object["timeUnit"], err = json.Marshal(t.TimeUnit)
|
|
if err != nil {
|
|
return nil, fmt.Errorf("error marshaling 'timeUnit': %w", err)
|
|
}
|
|
}
|
|
|
|
if t.WorkspaceId != nil {
|
|
object["workspaceId"], err = json.Marshal(t.WorkspaceId)
|
|
if err != nil {
|
|
return nil, fmt.Errorf("error marshaling 'workspaceId': %w", err)
|
|
}
|
|
}
|
|
b, err = json.Marshal(object)
|
|
return b, err
|
|
}
|
|
|
|
func (t *PolicyDto) UnmarshalJSON(b []byte) error {
|
|
err := t.union.UnmarshalJSON(b)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
object := make(map[string]json.RawMessage)
|
|
err = json.Unmarshal(b, &object)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
if raw, found := object["allowHalfDay"]; found {
|
|
err = json.Unmarshal(raw, &t.AllowHalfDay)
|
|
if err != nil {
|
|
return fmt.Errorf("error reading 'allowHalfDay': %w", err)
|
|
}
|
|
}
|
|
|
|
if raw, found := object["allowNegativeBalance"]; found {
|
|
err = json.Unmarshal(raw, &t.AllowNegativeBalance)
|
|
if err != nil {
|
|
return fmt.Errorf("error reading 'allowNegativeBalance': %w", err)
|
|
}
|
|
}
|
|
|
|
if raw, found := object["color"]; found {
|
|
err = json.Unmarshal(raw, &t.Color)
|
|
if err != nil {
|
|
return fmt.Errorf("error reading 'color': %w", err)
|
|
}
|
|
}
|
|
|
|
if raw, found := object["id"]; found {
|
|
err = json.Unmarshal(raw, &t.Id)
|
|
if err != nil {
|
|
return fmt.Errorf("error reading 'id': %w", err)
|
|
}
|
|
}
|
|
|
|
if raw, found := object["name"]; found {
|
|
err = json.Unmarshal(raw, &t.Name)
|
|
if err != nil {
|
|
return fmt.Errorf("error reading 'name': %w", err)
|
|
}
|
|
}
|
|
|
|
if raw, found := object["negativeBalance"]; found {
|
|
err = json.Unmarshal(raw, &t.NegativeBalance)
|
|
if err != nil {
|
|
return fmt.Errorf("error reading 'negativeBalance': %w", err)
|
|
}
|
|
}
|
|
|
|
if raw, found := object["timeUnit"]; found {
|
|
err = json.Unmarshal(raw, &t.TimeUnit)
|
|
if err != nil {
|
|
return fmt.Errorf("error reading 'timeUnit': %w", err)
|
|
}
|
|
}
|
|
|
|
if raw, found := object["workspaceId"]; found {
|
|
err = json.Unmarshal(raw, &t.WorkspaceId)
|
|
if err != nil {
|
|
return fmt.Errorf("error reading 'workspaceId': %w", err)
|
|
}
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
// RequestEditorFn is the function signature for the RequestEditor callback function
|
|
type RequestEditorFn func(ctx context.Context, req *http.Request) error
|
|
|
|
// Doer performs HTTP requests.
|
|
//
|
|
// The standard http.Client implements this interface.
|
|
type HttpRequestDoer interface {
|
|
Do(req *http.Request) (*http.Response, error)
|
|
}
|
|
|
|
// Client which conforms to the OpenAPI3 specification for this service.
|
|
type Client 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
|
|
}
|
|
|
|
// ClientOption allows setting custom parameters during construction
|
|
type ClientOption func(*Client) error
|
|
|
|
// Creates a new Client, with reasonable defaults
|
|
func NewClient(server string, opts ...ClientOption) (*Client, error) {
|
|
// create a client with sane default values
|
|
client := Client{
|
|
Server: server,
|
|
}
|
|
// mutate client and add all optional params
|
|
for _, o := range opts {
|
|
if err := o(&client); err != nil {
|
|
return nil, err
|
|
}
|
|
}
|
|
// ensure the server URL always has a trailing slash
|
|
if !strings.HasSuffix(client.Server, "/") {
|
|
client.Server += "/"
|
|
}
|
|
// create httpClient, if not already present
|
|
if client.Client == nil {
|
|
client.Client = &http.Client{}
|
|
}
|
|
return &client, nil
|
|
}
|
|
|
|
// WithHTTPClient allows overriding the default Doer, which is
|
|
// automatically created using http.Client. This is useful for tests.
|
|
func WithHTTPClient(doer HttpRequestDoer) ClientOption {
|
|
return func(c *Client) error {
|
|
c.Client = doer
|
|
return nil
|
|
}
|
|
}
|
|
|
|
// WithRequestEditorFn allows setting up a callback function, which will be
|
|
// called right before sending the request. This can be used to mutate the request.
|
|
func WithRequestEditorFn(fn RequestEditorFn) ClientOption {
|
|
return func(c *Client) error {
|
|
c.RequestEditors = append(c.RequestEditors, fn)
|
|
return nil
|
|
}
|
|
}
|
|
|
|
// The interface specification for the client above.
|
|
type ClientInterface interface {
|
|
// GetInitialData request
|
|
GetInitialData(ctx context.Context, reportId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DownloadReportWithBody request with any body
|
|
DownloadReportWithBody(ctx context.Context, reportId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
DownloadReport(ctx context.Context, reportId string, body DownloadReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ResetPin request
|
|
ResetPin(ctx context.Context, reportId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ValidatePinWithBody request with any body
|
|
ValidatePinWithBody(ctx context.Context, reportId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
ValidatePin(ctx context.Context, reportId string, body ValidatePinJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateSmtpConfigurationWithBody request with any body
|
|
UpdateSmtpConfigurationWithBody(ctx context.Context, systemSettingsId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateSmtpConfiguration(ctx context.Context, systemSettingsId string, body UpdateSmtpConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DisableAccessToEntitiesInTransferWithBody request with any body
|
|
DisableAccessToEntitiesInTransferWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
DisableAccessToEntitiesInTransfer(ctx context.Context, body DisableAccessToEntitiesInTransferJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// EnableAccessToEntitiesInTransfer request
|
|
EnableAccessToEntitiesInTransfer(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UsersExistWithBody request with any body
|
|
UsersExistWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UsersExist(ctx context.Context, body UsersExistJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// HandleCleanupOnSourceRegion request
|
|
HandleCleanupOnSourceRegion(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// HandleTransferCompletedOnSourceRegion request
|
|
HandleTransferCompletedOnSourceRegion(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// HandleTransferCompletedFailureWithBody request with any body
|
|
HandleTransferCompletedFailureWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
HandleTransferCompletedFailure(ctx context.Context, workspaceId string, body HandleTransferCompletedFailureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// HandleTransferCompletedSuccessWithBody request with any body
|
|
HandleTransferCompletedSuccessWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
HandleTransferCompletedSuccess(ctx context.Context, workspaceId string, body HandleTransferCompletedSuccessJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetAllUsers request
|
|
GetAllUsers(ctx context.Context, params *GetAllUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUserInfoWithBody request with any body
|
|
GetUserInfoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetUserInfo(ctx context.Context, body GetUserInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUserMembershipsAndInvitesWithBody request with any body
|
|
GetUserMembershipsAndInvitesWithBody(ctx context.Context, params *GetUserMembershipsAndInvitesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetUserMembershipsAndInvites(ctx context.Context, params *GetUserMembershipsAndInvitesParams, body GetUserMembershipsAndInvitesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CheckForNewsletterSubscription request
|
|
CheckForNewsletterSubscription(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// AddNotificationsWithBody request with any body
|
|
AddNotificationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetNews request
|
|
GetNews(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteNews request
|
|
DeleteNews(ctx context.Context, newsId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateNewsWithBody request with any body
|
|
UpdateNewsWithBody(ctx context.Context, newsId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// SearchAllUsers request
|
|
SearchAllUsers(ctx context.Context, params *SearchAllUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// NumberOfUsersRegistered request
|
|
NumberOfUsersRegistered(ctx context.Context, params *NumberOfUsersRegisteredParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsersOnWorkspace request
|
|
GetUsersOnWorkspace(ctx context.Context, workspaceId string, params *GetUsersOnWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// BulkEditUsersWithBody request with any body
|
|
BulkEditUsersWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
BulkEditUsers(ctx context.Context, workspaceId string, body BulkEditUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsersOfWorkspace5 request
|
|
GetUsersOfWorkspace5(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace5Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetInfoWithBody request with any body
|
|
GetInfoWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetInfo(ctx context.Context, workspaceId string, body GetInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetMembersInfo request
|
|
GetMembersInfo(ctx context.Context, workspaceId string, params *GetMembersInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUserNamesWithBody request with any body
|
|
GetUserNamesWithBody(ctx context.Context, workspaceId string, params *GetUserNamesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetUserNames(ctx context.Context, workspaceId string, params *GetUserNamesParams, body GetUserNamesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// FindPoliciesToBeApprovedByUser request
|
|
FindPoliciesToBeApprovedByUser(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsersAndUsersFromUserGroupsAssignedToProject request
|
|
GetUsersAndUsersFromUserGroupsAssignedToProject(ctx context.Context, workspaceId string, projectId string, params *GetUsersAndUsersFromUserGroupsAssignedToProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsersForProjectMembersFilterWithBody request with any body
|
|
GetUsersForProjectMembersFilterWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetUsersForProjectMembersFilter(ctx context.Context, workspaceId string, projectId string, body GetUsersForProjectMembersFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsersForAttendanceReportFilter1WithBody request with any body
|
|
GetUsersForAttendanceReportFilter1WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetUsersForAttendanceReportFilter1(ctx context.Context, workspaceId string, body GetUsersForAttendanceReportFilter1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsersOfWorkspace4 request
|
|
GetUsersOfWorkspace4(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace4Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsersForReportFilterOld request
|
|
GetUsersForReportFilterOld(ctx context.Context, workspaceId string, params *GetUsersForReportFilterOldParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsersForReportFilterWithBody request with any body
|
|
GetUsersForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetUsersForReportFilter(ctx context.Context, workspaceId string, body GetUsersForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsersOfUserGroup request
|
|
GetUsersOfUserGroup(ctx context.Context, workspaceId string, userGroupId string, params *GetUsersOfUserGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsersOfWorkspace3 request
|
|
GetUsersOfWorkspace3(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace3Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsersOfWorkspace2 request
|
|
GetUsersOfWorkspace2(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUser request
|
|
GetUser(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateTimeTrackingSettings1WithBody request with any body
|
|
UpdateTimeTrackingSettings1WithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateTimeTrackingSettings1(ctx context.Context, userId string, body UpdateTimeTrackingSettings1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateDashboardSelectionWithBody request with any body
|
|
UpdateDashboardSelectionWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateDashboardSelection(ctx context.Context, userId string, body UpdateDashboardSelectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// SetDefaultWorkspace request
|
|
SetDefaultWorkspace(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteUserWithBody request with any body
|
|
DeleteUserWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
DeleteUser(ctx context.Context, userId string, body DeleteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ChangeEmailWithBody request with any body
|
|
ChangeEmailWithBody(ctx context.Context, userId string, params *ChangeEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
ChangeEmail(ctx context.Context, userId string, params *ChangeEmailParams, body ChangeEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// HasPendingEmailChange request
|
|
HasPendingEmailChange(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateLangWithBody request with any body
|
|
UpdateLangWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateLang(ctx context.Context, userId string, body UpdateLangJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// MarkAsRead1WithBody request with any body
|
|
MarkAsRead1WithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
MarkAsRead1(ctx context.Context, userId string, body MarkAsRead1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// MarkAsReadWithBody request with any body
|
|
MarkAsReadWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
MarkAsRead(ctx context.Context, userId string, body MarkAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ChangeNameAdminWithBody request with any body
|
|
ChangeNameAdminWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
ChangeNameAdmin(ctx context.Context, userId string, body ChangeNameAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetNewsForUser request
|
|
GetNewsForUser(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ReadNewsWithBody request with any body
|
|
ReadNewsWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
ReadNews(ctx context.Context, userId string, body ReadNewsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetNotifications request
|
|
GetNotifications(ctx context.Context, userId string, params *GetNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdatePictureWithBody request with any body
|
|
UpdatePictureWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdatePicture(ctx context.Context, userId string, body UpdatePictureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateNameAndProfilePictureWithBody request with any body
|
|
UpdateNameAndProfilePictureWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateNameAndProfilePicture(ctx context.Context, userId string, body UpdateNameAndProfilePictureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateSettingsWithBody request with any body
|
|
UpdateSettingsWithBody(ctx context.Context, userId string, params *UpdateSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateSettings(ctx context.Context, userId string, params *UpdateSettingsParams, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateSummaryReportSettingsWithBody request with any body
|
|
UpdateSummaryReportSettingsWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateSummaryReportSettings(ctx context.Context, userId string, body UpdateSummaryReportSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateTimeTrackingSettingsWithBody request with any body
|
|
UpdateTimeTrackingSettingsWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateTimeTrackingSettings(ctx context.Context, userId string, body UpdateTimeTrackingSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateTimezoneWithBody request with any body
|
|
UpdateTimezoneWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateTimezone(ctx context.Context, userId string, body UpdateTimezoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetVerificationCampaignNotifications request
|
|
GetVerificationCampaignNotifications(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// MarkNotificationsAsReadWithBody request with any body
|
|
MarkNotificationsAsReadWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
MarkNotificationsAsRead(ctx context.Context, userId string, body MarkNotificationsAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetWorkCapacityForUser request
|
|
GetWorkCapacityForUser(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsersWorkingDays request
|
|
GetUsersWorkingDays(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UploadImageWithBody request with any body
|
|
UploadImageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetAllUnfinishedWalkthroughTypes request
|
|
GetAllUnfinishedWalkthroughTypes(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// FinishWalkthroughWithBody request with any body
|
|
FinishWalkthroughWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
FinishWalkthrough(ctx context.Context, userId string, body FinishWalkthroughJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetOwnerEmailByWorkspaceId request
|
|
GetOwnerEmailByWorkspaceId(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetWorkspacesOfUser request
|
|
GetWorkspacesOfUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateWithBody request with any body
|
|
CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create(ctx context.Context, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetWorkspaceInfo request
|
|
GetWorkspaceInfo(ctx context.Context, params *GetWorkspaceInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// InsertLegacyPlanNotificationsWithBody request with any body
|
|
InsertLegacyPlanNotificationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
InsertLegacyPlanNotifications(ctx context.Context, body InsertLegacyPlanNotificationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetPermissionsToUserForWorkspacesWithBody request with any body
|
|
GetPermissionsToUserForWorkspacesWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetPermissionsToUserForWorkspaces(ctx context.Context, userId string, body GetPermissionsToUserForWorkspacesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// LeaveWorkspace request
|
|
LeaveWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetWorkspaceById request
|
|
GetWorkspaceById(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateWorkspaceWithBody request with any body
|
|
UpdateWorkspaceWithBody(ctx context.Context, workspaceId string, params *UpdateWorkspaceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateWorkspace(ctx context.Context, workspaceId string, params *UpdateWorkspaceParams, body UpdateWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetABTesting request
|
|
GetABTesting(ctx context.Context, workspaceId string, params *GetABTestingParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetActiveMembers request
|
|
GetActiveMembers(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UninstallWithBody request with any body
|
|
UninstallWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Uninstall(ctx context.Context, workspaceId string, body UninstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetInstalledAddons request
|
|
GetInstalledAddons(ctx context.Context, workspaceId string, params *GetInstalledAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// InstallWithBody request with any body
|
|
InstallWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Install(ctx context.Context, workspaceId string, body InstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetInstalledAddonsIdNamePair request
|
|
GetInstalledAddonsIdNamePair(ctx context.Context, workspaceId string, params *GetInstalledAddonsIdNamePairParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetInstalledAddonsByKeysWithBody request with any body
|
|
GetInstalledAddonsByKeysWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetInstalledAddonsByKeys(ctx context.Context, workspaceId string, body GetInstalledAddonsByKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Uninstall1 request
|
|
Uninstall1(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetAddonById request
|
|
GetAddonById(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateSettings1WithBody request with any body
|
|
UpdateSettings1WithBody(ctx context.Context, workspaceId string, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateSettings1(ctx context.Context, workspaceId string, addonId string, body UpdateSettings1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateStatus3WithBody request with any body
|
|
UpdateStatus3WithBody(ctx context.Context, workspaceId string, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateStatus3(ctx context.Context, workspaceId string, addonId string, body UpdateStatus3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetAddonUserJWT request
|
|
GetAddonUserJWT(ctx context.Context, workspaceId string, addonId string, params *GetAddonUserJWTParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetAddonWebhooks request
|
|
GetAddonWebhooks(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RemoveUninstalledAddon request
|
|
RemoveUninstalledAddon(ctx context.Context, workspaceId string, addonKey string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ListOfWorkspace1 request
|
|
ListOfWorkspace1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create20WithBody request with any body
|
|
Create20WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create20(ctx context.Context, workspaceId string, body Create20JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete18 request
|
|
Delete18(ctx context.Context, workspaceId string, alertId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Update11WithBody request with any body
|
|
Update11WithBody(ctx context.Context, workspaceId string, alertId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Update11(ctx context.Context, workspaceId string, alertId string, body Update11JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetAllowedUpdates request
|
|
GetAllowedUpdates(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ApproveRequestsWithBody request with any body
|
|
ApproveRequestsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
ApproveRequests(ctx context.Context, workspaceId string, body ApproveRequestsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CountWithBody request with any body
|
|
CountWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Count(ctx context.Context, workspaceId string, body CountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// HasPending request
|
|
HasPending(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RemindManagersToApproveWithBody request with any body
|
|
RemindManagersToApproveWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
RemindManagersToApprove(ctx context.Context, workspaceId string, body RemindManagersToApproveJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RemindUsersToSubmitWithBody request with any body
|
|
RemindUsersToSubmitWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
RemindUsersToSubmit(ctx context.Context, workspaceId string, body RemindUsersToSubmitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApprovalGroupsWithBody request with any body
|
|
GetApprovalGroupsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetApprovalGroups(ctx context.Context, workspaceId string, body GetApprovalGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUnsubmittedSummariesWithBody request with any body
|
|
GetUnsubmittedSummariesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetUnsubmittedSummaries(ctx context.Context, workspaceId string, body GetUnsubmittedSummariesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// WithdrawAllOfWorkspace request
|
|
WithdrawAllOfWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetRequestsByWorkspace request
|
|
GetRequestsByWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApprovalRequest request
|
|
GetApprovalRequest(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateStatus2WithBody request with any body
|
|
UpdateStatus2WithBody(ctx context.Context, workspaceId string, approvalRequestId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateStatus2(ctx context.Context, workspaceId string, approvalRequestId string, body UpdateStatus2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApprovalDashboard request
|
|
GetApprovalDashboard(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApprovalDetails request
|
|
GetApprovalDetails(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// FetchCustomAttributesWithBody request with any body
|
|
FetchCustomAttributesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
FetchCustomAttributes(ctx context.Context, workspaceId string, body FetchCustomAttributesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CheckWorkspaceTransferPossibility request
|
|
CheckWorkspaceTransferPossibility(ctx context.Context, workspaceId string, params *CheckWorkspaceTransferPossibilityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteMany3WithBody request with any body
|
|
DeleteMany3WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
DeleteMany3(ctx context.Context, workspaceId string, body DeleteMany3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetClients1 request
|
|
GetClients1(ctx context.Context, workspaceId string, params *GetClients1Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateMany2WithBody request with any body
|
|
UpdateMany2WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateMany2(ctx context.Context, workspaceId string, body UpdateMany2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create19WithBody request with any body
|
|
Create19WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create19(ctx context.Context, workspaceId string, body Create19JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetArchivePermissionsWithBody request with any body
|
|
GetArchivePermissionsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetArchivePermissions(ctx context.Context, workspaceId string, body GetArchivePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// HaveRelatedTasksWithBody request with any body
|
|
HaveRelatedTasksWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
HaveRelatedTasks(ctx context.Context, workspaceId string, body HaveRelatedTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetClientsOfIdsWithBody request with any body
|
|
GetClientsOfIdsWithBody(ctx context.Context, workspaceId string, params *GetClientsOfIdsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetClientsOfIds(ctx context.Context, workspaceId string, params *GetClientsOfIdsParams, body GetClientsOfIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetClientsForInvoiceFilter1 request
|
|
GetClientsForInvoiceFilter1(ctx context.Context, workspaceId string, params *GetClientsForInvoiceFilter1Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetClients2 request
|
|
GetClients2(ctx context.Context, workspaceId string, params *GetClients2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetClientsForReportFilter request
|
|
GetClientsForReportFilter(ctx context.Context, workspaceId string, params *GetClientsForReportFilterParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetClientIdsForReportFilter request
|
|
GetClientIdsForReportFilter(ctx context.Context, workspaceId string, params *GetClientIdsForReportFilterParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTimeOffPoliciesAndHolidaysForClientWithBody request with any body
|
|
GetTimeOffPoliciesAndHolidaysForClientWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetTimeOffPoliciesAndHolidaysForClient(ctx context.Context, workspaceId string, body GetTimeOffPoliciesAndHolidaysForClientJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete17 request
|
|
Delete17(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetClient request
|
|
GetClient(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetProjectsArchivePermissions request
|
|
GetProjectsArchivePermissions(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Update10WithBody request with any body
|
|
Update10WithBody(ctx context.Context, workspaceId string, id string, params *Update10Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Update10(ctx context.Context, workspaceId string, id string, params *Update10Params, body Update10JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// SetCostRate2WithBody request with any body
|
|
SetCostRate2WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
SetCostRate2(ctx context.Context, workspaceId string, body SetCostRate2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetCoupon request
|
|
GetCoupon(ctx context.Context, workspaceId string, params *GetCouponParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetWorkspaceCurrencies request
|
|
GetWorkspaceCurrencies(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateCurrencyWithBody request with any body
|
|
CreateCurrencyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateCurrency(ctx context.Context, workspaceId string, body CreateCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RemoveCurrency request
|
|
RemoveCurrency(ctx context.Context, workspaceId string, currencyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetCurrency request
|
|
GetCurrency(ctx context.Context, workspaceId string, currencyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateCurrencyCodeWithBody request with any body
|
|
UpdateCurrencyCodeWithBody(ctx context.Context, workspaceId string, currencyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateCurrencyCode(ctx context.Context, workspaceId string, currencyId string, body UpdateCurrencyCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// SetCurrencyWithBody request with any body
|
|
SetCurrencyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
SetCurrency(ctx context.Context, workspaceId string, body SetCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// OfWorkspace request
|
|
OfWorkspace(ctx context.Context, workspaceId string, params *OfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create18WithBody request with any body
|
|
Create18WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create18(ctx context.Context, workspaceId string, body Create18JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// OfWorkspaceWithRequiredAvailability request
|
|
OfWorkspaceWithRequiredAvailability(ctx context.Context, workspaceId string, params *OfWorkspaceWithRequiredAvailabilityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete16 request
|
|
Delete16(ctx context.Context, workspaceId string, customFieldId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// EditWithBody request with any body
|
|
EditWithBody(ctx context.Context, workspaceId string, customFieldId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Edit(ctx context.Context, workspaceId string, customFieldId string, body EditJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RemoveDefaultValueOfProject request
|
|
RemoveDefaultValueOfProject(ctx context.Context, workspaceId string, customFieldId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// EditDefaultValuesWithBody request with any body
|
|
EditDefaultValuesWithBody(ctx context.Context, workspaceId string, customFieldId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
EditDefaultValues(ctx context.Context, workspaceId string, customFieldId string, projectId string, body EditDefaultValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetOfProject request
|
|
GetOfProject(ctx context.Context, workspaceId string, projectId string, params *GetOfProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateCustomLabelsWithBody request with any body
|
|
UpdateCustomLabelsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateCustomLabels(ctx context.Context, workspaceId string, body UpdateCustomLabelsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// AddEmailWithBody request with any body
|
|
AddEmailWithBody(ctx context.Context, workspaceId string, userId string, params *AddEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
AddEmail(ctx context.Context, workspaceId string, userId string, params *AddEmailParams, body AddEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteManyExpensesWithBody request with any body
|
|
DeleteManyExpensesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
DeleteManyExpenses(ctx context.Context, workspaceId string, body DeleteManyExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetExpenses request
|
|
GetExpenses(ctx context.Context, workspaceId string, params *GetExpensesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateExpenseWithBody request with any body
|
|
CreateExpenseWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetCategories request
|
|
GetCategories(ctx context.Context, workspaceId string, params *GetCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create17WithBody request with any body
|
|
Create17WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create17(ctx context.Context, workspaceId string, body Create17JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetCategoriesByIds request
|
|
GetCategoriesByIds(ctx context.Context, workspaceId string, params *GetCategoriesByIdsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteCategory request
|
|
DeleteCategory(ctx context.Context, workspaceId string, categoryId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateCategoryWithBody request with any body
|
|
UpdateCategoryWithBody(ctx context.Context, workspaceId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateCategory(ctx context.Context, workspaceId string, categoryId string, body UpdateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateStatus1WithBody request with any body
|
|
UpdateStatus1WithBody(ctx context.Context, workspaceId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateStatus1(ctx context.Context, workspaceId string, categoryId string, body UpdateStatus1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetExpensesInDateRange request
|
|
GetExpensesInDateRange(ctx context.Context, workspaceId string, params *GetExpensesInDateRangeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateInvoicedStatus1WithBody request with any body
|
|
UpdateInvoicedStatus1WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateInvoicedStatus1(ctx context.Context, workspaceId string, body UpdateInvoicedStatus1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RestoreManyExpensesWithBody request with any body
|
|
RestoreManyExpensesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
RestoreManyExpenses(ctx context.Context, workspaceId string, body RestoreManyExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteExpense request
|
|
DeleteExpense(ctx context.Context, workspaceId string, expenseId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetExpense request
|
|
GetExpense(ctx context.Context, workspaceId string, expenseId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateExpenseWithBody request with any body
|
|
UpdateExpenseWithBody(ctx context.Context, workspaceId string, expenseId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DownloadFile request
|
|
DownloadFile(ctx context.Context, workspaceId string, expenseId string, fileId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ImportFileDataWithBody request with any body
|
|
ImportFileDataWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
ImportFileData(ctx context.Context, workspaceId string, body ImportFileDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CheckUsersForImport request
|
|
CheckUsersForImport(ctx context.Context, workspaceId string, fileImportId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetHolidays request
|
|
GetHolidays(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create16WithBody request with any body
|
|
Create16WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create16(ctx context.Context, workspaceId string, body Create16JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete15 request
|
|
Delete15(ctx context.Context, workspaceId string, holidayId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Update9WithBody request with any body
|
|
Update9WithBody(ctx context.Context, workspaceId string, holidayId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Update9(ctx context.Context, workspaceId string, holidayId string, body Update9JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// SetHourlyRate2WithBody request with any body
|
|
SetHourlyRate2WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
SetHourlyRate2(ctx context.Context, workspaceId string, body SetHourlyRate2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetInvitedEmailsInfoWithBody request with any body
|
|
GetInvitedEmailsInfoWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetInvitedEmailsInfo(ctx context.Context, workspaceId string, body GetInvitedEmailsInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetInvoiceEmailTemplates request
|
|
GetInvoiceEmailTemplates(ctx context.Context, workspaceId string, params *GetInvoiceEmailTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpsertInvoiceEmailTemplateWithBody request with any body
|
|
UpsertInvoiceEmailTemplateWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpsertInvoiceEmailTemplate(ctx context.Context, workspaceId string, body UpsertInvoiceEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetInvoiceEmailData request
|
|
GetInvoiceEmailData(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// SendInvoiceEmailWithBody request with any body
|
|
SendInvoiceEmailWithBody(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
SendInvoiceEmail(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, body SendInvoiceEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateInvoiceWithBody request with any body
|
|
CreateInvoiceWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateInvoice(ctx context.Context, workspaceId string, body CreateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetAllCompanies request
|
|
GetAllCompanies(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateCompanyWithBody request with any body
|
|
CreateCompanyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateCompany(ctx context.Context, workspaceId string, body CreateCompanyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateCompaniesInWorkspaceWithBody request with any body
|
|
UpdateCompaniesInWorkspaceWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateCompaniesInWorkspace(ctx context.Context, workspaceId string, body UpdateCompaniesInWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CountAllCompanies request
|
|
CountAllCompanies(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetClientsForInvoiceFilter request
|
|
GetClientsForInvoiceFilter(ctx context.Context, workspaceId string, params *GetClientsForInvoiceFilterParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteCompany request
|
|
DeleteCompany(ctx context.Context, workspaceId string, companyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetCompanyById request
|
|
GetCompanyById(ctx context.Context, workspaceId string, companyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateCompanyWithBody request with any body
|
|
UpdateCompanyWithBody(ctx context.Context, workspaceId string, companyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateCompany(ctx context.Context, workspaceId string, companyId string, body UpdateCompanyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetInvoicesInfoWithBody request with any body
|
|
GetInvoicesInfoWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetInvoicesInfo(ctx context.Context, workspaceId string, body GetInvoicesInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetInvoiceItemTypes request
|
|
GetInvoiceItemTypes(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateInvoiceItemTypeWithBody request with any body
|
|
CreateInvoiceItemTypeWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateInvoiceItemType(ctx context.Context, workspaceId string, body CreateInvoiceItemTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteInvoiceItemType request
|
|
DeleteInvoiceItemType(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateInvoiceItemTypeWithBody request with any body
|
|
UpdateInvoiceItemTypeWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateInvoiceItemType(ctx context.Context, workspaceId string, id string, body UpdateInvoiceItemTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetNextInvoiceNumber request
|
|
GetNextInvoiceNumber(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetInvoicePermissions request
|
|
GetInvoicePermissions(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateInvoicePermissionsWithBody request with any body
|
|
UpdateInvoicePermissionsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateInvoicePermissions(ctx context.Context, workspaceId string, body UpdateInvoicePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CanUserManageInvoices request
|
|
CanUserManageInvoices(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetInvoiceSettings request
|
|
GetInvoiceSettings(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateInvoiceSettingsWithBody request with any body
|
|
UpdateInvoiceSettingsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateInvoiceSettings(ctx context.Context, workspaceId string, body UpdateInvoiceSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteInvoice request
|
|
DeleteInvoice(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetInvoice request
|
|
GetInvoice(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateInvoiceWithBody request with any body
|
|
UpdateInvoiceWithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateInvoice(ctx context.Context, workspaceId string, invoiceId string, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DuplicateInvoice request
|
|
DuplicateInvoice(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ExportInvoice request
|
|
ExportInvoice(ctx context.Context, workspaceId string, invoiceId string, params *ExportInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ImportTimeAndExpensesWithBody request with any body
|
|
ImportTimeAndExpensesWithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
ImportTimeAndExpenses(ctx context.Context, workspaceId string, invoiceId string, body ImportTimeAndExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// AddInvoiceItem request
|
|
AddInvoiceItem(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ReorderInvoiceItem1WithBody request with any body
|
|
ReorderInvoiceItem1WithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
ReorderInvoiceItem1(ctx context.Context, workspaceId string, invoiceId string, body ReorderInvoiceItem1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// EditInvoiceItemWithBody request with any body
|
|
EditInvoiceItemWithBody(ctx context.Context, workspaceId string, invoiceId string, invoiceItemOrder int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
EditInvoiceItem(ctx context.Context, workspaceId string, invoiceId string, invoiceItemOrder int32, body EditInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteInvoiceItems request
|
|
DeleteInvoiceItems(ctx context.Context, workspaceId string, invoiceId string, params *DeleteInvoiceItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetPaymentsForInvoice request
|
|
GetPaymentsForInvoice(ctx context.Context, workspaceId string, invoiceId string, params *GetPaymentsForInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateInvoicePaymentWithBody request with any body
|
|
CreateInvoicePaymentWithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateInvoicePayment(ctx context.Context, workspaceId string, invoiceId string, body CreateInvoicePaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeletePaymentById request
|
|
DeletePaymentById(ctx context.Context, workspaceId string, invoiceId string, paymentId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ChangeInvoiceStatusWithBody request with any body
|
|
ChangeInvoiceStatusWithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
ChangeInvoiceStatus(ctx context.Context, workspaceId string, invoiceId string, body ChangeInvoiceStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// AuthorizationCheck request
|
|
AuthorizationCheck(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// IsAvailable request
|
|
IsAvailable(ctx context.Context, workspaceId string, params *IsAvailableParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// IsAvailable1 request
|
|
IsAvailable1(ctx context.Context, workspaceId string, userId string, params *IsAvailable1Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GeneratePinCode request
|
|
GeneratePinCode(ctx context.Context, workspaceId string, params *GeneratePinCodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GeneratePinCodeForUser request
|
|
GeneratePinCodeForUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUserPinCode request
|
|
GetUserPinCode(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdatePinCodeWithBody request with any body
|
|
UpdatePinCodeWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdatePinCode(ctx context.Context, workspaceId string, userId string, body UpdatePinCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetKiosksOfWorkspace request
|
|
GetKiosksOfWorkspace(ctx context.Context, workspaceId string, params *GetKiosksOfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create15WithBody request with any body
|
|
Create15WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create15(ctx context.Context, workspaceId string, body Create15JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateBreakDefaultsWithBody request with any body
|
|
UpdateBreakDefaultsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateBreakDefaults(ctx context.Context, workspaceId string, body UpdateBreakDefaultsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTotalCountOfKiosksOnWorkspace request
|
|
GetTotalCountOfKiosksOnWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateDefaultsWithBody request with any body
|
|
UpdateDefaultsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateDefaults(ctx context.Context, workspaceId string, body UpdateDefaultsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// HasActiveKiosks request
|
|
HasActiveKiosks(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetWithProjectWithBody request with any body
|
|
GetWithProjectWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetWithProject(ctx context.Context, workspaceId string, body GetWithProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetWithTaskWithBody request with any body
|
|
GetWithTaskWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetWithTask(ctx context.Context, workspaceId string, projectId string, body GetWithTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetForReportFilter request
|
|
GetForReportFilter(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetWithoutDefaults request
|
|
GetWithoutDefaults(ctx context.Context, workspaceId string, params *GetWithoutDefaultsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteKiosk request
|
|
DeleteKiosk(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetKioskById request
|
|
GetKioskById(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Update8WithBody request with any body
|
|
Update8WithBody(ctx context.Context, workspaceId string, kioskId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Update8(ctx context.Context, workspaceId string, kioskId string, body Update8JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ExportAssignees request
|
|
ExportAssignees(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// HasEntryInProgress request
|
|
HasEntryInProgress(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateStatusWithBody request with any body
|
|
UpdateStatusWithBody(ctx context.Context, workspaceId string, kioskId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateStatus(ctx context.Context, workspaceId string, kioskId string, body UpdateStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// AcknowledgeLegacyPlanNotifications request
|
|
AcknowledgeLegacyPlanNotifications(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetLegacyPlanUpgradeData request
|
|
GetLegacyPlanUpgradeData(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// AddLimitedUsersWithBody request with any body
|
|
AddLimitedUsersWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
AddLimitedUsers(ctx context.Context, workspaceId string, body AddLimitedUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetLimitedUsersCount request
|
|
GetLimitedUsersCount(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetMemberProfile request
|
|
GetMemberProfile(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateMemberProfileWithBody request with any body
|
|
UpdateMemberProfileWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateMemberProfile(ctx context.Context, workspaceId string, userId string, body UpdateMemberProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateMemberProfileWithAdditionalDataWithBody request with any body
|
|
UpdateMemberProfileWithAdditionalDataWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateMemberProfileWithAdditionalData(ctx context.Context, workspaceId string, userId string, body UpdateMemberProfileWithAdditionalDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateMemberSettingsWithBody request with any body
|
|
UpdateMemberSettingsWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateMemberSettings(ctx context.Context, workspaceId string, userId string, body UpdateMemberSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetWeekStart request
|
|
GetWeekStart(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateMemberWorkingDaysAndCapacityWithBody request with any body
|
|
UpdateMemberWorkingDaysAndCapacityWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateMemberWorkingDaysAndCapacity(ctx context.Context, workspaceId string, userId string, body UpdateMemberWorkingDaysAndCapacityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetMembersCount request
|
|
GetMembersCount(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// FindNotInvitedEmailsInWithBody request with any body
|
|
FindNotInvitedEmailsInWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
FindNotInvitedEmailsIn(ctx context.Context, workspaceId string, body FindNotInvitedEmailsInJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetOrganization request
|
|
GetOrganization(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create14WithBody request with any body
|
|
Create14WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create14(ctx context.Context, workspaceId string, body Create14JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetOrganizationName request
|
|
GetOrganizationName(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CheckAvailabilityOfDomainName request
|
|
CheckAvailabilityOfDomainName(ctx context.Context, workspaceId string, params *CheckAvailabilityOfDomainNameParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteOrganization request
|
|
DeleteOrganization(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateOrganizationWithBody request with any body
|
|
UpdateOrganizationWithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateOrganization(ctx context.Context, workspaceId string, organizationId string, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetLoginSettings request
|
|
GetLoginSettings(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteOAuth2Configuration request
|
|
DeleteOAuth2Configuration(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetOrganizationOAuth2Configuration request
|
|
GetOrganizationOAuth2Configuration(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateOAuth2Configuration1WithBody request with any body
|
|
UpdateOAuth2Configuration1WithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateOAuth2Configuration1(ctx context.Context, workspaceId string, organizationId string, body UpdateOAuth2Configuration1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// TestOAuth2ConfigurationWithBody request with any body
|
|
TestOAuth2ConfigurationWithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
TestOAuth2Configuration(ctx context.Context, workspaceId string, organizationId string, body TestOAuth2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteSAML2Configuration request
|
|
DeleteSAML2Configuration(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetOrganizationSAML2Configuration request
|
|
GetOrganizationSAML2Configuration(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateSAML2ConfigurationWithBody request with any body
|
|
UpdateSAML2ConfigurationWithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateSAML2Configuration(ctx context.Context, workspaceId string, organizationId string, body UpdateSAML2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// TestSAML2ConfigurationWithBody request with any body
|
|
TestSAML2ConfigurationWithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
TestSAML2Configuration(ctx context.Context, workspaceId string, organizationId string, body TestSAML2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetAllOrganizationsOfUser request
|
|
GetAllOrganizationsOfUser(ctx context.Context, workspaceId string, userId string, params *GetAllOrganizationsOfUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetWorkspaceOwner request
|
|
GetWorkspaceOwner(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// TransferOwnershipWithBody request with any body
|
|
TransferOwnershipWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
TransferOwnership(ctx context.Context, workspaceId string, body TransferOwnershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetWorkspaceOwnerTimeZone request
|
|
GetWorkspaceOwnerTimeZone(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CancelSubscriptionWithBody request with any body
|
|
CancelSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CancelSubscription(ctx context.Context, workspaceId string, body CancelSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ConfirmPayment request
|
|
ConfirmPayment(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetCustomerInfo request
|
|
GetCustomerInfo(ctx context.Context, workspaceId string, params *GetCustomerInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateCustomerWithBody request with any body
|
|
CreateCustomerWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateCustomer(ctx context.Context, workspaceId string, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateCustomerWithBody request with any body
|
|
UpdateCustomerWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateCustomer(ctx context.Context, workspaceId string, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// EditInvoiceInformationWithBody request with any body
|
|
EditInvoiceInformationWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
EditInvoiceInformation(ctx context.Context, workspaceId string, body EditInvoiceInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// EditPaymentInformationWithBody request with any body
|
|
EditPaymentInformationWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
EditPaymentInformation(ctx context.Context, workspaceId string, body EditPaymentInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ExtendTrial request
|
|
ExtendTrial(ctx context.Context, workspaceId string, params *ExtendTrialParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetFeatureSubscriptions request
|
|
GetFeatureSubscriptions(ctx context.Context, workspaceId string, params *GetFeatureSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// InitialUpgradeWithBody request with any body
|
|
InitialUpgradeWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
InitialUpgrade(ctx context.Context, workspaceId string, body InitialUpgradeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetInvoiceInfo request
|
|
GetInvoiceInfo(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetInvoices request
|
|
GetInvoices(ctx context.Context, workspaceId string, params *GetInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetInvoicesCount request
|
|
GetInvoicesCount(ctx context.Context, workspaceId string, params *GetInvoicesCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetLastOpenInvoice request
|
|
GetLastOpenInvoice(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetInvoicesList request
|
|
GetInvoicesList(ctx context.Context, workspaceId string, params *GetInvoicesListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetPaymentDate request
|
|
GetPaymentDate(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetPaymentInfo request
|
|
GetPaymentInfo(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateSetupIntentForPaymentMethodWithBody request with any body
|
|
CreateSetupIntentForPaymentMethodWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateSetupIntentForPaymentMethod(ctx context.Context, workspaceId string, body CreateSetupIntentForPaymentMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PreviewUpgrade request
|
|
PreviewUpgrade(ctx context.Context, workspaceId string, params *PreviewUpgradeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ReactivateSubscription request
|
|
ReactivateSubscription(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetScheduledInvoiceInfo request
|
|
GetScheduledInvoiceInfo(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateUserSeatsWithBody request with any body
|
|
UpdateUserSeatsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateUserSeats(ctx context.Context, workspaceId string, body UpdateUserSeatsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateSetupIntentForInitialSubscriptionWithBody request with any body
|
|
CreateSetupIntentForInitialSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateSetupIntentForInitialSubscription(ctx context.Context, workspaceId string, body CreateSetupIntentForInitialSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateSubscriptionWithBody request with any body
|
|
CreateSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateSubscription(ctx context.Context, workspaceId string, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateSubscriptionWithBody request with any body
|
|
UpdateSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateSubscription(ctx context.Context, workspaceId string, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpgradePreCheck request
|
|
UpgradePreCheck(ctx context.Context, workspaceId string, params *UpgradePreCheckParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteSubscriptionWithBody request with any body
|
|
DeleteSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
DeleteSubscription(ctx context.Context, workspaceId string, body DeleteSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// TerminateTrial request
|
|
TerminateTrial(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// StartTrial request
|
|
StartTrial(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// WasRegionalEverAllowed request
|
|
WasRegionalEverAllowed(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// FindForUserAndPolicy request
|
|
FindForUserAndPolicy(ctx context.Context, workspaceId string, policyId string, userId string, params *FindForUserAndPolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetClients request
|
|
GetClients(ctx context.Context, workspaceId string, params *GetClientsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetProjects3 request
|
|
GetProjects3(ctx context.Context, workspaceId string, params *GetProjects3Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetProjectFavorites request
|
|
GetProjectFavorites(ctx context.Context, workspaceId string, params *GetProjectFavoritesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTasks21 request
|
|
GetTasks21(ctx context.Context, workspaceId string, projectId string, params *GetTasks21Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RecalculateProjectStatus1 request
|
|
RecalculateProjectStatus1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetProjectAndTaskWithBody request with any body
|
|
GetProjectAndTaskWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetProjectAndTask(ctx context.Context, workspaceId string, body GetProjectAndTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteMany2WithBody request with any body
|
|
DeleteMany2WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
DeleteMany2(ctx context.Context, workspaceId string, body DeleteMany2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetProjects2 request
|
|
GetProjects2(ctx context.Context, workspaceId string, params *GetProjects2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateMany1WithBody request with any body
|
|
UpdateMany1WithBody(ctx context.Context, workspaceId string, params *UpdateMany1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateMany1(ctx context.Context, workspaceId string, params *UpdateMany1Params, body UpdateMany1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create12WithBody request with any body
|
|
Create12WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create12(ctx context.Context, workspaceId string, body Create12JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetFilteredProjectsCount request
|
|
GetFilteredProjectsCount(ctx context.Context, workspaceId string, params *GetFilteredProjectsCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetFilteredProjectsWithBody request with any body
|
|
GetFilteredProjectsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetFilteredProjects(ctx context.Context, workspaceId string, body GetFilteredProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateFromTemplateWithBody request with any body
|
|
CreateFromTemplateWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateFromTemplate(ctx context.Context, workspaceId string, body CreateFromTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetProjectWithBody request with any body
|
|
GetProjectWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetProject(ctx context.Context, workspaceId string, body GetProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetLastUsedProject request
|
|
GetLastUsedProject(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// LastUsedProject1 request
|
|
LastUsedProject1(ctx context.Context, workspaceId string, params *LastUsedProject1Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetProjectsList request
|
|
GetProjectsList(ctx context.Context, workspaceId string, params *GetProjectsListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// HasManagerRole1 request
|
|
HasManagerRole1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetProjectsForReportFilterWithBody request with any body
|
|
GetProjectsForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetProjectsForReportFilter(ctx context.Context, workspaceId string, body GetProjectsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetProjectIdsForReportFilterWithBody request with any body
|
|
GetProjectIdsForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetProjectIdsForReportFilter(ctx context.Context, workspaceId string, body GetProjectIdsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTasksByIdsWithBody request with any body
|
|
GetTasksByIdsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetTasksByIds(ctx context.Context, workspaceId string, body GetTasksByIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetAllTasksWithBody request with any body
|
|
GetAllTasksWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetAllTasks(ctx context.Context, workspaceId string, body GetAllTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTasksWithBody request with any body
|
|
GetTasksWithBody(ctx context.Context, workspaceId string, params *GetTasksParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetTasks(ctx context.Context, workspaceId string, params *GetTasksParams, body GetTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTasksForReportFilterWithBody request with any body
|
|
GetTasksForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetTasksForReportFilter(ctx context.Context, workspaceId string, body GetTasksForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTaskIdsForReportFilterWithBody request with any body
|
|
GetTaskIdsForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetTaskIdsForReportFilter(ctx context.Context, workspaceId string, body GetTaskIdsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTimeOffPoliciesAndHolidaysWithProjectsWithBody request with any body
|
|
GetTimeOffPoliciesAndHolidaysWithProjectsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetTimeOffPoliciesAndHolidaysWithProjects(ctx context.Context, workspaceId string, body GetTimeOffPoliciesAndHolidaysWithProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetLastUsedOfUser request
|
|
GetLastUsedOfUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetPermissionsToUserForProjectsWithBody request with any body
|
|
GetPermissionsToUserForProjectsWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetPermissionsToUserForProjects(ctx context.Context, workspaceId string, userId string, body GetPermissionsToUserForProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete13 request
|
|
Delete13(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetProject1 request
|
|
GetProject1(ctx context.Context, workspaceId string, projectId string, params *GetProject1Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Update14WithBody request with any body
|
|
Update14WithBody(ctx context.Context, workspaceId string, projectId string, params *Update14Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Update14(ctx context.Context, workspaceId string, projectId string, params *Update14Params, body Update14JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Update6WithBody request with any body
|
|
Update6WithBody(ctx context.Context, workspaceId string, projectId string, params *Update6Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Update6(ctx context.Context, workspaceId string, projectId string, params *Update6Params, body Update6JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// SetCostRate1WithBody request with any body
|
|
SetCostRate1WithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
SetCostRate1(ctx context.Context, workspaceId string, projectId string, body SetCostRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateEstimateWithBody request with any body
|
|
UpdateEstimateWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateEstimate(ctx context.Context, workspaceId string, projectId string, body UpdateEstimateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// SetHourlyRate1WithBody request with any body
|
|
SetHourlyRate1WithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
SetHourlyRate1(ctx context.Context, workspaceId string, projectId string, body SetHourlyRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// HasManagerRole request
|
|
HasManagerRole(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetAuthsForProject request
|
|
GetAuthsForProject(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RecalculateProjectStatus request
|
|
RecalculateProjectStatus(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTasks1 request
|
|
GetTasks1(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create13WithBody request with any body
|
|
Create13WithBody(ctx context.Context, workspaceId string, projectId string, params *Create13Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create13(ctx context.Context, workspaceId string, projectId string, params *Create13Params, body Create13JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTasksAssignedToUser request
|
|
GetTasksAssignedToUser(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTimeOffPoliciesAndHolidaysWithTasksWithBody request with any body
|
|
GetTimeOffPoliciesAndHolidaysWithTasksWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetTimeOffPoliciesAndHolidaysWithTasks(ctx context.Context, workspaceId string, projectId string, body GetTimeOffPoliciesAndHolidaysWithTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Update7WithBody request with any body
|
|
Update7WithBody(ctx context.Context, workspaceId string, projectId string, id string, params *Update7Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Update7(ctx context.Context, workspaceId string, projectId string, id string, params *Update7Params, body Update7JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// SetCostRateWithBody request with any body
|
|
SetCostRateWithBody(ctx context.Context, workspaceId string, projectId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
SetCostRate(ctx context.Context, workspaceId string, projectId string, id string, body SetCostRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// SetHourlyRateWithBody request with any body
|
|
SetHourlyRateWithBody(ctx context.Context, workspaceId string, projectId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
SetHourlyRate(ctx context.Context, workspaceId string, projectId string, id string, body SetHourlyRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete14 request
|
|
Delete14(ctx context.Context, workspaceId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTaskAssignedToUser request
|
|
GetTaskAssignedToUser(ctx context.Context, workspaceId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// AddUsers1WithBody request with any body
|
|
AddUsers1WithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
AddUsers1(ctx context.Context, workspaceId string, projectId string, body AddUsers1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetStatus request
|
|
GetStatus(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RemoveUserGroupMembership request
|
|
RemoveUserGroupMembership(ctx context.Context, workspaceId string, projectId string, usergroupId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsers4 request
|
|
GetUsers4(ctx context.Context, workspaceId string, projectId string, params *GetUsers4Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// AddUsersCostRate1WithBody request with any body
|
|
AddUsersCostRate1WithBody(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
AddUsersCostRate1(ctx context.Context, workspaceId string, projectId string, userId string, body AddUsersCostRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// AddUsersHourlyRate1WithBody request with any body
|
|
AddUsersHourlyRate1WithBody(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
AddUsersHourlyRate1(ctx context.Context, workspaceId string, projectId string, userId string, body AddUsersHourlyRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RemoveUserMembership request
|
|
RemoveUserMembership(ctx context.Context, workspaceId string, projectId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RemovePermissionsToUserWithBody request with any body
|
|
RemovePermissionsToUserWithBody(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
RemovePermissionsToUser(ctx context.Context, workspaceId string, projectId string, userId string, body RemovePermissionsToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetPermissionsToUser1 request
|
|
GetPermissionsToUser1(ctx context.Context, workspaceId string, projectId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// AddPermissionsToUserWithBody request with any body
|
|
AddPermissionsToUserWithBody(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
AddPermissionsToUser(ctx context.Context, workspaceId string, projectId string, userId string, body AddPermissionsToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Disconnect request
|
|
Disconnect(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ConnectWithBody request with any body
|
|
ConnectWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Connect(ctx context.Context, workspaceId string, body ConnectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Connect1 request
|
|
Connect1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// SyncClientsWithBody request with any body
|
|
SyncClientsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
SyncClients(ctx context.Context, workspaceId string, body SyncClientsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// SyncProjectsWithBody request with any body
|
|
SyncProjectsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
SyncProjects(ctx context.Context, workspaceId string, body SyncProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateProjectsWithBody request with any body
|
|
UpdateProjectsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateProjects(ctx context.Context, workspaceId string, body UpdateProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetAllRegionsForUserAccount request
|
|
GetAllRegionsForUserAccount(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ListOfWorkspace request
|
|
ListOfWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create11WithBody request with any body
|
|
Create11WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create11(ctx context.Context, workspaceId string, body Create11JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// OfWorkspaceIdAndUserId request
|
|
OfWorkspaceIdAndUserId(ctx context.Context, workspaceId string, params *OfWorkspaceIdAndUserIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete12 request
|
|
Delete12(ctx context.Context, workspaceId string, reminderId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Update5WithBody request with any body
|
|
Update5WithBody(ctx context.Context, workspaceId string, reminderId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Update5(ctx context.Context, workspaceId string, reminderId string, body Update5JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetDashboardInfoWithBody request with any body
|
|
GetDashboardInfoWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetDashboardInfo(ctx context.Context, workspaceId string, body GetDashboardInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetMyMostTracked request
|
|
GetMyMostTracked(ctx context.Context, workspaceId string, params *GetMyMostTrackedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTeamActivities request
|
|
GetTeamActivities(ctx context.Context, workspaceId string, params *GetTeamActivitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetAmountPreview request
|
|
GetAmountPreview(ctx context.Context, workspaceId string, params *GetAmountPreviewParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetDraftAssignmentsCountWithBody request with any body
|
|
GetDraftAssignmentsCountWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetDraftAssignmentsCount(ctx context.Context, workspaceId string, body GetDraftAssignmentsCountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetProjectTotals request
|
|
GetProjectTotals(ctx context.Context, workspaceId string, params *GetProjectTotalsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetFilteredProjectTotalsWithBody request with any body
|
|
GetFilteredProjectTotalsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetFilteredProjectTotals(ctx context.Context, workspaceId string, body GetFilteredProjectTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetProjectTotalsForSingleProject request
|
|
GetProjectTotalsForSingleProject(ctx context.Context, workspaceId string, projectId string, params *GetProjectTotalsForSingleProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetProjectsForUser request
|
|
GetProjectsForUser(ctx context.Context, workspaceId string, projectId string, userId string, params *GetProjectsForUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PublishAssignmentsWithBody request with any body
|
|
PublishAssignmentsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
PublishAssignments(ctx context.Context, workspaceId string, body PublishAssignmentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateRecurringWithBody request with any body
|
|
CreateRecurringWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateRecurring(ctx context.Context, workspaceId string, body CreateRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete11 request
|
|
Delete11(ctx context.Context, workspaceId string, assignmentId string, params *Delete11Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// EditRecurringWithBody request with any body
|
|
EditRecurringWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
EditRecurring(ctx context.Context, workspaceId string, assignmentId string, body EditRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// EditPeriodForRecurringWithBody request with any body
|
|
EditPeriodForRecurringWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
EditPeriodForRecurring(ctx context.Context, workspaceId string, assignmentId string, body EditPeriodForRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// EditRecurringPeriodWithBody request with any body
|
|
EditRecurringPeriodWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
EditRecurringPeriod(ctx context.Context, workspaceId string, assignmentId string, body EditRecurringPeriodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUserTotalsWithBody request with any body
|
|
GetUserTotalsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetUserTotals(ctx context.Context, workspaceId string, body GetUserTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetAssignmentsForUser request
|
|
GetAssignmentsForUser(ctx context.Context, workspaceId string, userId string, params *GetAssignmentsForUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetFilteredAssignmentsForUserWithBody request with any body
|
|
GetFilteredAssignmentsForUserWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetFilteredAssignmentsForUser(ctx context.Context, workspaceId string, userId string, body GetFilteredAssignmentsForUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsers3 request
|
|
GetUsers3(ctx context.Context, workspaceId string, projectId string, params *GetUsers3Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetProjects1 request
|
|
GetProjects1(ctx context.Context, workspaceId string, userId string, params *GetProjects1Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RemindToPublish request
|
|
RemindToPublish(ctx context.Context, workspaceId string, userId string, params *RemindToPublishParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUserTotalsForSingleUser request
|
|
GetUserTotalsForSingleUser(ctx context.Context, workspaceId string, userId string, params *GetUserTotalsForSingleUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Get3 request
|
|
Get3(ctx context.Context, workspaceId string, assignmentId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CopyAssignmentWithBody request with any body
|
|
CopyAssignmentWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CopyAssignment(ctx context.Context, workspaceId string, assignmentId string, body CopyAssignmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// SplitAssignmentWithBody request with any body
|
|
SplitAssignmentWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
SplitAssignment(ctx context.Context, workspaceId string, assignmentId string, body SplitAssignmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ShiftScheduleWithBody request with any body
|
|
ShiftScheduleWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
ShiftSchedule(ctx context.Context, workspaceId string, projectId string, body ShiftScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// HideProject request
|
|
HideProject(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ShowProject request
|
|
ShowProject(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// HideUser request
|
|
HideUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ShowUser request
|
|
ShowUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create10WithBody request with any body
|
|
Create10WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create10(ctx context.Context, workspaceId string, body Create10JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete10 request
|
|
Delete10(ctx context.Context, workspaceId string, milestoneId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Get2 request
|
|
Get2(ctx context.Context, workspaceId string, milestoneId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Edit1WithBody request with any body
|
|
Edit1WithBody(ctx context.Context, workspaceId string, milestoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Edit1(ctx context.Context, workspaceId string, milestoneId string, body Edit1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// EditDateWithBody request with any body
|
|
EditDateWithBody(ctx context.Context, workspaceId string, milestoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
EditDate(ctx context.Context, workspaceId string, milestoneId string, body EditDateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetProjects request
|
|
GetProjects(ctx context.Context, workspaceId string, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsers2 request
|
|
GetUsers2(ctx context.Context, workspaceId string, params *GetUsers2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsersAssignedToProject request
|
|
GetUsersAssignedToProject(ctx context.Context, workspaceId string, projectId string, params *GetUsersAssignedToProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetSidebarConfig request
|
|
GetSidebarConfig(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateSidebarWithBody request with any body
|
|
UpdateSidebarWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateSidebar(ctx context.Context, workspaceId string, userId string, body UpdateSidebarJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// FilterUsersByStatusWithBody request with any body
|
|
FilterUsersByStatusWithBody(ctx context.Context, workspaceId string, params *FilterUsersByStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
FilterUsersByStatus(ctx context.Context, workspaceId string, params *FilterUsersByStatusParams, body FilterUsersByStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete9WithBody request with any body
|
|
Delete9WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Delete9(ctx context.Context, workspaceId string, body Delete9JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// StopWithBody request with any body
|
|
StopWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Stop(ctx context.Context, workspaceId string, body StopJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// StartWithBody request with any body
|
|
StartWithBody(ctx context.Context, workspaceId string, params *StartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Start(ctx context.Context, workspaceId string, params *StartParams, body StartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteMany1WithBody request with any body
|
|
DeleteMany1WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
DeleteMany1(ctx context.Context, workspaceId string, body DeleteMany1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTags request
|
|
GetTags(ctx context.Context, workspaceId string, params *GetTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateManyWithBody request with any body
|
|
UpdateManyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateMany(ctx context.Context, workspaceId string, body UpdateManyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create9WithBody request with any body
|
|
Create9WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create9(ctx context.Context, workspaceId string, body Create9JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ConnectedToApprovedEntriesWithBody request with any body
|
|
ConnectedToApprovedEntriesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
ConnectedToApprovedEntries(ctx context.Context, workspaceId string, body ConnectedToApprovedEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTagsOfIdsWithBody request with any body
|
|
GetTagsOfIdsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetTagsOfIds(ctx context.Context, workspaceId string, body GetTagsOfIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTagIdsByNameAndStatus request
|
|
GetTagIdsByNameAndStatus(ctx context.Context, workspaceId string, params *GetTagIdsByNameAndStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete8 request
|
|
Delete8(ctx context.Context, workspaceId string, tagId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Update4WithBody request with any body
|
|
Update4WithBody(ctx context.Context, workspaceId string, tagId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Update4(ctx context.Context, workspaceId string, tagId string, body Update4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTemplates request
|
|
GetTemplates(ctx context.Context, workspaceId string, params *GetTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create8WithBody request with any body
|
|
Create8WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create8(ctx context.Context, workspaceId string, body Create8JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete7 request
|
|
Delete7(ctx context.Context, workspaceId string, templateId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTemplate request
|
|
GetTemplate(ctx context.Context, workspaceId string, templateId string, params *GetTemplateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Update13WithBody request with any body
|
|
Update13WithBody(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Update13(ctx context.Context, workspaceId string, templateId string, body Update13JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ActivateWithBody request with any body
|
|
ActivateWithBody(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Activate(ctx context.Context, workspaceId string, templateId string, body ActivateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeactivateWithBody request with any body
|
|
DeactivateWithBody(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Deactivate(ctx context.Context, workspaceId string, templateId string, body DeactivateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CopyTimeEntriesWithBody request with any body
|
|
CopyTimeEntriesWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CopyTimeEntries(ctx context.Context, workspaceId string, userId string, body CopyTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ContinueTimeEntry request
|
|
ContinueTimeEntry(ctx context.Context, workspaceId string, timeEntryId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTeamMembersOfAdmin request
|
|
GetTeamMembersOfAdmin(ctx context.Context, workspaceId string, params *GetTeamMembersOfAdminParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetBalancesForPolicy request
|
|
GetBalancesForPolicy(ctx context.Context, workspaceId string, policyId string, params *GetBalancesForPolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateBalanceWithBody request with any body
|
|
UpdateBalanceWithBody(ctx context.Context, workspaceId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateBalance(ctx context.Context, workspaceId string, policyId string, body UpdateBalanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetBalancesForUser request
|
|
GetBalancesForUser(ctx context.Context, workspaceId string, userId string, params *GetBalancesForUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTeamMembersOfManager request
|
|
GetTeamMembersOfManager(ctx context.Context, workspaceId string, params *GetTeamMembersOfManagerParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// FindPoliciesForWorkspace request
|
|
FindPoliciesForWorkspace(ctx context.Context, workspaceId string, params *FindPoliciesForWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreatePolicyWithBody request with any body
|
|
CreatePolicyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreatePolicy(ctx context.Context, workspaceId string, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetPolicyAssignmentForCurrentUser request
|
|
GetPolicyAssignmentForCurrentUser(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTeamAssignmentsDistribution request
|
|
GetTeamAssignmentsDistribution(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetPolicyAssignmentsForUser request
|
|
GetPolicyAssignmentsForUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// FindPoliciesForUser request
|
|
FindPoliciesForUser(ctx context.Context, workspaceId string, userId string, params *FindPoliciesForUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeletePolicy request
|
|
DeletePolicy(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdatePolicyWithBody request with any body
|
|
UpdatePolicyWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdatePolicy(ctx context.Context, workspaceId string, id string, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Archive request
|
|
Archive(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Restore request
|
|
Restore(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetPolicy request
|
|
GetPolicy(ctx context.Context, workspaceId string, policyId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create7WithBody request with any body
|
|
Create7WithBody(ctx context.Context, workspaceId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create7(ctx context.Context, workspaceId string, policyId string, body Create7JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete6 request
|
|
Delete6(ctx context.Context, workspaceId string, policyId string, requestId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Approve request
|
|
Approve(ctx context.Context, workspaceId string, policyId string, requestId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RejectWithBody request with any body
|
|
RejectWithBody(ctx context.Context, workspaceId string, policyId string, requestId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Reject(ctx context.Context, workspaceId string, policyId string, requestId string, body RejectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateForOther1WithBody request with any body
|
|
CreateForOther1WithBody(ctx context.Context, workspaceId string, policyId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateForOther1(ctx context.Context, workspaceId string, policyId string, userId string, body CreateForOther1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Get1WithBody request with any body
|
|
Get1WithBody(ctx context.Context, workspaceId string, params *Get1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Get1(ctx context.Context, workspaceId string, params *Get1Params, body Get1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTimeOffRequestById request
|
|
GetTimeOffRequestById(ctx context.Context, workspaceId string, requestId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetAllUsersOfWorkspace request
|
|
GetAllUsersOfWorkspace(ctx context.Context, workspaceId string, params *GetAllUsersOfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUserGroupsOfWorkspace request
|
|
GetUserGroupsOfWorkspace(ctx context.Context, workspaceId string, params *GetUserGroupsOfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsersOfWorkspace request
|
|
GetUsersOfWorkspace(ctx context.Context, workspaceId string, params *GetUsersOfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetWithBody request with any body
|
|
GetWithBody(ctx context.Context, workspaceId string, params *GetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Get(ctx context.Context, workspaceId string, params *GetParams, body GetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTimelineForReportsWithBody request with any body
|
|
GetTimelineForReportsWithBody(ctx context.Context, workspaceId string, params *GetTimelineForReportsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetTimelineForReports(ctx context.Context, workspaceId string, params *GetTimelineForReportsParams, body GetTimelineForReportsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteManyWithBody request with any body
|
|
DeleteManyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
DeleteMany(ctx context.Context, workspaceId string, body DeleteManyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTimeEntriesBySearchValue request
|
|
GetTimeEntriesBySearchValue(ctx context.Context, workspaceId string, params *GetTimeEntriesBySearchValueParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create6WithBody request with any body
|
|
Create6WithBody(ctx context.Context, workspaceId string, params *Create6Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create6(ctx context.Context, workspaceId string, params *Create6Params, body Create6JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PatchTimeEntriesWithBody request with any body
|
|
PatchTimeEntriesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
PatchTimeEntries(ctx context.Context, workspaceId string, body PatchTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// EndStartedWithBody request with any body
|
|
EndStartedWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
EndStarted(ctx context.Context, workspaceId string, body EndStartedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetMultipleTimeEntriesById request
|
|
GetMultipleTimeEntriesById(ctx context.Context, workspaceId string, params *GetMultipleTimeEntriesByIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateFull1WithBody request with any body
|
|
CreateFull1WithBody(ctx context.Context, workspaceId string, params *CreateFull1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateFull1(ctx context.Context, workspaceId string, params *CreateFull1Params, body CreateFull1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTimeEntryInProgress request
|
|
GetTimeEntryInProgress(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateInvoicedStatusWithBody request with any body
|
|
UpdateInvoicedStatusWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateInvoicedStatus(ctx context.Context, workspaceId string, body UpdateInvoicedStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ListOfProject request
|
|
ListOfProject(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTimeEntriesRecentlyUsed request
|
|
GetTimeEntriesRecentlyUsed(ctx context.Context, workspaceId string, params *GetTimeEntriesRecentlyUsedParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RestoreTimeEntriesWithBody request with any body
|
|
RestoreTimeEntriesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
RestoreTimeEntries(ctx context.Context, workspaceId string, body RestoreTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateForManyWithBody request with any body
|
|
CreateForManyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateForMany(ctx context.Context, workspaceId string, body CreateForManyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateForOthersWithBody request with any body
|
|
CreateForOthersWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateForOthers(ctx context.Context, workspaceId string, userId string, body CreateForOthersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ListOfFull request
|
|
ListOfFull(ctx context.Context, workspaceId string, userId string, params *ListOfFullParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTimeEntries request
|
|
GetTimeEntries(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// AssertTimeEntriesExistInDateRange request
|
|
AssertTimeEntriesExistInDateRange(ctx context.Context, workspaceId string, userId string, params *AssertTimeEntriesExistInDateRangeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateFullWithBody request with any body
|
|
CreateFullWithBody(ctx context.Context, workspaceId string, userId string, params *CreateFullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateFull(ctx context.Context, workspaceId string, userId string, params *CreateFullParams, body CreateFullJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTimeEntriesInRange request
|
|
GetTimeEntriesInRange(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesInRangeParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTimeEntriesForTimesheet request
|
|
GetTimeEntriesForTimesheet(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesForTimesheetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PatchWithBody request with any body
|
|
PatchWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Patch(ctx context.Context, workspaceId string, id string, body PatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Update3WithBody request with any body
|
|
Update3WithBody(ctx context.Context, workspaceId string, id string, params *Update3Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Update3(ctx context.Context, workspaceId string, id string, params *Update3Params, body Update3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTimeEntryAttributes request
|
|
GetTimeEntryAttributes(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateTimeEntryAttributeWithBody request with any body
|
|
CreateTimeEntryAttributeWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateTimeEntryAttribute(ctx context.Context, workspaceId string, id string, body CreateTimeEntryAttributeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DeleteTimeEntryAttributeWithBody request with any body
|
|
DeleteTimeEntryAttributeWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
DeleteTimeEntryAttribute(ctx context.Context, workspaceId string, id string, body DeleteTimeEntryAttributeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateBillableWithBody request with any body
|
|
UpdateBillableWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateBillable(ctx context.Context, workspaceId string, id string, body UpdateBillableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateDescriptionWithBody request with any body
|
|
UpdateDescriptionWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateDescription(ctx context.Context, workspaceId string, id string, body UpdateDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateEndWithBody request with any body
|
|
UpdateEndWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateEnd(ctx context.Context, workspaceId string, id string, body UpdateEndJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateFullWithBody request with any body
|
|
UpdateFullWithBody(ctx context.Context, workspaceId string, id string, params *UpdateFullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateFull(ctx context.Context, workspaceId string, id string, params *UpdateFullParams, body UpdateFullJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateProjectWithBody request with any body
|
|
UpdateProjectWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateProject(ctx context.Context, workspaceId string, id string, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RemoveProject request
|
|
RemoveProject(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateProjectAndTaskWithBody request with any body
|
|
UpdateProjectAndTaskWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateProjectAndTask(ctx context.Context, workspaceId string, id string, body UpdateProjectAndTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateAndSplitWithBody request with any body
|
|
UpdateAndSplitWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateAndSplit(ctx context.Context, workspaceId string, id string, body UpdateAndSplitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// SplitTimeEntryWithBody request with any body
|
|
SplitTimeEntryWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
SplitTimeEntry(ctx context.Context, workspaceId string, id string, body SplitTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateStartWithBody request with any body
|
|
UpdateStartWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateStart(ctx context.Context, workspaceId string, id string, body UpdateStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateTagsWithBody request with any body
|
|
UpdateTagsWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateTags(ctx context.Context, workspaceId string, id string, body UpdateTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RemoveTask request
|
|
RemoveTask(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateTimeIntervalWithBody request with any body
|
|
UpdateTimeIntervalWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateTimeInterval(ctx context.Context, workspaceId string, id string, body UpdateTimeIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateUserWithBody request with any body
|
|
UpdateUserWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateUser(ctx context.Context, workspaceId string, id string, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete5 request
|
|
Delete5(ctx context.Context, workspaceId string, timeEntryId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateCustomFieldWithBody request with any body
|
|
UpdateCustomFieldWithBody(ctx context.Context, workspaceId string, timeEntryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateCustomField(ctx context.Context, workspaceId string, timeEntryId string, body UpdateCustomFieldJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// PenalizeCurrentTimerAndStartNewTimeEntryWithBody request with any body
|
|
PenalizeCurrentTimerAndStartNewTimeEntryWithBody(ctx context.Context, workspaceId string, timeEntryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
PenalizeCurrentTimerAndStartNewTimeEntry(ctx context.Context, workspaceId string, timeEntryId string, body PenalizeCurrentTimerAndStartNewTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// TransferWorkspaceDeprecatedFlowWithBody request with any body
|
|
TransferWorkspaceDeprecatedFlowWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
TransferWorkspaceDeprecatedFlow(ctx context.Context, workspaceId string, body TransferWorkspaceDeprecatedFlowJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// TransferWorkspaceWithBody request with any body
|
|
TransferWorkspaceWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
TransferWorkspace(ctx context.Context, workspaceId string, body TransferWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTrialActivationData request
|
|
GetTrialActivationData(ctx context.Context, workspaceId string, params *GetTrialActivationDataParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RemoveMember request
|
|
RemoveMember(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CopyTimeEntryCalendarDragWithBody request with any body
|
|
CopyTimeEntryCalendarDragWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CopyTimeEntryCalendarDrag(ctx context.Context, workspaceId string, userId string, body CopyTimeEntryCalendarDragJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// DuplicateTimeEntry request
|
|
DuplicateTimeEntry(ctx context.Context, workspaceId string, userId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUserGroups1 request
|
|
GetUserGroups1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create5WithBody request with any body
|
|
Create5WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create5(ctx context.Context, workspaceId string, body Create5JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUserGroups2 request
|
|
GetUserGroups2(ctx context.Context, workspaceId string, params *GetUserGroups2Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUserGroupNamesWithBody request with any body
|
|
GetUserGroupNamesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetUserGroupNames(ctx context.Context, workspaceId string, body GetUserGroupNamesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsersForReportFilter1 request
|
|
GetUsersForReportFilter1(ctx context.Context, workspaceId string, params *GetUsersForReportFilter1Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUserGroupForReportFilterPostWithBody request with any body
|
|
GetUserGroupForReportFilterPostWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetUserGroupForReportFilterPost(ctx context.Context, workspaceId string, body GetUserGroupForReportFilterPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsersForAttendanceReportFilterWithBody request with any body
|
|
GetUsersForAttendanceReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetUsersForAttendanceReportFilter(ctx context.Context, workspaceId string, body GetUsersForAttendanceReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUserGroupIdsByName request
|
|
GetUserGroupIdsByName(ctx context.Context, workspaceId string, params *GetUserGroupIdsByNameParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUserGroupsWithBody request with any body
|
|
GetUserGroupsWithBody(ctx context.Context, workspaceId string, params *GetUserGroupsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetUserGroups(ctx context.Context, workspaceId string, params *GetUserGroupsParams, body GetUserGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RemoveUserWithBody request with any body
|
|
RemoveUserWithBody(ctx context.Context, workspaceId string, params *RemoveUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
RemoveUser(ctx context.Context, workspaceId string, params *RemoveUserParams, body RemoveUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// AddUsersToUserGroupsFilterWithBody request with any body
|
|
AddUsersToUserGroupsFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
AddUsersToUserGroupsFilter(ctx context.Context, workspaceId string, body AddUsersToUserGroupsFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete4 request
|
|
Delete4(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Update2WithBody request with any body
|
|
Update2WithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Update2(ctx context.Context, workspaceId string, id string, body Update2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsersWithBody request with any body
|
|
GetUsersWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetUsers(ctx context.Context, workspaceId string, body GetUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUsers1 request
|
|
GetUsers1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// AddUsersWithBody request with any body
|
|
AddUsersWithBody(ctx context.Context, workspaceId string, params *AddUsersParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
AddUsers(ctx context.Context, workspaceId string, params *AddUsersParams, body AddUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetExpensesForUsers request
|
|
GetExpensesForUsers(ctx context.Context, workspaceId string, params *GetExpensesForUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// SetMembershipsWithBody request with any body
|
|
SetMembershipsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
SetMemberships(ctx context.Context, workspaceId string, body SetMembershipsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ResendInvite request
|
|
ResendInvite(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateDeprecatedWithBody request with any body
|
|
CreateDeprecatedWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateDeprecated(ctx context.Context, workspaceId string, userId string, body CreateDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetRequestsByUser request
|
|
GetRequestsByUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetApprovedTotalsWithBody request with any body
|
|
GetApprovedTotalsWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetApprovedTotals(ctx context.Context, workspaceId string, userId string, body GetApprovedTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateForOtherDeprecatedWithBody request with any body
|
|
CreateForOtherDeprecatedWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateForOtherDeprecated(ctx context.Context, workspaceId string, userId string, body CreateForOtherDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetPreviewWithBody request with any body
|
|
GetPreviewWithBody(ctx context.Context, workspaceId string, userId string, params *GetPreviewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
GetPreview(ctx context.Context, workspaceId string, userId string, params *GetPreviewParams, body GetPreviewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTimeEntryStatus request
|
|
GetTimeEntryStatus(ctx context.Context, workspaceId string, userId string, params *GetTimeEntryStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetTimeEntryWeekStatus request
|
|
GetTimeEntryWeekStatus(ctx context.Context, workspaceId string, userId string, params *GetTimeEntryWeekStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetWeeklyRequestsByUser request
|
|
GetWeeklyRequestsByUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// WithdrawAllOfUser request
|
|
WithdrawAllOfUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// WithdrawAllOfWorkspaceDeprecated request
|
|
WithdrawAllOfWorkspaceDeprecated(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// WithdrawWeeklyOfUser request
|
|
WithdrawWeeklyOfUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// SetCostRateForUser1WithBody request with any body
|
|
SetCostRateForUser1WithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
SetCostRateForUser1(ctx context.Context, workspaceId string, userId string, body SetCostRateForUser1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpsertUserCustomFieldValueWithBody request with any body
|
|
UpsertUserCustomFieldValueWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpsertUserCustomFieldValue(ctx context.Context, workspaceId string, userId string, body UpsertUserCustomFieldValueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetFavoriteEntries request
|
|
GetFavoriteEntries(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateFavoriteTimeEntryWithBody request with any body
|
|
CreateFavoriteTimeEntryWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateFavoriteTimeEntry(ctx context.Context, workspaceId string, userId string, body CreateFavoriteTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ReorderInvoiceItemWithBody request with any body
|
|
ReorderInvoiceItemWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
ReorderInvoiceItem(ctx context.Context, workspaceId string, userId string, body ReorderInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete3 request
|
|
Delete3(ctx context.Context, workspaceId string, userId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Update1WithBody request with any body
|
|
Update1WithBody(ctx context.Context, workspaceId string, userId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Update1(ctx context.Context, workspaceId string, userId string, id string, body Update1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetHolidays1 request
|
|
GetHolidays1(ctx context.Context, workspaceId string, userId string, params *GetHolidays1Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// SetHourlyRateForUser1WithBody request with any body
|
|
SetHourlyRateForUser1WithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
SetHourlyRateForUser1(ctx context.Context, workspaceId string, userId string, body SetHourlyRateForUser1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetPermissionsToUser request
|
|
GetPermissionsToUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// RemoveFavoriteProject request
|
|
RemoveFavoriteProject(ctx context.Context, workspaceId string, userId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete2 request
|
|
Delete2(ctx context.Context, workspaceId string, userId string, projectFavoritesId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create4 request
|
|
Create4(ctx context.Context, workspaceId string, userId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete1 request
|
|
Delete1(ctx context.Context, workspaceId string, userId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create3 request
|
|
Create3(ctx context.Context, workspaceId string, userId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// ReSubmitWithBody request with any body
|
|
ReSubmitWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
ReSubmit(ctx context.Context, workspaceId string, userId string, body ReSubmitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetUserRoles request
|
|
GetUserRoles(ctx context.Context, workspaceId string, userId string, params *GetUserRolesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateUserRolesWithBody request with any body
|
|
UpdateUserRolesWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
UpdateUserRoles(ctx context.Context, workspaceId string, userId string, body UpdateUserRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create2WithBody request with any body
|
|
Create2WithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create2(ctx context.Context, workspaceId string, userId string, body Create2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// CreateForOtherWithBody request with any body
|
|
CreateForOtherWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
CreateForOther(ctx context.Context, workspaceId string, userId string, body CreateForOtherJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetWorkCapacity request
|
|
GetWorkCapacity(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetWebhooks request
|
|
GetWebhooks(ctx context.Context, workspaceId string, params *GetWebhooksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Create1WithBody request with any body
|
|
Create1WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Create1(ctx context.Context, workspaceId string, body Create1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// Delete request
|
|
Delete(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetWebhook request
|
|
GetWebhook(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// UpdateWithBody request with any body
|
|
UpdateWithBody(ctx context.Context, workspaceId string, webhookId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
Update(ctx context.Context, workspaceId string, webhookId string, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetLogsForWebhook1 request
|
|
GetLogsForWebhook1(ctx context.Context, workspaceId string, webhookId string, params *GetLogsForWebhook1Params, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GetLogCount request
|
|
GetLogCount(ctx context.Context, workspaceId string, webhookId string, params *GetLogCountParams, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// TriggerResendEventForWebhook request
|
|
TriggerResendEventForWebhook(ctx context.Context, workspaceId string, webhookId string, webhookLogId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// TriggerTestEventForWebhook request
|
|
TriggerTestEventForWebhook(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
|
|
// GenerateNewToken request
|
|
GenerateNewToken(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error)
|
|
}
|
|
|
|
func (c *Client) GetInitialData(ctx context.Context, reportId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInitialDataRequest(c.Server, reportId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DownloadReportWithBody(ctx context.Context, reportId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDownloadReportRequestWithBody(c.Server, reportId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DownloadReport(ctx context.Context, reportId string, body DownloadReportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDownloadReportRequest(c.Server, reportId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ResetPin(ctx context.Context, reportId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewResetPinRequest(c.Server, reportId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ValidatePinWithBody(ctx context.Context, reportId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewValidatePinRequestWithBody(c.Server, reportId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ValidatePin(ctx context.Context, reportId string, body ValidatePinJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewValidatePinRequest(c.Server, reportId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateSmtpConfigurationWithBody(ctx context.Context, systemSettingsId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateSmtpConfigurationRequestWithBody(c.Server, systemSettingsId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateSmtpConfiguration(ctx context.Context, systemSettingsId string, body UpdateSmtpConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateSmtpConfigurationRequest(c.Server, systemSettingsId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DisableAccessToEntitiesInTransferWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDisableAccessToEntitiesInTransferRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DisableAccessToEntitiesInTransfer(ctx context.Context, body DisableAccessToEntitiesInTransferJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDisableAccessToEntitiesInTransferRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EnableAccessToEntitiesInTransfer(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEnableAccessToEntitiesInTransferRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UsersExistWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUsersExistRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UsersExist(ctx context.Context, body UsersExistJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUsersExistRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) HandleCleanupOnSourceRegion(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewHandleCleanupOnSourceRegionRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) HandleTransferCompletedOnSourceRegion(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewHandleTransferCompletedOnSourceRegionRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) HandleTransferCompletedFailureWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewHandleTransferCompletedFailureRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) HandleTransferCompletedFailure(ctx context.Context, workspaceId string, body HandleTransferCompletedFailureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewHandleTransferCompletedFailureRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) HandleTransferCompletedSuccessWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewHandleTransferCompletedSuccessRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) HandleTransferCompletedSuccess(ctx context.Context, workspaceId string, body HandleTransferCompletedSuccessJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewHandleTransferCompletedSuccessRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetAllUsers(ctx context.Context, params *GetAllUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetAllUsersRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserInfoWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserInfoRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserInfo(ctx context.Context, body GetUserInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserInfoRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserMembershipsAndInvitesWithBody(ctx context.Context, params *GetUserMembershipsAndInvitesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserMembershipsAndInvitesRequestWithBody(c.Server, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserMembershipsAndInvites(ctx context.Context, params *GetUserMembershipsAndInvitesParams, body GetUserMembershipsAndInvitesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserMembershipsAndInvitesRequest(c.Server, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CheckForNewsletterSubscription(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCheckForNewsletterSubscriptionRequest(c.Server, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddNotificationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddNotificationsRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetNews(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetNewsRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteNews(ctx context.Context, newsId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteNewsRequest(c.Server, newsId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateNewsWithBody(ctx context.Context, newsId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateNewsRequestWithBody(c.Server, newsId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SearchAllUsers(ctx context.Context, params *SearchAllUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSearchAllUsersRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) NumberOfUsersRegistered(ctx context.Context, params *NumberOfUsersRegisteredParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewNumberOfUsersRegisteredRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersOnWorkspace(ctx context.Context, workspaceId string, params *GetUsersOnWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersOnWorkspaceRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) BulkEditUsersWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewBulkEditUsersRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) BulkEditUsers(ctx context.Context, workspaceId string, body BulkEditUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewBulkEditUsersRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersOfWorkspace5(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace5Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersOfWorkspace5Request(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInfoWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInfoRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInfo(ctx context.Context, workspaceId string, body GetInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInfoRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetMembersInfo(ctx context.Context, workspaceId string, params *GetMembersInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetMembersInfoRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserNamesWithBody(ctx context.Context, workspaceId string, params *GetUserNamesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserNamesRequestWithBody(c.Server, workspaceId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserNames(ctx context.Context, workspaceId string, params *GetUserNamesParams, body GetUserNamesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserNamesRequest(c.Server, workspaceId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) FindPoliciesToBeApprovedByUser(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewFindPoliciesToBeApprovedByUserRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersAndUsersFromUserGroupsAssignedToProject(ctx context.Context, workspaceId string, projectId string, params *GetUsersAndUsersFromUserGroupsAssignedToProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersAndUsersFromUserGroupsAssignedToProjectRequest(c.Server, workspaceId, projectId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersForProjectMembersFilterWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersForProjectMembersFilterRequestWithBody(c.Server, workspaceId, projectId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersForProjectMembersFilter(ctx context.Context, workspaceId string, projectId string, body GetUsersForProjectMembersFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersForProjectMembersFilterRequest(c.Server, workspaceId, projectId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersForAttendanceReportFilter1WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersForAttendanceReportFilter1RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersForAttendanceReportFilter1(ctx context.Context, workspaceId string, body GetUsersForAttendanceReportFilter1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersForAttendanceReportFilter1Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersOfWorkspace4(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace4Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersOfWorkspace4Request(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersForReportFilterOld(ctx context.Context, workspaceId string, params *GetUsersForReportFilterOldParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersForReportFilterOldRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersForReportFilterRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersForReportFilter(ctx context.Context, workspaceId string, body GetUsersForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersForReportFilterRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersOfUserGroup(ctx context.Context, workspaceId string, userGroupId string, params *GetUsersOfUserGroupParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersOfUserGroupRequest(c.Server, workspaceId, userGroupId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersOfWorkspace3(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace3Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersOfWorkspace3Request(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersOfWorkspace2(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace2Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersOfWorkspace2Request(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUser(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserRequest(c.Server, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateTimeTrackingSettings1WithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateTimeTrackingSettings1RequestWithBody(c.Server, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateTimeTrackingSettings1(ctx context.Context, userId string, body UpdateTimeTrackingSettings1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateTimeTrackingSettings1Request(c.Server, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateDashboardSelectionWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateDashboardSelectionRequestWithBody(c.Server, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateDashboardSelection(ctx context.Context, userId string, body UpdateDashboardSelectionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateDashboardSelectionRequest(c.Server, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetDefaultWorkspace(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetDefaultWorkspaceRequest(c.Server, userId, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteUserWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteUserRequestWithBody(c.Server, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteUser(ctx context.Context, userId string, body DeleteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteUserRequest(c.Server, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ChangeEmailWithBody(ctx context.Context, userId string, params *ChangeEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewChangeEmailRequestWithBody(c.Server, userId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ChangeEmail(ctx context.Context, userId string, params *ChangeEmailParams, body ChangeEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewChangeEmailRequest(c.Server, userId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) HasPendingEmailChange(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewHasPendingEmailChangeRequest(c.Server, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateLangWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateLangRequestWithBody(c.Server, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateLang(ctx context.Context, userId string, body UpdateLangJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateLangRequest(c.Server, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) MarkAsRead1WithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewMarkAsRead1RequestWithBody(c.Server, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) MarkAsRead1(ctx context.Context, userId string, body MarkAsRead1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewMarkAsRead1Request(c.Server, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) MarkAsReadWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewMarkAsReadRequestWithBody(c.Server, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) MarkAsRead(ctx context.Context, userId string, body MarkAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewMarkAsReadRequest(c.Server, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ChangeNameAdminWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewChangeNameAdminRequestWithBody(c.Server, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ChangeNameAdmin(ctx context.Context, userId string, body ChangeNameAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewChangeNameAdminRequest(c.Server, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetNewsForUser(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetNewsForUserRequest(c.Server, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ReadNewsWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewReadNewsRequestWithBody(c.Server, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ReadNews(ctx context.Context, userId string, body ReadNewsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewReadNewsRequest(c.Server, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetNotifications(ctx context.Context, userId string, params *GetNotificationsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetNotificationsRequest(c.Server, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdatePictureWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdatePictureRequestWithBody(c.Server, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdatePicture(ctx context.Context, userId string, body UpdatePictureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdatePictureRequest(c.Server, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateNameAndProfilePictureWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateNameAndProfilePictureRequestWithBody(c.Server, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateNameAndProfilePicture(ctx context.Context, userId string, body UpdateNameAndProfilePictureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateNameAndProfilePictureRequest(c.Server, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateSettingsWithBody(ctx context.Context, userId string, params *UpdateSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateSettingsRequestWithBody(c.Server, userId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateSettings(ctx context.Context, userId string, params *UpdateSettingsParams, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateSettingsRequest(c.Server, userId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateSummaryReportSettingsWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateSummaryReportSettingsRequestWithBody(c.Server, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateSummaryReportSettings(ctx context.Context, userId string, body UpdateSummaryReportSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateSummaryReportSettingsRequest(c.Server, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateTimeTrackingSettingsWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateTimeTrackingSettingsRequestWithBody(c.Server, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateTimeTrackingSettings(ctx context.Context, userId string, body UpdateTimeTrackingSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateTimeTrackingSettingsRequest(c.Server, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateTimezoneWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateTimezoneRequestWithBody(c.Server, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateTimezone(ctx context.Context, userId string, body UpdateTimezoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateTimezoneRequest(c.Server, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetVerificationCampaignNotifications(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetVerificationCampaignNotificationsRequest(c.Server, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) MarkNotificationsAsReadWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewMarkNotificationsAsReadRequestWithBody(c.Server, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) MarkNotificationsAsRead(ctx context.Context, userId string, body MarkNotificationsAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewMarkNotificationsAsReadRequest(c.Server, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWorkCapacityForUser(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetWorkCapacityForUserRequest(c.Server, userId, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersWorkingDays(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersWorkingDaysRequest(c.Server, userId, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UploadImageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUploadImageRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetAllUnfinishedWalkthroughTypes(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetAllUnfinishedWalkthroughTypesRequest(c.Server, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) FinishWalkthroughWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewFinishWalkthroughRequestWithBody(c.Server, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) FinishWalkthrough(ctx context.Context, userId string, body FinishWalkthroughJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewFinishWalkthroughRequest(c.Server, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetOwnerEmailByWorkspaceId(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetOwnerEmailByWorkspaceIdRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWorkspacesOfUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetWorkspacesOfUserRequest(c.Server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create(ctx context.Context, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWorkspaceInfo(ctx context.Context, params *GetWorkspaceInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetWorkspaceInfoRequest(c.Server, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) InsertLegacyPlanNotificationsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewInsertLegacyPlanNotificationsRequestWithBody(c.Server, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) InsertLegacyPlanNotifications(ctx context.Context, body InsertLegacyPlanNotificationsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewInsertLegacyPlanNotificationsRequest(c.Server, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetPermissionsToUserForWorkspacesWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetPermissionsToUserForWorkspacesRequestWithBody(c.Server, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetPermissionsToUserForWorkspaces(ctx context.Context, userId string, body GetPermissionsToUserForWorkspacesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetPermissionsToUserForWorkspacesRequest(c.Server, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) LeaveWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewLeaveWorkspaceRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWorkspaceById(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetWorkspaceByIdRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateWorkspaceWithBody(ctx context.Context, workspaceId string, params *UpdateWorkspaceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateWorkspaceRequestWithBody(c.Server, workspaceId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateWorkspace(ctx context.Context, workspaceId string, params *UpdateWorkspaceParams, body UpdateWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateWorkspaceRequest(c.Server, workspaceId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetABTesting(ctx context.Context, workspaceId string, params *GetABTestingParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetABTestingRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetActiveMembers(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetActiveMembersRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UninstallWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUninstallRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Uninstall(ctx context.Context, workspaceId string, body UninstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUninstallRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInstalledAddons(ctx context.Context, workspaceId string, params *GetInstalledAddonsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInstalledAddonsRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) InstallWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewInstallRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Install(ctx context.Context, workspaceId string, body InstallJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewInstallRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInstalledAddonsIdNamePair(ctx context.Context, workspaceId string, params *GetInstalledAddonsIdNamePairParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInstalledAddonsIdNamePairRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInstalledAddonsByKeysWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInstalledAddonsByKeysRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInstalledAddonsByKeys(ctx context.Context, workspaceId string, body GetInstalledAddonsByKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInstalledAddonsByKeysRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Uninstall1(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUninstall1Request(c.Server, workspaceId, addonId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetAddonById(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetAddonByIdRequest(c.Server, workspaceId, addonId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateSettings1WithBody(ctx context.Context, workspaceId string, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateSettings1RequestWithBody(c.Server, workspaceId, addonId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateSettings1(ctx context.Context, workspaceId string, addonId string, body UpdateSettings1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateSettings1Request(c.Server, workspaceId, addonId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateStatus3WithBody(ctx context.Context, workspaceId string, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateStatus3RequestWithBody(c.Server, workspaceId, addonId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateStatus3(ctx context.Context, workspaceId string, addonId string, body UpdateStatus3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateStatus3Request(c.Server, workspaceId, addonId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetAddonUserJWT(ctx context.Context, workspaceId string, addonId string, params *GetAddonUserJWTParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetAddonUserJWTRequest(c.Server, workspaceId, addonId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetAddonWebhooks(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetAddonWebhooksRequest(c.Server, workspaceId, addonId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemoveUninstalledAddon(ctx context.Context, workspaceId string, addonKey string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemoveUninstalledAddonRequest(c.Server, workspaceId, addonKey)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ListOfWorkspace1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewListOfWorkspace1Request(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create20WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate20RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create20(ctx context.Context, workspaceId string, body Create20JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate20Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete18(ctx context.Context, workspaceId string, alertId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete18Request(c.Server, workspaceId, alertId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update11WithBody(ctx context.Context, workspaceId string, alertId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate11RequestWithBody(c.Server, workspaceId, alertId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update11(ctx context.Context, workspaceId string, alertId string, body Update11JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate11Request(c.Server, workspaceId, alertId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetAllowedUpdates(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetAllowedUpdatesRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ApproveRequestsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewApproveRequestsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ApproveRequests(ctx context.Context, workspaceId string, body ApproveRequestsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewApproveRequestsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CountWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCountRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Count(ctx context.Context, workspaceId string, body CountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCountRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) HasPending(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewHasPendingRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemindManagersToApproveWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemindManagersToApproveRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemindManagersToApprove(ctx context.Context, workspaceId string, body RemindManagersToApproveJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemindManagersToApproveRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemindUsersToSubmitWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemindUsersToSubmitRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemindUsersToSubmit(ctx context.Context, workspaceId string, body RemindUsersToSubmitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemindUsersToSubmitRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetApprovalGroupsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApprovalGroupsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetApprovalGroups(ctx context.Context, workspaceId string, body GetApprovalGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApprovalGroupsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUnsubmittedSummariesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUnsubmittedSummariesRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUnsubmittedSummaries(ctx context.Context, workspaceId string, body GetUnsubmittedSummariesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUnsubmittedSummariesRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) WithdrawAllOfWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewWithdrawAllOfWorkspaceRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetRequestsByWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetRequestsByWorkspaceRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetApprovalRequest(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApprovalRequestRequest(c.Server, workspaceId, approvalRequestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateStatus2WithBody(ctx context.Context, workspaceId string, approvalRequestId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateStatus2RequestWithBody(c.Server, workspaceId, approvalRequestId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateStatus2(ctx context.Context, workspaceId string, approvalRequestId string, body UpdateStatus2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateStatus2Request(c.Server, workspaceId, approvalRequestId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetApprovalDashboard(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApprovalDashboardRequest(c.Server, workspaceId, approvalRequestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetApprovalDetails(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApprovalDetailsRequest(c.Server, workspaceId, approvalRequestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) FetchCustomAttributesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewFetchCustomAttributesRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) FetchCustomAttributes(ctx context.Context, workspaceId string, body FetchCustomAttributesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewFetchCustomAttributesRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CheckWorkspaceTransferPossibility(ctx context.Context, workspaceId string, params *CheckWorkspaceTransferPossibilityParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCheckWorkspaceTransferPossibilityRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteMany3WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteMany3RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteMany3(ctx context.Context, workspaceId string, body DeleteMany3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteMany3Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetClients1(ctx context.Context, workspaceId string, params *GetClients1Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetClients1Request(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateMany2WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateMany2RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateMany2(ctx context.Context, workspaceId string, body UpdateMany2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateMany2Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create19WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate19RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create19(ctx context.Context, workspaceId string, body Create19JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate19Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetArchivePermissionsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetArchivePermissionsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetArchivePermissions(ctx context.Context, workspaceId string, body GetArchivePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetArchivePermissionsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) HaveRelatedTasksWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewHaveRelatedTasksRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) HaveRelatedTasks(ctx context.Context, workspaceId string, body HaveRelatedTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewHaveRelatedTasksRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetClientsOfIdsWithBody(ctx context.Context, workspaceId string, params *GetClientsOfIdsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetClientsOfIdsRequestWithBody(c.Server, workspaceId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetClientsOfIds(ctx context.Context, workspaceId string, params *GetClientsOfIdsParams, body GetClientsOfIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetClientsOfIdsRequest(c.Server, workspaceId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetClientsForInvoiceFilter1(ctx context.Context, workspaceId string, params *GetClientsForInvoiceFilter1Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetClientsForInvoiceFilter1Request(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetClients2(ctx context.Context, workspaceId string, params *GetClients2Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetClients2Request(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetClientsForReportFilter(ctx context.Context, workspaceId string, params *GetClientsForReportFilterParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetClientsForReportFilterRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetClientIdsForReportFilter(ctx context.Context, workspaceId string, params *GetClientIdsForReportFilterParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetClientIdsForReportFilterRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimeOffPoliciesAndHolidaysForClientWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimeOffPoliciesAndHolidaysForClientRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimeOffPoliciesAndHolidaysForClient(ctx context.Context, workspaceId string, body GetTimeOffPoliciesAndHolidaysForClientJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimeOffPoliciesAndHolidaysForClientRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete17(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete17Request(c.Server, workspaceId, clientId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetClient(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetClientRequest(c.Server, workspaceId, clientId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProjectsArchivePermissions(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjectsArchivePermissionsRequest(c.Server, workspaceId, clientId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update10WithBody(ctx context.Context, workspaceId string, id string, params *Update10Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate10RequestWithBody(c.Server, workspaceId, id, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update10(ctx context.Context, workspaceId string, id string, params *Update10Params, body Update10JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate10Request(c.Server, workspaceId, id, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetCostRate2WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetCostRate2RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetCostRate2(ctx context.Context, workspaceId string, body SetCostRate2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetCostRate2Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetCoupon(ctx context.Context, workspaceId string, params *GetCouponParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetCouponRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWorkspaceCurrencies(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetWorkspaceCurrenciesRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateCurrencyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateCurrencyRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateCurrency(ctx context.Context, workspaceId string, body CreateCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateCurrencyRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemoveCurrency(ctx context.Context, workspaceId string, currencyId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemoveCurrencyRequest(c.Server, workspaceId, currencyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetCurrency(ctx context.Context, workspaceId string, currencyId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetCurrencyRequest(c.Server, workspaceId, currencyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateCurrencyCodeWithBody(ctx context.Context, workspaceId string, currencyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateCurrencyCodeRequestWithBody(c.Server, workspaceId, currencyId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateCurrencyCode(ctx context.Context, workspaceId string, currencyId string, body UpdateCurrencyCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateCurrencyCodeRequest(c.Server, workspaceId, currencyId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetCurrencyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetCurrencyRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetCurrency(ctx context.Context, workspaceId string, body SetCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetCurrencyRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) OfWorkspace(ctx context.Context, workspaceId string, params *OfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewOfWorkspaceRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create18WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate18RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create18(ctx context.Context, workspaceId string, body Create18JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate18Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) OfWorkspaceWithRequiredAvailability(ctx context.Context, workspaceId string, params *OfWorkspaceWithRequiredAvailabilityParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewOfWorkspaceWithRequiredAvailabilityRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete16(ctx context.Context, workspaceId string, customFieldId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete16Request(c.Server, workspaceId, customFieldId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EditWithBody(ctx context.Context, workspaceId string, customFieldId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditRequestWithBody(c.Server, workspaceId, customFieldId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Edit(ctx context.Context, workspaceId string, customFieldId string, body EditJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditRequest(c.Server, workspaceId, customFieldId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemoveDefaultValueOfProject(ctx context.Context, workspaceId string, customFieldId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemoveDefaultValueOfProjectRequest(c.Server, workspaceId, customFieldId, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EditDefaultValuesWithBody(ctx context.Context, workspaceId string, customFieldId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditDefaultValuesRequestWithBody(c.Server, workspaceId, customFieldId, projectId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EditDefaultValues(ctx context.Context, workspaceId string, customFieldId string, projectId string, body EditDefaultValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditDefaultValuesRequest(c.Server, workspaceId, customFieldId, projectId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetOfProject(ctx context.Context, workspaceId string, projectId string, params *GetOfProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetOfProjectRequest(c.Server, workspaceId, projectId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateCustomLabelsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateCustomLabelsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateCustomLabels(ctx context.Context, workspaceId string, body UpdateCustomLabelsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateCustomLabelsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddEmailWithBody(ctx context.Context, workspaceId string, userId string, params *AddEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddEmailRequestWithBody(c.Server, workspaceId, userId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddEmail(ctx context.Context, workspaceId string, userId string, params *AddEmailParams, body AddEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddEmailRequest(c.Server, workspaceId, userId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteManyExpensesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteManyExpensesRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteManyExpenses(ctx context.Context, workspaceId string, body DeleteManyExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteManyExpensesRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetExpenses(ctx context.Context, workspaceId string, params *GetExpensesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetExpensesRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateExpenseWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateExpenseRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetCategories(ctx context.Context, workspaceId string, params *GetCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetCategoriesRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create17WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate17RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create17(ctx context.Context, workspaceId string, body Create17JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate17Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetCategoriesByIds(ctx context.Context, workspaceId string, params *GetCategoriesByIdsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetCategoriesByIdsRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteCategory(ctx context.Context, workspaceId string, categoryId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteCategoryRequest(c.Server, workspaceId, categoryId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateCategoryWithBody(ctx context.Context, workspaceId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateCategoryRequestWithBody(c.Server, workspaceId, categoryId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateCategory(ctx context.Context, workspaceId string, categoryId string, body UpdateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateCategoryRequest(c.Server, workspaceId, categoryId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateStatus1WithBody(ctx context.Context, workspaceId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateStatus1RequestWithBody(c.Server, workspaceId, categoryId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateStatus1(ctx context.Context, workspaceId string, categoryId string, body UpdateStatus1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateStatus1Request(c.Server, workspaceId, categoryId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetExpensesInDateRange(ctx context.Context, workspaceId string, params *GetExpensesInDateRangeParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetExpensesInDateRangeRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateInvoicedStatus1WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateInvoicedStatus1RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateInvoicedStatus1(ctx context.Context, workspaceId string, body UpdateInvoicedStatus1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateInvoicedStatus1Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RestoreManyExpensesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRestoreManyExpensesRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RestoreManyExpenses(ctx context.Context, workspaceId string, body RestoreManyExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRestoreManyExpensesRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteExpense(ctx context.Context, workspaceId string, expenseId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteExpenseRequest(c.Server, workspaceId, expenseId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetExpense(ctx context.Context, workspaceId string, expenseId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetExpenseRequest(c.Server, workspaceId, expenseId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateExpenseWithBody(ctx context.Context, workspaceId string, expenseId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateExpenseRequestWithBody(c.Server, workspaceId, expenseId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DownloadFile(ctx context.Context, workspaceId string, expenseId string, fileId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDownloadFileRequest(c.Server, workspaceId, expenseId, fileId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ImportFileDataWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewImportFileDataRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ImportFileData(ctx context.Context, workspaceId string, body ImportFileDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewImportFileDataRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CheckUsersForImport(ctx context.Context, workspaceId string, fileImportId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCheckUsersForImportRequest(c.Server, workspaceId, fileImportId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetHolidays(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetHolidaysRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create16WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate16RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create16(ctx context.Context, workspaceId string, body Create16JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate16Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete15(ctx context.Context, workspaceId string, holidayId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete15Request(c.Server, workspaceId, holidayId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update9WithBody(ctx context.Context, workspaceId string, holidayId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate9RequestWithBody(c.Server, workspaceId, holidayId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update9(ctx context.Context, workspaceId string, holidayId string, body Update9JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate9Request(c.Server, workspaceId, holidayId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetHourlyRate2WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetHourlyRate2RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetHourlyRate2(ctx context.Context, workspaceId string, body SetHourlyRate2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetHourlyRate2Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInvitedEmailsInfoWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInvitedEmailsInfoRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInvitedEmailsInfo(ctx context.Context, workspaceId string, body GetInvitedEmailsInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInvitedEmailsInfoRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInvoiceEmailTemplates(ctx context.Context, workspaceId string, params *GetInvoiceEmailTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInvoiceEmailTemplatesRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpsertInvoiceEmailTemplateWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpsertInvoiceEmailTemplateRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpsertInvoiceEmailTemplate(ctx context.Context, workspaceId string, body UpsertInvoiceEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpsertInvoiceEmailTemplateRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInvoiceEmailData(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInvoiceEmailDataRequest(c.Server, workspaceId, invoiceId, invoiceEmailTemplateType)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SendInvoiceEmailWithBody(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSendInvoiceEmailRequestWithBody(c.Server, workspaceId, invoiceId, invoiceEmailTemplateType, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SendInvoiceEmail(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, body SendInvoiceEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSendInvoiceEmailRequest(c.Server, workspaceId, invoiceId, invoiceEmailTemplateType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateInvoiceWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateInvoiceRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateInvoice(ctx context.Context, workspaceId string, body CreateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateInvoiceRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetAllCompanies(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetAllCompaniesRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateCompanyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateCompanyRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateCompany(ctx context.Context, workspaceId string, body CreateCompanyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateCompanyRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateCompaniesInWorkspaceWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateCompaniesInWorkspaceRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateCompaniesInWorkspace(ctx context.Context, workspaceId string, body UpdateCompaniesInWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateCompaniesInWorkspaceRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CountAllCompanies(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCountAllCompaniesRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetClientsForInvoiceFilter(ctx context.Context, workspaceId string, params *GetClientsForInvoiceFilterParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetClientsForInvoiceFilterRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteCompany(ctx context.Context, workspaceId string, companyId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteCompanyRequest(c.Server, workspaceId, companyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetCompanyById(ctx context.Context, workspaceId string, companyId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetCompanyByIdRequest(c.Server, workspaceId, companyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateCompanyWithBody(ctx context.Context, workspaceId string, companyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateCompanyRequestWithBody(c.Server, workspaceId, companyId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateCompany(ctx context.Context, workspaceId string, companyId string, body UpdateCompanyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateCompanyRequest(c.Server, workspaceId, companyId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInvoicesInfoWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInvoicesInfoRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInvoicesInfo(ctx context.Context, workspaceId string, body GetInvoicesInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInvoicesInfoRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInvoiceItemTypes(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInvoiceItemTypesRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateInvoiceItemTypeWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateInvoiceItemTypeRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateInvoiceItemType(ctx context.Context, workspaceId string, body CreateInvoiceItemTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateInvoiceItemTypeRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteInvoiceItemType(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteInvoiceItemTypeRequest(c.Server, workspaceId, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateInvoiceItemTypeWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateInvoiceItemTypeRequestWithBody(c.Server, workspaceId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateInvoiceItemType(ctx context.Context, workspaceId string, id string, body UpdateInvoiceItemTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateInvoiceItemTypeRequest(c.Server, workspaceId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetNextInvoiceNumber(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetNextInvoiceNumberRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInvoicePermissions(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInvoicePermissionsRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateInvoicePermissionsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateInvoicePermissionsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateInvoicePermissions(ctx context.Context, workspaceId string, body UpdateInvoicePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateInvoicePermissionsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CanUserManageInvoices(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCanUserManageInvoicesRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInvoiceSettings(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInvoiceSettingsRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateInvoiceSettingsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateInvoiceSettingsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateInvoiceSettings(ctx context.Context, workspaceId string, body UpdateInvoiceSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateInvoiceSettingsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteInvoice(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteInvoiceRequest(c.Server, workspaceId, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInvoice(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInvoiceRequest(c.Server, workspaceId, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateInvoiceWithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateInvoiceRequestWithBody(c.Server, workspaceId, invoiceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateInvoice(ctx context.Context, workspaceId string, invoiceId string, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateInvoiceRequest(c.Server, workspaceId, invoiceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DuplicateInvoice(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDuplicateInvoiceRequest(c.Server, workspaceId, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ExportInvoice(ctx context.Context, workspaceId string, invoiceId string, params *ExportInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewExportInvoiceRequest(c.Server, workspaceId, invoiceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ImportTimeAndExpensesWithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewImportTimeAndExpensesRequestWithBody(c.Server, workspaceId, invoiceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ImportTimeAndExpenses(ctx context.Context, workspaceId string, invoiceId string, body ImportTimeAndExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewImportTimeAndExpensesRequest(c.Server, workspaceId, invoiceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddInvoiceItem(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddInvoiceItemRequest(c.Server, workspaceId, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ReorderInvoiceItem1WithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewReorderInvoiceItem1RequestWithBody(c.Server, workspaceId, invoiceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ReorderInvoiceItem1(ctx context.Context, workspaceId string, invoiceId string, body ReorderInvoiceItem1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewReorderInvoiceItem1Request(c.Server, workspaceId, invoiceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EditInvoiceItemWithBody(ctx context.Context, workspaceId string, invoiceId string, invoiceItemOrder int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditInvoiceItemRequestWithBody(c.Server, workspaceId, invoiceId, invoiceItemOrder, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EditInvoiceItem(ctx context.Context, workspaceId string, invoiceId string, invoiceItemOrder int32, body EditInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditInvoiceItemRequest(c.Server, workspaceId, invoiceId, invoiceItemOrder, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteInvoiceItems(ctx context.Context, workspaceId string, invoiceId string, params *DeleteInvoiceItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteInvoiceItemsRequest(c.Server, workspaceId, invoiceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetPaymentsForInvoice(ctx context.Context, workspaceId string, invoiceId string, params *GetPaymentsForInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetPaymentsForInvoiceRequest(c.Server, workspaceId, invoiceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateInvoicePaymentWithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateInvoicePaymentRequestWithBody(c.Server, workspaceId, invoiceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateInvoicePayment(ctx context.Context, workspaceId string, invoiceId string, body CreateInvoicePaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateInvoicePaymentRequest(c.Server, workspaceId, invoiceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeletePaymentById(ctx context.Context, workspaceId string, invoiceId string, paymentId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeletePaymentByIdRequest(c.Server, workspaceId, invoiceId, paymentId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ChangeInvoiceStatusWithBody(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewChangeInvoiceStatusRequestWithBody(c.Server, workspaceId, invoiceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ChangeInvoiceStatus(ctx context.Context, workspaceId string, invoiceId string, body ChangeInvoiceStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewChangeInvoiceStatusRequest(c.Server, workspaceId, invoiceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AuthorizationCheck(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAuthorizationCheckRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) IsAvailable(ctx context.Context, workspaceId string, params *IsAvailableParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewIsAvailableRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) IsAvailable1(ctx context.Context, workspaceId string, userId string, params *IsAvailable1Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewIsAvailable1Request(c.Server, workspaceId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GeneratePinCode(ctx context.Context, workspaceId string, params *GeneratePinCodeParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGeneratePinCodeRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GeneratePinCodeForUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGeneratePinCodeForUserRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserPinCode(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserPinCodeRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdatePinCodeWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdatePinCodeRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdatePinCode(ctx context.Context, workspaceId string, userId string, body UpdatePinCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdatePinCodeRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetKiosksOfWorkspace(ctx context.Context, workspaceId string, params *GetKiosksOfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetKiosksOfWorkspaceRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create15WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate15RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create15(ctx context.Context, workspaceId string, body Create15JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate15Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateBreakDefaultsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateBreakDefaultsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateBreakDefaults(ctx context.Context, workspaceId string, body UpdateBreakDefaultsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateBreakDefaultsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTotalCountOfKiosksOnWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTotalCountOfKiosksOnWorkspaceRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateDefaultsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateDefaultsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateDefaults(ctx context.Context, workspaceId string, body UpdateDefaultsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateDefaultsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) HasActiveKiosks(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewHasActiveKiosksRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWithProjectWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetWithProjectRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWithProject(ctx context.Context, workspaceId string, body GetWithProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetWithProjectRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWithTaskWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetWithTaskRequestWithBody(c.Server, workspaceId, projectId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWithTask(ctx context.Context, workspaceId string, projectId string, body GetWithTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetWithTaskRequest(c.Server, workspaceId, projectId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetForReportFilter(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetForReportFilterRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWithoutDefaults(ctx context.Context, workspaceId string, params *GetWithoutDefaultsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetWithoutDefaultsRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteKiosk(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteKioskRequest(c.Server, workspaceId, kioskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetKioskById(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetKioskByIdRequest(c.Server, workspaceId, kioskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update8WithBody(ctx context.Context, workspaceId string, kioskId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate8RequestWithBody(c.Server, workspaceId, kioskId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update8(ctx context.Context, workspaceId string, kioskId string, body Update8JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate8Request(c.Server, workspaceId, kioskId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ExportAssignees(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewExportAssigneesRequest(c.Server, workspaceId, kioskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) HasEntryInProgress(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewHasEntryInProgressRequest(c.Server, workspaceId, kioskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateStatusWithBody(ctx context.Context, workspaceId string, kioskId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateStatusRequestWithBody(c.Server, workspaceId, kioskId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateStatus(ctx context.Context, workspaceId string, kioskId string, body UpdateStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateStatusRequest(c.Server, workspaceId, kioskId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AcknowledgeLegacyPlanNotifications(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAcknowledgeLegacyPlanNotificationsRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetLegacyPlanUpgradeData(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetLegacyPlanUpgradeDataRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddLimitedUsersWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddLimitedUsersRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddLimitedUsers(ctx context.Context, workspaceId string, body AddLimitedUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddLimitedUsersRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetLimitedUsersCount(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetLimitedUsersCountRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetMemberProfile(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetMemberProfileRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateMemberProfileWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateMemberProfileRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateMemberProfile(ctx context.Context, workspaceId string, userId string, body UpdateMemberProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateMemberProfileRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateMemberProfileWithAdditionalDataWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateMemberProfileWithAdditionalDataRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateMemberProfileWithAdditionalData(ctx context.Context, workspaceId string, userId string, body UpdateMemberProfileWithAdditionalDataJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateMemberProfileWithAdditionalDataRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateMemberSettingsWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateMemberSettingsRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateMemberSettings(ctx context.Context, workspaceId string, userId string, body UpdateMemberSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateMemberSettingsRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWeekStart(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetWeekStartRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateMemberWorkingDaysAndCapacityWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateMemberWorkingDaysAndCapacityRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateMemberWorkingDaysAndCapacity(ctx context.Context, workspaceId string, userId string, body UpdateMemberWorkingDaysAndCapacityJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateMemberWorkingDaysAndCapacityRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetMembersCount(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetMembersCountRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) FindNotInvitedEmailsInWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewFindNotInvitedEmailsInRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) FindNotInvitedEmailsIn(ctx context.Context, workspaceId string, body FindNotInvitedEmailsInJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewFindNotInvitedEmailsInRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetOrganization(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetOrganizationRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create14WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate14RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create14(ctx context.Context, workspaceId string, body Create14JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate14Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetOrganizationName(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetOrganizationNameRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CheckAvailabilityOfDomainName(ctx context.Context, workspaceId string, params *CheckAvailabilityOfDomainNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCheckAvailabilityOfDomainNameRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteOrganization(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteOrganizationRequest(c.Server, workspaceId, organizationId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateOrganizationWithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateOrganizationRequestWithBody(c.Server, workspaceId, organizationId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateOrganization(ctx context.Context, workspaceId string, organizationId string, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateOrganizationRequest(c.Server, workspaceId, organizationId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetLoginSettings(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetLoginSettingsRequest(c.Server, workspaceId, organizationId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteOAuth2Configuration(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteOAuth2ConfigurationRequest(c.Server, workspaceId, organizationId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetOrganizationOAuth2Configuration(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetOrganizationOAuth2ConfigurationRequest(c.Server, workspaceId, organizationId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateOAuth2Configuration1WithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateOAuth2Configuration1RequestWithBody(c.Server, workspaceId, organizationId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateOAuth2Configuration1(ctx context.Context, workspaceId string, organizationId string, body UpdateOAuth2Configuration1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateOAuth2Configuration1Request(c.Server, workspaceId, organizationId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) TestOAuth2ConfigurationWithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewTestOAuth2ConfigurationRequestWithBody(c.Server, workspaceId, organizationId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) TestOAuth2Configuration(ctx context.Context, workspaceId string, organizationId string, body TestOAuth2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewTestOAuth2ConfigurationRequest(c.Server, workspaceId, organizationId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteSAML2Configuration(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteSAML2ConfigurationRequest(c.Server, workspaceId, organizationId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetOrganizationSAML2Configuration(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetOrganizationSAML2ConfigurationRequest(c.Server, workspaceId, organizationId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateSAML2ConfigurationWithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateSAML2ConfigurationRequestWithBody(c.Server, workspaceId, organizationId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateSAML2Configuration(ctx context.Context, workspaceId string, organizationId string, body UpdateSAML2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateSAML2ConfigurationRequest(c.Server, workspaceId, organizationId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) TestSAML2ConfigurationWithBody(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewTestSAML2ConfigurationRequestWithBody(c.Server, workspaceId, organizationId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) TestSAML2Configuration(ctx context.Context, workspaceId string, organizationId string, body TestSAML2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewTestSAML2ConfigurationRequest(c.Server, workspaceId, organizationId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetAllOrganizationsOfUser(ctx context.Context, workspaceId string, userId string, params *GetAllOrganizationsOfUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetAllOrganizationsOfUserRequest(c.Server, workspaceId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWorkspaceOwner(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetWorkspaceOwnerRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) TransferOwnershipWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewTransferOwnershipRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) TransferOwnership(ctx context.Context, workspaceId string, body TransferOwnershipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewTransferOwnershipRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWorkspaceOwnerTimeZone(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetWorkspaceOwnerTimeZoneRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CancelSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCancelSubscriptionRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CancelSubscription(ctx context.Context, workspaceId string, body CancelSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCancelSubscriptionRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ConfirmPayment(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewConfirmPaymentRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetCustomerInfo(ctx context.Context, workspaceId string, params *GetCustomerInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetCustomerInfoRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateCustomerWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateCustomerRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateCustomer(ctx context.Context, workspaceId string, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateCustomerRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateCustomerWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateCustomerRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateCustomer(ctx context.Context, workspaceId string, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateCustomerRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EditInvoiceInformationWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditInvoiceInformationRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EditInvoiceInformation(ctx context.Context, workspaceId string, body EditInvoiceInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditInvoiceInformationRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EditPaymentInformationWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditPaymentInformationRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EditPaymentInformation(ctx context.Context, workspaceId string, body EditPaymentInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditPaymentInformationRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ExtendTrial(ctx context.Context, workspaceId string, params *ExtendTrialParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewExtendTrialRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetFeatureSubscriptions(ctx context.Context, workspaceId string, params *GetFeatureSubscriptionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetFeatureSubscriptionsRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) InitialUpgradeWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewInitialUpgradeRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) InitialUpgrade(ctx context.Context, workspaceId string, body InitialUpgradeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewInitialUpgradeRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInvoiceInfo(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInvoiceInfoRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInvoices(ctx context.Context, workspaceId string, params *GetInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInvoicesRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInvoicesCount(ctx context.Context, workspaceId string, params *GetInvoicesCountParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInvoicesCountRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetLastOpenInvoice(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetLastOpenInvoiceRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetInvoicesList(ctx context.Context, workspaceId string, params *GetInvoicesListParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetInvoicesListRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetPaymentDate(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetPaymentDateRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetPaymentInfo(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetPaymentInfoRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateSetupIntentForPaymentMethodWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateSetupIntentForPaymentMethodRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateSetupIntentForPaymentMethod(ctx context.Context, workspaceId string, body CreateSetupIntentForPaymentMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateSetupIntentForPaymentMethodRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) PreviewUpgrade(ctx context.Context, workspaceId string, params *PreviewUpgradeParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPreviewUpgradeRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ReactivateSubscription(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewReactivateSubscriptionRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetScheduledInvoiceInfo(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetScheduledInvoiceInfoRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateUserSeatsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateUserSeatsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateUserSeats(ctx context.Context, workspaceId string, body UpdateUserSeatsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateUserSeatsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateSetupIntentForInitialSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateSetupIntentForInitialSubscriptionRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateSetupIntentForInitialSubscription(ctx context.Context, workspaceId string, body CreateSetupIntentForInitialSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateSetupIntentForInitialSubscriptionRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateSubscriptionRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateSubscription(ctx context.Context, workspaceId string, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateSubscriptionRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateSubscriptionRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateSubscription(ctx context.Context, workspaceId string, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateSubscriptionRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpgradePreCheck(ctx context.Context, workspaceId string, params *UpgradePreCheckParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpgradePreCheckRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteSubscriptionWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteSubscriptionRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteSubscription(ctx context.Context, workspaceId string, body DeleteSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteSubscriptionRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) TerminateTrial(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewTerminateTrialRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) StartTrial(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewStartTrialRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) WasRegionalEverAllowed(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewWasRegionalEverAllowedRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) FindForUserAndPolicy(ctx context.Context, workspaceId string, policyId string, userId string, params *FindForUserAndPolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewFindForUserAndPolicyRequest(c.Server, workspaceId, policyId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetClients(ctx context.Context, workspaceId string, params *GetClientsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetClientsRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProjects3(ctx context.Context, workspaceId string, params *GetProjects3Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjects3Request(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProjectFavorites(ctx context.Context, workspaceId string, params *GetProjectFavoritesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjectFavoritesRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTasks21(ctx context.Context, workspaceId string, projectId string, params *GetTasks21Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTasks21Request(c.Server, workspaceId, projectId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RecalculateProjectStatus1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRecalculateProjectStatus1Request(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProjectAndTaskWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjectAndTaskRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProjectAndTask(ctx context.Context, workspaceId string, body GetProjectAndTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjectAndTaskRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteMany2WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteMany2RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteMany2(ctx context.Context, workspaceId string, body DeleteMany2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteMany2Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProjects2(ctx context.Context, workspaceId string, params *GetProjects2Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjects2Request(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateMany1WithBody(ctx context.Context, workspaceId string, params *UpdateMany1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateMany1RequestWithBody(c.Server, workspaceId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateMany1(ctx context.Context, workspaceId string, params *UpdateMany1Params, body UpdateMany1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateMany1Request(c.Server, workspaceId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create12WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate12RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create12(ctx context.Context, workspaceId string, body Create12JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate12Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetFilteredProjectsCount(ctx context.Context, workspaceId string, params *GetFilteredProjectsCountParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetFilteredProjectsCountRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetFilteredProjectsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetFilteredProjectsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetFilteredProjects(ctx context.Context, workspaceId string, body GetFilteredProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetFilteredProjectsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateFromTemplateWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateFromTemplateRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateFromTemplate(ctx context.Context, workspaceId string, body CreateFromTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateFromTemplateRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProjectWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjectRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProject(ctx context.Context, workspaceId string, body GetProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjectRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetLastUsedProject(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetLastUsedProjectRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) LastUsedProject1(ctx context.Context, workspaceId string, params *LastUsedProject1Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewLastUsedProject1Request(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProjectsList(ctx context.Context, workspaceId string, params *GetProjectsListParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjectsListRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) HasManagerRole1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewHasManagerRole1Request(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProjectsForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjectsForReportFilterRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProjectsForReportFilter(ctx context.Context, workspaceId string, body GetProjectsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjectsForReportFilterRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProjectIdsForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjectIdsForReportFilterRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProjectIdsForReportFilter(ctx context.Context, workspaceId string, body GetProjectIdsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjectIdsForReportFilterRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTasksByIdsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTasksByIdsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTasksByIds(ctx context.Context, workspaceId string, body GetTasksByIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTasksByIdsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetAllTasksWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetAllTasksRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetAllTasks(ctx context.Context, workspaceId string, body GetAllTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetAllTasksRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTasksWithBody(ctx context.Context, workspaceId string, params *GetTasksParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTasksRequestWithBody(c.Server, workspaceId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTasks(ctx context.Context, workspaceId string, params *GetTasksParams, body GetTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTasksRequest(c.Server, workspaceId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTasksForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTasksForReportFilterRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTasksForReportFilter(ctx context.Context, workspaceId string, body GetTasksForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTasksForReportFilterRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTaskIdsForReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTaskIdsForReportFilterRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTaskIdsForReportFilter(ctx context.Context, workspaceId string, body GetTaskIdsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTaskIdsForReportFilterRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimeOffPoliciesAndHolidaysWithProjectsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimeOffPoliciesAndHolidaysWithProjectsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimeOffPoliciesAndHolidaysWithProjects(ctx context.Context, workspaceId string, body GetTimeOffPoliciesAndHolidaysWithProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimeOffPoliciesAndHolidaysWithProjectsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetLastUsedOfUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetLastUsedOfUserRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetPermissionsToUserForProjectsWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetPermissionsToUserForProjectsRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetPermissionsToUserForProjects(ctx context.Context, workspaceId string, userId string, body GetPermissionsToUserForProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetPermissionsToUserForProjectsRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete13(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete13Request(c.Server, workspaceId, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProject1(ctx context.Context, workspaceId string, projectId string, params *GetProject1Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProject1Request(c.Server, workspaceId, projectId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update14WithBody(ctx context.Context, workspaceId string, projectId string, params *Update14Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate14RequestWithBody(c.Server, workspaceId, projectId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update14(ctx context.Context, workspaceId string, projectId string, params *Update14Params, body Update14JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate14Request(c.Server, workspaceId, projectId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update6WithBody(ctx context.Context, workspaceId string, projectId string, params *Update6Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate6RequestWithBody(c.Server, workspaceId, projectId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update6(ctx context.Context, workspaceId string, projectId string, params *Update6Params, body Update6JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate6Request(c.Server, workspaceId, projectId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetCostRate1WithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetCostRate1RequestWithBody(c.Server, workspaceId, projectId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetCostRate1(ctx context.Context, workspaceId string, projectId string, body SetCostRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetCostRate1Request(c.Server, workspaceId, projectId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateEstimateWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateEstimateRequestWithBody(c.Server, workspaceId, projectId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateEstimate(ctx context.Context, workspaceId string, projectId string, body UpdateEstimateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateEstimateRequest(c.Server, workspaceId, projectId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetHourlyRate1WithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetHourlyRate1RequestWithBody(c.Server, workspaceId, projectId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetHourlyRate1(ctx context.Context, workspaceId string, projectId string, body SetHourlyRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetHourlyRate1Request(c.Server, workspaceId, projectId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) HasManagerRole(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewHasManagerRoleRequest(c.Server, workspaceId, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetAuthsForProject(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetAuthsForProjectRequest(c.Server, workspaceId, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RecalculateProjectStatus(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRecalculateProjectStatusRequest(c.Server, workspaceId, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTasks1(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTasks1Request(c.Server, workspaceId, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create13WithBody(ctx context.Context, workspaceId string, projectId string, params *Create13Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate13RequestWithBody(c.Server, workspaceId, projectId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create13(ctx context.Context, workspaceId string, projectId string, params *Create13Params, body Create13JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate13Request(c.Server, workspaceId, projectId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTasksAssignedToUser(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTasksAssignedToUserRequest(c.Server, workspaceId, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimeOffPoliciesAndHolidaysWithTasksWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimeOffPoliciesAndHolidaysWithTasksRequestWithBody(c.Server, workspaceId, projectId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimeOffPoliciesAndHolidaysWithTasks(ctx context.Context, workspaceId string, projectId string, body GetTimeOffPoliciesAndHolidaysWithTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimeOffPoliciesAndHolidaysWithTasksRequest(c.Server, workspaceId, projectId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update7WithBody(ctx context.Context, workspaceId string, projectId string, id string, params *Update7Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate7RequestWithBody(c.Server, workspaceId, projectId, id, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update7(ctx context.Context, workspaceId string, projectId string, id string, params *Update7Params, body Update7JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate7Request(c.Server, workspaceId, projectId, id, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetCostRateWithBody(ctx context.Context, workspaceId string, projectId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetCostRateRequestWithBody(c.Server, workspaceId, projectId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetCostRate(ctx context.Context, workspaceId string, projectId string, id string, body SetCostRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetCostRateRequest(c.Server, workspaceId, projectId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetHourlyRateWithBody(ctx context.Context, workspaceId string, projectId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetHourlyRateRequestWithBody(c.Server, workspaceId, projectId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetHourlyRate(ctx context.Context, workspaceId string, projectId string, id string, body SetHourlyRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetHourlyRateRequest(c.Server, workspaceId, projectId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete14(ctx context.Context, workspaceId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete14Request(c.Server, workspaceId, projectId, taskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTaskAssignedToUser(ctx context.Context, workspaceId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTaskAssignedToUserRequest(c.Server, workspaceId, projectId, taskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddUsers1WithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddUsers1RequestWithBody(c.Server, workspaceId, projectId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddUsers1(ctx context.Context, workspaceId string, projectId string, body AddUsers1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddUsers1Request(c.Server, workspaceId, projectId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetStatus(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetStatusRequest(c.Server, workspaceId, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemoveUserGroupMembership(ctx context.Context, workspaceId string, projectId string, usergroupId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemoveUserGroupMembershipRequest(c.Server, workspaceId, projectId, usergroupId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsers4(ctx context.Context, workspaceId string, projectId string, params *GetUsers4Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsers4Request(c.Server, workspaceId, projectId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddUsersCostRate1WithBody(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddUsersCostRate1RequestWithBody(c.Server, workspaceId, projectId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddUsersCostRate1(ctx context.Context, workspaceId string, projectId string, userId string, body AddUsersCostRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddUsersCostRate1Request(c.Server, workspaceId, projectId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddUsersHourlyRate1WithBody(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddUsersHourlyRate1RequestWithBody(c.Server, workspaceId, projectId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddUsersHourlyRate1(ctx context.Context, workspaceId string, projectId string, userId string, body AddUsersHourlyRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddUsersHourlyRate1Request(c.Server, workspaceId, projectId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemoveUserMembership(ctx context.Context, workspaceId string, projectId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemoveUserMembershipRequest(c.Server, workspaceId, projectId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemovePermissionsToUserWithBody(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemovePermissionsToUserRequestWithBody(c.Server, workspaceId, projectId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemovePermissionsToUser(ctx context.Context, workspaceId string, projectId string, userId string, body RemovePermissionsToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemovePermissionsToUserRequest(c.Server, workspaceId, projectId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetPermissionsToUser1(ctx context.Context, workspaceId string, projectId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetPermissionsToUser1Request(c.Server, workspaceId, projectId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddPermissionsToUserWithBody(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddPermissionsToUserRequestWithBody(c.Server, workspaceId, projectId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddPermissionsToUser(ctx context.Context, workspaceId string, projectId string, userId string, body AddPermissionsToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddPermissionsToUserRequest(c.Server, workspaceId, projectId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Disconnect(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDisconnectRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ConnectWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewConnectRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Connect(ctx context.Context, workspaceId string, body ConnectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewConnectRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Connect1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewConnect1Request(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SyncClientsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSyncClientsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SyncClients(ctx context.Context, workspaceId string, body SyncClientsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSyncClientsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SyncProjectsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSyncProjectsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SyncProjects(ctx context.Context, workspaceId string, body SyncProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSyncProjectsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateProjectsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateProjectsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateProjects(ctx context.Context, workspaceId string, body UpdateProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateProjectsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetAllRegionsForUserAccount(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetAllRegionsForUserAccountRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ListOfWorkspace(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewListOfWorkspaceRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create11WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate11RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create11(ctx context.Context, workspaceId string, body Create11JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate11Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) OfWorkspaceIdAndUserId(ctx context.Context, workspaceId string, params *OfWorkspaceIdAndUserIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewOfWorkspaceIdAndUserIdRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete12(ctx context.Context, workspaceId string, reminderId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete12Request(c.Server, workspaceId, reminderId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update5WithBody(ctx context.Context, workspaceId string, reminderId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate5RequestWithBody(c.Server, workspaceId, reminderId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update5(ctx context.Context, workspaceId string, reminderId string, body Update5JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate5Request(c.Server, workspaceId, reminderId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetDashboardInfoWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetDashboardInfoRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetDashboardInfo(ctx context.Context, workspaceId string, body GetDashboardInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetDashboardInfoRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetMyMostTracked(ctx context.Context, workspaceId string, params *GetMyMostTrackedParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetMyMostTrackedRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTeamActivities(ctx context.Context, workspaceId string, params *GetTeamActivitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTeamActivitiesRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetAmountPreview(ctx context.Context, workspaceId string, params *GetAmountPreviewParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetAmountPreviewRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetDraftAssignmentsCountWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetDraftAssignmentsCountRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetDraftAssignmentsCount(ctx context.Context, workspaceId string, body GetDraftAssignmentsCountJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetDraftAssignmentsCountRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProjectTotals(ctx context.Context, workspaceId string, params *GetProjectTotalsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjectTotalsRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetFilteredProjectTotalsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetFilteredProjectTotalsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetFilteredProjectTotals(ctx context.Context, workspaceId string, body GetFilteredProjectTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetFilteredProjectTotalsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProjectTotalsForSingleProject(ctx context.Context, workspaceId string, projectId string, params *GetProjectTotalsForSingleProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjectTotalsForSingleProjectRequest(c.Server, workspaceId, projectId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProjectsForUser(ctx context.Context, workspaceId string, projectId string, userId string, params *GetProjectsForUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjectsForUserRequest(c.Server, workspaceId, projectId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) PublishAssignmentsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPublishAssignmentsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) PublishAssignments(ctx context.Context, workspaceId string, body PublishAssignmentsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPublishAssignmentsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateRecurringWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateRecurringRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateRecurring(ctx context.Context, workspaceId string, body CreateRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateRecurringRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete11(ctx context.Context, workspaceId string, assignmentId string, params *Delete11Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete11Request(c.Server, workspaceId, assignmentId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EditRecurringWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditRecurringRequestWithBody(c.Server, workspaceId, assignmentId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EditRecurring(ctx context.Context, workspaceId string, assignmentId string, body EditRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditRecurringRequest(c.Server, workspaceId, assignmentId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EditPeriodForRecurringWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditPeriodForRecurringRequestWithBody(c.Server, workspaceId, assignmentId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EditPeriodForRecurring(ctx context.Context, workspaceId string, assignmentId string, body EditPeriodForRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditPeriodForRecurringRequest(c.Server, workspaceId, assignmentId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EditRecurringPeriodWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditRecurringPeriodRequestWithBody(c.Server, workspaceId, assignmentId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EditRecurringPeriod(ctx context.Context, workspaceId string, assignmentId string, body EditRecurringPeriodJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditRecurringPeriodRequest(c.Server, workspaceId, assignmentId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserTotalsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserTotalsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserTotals(ctx context.Context, workspaceId string, body GetUserTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserTotalsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetAssignmentsForUser(ctx context.Context, workspaceId string, userId string, params *GetAssignmentsForUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetAssignmentsForUserRequest(c.Server, workspaceId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetFilteredAssignmentsForUserWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetFilteredAssignmentsForUserRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetFilteredAssignmentsForUser(ctx context.Context, workspaceId string, userId string, body GetFilteredAssignmentsForUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetFilteredAssignmentsForUserRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsers3(ctx context.Context, workspaceId string, projectId string, params *GetUsers3Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsers3Request(c.Server, workspaceId, projectId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProjects1(ctx context.Context, workspaceId string, userId string, params *GetProjects1Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjects1Request(c.Server, workspaceId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemindToPublish(ctx context.Context, workspaceId string, userId string, params *RemindToPublishParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemindToPublishRequest(c.Server, workspaceId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserTotalsForSingleUser(ctx context.Context, workspaceId string, userId string, params *GetUserTotalsForSingleUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserTotalsForSingleUserRequest(c.Server, workspaceId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Get3(ctx context.Context, workspaceId string, assignmentId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGet3Request(c.Server, workspaceId, assignmentId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CopyAssignmentWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCopyAssignmentRequestWithBody(c.Server, workspaceId, assignmentId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CopyAssignment(ctx context.Context, workspaceId string, assignmentId string, body CopyAssignmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCopyAssignmentRequest(c.Server, workspaceId, assignmentId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SplitAssignmentWithBody(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSplitAssignmentRequestWithBody(c.Server, workspaceId, assignmentId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SplitAssignment(ctx context.Context, workspaceId string, assignmentId string, body SplitAssignmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSplitAssignmentRequest(c.Server, workspaceId, assignmentId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ShiftScheduleWithBody(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewShiftScheduleRequestWithBody(c.Server, workspaceId, projectId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ShiftSchedule(ctx context.Context, workspaceId string, projectId string, body ShiftScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewShiftScheduleRequest(c.Server, workspaceId, projectId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) HideProject(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewHideProjectRequest(c.Server, workspaceId, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ShowProject(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewShowProjectRequest(c.Server, workspaceId, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) HideUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewHideUserRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ShowUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewShowUserRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create10WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate10RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create10(ctx context.Context, workspaceId string, body Create10JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate10Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete10(ctx context.Context, workspaceId string, milestoneId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete10Request(c.Server, workspaceId, milestoneId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Get2(ctx context.Context, workspaceId string, milestoneId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGet2Request(c.Server, workspaceId, milestoneId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Edit1WithBody(ctx context.Context, workspaceId string, milestoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEdit1RequestWithBody(c.Server, workspaceId, milestoneId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Edit1(ctx context.Context, workspaceId string, milestoneId string, body Edit1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEdit1Request(c.Server, workspaceId, milestoneId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EditDateWithBody(ctx context.Context, workspaceId string, milestoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditDateRequestWithBody(c.Server, workspaceId, milestoneId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EditDate(ctx context.Context, workspaceId string, milestoneId string, body EditDateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEditDateRequest(c.Server, workspaceId, milestoneId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetProjects(ctx context.Context, workspaceId string, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetProjectsRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsers2(ctx context.Context, workspaceId string, params *GetUsers2Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsers2Request(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersAssignedToProject(ctx context.Context, workspaceId string, projectId string, params *GetUsersAssignedToProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersAssignedToProjectRequest(c.Server, workspaceId, projectId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetSidebarConfig(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetSidebarConfigRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateSidebarWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateSidebarRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateSidebar(ctx context.Context, workspaceId string, userId string, body UpdateSidebarJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateSidebarRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) FilterUsersByStatusWithBody(ctx context.Context, workspaceId string, params *FilterUsersByStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewFilterUsersByStatusRequestWithBody(c.Server, workspaceId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) FilterUsersByStatus(ctx context.Context, workspaceId string, params *FilterUsersByStatusParams, body FilterUsersByStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewFilterUsersByStatusRequest(c.Server, workspaceId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete9WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete9RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete9(ctx context.Context, workspaceId string, body Delete9JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete9Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) StopWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewStopRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Stop(ctx context.Context, workspaceId string, body StopJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewStopRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) StartWithBody(ctx context.Context, workspaceId string, params *StartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewStartRequestWithBody(c.Server, workspaceId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Start(ctx context.Context, workspaceId string, params *StartParams, body StartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewStartRequest(c.Server, workspaceId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteMany1WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteMany1RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteMany1(ctx context.Context, workspaceId string, body DeleteMany1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteMany1Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTags(ctx context.Context, workspaceId string, params *GetTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTagsRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateManyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateManyRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateMany(ctx context.Context, workspaceId string, body UpdateManyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateManyRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create9WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate9RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create9(ctx context.Context, workspaceId string, body Create9JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate9Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ConnectedToApprovedEntriesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewConnectedToApprovedEntriesRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ConnectedToApprovedEntries(ctx context.Context, workspaceId string, body ConnectedToApprovedEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewConnectedToApprovedEntriesRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTagsOfIdsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTagsOfIdsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTagsOfIds(ctx context.Context, workspaceId string, body GetTagsOfIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTagsOfIdsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTagIdsByNameAndStatus(ctx context.Context, workspaceId string, params *GetTagIdsByNameAndStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTagIdsByNameAndStatusRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete8(ctx context.Context, workspaceId string, tagId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete8Request(c.Server, workspaceId, tagId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update4WithBody(ctx context.Context, workspaceId string, tagId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate4RequestWithBody(c.Server, workspaceId, tagId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update4(ctx context.Context, workspaceId string, tagId string, body Update4JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate4Request(c.Server, workspaceId, tagId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTemplates(ctx context.Context, workspaceId string, params *GetTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTemplatesRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create8WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate8RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create8(ctx context.Context, workspaceId string, body Create8JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate8Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete7(ctx context.Context, workspaceId string, templateId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete7Request(c.Server, workspaceId, templateId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTemplate(ctx context.Context, workspaceId string, templateId string, params *GetTemplateParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTemplateRequest(c.Server, workspaceId, templateId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update13WithBody(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate13RequestWithBody(c.Server, workspaceId, templateId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update13(ctx context.Context, workspaceId string, templateId string, body Update13JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate13Request(c.Server, workspaceId, templateId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ActivateWithBody(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewActivateRequestWithBody(c.Server, workspaceId, templateId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Activate(ctx context.Context, workspaceId string, templateId string, body ActivateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewActivateRequest(c.Server, workspaceId, templateId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeactivateWithBody(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeactivateRequestWithBody(c.Server, workspaceId, templateId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Deactivate(ctx context.Context, workspaceId string, templateId string, body DeactivateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeactivateRequest(c.Server, workspaceId, templateId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CopyTimeEntriesWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCopyTimeEntriesRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CopyTimeEntries(ctx context.Context, workspaceId string, userId string, body CopyTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCopyTimeEntriesRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ContinueTimeEntry(ctx context.Context, workspaceId string, timeEntryId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewContinueTimeEntryRequest(c.Server, workspaceId, timeEntryId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTeamMembersOfAdmin(ctx context.Context, workspaceId string, params *GetTeamMembersOfAdminParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTeamMembersOfAdminRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetBalancesForPolicy(ctx context.Context, workspaceId string, policyId string, params *GetBalancesForPolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetBalancesForPolicyRequest(c.Server, workspaceId, policyId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateBalanceWithBody(ctx context.Context, workspaceId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateBalanceRequestWithBody(c.Server, workspaceId, policyId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateBalance(ctx context.Context, workspaceId string, policyId string, body UpdateBalanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateBalanceRequest(c.Server, workspaceId, policyId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetBalancesForUser(ctx context.Context, workspaceId string, userId string, params *GetBalancesForUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetBalancesForUserRequest(c.Server, workspaceId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTeamMembersOfManager(ctx context.Context, workspaceId string, params *GetTeamMembersOfManagerParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTeamMembersOfManagerRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) FindPoliciesForWorkspace(ctx context.Context, workspaceId string, params *FindPoliciesForWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewFindPoliciesForWorkspaceRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreatePolicyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreatePolicyRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreatePolicy(ctx context.Context, workspaceId string, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreatePolicyRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetPolicyAssignmentForCurrentUser(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetPolicyAssignmentForCurrentUserRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTeamAssignmentsDistribution(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTeamAssignmentsDistributionRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetPolicyAssignmentsForUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetPolicyAssignmentsForUserRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) FindPoliciesForUser(ctx context.Context, workspaceId string, userId string, params *FindPoliciesForUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewFindPoliciesForUserRequest(c.Server, workspaceId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeletePolicy(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeletePolicyRequest(c.Server, workspaceId, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdatePolicyWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdatePolicyRequestWithBody(c.Server, workspaceId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdatePolicy(ctx context.Context, workspaceId string, id string, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdatePolicyRequest(c.Server, workspaceId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Archive(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewArchiveRequest(c.Server, workspaceId, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Restore(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRestoreRequest(c.Server, workspaceId, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetPolicy(ctx context.Context, workspaceId string, policyId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetPolicyRequest(c.Server, workspaceId, policyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create7WithBody(ctx context.Context, workspaceId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate7RequestWithBody(c.Server, workspaceId, policyId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create7(ctx context.Context, workspaceId string, policyId string, body Create7JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate7Request(c.Server, workspaceId, policyId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete6(ctx context.Context, workspaceId string, policyId string, requestId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete6Request(c.Server, workspaceId, policyId, requestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Approve(ctx context.Context, workspaceId string, policyId string, requestId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewApproveRequest(c.Server, workspaceId, policyId, requestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RejectWithBody(ctx context.Context, workspaceId string, policyId string, requestId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRejectRequestWithBody(c.Server, workspaceId, policyId, requestId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Reject(ctx context.Context, workspaceId string, policyId string, requestId string, body RejectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRejectRequest(c.Server, workspaceId, policyId, requestId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateForOther1WithBody(ctx context.Context, workspaceId string, policyId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateForOther1RequestWithBody(c.Server, workspaceId, policyId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateForOther1(ctx context.Context, workspaceId string, policyId string, userId string, body CreateForOther1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateForOther1Request(c.Server, workspaceId, policyId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Get1WithBody(ctx context.Context, workspaceId string, params *Get1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGet1RequestWithBody(c.Server, workspaceId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Get1(ctx context.Context, workspaceId string, params *Get1Params, body Get1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGet1Request(c.Server, workspaceId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimeOffRequestById(ctx context.Context, workspaceId string, requestId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimeOffRequestByIdRequest(c.Server, workspaceId, requestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetAllUsersOfWorkspace(ctx context.Context, workspaceId string, params *GetAllUsersOfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetAllUsersOfWorkspaceRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserGroupsOfWorkspace(ctx context.Context, workspaceId string, params *GetUserGroupsOfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserGroupsOfWorkspaceRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersOfWorkspace(ctx context.Context, workspaceId string, params *GetUsersOfWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersOfWorkspaceRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWithBody(ctx context.Context, workspaceId string, params *GetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetRequestWithBody(c.Server, workspaceId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Get(ctx context.Context, workspaceId string, params *GetParams, body GetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetRequest(c.Server, workspaceId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimelineForReportsWithBody(ctx context.Context, workspaceId string, params *GetTimelineForReportsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimelineForReportsRequestWithBody(c.Server, workspaceId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimelineForReports(ctx context.Context, workspaceId string, params *GetTimelineForReportsParams, body GetTimelineForReportsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimelineForReportsRequest(c.Server, workspaceId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteManyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteManyRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteMany(ctx context.Context, workspaceId string, body DeleteManyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteManyRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimeEntriesBySearchValue(ctx context.Context, workspaceId string, params *GetTimeEntriesBySearchValueParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimeEntriesBySearchValueRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create6WithBody(ctx context.Context, workspaceId string, params *Create6Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate6RequestWithBody(c.Server, workspaceId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create6(ctx context.Context, workspaceId string, params *Create6Params, body Create6JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate6Request(c.Server, workspaceId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) PatchTimeEntriesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPatchTimeEntriesRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) PatchTimeEntries(ctx context.Context, workspaceId string, body PatchTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPatchTimeEntriesRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EndStartedWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEndStartedRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) EndStarted(ctx context.Context, workspaceId string, body EndStartedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewEndStartedRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetMultipleTimeEntriesById(ctx context.Context, workspaceId string, params *GetMultipleTimeEntriesByIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetMultipleTimeEntriesByIdRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateFull1WithBody(ctx context.Context, workspaceId string, params *CreateFull1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateFull1RequestWithBody(c.Server, workspaceId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateFull1(ctx context.Context, workspaceId string, params *CreateFull1Params, body CreateFull1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateFull1Request(c.Server, workspaceId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimeEntryInProgress(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimeEntryInProgressRequest(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateInvoicedStatusWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateInvoicedStatusRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateInvoicedStatus(ctx context.Context, workspaceId string, body UpdateInvoicedStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateInvoicedStatusRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ListOfProject(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewListOfProjectRequest(c.Server, workspaceId, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimeEntriesRecentlyUsed(ctx context.Context, workspaceId string, params *GetTimeEntriesRecentlyUsedParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimeEntriesRecentlyUsedRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RestoreTimeEntriesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRestoreTimeEntriesRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RestoreTimeEntries(ctx context.Context, workspaceId string, body RestoreTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRestoreTimeEntriesRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateForManyWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateForManyRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateForMany(ctx context.Context, workspaceId string, body CreateForManyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateForManyRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateForOthersWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateForOthersRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateForOthers(ctx context.Context, workspaceId string, userId string, body CreateForOthersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateForOthersRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ListOfFull(ctx context.Context, workspaceId string, userId string, params *ListOfFullParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewListOfFullRequest(c.Server, workspaceId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimeEntries(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimeEntriesRequest(c.Server, workspaceId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AssertTimeEntriesExistInDateRange(ctx context.Context, workspaceId string, userId string, params *AssertTimeEntriesExistInDateRangeParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAssertTimeEntriesExistInDateRangeRequest(c.Server, workspaceId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateFullWithBody(ctx context.Context, workspaceId string, userId string, params *CreateFullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateFullRequestWithBody(c.Server, workspaceId, userId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateFull(ctx context.Context, workspaceId string, userId string, params *CreateFullParams, body CreateFullJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateFullRequest(c.Server, workspaceId, userId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimeEntriesInRange(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesInRangeParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimeEntriesInRangeRequest(c.Server, workspaceId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimeEntriesForTimesheet(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesForTimesheetParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimeEntriesForTimesheetRequest(c.Server, workspaceId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) PatchWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPatchRequestWithBody(c.Server, workspaceId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Patch(ctx context.Context, workspaceId string, id string, body PatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPatchRequest(c.Server, workspaceId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update3WithBody(ctx context.Context, workspaceId string, id string, params *Update3Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate3RequestWithBody(c.Server, workspaceId, id, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update3(ctx context.Context, workspaceId string, id string, params *Update3Params, body Update3JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate3Request(c.Server, workspaceId, id, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimeEntryAttributes(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimeEntryAttributesRequest(c.Server, workspaceId, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateTimeEntryAttributeWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateTimeEntryAttributeRequestWithBody(c.Server, workspaceId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateTimeEntryAttribute(ctx context.Context, workspaceId string, id string, body CreateTimeEntryAttributeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateTimeEntryAttributeRequest(c.Server, workspaceId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteTimeEntryAttributeWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteTimeEntryAttributeRequestWithBody(c.Server, workspaceId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DeleteTimeEntryAttribute(ctx context.Context, workspaceId string, id string, body DeleteTimeEntryAttributeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteTimeEntryAttributeRequest(c.Server, workspaceId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateBillableWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateBillableRequestWithBody(c.Server, workspaceId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateBillable(ctx context.Context, workspaceId string, id string, body UpdateBillableJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateBillableRequest(c.Server, workspaceId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateDescriptionWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateDescriptionRequestWithBody(c.Server, workspaceId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateDescription(ctx context.Context, workspaceId string, id string, body UpdateDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateDescriptionRequest(c.Server, workspaceId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateEndWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateEndRequestWithBody(c.Server, workspaceId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateEnd(ctx context.Context, workspaceId string, id string, body UpdateEndJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateEndRequest(c.Server, workspaceId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateFullWithBody(ctx context.Context, workspaceId string, id string, params *UpdateFullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateFullRequestWithBody(c.Server, workspaceId, id, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateFull(ctx context.Context, workspaceId string, id string, params *UpdateFullParams, body UpdateFullJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateFullRequest(c.Server, workspaceId, id, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateProjectWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateProjectRequestWithBody(c.Server, workspaceId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateProject(ctx context.Context, workspaceId string, id string, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateProjectRequest(c.Server, workspaceId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemoveProject(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemoveProjectRequest(c.Server, workspaceId, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateProjectAndTaskWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateProjectAndTaskRequestWithBody(c.Server, workspaceId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateProjectAndTask(ctx context.Context, workspaceId string, id string, body UpdateProjectAndTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateProjectAndTaskRequest(c.Server, workspaceId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateAndSplitWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateAndSplitRequestWithBody(c.Server, workspaceId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateAndSplit(ctx context.Context, workspaceId string, id string, body UpdateAndSplitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateAndSplitRequest(c.Server, workspaceId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SplitTimeEntryWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSplitTimeEntryRequestWithBody(c.Server, workspaceId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SplitTimeEntry(ctx context.Context, workspaceId string, id string, body SplitTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSplitTimeEntryRequest(c.Server, workspaceId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateStartWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateStartRequestWithBody(c.Server, workspaceId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateStart(ctx context.Context, workspaceId string, id string, body UpdateStartJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateStartRequest(c.Server, workspaceId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateTagsWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateTagsRequestWithBody(c.Server, workspaceId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateTags(ctx context.Context, workspaceId string, id string, body UpdateTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateTagsRequest(c.Server, workspaceId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemoveTask(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemoveTaskRequest(c.Server, workspaceId, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateTimeIntervalWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateTimeIntervalRequestWithBody(c.Server, workspaceId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateTimeInterval(ctx context.Context, workspaceId string, id string, body UpdateTimeIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateTimeIntervalRequest(c.Server, workspaceId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateUserWithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateUserRequestWithBody(c.Server, workspaceId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateUser(ctx context.Context, workspaceId string, id string, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateUserRequest(c.Server, workspaceId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete5(ctx context.Context, workspaceId string, timeEntryId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete5Request(c.Server, workspaceId, timeEntryId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateCustomFieldWithBody(ctx context.Context, workspaceId string, timeEntryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateCustomFieldRequestWithBody(c.Server, workspaceId, timeEntryId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateCustomField(ctx context.Context, workspaceId string, timeEntryId string, body UpdateCustomFieldJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateCustomFieldRequest(c.Server, workspaceId, timeEntryId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) PenalizeCurrentTimerAndStartNewTimeEntryWithBody(ctx context.Context, workspaceId string, timeEntryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPenalizeCurrentTimerAndStartNewTimeEntryRequestWithBody(c.Server, workspaceId, timeEntryId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) PenalizeCurrentTimerAndStartNewTimeEntry(ctx context.Context, workspaceId string, timeEntryId string, body PenalizeCurrentTimerAndStartNewTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewPenalizeCurrentTimerAndStartNewTimeEntryRequest(c.Server, workspaceId, timeEntryId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) TransferWorkspaceDeprecatedFlowWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewTransferWorkspaceDeprecatedFlowRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) TransferWorkspaceDeprecatedFlow(ctx context.Context, workspaceId string, body TransferWorkspaceDeprecatedFlowJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewTransferWorkspaceDeprecatedFlowRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) TransferWorkspaceWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewTransferWorkspaceRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) TransferWorkspace(ctx context.Context, workspaceId string, body TransferWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewTransferWorkspaceRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTrialActivationData(ctx context.Context, workspaceId string, params *GetTrialActivationDataParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTrialActivationDataRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemoveMember(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemoveMemberRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CopyTimeEntryCalendarDragWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCopyTimeEntryCalendarDragRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CopyTimeEntryCalendarDrag(ctx context.Context, workspaceId string, userId string, body CopyTimeEntryCalendarDragJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCopyTimeEntryCalendarDragRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) DuplicateTimeEntry(ctx context.Context, workspaceId string, userId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDuplicateTimeEntryRequest(c.Server, workspaceId, userId, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserGroups1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserGroups1Request(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create5WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate5RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create5(ctx context.Context, workspaceId string, body Create5JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate5Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserGroups2(ctx context.Context, workspaceId string, params *GetUserGroups2Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserGroups2Request(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserGroupNamesWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserGroupNamesRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserGroupNames(ctx context.Context, workspaceId string, body GetUserGroupNamesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserGroupNamesRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersForReportFilter1(ctx context.Context, workspaceId string, params *GetUsersForReportFilter1Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersForReportFilter1Request(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserGroupForReportFilterPostWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserGroupForReportFilterPostRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserGroupForReportFilterPost(ctx context.Context, workspaceId string, body GetUserGroupForReportFilterPostJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserGroupForReportFilterPostRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersForAttendanceReportFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersForAttendanceReportFilterRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersForAttendanceReportFilter(ctx context.Context, workspaceId string, body GetUsersForAttendanceReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersForAttendanceReportFilterRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserGroupIdsByName(ctx context.Context, workspaceId string, params *GetUserGroupIdsByNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserGroupIdsByNameRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserGroupsWithBody(ctx context.Context, workspaceId string, params *GetUserGroupsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserGroupsRequestWithBody(c.Server, workspaceId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserGroups(ctx context.Context, workspaceId string, params *GetUserGroupsParams, body GetUserGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserGroupsRequest(c.Server, workspaceId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemoveUserWithBody(ctx context.Context, workspaceId string, params *RemoveUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemoveUserRequestWithBody(c.Server, workspaceId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemoveUser(ctx context.Context, workspaceId string, params *RemoveUserParams, body RemoveUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemoveUserRequest(c.Server, workspaceId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddUsersToUserGroupsFilterWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddUsersToUserGroupsFilterRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddUsersToUserGroupsFilter(ctx context.Context, workspaceId string, body AddUsersToUserGroupsFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddUsersToUserGroupsFilterRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete4(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete4Request(c.Server, workspaceId, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update2WithBody(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate2RequestWithBody(c.Server, workspaceId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update2(ctx context.Context, workspaceId string, id string, body Update2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate2Request(c.Server, workspaceId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsersWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsers(ctx context.Context, workspaceId string, body GetUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsersRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUsers1(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUsers1Request(c.Server, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddUsersWithBody(ctx context.Context, workspaceId string, params *AddUsersParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddUsersRequestWithBody(c.Server, workspaceId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) AddUsers(ctx context.Context, workspaceId string, params *AddUsersParams, body AddUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewAddUsersRequest(c.Server, workspaceId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetExpensesForUsers(ctx context.Context, workspaceId string, params *GetExpensesForUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetExpensesForUsersRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetMembershipsWithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetMembershipsRequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetMemberships(ctx context.Context, workspaceId string, body SetMembershipsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetMembershipsRequest(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ResendInvite(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewResendInviteRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateDeprecatedWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateDeprecatedRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateDeprecated(ctx context.Context, workspaceId string, userId string, body CreateDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateDeprecatedRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetRequestsByUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetRequestsByUserRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetApprovedTotalsWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApprovedTotalsRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetApprovedTotals(ctx context.Context, workspaceId string, userId string, body GetApprovedTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetApprovedTotalsRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateForOtherDeprecatedWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateForOtherDeprecatedRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateForOtherDeprecated(ctx context.Context, workspaceId string, userId string, body CreateForOtherDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateForOtherDeprecatedRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetPreviewWithBody(ctx context.Context, workspaceId string, userId string, params *GetPreviewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetPreviewRequestWithBody(c.Server, workspaceId, userId, params, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetPreview(ctx context.Context, workspaceId string, userId string, params *GetPreviewParams, body GetPreviewJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetPreviewRequest(c.Server, workspaceId, userId, params, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimeEntryStatus(ctx context.Context, workspaceId string, userId string, params *GetTimeEntryStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimeEntryStatusRequest(c.Server, workspaceId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetTimeEntryWeekStatus(ctx context.Context, workspaceId string, userId string, params *GetTimeEntryWeekStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetTimeEntryWeekStatusRequest(c.Server, workspaceId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWeeklyRequestsByUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetWeeklyRequestsByUserRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) WithdrawAllOfUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewWithdrawAllOfUserRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) WithdrawAllOfWorkspaceDeprecated(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewWithdrawAllOfWorkspaceDeprecatedRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) WithdrawWeeklyOfUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewWithdrawWeeklyOfUserRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetCostRateForUser1WithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetCostRateForUser1RequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetCostRateForUser1(ctx context.Context, workspaceId string, userId string, body SetCostRateForUser1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetCostRateForUser1Request(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpsertUserCustomFieldValueWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpsertUserCustomFieldValueRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpsertUserCustomFieldValue(ctx context.Context, workspaceId string, userId string, body UpsertUserCustomFieldValueJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpsertUserCustomFieldValueRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetFavoriteEntries(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetFavoriteEntriesRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateFavoriteTimeEntryWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateFavoriteTimeEntryRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateFavoriteTimeEntry(ctx context.Context, workspaceId string, userId string, body CreateFavoriteTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateFavoriteTimeEntryRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ReorderInvoiceItemWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewReorderInvoiceItemRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ReorderInvoiceItem(ctx context.Context, workspaceId string, userId string, body ReorderInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewReorderInvoiceItemRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete3(ctx context.Context, workspaceId string, userId string, id string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete3Request(c.Server, workspaceId, userId, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update1WithBody(ctx context.Context, workspaceId string, userId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate1RequestWithBody(c.Server, workspaceId, userId, id, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update1(ctx context.Context, workspaceId string, userId string, id string, body Update1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdate1Request(c.Server, workspaceId, userId, id, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetHolidays1(ctx context.Context, workspaceId string, userId string, params *GetHolidays1Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetHolidays1Request(c.Server, workspaceId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetHourlyRateForUser1WithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetHourlyRateForUser1RequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) SetHourlyRateForUser1(ctx context.Context, workspaceId string, userId string, body SetHourlyRateForUser1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewSetHourlyRateForUser1Request(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetPermissionsToUser(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetPermissionsToUserRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) RemoveFavoriteProject(ctx context.Context, workspaceId string, userId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewRemoveFavoriteProjectRequest(c.Server, workspaceId, userId, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete2(ctx context.Context, workspaceId string, userId string, projectFavoritesId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete2Request(c.Server, workspaceId, userId, projectFavoritesId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create4(ctx context.Context, workspaceId string, userId string, projectId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate4Request(c.Server, workspaceId, userId, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete1(ctx context.Context, workspaceId string, userId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDelete1Request(c.Server, workspaceId, userId, projectId, taskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create3(ctx context.Context, workspaceId string, userId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate3Request(c.Server, workspaceId, userId, projectId, taskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ReSubmitWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewReSubmitRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) ReSubmit(ctx context.Context, workspaceId string, userId string, body ReSubmitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewReSubmitRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetUserRoles(ctx context.Context, workspaceId string, userId string, params *GetUserRolesParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetUserRolesRequest(c.Server, workspaceId, userId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateUserRolesWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateUserRolesRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateUserRoles(ctx context.Context, workspaceId string, userId string, body UpdateUserRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateUserRolesRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create2WithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate2RequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create2(ctx context.Context, workspaceId string, userId string, body Create2JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate2Request(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateForOtherWithBody(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateForOtherRequestWithBody(c.Server, workspaceId, userId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) CreateForOther(ctx context.Context, workspaceId string, userId string, body CreateForOtherJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreateForOtherRequest(c.Server, workspaceId, userId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWorkCapacity(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetWorkCapacityRequest(c.Server, workspaceId, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWebhooks(ctx context.Context, workspaceId string, params *GetWebhooksParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetWebhooksRequest(c.Server, workspaceId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create1WithBody(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate1RequestWithBody(c.Server, workspaceId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Create1(ctx context.Context, workspaceId string, body Create1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewCreate1Request(c.Server, workspaceId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Delete(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewDeleteRequest(c.Server, workspaceId, webhookId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetWebhook(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetWebhookRequest(c.Server, workspaceId, webhookId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) UpdateWithBody(ctx context.Context, workspaceId string, webhookId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateRequestWithBody(c.Server, workspaceId, webhookId, contentType, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) Update(ctx context.Context, workspaceId string, webhookId string, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewUpdateRequest(c.Server, workspaceId, webhookId, body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetLogsForWebhook1(ctx context.Context, workspaceId string, webhookId string, params *GetLogsForWebhook1Params, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetLogsForWebhook1Request(c.Server, workspaceId, webhookId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GetLogCount(ctx context.Context, workspaceId string, webhookId string, params *GetLogCountParams, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGetLogCountRequest(c.Server, workspaceId, webhookId, params)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) TriggerResendEventForWebhook(ctx context.Context, workspaceId string, webhookId string, webhookLogId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewTriggerResendEventForWebhookRequest(c.Server, workspaceId, webhookId, webhookLogId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) TriggerTestEventForWebhook(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewTriggerTestEventForWebhookRequest(c.Server, workspaceId, webhookId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
func (c *Client) GenerateNewToken(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*http.Response, error) {
|
|
req, err := NewGenerateNewTokenRequest(c.Server, workspaceId, webhookId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
req = req.WithContext(ctx)
|
|
if err := c.applyEditors(ctx, req, reqEditors); err != nil {
|
|
return nil, err
|
|
}
|
|
return c.Client.Do(req)
|
|
}
|
|
|
|
// NewGetInitialDataRequest generates requests for GetInitialData
|
|
func NewGetInitialDataRequest(server string, reportId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "reportId", runtime.ParamLocationPath, reportId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/expense-report/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDownloadReportRequest calls the generic DownloadReport builder with application/json body
|
|
func NewDownloadReportRequest(server string, reportId string, body DownloadReportJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDownloadReportRequestWithBody(server, reportId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDownloadReportRequestWithBody generates requests for DownloadReport with any type of body
|
|
func NewDownloadReportRequestWithBody(server string, reportId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "reportId", runtime.ParamLocationPath, reportId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/expense-report/%s/download", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewResetPinRequest generates requests for ResetPin
|
|
func NewResetPinRequest(server string, reportId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "reportId", runtime.ParamLocationPath, reportId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/expense-report/%s/reset-pin", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewValidatePinRequest calls the generic ValidatePin builder with application/json body
|
|
func NewValidatePinRequest(server string, reportId string, body ValidatePinJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewValidatePinRequestWithBody(server, reportId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewValidatePinRequestWithBody generates requests for ValidatePin with any type of body
|
|
func NewValidatePinRequestWithBody(server string, reportId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "reportId", runtime.ParamLocationPath, reportId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/expense-report/%s/validate-pin", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateSmtpConfigurationRequest calls the generic UpdateSmtpConfiguration builder with application/json body
|
|
func NewUpdateSmtpConfigurationRequest(server string, systemSettingsId string, body UpdateSmtpConfigurationJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateSmtpConfigurationRequestWithBody(server, systemSettingsId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateSmtpConfigurationRequestWithBody generates requests for UpdateSmtpConfiguration with any type of body
|
|
func NewUpdateSmtpConfigurationRequestWithBody(server string, systemSettingsId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "systemSettingsId", runtime.ParamLocationPath, systemSettingsId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/system-settings/%s/smtp-configuration", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDisableAccessToEntitiesInTransferRequest calls the generic DisableAccessToEntitiesInTransfer builder with application/json body
|
|
func NewDisableAccessToEntitiesInTransferRequest(server string, body DisableAccessToEntitiesInTransferJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDisableAccessToEntitiesInTransferRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDisableAccessToEntitiesInTransferRequestWithBody generates requests for DisableAccessToEntitiesInTransfer with any type of body
|
|
func NewDisableAccessToEntitiesInTransferRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/transfer/access/disable")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewEnableAccessToEntitiesInTransferRequest generates requests for EnableAccessToEntitiesInTransfer
|
|
func NewEnableAccessToEntitiesInTransferRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/transfer/access/enable/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUsersExistRequest calls the generic UsersExist builder with application/json body
|
|
func NewUsersExistRequest(server string, body UsersExistJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUsersExistRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUsersExistRequestWithBody generates requests for UsersExist with any type of body
|
|
func NewUsersExistRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/transfer/workspace-info/users-exist")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewHandleCleanupOnSourceRegionRequest generates requests for HandleCleanupOnSourceRegion
|
|
func NewHandleCleanupOnSourceRegionRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/transfer/%s/cleanup", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewHandleTransferCompletedOnSourceRegionRequest generates requests for HandleTransferCompletedOnSourceRegion
|
|
func NewHandleTransferCompletedOnSourceRegionRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/transfer/%s/completed", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewHandleTransferCompletedFailureRequest calls the generic HandleTransferCompletedFailure builder with application/json body
|
|
func NewHandleTransferCompletedFailureRequest(server string, workspaceId string, body HandleTransferCompletedFailureJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewHandleTransferCompletedFailureRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewHandleTransferCompletedFailureRequestWithBody generates requests for HandleTransferCompletedFailure with any type of body
|
|
func NewHandleTransferCompletedFailureRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/transfer/%s/failure", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewHandleTransferCompletedSuccessRequest calls the generic HandleTransferCompletedSuccess builder with application/json body
|
|
func NewHandleTransferCompletedSuccessRequest(server string, workspaceId string, body HandleTransferCompletedSuccessJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewHandleTransferCompletedSuccessRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewHandleTransferCompletedSuccessRequestWithBody generates requests for HandleTransferCompletedSuccess with any type of body
|
|
func NewHandleTransferCompletedSuccessRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/transfer/%s/success", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetAllUsersRequest generates requests for GetAllUsers
|
|
func NewGetAllUsersRequest(server string, params *GetAllUsersParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortColumn", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortOrder", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SearchEmail != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchEmail", runtime.ParamLocationQuery, *params.SearchEmail); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.StrictEmailSearch != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "strictEmailSearch", runtime.ParamLocationQuery, *params.StrictEmailSearch); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SearchName != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchName", runtime.ParamLocationQuery, *params.SearchName); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.StrictNameSearch != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "strictNameSearch", runtime.ParamLocationQuery, *params.StrictNameSearch); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUserInfoRequest calls the generic GetUserInfo builder with application/json body
|
|
func NewGetUserInfoRequest(server string, body GetUserInfoJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetUserInfoRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetUserInfoRequestWithBody generates requests for GetUserInfo with any type of body
|
|
func NewGetUserInfoRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/ids")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUserMembershipsAndInvitesRequest calls the generic GetUserMembershipsAndInvites builder with application/json body
|
|
func NewGetUserMembershipsAndInvitesRequest(server string, params *GetUserMembershipsAndInvitesParams, body GetUserMembershipsAndInvitesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetUserMembershipsAndInvitesRequestWithBody(server, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetUserMembershipsAndInvitesRequestWithBody generates requests for GetUserMembershipsAndInvites with any type of body
|
|
func NewGetUserMembershipsAndInvitesRequestWithBody(server string, params *GetUserMembershipsAndInvitesParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/memberships")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
if params != nil {
|
|
|
|
if params.SubDomainName != nil {
|
|
var headerParam0 string
|
|
|
|
headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Sub-Domain-Name", runtime.ParamLocationHeader, *params.SubDomainName)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("Sub-Domain-Name", headerParam0)
|
|
}
|
|
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCheckForNewsletterSubscriptionRequest generates requests for CheckForNewsletterSubscription
|
|
func NewCheckForNewsletterSubscriptionRequest(server string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/newsletter/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewAddNotificationsRequestWithBody generates requests for AddNotifications with any type of body
|
|
func NewAddNotificationsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/notifications")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetNewsRequest generates requests for GetNews
|
|
func NewGetNewsRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/notifications/news")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteNewsRequest generates requests for DeleteNews
|
|
func NewDeleteNewsRequest(server string, newsId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "newsId", runtime.ParamLocationPath, newsId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/notifications/news/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateNewsRequestWithBody generates requests for UpdateNews with any type of body
|
|
func NewUpdateNewsRequestWithBody(server string, newsId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "newsId", runtime.ParamLocationPath, newsId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/notifications/news/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewSearchAllUsersRequest generates requests for SearchAllUsers
|
|
func NewSearchAllUsersRequest(server string, params *SearchAllUsersParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/search")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortColumn", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortOrder", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Email != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email", runtime.ParamLocationQuery, *params.Email); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.StrictEmailSearch != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "strictEmailSearch", runtime.ParamLocationQuery, *params.StrictEmailSearch); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.StrictNameSearch != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "strictNameSearch", runtime.ParamLocationQuery, *params.StrictNameSearch); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.WorkspaceId != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "workspaceId", runtime.ParamLocationQuery, *params.WorkspaceId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
|
|
if params.AgentTicketLink != nil {
|
|
var headerParam0 string
|
|
|
|
headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Agent-Ticket-Link", runtime.ParamLocationHeader, *params.AgentTicketLink)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("Agent-Ticket-Link", headerParam0)
|
|
}
|
|
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewNumberOfUsersRegisteredRequest generates requests for NumberOfUsersRegistered
|
|
func NewNumberOfUsersRegisteredRequest(server string, params *NumberOfUsersRegisteredParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/user-count")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Days != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "days", runtime.ParamLocationQuery, *params.Days); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsersOnWorkspaceRequest generates requests for GetUsersOnWorkspace
|
|
func NewGetUsersOnWorkspaceRequest(server string, workspaceId string, params *GetUsersOnWorkspaceParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/workspaces/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortOrder", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortColumn", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SearchEmail != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchEmail", runtime.ParamLocationQuery, *params.SearchEmail); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewBulkEditUsersRequest calls the generic BulkEditUsers builder with application/json body
|
|
func NewBulkEditUsersRequest(server string, workspaceId string, body BulkEditUsersJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewBulkEditUsersRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewBulkEditUsersRequestWithBody generates requests for BulkEditUsers with any type of body
|
|
func NewBulkEditUsersRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/workspaces/%s/bulk", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsersOfWorkspace5Request generates requests for GetUsersOfWorkspace5
|
|
func NewGetUsersOfWorkspace5Request(server string, workspaceId string, params *GetUsersOfWorkspace5Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/workspaces/%s/count", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Email != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email", runtime.ParamLocationQuery, *params.Email); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ProjectId != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectId", runtime.ParamLocationQuery, *params.ProjectId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Memberships != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "memberships", runtime.ParamLocationQuery, *params.Memberships); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetInfoRequest calls the generic GetInfo builder with application/json body
|
|
func NewGetInfoRequest(server string, workspaceId string, body GetInfoJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetInfoRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetInfoRequestWithBody generates requests for GetInfo with any type of body
|
|
func NewGetInfoRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/workspaces/%s/ids", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetMembersInfoRequest generates requests for GetMembersInfo
|
|
func NewGetMembersInfoRequest(server string, workspaceId string, params *GetMembersInfoParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/workspaces/%s/members", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUserNamesRequest calls the generic GetUserNames builder with application/json body
|
|
func NewGetUserNamesRequest(server string, workspaceId string, params *GetUserNamesParams, body GetUserNamesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetUserNamesRequestWithBody(server, workspaceId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetUserNamesRequestWithBody generates requests for GetUserNames with any type of body
|
|
func NewGetUserNamesRequestWithBody(server string, workspaceId string, params *GetUserNamesParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/workspaces/%s/names", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if params.Statuses != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewFindPoliciesToBeApprovedByUserRequest generates requests for FindPoliciesToBeApprovedByUser
|
|
func NewFindPoliciesToBeApprovedByUserRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/workspaces/%s/policies-for-approval", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsersAndUsersFromUserGroupsAssignedToProjectRequest generates requests for GetUsersAndUsersFromUserGroupsAssignedToProject
|
|
func NewGetUsersAndUsersFromUserGroupsAssignedToProjectRequest(server string, workspaceId string, projectId string, params *GetUsersAndUsersFromUserGroupsAssignedToProjectParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/workspaces/%s/projects/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Statuses != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Memberships != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "memberships", runtime.ParamLocationQuery, *params.Memberships); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ExcludedIds != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsersForProjectMembersFilterRequest calls the generic GetUsersForProjectMembersFilter builder with application/json body
|
|
func NewGetUsersForProjectMembersFilterRequest(server string, workspaceId string, projectId string, body GetUsersForProjectMembersFilterJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetUsersForProjectMembersFilterRequestWithBody(server, workspaceId, projectId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetUsersForProjectMembersFilterRequestWithBody generates requests for GetUsersForProjectMembersFilter with any type of body
|
|
func NewGetUsersForProjectMembersFilterRequestWithBody(server string, workspaceId string, projectId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/workspaces/%s/projects/%s/members-filter", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsersForAttendanceReportFilter1Request calls the generic GetUsersForAttendanceReportFilter1 builder with application/json body
|
|
func NewGetUsersForAttendanceReportFilter1Request(server string, workspaceId string, body GetUsersForAttendanceReportFilter1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetUsersForAttendanceReportFilter1RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetUsersForAttendanceReportFilter1RequestWithBody generates requests for GetUsersForAttendanceReportFilter1 with any type of body
|
|
func NewGetUsersForAttendanceReportFilter1RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/workspaces/%s/report-filters/attendance-report/team", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsersOfWorkspace4Request generates requests for GetUsersOfWorkspace4
|
|
func NewGetUsersOfWorkspace4Request(server string, workspaceId string, params *GetUsersOfWorkspace4Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/workspaces/%s/report-filters/ids", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsersForReportFilterOldRequest generates requests for GetUsersForReportFilterOld
|
|
func NewGetUsersForReportFilterOldRequest(server string, workspaceId string, params *GetUsersForReportFilterOldParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/workspaces/%s/report-filters/team", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.SearchValue != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchValue", runtime.ParamLocationQuery, *params.SearchValue); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ForceFilter != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force-filter", runtime.ParamLocationQuery, *params.ForceFilter); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.IgnoreFilter != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ignore-filter", runtime.ParamLocationQuery, *params.IgnoreFilter); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ExcludeIds != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludeIds", runtime.ParamLocationQuery, *params.ExcludeIds); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Statuses != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.UserStatuses != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userStatuses", runtime.ParamLocationQuery, *params.UserStatuses); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ReportType != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reportType", runtime.ParamLocationQuery, *params.ReportType); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsersForReportFilterRequest calls the generic GetUsersForReportFilter builder with application/json body
|
|
func NewGetUsersForReportFilterRequest(server string, workspaceId string, body GetUsersForReportFilterJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetUsersForReportFilterRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetUsersForReportFilterRequestWithBody generates requests for GetUsersForReportFilter with any type of body
|
|
func NewGetUsersForReportFilterRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/workspaces/%s/report-filters/team", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsersOfUserGroupRequest generates requests for GetUsersOfUserGroup
|
|
func NewGetUsersOfUserGroupRequest(server string, workspaceId string, userGroupId string, params *GetUsersOfUserGroupParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userGroupId", runtime.ParamLocationPath, userGroupId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/workspaces/%s/user-groups/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Memberships != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "memberships", runtime.ParamLocationQuery, *params.Memberships); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsersOfWorkspace3Request generates requests for GetUsersOfWorkspace3
|
|
func NewGetUsersOfWorkspace3Request(server string, workspaceId string, params *GetUsersOfWorkspace3Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/workspaces/%s/users/count", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsersOfWorkspace2Request generates requests for GetUsersOfWorkspace2
|
|
func NewGetUsersOfWorkspace2Request(server string, workspaceId string, params *GetUsersOfWorkspace2Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/workspaces/%s/with-pending", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Email != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email", runtime.ParamLocationQuery, *params.Email); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SearchByNameOnly != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchByNameOnly", runtime.ParamLocationQuery, *params.SearchByNameOnly); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.EmailAsName != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email-as-name", runtime.ParamLocationQuery, *params.EmailAsName); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ExcludedIds != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Statuses != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.UserStatuses != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userStatuses", runtime.ParamLocationQuery, *params.UserStatuses); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUserRequest generates requests for GetUser
|
|
func NewGetUserRequest(server string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateTimeTrackingSettings1Request calls the generic UpdateTimeTrackingSettings1 builder with application/json body
|
|
func NewUpdateTimeTrackingSettings1Request(server string, userId string, body UpdateTimeTrackingSettings1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateTimeTrackingSettings1RequestWithBody(server, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateTimeTrackingSettings1RequestWithBody generates requests for UpdateTimeTrackingSettings1 with any type of body
|
|
func NewUpdateTimeTrackingSettings1RequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/compactView", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateDashboardSelectionRequest calls the generic UpdateDashboardSelection builder with application/json body
|
|
func NewUpdateDashboardSelectionRequest(server string, userId string, body UpdateDashboardSelectionJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateDashboardSelectionRequestWithBody(server, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateDashboardSelectionRequestWithBody generates requests for UpdateDashboardSelection with any type of body
|
|
func NewUpdateDashboardSelectionRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/dashboardMe", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewSetDefaultWorkspaceRequest generates requests for SetDefaultWorkspace
|
|
func NewSetDefaultWorkspaceRequest(server string, userId string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/defaultWorkspace/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteUserRequest calls the generic DeleteUser builder with application/json body
|
|
func NewDeleteUserRequest(server string, userId string, body DeleteUserJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDeleteUserRequestWithBody(server, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDeleteUserRequestWithBody generates requests for DeleteUser with any type of body
|
|
func NewDeleteUserRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/delete", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewChangeEmailRequest calls the generic ChangeEmail builder with application/json body
|
|
func NewChangeEmailRequest(server string, userId string, params *ChangeEmailParams, body ChangeEmailJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewChangeEmailRequestWithBody(server, userId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewChangeEmailRequestWithBody generates requests for ChangeEmail with any type of body
|
|
func NewChangeEmailRequestWithBody(server string, userId string, params *ChangeEmailParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/email", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
if params != nil {
|
|
|
|
if params.SubDomainName != nil {
|
|
var headerParam0 string
|
|
|
|
headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Sub-Domain-Name", runtime.ParamLocationHeader, *params.SubDomainName)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("Sub-Domain-Name", headerParam0)
|
|
}
|
|
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewHasPendingEmailChangeRequest generates requests for HasPendingEmailChange
|
|
func NewHasPendingEmailChangeRequest(server string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/emails/change-verification", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateLangRequest calls the generic UpdateLang builder with application/json body
|
|
func NewUpdateLangRequest(server string, userId string, body UpdateLangJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateLangRequestWithBody(server, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateLangRequestWithBody generates requests for UpdateLang with any type of body
|
|
func NewUpdateLangRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/lang", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewMarkAsRead1Request calls the generic MarkAsRead1 builder with application/json body
|
|
func NewMarkAsRead1Request(server string, userId string, body MarkAsRead1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewMarkAsRead1RequestWithBody(server, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewMarkAsRead1RequestWithBody generates requests for MarkAsRead1 with any type of body
|
|
func NewMarkAsRead1RequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/markAsRead", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewMarkAsReadRequest calls the generic MarkAsRead builder with application/json body
|
|
func NewMarkAsReadRequest(server string, userId string, body MarkAsReadJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewMarkAsReadRequestWithBody(server, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewMarkAsReadRequestWithBody generates requests for MarkAsRead with any type of body
|
|
func NewMarkAsReadRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/markAsRead", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewChangeNameAdminRequest calls the generic ChangeNameAdmin builder with application/json body
|
|
func NewChangeNameAdminRequest(server string, userId string, body ChangeNameAdminJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewChangeNameAdminRequestWithBody(server, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewChangeNameAdminRequestWithBody generates requests for ChangeNameAdmin with any type of body
|
|
func NewChangeNameAdminRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/name", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetNewsForUserRequest generates requests for GetNewsForUser
|
|
func NewGetNewsForUserRequest(server string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/news", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewReadNewsRequest calls the generic ReadNews builder with application/json body
|
|
func NewReadNewsRequest(server string, userId string, body ReadNewsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewReadNewsRequestWithBody(server, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewReadNewsRequestWithBody generates requests for ReadNews with any type of body
|
|
func NewReadNewsRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/news", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetNotificationsRequest generates requests for GetNotifications
|
|
func NewGetNotificationsRequest(server string, userId string, params *GetNotificationsParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/notifications", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Type != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ExcludeInvitations != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludeInvitations", runtime.ParamLocationQuery, *params.ExcludeInvitations); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdatePictureRequest calls the generic UpdatePicture builder with application/json body
|
|
func NewUpdatePictureRequest(server string, userId string, body UpdatePictureJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdatePictureRequestWithBody(server, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdatePictureRequestWithBody generates requests for UpdatePicture with any type of body
|
|
func NewUpdatePictureRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/picture", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateNameAndProfilePictureRequest calls the generic UpdateNameAndProfilePicture builder with application/json body
|
|
func NewUpdateNameAndProfilePictureRequest(server string, userId string, body UpdateNameAndProfilePictureJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateNameAndProfilePictureRequestWithBody(server, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateNameAndProfilePictureRequestWithBody generates requests for UpdateNameAndProfilePicture with any type of body
|
|
func NewUpdateNameAndProfilePictureRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/settings", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateSettingsRequest calls the generic UpdateSettings builder with application/json body
|
|
func NewUpdateSettingsRequest(server string, userId string, params *UpdateSettingsParams, body UpdateSettingsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateSettingsRequestWithBody(server, userId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateSettingsRequestWithBody generates requests for UpdateSettings with any type of body
|
|
func NewUpdateSettingsRequestWithBody(server string, userId string, params *UpdateSettingsParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/settings", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
if params != nil {
|
|
|
|
if params.SubDomainName != nil {
|
|
var headerParam0 string
|
|
|
|
headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Sub-Domain-Name", runtime.ParamLocationHeader, *params.SubDomainName)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("Sub-Domain-Name", headerParam0)
|
|
}
|
|
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateSummaryReportSettingsRequest calls the generic UpdateSummaryReportSettings builder with application/json body
|
|
func NewUpdateSummaryReportSettingsRequest(server string, userId string, body UpdateSummaryReportSettingsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateSummaryReportSettingsRequestWithBody(server, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateSummaryReportSettingsRequestWithBody generates requests for UpdateSummaryReportSettings with any type of body
|
|
func NewUpdateSummaryReportSettingsRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/summaryReportSettings", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateTimeTrackingSettingsRequest calls the generic UpdateTimeTrackingSettings builder with application/json body
|
|
func NewUpdateTimeTrackingSettingsRequest(server string, userId string, body UpdateTimeTrackingSettingsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateTimeTrackingSettingsRequestWithBody(server, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateTimeTrackingSettingsRequestWithBody generates requests for UpdateTimeTrackingSettings with any type of body
|
|
func NewUpdateTimeTrackingSettingsRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/timeTrackingSettings", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateTimezoneRequest calls the generic UpdateTimezone builder with application/json body
|
|
func NewUpdateTimezoneRequest(server string, userId string, body UpdateTimezoneJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateTimezoneRequestWithBody(server, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateTimezoneRequestWithBody generates requests for UpdateTimezone with any type of body
|
|
func NewUpdateTimezoneRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/timezone", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetVerificationCampaignNotificationsRequest generates requests for GetVerificationCampaignNotifications
|
|
func NewGetVerificationCampaignNotificationsRequest(server string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/verification-notifications", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewMarkNotificationsAsReadRequest calls the generic MarkNotificationsAsRead builder with application/json body
|
|
func NewMarkNotificationsAsReadRequest(server string, userId string, body MarkNotificationsAsReadJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewMarkNotificationsAsReadRequestWithBody(server, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewMarkNotificationsAsReadRequestWithBody generates requests for MarkNotificationsAsRead with any type of body
|
|
func NewMarkNotificationsAsReadRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/verification-notifications/read", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetWorkCapacityForUserRequest generates requests for GetWorkCapacityForUser
|
|
func NewGetWorkCapacityForUserRequest(server string, userId string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/workspaces/%s/work-capacity", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsersWorkingDaysRequest generates requests for GetUsersWorkingDays
|
|
func NewGetUsersWorkingDaysRequest(server string, userId string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/users/%s/workspaces/%s/working-days", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUploadImageRequestWithBody generates requests for UploadImage with any type of body
|
|
func NewUploadImageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/v1/file/image")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetAllUnfinishedWalkthroughTypesRequest generates requests for GetAllUnfinishedWalkthroughTypes
|
|
func NewGetAllUnfinishedWalkthroughTypesRequest(server string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/walkthrough/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewFinishWalkthroughRequest calls the generic FinishWalkthrough builder with application/json body
|
|
func NewFinishWalkthroughRequest(server string, userId string, body FinishWalkthroughJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewFinishWalkthroughRequestWithBody(server, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewFinishWalkthroughRequestWithBody generates requests for FinishWalkthrough with any type of body
|
|
func NewFinishWalkthroughRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/walkthrough/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetOwnerEmailByWorkspaceIdRequest generates requests for GetOwnerEmailByWorkspaceId
|
|
func NewGetOwnerEmailByWorkspaceIdRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspace/%s/owner", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetWorkspacesOfUserRequest generates requests for GetWorkspacesOfUser
|
|
func NewGetWorkspacesOfUserRequest(server string) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateRequest calls the generic Create builder with application/json body
|
|
func NewCreateRequest(server string, body CreateJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateRequestWithBody generates requests for Create with any type of body
|
|
func NewCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetWorkspaceInfoRequest generates requests for GetWorkspaceInfo
|
|
func NewGetWorkspaceInfoRequest(server string, params *GetWorkspaceInfoParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/info")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.WorkspaceId != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "workspaceId", runtime.ParamLocationQuery, *params.WorkspaceId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Email != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "email", runtime.ParamLocationQuery, *params.Email); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewInsertLegacyPlanNotificationsRequest calls the generic InsertLegacyPlanNotifications builder with application/json body
|
|
func NewInsertLegacyPlanNotificationsRequest(server string, body InsertLegacyPlanNotificationsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewInsertLegacyPlanNotificationsRequestWithBody(server, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewInsertLegacyPlanNotificationsRequestWithBody generates requests for InsertLegacyPlanNotifications with any type of body
|
|
func NewInsertLegacyPlanNotificationsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/legacy-plan-insert-notifications")
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetPermissionsToUserForWorkspacesRequest calls the generic GetPermissionsToUserForWorkspaces builder with application/json body
|
|
func NewGetPermissionsToUserForWorkspacesRequest(server string, userId string, body GetPermissionsToUserForWorkspacesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetPermissionsToUserForWorkspacesRequestWithBody(server, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetPermissionsToUserForWorkspacesRequestWithBody generates requests for GetPermissionsToUserForWorkspaces with any type of body
|
|
func NewGetPermissionsToUserForWorkspacesRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/users/%s/permissions", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewLeaveWorkspaceRequest generates requests for LeaveWorkspace
|
|
func NewLeaveWorkspaceRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetWorkspaceByIdRequest generates requests for GetWorkspaceById
|
|
func NewGetWorkspaceByIdRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateWorkspaceRequest calls the generic UpdateWorkspace builder with application/json body
|
|
func NewUpdateWorkspaceRequest(server string, workspaceId string, params *UpdateWorkspaceParams, body UpdateWorkspaceJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateWorkspaceRequestWithBody(server, workspaceId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateWorkspaceRequestWithBody generates requests for UpdateWorkspace with any type of body
|
|
func NewUpdateWorkspaceRequestWithBody(server string, workspaceId string, params *UpdateWorkspaceParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
if params != nil {
|
|
|
|
if params.SubDomainName != nil {
|
|
var headerParam0 string
|
|
|
|
headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Sub-Domain-Name", runtime.ParamLocationHeader, *params.SubDomainName)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("Sub-Domain-Name", headerParam0)
|
|
}
|
|
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetABTestingRequest generates requests for GetABTesting
|
|
func NewGetABTestingRequest(server string, workspaceId string, params *GetABTestingParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/ab-testing", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, params.Type); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetActiveMembersRequest generates requests for GetActiveMembers
|
|
func NewGetActiveMembersRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/active-members-count", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUninstallRequest calls the generic Uninstall builder with application/json body
|
|
func NewUninstallRequest(server string, workspaceId string, body UninstallJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUninstallRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUninstallRequestWithBody generates requests for Uninstall with any type of body
|
|
func NewUninstallRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/addons", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetInstalledAddonsRequest generates requests for GetInstalledAddons
|
|
func NewGetInstalledAddonsRequest(server string, workspaceId string, params *GetInstalledAddonsParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/addons", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Statuses != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SearchTerm != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search-term", runtime.ParamLocationQuery, *params.SearchTerm); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewInstallRequest calls the generic Install builder with application/json body
|
|
func NewInstallRequest(server string, workspaceId string, body InstallJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewInstallRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewInstallRequestWithBody generates requests for Install with any type of body
|
|
func NewInstallRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/addons", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetInstalledAddonsIdNamePairRequest generates requests for GetInstalledAddonsIdNamePair
|
|
func NewGetInstalledAddonsIdNamePairRequest(server string, workspaceId string, params *GetInstalledAddonsIdNamePairParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/addons/id-name-pair", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Statuses != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SearchTerm != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search-term", runtime.ParamLocationQuery, *params.SearchTerm); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetInstalledAddonsByKeysRequest calls the generic GetInstalledAddonsByKeys builder with application/json body
|
|
func NewGetInstalledAddonsByKeysRequest(server string, workspaceId string, body GetInstalledAddonsByKeysJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetInstalledAddonsByKeysRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetInstalledAddonsByKeysRequestWithBody generates requests for GetInstalledAddonsByKeys with any type of body
|
|
func NewGetInstalledAddonsByKeysRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/addons/keys", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUninstall1Request generates requests for Uninstall1
|
|
func NewUninstall1Request(server string, workspaceId string, addonId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addonId", runtime.ParamLocationPath, addonId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/addons/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetAddonByIdRequest generates requests for GetAddonById
|
|
func NewGetAddonByIdRequest(server string, workspaceId string, addonId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addonId", runtime.ParamLocationPath, addonId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/addons/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateSettings1Request calls the generic UpdateSettings1 builder with application/json body
|
|
func NewUpdateSettings1Request(server string, workspaceId string, addonId string, body UpdateSettings1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateSettings1RequestWithBody(server, workspaceId, addonId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateSettings1RequestWithBody generates requests for UpdateSettings1 with any type of body
|
|
func NewUpdateSettings1RequestWithBody(server string, workspaceId string, addonId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addonId", runtime.ParamLocationPath, addonId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/addons/%s/settings", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateStatus3Request calls the generic UpdateStatus3 builder with application/json body
|
|
func NewUpdateStatus3Request(server string, workspaceId string, addonId string, body UpdateStatus3JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateStatus3RequestWithBody(server, workspaceId, addonId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateStatus3RequestWithBody generates requests for UpdateStatus3 with any type of body
|
|
func NewUpdateStatus3RequestWithBody(server string, workspaceId string, addonId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addonId", runtime.ParamLocationPath, addonId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/addons/%s/status", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetAddonUserJWTRequest generates requests for GetAddonUserJWT
|
|
func NewGetAddonUserJWTRequest(server string, workspaceId string, addonId string, params *GetAddonUserJWTParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addonId", runtime.ParamLocationPath, addonId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/addons/%s/token", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, params.Type); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetAddonWebhooksRequest generates requests for GetAddonWebhooks
|
|
func NewGetAddonWebhooksRequest(server string, workspaceId string, addonId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addonId", runtime.ParamLocationPath, addonId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/addons/%s/webhooks", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRemoveUninstalledAddonRequest generates requests for RemoveUninstalledAddon
|
|
func NewRemoveUninstalledAddonRequest(server string, workspaceId string, addonKey string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "addonKey", runtime.ParamLocationPath, addonKey)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/addons/%s/remove-uninstalled", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewListOfWorkspace1Request generates requests for ListOfWorkspace1
|
|
func NewListOfWorkspace1Request(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/alerts", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate20Request calls the generic Create20 builder with application/json body
|
|
func NewCreate20Request(server string, workspaceId string, body Create20JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate20RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate20RequestWithBody generates requests for Create20 with any type of body
|
|
func NewCreate20RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/alerts", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete18Request generates requests for Delete18
|
|
func NewDelete18Request(server string, workspaceId string, alertId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "alertId", runtime.ParamLocationPath, alertId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/alerts/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdate11Request calls the generic Update11 builder with application/json body
|
|
func NewUpdate11Request(server string, workspaceId string, alertId string, body Update11JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdate11RequestWithBody(server, workspaceId, alertId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdate11RequestWithBody generates requests for Update11 with any type of body
|
|
func NewUpdate11RequestWithBody(server string, workspaceId string, alertId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "alertId", runtime.ParamLocationPath, alertId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/alerts/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetAllowedUpdatesRequest generates requests for GetAllowedUpdates
|
|
func NewGetAllowedUpdatesRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/allowed-updates", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewApproveRequestsRequest calls the generic ApproveRequests builder with application/json body
|
|
func NewApproveRequestsRequest(server string, workspaceId string, body ApproveRequestsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewApproveRequestsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewApproveRequestsRequestWithBody generates requests for ApproveRequests with any type of body
|
|
func NewApproveRequestsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/approval-requests", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCountRequest calls the generic Count builder with application/json body
|
|
func NewCountRequest(server string, workspaceId string, body CountJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCountRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCountRequestWithBody generates requests for Count with any type of body
|
|
func NewCountRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/count", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewHasPendingRequest generates requests for HasPending
|
|
func NewHasPendingRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/has-pending", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRemindManagersToApproveRequest calls the generic RemindManagersToApprove builder with application/json body
|
|
func NewRemindManagersToApproveRequest(server string, workspaceId string, body RemindManagersToApproveJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewRemindManagersToApproveRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewRemindManagersToApproveRequestWithBody generates requests for RemindManagersToApprove with any type of body
|
|
func NewRemindManagersToApproveRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/remind/approve", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRemindUsersToSubmitRequest calls the generic RemindUsersToSubmit builder with application/json body
|
|
func NewRemindUsersToSubmitRequest(server string, workspaceId string, body RemindUsersToSubmitJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewRemindUsersToSubmitRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewRemindUsersToSubmitRequestWithBody generates requests for RemindUsersToSubmit with any type of body
|
|
func NewRemindUsersToSubmitRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/remind/submit", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApprovalGroupsRequest calls the generic GetApprovalGroups builder with application/json body
|
|
func NewGetApprovalGroupsRequest(server string, workspaceId string, body GetApprovalGroupsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetApprovalGroupsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetApprovalGroupsRequestWithBody generates requests for GetApprovalGroups with any type of body
|
|
func NewGetApprovalGroupsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/stats", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUnsubmittedSummariesRequest calls the generic GetUnsubmittedSummaries builder with application/json body
|
|
func NewGetUnsubmittedSummariesRequest(server string, workspaceId string, body GetUnsubmittedSummariesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetUnsubmittedSummariesRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetUnsubmittedSummariesRequestWithBody generates requests for GetUnsubmittedSummaries with any type of body
|
|
func NewGetUnsubmittedSummariesRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/stats/unsubmitted", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewWithdrawAllOfWorkspaceRequest generates requests for WithdrawAllOfWorkspace
|
|
func NewWithdrawAllOfWorkspaceRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/withdraw-on-workspace", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetRequestsByWorkspaceRequest generates requests for GetRequestsByWorkspace
|
|
func NewGetRequestsByWorkspaceRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/workspace-pending", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApprovalRequestRequest generates requests for GetApprovalRequest
|
|
func NewGetApprovalRequestRequest(server string, workspaceId string, approvalRequestId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "approvalRequestId", runtime.ParamLocationPath, approvalRequestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateStatus2Request calls the generic UpdateStatus2 builder with application/json body
|
|
func NewUpdateStatus2Request(server string, workspaceId string, approvalRequestId string, body UpdateStatus2JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateStatus2RequestWithBody(server, workspaceId, approvalRequestId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateStatus2RequestWithBody generates requests for UpdateStatus2 with any type of body
|
|
func NewUpdateStatus2RequestWithBody(server string, workspaceId string, approvalRequestId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "approvalRequestId", runtime.ParamLocationPath, approvalRequestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApprovalDashboardRequest generates requests for GetApprovalDashboard
|
|
func NewGetApprovalDashboardRequest(server string, workspaceId string, approvalRequestId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "approvalRequestId", runtime.ParamLocationPath, approvalRequestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/%s/dashboard", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApprovalDetailsRequest generates requests for GetApprovalDetails
|
|
func NewGetApprovalDetailsRequest(server string, workspaceId string, approvalRequestId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "approvalRequestId", runtime.ParamLocationPath, approvalRequestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/approval-requests/%s/details", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewFetchCustomAttributesRequest calls the generic FetchCustomAttributes builder with application/json body
|
|
func NewFetchCustomAttributesRequest(server string, workspaceId string, body FetchCustomAttributesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewFetchCustomAttributesRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewFetchCustomAttributesRequestWithBody generates requests for FetchCustomAttributes with any type of body
|
|
func NewFetchCustomAttributesRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/attributes/fetch", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCheckWorkspaceTransferPossibilityRequest generates requests for CheckWorkspaceTransferPossibility
|
|
func NewCheckWorkspaceTransferPossibilityRequest(server string, workspaceId string, params *CheckWorkspaceTransferPossibilityParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/check-transfer-possibility", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "region", runtime.ParamLocationQuery, params.Region); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteMany3Request calls the generic DeleteMany3 builder with application/json body
|
|
func NewDeleteMany3Request(server string, workspaceId string, body DeleteMany3JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDeleteMany3RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDeleteMany3RequestWithBody generates requests for DeleteMany3 with any type of body
|
|
func NewDeleteMany3RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/clients", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetClients1Request generates requests for GetClients1
|
|
func NewGetClients1Request(server string, workspaceId string, params *GetClients1Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/clients", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Archived != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateMany2Request calls the generic UpdateMany2 builder with application/json body
|
|
func NewUpdateMany2Request(server string, workspaceId string, body UpdateMany2JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateMany2RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateMany2RequestWithBody generates requests for UpdateMany2 with any type of body
|
|
func NewUpdateMany2RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/clients", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate19Request calls the generic Create19 builder with application/json body
|
|
func NewCreate19Request(server string, workspaceId string, body Create19JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate19RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate19RequestWithBody generates requests for Create19 with any type of body
|
|
func NewCreate19RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/clients", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetArchivePermissionsRequest calls the generic GetArchivePermissions builder with application/json body
|
|
func NewGetArchivePermissionsRequest(server string, workspaceId string, body GetArchivePermissionsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetArchivePermissionsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetArchivePermissionsRequestWithBody generates requests for GetArchivePermissions with any type of body
|
|
func NewGetArchivePermissionsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/clients/archive-permissions", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewHaveRelatedTasksRequest calls the generic HaveRelatedTasks builder with application/json body
|
|
func NewHaveRelatedTasksRequest(server string, workspaceId string, body HaveRelatedTasksJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewHaveRelatedTasksRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewHaveRelatedTasksRequestWithBody generates requests for HaveRelatedTasks with any type of body
|
|
func NewHaveRelatedTasksRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/clients/have-related-tasks", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetClientsOfIdsRequest calls the generic GetClientsOfIds builder with application/json body
|
|
func NewGetClientsOfIdsRequest(server string, workspaceId string, params *GetClientsOfIdsParams, body GetClientsOfIdsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetClientsOfIdsRequestWithBody(server, workspaceId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetClientsOfIdsRequestWithBody generates requests for GetClientsOfIds with any type of body
|
|
func NewGetClientsOfIdsRequestWithBody(server string, workspaceId string, params *GetClientsOfIdsParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/clients/ids", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.SearchValue != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchValue", runtime.ParamLocationQuery, *params.SearchValue); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Archived != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetClientsForInvoiceFilter1Request generates requests for GetClientsForInvoiceFilter1
|
|
func NewGetClientsForInvoiceFilter1Request(server string, workspaceId string, params *GetClientsForInvoiceFilter1Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/clients/invoices-filter", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ExcludedIds != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Archived != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetClients2Request generates requests for GetClients2
|
|
func NewGetClients2Request(server string, workspaceId string, params *GetClients2Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/clients/projects-filter", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ExcludedIds != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Archived != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetClientsForReportFilterRequest generates requests for GetClientsForReportFilter
|
|
func NewGetClientsForReportFilterRequest(server string, workspaceId string, params *GetClientsForReportFilterParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/clients/report-filters", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ExcludedIds != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetClientIdsForReportFilterRequest generates requests for GetClientIdsForReportFilter
|
|
func NewGetClientIdsForReportFilterRequest(server string, workspaceId string, params *GetClientIdsForReportFilterParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/clients/report-filters/ids", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTimeOffPoliciesAndHolidaysForClientRequest calls the generic GetTimeOffPoliciesAndHolidaysForClient builder with application/json body
|
|
func NewGetTimeOffPoliciesAndHolidaysForClientRequest(server string, workspaceId string, body GetTimeOffPoliciesAndHolidaysForClientJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetTimeOffPoliciesAndHolidaysForClientRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetTimeOffPoliciesAndHolidaysForClientRequestWithBody generates requests for GetTimeOffPoliciesAndHolidaysForClient with any type of body
|
|
func NewGetTimeOffPoliciesAndHolidaysForClientRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/clients/time-off-policies-holidays", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete17Request generates requests for Delete17
|
|
func NewDelete17Request(server string, workspaceId string, clientId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "clientId", runtime.ParamLocationPath, clientId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/clients/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetClientRequest generates requests for GetClient
|
|
func NewGetClientRequest(server string, workspaceId string, clientId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "clientId", runtime.ParamLocationPath, clientId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/clients/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetProjectsArchivePermissionsRequest generates requests for GetProjectsArchivePermissions
|
|
func NewGetProjectsArchivePermissionsRequest(server string, workspaceId string, clientId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "clientId", runtime.ParamLocationPath, clientId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/clients/%s/can-archive-projects", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdate10Request calls the generic Update10 builder with application/json body
|
|
func NewUpdate10Request(server string, workspaceId string, id string, params *Update10Params, body Update10JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdate10RequestWithBody(server, workspaceId, id, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdate10RequestWithBody generates requests for Update10 with any type of body
|
|
func NewUpdate10RequestWithBody(server string, workspaceId string, id string, params *Update10Params, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/clients/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.ArchiveProjects != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archive-projects", runtime.ParamLocationQuery, *params.ArchiveProjects); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.MarkTasksAsDone != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "mark-tasks-as-done", runtime.ParamLocationQuery, *params.MarkTasksAsDone); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewSetCostRate2Request calls the generic SetCostRate2 builder with application/json body
|
|
func NewSetCostRate2Request(server string, workspaceId string, body SetCostRate2JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewSetCostRate2RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewSetCostRate2RequestWithBody generates requests for SetCostRate2 with any type of body
|
|
func NewSetCostRate2RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/cost-rate", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetCouponRequest generates requests for GetCoupon
|
|
func NewGetCouponRequest(server string, workspaceId string, params *GetCouponParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/coupons", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, params.Type); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetWorkspaceCurrenciesRequest generates requests for GetWorkspaceCurrencies
|
|
func NewGetWorkspaceCurrenciesRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/currencies", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateCurrencyRequest calls the generic CreateCurrency builder with application/json body
|
|
func NewCreateCurrencyRequest(server string, workspaceId string, body CreateCurrencyJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateCurrencyRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateCurrencyRequestWithBody generates requests for CreateCurrency with any type of body
|
|
func NewCreateCurrencyRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/currencies", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRemoveCurrencyRequest generates requests for RemoveCurrency
|
|
func NewRemoveCurrencyRequest(server string, workspaceId string, currencyId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "currencyId", runtime.ParamLocationPath, currencyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/currencies/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetCurrencyRequest generates requests for GetCurrency
|
|
func NewGetCurrencyRequest(server string, workspaceId string, currencyId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "currencyId", runtime.ParamLocationPath, currencyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/currencies/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateCurrencyCodeRequest calls the generic UpdateCurrencyCode builder with application/json body
|
|
func NewUpdateCurrencyCodeRequest(server string, workspaceId string, currencyId string, body UpdateCurrencyCodeJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateCurrencyCodeRequestWithBody(server, workspaceId, currencyId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateCurrencyCodeRequestWithBody generates requests for UpdateCurrencyCode with any type of body
|
|
func NewUpdateCurrencyCodeRequestWithBody(server string, workspaceId string, currencyId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "currencyId", runtime.ParamLocationPath, currencyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/currencies/%s/code", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewSetCurrencyRequest calls the generic SetCurrency builder with application/json body
|
|
func NewSetCurrencyRequest(server string, workspaceId string, body SetCurrencyJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewSetCurrencyRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewSetCurrencyRequestWithBody generates requests for SetCurrency with any type of body
|
|
func NewSetCurrencyRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/currency", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewOfWorkspaceRequest generates requests for OfWorkspace
|
|
func NewOfWorkspaceRequest(server string, workspaceId string, params *OfWorkspaceParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/custom-field", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.EntityType != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "entityType", runtime.ParamLocationQuery, *params.EntityType); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate18Request calls the generic Create18 builder with application/json body
|
|
func NewCreate18Request(server string, workspaceId string, body Create18JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate18RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate18RequestWithBody generates requests for Create18 with any type of body
|
|
func NewCreate18RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/custom-field", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewOfWorkspaceWithRequiredAvailabilityRequest generates requests for OfWorkspaceWithRequiredAvailability
|
|
func NewOfWorkspaceWithRequiredAvailabilityRequest(server string, workspaceId string, params *OfWorkspaceWithRequiredAvailabilityParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/custom-field/required-availability", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.EntityType != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "entityType", runtime.ParamLocationQuery, *params.EntityType); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete16Request generates requests for Delete16
|
|
func NewDelete16Request(server string, workspaceId string, customFieldId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "customFieldId", runtime.ParamLocationPath, customFieldId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/custom-field/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewEditRequest calls the generic Edit builder with application/json body
|
|
func NewEditRequest(server string, workspaceId string, customFieldId string, body EditJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewEditRequestWithBody(server, workspaceId, customFieldId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewEditRequestWithBody generates requests for Edit with any type of body
|
|
func NewEditRequestWithBody(server string, workspaceId string, customFieldId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "customFieldId", runtime.ParamLocationPath, customFieldId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/custom-field/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRemoveDefaultValueOfProjectRequest generates requests for RemoveDefaultValueOfProject
|
|
func NewRemoveDefaultValueOfProjectRequest(server string, workspaceId string, customFieldId string, projectId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "customFieldId", runtime.ParamLocationPath, customFieldId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/custom-field/%s/default/%s", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewEditDefaultValuesRequest calls the generic EditDefaultValues builder with application/json body
|
|
func NewEditDefaultValuesRequest(server string, workspaceId string, customFieldId string, projectId string, body EditDefaultValuesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewEditDefaultValuesRequestWithBody(server, workspaceId, customFieldId, projectId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewEditDefaultValuesRequestWithBody generates requests for EditDefaultValues with any type of body
|
|
func NewEditDefaultValuesRequestWithBody(server string, workspaceId string, customFieldId string, projectId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "customFieldId", runtime.ParamLocationPath, customFieldId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/custom-field/%s/default/%s", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetOfProjectRequest generates requests for GetOfProject
|
|
func NewGetOfProjectRequest(server string, workspaceId string, projectId string, params *GetOfProjectParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/custom-field/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if params.EntityType != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "entityType", runtime.ParamLocationQuery, *params.EntityType); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateCustomLabelsRequest calls the generic UpdateCustomLabels builder with application/json body
|
|
func NewUpdateCustomLabelsRequest(server string, workspaceId string, body UpdateCustomLabelsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateCustomLabelsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateCustomLabelsRequestWithBody generates requests for UpdateCustomLabels with any type of body
|
|
func NewUpdateCustomLabelsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/custom-labels", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewAddEmailRequest calls the generic AddEmail builder with application/json body
|
|
func NewAddEmailRequest(server string, workspaceId string, userId string, params *AddEmailParams, body AddEmailJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewAddEmailRequestWithBody(server, workspaceId, userId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewAddEmailRequestWithBody generates requests for AddEmail with any type of body
|
|
func NewAddEmailRequestWithBody(server string, workspaceId string, userId string, params *AddEmailParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/email/%s/add", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.SendEmail != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sendEmail", runtime.ParamLocationQuery, *params.SendEmail); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteManyExpensesRequest calls the generic DeleteManyExpenses builder with application/json body
|
|
func NewDeleteManyExpensesRequest(server string, workspaceId string, body DeleteManyExpensesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDeleteManyExpensesRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDeleteManyExpensesRequestWithBody generates requests for DeleteManyExpenses with any type of body
|
|
func NewDeleteManyExpensesRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/expenses", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetExpensesRequest generates requests for GetExpenses
|
|
func NewGetExpensesRequest(server string, workspaceId string, params *GetExpensesParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/expenses", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.UserId != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, *params.UserId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateExpenseRequestWithBody generates requests for CreateExpense with any type of body
|
|
func NewCreateExpenseRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/expenses", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetCategoriesRequest generates requests for GetCategories
|
|
func NewGetCategoriesRequest(server string, workspaceId string, params *GetCategoriesParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/expenses/categories", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.ExcludedIds != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Archived != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate17Request calls the generic Create17 builder with application/json body
|
|
func NewCreate17Request(server string, workspaceId string, body Create17JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate17RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate17RequestWithBody generates requests for Create17 with any type of body
|
|
func NewCreate17RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/expenses/categories", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetCategoriesByIdsRequest generates requests for GetCategoriesByIds
|
|
func NewGetCategoriesByIdsRequest(server string, workspaceId string, params *GetCategoriesByIdsParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/expenses/categories/filter-ids", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Ids != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ids", runtime.ParamLocationQuery, *params.Ids); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Archived != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteCategoryRequest generates requests for DeleteCategory
|
|
func NewDeleteCategoryRequest(server string, workspaceId string, categoryId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "categoryId", runtime.ParamLocationPath, categoryId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/expenses/categories/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateCategoryRequest calls the generic UpdateCategory builder with application/json body
|
|
func NewUpdateCategoryRequest(server string, workspaceId string, categoryId string, body UpdateCategoryJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateCategoryRequestWithBody(server, workspaceId, categoryId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateCategoryRequestWithBody generates requests for UpdateCategory with any type of body
|
|
func NewUpdateCategoryRequestWithBody(server string, workspaceId string, categoryId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "categoryId", runtime.ParamLocationPath, categoryId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/expenses/categories/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateStatus1Request calls the generic UpdateStatus1 builder with application/json body
|
|
func NewUpdateStatus1Request(server string, workspaceId string, categoryId string, body UpdateStatus1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateStatus1RequestWithBody(server, workspaceId, categoryId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateStatus1RequestWithBody generates requests for UpdateStatus1 with any type of body
|
|
func NewUpdateStatus1RequestWithBody(server string, workspaceId string, categoryId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "categoryId", runtime.ParamLocationPath, categoryId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/expenses/categories/%s/archived", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetExpensesInDateRangeRequest generates requests for GetExpensesInDateRange
|
|
func NewGetExpensesInDateRangeRequest(server string, workspaceId string, params *GetExpensesInDateRangeParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/expenses/filter", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, params.UserId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateInvoicedStatus1Request calls the generic UpdateInvoicedStatus1 builder with application/json body
|
|
func NewUpdateInvoicedStatus1Request(server string, workspaceId string, body UpdateInvoicedStatus1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateInvoicedStatus1RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateInvoicedStatus1RequestWithBody generates requests for UpdateInvoicedStatus1 with any type of body
|
|
func NewUpdateInvoicedStatus1RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/expenses/invoiced", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRestoreManyExpensesRequest calls the generic RestoreManyExpenses builder with application/json body
|
|
func NewRestoreManyExpensesRequest(server string, workspaceId string, body RestoreManyExpensesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewRestoreManyExpensesRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewRestoreManyExpensesRequestWithBody generates requests for RestoreManyExpenses with any type of body
|
|
func NewRestoreManyExpensesRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/expenses/restore", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteExpenseRequest generates requests for DeleteExpense
|
|
func NewDeleteExpenseRequest(server string, workspaceId string, expenseId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "expenseId", runtime.ParamLocationPath, expenseId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/expenses/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetExpenseRequest generates requests for GetExpense
|
|
func NewGetExpenseRequest(server string, workspaceId string, expenseId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "expenseId", runtime.ParamLocationPath, expenseId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/expenses/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateExpenseRequestWithBody generates requests for UpdateExpense with any type of body
|
|
func NewUpdateExpenseRequestWithBody(server string, workspaceId string, expenseId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "expenseId", runtime.ParamLocationPath, expenseId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/expenses/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDownloadFileRequest generates requests for DownloadFile
|
|
func NewDownloadFileRequest(server string, workspaceId string, expenseId string, fileId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "expenseId", runtime.ParamLocationPath, expenseId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "fileId", runtime.ParamLocationPath, fileId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/expenses/%s/files/%s", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewImportFileDataRequest calls the generic ImportFileData builder with application/json body
|
|
func NewImportFileDataRequest(server string, workspaceId string, body ImportFileDataJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewImportFileDataRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewImportFileDataRequestWithBody generates requests for ImportFileData with any type of body
|
|
func NewImportFileDataRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/file-import", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCheckUsersForImportRequest generates requests for CheckUsersForImport
|
|
func NewCheckUsersForImportRequest(server string, workspaceId string, fileImportId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "fileImportId", runtime.ParamLocationPath, fileImportId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/file-import/%s/check-users", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetHolidaysRequest generates requests for GetHolidays
|
|
func NewGetHolidaysRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/holidays", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate16Request calls the generic Create16 builder with application/json body
|
|
func NewCreate16Request(server string, workspaceId string, body Create16JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate16RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate16RequestWithBody generates requests for Create16 with any type of body
|
|
func NewCreate16RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/holidays", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete15Request generates requests for Delete15
|
|
func NewDelete15Request(server string, workspaceId string, holidayId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "holidayId", runtime.ParamLocationPath, holidayId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/holidays/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdate9Request calls the generic Update9 builder with application/json body
|
|
func NewUpdate9Request(server string, workspaceId string, holidayId string, body Update9JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdate9RequestWithBody(server, workspaceId, holidayId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdate9RequestWithBody generates requests for Update9 with any type of body
|
|
func NewUpdate9RequestWithBody(server string, workspaceId string, holidayId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "holidayId", runtime.ParamLocationPath, holidayId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/holidays/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewSetHourlyRate2Request calls the generic SetHourlyRate2 builder with application/json body
|
|
func NewSetHourlyRate2Request(server string, workspaceId string, body SetHourlyRate2JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewSetHourlyRate2RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewSetHourlyRate2RequestWithBody generates requests for SetHourlyRate2 with any type of body
|
|
func NewSetHourlyRate2RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/hourly-rate", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetInvitedEmailsInfoRequest calls the generic GetInvitedEmailsInfo builder with application/json body
|
|
func NewGetInvitedEmailsInfoRequest(server string, workspaceId string, body GetInvitedEmailsInfoJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetInvitedEmailsInfoRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetInvitedEmailsInfoRequestWithBody generates requests for GetInvitedEmailsInfo with any type of body
|
|
func NewGetInvitedEmailsInfoRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invited-emails-info", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetInvoiceEmailTemplatesRequest generates requests for GetInvoiceEmailTemplates
|
|
func NewGetInvoiceEmailTemplatesRequest(server string, workspaceId string, params *GetInvoiceEmailTemplatesParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoice-email-templates", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.InvoiceEmailTemplateType != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "invoiceEmailTemplateType", runtime.ParamLocationQuery, *params.InvoiceEmailTemplateType); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpsertInvoiceEmailTemplateRequest calls the generic UpsertInvoiceEmailTemplate builder with application/json body
|
|
func NewUpsertInvoiceEmailTemplateRequest(server string, workspaceId string, body UpsertInvoiceEmailTemplateJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpsertInvoiceEmailTemplateRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpsertInvoiceEmailTemplateRequestWithBody generates requests for UpsertInvoiceEmailTemplate with any type of body
|
|
func NewUpsertInvoiceEmailTemplateRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoice-email-templates", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetInvoiceEmailDataRequest generates requests for GetInvoiceEmailData
|
|
func NewGetInvoiceEmailDataRequest(server string, workspaceId string, invoiceId string, invoiceEmailTemplateType string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "invoiceEmailTemplateType", runtime.ParamLocationPath, invoiceEmailTemplateType)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoice/%s/email-type/%s/email-data", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewSendInvoiceEmailRequest calls the generic SendInvoiceEmail builder with application/json body
|
|
func NewSendInvoiceEmailRequest(server string, workspaceId string, invoiceId string, invoiceEmailTemplateType string, body SendInvoiceEmailJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewSendInvoiceEmailRequestWithBody(server, workspaceId, invoiceId, invoiceEmailTemplateType, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewSendInvoiceEmailRequestWithBody generates requests for SendInvoiceEmail with any type of body
|
|
func NewSendInvoiceEmailRequestWithBody(server string, workspaceId string, invoiceId string, invoiceEmailTemplateType string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "invoiceEmailTemplateType", runtime.ParamLocationPath, invoiceEmailTemplateType)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoice/%s/email-type/%s/send-email", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateInvoiceRequest calls the generic CreateInvoice builder with application/json body
|
|
func NewCreateInvoiceRequest(server string, workspaceId string, body CreateInvoiceJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateInvoiceRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateInvoiceRequestWithBody generates requests for CreateInvoice with any type of body
|
|
func NewCreateInvoiceRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetAllCompaniesRequest generates requests for GetAllCompanies
|
|
func NewGetAllCompaniesRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/companies", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateCompanyRequest calls the generic CreateCompany builder with application/json body
|
|
func NewCreateCompanyRequest(server string, workspaceId string, body CreateCompanyJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateCompanyRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateCompanyRequestWithBody generates requests for CreateCompany with any type of body
|
|
func NewCreateCompanyRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/companies", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateCompaniesInWorkspaceRequest calls the generic UpdateCompaniesInWorkspace builder with application/json body
|
|
func NewUpdateCompaniesInWorkspaceRequest(server string, workspaceId string, body UpdateCompaniesInWorkspaceJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateCompaniesInWorkspaceRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateCompaniesInWorkspaceRequestWithBody generates requests for UpdateCompaniesInWorkspace with any type of body
|
|
func NewUpdateCompaniesInWorkspaceRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/companies/bulk", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCountAllCompaniesRequest generates requests for CountAllCompanies
|
|
func NewCountAllCompaniesRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/companies/count", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetClientsForInvoiceFilterRequest generates requests for GetClientsForInvoiceFilter
|
|
func NewGetClientsForInvoiceFilterRequest(server string, workspaceId string, params *GetClientsForInvoiceFilterParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/companies/invoices-filter", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteCompanyRequest generates requests for DeleteCompany
|
|
func NewDeleteCompanyRequest(server string, workspaceId string, companyId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "companyId", runtime.ParamLocationPath, companyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/companies/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetCompanyByIdRequest generates requests for GetCompanyById
|
|
func NewGetCompanyByIdRequest(server string, workspaceId string, companyId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "companyId", runtime.ParamLocationPath, companyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/companies/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateCompanyRequest calls the generic UpdateCompany builder with application/json body
|
|
func NewUpdateCompanyRequest(server string, workspaceId string, companyId string, body UpdateCompanyJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateCompanyRequestWithBody(server, workspaceId, companyId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateCompanyRequestWithBody generates requests for UpdateCompany with any type of body
|
|
func NewUpdateCompanyRequestWithBody(server string, workspaceId string, companyId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "companyId", runtime.ParamLocationPath, companyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/companies/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetInvoicesInfoRequest calls the generic GetInvoicesInfo builder with application/json body
|
|
func NewGetInvoicesInfoRequest(server string, workspaceId string, body GetInvoicesInfoJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetInvoicesInfoRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetInvoicesInfoRequestWithBody generates requests for GetInvoicesInfo with any type of body
|
|
func NewGetInvoicesInfoRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/info", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetInvoiceItemTypesRequest generates requests for GetInvoiceItemTypes
|
|
func NewGetInvoiceItemTypesRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/itemType", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateInvoiceItemTypeRequest calls the generic CreateInvoiceItemType builder with application/json body
|
|
func NewCreateInvoiceItemTypeRequest(server string, workspaceId string, body CreateInvoiceItemTypeJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateInvoiceItemTypeRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateInvoiceItemTypeRequestWithBody generates requests for CreateInvoiceItemType with any type of body
|
|
func NewCreateInvoiceItemTypeRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/itemType", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteInvoiceItemTypeRequest generates requests for DeleteInvoiceItemType
|
|
func NewDeleteInvoiceItemTypeRequest(server string, workspaceId string, id string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/itemType/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateInvoiceItemTypeRequest calls the generic UpdateInvoiceItemType builder with application/json body
|
|
func NewUpdateInvoiceItemTypeRequest(server string, workspaceId string, id string, body UpdateInvoiceItemTypeJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateInvoiceItemTypeRequestWithBody(server, workspaceId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateInvoiceItemTypeRequestWithBody generates requests for UpdateInvoiceItemType with any type of body
|
|
func NewUpdateInvoiceItemTypeRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/itemType/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetNextInvoiceNumberRequest generates requests for GetNextInvoiceNumber
|
|
func NewGetNextInvoiceNumberRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/next-number", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetInvoicePermissionsRequest generates requests for GetInvoicePermissions
|
|
func NewGetInvoicePermissionsRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/permissions", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateInvoicePermissionsRequest calls the generic UpdateInvoicePermissions builder with application/json body
|
|
func NewUpdateInvoicePermissionsRequest(server string, workspaceId string, body UpdateInvoicePermissionsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateInvoicePermissionsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateInvoicePermissionsRequestWithBody generates requests for UpdateInvoicePermissions with any type of body
|
|
func NewUpdateInvoicePermissionsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/permissions", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCanUserManageInvoicesRequest generates requests for CanUserManageInvoices
|
|
func NewCanUserManageInvoicesRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/permissions/current", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetInvoiceSettingsRequest generates requests for GetInvoiceSettings
|
|
func NewGetInvoiceSettingsRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/settings", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateInvoiceSettingsRequest calls the generic UpdateInvoiceSettings builder with application/json body
|
|
func NewUpdateInvoiceSettingsRequest(server string, workspaceId string, body UpdateInvoiceSettingsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateInvoiceSettingsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateInvoiceSettingsRequestWithBody generates requests for UpdateInvoiceSettings with any type of body
|
|
func NewUpdateInvoiceSettingsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/settings", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteInvoiceRequest generates requests for DeleteInvoice
|
|
func NewDeleteInvoiceRequest(server string, workspaceId string, invoiceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetInvoiceRequest generates requests for GetInvoice
|
|
func NewGetInvoiceRequest(server string, workspaceId string, invoiceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateInvoiceRequest calls the generic UpdateInvoice builder with application/json body
|
|
func NewUpdateInvoiceRequest(server string, workspaceId string, invoiceId string, body UpdateInvoiceJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateInvoiceRequestWithBody(server, workspaceId, invoiceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateInvoiceRequestWithBody generates requests for UpdateInvoice with any type of body
|
|
func NewUpdateInvoiceRequestWithBody(server string, workspaceId string, invoiceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDuplicateInvoiceRequest generates requests for DuplicateInvoice
|
|
func NewDuplicateInvoiceRequest(server string, workspaceId string, invoiceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/duplicate", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewExportInvoiceRequest generates requests for ExportInvoice
|
|
func NewExportInvoiceRequest(server string, workspaceId string, invoiceId string, params *ExportInvoiceParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/export", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userLocale", runtime.ParamLocationQuery, params.UserLocale); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewImportTimeAndExpensesRequest calls the generic ImportTimeAndExpenses builder with application/json body
|
|
func NewImportTimeAndExpensesRequest(server string, workspaceId string, invoiceId string, body ImportTimeAndExpensesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewImportTimeAndExpensesRequestWithBody(server, workspaceId, invoiceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewImportTimeAndExpensesRequestWithBody generates requests for ImportTimeAndExpenses with any type of body
|
|
func NewImportTimeAndExpensesRequestWithBody(server string, workspaceId string, invoiceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/import", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewAddInvoiceItemRequest generates requests for AddInvoiceItem
|
|
func NewAddInvoiceItemRequest(server string, workspaceId string, invoiceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/invoiceItem", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewReorderInvoiceItem1Request calls the generic ReorderInvoiceItem1 builder with application/json body
|
|
func NewReorderInvoiceItem1Request(server string, workspaceId string, invoiceId string, body ReorderInvoiceItem1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewReorderInvoiceItem1RequestWithBody(server, workspaceId, invoiceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewReorderInvoiceItem1RequestWithBody generates requests for ReorderInvoiceItem1 with any type of body
|
|
func NewReorderInvoiceItem1RequestWithBody(server string, workspaceId string, invoiceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/invoiceItem/order", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewEditInvoiceItemRequest calls the generic EditInvoiceItem builder with application/json body
|
|
func NewEditInvoiceItemRequest(server string, workspaceId string, invoiceId string, invoiceItemOrder int32, body EditInvoiceItemJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewEditInvoiceItemRequestWithBody(server, workspaceId, invoiceId, invoiceItemOrder, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewEditInvoiceItemRequestWithBody generates requests for EditInvoiceItem with any type of body
|
|
func NewEditInvoiceItemRequestWithBody(server string, workspaceId string, invoiceId string, invoiceItemOrder int32, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "invoiceItemOrder", runtime.ParamLocationPath, invoiceItemOrder)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/invoiceItem/%s", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteInvoiceItemsRequest generates requests for DeleteInvoiceItems
|
|
func NewDeleteInvoiceItemsRequest(server string, workspaceId string, invoiceId string, params *DeleteInvoiceItemsParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/invoiceItems", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "invoiceItemsOrder", runtime.ParamLocationQuery, params.InvoiceItemsOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetPaymentsForInvoiceRequest generates requests for GetPaymentsForInvoice
|
|
func NewGetPaymentsForInvoiceRequest(server string, workspaceId string, invoiceId string, params *GetPaymentsForInvoiceParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/payments", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateInvoicePaymentRequest calls the generic CreateInvoicePayment builder with application/json body
|
|
func NewCreateInvoicePaymentRequest(server string, workspaceId string, invoiceId string, body CreateInvoicePaymentJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateInvoicePaymentRequestWithBody(server, workspaceId, invoiceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateInvoicePaymentRequestWithBody generates requests for CreateInvoicePayment with any type of body
|
|
func NewCreateInvoicePaymentRequestWithBody(server string, workspaceId string, invoiceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/payments", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeletePaymentByIdRequest generates requests for DeletePaymentById
|
|
func NewDeletePaymentByIdRequest(server string, workspaceId string, invoiceId string, paymentId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "paymentId", runtime.ParamLocationPath, paymentId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/payments/%s", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewChangeInvoiceStatusRequest calls the generic ChangeInvoiceStatus builder with application/json body
|
|
func NewChangeInvoiceStatusRequest(server string, workspaceId string, invoiceId string, body ChangeInvoiceStatusJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewChangeInvoiceStatusRequestWithBody(server, workspaceId, invoiceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewChangeInvoiceStatusRequestWithBody generates requests for ChangeInvoiceStatus with any type of body
|
|
func NewChangeInvoiceStatusRequestWithBody(server string, workspaceId string, invoiceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "invoiceId", runtime.ParamLocationPath, invoiceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/invoices/%s/status", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewAuthorizationCheckRequest generates requests for AuthorizationCheck
|
|
func NewAuthorizationCheckRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/is-admin", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewIsAvailableRequest generates requests for IsAvailable
|
|
func NewIsAvailableRequest(server string, workspaceId string, params *IsAvailableParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosk/pin/available", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pinContext", runtime.ParamLocationQuery, params.PinContext); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pinCode", runtime.ParamLocationQuery, params.PinCode); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewIsAvailable1Request generates requests for IsAvailable1
|
|
func NewIsAvailable1Request(server string, workspaceId string, userId string, params *IsAvailable1Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosk/pin/available/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pinCode", runtime.ParamLocationQuery, params.PinCode); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGeneratePinCodeRequest generates requests for GeneratePinCode
|
|
func NewGeneratePinCodeRequest(server string, workspaceId string, params *GeneratePinCodeParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosk/pin/generate", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "context", runtime.ParamLocationQuery, params.Context); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGeneratePinCodeForUserRequest generates requests for GeneratePinCodeForUser
|
|
func NewGeneratePinCodeForUserRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosk/pin/generate/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUserPinCodeRequest generates requests for GetUserPinCode
|
|
func NewGetUserPinCodeRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosk/pin/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdatePinCodeRequest calls the generic UpdatePinCode builder with application/json body
|
|
func NewUpdatePinCodeRequest(server string, workspaceId string, userId string, body UpdatePinCodeJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdatePinCodeRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdatePinCodeRequestWithBody generates requests for UpdatePinCode with any type of body
|
|
func NewUpdatePinCodeRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosk/pin/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetKiosksOfWorkspaceRequest generates requests for GetKiosksOfWorkspace
|
|
func NewGetKiosksOfWorkspaceRequest(server string, workspaceId string, params *GetKiosksOfWorkspaceParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosks", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Statuses != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate15Request calls the generic Create15 builder with application/json body
|
|
func NewCreate15Request(server string, workspaceId string, body Create15JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate15RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate15RequestWithBody generates requests for Create15 with any type of body
|
|
func NewCreate15RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosks", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateBreakDefaultsRequest calls the generic UpdateBreakDefaults builder with application/json body
|
|
func NewUpdateBreakDefaultsRequest(server string, workspaceId string, body UpdateBreakDefaultsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateBreakDefaultsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateBreakDefaultsRequestWithBody generates requests for UpdateBreakDefaults with any type of body
|
|
func NewUpdateBreakDefaultsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosks/break-defaults", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTotalCountOfKiosksOnWorkspaceRequest generates requests for GetTotalCountOfKiosksOnWorkspace
|
|
func NewGetTotalCountOfKiosksOnWorkspaceRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosks/count", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateDefaultsRequest calls the generic UpdateDefaults builder with application/json body
|
|
func NewUpdateDefaultsRequest(server string, workspaceId string, body UpdateDefaultsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateDefaultsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateDefaultsRequestWithBody generates requests for UpdateDefaults with any type of body
|
|
func NewUpdateDefaultsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosks/defaults", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewHasActiveKiosksRequest generates requests for HasActiveKiosks
|
|
func NewHasActiveKiosksRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosks/has-active", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetWithProjectRequest calls the generic GetWithProject builder with application/json body
|
|
func NewGetWithProjectRequest(server string, workspaceId string, body GetWithProjectJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetWithProjectRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetWithProjectRequestWithBody generates requests for GetWithProject with any type of body
|
|
func NewGetWithProjectRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosks/project", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetWithTaskRequest calls the generic GetWithTask builder with application/json body
|
|
func NewGetWithTaskRequest(server string, workspaceId string, projectId string, body GetWithTaskJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetWithTaskRequestWithBody(server, workspaceId, projectId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetWithTaskRequestWithBody generates requests for GetWithTask with any type of body
|
|
func NewGetWithTaskRequestWithBody(server string, workspaceId string, projectId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosks/project/%s/task", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetForReportFilterRequest generates requests for GetForReportFilter
|
|
func NewGetForReportFilterRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosks/report-filter", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetWithoutDefaultsRequest generates requests for GetWithoutDefaults
|
|
func NewGetWithoutDefaultsRequest(server string, workspaceId string, params *GetWithoutDefaultsParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosks/without-defaults", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Type != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.IsBreak != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "isBreak", runtime.ParamLocationQuery, *params.IsBreak); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteKioskRequest generates requests for DeleteKiosk
|
|
func NewDeleteKioskRequest(server string, workspaceId string, kioskId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kioskId", runtime.ParamLocationPath, kioskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosks/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetKioskByIdRequest generates requests for GetKioskById
|
|
func NewGetKioskByIdRequest(server string, workspaceId string, kioskId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kioskId", runtime.ParamLocationPath, kioskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosks/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdate8Request calls the generic Update8 builder with application/json body
|
|
func NewUpdate8Request(server string, workspaceId string, kioskId string, body Update8JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdate8RequestWithBody(server, workspaceId, kioskId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdate8RequestWithBody generates requests for Update8 with any type of body
|
|
func NewUpdate8RequestWithBody(server string, workspaceId string, kioskId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kioskId", runtime.ParamLocationPath, kioskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosks/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewExportAssigneesRequest generates requests for ExportAssignees
|
|
func NewExportAssigneesRequest(server string, workspaceId string, kioskId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kioskId", runtime.ParamLocationPath, kioskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosks/%s/assignees/export", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewHasEntryInProgressRequest generates requests for HasEntryInProgress
|
|
func NewHasEntryInProgressRequest(server string, workspaceId string, kioskId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kioskId", runtime.ParamLocationPath, kioskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosks/%s/has-entry-in-progress", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateStatusRequest calls the generic UpdateStatus builder with application/json body
|
|
func NewUpdateStatusRequest(server string, workspaceId string, kioskId string, body UpdateStatusJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateStatusRequestWithBody(server, workspaceId, kioskId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateStatusRequestWithBody generates requests for UpdateStatus with any type of body
|
|
func NewUpdateStatusRequestWithBody(server string, workspaceId string, kioskId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "kioskId", runtime.ParamLocationPath, kioskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/kiosks/%s/status", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewAcknowledgeLegacyPlanNotificationsRequest generates requests for AcknowledgeLegacyPlanNotifications
|
|
func NewAcknowledgeLegacyPlanNotificationsRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/legacy-plan-acknowledge", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetLegacyPlanUpgradeDataRequest generates requests for GetLegacyPlanUpgradeData
|
|
func NewGetLegacyPlanUpgradeDataRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/legacy-plan-upgrade-data", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewAddLimitedUsersRequest calls the generic AddLimitedUsers builder with application/json body
|
|
func NewAddLimitedUsersRequest(server string, workspaceId string, body AddLimitedUsersJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewAddLimitedUsersRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewAddLimitedUsersRequestWithBody generates requests for AddLimitedUsers with any type of body
|
|
func NewAddLimitedUsersRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/limited-users", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetLimitedUsersCountRequest generates requests for GetLimitedUsersCount
|
|
func NewGetLimitedUsersCountRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/limited-users/count", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetMemberProfileRequest generates requests for GetMemberProfile
|
|
func NewGetMemberProfileRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/member-profile/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateMemberProfileRequest calls the generic UpdateMemberProfile builder with application/json body
|
|
func NewUpdateMemberProfileRequest(server string, workspaceId string, userId string, body UpdateMemberProfileJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateMemberProfileRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateMemberProfileRequestWithBody generates requests for UpdateMemberProfile with any type of body
|
|
func NewUpdateMemberProfileRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/member-profile/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateMemberProfileWithAdditionalDataRequest calls the generic UpdateMemberProfileWithAdditionalData builder with application/json body
|
|
func NewUpdateMemberProfileWithAdditionalDataRequest(server string, workspaceId string, userId string, body UpdateMemberProfileWithAdditionalDataJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateMemberProfileWithAdditionalDataRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateMemberProfileWithAdditionalDataRequestWithBody generates requests for UpdateMemberProfileWithAdditionalData with any type of body
|
|
func NewUpdateMemberProfileWithAdditionalDataRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/member-profile/%s/full", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateMemberSettingsRequest calls the generic UpdateMemberSettings builder with application/json body
|
|
func NewUpdateMemberSettingsRequest(server string, workspaceId string, userId string, body UpdateMemberSettingsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateMemberSettingsRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateMemberSettingsRequestWithBody generates requests for UpdateMemberSettings with any type of body
|
|
func NewUpdateMemberSettingsRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/member-profile/%s/settings", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetWeekStartRequest generates requests for GetWeekStart
|
|
func NewGetWeekStartRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/member-profile/%s/week-start", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateMemberWorkingDaysAndCapacityRequest calls the generic UpdateMemberWorkingDaysAndCapacity builder with application/json body
|
|
func NewUpdateMemberWorkingDaysAndCapacityRequest(server string, workspaceId string, userId string, body UpdateMemberWorkingDaysAndCapacityJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateMemberWorkingDaysAndCapacityRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateMemberWorkingDaysAndCapacityRequestWithBody generates requests for UpdateMemberWorkingDaysAndCapacity with any type of body
|
|
func NewUpdateMemberWorkingDaysAndCapacityRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/member-profile/%s/working-days-capacity", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetMembersCountRequest generates requests for GetMembersCount
|
|
func NewGetMembersCountRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/members-count", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewFindNotInvitedEmailsInRequest calls the generic FindNotInvitedEmailsIn builder with application/json body
|
|
func NewFindNotInvitedEmailsInRequest(server string, workspaceId string, body FindNotInvitedEmailsInJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewFindNotInvitedEmailsInRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewFindNotInvitedEmailsInRequestWithBody generates requests for FindNotInvitedEmailsIn with any type of body
|
|
func NewFindNotInvitedEmailsInRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/not-invited-users", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetOrganizationRequest generates requests for GetOrganization
|
|
func NewGetOrganizationRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/organization", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate14Request calls the generic Create14 builder with application/json body
|
|
func NewCreate14Request(server string, workspaceId string, body Create14JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate14RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate14RequestWithBody generates requests for Create14 with any type of body
|
|
func NewCreate14RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/organization", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetOrganizationNameRequest generates requests for GetOrganizationName
|
|
func NewGetOrganizationNameRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/organization/name", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCheckAvailabilityOfDomainNameRequest generates requests for CheckAvailabilityOfDomainName
|
|
func NewCheckAvailabilityOfDomainNameRequest(server string, workspaceId string, params *CheckAvailabilityOfDomainNameParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/organization/subdomain-name", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "domain-name", runtime.ParamLocationQuery, params.DomainName); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteOrganizationRequest generates requests for DeleteOrganization
|
|
func NewDeleteOrganizationRequest(server string, workspaceId string, organizationId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/organization/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateOrganizationRequest calls the generic UpdateOrganization builder with application/json body
|
|
func NewUpdateOrganizationRequest(server string, workspaceId string, organizationId string, body UpdateOrganizationJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateOrganizationRequestWithBody(server, workspaceId, organizationId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateOrganizationRequestWithBody generates requests for UpdateOrganization with any type of body
|
|
func NewUpdateOrganizationRequestWithBody(server string, workspaceId string, organizationId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/organization/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetLoginSettingsRequest generates requests for GetLoginSettings
|
|
func NewGetLoginSettingsRequest(server string, workspaceId string, organizationId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/login-settings", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteOAuth2ConfigurationRequest generates requests for DeleteOAuth2Configuration
|
|
func NewDeleteOAuth2ConfigurationRequest(server string, workspaceId string, organizationId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/o-auth2-configuration", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetOrganizationOAuth2ConfigurationRequest generates requests for GetOrganizationOAuth2Configuration
|
|
func NewGetOrganizationOAuth2ConfigurationRequest(server string, workspaceId string, organizationId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/o-auth2-configuration", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateOAuth2Configuration1Request calls the generic UpdateOAuth2Configuration1 builder with application/json body
|
|
func NewUpdateOAuth2Configuration1Request(server string, workspaceId string, organizationId string, body UpdateOAuth2Configuration1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateOAuth2Configuration1RequestWithBody(server, workspaceId, organizationId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateOAuth2Configuration1RequestWithBody generates requests for UpdateOAuth2Configuration1 with any type of body
|
|
func NewUpdateOAuth2Configuration1RequestWithBody(server string, workspaceId string, organizationId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/o-auth2-configuration", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewTestOAuth2ConfigurationRequest calls the generic TestOAuth2Configuration builder with application/json body
|
|
func NewTestOAuth2ConfigurationRequest(server string, workspaceId string, organizationId string, body TestOAuth2ConfigurationJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewTestOAuth2ConfigurationRequestWithBody(server, workspaceId, organizationId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewTestOAuth2ConfigurationRequestWithBody generates requests for TestOAuth2Configuration with any type of body
|
|
func NewTestOAuth2ConfigurationRequestWithBody(server string, workspaceId string, organizationId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/oauth-configuration-test", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteSAML2ConfigurationRequest generates requests for DeleteSAML2Configuration
|
|
func NewDeleteSAML2ConfigurationRequest(server string, workspaceId string, organizationId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/saml2-configuration", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetOrganizationSAML2ConfigurationRequest generates requests for GetOrganizationSAML2Configuration
|
|
func NewGetOrganizationSAML2ConfigurationRequest(server string, workspaceId string, organizationId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/saml2-configuration", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateSAML2ConfigurationRequest calls the generic UpdateSAML2Configuration builder with application/json body
|
|
func NewUpdateSAML2ConfigurationRequest(server string, workspaceId string, organizationId string, body UpdateSAML2ConfigurationJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateSAML2ConfigurationRequestWithBody(server, workspaceId, organizationId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateSAML2ConfigurationRequestWithBody generates requests for UpdateSAML2Configuration with any type of body
|
|
func NewUpdateSAML2ConfigurationRequestWithBody(server string, workspaceId string, organizationId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/saml2-configuration", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewTestSAML2ConfigurationRequest calls the generic TestSAML2Configuration builder with application/json body
|
|
func NewTestSAML2ConfigurationRequest(server string, workspaceId string, organizationId string, body TestSAML2ConfigurationJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewTestSAML2ConfigurationRequestWithBody(server, workspaceId, organizationId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewTestSAML2ConfigurationRequestWithBody generates requests for TestSAML2Configuration with any type of body
|
|
func NewTestSAML2ConfigurationRequestWithBody(server string, workspaceId string, organizationId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "organizationId", runtime.ParamLocationPath, organizationId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/saml2-configuration-test", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetAllOrganizationsOfUserRequest generates requests for GetAllOrganizationsOfUser
|
|
func NewGetAllOrganizationsOfUserRequest(server string, workspaceId string, userId string, params *GetAllOrganizationsOfUserParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/organization/%s/subdomain-names", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.MembershipStatus != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "membership-status", runtime.ParamLocationQuery, *params.MembershipStatus); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetWorkspaceOwnerRequest generates requests for GetWorkspaceOwner
|
|
func NewGetWorkspaceOwnerRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/owner", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewTransferOwnershipRequest calls the generic TransferOwnership builder with application/json body
|
|
func NewTransferOwnershipRequest(server string, workspaceId string, body TransferOwnershipJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewTransferOwnershipRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewTransferOwnershipRequestWithBody generates requests for TransferOwnership with any type of body
|
|
func NewTransferOwnershipRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/owner", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetWorkspaceOwnerTimeZoneRequest generates requests for GetWorkspaceOwnerTimeZone
|
|
func NewGetWorkspaceOwnerTimeZoneRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/owner/timeZone", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCancelSubscriptionRequest calls the generic CancelSubscription builder with application/json body
|
|
func NewCancelSubscriptionRequest(server string, workspaceId string, body CancelSubscriptionJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCancelSubscriptionRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCancelSubscriptionRequestWithBody generates requests for CancelSubscription with any type of body
|
|
func NewCancelSubscriptionRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/cancel-subscription", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewConfirmPaymentRequest generates requests for ConfirmPayment
|
|
func NewConfirmPaymentRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/confirm-payment", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetCustomerInfoRequest generates requests for GetCustomerInfo
|
|
func NewGetCustomerInfoRequest(server string, workspaceId string, params *GetCustomerInfoParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/customer-information", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.CountryCode != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "countryCode", runtime.ParamLocationQuery, *params.CountryCode); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateCustomerRequest calls the generic CreateCustomer builder with application/json body
|
|
func NewCreateCustomerRequest(server string, workspaceId string, body CreateCustomerJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateCustomerRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateCustomerRequestWithBody generates requests for CreateCustomer with any type of body
|
|
func NewCreateCustomerRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/customer/create", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateCustomerRequest calls the generic UpdateCustomer builder with application/json body
|
|
func NewUpdateCustomerRequest(server string, workspaceId string, body UpdateCustomerJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateCustomerRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateCustomerRequestWithBody generates requests for UpdateCustomer with any type of body
|
|
func NewUpdateCustomerRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/customer/update", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewEditInvoiceInformationRequest calls the generic EditInvoiceInformation builder with application/json body
|
|
func NewEditInvoiceInformationRequest(server string, workspaceId string, body EditInvoiceInformationJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewEditInvoiceInformationRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewEditInvoiceInformationRequestWithBody generates requests for EditInvoiceInformation with any type of body
|
|
func NewEditInvoiceInformationRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/edit-invoice", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewEditPaymentInformationRequest calls the generic EditPaymentInformation builder with application/json body
|
|
func NewEditPaymentInformationRequest(server string, workspaceId string, body EditPaymentInformationJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewEditPaymentInformationRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewEditPaymentInformationRequestWithBody generates requests for EditPaymentInformation with any type of body
|
|
func NewEditPaymentInformationRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/edit-payment", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewExtendTrialRequest generates requests for ExtendTrial
|
|
func NewExtendTrialRequest(server string, workspaceId string, params *ExtendTrialParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/extend-trial", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Days != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "days", runtime.ParamLocationQuery, *params.Days); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetFeatureSubscriptionsRequest generates requests for GetFeatureSubscriptions
|
|
func NewGetFeatureSubscriptionsRequest(server string, workspaceId string, params *GetFeatureSubscriptionsParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/feature-subscriptions", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Type != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewInitialUpgradeRequest calls the generic InitialUpgrade builder with application/json body
|
|
func NewInitialUpgradeRequest(server string, workspaceId string, body InitialUpgradeJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewInitialUpgradeRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewInitialUpgradeRequestWithBody generates requests for InitialUpgrade with any type of body
|
|
func NewInitialUpgradeRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/initial-price", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetInvoiceInfoRequest generates requests for GetInvoiceInfo
|
|
func NewGetInvoiceInfoRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/invoice-information", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetInvoicesRequest generates requests for GetInvoices
|
|
func NewGetInvoicesRequest(server string, workspaceId string, params *GetInvoicesParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/invoices", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.StartingAfter != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startingAfter", runtime.ParamLocationQuery, *params.StartingAfter); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Limit != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetInvoicesCountRequest generates requests for GetInvoicesCount
|
|
func NewGetInvoicesCountRequest(server string, workspaceId string, params *GetInvoicesCountParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/invoices-count", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetLastOpenInvoiceRequest generates requests for GetLastOpenInvoice
|
|
func NewGetLastOpenInvoiceRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/last-open-invoice", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetInvoicesListRequest generates requests for GetInvoicesList
|
|
func NewGetInvoicesListRequest(server string, workspaceId string, params *GetInvoicesListParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/list-invoices", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.NextPage != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "nextPage", runtime.ParamLocationQuery, *params.NextPage); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Limit != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetPaymentDateRequest generates requests for GetPaymentDate
|
|
func NewGetPaymentDateRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/payment-date", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetPaymentInfoRequest generates requests for GetPaymentInfo
|
|
func NewGetPaymentInfoRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/payment-information", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateSetupIntentForPaymentMethodRequest calls the generic CreateSetupIntentForPaymentMethod builder with application/json body
|
|
func NewCreateSetupIntentForPaymentMethodRequest(server string, workspaceId string, body CreateSetupIntentForPaymentMethodJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateSetupIntentForPaymentMethodRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateSetupIntentForPaymentMethodRequestWithBody generates requests for CreateSetupIntentForPaymentMethod with any type of body
|
|
func NewCreateSetupIntentForPaymentMethodRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/payment-method/setup-intent", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPreviewUpgradeRequest generates requests for PreviewUpgrade
|
|
func NewPreviewUpgradeRequest(server string, workspaceId string, params *PreviewUpgradeParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/preview-price", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Type != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Quantity != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "quantity", runtime.ParamLocationQuery, *params.Quantity); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.LimitedQuantity != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limitedQuantity", runtime.ParamLocationQuery, *params.LimitedQuantity); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewReactivateSubscriptionRequest generates requests for ReactivateSubscription
|
|
func NewReactivateSubscriptionRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/reactivate-subscription", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetScheduledInvoiceInfoRequest generates requests for GetScheduledInvoiceInfo
|
|
func NewGetScheduledInvoiceInfoRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/scheduled-invoice-information", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateUserSeatsRequest calls the generic UpdateUserSeats builder with application/json body
|
|
func NewUpdateUserSeatsRequest(server string, workspaceId string, body UpdateUserSeatsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateUserSeatsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateUserSeatsRequestWithBody generates requests for UpdateUserSeats with any type of body
|
|
func NewUpdateUserSeatsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/seats", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateSetupIntentForInitialSubscriptionRequest calls the generic CreateSetupIntentForInitialSubscription builder with application/json body
|
|
func NewCreateSetupIntentForInitialSubscriptionRequest(server string, workspaceId string, body CreateSetupIntentForInitialSubscriptionJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateSetupIntentForInitialSubscriptionRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateSetupIntentForInitialSubscriptionRequestWithBody generates requests for CreateSetupIntentForInitialSubscription with any type of body
|
|
func NewCreateSetupIntentForInitialSubscriptionRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/setup-intent", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateSubscriptionRequest calls the generic CreateSubscription builder with application/json body
|
|
func NewCreateSubscriptionRequest(server string, workspaceId string, body CreateSubscriptionJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateSubscriptionRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateSubscriptionRequestWithBody generates requests for CreateSubscription with any type of body
|
|
func NewCreateSubscriptionRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/subscription/create", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateSubscriptionRequest calls the generic UpdateSubscription builder with application/json body
|
|
func NewUpdateSubscriptionRequest(server string, workspaceId string, body UpdateSubscriptionJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateSubscriptionRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateSubscriptionRequestWithBody generates requests for UpdateSubscription with any type of body
|
|
func NewUpdateSubscriptionRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/subscription/update", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpgradePreCheckRequest generates requests for UpgradePreCheck
|
|
func NewUpgradePreCheckRequest(server string, workspaceId string, params *UpgradePreCheckParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/subscription/upgrade-pre-check", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, params.Type); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteSubscriptionRequest calls the generic DeleteSubscription builder with application/json body
|
|
func NewDeleteSubscriptionRequest(server string, workspaceId string, body DeleteSubscriptionJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDeleteSubscriptionRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDeleteSubscriptionRequestWithBody generates requests for DeleteSubscription with any type of body
|
|
func NewDeleteSubscriptionRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/terminate-subscription", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewTerminateTrialRequest generates requests for TerminateTrial
|
|
func NewTerminateTrialRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/terminate-trial", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewStartTrialRequest generates requests for StartTrial
|
|
func NewStartTrialRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/trial", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewWasRegionalEverAllowedRequest generates requests for WasRegionalEverAllowed
|
|
func NewWasRegionalEverAllowedRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/payments/was-regional-ever-allowed", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewFindForUserAndPolicyRequest generates requests for FindForUserAndPolicy
|
|
func NewFindForUserAndPolicyRequest(server string, workspaceId string, policyId string, userId string, params *FindForUserAndPolicyParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/policies/%s/users/%s", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetClientsRequest generates requests for GetClients
|
|
func NewGetClientsRequest(server string, workspaceId string, params *GetClientsParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/project-picker/clients", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Search != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ExcludedProjects != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedProjects", runtime.ParamLocationQuery, *params.ExcludedProjects); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ExcludedTasks != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedTasks", runtime.ParamLocationQuery, *params.ExcludedTasks); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.UserId != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, *params.UserId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pickerOptions", runtime.ParamLocationQuery, params.PickerOptions); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if params.Archived != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetProjects3Request generates requests for GetProjects3
|
|
func NewGetProjects3Request(server string, workspaceId string, params *GetProjects3Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/project-picker/projects", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.ClientId != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clientId", runtime.ParamLocationQuery, *params.ClientId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Search != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ExcludedTasks != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedTasks", runtime.ParamLocationQuery, *params.ExcludedTasks); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ExcludedProjects != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedProjects", runtime.ParamLocationQuery, *params.ExcludedProjects); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.UserId != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, *params.UserId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Favorites != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "favorites", runtime.ParamLocationQuery, *params.Favorites); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Archived != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetProjectFavoritesRequest generates requests for GetProjectFavorites
|
|
func NewGetProjectFavoritesRequest(server string, workspaceId string, params *GetProjectFavoritesParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/project-picker/projects/favorites", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Search != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ExcludedTasks != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedTasks", runtime.ParamLocationQuery, *params.ExcludedTasks); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.UserId != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, *params.UserId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTasks21Request generates requests for GetTasks21
|
|
func NewGetTasks21Request(server string, workspaceId string, projectId string, params *GetTasks21Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/project-picker/projects/%s/tasks", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Search != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ExcludedTasks != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedTasks", runtime.ParamLocationQuery, *params.ExcludedTasks); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.UserId != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, *params.UserId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.TaskFilterEnabled != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "taskFilterEnabled", runtime.ParamLocationQuery, *params.TaskFilterEnabled); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRecalculateProjectStatus1Request generates requests for RecalculateProjectStatus1
|
|
func NewRecalculateProjectStatus1Request(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/project-status", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetProjectAndTaskRequest calls the generic GetProjectAndTask builder with application/json body
|
|
func NewGetProjectAndTaskRequest(server string, workspaceId string, body GetProjectAndTaskJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetProjectAndTaskRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetProjectAndTaskRequestWithBody generates requests for GetProjectAndTask with any type of body
|
|
func NewGetProjectAndTaskRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/project-task", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteMany2Request calls the generic DeleteMany2 builder with application/json body
|
|
func NewDeleteMany2Request(server string, workspaceId string, body DeleteMany2JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDeleteMany2RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDeleteMany2RequestWithBody generates requests for DeleteMany2 with any type of body
|
|
func NewDeleteMany2RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetProjects2Request generates requests for GetProjects2
|
|
func NewGetProjects2Request(server string, workspaceId string, params *GetProjects2Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.StrictNameSearch != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "strict-name-search", runtime.ParamLocationQuery, *params.StrictNameSearch); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Archived != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Billable != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "billable", runtime.ParamLocationQuery, *params.Billable); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Clients != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clients", runtime.ParamLocationQuery, *params.Clients); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ContainsClient != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contains-client", runtime.ParamLocationQuery, *params.ContainsClient); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ClientStatus != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "client-status", runtime.ParamLocationQuery, *params.ClientStatus); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Users != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "users", runtime.ParamLocationQuery, *params.Users); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ContainsUser != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contains-user", runtime.ParamLocationQuery, *params.ContainsUser); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.UserStatus != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user-status", runtime.ParamLocationQuery, *params.UserStatus); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.IsTemplate != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "is-template", runtime.ParamLocationQuery, *params.IsTemplate); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Hydrated != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hydrated", runtime.ParamLocationQuery, *params.Hydrated); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateMany1Request calls the generic UpdateMany1 builder with application/json body
|
|
func NewUpdateMany1Request(server string, workspaceId string, params *UpdateMany1Params, body UpdateMany1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateMany1RequestWithBody(server, workspaceId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateMany1RequestWithBody generates requests for UpdateMany1 with any type of body
|
|
func NewUpdateMany1RequestWithBody(server string, workspaceId string, params *UpdateMany1Params, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.TasksStatus != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tasks-status", runtime.ParamLocationQuery, *params.TasksStatus); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate12Request calls the generic Create12 builder with application/json body
|
|
func NewCreate12Request(server string, workspaceId string, body Create12JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate12RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate12RequestWithBody generates requests for Create12 with any type of body
|
|
func NewCreate12RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetFilteredProjectsCountRequest generates requests for GetFilteredProjectsCount
|
|
func NewGetFilteredProjectsCountRequest(server string, workspaceId string, params *GetFilteredProjectsCountParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/count", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Archived != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Billable != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "billable", runtime.ParamLocationQuery, *params.Billable); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Clients != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clients", runtime.ParamLocationQuery, *params.Clients); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ContainsClient != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contains-client", runtime.ParamLocationQuery, *params.ContainsClient); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ClientStatus != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "client-status", runtime.ParamLocationQuery, *params.ClientStatus); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Users != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "users", runtime.ParamLocationQuery, *params.Users); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ContainsUser != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contains-user", runtime.ParamLocationQuery, *params.ContainsUser); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.UserStatus != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user-status", runtime.ParamLocationQuery, *params.UserStatus); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetFilteredProjectsRequest calls the generic GetFilteredProjects builder with application/json body
|
|
func NewGetFilteredProjectsRequest(server string, workspaceId string, body GetFilteredProjectsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetFilteredProjectsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetFilteredProjectsRequestWithBody generates requests for GetFilteredProjects with any type of body
|
|
func NewGetFilteredProjectsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/filter", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateFromTemplateRequest calls the generic CreateFromTemplate builder with application/json body
|
|
func NewCreateFromTemplateRequest(server string, workspaceId string, body CreateFromTemplateJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateFromTemplateRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateFromTemplateRequestWithBody generates requests for CreateFromTemplate with any type of body
|
|
func NewCreateFromTemplateRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/from-template", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetProjectRequest calls the generic GetProject builder with application/json body
|
|
func NewGetProjectRequest(server string, workspaceId string, body GetProjectJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetProjectRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetProjectRequestWithBody generates requests for GetProject with any type of body
|
|
func NewGetProjectRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/ids", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetLastUsedProjectRequest generates requests for GetLastUsedProject
|
|
func NewGetLastUsedProjectRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/last-used", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewLastUsedProject1Request generates requests for LastUsedProject1
|
|
func NewLastUsedProject1Request(server string, workspaceId string, params *LastUsedProject1Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/lastUsed", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Type != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetProjectsListRequest generates requests for GetProjectsList
|
|
func NewGetProjectsListRequest(server string, workspaceId string, params *GetProjectsListParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/list", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.StrictNameSearch != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "strict-name-search", runtime.ParamLocationQuery, *params.StrictNameSearch); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Archived != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Billable != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "billable", runtime.ParamLocationQuery, *params.Billable); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Clients != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "clients", runtime.ParamLocationQuery, *params.Clients); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ContainsClient != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contains-client", runtime.ParamLocationQuery, *params.ContainsClient); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ClientStatus != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "client-status", runtime.ParamLocationQuery, *params.ClientStatus); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Users != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "users", runtime.ParamLocationQuery, *params.Users); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ContainsUser != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contains-user", runtime.ParamLocationQuery, *params.ContainsUser); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.UserStatus != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "user-status", runtime.ParamLocationQuery, *params.UserStatus); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.IsTemplate != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "is-template", runtime.ParamLocationQuery, *params.IsTemplate); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Hydrated != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hydrated", runtime.ParamLocationQuery, *params.Hydrated); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewHasManagerRole1Request generates requests for HasManagerRole1
|
|
func NewHasManagerRole1Request(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/manager", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetProjectsForReportFilterRequest calls the generic GetProjectsForReportFilter builder with application/json body
|
|
func NewGetProjectsForReportFilterRequest(server string, workspaceId string, body GetProjectsForReportFilterJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetProjectsForReportFilterRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetProjectsForReportFilterRequestWithBody generates requests for GetProjectsForReportFilter with any type of body
|
|
func NewGetProjectsForReportFilterRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/report-filters", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetProjectIdsForReportFilterRequest calls the generic GetProjectIdsForReportFilter builder with application/json body
|
|
func NewGetProjectIdsForReportFilterRequest(server string, workspaceId string, body GetProjectIdsForReportFilterJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetProjectIdsForReportFilterRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetProjectIdsForReportFilterRequestWithBody generates requests for GetProjectIdsForReportFilter with any type of body
|
|
func NewGetProjectIdsForReportFilterRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/report-filters/ids", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTasksByIdsRequest calls the generic GetTasksByIds builder with application/json body
|
|
func NewGetTasksByIdsRequest(server string, workspaceId string, body GetTasksByIdsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetTasksByIdsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetTasksByIdsRequestWithBody generates requests for GetTasksByIds with any type of body
|
|
func NewGetTasksByIdsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/taskIds", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetAllTasksRequest calls the generic GetAllTasks builder with application/json body
|
|
func NewGetAllTasksRequest(server string, workspaceId string, body GetAllTasksJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetAllTasksRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetAllTasksRequestWithBody generates requests for GetAllTasks with any type of body
|
|
func NewGetAllTasksRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/tasks", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTasksRequest calls the generic GetTasks builder with application/json body
|
|
func NewGetTasksRequest(server string, workspaceId string, params *GetTasksParams, body GetTasksJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetTasksRequestWithBody(server, workspaceId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetTasksRequestWithBody generates requests for GetTasks with any type of body
|
|
func NewGetTasksRequestWithBody(server string, workspaceId string, params *GetTasksParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/tasks-pagination", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "pageSize", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortOrder", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortColumn", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Search != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTasksForReportFilterRequest calls the generic GetTasksForReportFilter builder with application/json body
|
|
func NewGetTasksForReportFilterRequest(server string, workspaceId string, body GetTasksForReportFilterJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetTasksForReportFilterRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetTasksForReportFilterRequestWithBody generates requests for GetTasksForReportFilter with any type of body
|
|
func NewGetTasksForReportFilterRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/tasks/report-filters", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTaskIdsForReportFilterRequest calls the generic GetTaskIdsForReportFilter builder with application/json body
|
|
func NewGetTaskIdsForReportFilterRequest(server string, workspaceId string, body GetTaskIdsForReportFilterJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetTaskIdsForReportFilterRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetTaskIdsForReportFilterRequestWithBody generates requests for GetTaskIdsForReportFilter with any type of body
|
|
func NewGetTaskIdsForReportFilterRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/tasks/report-filters/ids", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTimeOffPoliciesAndHolidaysWithProjectsRequest calls the generic GetTimeOffPoliciesAndHolidaysWithProjects builder with application/json body
|
|
func NewGetTimeOffPoliciesAndHolidaysWithProjectsRequest(server string, workspaceId string, body GetTimeOffPoliciesAndHolidaysWithProjectsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetTimeOffPoliciesAndHolidaysWithProjectsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetTimeOffPoliciesAndHolidaysWithProjectsRequestWithBody generates requests for GetTimeOffPoliciesAndHolidaysWithProjects with any type of body
|
|
func NewGetTimeOffPoliciesAndHolidaysWithProjectsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/time-off-policies-holidays", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetLastUsedOfUserRequest generates requests for GetLastUsedOfUser
|
|
func NewGetLastUsedOfUserRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/users/%s/last-used", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetPermissionsToUserForProjectsRequest calls the generic GetPermissionsToUserForProjects builder with application/json body
|
|
func NewGetPermissionsToUserForProjectsRequest(server string, workspaceId string, userId string, body GetPermissionsToUserForProjectsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetPermissionsToUserForProjectsRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetPermissionsToUserForProjectsRequestWithBody generates requests for GetPermissionsToUserForProjects with any type of body
|
|
func NewGetPermissionsToUserForProjectsRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/users/%s/permissions", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete13Request generates requests for Delete13
|
|
func NewDelete13Request(server string, workspaceId string, projectId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetProject1Request generates requests for GetProject1
|
|
func NewGetProject1Request(server string, workspaceId string, projectId string, params *GetProject1Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Hydrated != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hydrated", runtime.ParamLocationQuery, *params.Hydrated); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdate14Request calls the generic Update14 builder with application/json body
|
|
func NewUpdate14Request(server string, workspaceId string, projectId string, params *Update14Params, body Update14JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdate14RequestWithBody(server, workspaceId, projectId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdate14RequestWithBody generates requests for Update14 with any type of body
|
|
func NewUpdate14RequestWithBody(server string, workspaceId string, projectId string, params *Update14Params, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.TasksStatus != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tasks-status", runtime.ParamLocationQuery, *params.TasksStatus); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdate6Request calls the generic Update6 builder with application/json body
|
|
func NewUpdate6Request(server string, workspaceId string, projectId string, params *Update6Params, body Update6JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdate6RequestWithBody(server, workspaceId, projectId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdate6RequestWithBody generates requests for Update6 with any type of body
|
|
func NewUpdate6RequestWithBody(server string, workspaceId string, projectId string, params *Update6Params, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.TasksStatus != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tasks-status", runtime.ParamLocationQuery, *params.TasksStatus); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewSetCostRate1Request calls the generic SetCostRate1 builder with application/json body
|
|
func NewSetCostRate1Request(server string, workspaceId string, projectId string, body SetCostRate1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewSetCostRate1RequestWithBody(server, workspaceId, projectId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewSetCostRate1RequestWithBody generates requests for SetCostRate1 with any type of body
|
|
func NewSetCostRate1RequestWithBody(server string, workspaceId string, projectId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/cost-rate", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateEstimateRequest calls the generic UpdateEstimate builder with application/json body
|
|
func NewUpdateEstimateRequest(server string, workspaceId string, projectId string, body UpdateEstimateJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateEstimateRequestWithBody(server, workspaceId, projectId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateEstimateRequestWithBody generates requests for UpdateEstimate with any type of body
|
|
func NewUpdateEstimateRequestWithBody(server string, workspaceId string, projectId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/estimate", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewSetHourlyRate1Request calls the generic SetHourlyRate1 builder with application/json body
|
|
func NewSetHourlyRate1Request(server string, workspaceId string, projectId string, body SetHourlyRate1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewSetHourlyRate1RequestWithBody(server, workspaceId, projectId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewSetHourlyRate1RequestWithBody generates requests for SetHourlyRate1 with any type of body
|
|
func NewSetHourlyRate1RequestWithBody(server string, workspaceId string, projectId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/hourly-rate", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewHasManagerRoleRequest generates requests for HasManagerRole
|
|
func NewHasManagerRoleRequest(server string, workspaceId string, projectId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/manager", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetAuthsForProjectRequest generates requests for GetAuthsForProject
|
|
func NewGetAuthsForProjectRequest(server string, workspaceId string, projectId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/permissions", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRecalculateProjectStatusRequest generates requests for RecalculateProjectStatus
|
|
func NewRecalculateProjectStatusRequest(server string, workspaceId string, projectId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/project-status", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTasks1Request generates requests for GetTasks1
|
|
func NewGetTasks1Request(server string, workspaceId string, projectId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate13Request calls the generic Create13 builder with application/json body
|
|
func NewCreate13Request(server string, workspaceId string, projectId string, params *Create13Params, body Create13JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate13RequestWithBody(server, workspaceId, projectId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate13RequestWithBody generates requests for Create13 with any type of body
|
|
func NewCreate13RequestWithBody(server string, workspaceId string, projectId string, params *Create13Params, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.ContainsAssignee != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contains-assignee", runtime.ParamLocationQuery, *params.ContainsAssignee); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTasksAssignedToUserRequest generates requests for GetTasksAssignedToUser
|
|
func NewGetTasksAssignedToUserRequest(server string, workspaceId string, projectId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks/assigned", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTimeOffPoliciesAndHolidaysWithTasksRequest calls the generic GetTimeOffPoliciesAndHolidaysWithTasks builder with application/json body
|
|
func NewGetTimeOffPoliciesAndHolidaysWithTasksRequest(server string, workspaceId string, projectId string, body GetTimeOffPoliciesAndHolidaysWithTasksJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetTimeOffPoliciesAndHolidaysWithTasksRequestWithBody(server, workspaceId, projectId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetTimeOffPoliciesAndHolidaysWithTasksRequestWithBody generates requests for GetTimeOffPoliciesAndHolidaysWithTasks with any type of body
|
|
func NewGetTimeOffPoliciesAndHolidaysWithTasksRequestWithBody(server string, workspaceId string, projectId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks/time-off-policies-holidays", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdate7Request calls the generic Update7 builder with application/json body
|
|
func NewUpdate7Request(server string, workspaceId string, projectId string, id string, params *Update7Params, body Update7JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdate7RequestWithBody(server, workspaceId, projectId, id, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdate7RequestWithBody generates requests for Update7 with any type of body
|
|
func NewUpdate7RequestWithBody(server string, workspaceId string, projectId string, id string, params *Update7Params, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks/%s", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.ContainsAssignee != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "contains-assignee", runtime.ParamLocationQuery, *params.ContainsAssignee); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.MembershipStatus != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "membership-status", runtime.ParamLocationQuery, *params.MembershipStatus); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewSetCostRateRequest calls the generic SetCostRate builder with application/json body
|
|
func NewSetCostRateRequest(server string, workspaceId string, projectId string, id string, body SetCostRateJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewSetCostRateRequestWithBody(server, workspaceId, projectId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewSetCostRateRequestWithBody generates requests for SetCostRate with any type of body
|
|
func NewSetCostRateRequestWithBody(server string, workspaceId string, projectId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks/%s/cost-rate", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewSetHourlyRateRequest calls the generic SetHourlyRate builder with application/json body
|
|
func NewSetHourlyRateRequest(server string, workspaceId string, projectId string, id string, body SetHourlyRateJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewSetHourlyRateRequestWithBody(server, workspaceId, projectId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewSetHourlyRateRequestWithBody generates requests for SetHourlyRate with any type of body
|
|
func NewSetHourlyRateRequestWithBody(server string, workspaceId string, projectId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks/%s/hourly-rate", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete14Request generates requests for Delete14
|
|
func NewDelete14Request(server string, workspaceId string, projectId string, taskId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "taskId", runtime.ParamLocationPath, taskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks/%s", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTaskAssignedToUserRequest generates requests for GetTaskAssignedToUser
|
|
func NewGetTaskAssignedToUserRequest(server string, workspaceId string, projectId string, taskId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "taskId", runtime.ParamLocationPath, taskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tasks/%s/assigned", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewAddUsers1Request calls the generic AddUsers1 builder with application/json body
|
|
func NewAddUsers1Request(server string, workspaceId string, projectId string, body AddUsers1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewAddUsers1RequestWithBody(server, workspaceId, projectId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewAddUsers1RequestWithBody generates requests for AddUsers1 with any type of body
|
|
func NewAddUsers1RequestWithBody(server string, workspaceId string, projectId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/team", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetStatusRequest generates requests for GetStatus
|
|
func NewGetStatusRequest(server string, workspaceId string, projectId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/tracked", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRemoveUserGroupMembershipRequest generates requests for RemoveUserGroupMembership
|
|
func NewRemoveUserGroupMembershipRequest(server string, workspaceId string, projectId string, usergroupId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "usergroupId", runtime.ParamLocationPath, usergroupId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/userGroups/%s/membership", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsers4Request generates requests for GetUsers4
|
|
func NewGetUsers4Request(server string, workspaceId string, projectId string, params *GetUsers4Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/users", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Memberships != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "memberships", runtime.ParamLocationQuery, *params.Memberships); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewAddUsersCostRate1Request calls the generic AddUsersCostRate1 builder with application/json body
|
|
func NewAddUsersCostRate1Request(server string, workspaceId string, projectId string, userId string, body AddUsersCostRate1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewAddUsersCostRate1RequestWithBody(server, workspaceId, projectId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewAddUsersCostRate1RequestWithBody generates requests for AddUsersCostRate1 with any type of body
|
|
func NewAddUsersCostRate1RequestWithBody(server string, workspaceId string, projectId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/users/%s/cost-rate", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewAddUsersHourlyRate1Request calls the generic AddUsersHourlyRate1 builder with application/json body
|
|
func NewAddUsersHourlyRate1Request(server string, workspaceId string, projectId string, userId string, body AddUsersHourlyRate1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewAddUsersHourlyRate1RequestWithBody(server, workspaceId, projectId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewAddUsersHourlyRate1RequestWithBody generates requests for AddUsersHourlyRate1 with any type of body
|
|
func NewAddUsersHourlyRate1RequestWithBody(server string, workspaceId string, projectId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/users/%s/hourly-rate", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRemoveUserMembershipRequest generates requests for RemoveUserMembership
|
|
func NewRemoveUserMembershipRequest(server string, workspaceId string, projectId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/users/%s/membership", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRemovePermissionsToUserRequest calls the generic RemovePermissionsToUser builder with application/json body
|
|
func NewRemovePermissionsToUserRequest(server string, workspaceId string, projectId string, userId string, body RemovePermissionsToUserJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewRemovePermissionsToUserRequestWithBody(server, workspaceId, projectId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewRemovePermissionsToUserRequestWithBody generates requests for RemovePermissionsToUser with any type of body
|
|
func NewRemovePermissionsToUserRequestWithBody(server string, workspaceId string, projectId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/users/%s/permissions", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetPermissionsToUser1Request generates requests for GetPermissionsToUser1
|
|
func NewGetPermissionsToUser1Request(server string, workspaceId string, projectId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/users/%s/permissions", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewAddPermissionsToUserRequest calls the generic AddPermissionsToUser builder with application/json body
|
|
func NewAddPermissionsToUserRequest(server string, workspaceId string, projectId string, userId string, body AddPermissionsToUserJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewAddPermissionsToUserRequestWithBody(server, workspaceId, projectId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewAddPermissionsToUserRequestWithBody generates requests for AddPermissionsToUser with any type of body
|
|
func NewAddPermissionsToUserRequestWithBody(server string, workspaceId string, projectId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/projects/%s/users/%s/permissions", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDisconnectRequest generates requests for Disconnect
|
|
func NewDisconnectRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/pumble-integration", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewConnectRequest calls the generic Connect builder with application/json body
|
|
func NewConnectRequest(server string, workspaceId string, body ConnectJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewConnectRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewConnectRequestWithBody generates requests for Connect with any type of body
|
|
func NewConnectRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/pumble-integration", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewConnect1Request generates requests for Connect1
|
|
func NewConnect1Request(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/pumble-integration/connected", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewSyncClientsRequest calls the generic SyncClients builder with application/json body
|
|
func NewSyncClientsRequest(server string, workspaceId string, body SyncClientsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewSyncClientsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewSyncClientsRequestWithBody generates requests for SyncClients with any type of body
|
|
func NewSyncClientsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/quickbooks-sync/clients", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewSyncProjectsRequest calls the generic SyncProjects builder with application/json body
|
|
func NewSyncProjectsRequest(server string, workspaceId string, body SyncProjectsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewSyncProjectsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewSyncProjectsRequestWithBody generates requests for SyncProjects with any type of body
|
|
func NewSyncProjectsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/quickbooks-sync/projects", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateProjectsRequest calls the generic UpdateProjects builder with application/json body
|
|
func NewUpdateProjectsRequest(server string, workspaceId string, body UpdateProjectsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateProjectsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateProjectsRequestWithBody generates requests for UpdateProjects with any type of body
|
|
func NewUpdateProjectsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/quickbooks-sync/projects", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetAllRegionsForUserAccountRequest generates requests for GetAllRegionsForUserAccount
|
|
func NewGetAllRegionsForUserAccountRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/regions", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewListOfWorkspaceRequest generates requests for ListOfWorkspace
|
|
func NewListOfWorkspaceRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/reminders", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate11Request calls the generic Create11 builder with application/json body
|
|
func NewCreate11Request(server string, workspaceId string, body Create11JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate11RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate11RequestWithBody generates requests for Create11 with any type of body
|
|
func NewCreate11RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/reminders", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewOfWorkspaceIdAndUserIdRequest generates requests for OfWorkspaceIdAndUserId
|
|
func NewOfWorkspaceIdAndUserIdRequest(server string, workspaceId string, params *OfWorkspaceIdAndUserIdParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/reminders/targets", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Hydrated != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hydrated", runtime.ParamLocationQuery, *params.Hydrated); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete12Request generates requests for Delete12
|
|
func NewDelete12Request(server string, workspaceId string, reminderId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "reminderId", runtime.ParamLocationPath, reminderId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/reminders/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdate5Request calls the generic Update5 builder with application/json body
|
|
func NewUpdate5Request(server string, workspaceId string, reminderId string, body Update5JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdate5RequestWithBody(server, workspaceId, reminderId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdate5RequestWithBody generates requests for Update5 with any type of body
|
|
func NewUpdate5RequestWithBody(server string, workspaceId string, reminderId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "reminderId", runtime.ParamLocationPath, reminderId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/reminders/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetDashboardInfoRequest calls the generic GetDashboardInfo builder with application/json body
|
|
func NewGetDashboardInfoRequest(server string, workspaceId string, body GetDashboardInfoJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetDashboardInfoRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetDashboardInfoRequestWithBody generates requests for GetDashboardInfo with any type of body
|
|
func NewGetDashboardInfoRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/reports/dashboard-info", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetMyMostTrackedRequest generates requests for GetMyMostTracked
|
|
func NewGetMyMostTrackedRequest(server string, workspaceId string, params *GetMyMostTrackedParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/reports/mostTracked", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Count != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "count", runtime.ParamLocationQuery, *params.Count); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Start != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.End != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTeamActivitiesRequest generates requests for GetTeamActivities
|
|
func NewGetTeamActivitiesRequest(server string, workspaceId string, params *GetTeamActivitiesParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/reports/team-activities", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Start != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.End != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Type != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetAmountPreviewRequest generates requests for GetAmountPreview
|
|
func NewGetAmountPreviewRequest(server string, workspaceId string, params *GetAmountPreviewParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/amount-preview", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, params.UserId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectId", runtime.ParamLocationQuery, params.ProjectId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "taskId", runtime.ParamLocationQuery, params.TaskId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "totalHours", runtime.ParamLocationQuery, params.TotalHours); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "billable", runtime.ParamLocationQuery, params.Billable); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetDraftAssignmentsCountRequest calls the generic GetDraftAssignmentsCount builder with application/json body
|
|
func NewGetDraftAssignmentsCountRequest(server string, workspaceId string, body GetDraftAssignmentsCountJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetDraftAssignmentsCountRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetDraftAssignmentsCountRequestWithBody generates requests for GetDraftAssignmentsCount with any type of body
|
|
func NewGetDraftAssignmentsCountRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/draft-filter/count", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetProjectTotalsRequest generates requests for GetProjectTotals
|
|
func NewGetProjectTotalsRequest(server string, workspaceId string, params *GetProjectTotalsParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/projects/totals", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Search != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetFilteredProjectTotalsRequest calls the generic GetFilteredProjectTotals builder with application/json body
|
|
func NewGetFilteredProjectTotalsRequest(server string, workspaceId string, body GetFilteredProjectTotalsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetFilteredProjectTotalsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetFilteredProjectTotalsRequestWithBody generates requests for GetFilteredProjectTotals with any type of body
|
|
func NewGetFilteredProjectTotalsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/projects/totals", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetProjectTotalsForSingleProjectRequest generates requests for GetProjectTotalsForSingleProject
|
|
func NewGetProjectTotalsForSingleProjectRequest(server string, workspaceId string, projectId string, params *GetProjectTotalsForSingleProjectParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/projects/totals/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetProjectsForUserRequest generates requests for GetProjectsForUser
|
|
func NewGetProjectsForUserRequest(server string, workspaceId string, projectId string, userId string, params *GetProjectsForUserParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/projects/%s/users/%s", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPublishAssignmentsRequest calls the generic PublishAssignments builder with application/json body
|
|
func NewPublishAssignmentsRequest(server string, workspaceId string, body PublishAssignmentsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPublishAssignmentsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPublishAssignmentsRequestWithBody generates requests for PublishAssignments with any type of body
|
|
func NewPublishAssignmentsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/publish", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateRecurringRequest calls the generic CreateRecurring builder with application/json body
|
|
func NewCreateRecurringRequest(server string, workspaceId string, body CreateRecurringJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateRecurringRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateRecurringRequestWithBody generates requests for CreateRecurring with any type of body
|
|
func NewCreateRecurringRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/recurring", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete11Request generates requests for Delete11
|
|
func NewDelete11Request(server string, workspaceId string, assignmentId string, params *Delete11Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "assignmentId", runtime.ParamLocationPath, assignmentId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/recurring/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.SeriesUpdateOption != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seriesUpdateOption", runtime.ParamLocationQuery, *params.SeriesUpdateOption); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewEditRecurringRequest calls the generic EditRecurring builder with application/json body
|
|
func NewEditRecurringRequest(server string, workspaceId string, assignmentId string, body EditRecurringJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewEditRecurringRequestWithBody(server, workspaceId, assignmentId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewEditRecurringRequestWithBody generates requests for EditRecurring with any type of body
|
|
func NewEditRecurringRequestWithBody(server string, workspaceId string, assignmentId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "assignmentId", runtime.ParamLocationPath, assignmentId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/recurring/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewEditPeriodForRecurringRequest calls the generic EditPeriodForRecurring builder with application/json body
|
|
func NewEditPeriodForRecurringRequest(server string, workspaceId string, assignmentId string, body EditPeriodForRecurringJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewEditPeriodForRecurringRequestWithBody(server, workspaceId, assignmentId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewEditPeriodForRecurringRequestWithBody generates requests for EditPeriodForRecurring with any type of body
|
|
func NewEditPeriodForRecurringRequestWithBody(server string, workspaceId string, assignmentId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "assignmentId", runtime.ParamLocationPath, assignmentId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/recurring/%s/period", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewEditRecurringPeriodRequest calls the generic EditRecurringPeriod builder with application/json body
|
|
func NewEditRecurringPeriodRequest(server string, workspaceId string, assignmentId string, body EditRecurringPeriodJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewEditRecurringPeriodRequestWithBody(server, workspaceId, assignmentId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewEditRecurringPeriodRequestWithBody generates requests for EditRecurringPeriod with any type of body
|
|
func NewEditRecurringPeriodRequestWithBody(server string, workspaceId string, assignmentId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "assignmentId", runtime.ParamLocationPath, assignmentId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/series/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUserTotalsRequest calls the generic GetUserTotals builder with application/json body
|
|
func NewGetUserTotalsRequest(server string, workspaceId string, body GetUserTotalsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetUserTotalsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetUserTotalsRequestWithBody generates requests for GetUserTotals with any type of body
|
|
func NewGetUserTotalsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/user-filter/totals", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetAssignmentsForUserRequest generates requests for GetAssignmentsForUser
|
|
func NewGetAssignmentsForUserRequest(server string, workspaceId string, userId string, params *GetAssignmentsForUserParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/user/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "published", runtime.ParamLocationQuery, params.Published); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetFilteredAssignmentsForUserRequest calls the generic GetFilteredAssignmentsForUser builder with application/json body
|
|
func NewGetFilteredAssignmentsForUserRequest(server string, workspaceId string, userId string, body GetFilteredAssignmentsForUserJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetFilteredAssignmentsForUserRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetFilteredAssignmentsForUserRequestWithBody generates requests for GetFilteredAssignmentsForUser with any type of body
|
|
func NewGetFilteredAssignmentsForUserRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/user/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsers3Request generates requests for GetUsers3
|
|
func NewGetUsers3Request(server string, workspaceId string, projectId string, params *GetUsers3Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/users/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Exclude != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "exclude", runtime.ParamLocationQuery, *params.Exclude); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.StatusFilter != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statusFilter", runtime.ParamLocationQuery, *params.StatusFilter); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetProjects1Request generates requests for GetProjects1
|
|
func NewGetProjects1Request(server string, workspaceId string, userId string, params *GetProjects1Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/users/%s/projects", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Exclude != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "exclude", runtime.ParamLocationQuery, *params.Exclude); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.StatusFilter != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statusFilter", runtime.ParamLocationQuery, *params.StatusFilter); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRemindToPublishRequest generates requests for RemindToPublish
|
|
func NewRemindToPublishRequest(server string, workspaceId string, userId string, params *RemindToPublishParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/users/%s/remind-to-publish", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "startDate", runtime.ParamLocationQuery, params.StartDate); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "endDate", runtime.ParamLocationQuery, params.EndDate); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUserTotalsForSingleUserRequest generates requests for GetUserTotalsForSingleUser
|
|
func NewGetUserTotalsForSingleUserRequest(server string, workspaceId string, userId string, params *GetUserTotalsForSingleUserParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/users/%s/totals", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGet3Request generates requests for Get3
|
|
func NewGet3Request(server string, workspaceId string, assignmentId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "assignmentId", runtime.ParamLocationPath, assignmentId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCopyAssignmentRequest calls the generic CopyAssignment builder with application/json body
|
|
func NewCopyAssignmentRequest(server string, workspaceId string, assignmentId string, body CopyAssignmentJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCopyAssignmentRequestWithBody(server, workspaceId, assignmentId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCopyAssignmentRequestWithBody generates requests for CopyAssignment with any type of body
|
|
func NewCopyAssignmentRequestWithBody(server string, workspaceId string, assignmentId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "assignmentId", runtime.ParamLocationPath, assignmentId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/%s/copy", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewSplitAssignmentRequest calls the generic SplitAssignment builder with application/json body
|
|
func NewSplitAssignmentRequest(server string, workspaceId string, assignmentId string, body SplitAssignmentJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewSplitAssignmentRequestWithBody(server, workspaceId, assignmentId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewSplitAssignmentRequestWithBody generates requests for SplitAssignment with any type of body
|
|
func NewSplitAssignmentRequestWithBody(server string, workspaceId string, assignmentId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "assignmentId", runtime.ParamLocationPath, assignmentId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/%s/split", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewShiftScheduleRequest calls the generic ShiftSchedule builder with application/json body
|
|
func NewShiftScheduleRequest(server string, workspaceId string, projectId string, body ShiftScheduleJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewShiftScheduleRequestWithBody(server, workspaceId, projectId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewShiftScheduleRequestWithBody generates requests for ShiftSchedule with any type of body
|
|
func NewShiftScheduleRequestWithBody(server string, workspaceId string, projectId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/assignments/%s/shift", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewHideProjectRequest generates requests for HideProject
|
|
func NewHideProjectRequest(server string, workspaceId string, projectId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/excluding/projects/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewShowProjectRequest generates requests for ShowProject
|
|
func NewShowProjectRequest(server string, workspaceId string, projectId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/excluding/projects/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewHideUserRequest generates requests for HideUser
|
|
func NewHideUserRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/excluding/users/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewShowUserRequest generates requests for ShowUser
|
|
func NewShowUserRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/excluding/users/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate10Request calls the generic Create10 builder with application/json body
|
|
func NewCreate10Request(server string, workspaceId string, body Create10JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate10RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate10RequestWithBody generates requests for Create10 with any type of body
|
|
func NewCreate10RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/milestones", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete10Request generates requests for Delete10
|
|
func NewDelete10Request(server string, workspaceId string, milestoneId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "milestoneId", runtime.ParamLocationPath, milestoneId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/milestones/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGet2Request generates requests for Get2
|
|
func NewGet2Request(server string, workspaceId string, milestoneId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "milestoneId", runtime.ParamLocationPath, milestoneId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/milestones/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewEdit1Request calls the generic Edit1 builder with application/json body
|
|
func NewEdit1Request(server string, workspaceId string, milestoneId string, body Edit1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewEdit1RequestWithBody(server, workspaceId, milestoneId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewEdit1RequestWithBody generates requests for Edit1 with any type of body
|
|
func NewEdit1RequestWithBody(server string, workspaceId string, milestoneId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "milestoneId", runtime.ParamLocationPath, milestoneId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/milestones/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewEditDateRequest calls the generic EditDate builder with application/json body
|
|
func NewEditDateRequest(server string, workspaceId string, milestoneId string, body EditDateJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewEditDateRequestWithBody(server, workspaceId, milestoneId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewEditDateRequestWithBody generates requests for EditDate with any type of body
|
|
func NewEditDateRequestWithBody(server string, workspaceId string, milestoneId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "milestoneId", runtime.ParamLocationPath, milestoneId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/milestones/%s/date", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetProjectsRequest generates requests for GetProjects
|
|
func NewGetProjectsRequest(server string, workspaceId string, params *GetProjectsParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/projects", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, params.UserId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if params.Search != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.IncludeHidden != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "includeHidden", runtime.ParamLocationQuery, *params.IncludeHidden); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsers2Request generates requests for GetUsers2
|
|
func NewGetUsers2Request(server string, workspaceId string, params *GetUsers2Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/users", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectId", runtime.ParamLocationQuery, params.ProjectId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if params.TaskId != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "taskId", runtime.ParamLocationQuery, *params.TaskId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Search != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.IncludeHidden != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "includeHidden", runtime.ParamLocationQuery, *params.IncludeHidden); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if params.Statuses != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsersAssignedToProjectRequest generates requests for GetUsersAssignedToProject
|
|
func NewGetUsersAssignedToProjectRequest(server string, workspaceId string, projectId string, params *GetUsersAssignedToProjectParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/scheduling/users/project/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "taskId", runtime.ParamLocationQuery, params.TaskId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if params.Search != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.IncludeHidden != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "includeHidden", runtime.ParamLocationQuery, *params.IncludeHidden); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if params.Statuses != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "statuses", runtime.ParamLocationQuery, *params.Statuses); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Memberships != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "memberships", runtime.ParamLocationQuery, *params.Memberships); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetSidebarConfigRequest generates requests for GetSidebarConfig
|
|
func NewGetSidebarConfigRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/sidebar/users/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateSidebarRequest calls the generic UpdateSidebar builder with application/json body
|
|
func NewUpdateSidebarRequest(server string, workspaceId string, userId string, body UpdateSidebarJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateSidebarRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateSidebarRequestWithBody generates requests for UpdateSidebar with any type of body
|
|
func NewUpdateSidebarRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/sidebar/users/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewFilterUsersByStatusRequest calls the generic FilterUsersByStatus builder with application/json body
|
|
func NewFilterUsersByStatusRequest(server string, workspaceId string, params *FilterUsersByStatusParams, body FilterUsersByStatusJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewFilterUsersByStatusRequestWithBody(server, workspaceId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewFilterUsersByStatusRequestWithBody generates requests for FilterUsersByStatus with any type of body
|
|
func NewFilterUsersByStatusRequestWithBody(server string, workspaceId string, params *FilterUsersByStatusParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/specific-member/users/status", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete9Request calls the generic Delete9 builder with application/json body
|
|
func NewDelete9Request(server string, workspaceId string, body Delete9JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDelete9RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDelete9RequestWithBody generates requests for Delete9 with any type of body
|
|
func NewDelete9RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/stopwatch", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewStopRequest calls the generic Stop builder with application/json body
|
|
func NewStopRequest(server string, workspaceId string, body StopJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewStopRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewStopRequestWithBody generates requests for Stop with any type of body
|
|
func NewStopRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/stopwatch", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewStartRequest calls the generic Start builder with application/json body
|
|
func NewStartRequest(server string, workspaceId string, params *StartParams, body StartJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewStartRequestWithBody(server, workspaceId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewStartRequestWithBody generates requests for Start with any type of body
|
|
func NewStartRequestWithBody(server string, workspaceId string, params *StartParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/stopwatch", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.TimeEntryId != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "timeEntryId", runtime.ParamLocationQuery, *params.TimeEntryId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.AssignmentId != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "assignmentId", runtime.ParamLocationQuery, *params.AssignmentId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
if params != nil {
|
|
|
|
if params.AppName != nil {
|
|
var headerParam0 string
|
|
|
|
headerParam0, err = runtime.StyleParamWithLocation("simple", false, "App-Name", runtime.ParamLocationHeader, *params.AppName)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("App-Name", headerParam0)
|
|
}
|
|
|
|
if params.RequestId != nil {
|
|
var headerParam1 string
|
|
|
|
headerParam1, err = runtime.StyleParamWithLocation("simple", false, "Request-Id", runtime.ParamLocationHeader, *params.RequestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("Request-Id", headerParam1)
|
|
}
|
|
|
|
if params.Signature != nil {
|
|
var headerParam2 string
|
|
|
|
headerParam2, err = runtime.StyleParamWithLocation("simple", false, "Signature", runtime.ParamLocationHeader, *params.Signature)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("Signature", headerParam2)
|
|
}
|
|
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteMany1Request calls the generic DeleteMany1 builder with application/json body
|
|
func NewDeleteMany1Request(server string, workspaceId string, body DeleteMany1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDeleteMany1RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDeleteMany1RequestWithBody generates requests for DeleteMany1 with any type of body
|
|
func NewDeleteMany1RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/tags", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTagsRequest generates requests for GetTags
|
|
func NewGetTagsRequest(server string, workspaceId string, params *GetTagsParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/tags", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.StrictNameSearch != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "strict-name-search", runtime.ParamLocationQuery, *params.StrictNameSearch); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ExcludedIds != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Archived != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "archived", runtime.ParamLocationQuery, *params.Archived); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateManyRequest calls the generic UpdateMany builder with application/json body
|
|
func NewUpdateManyRequest(server string, workspaceId string, body UpdateManyJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateManyRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateManyRequestWithBody generates requests for UpdateMany with any type of body
|
|
func NewUpdateManyRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/tags", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate9Request calls the generic Create9 builder with application/json body
|
|
func NewCreate9Request(server string, workspaceId string, body Create9JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate9RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate9RequestWithBody generates requests for Create9 with any type of body
|
|
func NewCreate9RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/tags", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewConnectedToApprovedEntriesRequest calls the generic ConnectedToApprovedEntries builder with application/json body
|
|
func NewConnectedToApprovedEntriesRequest(server string, workspaceId string, body ConnectedToApprovedEntriesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewConnectedToApprovedEntriesRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewConnectedToApprovedEntriesRequestWithBody generates requests for ConnectedToApprovedEntries with any type of body
|
|
func NewConnectedToApprovedEntriesRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/tags/connected-to-approved-entries", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTagsOfIdsRequest calls the generic GetTagsOfIds builder with application/json body
|
|
func NewGetTagsOfIdsRequest(server string, workspaceId string, body GetTagsOfIdsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetTagsOfIdsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetTagsOfIdsRequestWithBody generates requests for GetTagsOfIds with any type of body
|
|
func NewGetTagsOfIdsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/tags/ids", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTagIdsByNameAndStatusRequest generates requests for GetTagIdsByNameAndStatus
|
|
func NewGetTagIdsByNameAndStatusRequest(server string, workspaceId string, params *GetTagIdsByNameAndStatusParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/tags/report-filters/ids", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete8Request generates requests for Delete8
|
|
func NewDelete8Request(server string, workspaceId string, tagId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagId", runtime.ParamLocationPath, tagId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/tags/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdate4Request calls the generic Update4 builder with application/json body
|
|
func NewUpdate4Request(server string, workspaceId string, tagId string, body Update4JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdate4RequestWithBody(server, workspaceId, tagId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdate4RequestWithBody generates requests for Update4 with any type of body
|
|
func NewUpdate4RequestWithBody(server string, workspaceId string, tagId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "tagId", runtime.ParamLocationPath, tagId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/tags/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTemplatesRequest generates requests for GetTemplates
|
|
func NewGetTemplatesRequest(server string, workspaceId string, params *GetTemplatesParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/templates", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.RemoveInactivePairs != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remove-inactive-pairs", runtime.ParamLocationQuery, *params.RemoveInactivePairs); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.WeekStart != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "week-start", runtime.ParamLocationQuery, *params.WeekStart); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate8Request calls the generic Create8 builder with application/json body
|
|
func NewCreate8Request(server string, workspaceId string, body Create8JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate8RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate8RequestWithBody generates requests for Create8 with any type of body
|
|
func NewCreate8RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/templates", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete7Request generates requests for Delete7
|
|
func NewDelete7Request(server string, workspaceId string, templateId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "templateId", runtime.ParamLocationPath, templateId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/templates/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTemplateRequest generates requests for GetTemplate
|
|
func NewGetTemplateRequest(server string, workspaceId string, templateId string, params *GetTemplateParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "templateId", runtime.ParamLocationPath, templateId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/templates/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.RemoveInactivePairs != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "remove-inactive-pairs", runtime.ParamLocationQuery, *params.RemoveInactivePairs); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdate13Request calls the generic Update13 builder with application/json body
|
|
func NewUpdate13Request(server string, workspaceId string, templateId string, body Update13JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdate13RequestWithBody(server, workspaceId, templateId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdate13RequestWithBody generates requests for Update13 with any type of body
|
|
func NewUpdate13RequestWithBody(server string, workspaceId string, templateId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "templateId", runtime.ParamLocationPath, templateId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/templates/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewActivateRequest calls the generic Activate builder with application/json body
|
|
func NewActivateRequest(server string, workspaceId string, templateId string, body ActivateJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewActivateRequestWithBody(server, workspaceId, templateId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewActivateRequestWithBody generates requests for Activate with any type of body
|
|
func NewActivateRequestWithBody(server string, workspaceId string, templateId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "templateId", runtime.ParamLocationPath, templateId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/templates/%s/activate", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeactivateRequest calls the generic Deactivate builder with application/json body
|
|
func NewDeactivateRequest(server string, workspaceId string, templateId string, body DeactivateJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDeactivateRequestWithBody(server, workspaceId, templateId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDeactivateRequestWithBody generates requests for Deactivate with any type of body
|
|
func NewDeactivateRequestWithBody(server string, workspaceId string, templateId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "templateId", runtime.ParamLocationPath, templateId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/templates/%s/deactivate", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCopyTimeEntriesRequest calls the generic CopyTimeEntries builder with application/json body
|
|
func NewCopyTimeEntriesRequest(server string, workspaceId string, userId string, body CopyTimeEntriesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCopyTimeEntriesRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCopyTimeEntriesRequestWithBody generates requests for CopyTimeEntries with any type of body
|
|
func NewCopyTimeEntriesRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-entries/users/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewContinueTimeEntryRequest generates requests for ContinueTimeEntry
|
|
func NewContinueTimeEntryRequest(server string, workspaceId string, timeEntryId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "timeEntryId", runtime.ParamLocationPath, timeEntryId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-entries/%s/continue", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTeamMembersOfAdminRequest generates requests for GetTeamMembersOfAdmin
|
|
func NewGetTeamMembersOfAdminRequest(server string, workspaceId string, params *GetTeamMembersOfAdminParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/admin/users", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Search != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetBalancesForPolicyRequest generates requests for GetBalancesForPolicy
|
|
func NewGetBalancesForPolicyRequest(server string, workspaceId string, policyId string, params *GetBalancesForPolicyParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/balance/policy/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Sort != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateBalanceRequest calls the generic UpdateBalance builder with application/json body
|
|
func NewUpdateBalanceRequest(server string, workspaceId string, policyId string, body UpdateBalanceJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateBalanceRequestWithBody(server, workspaceId, policyId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateBalanceRequestWithBody generates requests for UpdateBalance with any type of body
|
|
func NewUpdateBalanceRequestWithBody(server string, workspaceId string, policyId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/balance/policy/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetBalancesForUserRequest generates requests for GetBalancesForUser
|
|
func NewGetBalancesForUserRequest(server string, workspaceId string, userId string, params *GetBalancesForUserParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/balance/user/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Sort != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.WithArchived != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "with-archived", runtime.ParamLocationQuery, *params.WithArchived); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTeamMembersOfManagerRequest generates requests for GetTeamMembersOfManager
|
|
func NewGetTeamMembersOfManagerRequest(server string, workspaceId string, params *GetTeamMembersOfManagerParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/manager/users", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Search != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewFindPoliciesForWorkspaceRequest generates requests for FindPoliciesForWorkspace
|
|
func NewFindPoliciesForWorkspaceRequest(server string, workspaceId string, params *FindPoliciesForWorkspaceParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreatePolicyRequest calls the generic CreatePolicy builder with application/json body
|
|
func NewCreatePolicyRequest(server string, workspaceId string, body CreatePolicyJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreatePolicyRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreatePolicyRequestWithBody generates requests for CreatePolicy with any type of body
|
|
func NewCreatePolicyRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetPolicyAssignmentForCurrentUserRequest generates requests for GetPolicyAssignmentForCurrentUser
|
|
func NewGetPolicyAssignmentForCurrentUserRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/assignments", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTeamAssignmentsDistributionRequest generates requests for GetTeamAssignmentsDistribution
|
|
func NewGetTeamAssignmentsDistributionRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/assignments/team", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetPolicyAssignmentsForUserRequest generates requests for GetPolicyAssignmentsForUser
|
|
func NewGetPolicyAssignmentsForUserRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/assignments/users/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewFindPoliciesForUserRequest generates requests for FindPoliciesForUser
|
|
func NewFindPoliciesForUserRequest(server string, workspaceId string, userId string, params *FindPoliciesForUserParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/users/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeletePolicyRequest generates requests for DeletePolicy
|
|
func NewDeletePolicyRequest(server string, workspaceId string, id string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdatePolicyRequest calls the generic UpdatePolicy builder with application/json body
|
|
func NewUpdatePolicyRequest(server string, workspaceId string, id string, body UpdatePolicyJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdatePolicyRequestWithBody(server, workspaceId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdatePolicyRequestWithBody generates requests for UpdatePolicy with any type of body
|
|
func NewUpdatePolicyRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewArchiveRequest generates requests for Archive
|
|
func NewArchiveRequest(server string, workspaceId string, id string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s/archive", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRestoreRequest generates requests for Restore
|
|
func NewRestoreRequest(server string, workspaceId string, id string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s/restore", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetPolicyRequest generates requests for GetPolicy
|
|
func NewGetPolicyRequest(server string, workspaceId string, policyId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate7Request calls the generic Create7 builder with application/json body
|
|
func NewCreate7Request(server string, workspaceId string, policyId string, body Create7JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate7RequestWithBody(server, workspaceId, policyId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate7RequestWithBody generates requests for Create7 with any type of body
|
|
func NewCreate7RequestWithBody(server string, workspaceId string, policyId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s/requests", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete6Request generates requests for Delete6
|
|
func NewDelete6Request(server string, workspaceId string, policyId string, requestId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "requestId", runtime.ParamLocationPath, requestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s/requests/%s", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewApproveRequest generates requests for Approve
|
|
func NewApproveRequest(server string, workspaceId string, policyId string, requestId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "requestId", runtime.ParamLocationPath, requestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s/requests/%s/approve", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRejectRequest calls the generic Reject builder with application/json body
|
|
func NewRejectRequest(server string, workspaceId string, policyId string, requestId string, body RejectJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewRejectRequestWithBody(server, workspaceId, policyId, requestId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewRejectRequestWithBody generates requests for Reject with any type of body
|
|
func NewRejectRequestWithBody(server string, workspaceId string, policyId string, requestId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "requestId", runtime.ParamLocationPath, requestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s/requests/%s/reject", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateForOther1Request calls the generic CreateForOther1 builder with application/json body
|
|
func NewCreateForOther1Request(server string, workspaceId string, policyId string, userId string, body CreateForOther1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateForOther1RequestWithBody(server, workspaceId, policyId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateForOther1RequestWithBody generates requests for CreateForOther1 with any type of body
|
|
func NewCreateForOther1RequestWithBody(server string, workspaceId string, policyId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "policyId", runtime.ParamLocationPath, policyId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/policies/%s/users/%s/requests", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGet1Request calls the generic Get1 builder with application/json body
|
|
func NewGet1Request(server string, workspaceId string, params *Get1Params, body Get1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGet1RequestWithBody(server, workspaceId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGet1RequestWithBody generates requests for Get1 with any type of body
|
|
func NewGet1RequestWithBody(server string, workspaceId string, params *Get1Params, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/requests", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.FetchScope != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fetch-scope", runtime.ParamLocationQuery, *params.FetchScope); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTimeOffRequestByIdRequest generates requests for GetTimeOffRequestById
|
|
func NewGetTimeOffRequestByIdRequest(server string, workspaceId string, requestId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "requestId", runtime.ParamLocationPath, requestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/requests/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetAllUsersOfWorkspaceRequest generates requests for GetAllUsersOfWorkspace
|
|
func NewGetAllUsersOfWorkspaceRequest(server string, workspaceId string, params *GetAllUsersOfWorkspaceParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/specific-member/all-users", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Search != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUserGroupsOfWorkspaceRequest generates requests for GetUserGroupsOfWorkspace
|
|
func NewGetUserGroupsOfWorkspaceRequest(server string, workspaceId string, params *GetUserGroupsOfWorkspaceParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/specific-member/user-groups", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Search != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.FilterTeam != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter-team", runtime.ParamLocationQuery, *params.FilterTeam); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsersOfWorkspaceRequest generates requests for GetUsersOfWorkspace
|
|
func NewGetUsersOfWorkspaceRequest(server string, workspaceId string, params *GetUsersOfWorkspaceParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/specific-member/users", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Search != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search", runtime.ParamLocationQuery, *params.Search); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.FilterTeam != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "filter-team", runtime.ParamLocationQuery, *params.FilterTeam); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetRequest calls the generic Get builder with application/json body
|
|
func NewGetRequest(server string, workspaceId string, params *GetParams, body GetJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetRequestWithBody(server, workspaceId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetRequestWithBody generates requests for Get with any type of body
|
|
func NewGetRequestWithBody(server string, workspaceId string, params *GetParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/timeline", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Hydrated != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hydrated", runtime.ParamLocationQuery, *params.Hydrated); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.FetchScope != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fetch-scope", runtime.ParamLocationQuery, *params.FetchScope); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTimelineForReportsRequest calls the generic GetTimelineForReports builder with application/json body
|
|
func NewGetTimelineForReportsRequest(server string, workspaceId string, params *GetTimelineForReportsParams, body GetTimelineForReportsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetTimelineForReportsRequestWithBody(server, workspaceId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetTimelineForReportsRequestWithBody generates requests for GetTimelineForReports with any type of body
|
|
func NewGetTimelineForReportsRequestWithBody(server string, workspaceId string, params *GetTimelineForReportsParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/time-off/timeline-for-reports", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Hydrated != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hydrated", runtime.ParamLocationQuery, *params.Hydrated); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.FetchScope != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "fetch-scope", runtime.ParamLocationQuery, *params.FetchScope); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteManyRequest calls the generic DeleteMany builder with application/json body
|
|
func NewDeleteManyRequest(server string, workspaceId string, body DeleteManyJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDeleteManyRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDeleteManyRequestWithBody generates requests for DeleteMany with any type of body
|
|
func NewDeleteManyRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTimeEntriesBySearchValueRequest generates requests for GetTimeEntriesBySearchValue
|
|
func NewGetTimeEntriesBySearchValueRequest(server string, workspaceId string, params *GetTimeEntriesBySearchValueParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchValue", runtime.ParamLocationQuery, params.SearchValue); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate6Request calls the generic Create6 builder with application/json body
|
|
func NewCreate6Request(server string, workspaceId string, params *Create6Params, body Create6JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate6RequestWithBody(server, workspaceId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate6RequestWithBody generates requests for Create6 with any type of body
|
|
func NewCreate6RequestWithBody(server string, workspaceId string, params *Create6Params, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.FromEntry != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "from-entry", runtime.ParamLocationQuery, *params.FromEntry); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
if params != nil {
|
|
|
|
if params.AppName != nil {
|
|
var headerParam0 string
|
|
|
|
headerParam0, err = runtime.StyleParamWithLocation("simple", false, "App-Name", runtime.ParamLocationHeader, *params.AppName)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("App-Name", headerParam0)
|
|
}
|
|
|
|
if params.RequestId != nil {
|
|
var headerParam1 string
|
|
|
|
headerParam1, err = runtime.StyleParamWithLocation("simple", false, "Request-Id", runtime.ParamLocationHeader, *params.RequestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("Request-Id", headerParam1)
|
|
}
|
|
|
|
if params.Signature != nil {
|
|
var headerParam2 string
|
|
|
|
headerParam2, err = runtime.StyleParamWithLocation("simple", false, "Signature", runtime.ParamLocationHeader, *params.Signature)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("Signature", headerParam2)
|
|
}
|
|
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPatchTimeEntriesRequest calls the generic PatchTimeEntries builder with application/json body
|
|
func NewPatchTimeEntriesRequest(server string, workspaceId string, body PatchTimeEntriesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPatchTimeEntriesRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPatchTimeEntriesRequestWithBody generates requests for PatchTimeEntries with any type of body
|
|
func NewPatchTimeEntriesRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/bulk", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewEndStartedRequest calls the generic EndStarted builder with application/json body
|
|
func NewEndStartedRequest(server string, workspaceId string, body EndStartedJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewEndStartedRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewEndStartedRequestWithBody generates requests for EndStarted with any type of body
|
|
func NewEndStartedRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/endStarted", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetMultipleTimeEntriesByIdRequest generates requests for GetMultipleTimeEntriesById
|
|
func NewGetMultipleTimeEntriesByIdRequest(server string, workspaceId string, params *GetMultipleTimeEntriesByIdParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/fetch", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "id", runtime.ParamLocationQuery, params.Id); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateFull1Request calls the generic CreateFull1 builder with application/json body
|
|
func NewCreateFull1Request(server string, workspaceId string, params *CreateFull1Params, body CreateFull1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateFull1RequestWithBody(server, workspaceId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateFull1RequestWithBody generates requests for CreateFull1 with any type of body
|
|
func NewCreateFull1RequestWithBody(server string, workspaceId string, params *CreateFull1Params, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/full", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
if params != nil {
|
|
|
|
if params.AppName != nil {
|
|
var headerParam0 string
|
|
|
|
headerParam0, err = runtime.StyleParamWithLocation("simple", false, "App-Name", runtime.ParamLocationHeader, *params.AppName)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("App-Name", headerParam0)
|
|
}
|
|
|
|
if params.RequestId != nil {
|
|
var headerParam1 string
|
|
|
|
headerParam1, err = runtime.StyleParamWithLocation("simple", false, "Request-Id", runtime.ParamLocationHeader, *params.RequestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("Request-Id", headerParam1)
|
|
}
|
|
|
|
if params.Signature != nil {
|
|
var headerParam2 string
|
|
|
|
headerParam2, err = runtime.StyleParamWithLocation("simple", false, "Signature", runtime.ParamLocationHeader, *params.Signature)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("Signature", headerParam2)
|
|
}
|
|
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTimeEntryInProgressRequest generates requests for GetTimeEntryInProgress
|
|
func NewGetTimeEntryInProgressRequest(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/inProgress", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateInvoicedStatusRequest calls the generic UpdateInvoicedStatus builder with application/json body
|
|
func NewUpdateInvoicedStatusRequest(server string, workspaceId string, body UpdateInvoicedStatusJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateInvoicedStatusRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateInvoicedStatusRequestWithBody generates requests for UpdateInvoicedStatus with any type of body
|
|
func NewUpdateInvoicedStatusRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/invoiced", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewListOfProjectRequest generates requests for ListOfProject
|
|
func NewListOfProjectRequest(server string, workspaceId string, projectId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/project/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTimeEntriesRecentlyUsedRequest generates requests for GetTimeEntriesRecentlyUsed
|
|
func NewGetTimeEntriesRecentlyUsedRequest(server string, workspaceId string, params *GetTimeEntriesRecentlyUsedParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/recent", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Limit != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRestoreTimeEntriesRequest calls the generic RestoreTimeEntries builder with application/json body
|
|
func NewRestoreTimeEntriesRequest(server string, workspaceId string, body RestoreTimeEntriesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewRestoreTimeEntriesRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewRestoreTimeEntriesRequestWithBody generates requests for RestoreTimeEntries with any type of body
|
|
func NewRestoreTimeEntriesRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/restore", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateForManyRequest calls the generic CreateForMany builder with application/json body
|
|
func NewCreateForManyRequest(server string, workspaceId string, body CreateForManyJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateForManyRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateForManyRequestWithBody generates requests for CreateForMany with any type of body
|
|
func NewCreateForManyRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/time-entries", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateForOthersRequest calls the generic CreateForOthers builder with application/json body
|
|
func NewCreateForOthersRequest(server string, workspaceId string, userId string, body CreateForOthersJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateForOthersRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateForOthersRequestWithBody generates requests for CreateForOthers with any type of body
|
|
func NewCreateForOthersRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/user/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewListOfFullRequest generates requests for ListOfFull
|
|
func NewListOfFullRequest(server string, workspaceId string, userId string, params *ListOfFullParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/user/%s/full", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Limit != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "limit", runtime.ParamLocationQuery, *params.Limit); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTimeEntriesRequest generates requests for GetTimeEntries
|
|
func NewGetTimeEntriesRequest(server string, workspaceId string, userId string, params *GetTimeEntriesParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/users/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Description != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "description", runtime.ParamLocationQuery, *params.Description); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Start != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.End != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Project != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project", runtime.ParamLocationQuery, *params.Project); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Task != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "task", runtime.ParamLocationQuery, *params.Task); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Tags != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "tags", runtime.ParamLocationQuery, *params.Tags); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ProjectRequired != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "project-required", runtime.ParamLocationQuery, *params.ProjectRequired); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.TaskRequired != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "task-required", runtime.ParamLocationQuery, *params.TaskRequired); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Hydrated != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hydrated", runtime.ParamLocationQuery, *params.Hydrated); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.InProgress != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "in-progress", runtime.ParamLocationQuery, *params.InProgress); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.GetWeekBefore != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "get-week-before", runtime.ParamLocationQuery, *params.GetWeekBefore); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewAssertTimeEntriesExistInDateRangeRequest generates requests for AssertTimeEntriesExistInDateRange
|
|
func NewAssertTimeEntriesExistInDateRangeRequest(server string, workspaceId string, userId string, params *AssertTimeEntriesExistInDateRangeParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/users/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("HEAD", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateFullRequest calls the generic CreateFull builder with application/json body
|
|
func NewCreateFullRequest(server string, workspaceId string, userId string, params *CreateFullParams, body CreateFullJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateFullRequestWithBody(server, workspaceId, userId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateFullRequestWithBody generates requests for CreateFull with any type of body
|
|
func NewCreateFullRequestWithBody(server string, workspaceId string, userId string, params *CreateFullParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/users/%s/full", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
if params != nil {
|
|
|
|
if params.AppName != nil {
|
|
var headerParam0 string
|
|
|
|
headerParam0, err = runtime.StyleParamWithLocation("simple", false, "App-Name", runtime.ParamLocationHeader, *params.AppName)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("App-Name", headerParam0)
|
|
}
|
|
|
|
if params.RequestId != nil {
|
|
var headerParam1 string
|
|
|
|
headerParam1, err = runtime.StyleParamWithLocation("simple", false, "Request-Id", runtime.ParamLocationHeader, *params.RequestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("Request-Id", headerParam1)
|
|
}
|
|
|
|
if params.Signature != nil {
|
|
var headerParam2 string
|
|
|
|
headerParam2, err = runtime.StyleParamWithLocation("simple", false, "Signature", runtime.ParamLocationHeader, *params.Signature)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("Signature", headerParam2)
|
|
}
|
|
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTimeEntriesInRangeRequest generates requests for GetTimeEntriesInRange
|
|
func NewGetTimeEntriesInRangeRequest(server string, workspaceId string, userId string, params *GetTimeEntriesInRangeParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/users/%s/in-range", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTimeEntriesForTimesheetRequest generates requests for GetTimeEntriesForTimesheet
|
|
func NewGetTimeEntriesForTimesheetRequest(server string, workspaceId string, userId string, params *GetTimeEntriesForTimesheetParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/users/%s/timesheet", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Start != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.End != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.InProgress != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "in-progress", runtime.ParamLocationQuery, *params.InProgress); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPatchRequest calls the generic Patch builder with application/json body
|
|
func NewPatchRequest(server string, workspaceId string, id string, body PatchJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPatchRequestWithBody(server, workspaceId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPatchRequestWithBody generates requests for Patch with any type of body
|
|
func NewPatchRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdate3Request calls the generic Update3 builder with application/json body
|
|
func NewUpdate3Request(server string, workspaceId string, id string, params *Update3Params, body Update3JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdate3RequestWithBody(server, workspaceId, id, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdate3RequestWithBody generates requests for Update3 with any type of body
|
|
func NewUpdate3RequestWithBody(server string, workspaceId string, id string, params *Update3Params, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
if params != nil {
|
|
|
|
if params.AppName != nil {
|
|
var headerParam0 string
|
|
|
|
headerParam0, err = runtime.StyleParamWithLocation("simple", false, "App-Name", runtime.ParamLocationHeader, *params.AppName)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("App-Name", headerParam0)
|
|
}
|
|
|
|
if params.RequestId != nil {
|
|
var headerParam1 string
|
|
|
|
headerParam1, err = runtime.StyleParamWithLocation("simple", false, "Request-Id", runtime.ParamLocationHeader, *params.RequestId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("Request-Id", headerParam1)
|
|
}
|
|
|
|
if params.Signature != nil {
|
|
var headerParam2 string
|
|
|
|
headerParam2, err = runtime.StyleParamWithLocation("simple", false, "Signature", runtime.ParamLocationHeader, *params.Signature)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Set("Signature", headerParam2)
|
|
}
|
|
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTimeEntryAttributesRequest generates requests for GetTimeEntryAttributes
|
|
func NewGetTimeEntryAttributesRequest(server string, workspaceId string, id string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/attributes", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateTimeEntryAttributeRequest calls the generic CreateTimeEntryAttribute builder with application/json body
|
|
func NewCreateTimeEntryAttributeRequest(server string, workspaceId string, id string, body CreateTimeEntryAttributeJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateTimeEntryAttributeRequestWithBody(server, workspaceId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateTimeEntryAttributeRequestWithBody generates requests for CreateTimeEntryAttribute with any type of body
|
|
func NewCreateTimeEntryAttributeRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/attributes", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteTimeEntryAttributeRequest calls the generic DeleteTimeEntryAttribute builder with application/json body
|
|
func NewDeleteTimeEntryAttributeRequest(server string, workspaceId string, id string, body DeleteTimeEntryAttributeJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewDeleteTimeEntryAttributeRequestWithBody(server, workspaceId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewDeleteTimeEntryAttributeRequestWithBody generates requests for DeleteTimeEntryAttribute with any type of body
|
|
func NewDeleteTimeEntryAttributeRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/attributes/delete", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateBillableRequest calls the generic UpdateBillable builder with application/json body
|
|
func NewUpdateBillableRequest(server string, workspaceId string, id string, body UpdateBillableJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateBillableRequestWithBody(server, workspaceId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateBillableRequestWithBody generates requests for UpdateBillable with any type of body
|
|
func NewUpdateBillableRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/billable", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateDescriptionRequest calls the generic UpdateDescription builder with application/json body
|
|
func NewUpdateDescriptionRequest(server string, workspaceId string, id string, body UpdateDescriptionJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateDescriptionRequestWithBody(server, workspaceId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateDescriptionRequestWithBody generates requests for UpdateDescription with any type of body
|
|
func NewUpdateDescriptionRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/description", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateEndRequest calls the generic UpdateEnd builder with application/json body
|
|
func NewUpdateEndRequest(server string, workspaceId string, id string, body UpdateEndJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateEndRequestWithBody(server, workspaceId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateEndRequestWithBody generates requests for UpdateEnd with any type of body
|
|
func NewUpdateEndRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/end", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateFullRequest calls the generic UpdateFull builder with application/json body
|
|
func NewUpdateFullRequest(server string, workspaceId string, id string, params *UpdateFullParams, body UpdateFullJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateFullRequestWithBody(server, workspaceId, id, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateFullRequestWithBody generates requests for UpdateFull with any type of body
|
|
func NewUpdateFullRequestWithBody(server string, workspaceId string, id string, params *UpdateFullParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/full", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.StopTimer != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "stop-timer", runtime.ParamLocationQuery, *params.StopTimer); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateProjectRequest calls the generic UpdateProject builder with application/json body
|
|
func NewUpdateProjectRequest(server string, workspaceId string, id string, body UpdateProjectJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateProjectRequestWithBody(server, workspaceId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateProjectRequestWithBody generates requests for UpdateProject with any type of body
|
|
func NewUpdateProjectRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/project", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRemoveProjectRequest generates requests for RemoveProject
|
|
func NewRemoveProjectRequest(server string, workspaceId string, id string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/project/remove", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateProjectAndTaskRequest calls the generic UpdateProjectAndTask builder with application/json body
|
|
func NewUpdateProjectAndTaskRequest(server string, workspaceId string, id string, body UpdateProjectAndTaskJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateProjectAndTaskRequestWithBody(server, workspaceId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateProjectAndTaskRequestWithBody generates requests for UpdateProjectAndTask with any type of body
|
|
func NewUpdateProjectAndTaskRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/projectAndTask", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateAndSplitRequest calls the generic UpdateAndSplit builder with application/json body
|
|
func NewUpdateAndSplitRequest(server string, workspaceId string, id string, body UpdateAndSplitJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateAndSplitRequestWithBody(server, workspaceId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateAndSplitRequestWithBody generates requests for UpdateAndSplit with any type of body
|
|
func NewUpdateAndSplitRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/split", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewSplitTimeEntryRequest calls the generic SplitTimeEntry builder with application/json body
|
|
func NewSplitTimeEntryRequest(server string, workspaceId string, id string, body SplitTimeEntryJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewSplitTimeEntryRequestWithBody(server, workspaceId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewSplitTimeEntryRequestWithBody generates requests for SplitTimeEntry with any type of body
|
|
func NewSplitTimeEntryRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/split", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateStartRequest calls the generic UpdateStart builder with application/json body
|
|
func NewUpdateStartRequest(server string, workspaceId string, id string, body UpdateStartJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateStartRequestWithBody(server, workspaceId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateStartRequestWithBody generates requests for UpdateStart with any type of body
|
|
func NewUpdateStartRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/start", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateTagsRequest calls the generic UpdateTags builder with application/json body
|
|
func NewUpdateTagsRequest(server string, workspaceId string, id string, body UpdateTagsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateTagsRequestWithBody(server, workspaceId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateTagsRequestWithBody generates requests for UpdateTags with any type of body
|
|
func NewUpdateTagsRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/tags", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRemoveTaskRequest generates requests for RemoveTask
|
|
func NewRemoveTaskRequest(server string, workspaceId string, id string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/task/remove", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateTimeIntervalRequest calls the generic UpdateTimeInterval builder with application/json body
|
|
func NewUpdateTimeIntervalRequest(server string, workspaceId string, id string, body UpdateTimeIntervalJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateTimeIntervalRequestWithBody(server, workspaceId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateTimeIntervalRequestWithBody generates requests for UpdateTimeInterval with any type of body
|
|
func NewUpdateTimeIntervalRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/timeInterval", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateUserRequest calls the generic UpdateUser builder with application/json body
|
|
func NewUpdateUserRequest(server string, workspaceId string, id string, body UpdateUserJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateUserRequestWithBody(server, workspaceId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateUserRequestWithBody generates requests for UpdateUser with any type of body
|
|
func NewUpdateUserRequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/user", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete5Request generates requests for Delete5
|
|
func NewDelete5Request(server string, workspaceId string, timeEntryId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "timeEntryId", runtime.ParamLocationPath, timeEntryId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateCustomFieldRequest calls the generic UpdateCustomField builder with application/json body
|
|
func NewUpdateCustomFieldRequest(server string, workspaceId string, timeEntryId string, body UpdateCustomFieldJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateCustomFieldRequestWithBody(server, workspaceId, timeEntryId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateCustomFieldRequestWithBody generates requests for UpdateCustomField with any type of body
|
|
func NewUpdateCustomFieldRequestWithBody(server string, workspaceId string, timeEntryId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "timeEntryId", runtime.ParamLocationPath, timeEntryId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/custom-field", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewPenalizeCurrentTimerAndStartNewTimeEntryRequest calls the generic PenalizeCurrentTimerAndStartNewTimeEntry builder with application/json body
|
|
func NewPenalizeCurrentTimerAndStartNewTimeEntryRequest(server string, workspaceId string, timeEntryId string, body PenalizeCurrentTimerAndStartNewTimeEntryJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewPenalizeCurrentTimerAndStartNewTimeEntryRequestWithBody(server, workspaceId, timeEntryId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewPenalizeCurrentTimerAndStartNewTimeEntryRequestWithBody generates requests for PenalizeCurrentTimerAndStartNewTimeEntry with any type of body
|
|
func NewPenalizeCurrentTimerAndStartNewTimeEntryRequestWithBody(server string, workspaceId string, timeEntryId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "timeEntryId", runtime.ParamLocationPath, timeEntryId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/timeEntries/%s/penalty", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewTransferWorkspaceDeprecatedFlowRequest calls the generic TransferWorkspaceDeprecatedFlow builder with application/json body
|
|
func NewTransferWorkspaceDeprecatedFlowRequest(server string, workspaceId string, body TransferWorkspaceDeprecatedFlowJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewTransferWorkspaceDeprecatedFlowRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewTransferWorkspaceDeprecatedFlowRequestWithBody generates requests for TransferWorkspaceDeprecatedFlow with any type of body
|
|
func NewTransferWorkspaceDeprecatedFlowRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/transfer", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewTransferWorkspaceRequest calls the generic TransferWorkspace builder with application/json body
|
|
func NewTransferWorkspaceRequest(server string, workspaceId string, body TransferWorkspaceJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewTransferWorkspaceRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewTransferWorkspaceRequestWithBody generates requests for TransferWorkspace with any type of body
|
|
func NewTransferWorkspaceRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/transfers", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTrialActivationDataRequest generates requests for GetTrialActivationData
|
|
func NewGetTrialActivationDataRequest(server string, workspaceId string, params *GetTrialActivationDataParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/trial-activation-data", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.TestReverseFreeTrialPhase != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "testReverseFreeTrialPhase", runtime.ParamLocationQuery, *params.TestReverseFreeTrialPhase); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.TestActivateTrial != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "testActivateTrial", runtime.ParamLocationQuery, *params.TestActivateTrial); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRemoveMemberRequest generates requests for RemoveMember
|
|
func NewRemoveMemberRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/user/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCopyTimeEntryCalendarDragRequest calls the generic CopyTimeEntryCalendarDrag builder with application/json body
|
|
func NewCopyTimeEntryCalendarDragRequest(server string, workspaceId string, userId string, body CopyTimeEntryCalendarDragJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCopyTimeEntryCalendarDragRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCopyTimeEntryCalendarDragRequestWithBody generates requests for CopyTimeEntryCalendarDrag with any type of body
|
|
func NewCopyTimeEntryCalendarDragRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/user/%s/time-entries/calendar-drag", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDuplicateTimeEntryRequest generates requests for DuplicateTimeEntry
|
|
func NewDuplicateTimeEntryRequest(server string, workspaceId string, userId string, id string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/user/%s/time-entries/%s/duplicate", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUserGroups1Request generates requests for GetUserGroups1
|
|
func NewGetUserGroups1Request(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/userGroups", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate5Request calls the generic Create5 builder with application/json body
|
|
func NewCreate5Request(server string, workspaceId string, body Create5JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate5RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate5RequestWithBody generates requests for Create5 with any type of body
|
|
func NewCreate5RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/userGroups", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUserGroups2Request generates requests for GetUserGroups2
|
|
func NewGetUserGroups2Request(server string, workspaceId string, params *GetUserGroups2Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/userGroups/full", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.ProjectId != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "projectId", runtime.ParamLocationQuery, *params.ProjectId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ExcludedIds != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortColumn != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-column", runtime.ParamLocationQuery, *params.SortColumn); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortOrder != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort-order", runtime.ParamLocationQuery, *params.SortOrder); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SearchGroups != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "search-groups", runtime.ParamLocationQuery, *params.SearchGroups); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUserGroupNamesRequest calls the generic GetUserGroupNames builder with application/json body
|
|
func NewGetUserGroupNamesRequest(server string, workspaceId string, body GetUserGroupNamesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetUserGroupNamesRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetUserGroupNamesRequestWithBody generates requests for GetUserGroupNames with any type of body
|
|
func NewGetUserGroupNamesRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/userGroups/names", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsersForReportFilter1Request generates requests for GetUsersForReportFilter1
|
|
func NewGetUsersForReportFilter1Request(server string, workspaceId string, params *GetUsersForReportFilter1Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/userGroups/report-filters", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.SearchValue != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchValue", runtime.ParamLocationQuery, *params.SearchValue); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ForceFilter != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "force-filter", runtime.ParamLocationQuery, *params.ForceFilter); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.IgnoreFilter != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ignore-filter", runtime.ParamLocationQuery, *params.IgnoreFilter); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ExcludedIds != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "excludedIds", runtime.ParamLocationQuery, *params.ExcludedIds); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.ForApproval != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "forApproval", runtime.ParamLocationQuery, *params.ForApproval); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUserGroupForReportFilterPostRequest calls the generic GetUserGroupForReportFilterPost builder with application/json body
|
|
func NewGetUserGroupForReportFilterPostRequest(server string, workspaceId string, body GetUserGroupForReportFilterPostJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetUserGroupForReportFilterPostRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetUserGroupForReportFilterPostRequestWithBody generates requests for GetUserGroupForReportFilterPost with any type of body
|
|
func NewGetUserGroupForReportFilterPostRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/userGroups/report-filters", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsersForAttendanceReportFilterRequest calls the generic GetUsersForAttendanceReportFilter builder with application/json body
|
|
func NewGetUsersForAttendanceReportFilterRequest(server string, workspaceId string, body GetUsersForAttendanceReportFilterJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetUsersForAttendanceReportFilterRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetUsersForAttendanceReportFilterRequestWithBody generates requests for GetUsersForAttendanceReportFilter with any type of body
|
|
func NewGetUsersForAttendanceReportFilterRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/userGroups/report-filters/attendance-report", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUserGroupIdsByNameRequest generates requests for GetUserGroupIdsByName
|
|
func NewGetUserGroupIdsByNameRequest(server string, workspaceId string, params *GetUserGroupIdsByNameParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/userGroups/report-filters/ids", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Name != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUserGroupsRequest calls the generic GetUserGroups builder with application/json body
|
|
func NewGetUserGroupsRequest(server string, workspaceId string, params *GetUserGroupsParams, body GetUserGroupsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetUserGroupsRequestWithBody(server, workspaceId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetUserGroupsRequestWithBody generates requests for GetUserGroups with any type of body
|
|
func NewGetUserGroupsRequestWithBody(server string, workspaceId string, params *GetUserGroupsParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/userGroups/userGroupIds", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.SearchValue != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "searchValue", runtime.ParamLocationQuery, *params.SearchValue); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRemoveUserRequest calls the generic RemoveUser builder with application/json body
|
|
func NewRemoveUserRequest(server string, workspaceId string, params *RemoveUserParams, body RemoveUserJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewRemoveUserRequestWithBody(server, workspaceId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewRemoveUserRequestWithBody generates requests for RemoveUser with any type of body
|
|
func NewRemoveUserRequestWithBody(server string, workspaceId string, params *RemoveUserParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/userGroups/users", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.UserGroupIds != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userGroupIds", runtime.ParamLocationQuery, *params.UserGroupIds); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.UserId != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, *params.UserId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewAddUsersToUserGroupsFilterRequest calls the generic AddUsersToUserGroupsFilter builder with application/json body
|
|
func NewAddUsersToUserGroupsFilterRequest(server string, workspaceId string, body AddUsersToUserGroupsFilterJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewAddUsersToUserGroupsFilterRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewAddUsersToUserGroupsFilterRequestWithBody generates requests for AddUsersToUserGroupsFilter with any type of body
|
|
func NewAddUsersToUserGroupsFilterRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/userGroups/users", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete4Request generates requests for Delete4
|
|
func NewDelete4Request(server string, workspaceId string, id string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/userGroups/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdate2Request calls the generic Update2 builder with application/json body
|
|
func NewUpdate2Request(server string, workspaceId string, id string, body Update2JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdate2RequestWithBody(server, workspaceId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdate2RequestWithBody generates requests for Update2 with any type of body
|
|
func NewUpdate2RequestWithBody(server string, workspaceId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/userGroups/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsersRequest calls the generic GetUsers builder with application/json body
|
|
func NewGetUsersRequest(server string, workspaceId string, body GetUsersJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetUsersRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetUsersRequestWithBody generates requests for GetUsers with any type of body
|
|
func NewGetUsersRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/userIds", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUsers1Request generates requests for GetUsers1
|
|
func NewGetUsers1Request(server string, workspaceId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewAddUsersRequest calls the generic AddUsers builder with application/json body
|
|
func NewAddUsersRequest(server string, workspaceId string, params *AddUsersParams, body AddUsersJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewAddUsersRequestWithBody(server, workspaceId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewAddUsersRequestWithBody generates requests for AddUsers with any type of body
|
|
func NewAddUsersRequestWithBody(server string, workspaceId string, params *AddUsersParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.SendEmail != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sendEmail", runtime.ParamLocationQuery, *params.SendEmail); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetExpensesForUsersRequest generates requests for GetExpensesForUsers
|
|
func NewGetExpensesForUsersRequest(server string, workspaceId string, params *GetExpensesForUsersParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/expenses", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "userId", runtime.ParamLocationQuery, params.UserId); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewSetMembershipsRequest calls the generic SetMemberships builder with application/json body
|
|
func NewSetMembershipsRequest(server string, workspaceId string, body SetMembershipsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewSetMembershipsRequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewSetMembershipsRequestWithBody generates requests for SetMemberships with any type of body
|
|
func NewSetMembershipsRequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/memberships", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewResendInviteRequest generates requests for ResendInvite
|
|
func NewResendInviteRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateDeprecatedRequest calls the generic CreateDeprecated builder with application/json body
|
|
func NewCreateDeprecatedRequest(server string, workspaceId string, userId string, body CreateDeprecatedJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateDeprecatedRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateDeprecatedRequestWithBody generates requests for CreateDeprecated with any type of body
|
|
func NewCreateDeprecatedRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetRequestsByUserRequest generates requests for GetRequestsByUser
|
|
func NewGetRequestsByUserRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/all-pending", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetApprovedTotalsRequest calls the generic GetApprovedTotals builder with application/json body
|
|
func NewGetApprovedTotalsRequest(server string, workspaceId string, userId string, body GetApprovedTotalsJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetApprovedTotalsRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetApprovedTotalsRequestWithBody generates requests for GetApprovedTotals with any type of body
|
|
func NewGetApprovedTotalsRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/approved-totals", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateForOtherDeprecatedRequest calls the generic CreateForOtherDeprecated builder with application/json body
|
|
func NewCreateForOtherDeprecatedRequest(server string, workspaceId string, userId string, body CreateForOtherDeprecatedJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateForOtherDeprecatedRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateForOtherDeprecatedRequestWithBody generates requests for CreateForOtherDeprecated with any type of body
|
|
func NewCreateForOtherDeprecatedRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/for-other", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetPreviewRequest calls the generic GetPreview builder with application/json body
|
|
func NewGetPreviewRequest(server string, workspaceId string, userId string, params *GetPreviewParams, body GetPreviewJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewGetPreviewRequestWithBody(server, workspaceId, userId, params, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewGetPreviewRequestWithBody generates requests for GetPreview with any type of body
|
|
func NewGetPreviewRequestWithBody(server string, workspaceId string, userId string, params *GetPreviewParams, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/preview", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Unsubmitted != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "unsubmitted", runtime.ParamLocationQuery, *params.Unsubmitted); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTimeEntryStatusRequest generates requests for GetTimeEntryStatus
|
|
func NewGetTimeEntryStatusRequest(server string, workspaceId string, userId string, params *GetTimeEntryStatusParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/status", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Start != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetTimeEntryWeekStatusRequest generates requests for GetTimeEntryWeekStatus
|
|
func NewGetTimeEntryWeekStatusRequest(server string, workspaceId string, userId string, params *GetTimeEntryWeekStatusParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/week-status", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Start != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetWeeklyRequestsByUserRequest generates requests for GetWeeklyRequestsByUser
|
|
func NewGetWeeklyRequestsByUserRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/weekly-pending", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewWithdrawAllOfUserRequest generates requests for WithdrawAllOfUser
|
|
func NewWithdrawAllOfUserRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/withdraw-all", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewWithdrawAllOfWorkspaceDeprecatedRequest generates requests for WithdrawAllOfWorkspaceDeprecated
|
|
func NewWithdrawAllOfWorkspaceDeprecatedRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/withdraw-on-workspace", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewWithdrawWeeklyOfUserRequest generates requests for WithdrawWeeklyOfUser
|
|
func NewWithdrawWeeklyOfUserRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/approval-requests/withdraw-weekly", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewSetCostRateForUser1Request calls the generic SetCostRateForUser1 builder with application/json body
|
|
func NewSetCostRateForUser1Request(server string, workspaceId string, userId string, body SetCostRateForUser1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewSetCostRateForUser1RequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewSetCostRateForUser1RequestWithBody generates requests for SetCostRateForUser1 with any type of body
|
|
func NewSetCostRateForUser1RequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/cost-rate", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpsertUserCustomFieldValueRequest calls the generic UpsertUserCustomFieldValue builder with application/json body
|
|
func NewUpsertUserCustomFieldValueRequest(server string, workspaceId string, userId string, body UpsertUserCustomFieldValueJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpsertUserCustomFieldValueRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpsertUserCustomFieldValueRequestWithBody generates requests for UpsertUserCustomFieldValue with any type of body
|
|
func NewUpsertUserCustomFieldValueRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/custom-field-values", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetFavoriteEntriesRequest generates requests for GetFavoriteEntries
|
|
func NewGetFavoriteEntriesRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/favorite-entries", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateFavoriteTimeEntryRequest calls the generic CreateFavoriteTimeEntry builder with application/json body
|
|
func NewCreateFavoriteTimeEntryRequest(server string, workspaceId string, userId string, body CreateFavoriteTimeEntryJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateFavoriteTimeEntryRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateFavoriteTimeEntryRequestWithBody generates requests for CreateFavoriteTimeEntry with any type of body
|
|
func NewCreateFavoriteTimeEntryRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/favorite-entries", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewReorderInvoiceItemRequest calls the generic ReorderInvoiceItem builder with application/json body
|
|
func NewReorderInvoiceItemRequest(server string, workspaceId string, userId string, body ReorderInvoiceItemJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewReorderInvoiceItemRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewReorderInvoiceItemRequestWithBody generates requests for ReorderInvoiceItem with any type of body
|
|
func NewReorderInvoiceItemRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/favorite-entries/reorder", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete3Request generates requests for Delete3
|
|
func NewDelete3Request(server string, workspaceId string, userId string, id string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/favorite-entries/%s", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdate1Request calls the generic Update1 builder with application/json body
|
|
func NewUpdate1Request(server string, workspaceId string, userId string, id string, body Update1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdate1RequestWithBody(server, workspaceId, userId, id, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdate1RequestWithBody generates requests for Update1 with any type of body
|
|
func NewUpdate1RequestWithBody(server string, workspaceId string, userId string, id string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/favorite-entries/%s", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetHolidays1Request generates requests for GetHolidays1
|
|
func NewGetHolidays1Request(server string, workspaceId string, userId string, params *GetHolidays1Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/holidays", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, params.Start); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, params.End); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewSetHourlyRateForUser1Request calls the generic SetHourlyRateForUser1 builder with application/json body
|
|
func NewSetHourlyRateForUser1Request(server string, workspaceId string, userId string, body SetHourlyRateForUser1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewSetHourlyRateForUser1RequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewSetHourlyRateForUser1RequestWithBody generates requests for SetHourlyRateForUser1 with any type of body
|
|
func NewSetHourlyRateForUser1RequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/hourly-rate", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetPermissionsToUserRequest generates requests for GetPermissionsToUser
|
|
func NewGetPermissionsToUserRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/permissions", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewRemoveFavoriteProjectRequest generates requests for RemoveFavoriteProject
|
|
func NewRemoveFavoriteProjectRequest(server string, workspaceId string, userId string, projectId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/projects/favorites/projects/%s", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete2Request generates requests for Delete2
|
|
func NewDelete2Request(server string, workspaceId string, userId string, projectFavoritesId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "projectFavoritesId", runtime.ParamLocationPath, projectFavoritesId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/projects/favorites/%s", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate4Request generates requests for Create4
|
|
func NewCreate4Request(server string, workspaceId string, userId string, projectId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/projects/favorites/%s", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDelete1Request generates requests for Delete1
|
|
func NewDelete1Request(server string, workspaceId string, userId string, projectId string, taskId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam3 string
|
|
|
|
pathParam3, err = runtime.StyleParamWithLocation("simple", false, "taskId", runtime.ParamLocationPath, taskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/projects/%s/tasks/%s/favorites", pathParam0, pathParam1, pathParam2, pathParam3)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate3Request generates requests for Create3
|
|
func NewCreate3Request(server string, workspaceId string, userId string, projectId string, taskId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "projectId", runtime.ParamLocationPath, projectId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam3 string
|
|
|
|
pathParam3, err = runtime.StyleParamWithLocation("simple", false, "taskId", runtime.ParamLocationPath, taskId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/projects/%s/tasks/%s/favorites", pathParam0, pathParam1, pathParam2, pathParam3)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewReSubmitRequest calls the generic ReSubmit builder with application/json body
|
|
func NewReSubmitRequest(server string, workspaceId string, userId string, body ReSubmitJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewReSubmitRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewReSubmitRequestWithBody generates requests for ReSubmit with any type of body
|
|
func NewReSubmitRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/resubmit-entries-for-approval", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetUserRolesRequest generates requests for GetUserRoles
|
|
func NewGetUserRolesRequest(server string, workspaceId string, userId string, params *GetUserRolesParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/roles", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.PageSize != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page-size", runtime.ParamLocationQuery, *params.PageSize); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateUserRolesRequest calls the generic UpdateUserRoles builder with application/json body
|
|
func NewUpdateUserRolesRequest(server string, workspaceId string, userId string, body UpdateUserRolesJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateUserRolesRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateUserRolesRequestWithBody generates requests for UpdateUserRoles with any type of body
|
|
func NewUpdateUserRolesRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/roles", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate2Request calls the generic Create2 builder with application/json body
|
|
func NewCreate2Request(server string, workspaceId string, userId string, body Create2JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate2RequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate2RequestWithBody generates requests for Create2 with any type of body
|
|
func NewCreate2RequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/submit-approval-request", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreateForOtherRequest calls the generic CreateForOther builder with application/json body
|
|
func NewCreateForOtherRequest(server string, workspaceId string, userId string, body CreateForOtherJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreateForOtherRequestWithBody(server, workspaceId, userId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreateForOtherRequestWithBody generates requests for CreateForOther with any type of body
|
|
func NewCreateForOtherRequestWithBody(server string, workspaceId string, userId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/submit-approval-request/for-other", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetWorkCapacityRequest generates requests for GetWorkCapacity
|
|
func NewGetWorkCapacityRequest(server string, workspaceId string, userId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "userId", runtime.ParamLocationPath, userId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/users/%s/work-capacity", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetWebhooksRequest generates requests for GetWebhooks
|
|
func NewGetWebhooksRequest(server string, workspaceId string, params *GetWebhooksParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/webhooks", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Type != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewCreate1Request calls the generic Create1 builder with application/json body
|
|
func NewCreate1Request(server string, workspaceId string, body Create1JSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewCreate1RequestWithBody(server, workspaceId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewCreate1RequestWithBody generates requests for Create1 with any type of body
|
|
func NewCreate1RequestWithBody(server string, workspaceId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/webhooks", pathParam0)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("POST", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewDeleteRequest generates requests for Delete
|
|
func NewDeleteRequest(server string, workspaceId string, webhookId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "webhookId", runtime.ParamLocationPath, webhookId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/webhooks/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("DELETE", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetWebhookRequest generates requests for GetWebhook
|
|
func NewGetWebhookRequest(server string, workspaceId string, webhookId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "webhookId", runtime.ParamLocationPath, webhookId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/webhooks/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewUpdateRequest calls the generic Update builder with application/json body
|
|
func NewUpdateRequest(server string, workspaceId string, webhookId string, body UpdateJSONRequestBody) (*http.Request, error) {
|
|
var bodyReader io.Reader
|
|
buf, err := json.Marshal(body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
bodyReader = bytes.NewReader(buf)
|
|
return NewUpdateRequestWithBody(server, workspaceId, webhookId, "application/json", bodyReader)
|
|
}
|
|
|
|
// NewUpdateRequestWithBody generates requests for Update with any type of body
|
|
func NewUpdateRequestWithBody(server string, workspaceId string, webhookId string, contentType string, body io.Reader) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "webhookId", runtime.ParamLocationPath, webhookId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/webhooks/%s", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PUT", queryURL.String(), body)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req.Header.Add("Content-Type", contentType)
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetLogsForWebhook1Request generates requests for GetLogsForWebhook1
|
|
func NewGetLogsForWebhook1Request(server string, workspaceId string, webhookId string, params *GetLogsForWebhook1Params) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "webhookId", runtime.ParamLocationPath, webhookId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/webhooks/%s/logs", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Page != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Size != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "size", runtime.ParamLocationQuery, *params.Size); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.SortByNewest != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sortByNewest", runtime.ParamLocationQuery, *params.SortByNewest); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.From != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "from", runtime.ParamLocationQuery, *params.From); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
if params.To != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "to", runtime.ParamLocationQuery, *params.To); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGetLogCountRequest generates requests for GetLogCount
|
|
func NewGetLogCountRequest(server string, workspaceId string, webhookId string, params *GetLogCountParams) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "webhookId", runtime.ParamLocationPath, webhookId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/webhooks/%s/logs/count", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if params != nil {
|
|
queryValues := queryURL.Query()
|
|
|
|
if params.Status != nil {
|
|
|
|
if queryFrag, err := runtime.StyleParamWithLocation("form", true, "status", runtime.ParamLocationQuery, *params.Status); err != nil {
|
|
return nil, err
|
|
} else if parsed, err := url.ParseQuery(queryFrag); err != nil {
|
|
return nil, err
|
|
} else {
|
|
for k, v := range parsed {
|
|
for _, v2 := range v {
|
|
queryValues.Add(k, v2)
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
queryURL.RawQuery = queryValues.Encode()
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewTriggerResendEventForWebhookRequest generates requests for TriggerResendEventForWebhook
|
|
func NewTriggerResendEventForWebhookRequest(server string, workspaceId string, webhookId string, webhookLogId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "webhookId", runtime.ParamLocationPath, webhookId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam2 string
|
|
|
|
pathParam2, err = runtime.StyleParamWithLocation("simple", false, "webhookLogId", runtime.ParamLocationPath, webhookLogId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/webhooks/%s/resend/%s", pathParam0, pathParam1, pathParam2)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewTriggerTestEventForWebhookRequest generates requests for TriggerTestEventForWebhook
|
|
func NewTriggerTestEventForWebhookRequest(server string, workspaceId string, webhookId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "webhookId", runtime.ParamLocationPath, webhookId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/webhooks/%s/test", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("GET", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
// NewGenerateNewTokenRequest generates requests for GenerateNewToken
|
|
func NewGenerateNewTokenRequest(server string, workspaceId string, webhookId string) (*http.Request, error) {
|
|
var err error
|
|
|
|
var pathParam0 string
|
|
|
|
pathParam0, err = runtime.StyleParamWithLocation("simple", false, "workspaceId", runtime.ParamLocationPath, workspaceId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var pathParam1 string
|
|
|
|
pathParam1, err = runtime.StyleParamWithLocation("simple", false, "webhookId", runtime.ParamLocationPath, webhookId)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
serverURL, err := url.Parse(server)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
operationPath := fmt.Sprintf("/workspaces/%s/webhooks/%s/token", pathParam0, pathParam1)
|
|
if operationPath[0] == '/' {
|
|
operationPath = "." + operationPath
|
|
}
|
|
|
|
queryURL, err := serverURL.Parse(operationPath)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
req, err := http.NewRequest("PATCH", queryURL.String(), nil)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return req, nil
|
|
}
|
|
|
|
func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error {
|
|
for _, r := range c.RequestEditors {
|
|
if err := r(ctx, req); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
for _, r := range additionalEditors {
|
|
if err := r(ctx, req); err != nil {
|
|
return err
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// ClientWithResponses builds on ClientInterface to offer response payloads
|
|
type ClientWithResponses struct {
|
|
ClientInterface
|
|
}
|
|
|
|
// NewClientWithResponses creates a new ClientWithResponses, which wraps
|
|
// Client with return type handling
|
|
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) {
|
|
client, err := NewClient(server, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return &ClientWithResponses{client}, nil
|
|
}
|
|
|
|
// WithBaseURL overrides the baseURL.
|
|
func WithBaseURL(baseURL string) ClientOption {
|
|
return func(c *Client) error {
|
|
newBaseURL, err := url.Parse(baseURL)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
c.Server = newBaseURL.String()
|
|
return nil
|
|
}
|
|
}
|
|
|
|
// ClientWithResponsesInterface is the interface specification for the client with responses above.
|
|
type ClientWithResponsesInterface interface {
|
|
// GetInitialDataWithResponse request
|
|
GetInitialDataWithResponse(ctx context.Context, reportId string, reqEditors ...RequestEditorFn) (*GetInitialDataResponse, error)
|
|
|
|
// DownloadReportWithBodyWithResponse request with any body
|
|
DownloadReportWithBodyWithResponse(ctx context.Context, reportId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DownloadReportResponse, error)
|
|
|
|
DownloadReportWithResponse(ctx context.Context, reportId string, body DownloadReportJSONRequestBody, reqEditors ...RequestEditorFn) (*DownloadReportResponse, error)
|
|
|
|
// ResetPinWithResponse request
|
|
ResetPinWithResponse(ctx context.Context, reportId string, reqEditors ...RequestEditorFn) (*ResetPinResponse, error)
|
|
|
|
// ValidatePinWithBodyWithResponse request with any body
|
|
ValidatePinWithBodyWithResponse(ctx context.Context, reportId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidatePinResponse, error)
|
|
|
|
ValidatePinWithResponse(ctx context.Context, reportId string, body ValidatePinJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidatePinResponse, error)
|
|
|
|
// UpdateSmtpConfigurationWithBodyWithResponse request with any body
|
|
UpdateSmtpConfigurationWithBodyWithResponse(ctx context.Context, systemSettingsId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSmtpConfigurationResponse, error)
|
|
|
|
UpdateSmtpConfigurationWithResponse(ctx context.Context, systemSettingsId string, body UpdateSmtpConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSmtpConfigurationResponse, error)
|
|
|
|
// DisableAccessToEntitiesInTransferWithBodyWithResponse request with any body
|
|
DisableAccessToEntitiesInTransferWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DisableAccessToEntitiesInTransferResponse, error)
|
|
|
|
DisableAccessToEntitiesInTransferWithResponse(ctx context.Context, body DisableAccessToEntitiesInTransferJSONRequestBody, reqEditors ...RequestEditorFn) (*DisableAccessToEntitiesInTransferResponse, error)
|
|
|
|
// EnableAccessToEntitiesInTransferWithResponse request
|
|
EnableAccessToEntitiesInTransferWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*EnableAccessToEntitiesInTransferResponse, error)
|
|
|
|
// UsersExistWithBodyWithResponse request with any body
|
|
UsersExistWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersExistResponse, error)
|
|
|
|
UsersExistWithResponse(ctx context.Context, body UsersExistJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersExistResponse, error)
|
|
|
|
// HandleCleanupOnSourceRegionWithResponse request
|
|
HandleCleanupOnSourceRegionWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HandleCleanupOnSourceRegionResponse, error)
|
|
|
|
// HandleTransferCompletedOnSourceRegionWithResponse request
|
|
HandleTransferCompletedOnSourceRegionWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HandleTransferCompletedOnSourceRegionResponse, error)
|
|
|
|
// HandleTransferCompletedFailureWithBodyWithResponse request with any body
|
|
HandleTransferCompletedFailureWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HandleTransferCompletedFailureResponse, error)
|
|
|
|
HandleTransferCompletedFailureWithResponse(ctx context.Context, workspaceId string, body HandleTransferCompletedFailureJSONRequestBody, reqEditors ...RequestEditorFn) (*HandleTransferCompletedFailureResponse, error)
|
|
|
|
// HandleTransferCompletedSuccessWithBodyWithResponse request with any body
|
|
HandleTransferCompletedSuccessWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HandleTransferCompletedSuccessResponse, error)
|
|
|
|
HandleTransferCompletedSuccessWithResponse(ctx context.Context, workspaceId string, body HandleTransferCompletedSuccessJSONRequestBody, reqEditors ...RequestEditorFn) (*HandleTransferCompletedSuccessResponse, error)
|
|
|
|
// GetAllUsersWithResponse request
|
|
GetAllUsersWithResponse(ctx context.Context, params *GetAllUsersParams, reqEditors ...RequestEditorFn) (*GetAllUsersResponse, error)
|
|
|
|
// GetUserInfoWithBodyWithResponse request with any body
|
|
GetUserInfoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserInfoResponse, error)
|
|
|
|
GetUserInfoWithResponse(ctx context.Context, body GetUserInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserInfoResponse, error)
|
|
|
|
// GetUserMembershipsAndInvitesWithBodyWithResponse request with any body
|
|
GetUserMembershipsAndInvitesWithBodyWithResponse(ctx context.Context, params *GetUserMembershipsAndInvitesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserMembershipsAndInvitesResponse, error)
|
|
|
|
GetUserMembershipsAndInvitesWithResponse(ctx context.Context, params *GetUserMembershipsAndInvitesParams, body GetUserMembershipsAndInvitesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserMembershipsAndInvitesResponse, error)
|
|
|
|
// CheckForNewsletterSubscriptionWithResponse request
|
|
CheckForNewsletterSubscriptionWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*CheckForNewsletterSubscriptionResponse, error)
|
|
|
|
// AddNotificationsWithBodyWithResponse request with any body
|
|
AddNotificationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddNotificationsResponse, error)
|
|
|
|
// GetNewsWithResponse request
|
|
GetNewsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNewsResponse, error)
|
|
|
|
// DeleteNewsWithResponse request
|
|
DeleteNewsWithResponse(ctx context.Context, newsId string, reqEditors ...RequestEditorFn) (*DeleteNewsResponse, error)
|
|
|
|
// UpdateNewsWithBodyWithResponse request with any body
|
|
UpdateNewsWithBodyWithResponse(ctx context.Context, newsId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNewsResponse, error)
|
|
|
|
// SearchAllUsersWithResponse request
|
|
SearchAllUsersWithResponse(ctx context.Context, params *SearchAllUsersParams, reqEditors ...RequestEditorFn) (*SearchAllUsersResponse, error)
|
|
|
|
// NumberOfUsersRegisteredWithResponse request
|
|
NumberOfUsersRegisteredWithResponse(ctx context.Context, params *NumberOfUsersRegisteredParams, reqEditors ...RequestEditorFn) (*NumberOfUsersRegisteredResponse, error)
|
|
|
|
// GetUsersOnWorkspaceWithResponse request
|
|
GetUsersOnWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetUsersOnWorkspaceParams, reqEditors ...RequestEditorFn) (*GetUsersOnWorkspaceResponse, error)
|
|
|
|
// BulkEditUsersWithBodyWithResponse request with any body
|
|
BulkEditUsersWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BulkEditUsersResponse, error)
|
|
|
|
BulkEditUsersWithResponse(ctx context.Context, workspaceId string, body BulkEditUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*BulkEditUsersResponse, error)
|
|
|
|
// GetUsersOfWorkspace5WithResponse request
|
|
GetUsersOfWorkspace5WithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace5Params, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspace5Response, error)
|
|
|
|
// GetInfoWithBodyWithResponse request with any body
|
|
GetInfoWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInfoResponse, error)
|
|
|
|
GetInfoWithResponse(ctx context.Context, workspaceId string, body GetInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInfoResponse, error)
|
|
|
|
// GetMembersInfoWithResponse request
|
|
GetMembersInfoWithResponse(ctx context.Context, workspaceId string, params *GetMembersInfoParams, reqEditors ...RequestEditorFn) (*GetMembersInfoResponse, error)
|
|
|
|
// GetUserNamesWithBodyWithResponse request with any body
|
|
GetUserNamesWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetUserNamesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserNamesResponse, error)
|
|
|
|
GetUserNamesWithResponse(ctx context.Context, workspaceId string, params *GetUserNamesParams, body GetUserNamesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserNamesResponse, error)
|
|
|
|
// FindPoliciesToBeApprovedByUserWithResponse request
|
|
FindPoliciesToBeApprovedByUserWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*FindPoliciesToBeApprovedByUserResponse, error)
|
|
|
|
// GetUsersAndUsersFromUserGroupsAssignedToProjectWithResponse request
|
|
GetUsersAndUsersFromUserGroupsAssignedToProjectWithResponse(ctx context.Context, workspaceId string, projectId string, params *GetUsersAndUsersFromUserGroupsAssignedToProjectParams, reqEditors ...RequestEditorFn) (*GetUsersAndUsersFromUserGroupsAssignedToProjectResponse, error)
|
|
|
|
// GetUsersForProjectMembersFilterWithBodyWithResponse request with any body
|
|
GetUsersForProjectMembersFilterWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersForProjectMembersFilterResponse, error)
|
|
|
|
GetUsersForProjectMembersFilterWithResponse(ctx context.Context, workspaceId string, projectId string, body GetUsersForProjectMembersFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersForProjectMembersFilterResponse, error)
|
|
|
|
// GetUsersForAttendanceReportFilter1WithBodyWithResponse request with any body
|
|
GetUsersForAttendanceReportFilter1WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersForAttendanceReportFilter1Response, error)
|
|
|
|
GetUsersForAttendanceReportFilter1WithResponse(ctx context.Context, workspaceId string, body GetUsersForAttendanceReportFilter1JSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersForAttendanceReportFilter1Response, error)
|
|
|
|
// GetUsersOfWorkspace4WithResponse request
|
|
GetUsersOfWorkspace4WithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace4Params, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspace4Response, error)
|
|
|
|
// GetUsersForReportFilterOldWithResponse request
|
|
GetUsersForReportFilterOldWithResponse(ctx context.Context, workspaceId string, params *GetUsersForReportFilterOldParams, reqEditors ...RequestEditorFn) (*GetUsersForReportFilterOldResponse, error)
|
|
|
|
// GetUsersForReportFilterWithBodyWithResponse request with any body
|
|
GetUsersForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersForReportFilterResponse, error)
|
|
|
|
GetUsersForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetUsersForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersForReportFilterResponse, error)
|
|
|
|
// GetUsersOfUserGroupWithResponse request
|
|
GetUsersOfUserGroupWithResponse(ctx context.Context, workspaceId string, userGroupId string, params *GetUsersOfUserGroupParams, reqEditors ...RequestEditorFn) (*GetUsersOfUserGroupResponse, error)
|
|
|
|
// GetUsersOfWorkspace3WithResponse request
|
|
GetUsersOfWorkspace3WithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace3Params, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspace3Response, error)
|
|
|
|
// GetUsersOfWorkspace2WithResponse request
|
|
GetUsersOfWorkspace2WithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace2Params, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspace2Response, error)
|
|
|
|
// GetUserWithResponse request
|
|
GetUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
|
|
|
|
// UpdateTimeTrackingSettings1WithBodyWithResponse request with any body
|
|
UpdateTimeTrackingSettings1WithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimeTrackingSettings1Response, error)
|
|
|
|
UpdateTimeTrackingSettings1WithResponse(ctx context.Context, userId string, body UpdateTimeTrackingSettings1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimeTrackingSettings1Response, error)
|
|
|
|
// UpdateDashboardSelectionWithBodyWithResponse request with any body
|
|
UpdateDashboardSelectionWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDashboardSelectionResponse, error)
|
|
|
|
UpdateDashboardSelectionWithResponse(ctx context.Context, userId string, body UpdateDashboardSelectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDashboardSelectionResponse, error)
|
|
|
|
// SetDefaultWorkspaceWithResponse request
|
|
SetDefaultWorkspaceWithResponse(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*SetDefaultWorkspaceResponse, error)
|
|
|
|
// DeleteUserWithBodyWithResponse request with any body
|
|
DeleteUserWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)
|
|
|
|
DeleteUserWithResponse(ctx context.Context, userId string, body DeleteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)
|
|
|
|
// ChangeEmailWithBodyWithResponse request with any body
|
|
ChangeEmailWithBodyWithResponse(ctx context.Context, userId string, params *ChangeEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeEmailResponse, error)
|
|
|
|
ChangeEmailWithResponse(ctx context.Context, userId string, params *ChangeEmailParams, body ChangeEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeEmailResponse, error)
|
|
|
|
// HasPendingEmailChangeWithResponse request
|
|
HasPendingEmailChangeWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*HasPendingEmailChangeResponse, error)
|
|
|
|
// UpdateLangWithBodyWithResponse request with any body
|
|
UpdateLangWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLangResponse, error)
|
|
|
|
UpdateLangWithResponse(ctx context.Context, userId string, body UpdateLangJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLangResponse, error)
|
|
|
|
// MarkAsRead1WithBodyWithResponse request with any body
|
|
MarkAsRead1WithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkAsRead1Response, error)
|
|
|
|
MarkAsRead1WithResponse(ctx context.Context, userId string, body MarkAsRead1JSONRequestBody, reqEditors ...RequestEditorFn) (*MarkAsRead1Response, error)
|
|
|
|
// MarkAsReadWithBodyWithResponse request with any body
|
|
MarkAsReadWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkAsReadResponse, error)
|
|
|
|
MarkAsReadWithResponse(ctx context.Context, userId string, body MarkAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkAsReadResponse, error)
|
|
|
|
// ChangeNameAdminWithBodyWithResponse request with any body
|
|
ChangeNameAdminWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeNameAdminResponse, error)
|
|
|
|
ChangeNameAdminWithResponse(ctx context.Context, userId string, body ChangeNameAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeNameAdminResponse, error)
|
|
|
|
// GetNewsForUserWithResponse request
|
|
GetNewsForUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetNewsForUserResponse, error)
|
|
|
|
// ReadNewsWithBodyWithResponse request with any body
|
|
ReadNewsWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReadNewsResponse, error)
|
|
|
|
ReadNewsWithResponse(ctx context.Context, userId string, body ReadNewsJSONRequestBody, reqEditors ...RequestEditorFn) (*ReadNewsResponse, error)
|
|
|
|
// GetNotificationsWithResponse request
|
|
GetNotificationsWithResponse(ctx context.Context, userId string, params *GetNotificationsParams, reqEditors ...RequestEditorFn) (*GetNotificationsResponse, error)
|
|
|
|
// UpdatePictureWithBodyWithResponse request with any body
|
|
UpdatePictureWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePictureResponse, error)
|
|
|
|
UpdatePictureWithResponse(ctx context.Context, userId string, body UpdatePictureJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePictureResponse, error)
|
|
|
|
// UpdateNameAndProfilePictureWithBodyWithResponse request with any body
|
|
UpdateNameAndProfilePictureWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNameAndProfilePictureResponse, error)
|
|
|
|
UpdateNameAndProfilePictureWithResponse(ctx context.Context, userId string, body UpdateNameAndProfilePictureJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNameAndProfilePictureResponse, error)
|
|
|
|
// UpdateSettingsWithBodyWithResponse request with any body
|
|
UpdateSettingsWithBodyWithResponse(ctx context.Context, userId string, params *UpdateSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error)
|
|
|
|
UpdateSettingsWithResponse(ctx context.Context, userId string, params *UpdateSettingsParams, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error)
|
|
|
|
// UpdateSummaryReportSettingsWithBodyWithResponse request with any body
|
|
UpdateSummaryReportSettingsWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSummaryReportSettingsResponse, error)
|
|
|
|
UpdateSummaryReportSettingsWithResponse(ctx context.Context, userId string, body UpdateSummaryReportSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSummaryReportSettingsResponse, error)
|
|
|
|
// UpdateTimeTrackingSettingsWithBodyWithResponse request with any body
|
|
UpdateTimeTrackingSettingsWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimeTrackingSettingsResponse, error)
|
|
|
|
UpdateTimeTrackingSettingsWithResponse(ctx context.Context, userId string, body UpdateTimeTrackingSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimeTrackingSettingsResponse, error)
|
|
|
|
// UpdateTimezoneWithBodyWithResponse request with any body
|
|
UpdateTimezoneWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimezoneResponse, error)
|
|
|
|
UpdateTimezoneWithResponse(ctx context.Context, userId string, body UpdateTimezoneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimezoneResponse, error)
|
|
|
|
// GetVerificationCampaignNotificationsWithResponse request
|
|
GetVerificationCampaignNotificationsWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetVerificationCampaignNotificationsResponse, error)
|
|
|
|
// MarkNotificationsAsReadWithBodyWithResponse request with any body
|
|
MarkNotificationsAsReadWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkNotificationsAsReadResponse, error)
|
|
|
|
MarkNotificationsAsReadWithResponse(ctx context.Context, userId string, body MarkNotificationsAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkNotificationsAsReadResponse, error)
|
|
|
|
// GetWorkCapacityForUserWithResponse request
|
|
GetWorkCapacityForUserWithResponse(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkCapacityForUserResponse, error)
|
|
|
|
// GetUsersWorkingDaysWithResponse request
|
|
GetUsersWorkingDaysWithResponse(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*GetUsersWorkingDaysResponse, error)
|
|
|
|
// UploadImageWithBodyWithResponse request with any body
|
|
UploadImageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadImageResponse, error)
|
|
|
|
// GetAllUnfinishedWalkthroughTypesWithResponse request
|
|
GetAllUnfinishedWalkthroughTypesWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetAllUnfinishedWalkthroughTypesResponse, error)
|
|
|
|
// FinishWalkthroughWithBodyWithResponse request with any body
|
|
FinishWalkthroughWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FinishWalkthroughResponse, error)
|
|
|
|
FinishWalkthroughWithResponse(ctx context.Context, userId string, body FinishWalkthroughJSONRequestBody, reqEditors ...RequestEditorFn) (*FinishWalkthroughResponse, error)
|
|
|
|
// GetOwnerEmailByWorkspaceIdWithResponse request
|
|
GetOwnerEmailByWorkspaceIdWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetOwnerEmailByWorkspaceIdResponse, error)
|
|
|
|
// GetWorkspacesOfUserWithResponse request
|
|
GetWorkspacesOfUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWorkspacesOfUserResponse, error)
|
|
|
|
// CreateWithBodyWithResponse request with any body
|
|
CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResponse, error)
|
|
|
|
CreateWithResponse(ctx context.Context, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResponse, error)
|
|
|
|
// GetWorkspaceInfoWithResponse request
|
|
GetWorkspaceInfoWithResponse(ctx context.Context, params *GetWorkspaceInfoParams, reqEditors ...RequestEditorFn) (*GetWorkspaceInfoResponse, error)
|
|
|
|
// InsertLegacyPlanNotificationsWithBodyWithResponse request with any body
|
|
InsertLegacyPlanNotificationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InsertLegacyPlanNotificationsResponse, error)
|
|
|
|
InsertLegacyPlanNotificationsWithResponse(ctx context.Context, body InsertLegacyPlanNotificationsJSONRequestBody, reqEditors ...RequestEditorFn) (*InsertLegacyPlanNotificationsResponse, error)
|
|
|
|
// GetPermissionsToUserForWorkspacesWithBodyWithResponse request with any body
|
|
GetPermissionsToUserForWorkspacesWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetPermissionsToUserForWorkspacesResponse, error)
|
|
|
|
GetPermissionsToUserForWorkspacesWithResponse(ctx context.Context, userId string, body GetPermissionsToUserForWorkspacesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetPermissionsToUserForWorkspacesResponse, error)
|
|
|
|
// LeaveWorkspaceWithResponse request
|
|
LeaveWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*LeaveWorkspaceResponse, error)
|
|
|
|
// GetWorkspaceByIdWithResponse request
|
|
GetWorkspaceByIdWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkspaceByIdResponse, error)
|
|
|
|
// UpdateWorkspaceWithBodyWithResponse request with any body
|
|
UpdateWorkspaceWithBodyWithResponse(ctx context.Context, workspaceId string, params *UpdateWorkspaceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkspaceResponse, error)
|
|
|
|
UpdateWorkspaceWithResponse(ctx context.Context, workspaceId string, params *UpdateWorkspaceParams, body UpdateWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkspaceResponse, error)
|
|
|
|
// GetABTestingWithResponse request
|
|
GetABTestingWithResponse(ctx context.Context, workspaceId string, params *GetABTestingParams, reqEditors ...RequestEditorFn) (*GetABTestingResponse, error)
|
|
|
|
// GetActiveMembersWithResponse request
|
|
GetActiveMembersWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetActiveMembersResponse, error)
|
|
|
|
// UninstallWithBodyWithResponse request with any body
|
|
UninstallWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UninstallResponse, error)
|
|
|
|
UninstallWithResponse(ctx context.Context, workspaceId string, body UninstallJSONRequestBody, reqEditors ...RequestEditorFn) (*UninstallResponse, error)
|
|
|
|
// GetInstalledAddonsWithResponse request
|
|
GetInstalledAddonsWithResponse(ctx context.Context, workspaceId string, params *GetInstalledAddonsParams, reqEditors ...RequestEditorFn) (*GetInstalledAddonsResponse, error)
|
|
|
|
// InstallWithBodyWithResponse request with any body
|
|
InstallWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InstallResponse, error)
|
|
|
|
InstallWithResponse(ctx context.Context, workspaceId string, body InstallJSONRequestBody, reqEditors ...RequestEditorFn) (*InstallResponse, error)
|
|
|
|
// GetInstalledAddonsIdNamePairWithResponse request
|
|
GetInstalledAddonsIdNamePairWithResponse(ctx context.Context, workspaceId string, params *GetInstalledAddonsIdNamePairParams, reqEditors ...RequestEditorFn) (*GetInstalledAddonsIdNamePairResponse, error)
|
|
|
|
// GetInstalledAddonsByKeysWithBodyWithResponse request with any body
|
|
GetInstalledAddonsByKeysWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInstalledAddonsByKeysResponse, error)
|
|
|
|
GetInstalledAddonsByKeysWithResponse(ctx context.Context, workspaceId string, body GetInstalledAddonsByKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInstalledAddonsByKeysResponse, error)
|
|
|
|
// Uninstall1WithResponse request
|
|
Uninstall1WithResponse(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*Uninstall1Response, error)
|
|
|
|
// GetAddonByIdWithResponse request
|
|
GetAddonByIdWithResponse(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*GetAddonByIdResponse, error)
|
|
|
|
// UpdateSettings1WithBodyWithResponse request with any body
|
|
UpdateSettings1WithBodyWithResponse(ctx context.Context, workspaceId string, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSettings1Response, error)
|
|
|
|
UpdateSettings1WithResponse(ctx context.Context, workspaceId string, addonId string, body UpdateSettings1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSettings1Response, error)
|
|
|
|
// UpdateStatus3WithBodyWithResponse request with any body
|
|
UpdateStatus3WithBodyWithResponse(ctx context.Context, workspaceId string, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatus3Response, error)
|
|
|
|
UpdateStatus3WithResponse(ctx context.Context, workspaceId string, addonId string, body UpdateStatus3JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatus3Response, error)
|
|
|
|
// GetAddonUserJWTWithResponse request
|
|
GetAddonUserJWTWithResponse(ctx context.Context, workspaceId string, addonId string, params *GetAddonUserJWTParams, reqEditors ...RequestEditorFn) (*GetAddonUserJWTResponse, error)
|
|
|
|
// GetAddonWebhooksWithResponse request
|
|
GetAddonWebhooksWithResponse(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*GetAddonWebhooksResponse, error)
|
|
|
|
// RemoveUninstalledAddonWithResponse request
|
|
RemoveUninstalledAddonWithResponse(ctx context.Context, workspaceId string, addonKey string, reqEditors ...RequestEditorFn) (*RemoveUninstalledAddonResponse, error)
|
|
|
|
// ListOfWorkspace1WithResponse request
|
|
ListOfWorkspace1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*ListOfWorkspace1Response, error)
|
|
|
|
// Create20WithBodyWithResponse request with any body
|
|
Create20WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create20Response, error)
|
|
|
|
Create20WithResponse(ctx context.Context, workspaceId string, body Create20JSONRequestBody, reqEditors ...RequestEditorFn) (*Create20Response, error)
|
|
|
|
// Delete18WithResponse request
|
|
Delete18WithResponse(ctx context.Context, workspaceId string, alertId string, reqEditors ...RequestEditorFn) (*Delete18Response, error)
|
|
|
|
// Update11WithBodyWithResponse request with any body
|
|
Update11WithBodyWithResponse(ctx context.Context, workspaceId string, alertId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update11Response, error)
|
|
|
|
Update11WithResponse(ctx context.Context, workspaceId string, alertId string, body Update11JSONRequestBody, reqEditors ...RequestEditorFn) (*Update11Response, error)
|
|
|
|
// GetAllowedUpdatesWithResponse request
|
|
GetAllowedUpdatesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetAllowedUpdatesResponse, error)
|
|
|
|
// ApproveRequestsWithBodyWithResponse request with any body
|
|
ApproveRequestsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApproveRequestsResponse, error)
|
|
|
|
ApproveRequestsWithResponse(ctx context.Context, workspaceId string, body ApproveRequestsJSONRequestBody, reqEditors ...RequestEditorFn) (*ApproveRequestsResponse, error)
|
|
|
|
// CountWithBodyWithResponse request with any body
|
|
CountWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CountResponse, error)
|
|
|
|
CountWithResponse(ctx context.Context, workspaceId string, body CountJSONRequestBody, reqEditors ...RequestEditorFn) (*CountResponse, error)
|
|
|
|
// HasPendingWithResponse request
|
|
HasPendingWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HasPendingResponse, error)
|
|
|
|
// RemindManagersToApproveWithBodyWithResponse request with any body
|
|
RemindManagersToApproveWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemindManagersToApproveResponse, error)
|
|
|
|
RemindManagersToApproveWithResponse(ctx context.Context, workspaceId string, body RemindManagersToApproveJSONRequestBody, reqEditors ...RequestEditorFn) (*RemindManagersToApproveResponse, error)
|
|
|
|
// RemindUsersToSubmitWithBodyWithResponse request with any body
|
|
RemindUsersToSubmitWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemindUsersToSubmitResponse, error)
|
|
|
|
RemindUsersToSubmitWithResponse(ctx context.Context, workspaceId string, body RemindUsersToSubmitJSONRequestBody, reqEditors ...RequestEditorFn) (*RemindUsersToSubmitResponse, error)
|
|
|
|
// GetApprovalGroupsWithBodyWithResponse request with any body
|
|
GetApprovalGroupsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApprovalGroupsResponse, error)
|
|
|
|
GetApprovalGroupsWithResponse(ctx context.Context, workspaceId string, body GetApprovalGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApprovalGroupsResponse, error)
|
|
|
|
// GetUnsubmittedSummariesWithBodyWithResponse request with any body
|
|
GetUnsubmittedSummariesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUnsubmittedSummariesResponse, error)
|
|
|
|
GetUnsubmittedSummariesWithResponse(ctx context.Context, workspaceId string, body GetUnsubmittedSummariesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUnsubmittedSummariesResponse, error)
|
|
|
|
// WithdrawAllOfWorkspaceWithResponse request
|
|
WithdrawAllOfWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*WithdrawAllOfWorkspaceResponse, error)
|
|
|
|
// GetRequestsByWorkspaceWithResponse request
|
|
GetRequestsByWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetRequestsByWorkspaceResponse, error)
|
|
|
|
// GetApprovalRequestWithResponse request
|
|
GetApprovalRequestWithResponse(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*GetApprovalRequestResponse, error)
|
|
|
|
// UpdateStatus2WithBodyWithResponse request with any body
|
|
UpdateStatus2WithBodyWithResponse(ctx context.Context, workspaceId string, approvalRequestId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatus2Response, error)
|
|
|
|
UpdateStatus2WithResponse(ctx context.Context, workspaceId string, approvalRequestId string, body UpdateStatus2JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatus2Response, error)
|
|
|
|
// GetApprovalDashboardWithResponse request
|
|
GetApprovalDashboardWithResponse(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*GetApprovalDashboardResponse, error)
|
|
|
|
// GetApprovalDetailsWithResponse request
|
|
GetApprovalDetailsWithResponse(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*GetApprovalDetailsResponse, error)
|
|
|
|
// FetchCustomAttributesWithBodyWithResponse request with any body
|
|
FetchCustomAttributesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FetchCustomAttributesResponse, error)
|
|
|
|
FetchCustomAttributesWithResponse(ctx context.Context, workspaceId string, body FetchCustomAttributesJSONRequestBody, reqEditors ...RequestEditorFn) (*FetchCustomAttributesResponse, error)
|
|
|
|
// CheckWorkspaceTransferPossibilityWithResponse request
|
|
CheckWorkspaceTransferPossibilityWithResponse(ctx context.Context, workspaceId string, params *CheckWorkspaceTransferPossibilityParams, reqEditors ...RequestEditorFn) (*CheckWorkspaceTransferPossibilityResponse, error)
|
|
|
|
// DeleteMany3WithBodyWithResponse request with any body
|
|
DeleteMany3WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMany3Response, error)
|
|
|
|
DeleteMany3WithResponse(ctx context.Context, workspaceId string, body DeleteMany3JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMany3Response, error)
|
|
|
|
// GetClients1WithResponse request
|
|
GetClients1WithResponse(ctx context.Context, workspaceId string, params *GetClients1Params, reqEditors ...RequestEditorFn) (*GetClients1Response, error)
|
|
|
|
// UpdateMany2WithBodyWithResponse request with any body
|
|
UpdateMany2WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMany2Response, error)
|
|
|
|
UpdateMany2WithResponse(ctx context.Context, workspaceId string, body UpdateMany2JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMany2Response, error)
|
|
|
|
// Create19WithBodyWithResponse request with any body
|
|
Create19WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create19Response, error)
|
|
|
|
Create19WithResponse(ctx context.Context, workspaceId string, body Create19JSONRequestBody, reqEditors ...RequestEditorFn) (*Create19Response, error)
|
|
|
|
// GetArchivePermissionsWithBodyWithResponse request with any body
|
|
GetArchivePermissionsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetArchivePermissionsResponse, error)
|
|
|
|
GetArchivePermissionsWithResponse(ctx context.Context, workspaceId string, body GetArchivePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetArchivePermissionsResponse, error)
|
|
|
|
// HaveRelatedTasksWithBodyWithResponse request with any body
|
|
HaveRelatedTasksWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HaveRelatedTasksResponse, error)
|
|
|
|
HaveRelatedTasksWithResponse(ctx context.Context, workspaceId string, body HaveRelatedTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*HaveRelatedTasksResponse, error)
|
|
|
|
// GetClientsOfIdsWithBodyWithResponse request with any body
|
|
GetClientsOfIdsWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetClientsOfIdsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetClientsOfIdsResponse, error)
|
|
|
|
GetClientsOfIdsWithResponse(ctx context.Context, workspaceId string, params *GetClientsOfIdsParams, body GetClientsOfIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetClientsOfIdsResponse, error)
|
|
|
|
// GetClientsForInvoiceFilter1WithResponse request
|
|
GetClientsForInvoiceFilter1WithResponse(ctx context.Context, workspaceId string, params *GetClientsForInvoiceFilter1Params, reqEditors ...RequestEditorFn) (*GetClientsForInvoiceFilter1Response, error)
|
|
|
|
// GetClients2WithResponse request
|
|
GetClients2WithResponse(ctx context.Context, workspaceId string, params *GetClients2Params, reqEditors ...RequestEditorFn) (*GetClients2Response, error)
|
|
|
|
// GetClientsForReportFilterWithResponse request
|
|
GetClientsForReportFilterWithResponse(ctx context.Context, workspaceId string, params *GetClientsForReportFilterParams, reqEditors ...RequestEditorFn) (*GetClientsForReportFilterResponse, error)
|
|
|
|
// GetClientIdsForReportFilterWithResponse request
|
|
GetClientIdsForReportFilterWithResponse(ctx context.Context, workspaceId string, params *GetClientIdsForReportFilterParams, reqEditors ...RequestEditorFn) (*GetClientIdsForReportFilterResponse, error)
|
|
|
|
// GetTimeOffPoliciesAndHolidaysForClientWithBodyWithResponse request with any body
|
|
GetTimeOffPoliciesAndHolidaysForClientWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysForClientResponse, error)
|
|
|
|
GetTimeOffPoliciesAndHolidaysForClientWithResponse(ctx context.Context, workspaceId string, body GetTimeOffPoliciesAndHolidaysForClientJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysForClientResponse, error)
|
|
|
|
// Delete17WithResponse request
|
|
Delete17WithResponse(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*Delete17Response, error)
|
|
|
|
// GetClientWithResponse request
|
|
GetClientWithResponse(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*GetClientResponse, error)
|
|
|
|
// GetProjectsArchivePermissionsWithResponse request
|
|
GetProjectsArchivePermissionsWithResponse(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*GetProjectsArchivePermissionsResponse, error)
|
|
|
|
// Update10WithBodyWithResponse request with any body
|
|
Update10WithBodyWithResponse(ctx context.Context, workspaceId string, id string, params *Update10Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update10Response, error)
|
|
|
|
Update10WithResponse(ctx context.Context, workspaceId string, id string, params *Update10Params, body Update10JSONRequestBody, reqEditors ...RequestEditorFn) (*Update10Response, error)
|
|
|
|
// SetCostRate2WithBodyWithResponse request with any body
|
|
SetCostRate2WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCostRate2Response, error)
|
|
|
|
SetCostRate2WithResponse(ctx context.Context, workspaceId string, body SetCostRate2JSONRequestBody, reqEditors ...RequestEditorFn) (*SetCostRate2Response, error)
|
|
|
|
// GetCouponWithResponse request
|
|
GetCouponWithResponse(ctx context.Context, workspaceId string, params *GetCouponParams, reqEditors ...RequestEditorFn) (*GetCouponResponse, error)
|
|
|
|
// GetWorkspaceCurrenciesWithResponse request
|
|
GetWorkspaceCurrenciesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkspaceCurrenciesResponse, error)
|
|
|
|
// CreateCurrencyWithBodyWithResponse request with any body
|
|
CreateCurrencyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCurrencyResponse, error)
|
|
|
|
CreateCurrencyWithResponse(ctx context.Context, workspaceId string, body CreateCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCurrencyResponse, error)
|
|
|
|
// RemoveCurrencyWithResponse request
|
|
RemoveCurrencyWithResponse(ctx context.Context, workspaceId string, currencyId string, reqEditors ...RequestEditorFn) (*RemoveCurrencyResponse, error)
|
|
|
|
// GetCurrencyWithResponse request
|
|
GetCurrencyWithResponse(ctx context.Context, workspaceId string, currencyId string, reqEditors ...RequestEditorFn) (*GetCurrencyResponse, error)
|
|
|
|
// UpdateCurrencyCodeWithBodyWithResponse request with any body
|
|
UpdateCurrencyCodeWithBodyWithResponse(ctx context.Context, workspaceId string, currencyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCurrencyCodeResponse, error)
|
|
|
|
UpdateCurrencyCodeWithResponse(ctx context.Context, workspaceId string, currencyId string, body UpdateCurrencyCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCurrencyCodeResponse, error)
|
|
|
|
// SetCurrencyWithBodyWithResponse request with any body
|
|
SetCurrencyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCurrencyResponse, error)
|
|
|
|
SetCurrencyWithResponse(ctx context.Context, workspaceId string, body SetCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*SetCurrencyResponse, error)
|
|
|
|
// OfWorkspaceWithResponse request
|
|
OfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *OfWorkspaceParams, reqEditors ...RequestEditorFn) (*OfWorkspaceResponse, error)
|
|
|
|
// Create18WithBodyWithResponse request with any body
|
|
Create18WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create18Response, error)
|
|
|
|
Create18WithResponse(ctx context.Context, workspaceId string, body Create18JSONRequestBody, reqEditors ...RequestEditorFn) (*Create18Response, error)
|
|
|
|
// OfWorkspaceWithRequiredAvailabilityWithResponse request
|
|
OfWorkspaceWithRequiredAvailabilityWithResponse(ctx context.Context, workspaceId string, params *OfWorkspaceWithRequiredAvailabilityParams, reqEditors ...RequestEditorFn) (*OfWorkspaceWithRequiredAvailabilityResponse, error)
|
|
|
|
// Delete16WithResponse request
|
|
Delete16WithResponse(ctx context.Context, workspaceId string, customFieldId string, reqEditors ...RequestEditorFn) (*Delete16Response, error)
|
|
|
|
// EditWithBodyWithResponse request with any body
|
|
EditWithBodyWithResponse(ctx context.Context, workspaceId string, customFieldId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditResponse, error)
|
|
|
|
EditWithResponse(ctx context.Context, workspaceId string, customFieldId string, body EditJSONRequestBody, reqEditors ...RequestEditorFn) (*EditResponse, error)
|
|
|
|
// RemoveDefaultValueOfProjectWithResponse request
|
|
RemoveDefaultValueOfProjectWithResponse(ctx context.Context, workspaceId string, customFieldId string, projectId string, reqEditors ...RequestEditorFn) (*RemoveDefaultValueOfProjectResponse, error)
|
|
|
|
// EditDefaultValuesWithBodyWithResponse request with any body
|
|
EditDefaultValuesWithBodyWithResponse(ctx context.Context, workspaceId string, customFieldId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditDefaultValuesResponse, error)
|
|
|
|
EditDefaultValuesWithResponse(ctx context.Context, workspaceId string, customFieldId string, projectId string, body EditDefaultValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*EditDefaultValuesResponse, error)
|
|
|
|
// GetOfProjectWithResponse request
|
|
GetOfProjectWithResponse(ctx context.Context, workspaceId string, projectId string, params *GetOfProjectParams, reqEditors ...RequestEditorFn) (*GetOfProjectResponse, error)
|
|
|
|
// UpdateCustomLabelsWithBodyWithResponse request with any body
|
|
UpdateCustomLabelsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomLabelsResponse, error)
|
|
|
|
UpdateCustomLabelsWithResponse(ctx context.Context, workspaceId string, body UpdateCustomLabelsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomLabelsResponse, error)
|
|
|
|
// AddEmailWithBodyWithResponse request with any body
|
|
AddEmailWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, params *AddEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddEmailResponse, error)
|
|
|
|
AddEmailWithResponse(ctx context.Context, workspaceId string, userId string, params *AddEmailParams, body AddEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*AddEmailResponse, error)
|
|
|
|
// DeleteManyExpensesWithBodyWithResponse request with any body
|
|
DeleteManyExpensesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteManyExpensesResponse, error)
|
|
|
|
DeleteManyExpensesWithResponse(ctx context.Context, workspaceId string, body DeleteManyExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteManyExpensesResponse, error)
|
|
|
|
// GetExpensesWithResponse request
|
|
GetExpensesWithResponse(ctx context.Context, workspaceId string, params *GetExpensesParams, reqEditors ...RequestEditorFn) (*GetExpensesResponse, error)
|
|
|
|
// CreateExpenseWithBodyWithResponse request with any body
|
|
CreateExpenseWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateExpenseResponse, error)
|
|
|
|
// GetCategoriesWithResponse request
|
|
GetCategoriesWithResponse(ctx context.Context, workspaceId string, params *GetCategoriesParams, reqEditors ...RequestEditorFn) (*GetCategoriesResponse, error)
|
|
|
|
// Create17WithBodyWithResponse request with any body
|
|
Create17WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create17Response, error)
|
|
|
|
Create17WithResponse(ctx context.Context, workspaceId string, body Create17JSONRequestBody, reqEditors ...RequestEditorFn) (*Create17Response, error)
|
|
|
|
// GetCategoriesByIdsWithResponse request
|
|
GetCategoriesByIdsWithResponse(ctx context.Context, workspaceId string, params *GetCategoriesByIdsParams, reqEditors ...RequestEditorFn) (*GetCategoriesByIdsResponse, error)
|
|
|
|
// DeleteCategoryWithResponse request
|
|
DeleteCategoryWithResponse(ctx context.Context, workspaceId string, categoryId string, reqEditors ...RequestEditorFn) (*DeleteCategoryResponse, error)
|
|
|
|
// UpdateCategoryWithBodyWithResponse request with any body
|
|
UpdateCategoryWithBodyWithResponse(ctx context.Context, workspaceId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCategoryResponse, error)
|
|
|
|
UpdateCategoryWithResponse(ctx context.Context, workspaceId string, categoryId string, body UpdateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCategoryResponse, error)
|
|
|
|
// UpdateStatus1WithBodyWithResponse request with any body
|
|
UpdateStatus1WithBodyWithResponse(ctx context.Context, workspaceId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatus1Response, error)
|
|
|
|
UpdateStatus1WithResponse(ctx context.Context, workspaceId string, categoryId string, body UpdateStatus1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatus1Response, error)
|
|
|
|
// GetExpensesInDateRangeWithResponse request
|
|
GetExpensesInDateRangeWithResponse(ctx context.Context, workspaceId string, params *GetExpensesInDateRangeParams, reqEditors ...RequestEditorFn) (*GetExpensesInDateRangeResponse, error)
|
|
|
|
// UpdateInvoicedStatus1WithBodyWithResponse request with any body
|
|
UpdateInvoicedStatus1WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoicedStatus1Response, error)
|
|
|
|
UpdateInvoicedStatus1WithResponse(ctx context.Context, workspaceId string, body UpdateInvoicedStatus1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoicedStatus1Response, error)
|
|
|
|
// RestoreManyExpensesWithBodyWithResponse request with any body
|
|
RestoreManyExpensesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RestoreManyExpensesResponse, error)
|
|
|
|
RestoreManyExpensesWithResponse(ctx context.Context, workspaceId string, body RestoreManyExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*RestoreManyExpensesResponse, error)
|
|
|
|
// DeleteExpenseWithResponse request
|
|
DeleteExpenseWithResponse(ctx context.Context, workspaceId string, expenseId string, reqEditors ...RequestEditorFn) (*DeleteExpenseResponse, error)
|
|
|
|
// GetExpenseWithResponse request
|
|
GetExpenseWithResponse(ctx context.Context, workspaceId string, expenseId string, reqEditors ...RequestEditorFn) (*GetExpenseResponse, error)
|
|
|
|
// UpdateExpenseWithBodyWithResponse request with any body
|
|
UpdateExpenseWithBodyWithResponse(ctx context.Context, workspaceId string, expenseId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateExpenseResponse, error)
|
|
|
|
// DownloadFileWithResponse request
|
|
DownloadFileWithResponse(ctx context.Context, workspaceId string, expenseId string, fileId string, reqEditors ...RequestEditorFn) (*DownloadFileResponse, error)
|
|
|
|
// ImportFileDataWithBodyWithResponse request with any body
|
|
ImportFileDataWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportFileDataResponse, error)
|
|
|
|
ImportFileDataWithResponse(ctx context.Context, workspaceId string, body ImportFileDataJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportFileDataResponse, error)
|
|
|
|
// CheckUsersForImportWithResponse request
|
|
CheckUsersForImportWithResponse(ctx context.Context, workspaceId string, fileImportId string, reqEditors ...RequestEditorFn) (*CheckUsersForImportResponse, error)
|
|
|
|
// GetHolidaysWithResponse request
|
|
GetHolidaysWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetHolidaysResponse, error)
|
|
|
|
// Create16WithBodyWithResponse request with any body
|
|
Create16WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create16Response, error)
|
|
|
|
Create16WithResponse(ctx context.Context, workspaceId string, body Create16JSONRequestBody, reqEditors ...RequestEditorFn) (*Create16Response, error)
|
|
|
|
// Delete15WithResponse request
|
|
Delete15WithResponse(ctx context.Context, workspaceId string, holidayId string, reqEditors ...RequestEditorFn) (*Delete15Response, error)
|
|
|
|
// Update9WithBodyWithResponse request with any body
|
|
Update9WithBodyWithResponse(ctx context.Context, workspaceId string, holidayId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update9Response, error)
|
|
|
|
Update9WithResponse(ctx context.Context, workspaceId string, holidayId string, body Update9JSONRequestBody, reqEditors ...RequestEditorFn) (*Update9Response, error)
|
|
|
|
// SetHourlyRate2WithBodyWithResponse request with any body
|
|
SetHourlyRate2WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHourlyRate2Response, error)
|
|
|
|
SetHourlyRate2WithResponse(ctx context.Context, workspaceId string, body SetHourlyRate2JSONRequestBody, reqEditors ...RequestEditorFn) (*SetHourlyRate2Response, error)
|
|
|
|
// GetInvitedEmailsInfoWithBodyWithResponse request with any body
|
|
GetInvitedEmailsInfoWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInvitedEmailsInfoResponse, error)
|
|
|
|
GetInvitedEmailsInfoWithResponse(ctx context.Context, workspaceId string, body GetInvitedEmailsInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInvitedEmailsInfoResponse, error)
|
|
|
|
// GetInvoiceEmailTemplatesWithResponse request
|
|
GetInvoiceEmailTemplatesWithResponse(ctx context.Context, workspaceId string, params *GetInvoiceEmailTemplatesParams, reqEditors ...RequestEditorFn) (*GetInvoiceEmailTemplatesResponse, error)
|
|
|
|
// UpsertInvoiceEmailTemplateWithBodyWithResponse request with any body
|
|
UpsertInvoiceEmailTemplateWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertInvoiceEmailTemplateResponse, error)
|
|
|
|
UpsertInvoiceEmailTemplateWithResponse(ctx context.Context, workspaceId string, body UpsertInvoiceEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertInvoiceEmailTemplateResponse, error)
|
|
|
|
// GetInvoiceEmailDataWithResponse request
|
|
GetInvoiceEmailDataWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, reqEditors ...RequestEditorFn) (*GetInvoiceEmailDataResponse, error)
|
|
|
|
// SendInvoiceEmailWithBodyWithResponse request with any body
|
|
SendInvoiceEmailWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendInvoiceEmailResponse, error)
|
|
|
|
SendInvoiceEmailWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, body SendInvoiceEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*SendInvoiceEmailResponse, error)
|
|
|
|
// CreateInvoiceWithBodyWithResponse request with any body
|
|
CreateInvoiceWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoiceResponse, error)
|
|
|
|
CreateInvoiceWithResponse(ctx context.Context, workspaceId string, body CreateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoiceResponse, error)
|
|
|
|
// GetAllCompaniesWithResponse request
|
|
GetAllCompaniesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetAllCompaniesResponse, error)
|
|
|
|
// CreateCompanyWithBodyWithResponse request with any body
|
|
CreateCompanyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCompanyResponse, error)
|
|
|
|
CreateCompanyWithResponse(ctx context.Context, workspaceId string, body CreateCompanyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCompanyResponse, error)
|
|
|
|
// UpdateCompaniesInWorkspaceWithBodyWithResponse request with any body
|
|
UpdateCompaniesInWorkspaceWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCompaniesInWorkspaceResponse, error)
|
|
|
|
UpdateCompaniesInWorkspaceWithResponse(ctx context.Context, workspaceId string, body UpdateCompaniesInWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCompaniesInWorkspaceResponse, error)
|
|
|
|
// CountAllCompaniesWithResponse request
|
|
CountAllCompaniesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*CountAllCompaniesResponse, error)
|
|
|
|
// GetClientsForInvoiceFilterWithResponse request
|
|
GetClientsForInvoiceFilterWithResponse(ctx context.Context, workspaceId string, params *GetClientsForInvoiceFilterParams, reqEditors ...RequestEditorFn) (*GetClientsForInvoiceFilterResponse, error)
|
|
|
|
// DeleteCompanyWithResponse request
|
|
DeleteCompanyWithResponse(ctx context.Context, workspaceId string, companyId string, reqEditors ...RequestEditorFn) (*DeleteCompanyResponse, error)
|
|
|
|
// GetCompanyByIdWithResponse request
|
|
GetCompanyByIdWithResponse(ctx context.Context, workspaceId string, companyId string, reqEditors ...RequestEditorFn) (*GetCompanyByIdResponse, error)
|
|
|
|
// UpdateCompanyWithBodyWithResponse request with any body
|
|
UpdateCompanyWithBodyWithResponse(ctx context.Context, workspaceId string, companyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCompanyResponse, error)
|
|
|
|
UpdateCompanyWithResponse(ctx context.Context, workspaceId string, companyId string, body UpdateCompanyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCompanyResponse, error)
|
|
|
|
// GetInvoicesInfoWithBodyWithResponse request with any body
|
|
GetInvoicesInfoWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInvoicesInfoResponse, error)
|
|
|
|
GetInvoicesInfoWithResponse(ctx context.Context, workspaceId string, body GetInvoicesInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInvoicesInfoResponse, error)
|
|
|
|
// GetInvoiceItemTypesWithResponse request
|
|
GetInvoiceItemTypesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetInvoiceItemTypesResponse, error)
|
|
|
|
// CreateInvoiceItemTypeWithBodyWithResponse request with any body
|
|
CreateInvoiceItemTypeWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoiceItemTypeResponse, error)
|
|
|
|
CreateInvoiceItemTypeWithResponse(ctx context.Context, workspaceId string, body CreateInvoiceItemTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoiceItemTypeResponse, error)
|
|
|
|
// DeleteInvoiceItemTypeWithResponse request
|
|
DeleteInvoiceItemTypeWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*DeleteInvoiceItemTypeResponse, error)
|
|
|
|
// UpdateInvoiceItemTypeWithBodyWithResponse request with any body
|
|
UpdateInvoiceItemTypeWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceItemTypeResponse, error)
|
|
|
|
UpdateInvoiceItemTypeWithResponse(ctx context.Context, workspaceId string, id string, body UpdateInvoiceItemTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceItemTypeResponse, error)
|
|
|
|
// GetNextInvoiceNumberWithResponse request
|
|
GetNextInvoiceNumberWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetNextInvoiceNumberResponse, error)
|
|
|
|
// GetInvoicePermissionsWithResponse request
|
|
GetInvoicePermissionsWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetInvoicePermissionsResponse, error)
|
|
|
|
// UpdateInvoicePermissionsWithBodyWithResponse request with any body
|
|
UpdateInvoicePermissionsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoicePermissionsResponse, error)
|
|
|
|
UpdateInvoicePermissionsWithResponse(ctx context.Context, workspaceId string, body UpdateInvoicePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoicePermissionsResponse, error)
|
|
|
|
// CanUserManageInvoicesWithResponse request
|
|
CanUserManageInvoicesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*CanUserManageInvoicesResponse, error)
|
|
|
|
// GetInvoiceSettingsWithResponse request
|
|
GetInvoiceSettingsWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetInvoiceSettingsResponse, error)
|
|
|
|
// UpdateInvoiceSettingsWithBodyWithResponse request with any body
|
|
UpdateInvoiceSettingsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceSettingsResponse, error)
|
|
|
|
UpdateInvoiceSettingsWithResponse(ctx context.Context, workspaceId string, body UpdateInvoiceSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceSettingsResponse, error)
|
|
|
|
// DeleteInvoiceWithResponse request
|
|
DeleteInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*DeleteInvoiceResponse, error)
|
|
|
|
// GetInvoiceWithResponse request
|
|
GetInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*GetInvoiceResponse, error)
|
|
|
|
// UpdateInvoiceWithBodyWithResponse request with any body
|
|
UpdateInvoiceWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error)
|
|
|
|
UpdateInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error)
|
|
|
|
// DuplicateInvoiceWithResponse request
|
|
DuplicateInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*DuplicateInvoiceResponse, error)
|
|
|
|
// ExportInvoiceWithResponse request
|
|
ExportInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, params *ExportInvoiceParams, reqEditors ...RequestEditorFn) (*ExportInvoiceResponse, error)
|
|
|
|
// ImportTimeAndExpensesWithBodyWithResponse request with any body
|
|
ImportTimeAndExpensesWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportTimeAndExpensesResponse, error)
|
|
|
|
ImportTimeAndExpensesWithResponse(ctx context.Context, workspaceId string, invoiceId string, body ImportTimeAndExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportTimeAndExpensesResponse, error)
|
|
|
|
// AddInvoiceItemWithResponse request
|
|
AddInvoiceItemWithResponse(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*AddInvoiceItemResponse, error)
|
|
|
|
// ReorderInvoiceItem1WithBodyWithResponse request with any body
|
|
ReorderInvoiceItem1WithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReorderInvoiceItem1Response, error)
|
|
|
|
ReorderInvoiceItem1WithResponse(ctx context.Context, workspaceId string, invoiceId string, body ReorderInvoiceItem1JSONRequestBody, reqEditors ...RequestEditorFn) (*ReorderInvoiceItem1Response, error)
|
|
|
|
// EditInvoiceItemWithBodyWithResponse request with any body
|
|
EditInvoiceItemWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceItemOrder int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditInvoiceItemResponse, error)
|
|
|
|
EditInvoiceItemWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceItemOrder int32, body EditInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*EditInvoiceItemResponse, error)
|
|
|
|
// DeleteInvoiceItemsWithResponse request
|
|
DeleteInvoiceItemsWithResponse(ctx context.Context, workspaceId string, invoiceId string, params *DeleteInvoiceItemsParams, reqEditors ...RequestEditorFn) (*DeleteInvoiceItemsResponse, error)
|
|
|
|
// GetPaymentsForInvoiceWithResponse request
|
|
GetPaymentsForInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, params *GetPaymentsForInvoiceParams, reqEditors ...RequestEditorFn) (*GetPaymentsForInvoiceResponse, error)
|
|
|
|
// CreateInvoicePaymentWithBodyWithResponse request with any body
|
|
CreateInvoicePaymentWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoicePaymentResponse, error)
|
|
|
|
CreateInvoicePaymentWithResponse(ctx context.Context, workspaceId string, invoiceId string, body CreateInvoicePaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoicePaymentResponse, error)
|
|
|
|
// DeletePaymentByIdWithResponse request
|
|
DeletePaymentByIdWithResponse(ctx context.Context, workspaceId string, invoiceId string, paymentId string, reqEditors ...RequestEditorFn) (*DeletePaymentByIdResponse, error)
|
|
|
|
// ChangeInvoiceStatusWithBodyWithResponse request with any body
|
|
ChangeInvoiceStatusWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeInvoiceStatusResponse, error)
|
|
|
|
ChangeInvoiceStatusWithResponse(ctx context.Context, workspaceId string, invoiceId string, body ChangeInvoiceStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeInvoiceStatusResponse, error)
|
|
|
|
// AuthorizationCheckWithResponse request
|
|
AuthorizationCheckWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*AuthorizationCheckResponse, error)
|
|
|
|
// IsAvailableWithResponse request
|
|
IsAvailableWithResponse(ctx context.Context, workspaceId string, params *IsAvailableParams, reqEditors ...RequestEditorFn) (*IsAvailableResponse, error)
|
|
|
|
// IsAvailable1WithResponse request
|
|
IsAvailable1WithResponse(ctx context.Context, workspaceId string, userId string, params *IsAvailable1Params, reqEditors ...RequestEditorFn) (*IsAvailable1Response, error)
|
|
|
|
// GeneratePinCodeWithResponse request
|
|
GeneratePinCodeWithResponse(ctx context.Context, workspaceId string, params *GeneratePinCodeParams, reqEditors ...RequestEditorFn) (*GeneratePinCodeResponse, error)
|
|
|
|
// GeneratePinCodeForUserWithResponse request
|
|
GeneratePinCodeForUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GeneratePinCodeForUserResponse, error)
|
|
|
|
// GetUserPinCodeWithResponse request
|
|
GetUserPinCodeWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetUserPinCodeResponse, error)
|
|
|
|
// UpdatePinCodeWithBodyWithResponse request with any body
|
|
UpdatePinCodeWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePinCodeResponse, error)
|
|
|
|
UpdatePinCodeWithResponse(ctx context.Context, workspaceId string, userId string, body UpdatePinCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePinCodeResponse, error)
|
|
|
|
// GetKiosksOfWorkspaceWithResponse request
|
|
GetKiosksOfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetKiosksOfWorkspaceParams, reqEditors ...RequestEditorFn) (*GetKiosksOfWorkspaceResponse, error)
|
|
|
|
// Create15WithBodyWithResponse request with any body
|
|
Create15WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create15Response, error)
|
|
|
|
Create15WithResponse(ctx context.Context, workspaceId string, body Create15JSONRequestBody, reqEditors ...RequestEditorFn) (*Create15Response, error)
|
|
|
|
// UpdateBreakDefaultsWithBodyWithResponse request with any body
|
|
UpdateBreakDefaultsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBreakDefaultsResponse, error)
|
|
|
|
UpdateBreakDefaultsWithResponse(ctx context.Context, workspaceId string, body UpdateBreakDefaultsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBreakDefaultsResponse, error)
|
|
|
|
// GetTotalCountOfKiosksOnWorkspaceWithResponse request
|
|
GetTotalCountOfKiosksOnWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetTotalCountOfKiosksOnWorkspaceResponse, error)
|
|
|
|
// UpdateDefaultsWithBodyWithResponse request with any body
|
|
UpdateDefaultsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDefaultsResponse, error)
|
|
|
|
UpdateDefaultsWithResponse(ctx context.Context, workspaceId string, body UpdateDefaultsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDefaultsResponse, error)
|
|
|
|
// HasActiveKiosksWithResponse request
|
|
HasActiveKiosksWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HasActiveKiosksResponse, error)
|
|
|
|
// GetWithProjectWithBodyWithResponse request with any body
|
|
GetWithProjectWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWithProjectResponse, error)
|
|
|
|
GetWithProjectWithResponse(ctx context.Context, workspaceId string, body GetWithProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*GetWithProjectResponse, error)
|
|
|
|
// GetWithTaskWithBodyWithResponse request with any body
|
|
GetWithTaskWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWithTaskResponse, error)
|
|
|
|
GetWithTaskWithResponse(ctx context.Context, workspaceId string, projectId string, body GetWithTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*GetWithTaskResponse, error)
|
|
|
|
// GetForReportFilterWithResponse request
|
|
GetForReportFilterWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetForReportFilterResponse, error)
|
|
|
|
// GetWithoutDefaultsWithResponse request
|
|
GetWithoutDefaultsWithResponse(ctx context.Context, workspaceId string, params *GetWithoutDefaultsParams, reqEditors ...RequestEditorFn) (*GetWithoutDefaultsResponse, error)
|
|
|
|
// DeleteKioskWithResponse request
|
|
DeleteKioskWithResponse(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*DeleteKioskResponse, error)
|
|
|
|
// GetKioskByIdWithResponse request
|
|
GetKioskByIdWithResponse(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*GetKioskByIdResponse, error)
|
|
|
|
// Update8WithBodyWithResponse request with any body
|
|
Update8WithBodyWithResponse(ctx context.Context, workspaceId string, kioskId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update8Response, error)
|
|
|
|
Update8WithResponse(ctx context.Context, workspaceId string, kioskId string, body Update8JSONRequestBody, reqEditors ...RequestEditorFn) (*Update8Response, error)
|
|
|
|
// ExportAssigneesWithResponse request
|
|
ExportAssigneesWithResponse(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*ExportAssigneesResponse, error)
|
|
|
|
// HasEntryInProgressWithResponse request
|
|
HasEntryInProgressWithResponse(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*HasEntryInProgressResponse, error)
|
|
|
|
// UpdateStatusWithBodyWithResponse request with any body
|
|
UpdateStatusWithBodyWithResponse(ctx context.Context, workspaceId string, kioskId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatusResponse, error)
|
|
|
|
UpdateStatusWithResponse(ctx context.Context, workspaceId string, kioskId string, body UpdateStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatusResponse, error)
|
|
|
|
// AcknowledgeLegacyPlanNotificationsWithResponse request
|
|
AcknowledgeLegacyPlanNotificationsWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*AcknowledgeLegacyPlanNotificationsResponse, error)
|
|
|
|
// GetLegacyPlanUpgradeDataWithResponse request
|
|
GetLegacyPlanUpgradeDataWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetLegacyPlanUpgradeDataResponse, error)
|
|
|
|
// AddLimitedUsersWithBodyWithResponse request with any body
|
|
AddLimitedUsersWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddLimitedUsersResponse, error)
|
|
|
|
AddLimitedUsersWithResponse(ctx context.Context, workspaceId string, body AddLimitedUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*AddLimitedUsersResponse, error)
|
|
|
|
// GetLimitedUsersCountWithResponse request
|
|
GetLimitedUsersCountWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetLimitedUsersCountResponse, error)
|
|
|
|
// GetMemberProfileWithResponse request
|
|
GetMemberProfileWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetMemberProfileResponse, error)
|
|
|
|
// UpdateMemberProfileWithBodyWithResponse request with any body
|
|
UpdateMemberProfileWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberProfileResponse, error)
|
|
|
|
UpdateMemberProfileWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateMemberProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberProfileResponse, error)
|
|
|
|
// UpdateMemberProfileWithAdditionalDataWithBodyWithResponse request with any body
|
|
UpdateMemberProfileWithAdditionalDataWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberProfileWithAdditionalDataResponse, error)
|
|
|
|
UpdateMemberProfileWithAdditionalDataWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateMemberProfileWithAdditionalDataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberProfileWithAdditionalDataResponse, error)
|
|
|
|
// UpdateMemberSettingsWithBodyWithResponse request with any body
|
|
UpdateMemberSettingsWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberSettingsResponse, error)
|
|
|
|
UpdateMemberSettingsWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateMemberSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberSettingsResponse, error)
|
|
|
|
// GetWeekStartWithResponse request
|
|
GetWeekStartWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetWeekStartResponse, error)
|
|
|
|
// UpdateMemberWorkingDaysAndCapacityWithBodyWithResponse request with any body
|
|
UpdateMemberWorkingDaysAndCapacityWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberWorkingDaysAndCapacityResponse, error)
|
|
|
|
UpdateMemberWorkingDaysAndCapacityWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateMemberWorkingDaysAndCapacityJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberWorkingDaysAndCapacityResponse, error)
|
|
|
|
// GetMembersCountWithResponse request
|
|
GetMembersCountWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetMembersCountResponse, error)
|
|
|
|
// FindNotInvitedEmailsInWithBodyWithResponse request with any body
|
|
FindNotInvitedEmailsInWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FindNotInvitedEmailsInResponse, error)
|
|
|
|
FindNotInvitedEmailsInWithResponse(ctx context.Context, workspaceId string, body FindNotInvitedEmailsInJSONRequestBody, reqEditors ...RequestEditorFn) (*FindNotInvitedEmailsInResponse, error)
|
|
|
|
// GetOrganizationWithResponse request
|
|
GetOrganizationWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error)
|
|
|
|
// Create14WithBodyWithResponse request with any body
|
|
Create14WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create14Response, error)
|
|
|
|
Create14WithResponse(ctx context.Context, workspaceId string, body Create14JSONRequestBody, reqEditors ...RequestEditorFn) (*Create14Response, error)
|
|
|
|
// GetOrganizationNameWithResponse request
|
|
GetOrganizationNameWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetOrganizationNameResponse, error)
|
|
|
|
// CheckAvailabilityOfDomainNameWithResponse request
|
|
CheckAvailabilityOfDomainNameWithResponse(ctx context.Context, workspaceId string, params *CheckAvailabilityOfDomainNameParams, reqEditors ...RequestEditorFn) (*CheckAvailabilityOfDomainNameResponse, error)
|
|
|
|
// DeleteOrganizationWithResponse request
|
|
DeleteOrganizationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error)
|
|
|
|
// UpdateOrganizationWithBodyWithResponse request with any body
|
|
UpdateOrganizationWithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
|
|
|
|
UpdateOrganizationWithResponse(ctx context.Context, workspaceId string, organizationId string, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
|
|
|
|
// GetLoginSettingsWithResponse request
|
|
GetLoginSettingsWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*GetLoginSettingsResponse, error)
|
|
|
|
// DeleteOAuth2ConfigurationWithResponse request
|
|
DeleteOAuth2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOAuth2ConfigurationResponse, error)
|
|
|
|
// GetOrganizationOAuth2ConfigurationWithResponse request
|
|
GetOrganizationOAuth2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*GetOrganizationOAuth2ConfigurationResponse, error)
|
|
|
|
// UpdateOAuth2Configuration1WithBodyWithResponse request with any body
|
|
UpdateOAuth2Configuration1WithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOAuth2Configuration1Response, error)
|
|
|
|
UpdateOAuth2Configuration1WithResponse(ctx context.Context, workspaceId string, organizationId string, body UpdateOAuth2Configuration1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOAuth2Configuration1Response, error)
|
|
|
|
// TestOAuth2ConfigurationWithBodyWithResponse request with any body
|
|
TestOAuth2ConfigurationWithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestOAuth2ConfigurationResponse, error)
|
|
|
|
TestOAuth2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, body TestOAuth2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestOAuth2ConfigurationResponse, error)
|
|
|
|
// DeleteSAML2ConfigurationWithResponse request
|
|
DeleteSAML2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*DeleteSAML2ConfigurationResponse, error)
|
|
|
|
// GetOrganizationSAML2ConfigurationWithResponse request
|
|
GetOrganizationSAML2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*GetOrganizationSAML2ConfigurationResponse, error)
|
|
|
|
// UpdateSAML2ConfigurationWithBodyWithResponse request with any body
|
|
UpdateSAML2ConfigurationWithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSAML2ConfigurationResponse, error)
|
|
|
|
UpdateSAML2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, body UpdateSAML2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSAML2ConfigurationResponse, error)
|
|
|
|
// TestSAML2ConfigurationWithBodyWithResponse request with any body
|
|
TestSAML2ConfigurationWithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestSAML2ConfigurationResponse, error)
|
|
|
|
TestSAML2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, body TestSAML2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestSAML2ConfigurationResponse, error)
|
|
|
|
// GetAllOrganizationsOfUserWithResponse request
|
|
GetAllOrganizationsOfUserWithResponse(ctx context.Context, workspaceId string, userId string, params *GetAllOrganizationsOfUserParams, reqEditors ...RequestEditorFn) (*GetAllOrganizationsOfUserResponse, error)
|
|
|
|
// GetWorkspaceOwnerWithResponse request
|
|
GetWorkspaceOwnerWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkspaceOwnerResponse, error)
|
|
|
|
// TransferOwnershipWithBodyWithResponse request with any body
|
|
TransferOwnershipWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferOwnershipResponse, error)
|
|
|
|
TransferOwnershipWithResponse(ctx context.Context, workspaceId string, body TransferOwnershipJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferOwnershipResponse, error)
|
|
|
|
// GetWorkspaceOwnerTimeZoneWithResponse request
|
|
GetWorkspaceOwnerTimeZoneWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkspaceOwnerTimeZoneResponse, error)
|
|
|
|
// CancelSubscriptionWithBodyWithResponse request with any body
|
|
CancelSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error)
|
|
|
|
CancelSubscriptionWithResponse(ctx context.Context, workspaceId string, body CancelSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error)
|
|
|
|
// ConfirmPaymentWithResponse request
|
|
ConfirmPaymentWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*ConfirmPaymentResponse, error)
|
|
|
|
// GetCustomerInfoWithResponse request
|
|
GetCustomerInfoWithResponse(ctx context.Context, workspaceId string, params *GetCustomerInfoParams, reqEditors ...RequestEditorFn) (*GetCustomerInfoResponse, error)
|
|
|
|
// CreateCustomerWithBodyWithResponse request with any body
|
|
CreateCustomerWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error)
|
|
|
|
CreateCustomerWithResponse(ctx context.Context, workspaceId string, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error)
|
|
|
|
// UpdateCustomerWithBodyWithResponse request with any body
|
|
UpdateCustomerWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error)
|
|
|
|
UpdateCustomerWithResponse(ctx context.Context, workspaceId string, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error)
|
|
|
|
// EditInvoiceInformationWithBodyWithResponse request with any body
|
|
EditInvoiceInformationWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditInvoiceInformationResponse, error)
|
|
|
|
EditInvoiceInformationWithResponse(ctx context.Context, workspaceId string, body EditInvoiceInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*EditInvoiceInformationResponse, error)
|
|
|
|
// EditPaymentInformationWithBodyWithResponse request with any body
|
|
EditPaymentInformationWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditPaymentInformationResponse, error)
|
|
|
|
EditPaymentInformationWithResponse(ctx context.Context, workspaceId string, body EditPaymentInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*EditPaymentInformationResponse, error)
|
|
|
|
// ExtendTrialWithResponse request
|
|
ExtendTrialWithResponse(ctx context.Context, workspaceId string, params *ExtendTrialParams, reqEditors ...RequestEditorFn) (*ExtendTrialResponse, error)
|
|
|
|
// GetFeatureSubscriptionsWithResponse request
|
|
GetFeatureSubscriptionsWithResponse(ctx context.Context, workspaceId string, params *GetFeatureSubscriptionsParams, reqEditors ...RequestEditorFn) (*GetFeatureSubscriptionsResponse, error)
|
|
|
|
// InitialUpgradeWithBodyWithResponse request with any body
|
|
InitialUpgradeWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InitialUpgradeResponse, error)
|
|
|
|
InitialUpgradeWithResponse(ctx context.Context, workspaceId string, body InitialUpgradeJSONRequestBody, reqEditors ...RequestEditorFn) (*InitialUpgradeResponse, error)
|
|
|
|
// GetInvoiceInfoWithResponse request
|
|
GetInvoiceInfoWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetInvoiceInfoResponse, error)
|
|
|
|
// GetInvoicesWithResponse request
|
|
GetInvoicesWithResponse(ctx context.Context, workspaceId string, params *GetInvoicesParams, reqEditors ...RequestEditorFn) (*GetInvoicesResponse, error)
|
|
|
|
// GetInvoicesCountWithResponse request
|
|
GetInvoicesCountWithResponse(ctx context.Context, workspaceId string, params *GetInvoicesCountParams, reqEditors ...RequestEditorFn) (*GetInvoicesCountResponse, error)
|
|
|
|
// GetLastOpenInvoiceWithResponse request
|
|
GetLastOpenInvoiceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetLastOpenInvoiceResponse, error)
|
|
|
|
// GetInvoicesListWithResponse request
|
|
GetInvoicesListWithResponse(ctx context.Context, workspaceId string, params *GetInvoicesListParams, reqEditors ...RequestEditorFn) (*GetInvoicesListResponse, error)
|
|
|
|
// GetPaymentDateWithResponse request
|
|
GetPaymentDateWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetPaymentDateResponse, error)
|
|
|
|
// GetPaymentInfoWithResponse request
|
|
GetPaymentInfoWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetPaymentInfoResponse, error)
|
|
|
|
// CreateSetupIntentForPaymentMethodWithBodyWithResponse request with any body
|
|
CreateSetupIntentForPaymentMethodWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSetupIntentForPaymentMethodResponse, error)
|
|
|
|
CreateSetupIntentForPaymentMethodWithResponse(ctx context.Context, workspaceId string, body CreateSetupIntentForPaymentMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSetupIntentForPaymentMethodResponse, error)
|
|
|
|
// PreviewUpgradeWithResponse request
|
|
PreviewUpgradeWithResponse(ctx context.Context, workspaceId string, params *PreviewUpgradeParams, reqEditors ...RequestEditorFn) (*PreviewUpgradeResponse, error)
|
|
|
|
// ReactivateSubscriptionWithResponse request
|
|
ReactivateSubscriptionWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*ReactivateSubscriptionResponse, error)
|
|
|
|
// GetScheduledInvoiceInfoWithResponse request
|
|
GetScheduledInvoiceInfoWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetScheduledInvoiceInfoResponse, error)
|
|
|
|
// UpdateUserSeatsWithBodyWithResponse request with any body
|
|
UpdateUserSeatsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserSeatsResponse, error)
|
|
|
|
UpdateUserSeatsWithResponse(ctx context.Context, workspaceId string, body UpdateUserSeatsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserSeatsResponse, error)
|
|
|
|
// CreateSetupIntentForInitialSubscriptionWithBodyWithResponse request with any body
|
|
CreateSetupIntentForInitialSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSetupIntentForInitialSubscriptionResponse, error)
|
|
|
|
CreateSetupIntentForInitialSubscriptionWithResponse(ctx context.Context, workspaceId string, body CreateSetupIntentForInitialSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSetupIntentForInitialSubscriptionResponse, error)
|
|
|
|
// CreateSubscriptionWithBodyWithResponse request with any body
|
|
CreateSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error)
|
|
|
|
CreateSubscriptionWithResponse(ctx context.Context, workspaceId string, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error)
|
|
|
|
// UpdateSubscriptionWithBodyWithResponse request with any body
|
|
UpdateSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error)
|
|
|
|
UpdateSubscriptionWithResponse(ctx context.Context, workspaceId string, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error)
|
|
|
|
// UpgradePreCheckWithResponse request
|
|
UpgradePreCheckWithResponse(ctx context.Context, workspaceId string, params *UpgradePreCheckParams, reqEditors ...RequestEditorFn) (*UpgradePreCheckResponse, error)
|
|
|
|
// DeleteSubscriptionWithBodyWithResponse request with any body
|
|
DeleteSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteSubscriptionResponse, error)
|
|
|
|
DeleteSubscriptionWithResponse(ctx context.Context, workspaceId string, body DeleteSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteSubscriptionResponse, error)
|
|
|
|
// TerminateTrialWithResponse request
|
|
TerminateTrialWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*TerminateTrialResponse, error)
|
|
|
|
// StartTrialWithResponse request
|
|
StartTrialWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*StartTrialResponse, error)
|
|
|
|
// WasRegionalEverAllowedWithResponse request
|
|
WasRegionalEverAllowedWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*WasRegionalEverAllowedResponse, error)
|
|
|
|
// FindForUserAndPolicyWithResponse request
|
|
FindForUserAndPolicyWithResponse(ctx context.Context, workspaceId string, policyId string, userId string, params *FindForUserAndPolicyParams, reqEditors ...RequestEditorFn) (*FindForUserAndPolicyResponse, error)
|
|
|
|
// GetClientsWithResponse request
|
|
GetClientsWithResponse(ctx context.Context, workspaceId string, params *GetClientsParams, reqEditors ...RequestEditorFn) (*GetClientsResponse, error)
|
|
|
|
// GetProjects3WithResponse request
|
|
GetProjects3WithResponse(ctx context.Context, workspaceId string, params *GetProjects3Params, reqEditors ...RequestEditorFn) (*GetProjects3Response, error)
|
|
|
|
// GetProjectFavoritesWithResponse request
|
|
GetProjectFavoritesWithResponse(ctx context.Context, workspaceId string, params *GetProjectFavoritesParams, reqEditors ...RequestEditorFn) (*GetProjectFavoritesResponse, error)
|
|
|
|
// GetTasks21WithResponse request
|
|
GetTasks21WithResponse(ctx context.Context, workspaceId string, projectId string, params *GetTasks21Params, reqEditors ...RequestEditorFn) (*GetTasks21Response, error)
|
|
|
|
// RecalculateProjectStatus1WithResponse request
|
|
RecalculateProjectStatus1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*RecalculateProjectStatus1Response, error)
|
|
|
|
// GetProjectAndTaskWithBodyWithResponse request with any body
|
|
GetProjectAndTaskWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectAndTaskResponse, error)
|
|
|
|
GetProjectAndTaskWithResponse(ctx context.Context, workspaceId string, body GetProjectAndTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectAndTaskResponse, error)
|
|
|
|
// DeleteMany2WithBodyWithResponse request with any body
|
|
DeleteMany2WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMany2Response, error)
|
|
|
|
DeleteMany2WithResponse(ctx context.Context, workspaceId string, body DeleteMany2JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMany2Response, error)
|
|
|
|
// GetProjects2WithResponse request
|
|
GetProjects2WithResponse(ctx context.Context, workspaceId string, params *GetProjects2Params, reqEditors ...RequestEditorFn) (*GetProjects2Response, error)
|
|
|
|
// UpdateMany1WithBodyWithResponse request with any body
|
|
UpdateMany1WithBodyWithResponse(ctx context.Context, workspaceId string, params *UpdateMany1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMany1Response, error)
|
|
|
|
UpdateMany1WithResponse(ctx context.Context, workspaceId string, params *UpdateMany1Params, body UpdateMany1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMany1Response, error)
|
|
|
|
// Create12WithBodyWithResponse request with any body
|
|
Create12WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create12Response, error)
|
|
|
|
Create12WithResponse(ctx context.Context, workspaceId string, body Create12JSONRequestBody, reqEditors ...RequestEditorFn) (*Create12Response, error)
|
|
|
|
// GetFilteredProjectsCountWithResponse request
|
|
GetFilteredProjectsCountWithResponse(ctx context.Context, workspaceId string, params *GetFilteredProjectsCountParams, reqEditors ...RequestEditorFn) (*GetFilteredProjectsCountResponse, error)
|
|
|
|
// GetFilteredProjectsWithBodyWithResponse request with any body
|
|
GetFilteredProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetFilteredProjectsResponse, error)
|
|
|
|
GetFilteredProjectsWithResponse(ctx context.Context, workspaceId string, body GetFilteredProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetFilteredProjectsResponse, error)
|
|
|
|
// CreateFromTemplateWithBodyWithResponse request with any body
|
|
CreateFromTemplateWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFromTemplateResponse, error)
|
|
|
|
CreateFromTemplateWithResponse(ctx context.Context, workspaceId string, body CreateFromTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFromTemplateResponse, error)
|
|
|
|
// GetProjectWithBodyWithResponse request with any body
|
|
GetProjectWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)
|
|
|
|
GetProjectWithResponse(ctx context.Context, workspaceId string, body GetProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)
|
|
|
|
// GetLastUsedProjectWithResponse request
|
|
GetLastUsedProjectWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetLastUsedProjectResponse, error)
|
|
|
|
// LastUsedProject1WithResponse request
|
|
LastUsedProject1WithResponse(ctx context.Context, workspaceId string, params *LastUsedProject1Params, reqEditors ...RequestEditorFn) (*LastUsedProject1Response, error)
|
|
|
|
// GetProjectsListWithResponse request
|
|
GetProjectsListWithResponse(ctx context.Context, workspaceId string, params *GetProjectsListParams, reqEditors ...RequestEditorFn) (*GetProjectsListResponse, error)
|
|
|
|
// HasManagerRole1WithResponse request
|
|
HasManagerRole1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HasManagerRole1Response, error)
|
|
|
|
// GetProjectsForReportFilterWithBodyWithResponse request with any body
|
|
GetProjectsForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectsForReportFilterResponse, error)
|
|
|
|
GetProjectsForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetProjectsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectsForReportFilterResponse, error)
|
|
|
|
// GetProjectIdsForReportFilterWithBodyWithResponse request with any body
|
|
GetProjectIdsForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectIdsForReportFilterResponse, error)
|
|
|
|
GetProjectIdsForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetProjectIdsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectIdsForReportFilterResponse, error)
|
|
|
|
// GetTasksByIdsWithBodyWithResponse request with any body
|
|
GetTasksByIdsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTasksByIdsResponse, error)
|
|
|
|
GetTasksByIdsWithResponse(ctx context.Context, workspaceId string, body GetTasksByIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTasksByIdsResponse, error)
|
|
|
|
// GetAllTasksWithBodyWithResponse request with any body
|
|
GetAllTasksWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetAllTasksResponse, error)
|
|
|
|
GetAllTasksWithResponse(ctx context.Context, workspaceId string, body GetAllTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*GetAllTasksResponse, error)
|
|
|
|
// GetTasksWithBodyWithResponse request with any body
|
|
GetTasksWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetTasksParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTasksResponse, error)
|
|
|
|
GetTasksWithResponse(ctx context.Context, workspaceId string, params *GetTasksParams, body GetTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTasksResponse, error)
|
|
|
|
// GetTasksForReportFilterWithBodyWithResponse request with any body
|
|
GetTasksForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTasksForReportFilterResponse, error)
|
|
|
|
GetTasksForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetTasksForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTasksForReportFilterResponse, error)
|
|
|
|
// GetTaskIdsForReportFilterWithBodyWithResponse request with any body
|
|
GetTaskIdsForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTaskIdsForReportFilterResponse, error)
|
|
|
|
GetTaskIdsForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetTaskIdsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTaskIdsForReportFilterResponse, error)
|
|
|
|
// GetTimeOffPoliciesAndHolidaysWithProjectsWithBodyWithResponse request with any body
|
|
GetTimeOffPoliciesAndHolidaysWithProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysWithProjectsResponse, error)
|
|
|
|
GetTimeOffPoliciesAndHolidaysWithProjectsWithResponse(ctx context.Context, workspaceId string, body GetTimeOffPoliciesAndHolidaysWithProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysWithProjectsResponse, error)
|
|
|
|
// GetLastUsedOfUserWithResponse request
|
|
GetLastUsedOfUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetLastUsedOfUserResponse, error)
|
|
|
|
// GetPermissionsToUserForProjectsWithBodyWithResponse request with any body
|
|
GetPermissionsToUserForProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetPermissionsToUserForProjectsResponse, error)
|
|
|
|
GetPermissionsToUserForProjectsWithResponse(ctx context.Context, workspaceId string, userId string, body GetPermissionsToUserForProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetPermissionsToUserForProjectsResponse, error)
|
|
|
|
// Delete13WithResponse request
|
|
Delete13WithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*Delete13Response, error)
|
|
|
|
// GetProject1WithResponse request
|
|
GetProject1WithResponse(ctx context.Context, workspaceId string, projectId string, params *GetProject1Params, reqEditors ...RequestEditorFn) (*GetProject1Response, error)
|
|
|
|
// Update14WithBodyWithResponse request with any body
|
|
Update14WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, params *Update14Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update14Response, error)
|
|
|
|
Update14WithResponse(ctx context.Context, workspaceId string, projectId string, params *Update14Params, body Update14JSONRequestBody, reqEditors ...RequestEditorFn) (*Update14Response, error)
|
|
|
|
// Update6WithBodyWithResponse request with any body
|
|
Update6WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, params *Update6Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update6Response, error)
|
|
|
|
Update6WithResponse(ctx context.Context, workspaceId string, projectId string, params *Update6Params, body Update6JSONRequestBody, reqEditors ...RequestEditorFn) (*Update6Response, error)
|
|
|
|
// SetCostRate1WithBodyWithResponse request with any body
|
|
SetCostRate1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCostRate1Response, error)
|
|
|
|
SetCostRate1WithResponse(ctx context.Context, workspaceId string, projectId string, body SetCostRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*SetCostRate1Response, error)
|
|
|
|
// UpdateEstimateWithBodyWithResponse request with any body
|
|
UpdateEstimateWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEstimateResponse, error)
|
|
|
|
UpdateEstimateWithResponse(ctx context.Context, workspaceId string, projectId string, body UpdateEstimateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEstimateResponse, error)
|
|
|
|
// SetHourlyRate1WithBodyWithResponse request with any body
|
|
SetHourlyRate1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHourlyRate1Response, error)
|
|
|
|
SetHourlyRate1WithResponse(ctx context.Context, workspaceId string, projectId string, body SetHourlyRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*SetHourlyRate1Response, error)
|
|
|
|
// HasManagerRoleWithResponse request
|
|
HasManagerRoleWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*HasManagerRoleResponse, error)
|
|
|
|
// GetAuthsForProjectWithResponse request
|
|
GetAuthsForProjectWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*GetAuthsForProjectResponse, error)
|
|
|
|
// RecalculateProjectStatusWithResponse request
|
|
RecalculateProjectStatusWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*RecalculateProjectStatusResponse, error)
|
|
|
|
// GetTasks1WithResponse request
|
|
GetTasks1WithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*GetTasks1Response, error)
|
|
|
|
// Create13WithBodyWithResponse request with any body
|
|
Create13WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, params *Create13Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create13Response, error)
|
|
|
|
Create13WithResponse(ctx context.Context, workspaceId string, projectId string, params *Create13Params, body Create13JSONRequestBody, reqEditors ...RequestEditorFn) (*Create13Response, error)
|
|
|
|
// GetTasksAssignedToUserWithResponse request
|
|
GetTasksAssignedToUserWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*GetTasksAssignedToUserResponse, error)
|
|
|
|
// GetTimeOffPoliciesAndHolidaysWithTasksWithBodyWithResponse request with any body
|
|
GetTimeOffPoliciesAndHolidaysWithTasksWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysWithTasksResponse, error)
|
|
|
|
GetTimeOffPoliciesAndHolidaysWithTasksWithResponse(ctx context.Context, workspaceId string, projectId string, body GetTimeOffPoliciesAndHolidaysWithTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysWithTasksResponse, error)
|
|
|
|
// Update7WithBodyWithResponse request with any body
|
|
Update7WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, id string, params *Update7Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update7Response, error)
|
|
|
|
Update7WithResponse(ctx context.Context, workspaceId string, projectId string, id string, params *Update7Params, body Update7JSONRequestBody, reqEditors ...RequestEditorFn) (*Update7Response, error)
|
|
|
|
// SetCostRateWithBodyWithResponse request with any body
|
|
SetCostRateWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCostRateResponse, error)
|
|
|
|
SetCostRateWithResponse(ctx context.Context, workspaceId string, projectId string, id string, body SetCostRateJSONRequestBody, reqEditors ...RequestEditorFn) (*SetCostRateResponse, error)
|
|
|
|
// SetHourlyRateWithBodyWithResponse request with any body
|
|
SetHourlyRateWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHourlyRateResponse, error)
|
|
|
|
SetHourlyRateWithResponse(ctx context.Context, workspaceId string, projectId string, id string, body SetHourlyRateJSONRequestBody, reqEditors ...RequestEditorFn) (*SetHourlyRateResponse, error)
|
|
|
|
// Delete14WithResponse request
|
|
Delete14WithResponse(ctx context.Context, workspaceId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*Delete14Response, error)
|
|
|
|
// GetTaskAssignedToUserWithResponse request
|
|
GetTaskAssignedToUserWithResponse(ctx context.Context, workspaceId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*GetTaskAssignedToUserResponse, error)
|
|
|
|
// AddUsers1WithBodyWithResponse request with any body
|
|
AddUsers1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsers1Response, error)
|
|
|
|
AddUsers1WithResponse(ctx context.Context, workspaceId string, projectId string, body AddUsers1JSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsers1Response, error)
|
|
|
|
// GetStatusWithResponse request
|
|
GetStatusWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*GetStatusResponse, error)
|
|
|
|
// RemoveUserGroupMembershipWithResponse request
|
|
RemoveUserGroupMembershipWithResponse(ctx context.Context, workspaceId string, projectId string, usergroupId string, reqEditors ...RequestEditorFn) (*RemoveUserGroupMembershipResponse, error)
|
|
|
|
// GetUsers4WithResponse request
|
|
GetUsers4WithResponse(ctx context.Context, workspaceId string, projectId string, params *GetUsers4Params, reqEditors ...RequestEditorFn) (*GetUsers4Response, error)
|
|
|
|
// AddUsersCostRate1WithBodyWithResponse request with any body
|
|
AddUsersCostRate1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsersCostRate1Response, error)
|
|
|
|
AddUsersCostRate1WithResponse(ctx context.Context, workspaceId string, projectId string, userId string, body AddUsersCostRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsersCostRate1Response, error)
|
|
|
|
// AddUsersHourlyRate1WithBodyWithResponse request with any body
|
|
AddUsersHourlyRate1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsersHourlyRate1Response, error)
|
|
|
|
AddUsersHourlyRate1WithResponse(ctx context.Context, workspaceId string, projectId string, userId string, body AddUsersHourlyRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsersHourlyRate1Response, error)
|
|
|
|
// RemoveUserMembershipWithResponse request
|
|
RemoveUserMembershipWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, reqEditors ...RequestEditorFn) (*RemoveUserMembershipResponse, error)
|
|
|
|
// RemovePermissionsToUserWithBodyWithResponse request with any body
|
|
RemovePermissionsToUserWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemovePermissionsToUserResponse, error)
|
|
|
|
RemovePermissionsToUserWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, body RemovePermissionsToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*RemovePermissionsToUserResponse, error)
|
|
|
|
// GetPermissionsToUser1WithResponse request
|
|
GetPermissionsToUser1WithResponse(ctx context.Context, workspaceId string, projectId string, userId string, reqEditors ...RequestEditorFn) (*GetPermissionsToUser1Response, error)
|
|
|
|
// AddPermissionsToUserWithBodyWithResponse request with any body
|
|
AddPermissionsToUserWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddPermissionsToUserResponse, error)
|
|
|
|
AddPermissionsToUserWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, body AddPermissionsToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AddPermissionsToUserResponse, error)
|
|
|
|
// DisconnectWithResponse request
|
|
DisconnectWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*DisconnectResponse, error)
|
|
|
|
// ConnectWithBodyWithResponse request with any body
|
|
ConnectWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConnectResponse, error)
|
|
|
|
ConnectWithResponse(ctx context.Context, workspaceId string, body ConnectJSONRequestBody, reqEditors ...RequestEditorFn) (*ConnectResponse, error)
|
|
|
|
// Connect1WithResponse request
|
|
Connect1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*Connect1Response, error)
|
|
|
|
// SyncClientsWithBodyWithResponse request with any body
|
|
SyncClientsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncClientsResponse, error)
|
|
|
|
SyncClientsWithResponse(ctx context.Context, workspaceId string, body SyncClientsJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncClientsResponse, error)
|
|
|
|
// SyncProjectsWithBodyWithResponse request with any body
|
|
SyncProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncProjectsResponse, error)
|
|
|
|
SyncProjectsWithResponse(ctx context.Context, workspaceId string, body SyncProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncProjectsResponse, error)
|
|
|
|
// UpdateProjectsWithBodyWithResponse request with any body
|
|
UpdateProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectsResponse, error)
|
|
|
|
UpdateProjectsWithResponse(ctx context.Context, workspaceId string, body UpdateProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectsResponse, error)
|
|
|
|
// GetAllRegionsForUserAccountWithResponse request
|
|
GetAllRegionsForUserAccountWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetAllRegionsForUserAccountResponse, error)
|
|
|
|
// ListOfWorkspaceWithResponse request
|
|
ListOfWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*ListOfWorkspaceResponse, error)
|
|
|
|
// Create11WithBodyWithResponse request with any body
|
|
Create11WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create11Response, error)
|
|
|
|
Create11WithResponse(ctx context.Context, workspaceId string, body Create11JSONRequestBody, reqEditors ...RequestEditorFn) (*Create11Response, error)
|
|
|
|
// OfWorkspaceIdAndUserIdWithResponse request
|
|
OfWorkspaceIdAndUserIdWithResponse(ctx context.Context, workspaceId string, params *OfWorkspaceIdAndUserIdParams, reqEditors ...RequestEditorFn) (*OfWorkspaceIdAndUserIdResponse, error)
|
|
|
|
// Delete12WithResponse request
|
|
Delete12WithResponse(ctx context.Context, workspaceId string, reminderId string, reqEditors ...RequestEditorFn) (*Delete12Response, error)
|
|
|
|
// Update5WithBodyWithResponse request with any body
|
|
Update5WithBodyWithResponse(ctx context.Context, workspaceId string, reminderId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update5Response, error)
|
|
|
|
Update5WithResponse(ctx context.Context, workspaceId string, reminderId string, body Update5JSONRequestBody, reqEditors ...RequestEditorFn) (*Update5Response, error)
|
|
|
|
// GetDashboardInfoWithBodyWithResponse request with any body
|
|
GetDashboardInfoWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDashboardInfoResponse, error)
|
|
|
|
GetDashboardInfoWithResponse(ctx context.Context, workspaceId string, body GetDashboardInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetDashboardInfoResponse, error)
|
|
|
|
// GetMyMostTrackedWithResponse request
|
|
GetMyMostTrackedWithResponse(ctx context.Context, workspaceId string, params *GetMyMostTrackedParams, reqEditors ...RequestEditorFn) (*GetMyMostTrackedResponse, error)
|
|
|
|
// GetTeamActivitiesWithResponse request
|
|
GetTeamActivitiesWithResponse(ctx context.Context, workspaceId string, params *GetTeamActivitiesParams, reqEditors ...RequestEditorFn) (*GetTeamActivitiesResponse, error)
|
|
|
|
// GetAmountPreviewWithResponse request
|
|
GetAmountPreviewWithResponse(ctx context.Context, workspaceId string, params *GetAmountPreviewParams, reqEditors ...RequestEditorFn) (*GetAmountPreviewResponse, error)
|
|
|
|
// GetDraftAssignmentsCountWithBodyWithResponse request with any body
|
|
GetDraftAssignmentsCountWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDraftAssignmentsCountResponse, error)
|
|
|
|
GetDraftAssignmentsCountWithResponse(ctx context.Context, workspaceId string, body GetDraftAssignmentsCountJSONRequestBody, reqEditors ...RequestEditorFn) (*GetDraftAssignmentsCountResponse, error)
|
|
|
|
// GetProjectTotalsWithResponse request
|
|
GetProjectTotalsWithResponse(ctx context.Context, workspaceId string, params *GetProjectTotalsParams, reqEditors ...RequestEditorFn) (*GetProjectTotalsResponse, error)
|
|
|
|
// GetFilteredProjectTotalsWithBodyWithResponse request with any body
|
|
GetFilteredProjectTotalsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetFilteredProjectTotalsResponse, error)
|
|
|
|
GetFilteredProjectTotalsWithResponse(ctx context.Context, workspaceId string, body GetFilteredProjectTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetFilteredProjectTotalsResponse, error)
|
|
|
|
// GetProjectTotalsForSingleProjectWithResponse request
|
|
GetProjectTotalsForSingleProjectWithResponse(ctx context.Context, workspaceId string, projectId string, params *GetProjectTotalsForSingleProjectParams, reqEditors ...RequestEditorFn) (*GetProjectTotalsForSingleProjectResponse, error)
|
|
|
|
// GetProjectsForUserWithResponse request
|
|
GetProjectsForUserWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, params *GetProjectsForUserParams, reqEditors ...RequestEditorFn) (*GetProjectsForUserResponse, error)
|
|
|
|
// PublishAssignmentsWithBodyWithResponse request with any body
|
|
PublishAssignmentsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PublishAssignmentsResponse, error)
|
|
|
|
PublishAssignmentsWithResponse(ctx context.Context, workspaceId string, body PublishAssignmentsJSONRequestBody, reqEditors ...RequestEditorFn) (*PublishAssignmentsResponse, error)
|
|
|
|
// CreateRecurringWithBodyWithResponse request with any body
|
|
CreateRecurringWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRecurringResponse, error)
|
|
|
|
CreateRecurringWithResponse(ctx context.Context, workspaceId string, body CreateRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRecurringResponse, error)
|
|
|
|
// Delete11WithResponse request
|
|
Delete11WithResponse(ctx context.Context, workspaceId string, assignmentId string, params *Delete11Params, reqEditors ...RequestEditorFn) (*Delete11Response, error)
|
|
|
|
// EditRecurringWithBodyWithResponse request with any body
|
|
EditRecurringWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditRecurringResponse, error)
|
|
|
|
EditRecurringWithResponse(ctx context.Context, workspaceId string, assignmentId string, body EditRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*EditRecurringResponse, error)
|
|
|
|
// EditPeriodForRecurringWithBodyWithResponse request with any body
|
|
EditPeriodForRecurringWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditPeriodForRecurringResponse, error)
|
|
|
|
EditPeriodForRecurringWithResponse(ctx context.Context, workspaceId string, assignmentId string, body EditPeriodForRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*EditPeriodForRecurringResponse, error)
|
|
|
|
// EditRecurringPeriodWithBodyWithResponse request with any body
|
|
EditRecurringPeriodWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditRecurringPeriodResponse, error)
|
|
|
|
EditRecurringPeriodWithResponse(ctx context.Context, workspaceId string, assignmentId string, body EditRecurringPeriodJSONRequestBody, reqEditors ...RequestEditorFn) (*EditRecurringPeriodResponse, error)
|
|
|
|
// GetUserTotalsWithBodyWithResponse request with any body
|
|
GetUserTotalsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserTotalsResponse, error)
|
|
|
|
GetUserTotalsWithResponse(ctx context.Context, workspaceId string, body GetUserTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserTotalsResponse, error)
|
|
|
|
// GetAssignmentsForUserWithResponse request
|
|
GetAssignmentsForUserWithResponse(ctx context.Context, workspaceId string, userId string, params *GetAssignmentsForUserParams, reqEditors ...RequestEditorFn) (*GetAssignmentsForUserResponse, error)
|
|
|
|
// GetFilteredAssignmentsForUserWithBodyWithResponse request with any body
|
|
GetFilteredAssignmentsForUserWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetFilteredAssignmentsForUserResponse, error)
|
|
|
|
GetFilteredAssignmentsForUserWithResponse(ctx context.Context, workspaceId string, userId string, body GetFilteredAssignmentsForUserJSONRequestBody, reqEditors ...RequestEditorFn) (*GetFilteredAssignmentsForUserResponse, error)
|
|
|
|
// GetUsers3WithResponse request
|
|
GetUsers3WithResponse(ctx context.Context, workspaceId string, projectId string, params *GetUsers3Params, reqEditors ...RequestEditorFn) (*GetUsers3Response, error)
|
|
|
|
// GetProjects1WithResponse request
|
|
GetProjects1WithResponse(ctx context.Context, workspaceId string, userId string, params *GetProjects1Params, reqEditors ...RequestEditorFn) (*GetProjects1Response, error)
|
|
|
|
// RemindToPublishWithResponse request
|
|
RemindToPublishWithResponse(ctx context.Context, workspaceId string, userId string, params *RemindToPublishParams, reqEditors ...RequestEditorFn) (*RemindToPublishResponse, error)
|
|
|
|
// GetUserTotalsForSingleUserWithResponse request
|
|
GetUserTotalsForSingleUserWithResponse(ctx context.Context, workspaceId string, userId string, params *GetUserTotalsForSingleUserParams, reqEditors ...RequestEditorFn) (*GetUserTotalsForSingleUserResponse, error)
|
|
|
|
// Get3WithResponse request
|
|
Get3WithResponse(ctx context.Context, workspaceId string, assignmentId string, reqEditors ...RequestEditorFn) (*Get3Response, error)
|
|
|
|
// CopyAssignmentWithBodyWithResponse request with any body
|
|
CopyAssignmentWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyAssignmentResponse, error)
|
|
|
|
CopyAssignmentWithResponse(ctx context.Context, workspaceId string, assignmentId string, body CopyAssignmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyAssignmentResponse, error)
|
|
|
|
// SplitAssignmentWithBodyWithResponse request with any body
|
|
SplitAssignmentWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SplitAssignmentResponse, error)
|
|
|
|
SplitAssignmentWithResponse(ctx context.Context, workspaceId string, assignmentId string, body SplitAssignmentJSONRequestBody, reqEditors ...RequestEditorFn) (*SplitAssignmentResponse, error)
|
|
|
|
// ShiftScheduleWithBodyWithResponse request with any body
|
|
ShiftScheduleWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ShiftScheduleResponse, error)
|
|
|
|
ShiftScheduleWithResponse(ctx context.Context, workspaceId string, projectId string, body ShiftScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*ShiftScheduleResponse, error)
|
|
|
|
// HideProjectWithResponse request
|
|
HideProjectWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*HideProjectResponse, error)
|
|
|
|
// ShowProjectWithResponse request
|
|
ShowProjectWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*ShowProjectResponse, error)
|
|
|
|
// HideUserWithResponse request
|
|
HideUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*HideUserResponse, error)
|
|
|
|
// ShowUserWithResponse request
|
|
ShowUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*ShowUserResponse, error)
|
|
|
|
// Create10WithBodyWithResponse request with any body
|
|
Create10WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create10Response, error)
|
|
|
|
Create10WithResponse(ctx context.Context, workspaceId string, body Create10JSONRequestBody, reqEditors ...RequestEditorFn) (*Create10Response, error)
|
|
|
|
// Delete10WithResponse request
|
|
Delete10WithResponse(ctx context.Context, workspaceId string, milestoneId string, reqEditors ...RequestEditorFn) (*Delete10Response, error)
|
|
|
|
// Get2WithResponse request
|
|
Get2WithResponse(ctx context.Context, workspaceId string, milestoneId string, reqEditors ...RequestEditorFn) (*Get2Response, error)
|
|
|
|
// Edit1WithBodyWithResponse request with any body
|
|
Edit1WithBodyWithResponse(ctx context.Context, workspaceId string, milestoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Edit1Response, error)
|
|
|
|
Edit1WithResponse(ctx context.Context, workspaceId string, milestoneId string, body Edit1JSONRequestBody, reqEditors ...RequestEditorFn) (*Edit1Response, error)
|
|
|
|
// EditDateWithBodyWithResponse request with any body
|
|
EditDateWithBodyWithResponse(ctx context.Context, workspaceId string, milestoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditDateResponse, error)
|
|
|
|
EditDateWithResponse(ctx context.Context, workspaceId string, milestoneId string, body EditDateJSONRequestBody, reqEditors ...RequestEditorFn) (*EditDateResponse, error)
|
|
|
|
// GetProjectsWithResponse request
|
|
GetProjectsWithResponse(ctx context.Context, workspaceId string, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)
|
|
|
|
// GetUsers2WithResponse request
|
|
GetUsers2WithResponse(ctx context.Context, workspaceId string, params *GetUsers2Params, reqEditors ...RequestEditorFn) (*GetUsers2Response, error)
|
|
|
|
// GetUsersAssignedToProjectWithResponse request
|
|
GetUsersAssignedToProjectWithResponse(ctx context.Context, workspaceId string, projectId string, params *GetUsersAssignedToProjectParams, reqEditors ...RequestEditorFn) (*GetUsersAssignedToProjectResponse, error)
|
|
|
|
// GetSidebarConfigWithResponse request
|
|
GetSidebarConfigWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetSidebarConfigResponse, error)
|
|
|
|
// UpdateSidebarWithBodyWithResponse request with any body
|
|
UpdateSidebarWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSidebarResponse, error)
|
|
|
|
UpdateSidebarWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateSidebarJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSidebarResponse, error)
|
|
|
|
// FilterUsersByStatusWithBodyWithResponse request with any body
|
|
FilterUsersByStatusWithBodyWithResponse(ctx context.Context, workspaceId string, params *FilterUsersByStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FilterUsersByStatusResponse, error)
|
|
|
|
FilterUsersByStatusWithResponse(ctx context.Context, workspaceId string, params *FilterUsersByStatusParams, body FilterUsersByStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*FilterUsersByStatusResponse, error)
|
|
|
|
// Delete9WithBodyWithResponse request with any body
|
|
Delete9WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Delete9Response, error)
|
|
|
|
Delete9WithResponse(ctx context.Context, workspaceId string, body Delete9JSONRequestBody, reqEditors ...RequestEditorFn) (*Delete9Response, error)
|
|
|
|
// StopWithBodyWithResponse request with any body
|
|
StopWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StopResponse, error)
|
|
|
|
StopWithResponse(ctx context.Context, workspaceId string, body StopJSONRequestBody, reqEditors ...RequestEditorFn) (*StopResponse, error)
|
|
|
|
// StartWithBodyWithResponse request with any body
|
|
StartWithBodyWithResponse(ctx context.Context, workspaceId string, params *StartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartResponse, error)
|
|
|
|
StartWithResponse(ctx context.Context, workspaceId string, params *StartParams, body StartJSONRequestBody, reqEditors ...RequestEditorFn) (*StartResponse, error)
|
|
|
|
// DeleteMany1WithBodyWithResponse request with any body
|
|
DeleteMany1WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMany1Response, error)
|
|
|
|
DeleteMany1WithResponse(ctx context.Context, workspaceId string, body DeleteMany1JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMany1Response, error)
|
|
|
|
// GetTagsWithResponse request
|
|
GetTagsWithResponse(ctx context.Context, workspaceId string, params *GetTagsParams, reqEditors ...RequestEditorFn) (*GetTagsResponse, error)
|
|
|
|
// UpdateManyWithBodyWithResponse request with any body
|
|
UpdateManyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateManyResponse, error)
|
|
|
|
UpdateManyWithResponse(ctx context.Context, workspaceId string, body UpdateManyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateManyResponse, error)
|
|
|
|
// Create9WithBodyWithResponse request with any body
|
|
Create9WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create9Response, error)
|
|
|
|
Create9WithResponse(ctx context.Context, workspaceId string, body Create9JSONRequestBody, reqEditors ...RequestEditorFn) (*Create9Response, error)
|
|
|
|
// ConnectedToApprovedEntriesWithBodyWithResponse request with any body
|
|
ConnectedToApprovedEntriesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConnectedToApprovedEntriesResponse, error)
|
|
|
|
ConnectedToApprovedEntriesWithResponse(ctx context.Context, workspaceId string, body ConnectedToApprovedEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*ConnectedToApprovedEntriesResponse, error)
|
|
|
|
// GetTagsOfIdsWithBodyWithResponse request with any body
|
|
GetTagsOfIdsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTagsOfIdsResponse, error)
|
|
|
|
GetTagsOfIdsWithResponse(ctx context.Context, workspaceId string, body GetTagsOfIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTagsOfIdsResponse, error)
|
|
|
|
// GetTagIdsByNameAndStatusWithResponse request
|
|
GetTagIdsByNameAndStatusWithResponse(ctx context.Context, workspaceId string, params *GetTagIdsByNameAndStatusParams, reqEditors ...RequestEditorFn) (*GetTagIdsByNameAndStatusResponse, error)
|
|
|
|
// Delete8WithResponse request
|
|
Delete8WithResponse(ctx context.Context, workspaceId string, tagId string, reqEditors ...RequestEditorFn) (*Delete8Response, error)
|
|
|
|
// Update4WithBodyWithResponse request with any body
|
|
Update4WithBodyWithResponse(ctx context.Context, workspaceId string, tagId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update4Response, error)
|
|
|
|
Update4WithResponse(ctx context.Context, workspaceId string, tagId string, body Update4JSONRequestBody, reqEditors ...RequestEditorFn) (*Update4Response, error)
|
|
|
|
// GetTemplatesWithResponse request
|
|
GetTemplatesWithResponse(ctx context.Context, workspaceId string, params *GetTemplatesParams, reqEditors ...RequestEditorFn) (*GetTemplatesResponse, error)
|
|
|
|
// Create8WithBodyWithResponse request with any body
|
|
Create8WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create8Response, error)
|
|
|
|
Create8WithResponse(ctx context.Context, workspaceId string, body Create8JSONRequestBody, reqEditors ...RequestEditorFn) (*Create8Response, error)
|
|
|
|
// Delete7WithResponse request
|
|
Delete7WithResponse(ctx context.Context, workspaceId string, templateId string, reqEditors ...RequestEditorFn) (*Delete7Response, error)
|
|
|
|
// GetTemplateWithResponse request
|
|
GetTemplateWithResponse(ctx context.Context, workspaceId string, templateId string, params *GetTemplateParams, reqEditors ...RequestEditorFn) (*GetTemplateResponse, error)
|
|
|
|
// Update13WithBodyWithResponse request with any body
|
|
Update13WithBodyWithResponse(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update13Response, error)
|
|
|
|
Update13WithResponse(ctx context.Context, workspaceId string, templateId string, body Update13JSONRequestBody, reqEditors ...RequestEditorFn) (*Update13Response, error)
|
|
|
|
// ActivateWithBodyWithResponse request with any body
|
|
ActivateWithBodyWithResponse(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ActivateResponse, error)
|
|
|
|
ActivateWithResponse(ctx context.Context, workspaceId string, templateId string, body ActivateJSONRequestBody, reqEditors ...RequestEditorFn) (*ActivateResponse, error)
|
|
|
|
// DeactivateWithBodyWithResponse request with any body
|
|
DeactivateWithBodyWithResponse(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeactivateResponse, error)
|
|
|
|
DeactivateWithResponse(ctx context.Context, workspaceId string, templateId string, body DeactivateJSONRequestBody, reqEditors ...RequestEditorFn) (*DeactivateResponse, error)
|
|
|
|
// CopyTimeEntriesWithBodyWithResponse request with any body
|
|
CopyTimeEntriesWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyTimeEntriesResponse, error)
|
|
|
|
CopyTimeEntriesWithResponse(ctx context.Context, workspaceId string, userId string, body CopyTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyTimeEntriesResponse, error)
|
|
|
|
// ContinueTimeEntryWithResponse request
|
|
ContinueTimeEntryWithResponse(ctx context.Context, workspaceId string, timeEntryId string, reqEditors ...RequestEditorFn) (*ContinueTimeEntryResponse, error)
|
|
|
|
// GetTeamMembersOfAdminWithResponse request
|
|
GetTeamMembersOfAdminWithResponse(ctx context.Context, workspaceId string, params *GetTeamMembersOfAdminParams, reqEditors ...RequestEditorFn) (*GetTeamMembersOfAdminResponse, error)
|
|
|
|
// GetBalancesForPolicyWithResponse request
|
|
GetBalancesForPolicyWithResponse(ctx context.Context, workspaceId string, policyId string, params *GetBalancesForPolicyParams, reqEditors ...RequestEditorFn) (*GetBalancesForPolicyResponse, error)
|
|
|
|
// UpdateBalanceWithBodyWithResponse request with any body
|
|
UpdateBalanceWithBodyWithResponse(ctx context.Context, workspaceId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBalanceResponse, error)
|
|
|
|
UpdateBalanceWithResponse(ctx context.Context, workspaceId string, policyId string, body UpdateBalanceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBalanceResponse, error)
|
|
|
|
// GetBalancesForUserWithResponse request
|
|
GetBalancesForUserWithResponse(ctx context.Context, workspaceId string, userId string, params *GetBalancesForUserParams, reqEditors ...RequestEditorFn) (*GetBalancesForUserResponse, error)
|
|
|
|
// GetTeamMembersOfManagerWithResponse request
|
|
GetTeamMembersOfManagerWithResponse(ctx context.Context, workspaceId string, params *GetTeamMembersOfManagerParams, reqEditors ...RequestEditorFn) (*GetTeamMembersOfManagerResponse, error)
|
|
|
|
// FindPoliciesForWorkspaceWithResponse request
|
|
FindPoliciesForWorkspaceWithResponse(ctx context.Context, workspaceId string, params *FindPoliciesForWorkspaceParams, reqEditors ...RequestEditorFn) (*FindPoliciesForWorkspaceResponse, error)
|
|
|
|
// CreatePolicyWithBodyWithResponse request with any body
|
|
CreatePolicyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error)
|
|
|
|
CreatePolicyWithResponse(ctx context.Context, workspaceId string, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error)
|
|
|
|
// GetPolicyAssignmentForCurrentUserWithResponse request
|
|
GetPolicyAssignmentForCurrentUserWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetPolicyAssignmentForCurrentUserResponse, error)
|
|
|
|
// GetTeamAssignmentsDistributionWithResponse request
|
|
GetTeamAssignmentsDistributionWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetTeamAssignmentsDistributionResponse, error)
|
|
|
|
// GetPolicyAssignmentsForUserWithResponse request
|
|
GetPolicyAssignmentsForUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetPolicyAssignmentsForUserResponse, error)
|
|
|
|
// FindPoliciesForUserWithResponse request
|
|
FindPoliciesForUserWithResponse(ctx context.Context, workspaceId string, userId string, params *FindPoliciesForUserParams, reqEditors ...RequestEditorFn) (*FindPoliciesForUserResponse, error)
|
|
|
|
// DeletePolicyWithResponse request
|
|
DeletePolicyWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*DeletePolicyResponse, error)
|
|
|
|
// UpdatePolicyWithBodyWithResponse request with any body
|
|
UpdatePolicyWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error)
|
|
|
|
UpdatePolicyWithResponse(ctx context.Context, workspaceId string, id string, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error)
|
|
|
|
// ArchiveWithResponse request
|
|
ArchiveWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*ArchiveResponse, error)
|
|
|
|
// RestoreWithResponse request
|
|
RestoreWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*RestoreResponse, error)
|
|
|
|
// GetPolicyWithResponse request
|
|
GetPolicyWithResponse(ctx context.Context, workspaceId string, policyId string, reqEditors ...RequestEditorFn) (*GetPolicyResponse, error)
|
|
|
|
// Create7WithBodyWithResponse request with any body
|
|
Create7WithBodyWithResponse(ctx context.Context, workspaceId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create7Response, error)
|
|
|
|
Create7WithResponse(ctx context.Context, workspaceId string, policyId string, body Create7JSONRequestBody, reqEditors ...RequestEditorFn) (*Create7Response, error)
|
|
|
|
// Delete6WithResponse request
|
|
Delete6WithResponse(ctx context.Context, workspaceId string, policyId string, requestId string, reqEditors ...RequestEditorFn) (*Delete6Response, error)
|
|
|
|
// ApproveWithResponse request
|
|
ApproveWithResponse(ctx context.Context, workspaceId string, policyId string, requestId string, reqEditors ...RequestEditorFn) (*ApproveResponse, error)
|
|
|
|
// RejectWithBodyWithResponse request with any body
|
|
RejectWithBodyWithResponse(ctx context.Context, workspaceId string, policyId string, requestId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RejectResponse, error)
|
|
|
|
RejectWithResponse(ctx context.Context, workspaceId string, policyId string, requestId string, body RejectJSONRequestBody, reqEditors ...RequestEditorFn) (*RejectResponse, error)
|
|
|
|
// CreateForOther1WithBodyWithResponse request with any body
|
|
CreateForOther1WithBodyWithResponse(ctx context.Context, workspaceId string, policyId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForOther1Response, error)
|
|
|
|
CreateForOther1WithResponse(ctx context.Context, workspaceId string, policyId string, userId string, body CreateForOther1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForOther1Response, error)
|
|
|
|
// Get1WithBodyWithResponse request with any body
|
|
Get1WithBodyWithResponse(ctx context.Context, workspaceId string, params *Get1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Get1Response, error)
|
|
|
|
Get1WithResponse(ctx context.Context, workspaceId string, params *Get1Params, body Get1JSONRequestBody, reqEditors ...RequestEditorFn) (*Get1Response, error)
|
|
|
|
// GetTimeOffRequestByIdWithResponse request
|
|
GetTimeOffRequestByIdWithResponse(ctx context.Context, workspaceId string, requestId string, reqEditors ...RequestEditorFn) (*GetTimeOffRequestByIdResponse, error)
|
|
|
|
// GetAllUsersOfWorkspaceWithResponse request
|
|
GetAllUsersOfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetAllUsersOfWorkspaceParams, reqEditors ...RequestEditorFn) (*GetAllUsersOfWorkspaceResponse, error)
|
|
|
|
// GetUserGroupsOfWorkspaceWithResponse request
|
|
GetUserGroupsOfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetUserGroupsOfWorkspaceParams, reqEditors ...RequestEditorFn) (*GetUserGroupsOfWorkspaceResponse, error)
|
|
|
|
// GetUsersOfWorkspaceWithResponse request
|
|
GetUsersOfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspaceParams, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspaceResponse, error)
|
|
|
|
// GetWithBodyWithResponse request with any body
|
|
GetWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetResponse, error)
|
|
|
|
GetWithResponse(ctx context.Context, workspaceId string, params *GetParams, body GetJSONRequestBody, reqEditors ...RequestEditorFn) (*GetResponse, error)
|
|
|
|
// GetTimelineForReportsWithBodyWithResponse request with any body
|
|
GetTimelineForReportsWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetTimelineForReportsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTimelineForReportsResponse, error)
|
|
|
|
GetTimelineForReportsWithResponse(ctx context.Context, workspaceId string, params *GetTimelineForReportsParams, body GetTimelineForReportsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTimelineForReportsResponse, error)
|
|
|
|
// DeleteManyWithBodyWithResponse request with any body
|
|
DeleteManyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteManyResponse, error)
|
|
|
|
DeleteManyWithResponse(ctx context.Context, workspaceId string, body DeleteManyJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteManyResponse, error)
|
|
|
|
// GetTimeEntriesBySearchValueWithResponse request
|
|
GetTimeEntriesBySearchValueWithResponse(ctx context.Context, workspaceId string, params *GetTimeEntriesBySearchValueParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesBySearchValueResponse, error)
|
|
|
|
// Create6WithBodyWithResponse request with any body
|
|
Create6WithBodyWithResponse(ctx context.Context, workspaceId string, params *Create6Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create6Response, error)
|
|
|
|
Create6WithResponse(ctx context.Context, workspaceId string, params *Create6Params, body Create6JSONRequestBody, reqEditors ...RequestEditorFn) (*Create6Response, error)
|
|
|
|
// PatchTimeEntriesWithBodyWithResponse request with any body
|
|
PatchTimeEntriesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchTimeEntriesResponse, error)
|
|
|
|
PatchTimeEntriesWithResponse(ctx context.Context, workspaceId string, body PatchTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchTimeEntriesResponse, error)
|
|
|
|
// EndStartedWithBodyWithResponse request with any body
|
|
EndStartedWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EndStartedResponse, error)
|
|
|
|
EndStartedWithResponse(ctx context.Context, workspaceId string, body EndStartedJSONRequestBody, reqEditors ...RequestEditorFn) (*EndStartedResponse, error)
|
|
|
|
// GetMultipleTimeEntriesByIdWithResponse request
|
|
GetMultipleTimeEntriesByIdWithResponse(ctx context.Context, workspaceId string, params *GetMultipleTimeEntriesByIdParams, reqEditors ...RequestEditorFn) (*GetMultipleTimeEntriesByIdResponse, error)
|
|
|
|
// CreateFull1WithBodyWithResponse request with any body
|
|
CreateFull1WithBodyWithResponse(ctx context.Context, workspaceId string, params *CreateFull1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFull1Response, error)
|
|
|
|
CreateFull1WithResponse(ctx context.Context, workspaceId string, params *CreateFull1Params, body CreateFull1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFull1Response, error)
|
|
|
|
// GetTimeEntryInProgressWithResponse request
|
|
GetTimeEntryInProgressWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetTimeEntryInProgressResponse, error)
|
|
|
|
// UpdateInvoicedStatusWithBodyWithResponse request with any body
|
|
UpdateInvoicedStatusWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoicedStatusResponse, error)
|
|
|
|
UpdateInvoicedStatusWithResponse(ctx context.Context, workspaceId string, body UpdateInvoicedStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoicedStatusResponse, error)
|
|
|
|
// ListOfProjectWithResponse request
|
|
ListOfProjectWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*ListOfProjectResponse, error)
|
|
|
|
// GetTimeEntriesRecentlyUsedWithResponse request
|
|
GetTimeEntriesRecentlyUsedWithResponse(ctx context.Context, workspaceId string, params *GetTimeEntriesRecentlyUsedParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesRecentlyUsedResponse, error)
|
|
|
|
// RestoreTimeEntriesWithBodyWithResponse request with any body
|
|
RestoreTimeEntriesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RestoreTimeEntriesResponse, error)
|
|
|
|
RestoreTimeEntriesWithResponse(ctx context.Context, workspaceId string, body RestoreTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*RestoreTimeEntriesResponse, error)
|
|
|
|
// CreateForManyWithBodyWithResponse request with any body
|
|
CreateForManyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForManyResponse, error)
|
|
|
|
CreateForManyWithResponse(ctx context.Context, workspaceId string, body CreateForManyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForManyResponse, error)
|
|
|
|
// CreateForOthersWithBodyWithResponse request with any body
|
|
CreateForOthersWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForOthersResponse, error)
|
|
|
|
CreateForOthersWithResponse(ctx context.Context, workspaceId string, userId string, body CreateForOthersJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForOthersResponse, error)
|
|
|
|
// ListOfFullWithResponse request
|
|
ListOfFullWithResponse(ctx context.Context, workspaceId string, userId string, params *ListOfFullParams, reqEditors ...RequestEditorFn) (*ListOfFullResponse, error)
|
|
|
|
// GetTimeEntriesWithResponse request
|
|
GetTimeEntriesWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesResponse, error)
|
|
|
|
// AssertTimeEntriesExistInDateRangeWithResponse request
|
|
AssertTimeEntriesExistInDateRangeWithResponse(ctx context.Context, workspaceId string, userId string, params *AssertTimeEntriesExistInDateRangeParams, reqEditors ...RequestEditorFn) (*AssertTimeEntriesExistInDateRangeResponse, error)
|
|
|
|
// CreateFullWithBodyWithResponse request with any body
|
|
CreateFullWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, params *CreateFullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFullResponse, error)
|
|
|
|
CreateFullWithResponse(ctx context.Context, workspaceId string, userId string, params *CreateFullParams, body CreateFullJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFullResponse, error)
|
|
|
|
// GetTimeEntriesInRangeWithResponse request
|
|
GetTimeEntriesInRangeWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesInRangeParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesInRangeResponse, error)
|
|
|
|
// GetTimeEntriesForTimesheetWithResponse request
|
|
GetTimeEntriesForTimesheetWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesForTimesheetParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesForTimesheetResponse, error)
|
|
|
|
// PatchWithBodyWithResponse request with any body
|
|
PatchWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchResponse, error)
|
|
|
|
PatchWithResponse(ctx context.Context, workspaceId string, id string, body PatchJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchResponse, error)
|
|
|
|
// Update3WithBodyWithResponse request with any body
|
|
Update3WithBodyWithResponse(ctx context.Context, workspaceId string, id string, params *Update3Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update3Response, error)
|
|
|
|
Update3WithResponse(ctx context.Context, workspaceId string, id string, params *Update3Params, body Update3JSONRequestBody, reqEditors ...RequestEditorFn) (*Update3Response, error)
|
|
|
|
// GetTimeEntryAttributesWithResponse request
|
|
GetTimeEntryAttributesWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*GetTimeEntryAttributesResponse, error)
|
|
|
|
// CreateTimeEntryAttributeWithBodyWithResponse request with any body
|
|
CreateTimeEntryAttributeWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTimeEntryAttributeResponse, error)
|
|
|
|
CreateTimeEntryAttributeWithResponse(ctx context.Context, workspaceId string, id string, body CreateTimeEntryAttributeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTimeEntryAttributeResponse, error)
|
|
|
|
// DeleteTimeEntryAttributeWithBodyWithResponse request with any body
|
|
DeleteTimeEntryAttributeWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteTimeEntryAttributeResponse, error)
|
|
|
|
DeleteTimeEntryAttributeWithResponse(ctx context.Context, workspaceId string, id string, body DeleteTimeEntryAttributeJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteTimeEntryAttributeResponse, error)
|
|
|
|
// UpdateBillableWithBodyWithResponse request with any body
|
|
UpdateBillableWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBillableResponse, error)
|
|
|
|
UpdateBillableWithResponse(ctx context.Context, workspaceId string, id string, body UpdateBillableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBillableResponse, error)
|
|
|
|
// UpdateDescriptionWithBodyWithResponse request with any body
|
|
UpdateDescriptionWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDescriptionResponse, error)
|
|
|
|
UpdateDescriptionWithResponse(ctx context.Context, workspaceId string, id string, body UpdateDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDescriptionResponse, error)
|
|
|
|
// UpdateEndWithBodyWithResponse request with any body
|
|
UpdateEndWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEndResponse, error)
|
|
|
|
UpdateEndWithResponse(ctx context.Context, workspaceId string, id string, body UpdateEndJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEndResponse, error)
|
|
|
|
// UpdateFullWithBodyWithResponse request with any body
|
|
UpdateFullWithBodyWithResponse(ctx context.Context, workspaceId string, id string, params *UpdateFullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFullResponse, error)
|
|
|
|
UpdateFullWithResponse(ctx context.Context, workspaceId string, id string, params *UpdateFullParams, body UpdateFullJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFullResponse, error)
|
|
|
|
// UpdateProjectWithBodyWithResponse request with any body
|
|
UpdateProjectWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)
|
|
|
|
UpdateProjectWithResponse(ctx context.Context, workspaceId string, id string, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)
|
|
|
|
// RemoveProjectWithResponse request
|
|
RemoveProjectWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*RemoveProjectResponse, error)
|
|
|
|
// UpdateProjectAndTaskWithBodyWithResponse request with any body
|
|
UpdateProjectAndTaskWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectAndTaskResponse, error)
|
|
|
|
UpdateProjectAndTaskWithResponse(ctx context.Context, workspaceId string, id string, body UpdateProjectAndTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectAndTaskResponse, error)
|
|
|
|
// UpdateAndSplitWithBodyWithResponse request with any body
|
|
UpdateAndSplitWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAndSplitResponse, error)
|
|
|
|
UpdateAndSplitWithResponse(ctx context.Context, workspaceId string, id string, body UpdateAndSplitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAndSplitResponse, error)
|
|
|
|
// SplitTimeEntryWithBodyWithResponse request with any body
|
|
SplitTimeEntryWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SplitTimeEntryResponse, error)
|
|
|
|
SplitTimeEntryWithResponse(ctx context.Context, workspaceId string, id string, body SplitTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*SplitTimeEntryResponse, error)
|
|
|
|
// UpdateStartWithBodyWithResponse request with any body
|
|
UpdateStartWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStartResponse, error)
|
|
|
|
UpdateStartWithResponse(ctx context.Context, workspaceId string, id string, body UpdateStartJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStartResponse, error)
|
|
|
|
// UpdateTagsWithBodyWithResponse request with any body
|
|
UpdateTagsWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTagsResponse, error)
|
|
|
|
UpdateTagsWithResponse(ctx context.Context, workspaceId string, id string, body UpdateTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTagsResponse, error)
|
|
|
|
// RemoveTaskWithResponse request
|
|
RemoveTaskWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*RemoveTaskResponse, error)
|
|
|
|
// UpdateTimeIntervalWithBodyWithResponse request with any body
|
|
UpdateTimeIntervalWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimeIntervalResponse, error)
|
|
|
|
UpdateTimeIntervalWithResponse(ctx context.Context, workspaceId string, id string, body UpdateTimeIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimeIntervalResponse, error)
|
|
|
|
// UpdateUserWithBodyWithResponse request with any body
|
|
UpdateUserWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
|
|
|
|
UpdateUserWithResponse(ctx context.Context, workspaceId string, id string, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
|
|
|
|
// Delete5WithResponse request
|
|
Delete5WithResponse(ctx context.Context, workspaceId string, timeEntryId string, reqEditors ...RequestEditorFn) (*Delete5Response, error)
|
|
|
|
// UpdateCustomFieldWithBodyWithResponse request with any body
|
|
UpdateCustomFieldWithBodyWithResponse(ctx context.Context, workspaceId string, timeEntryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomFieldResponse, error)
|
|
|
|
UpdateCustomFieldWithResponse(ctx context.Context, workspaceId string, timeEntryId string, body UpdateCustomFieldJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomFieldResponse, error)
|
|
|
|
// PenalizeCurrentTimerAndStartNewTimeEntryWithBodyWithResponse request with any body
|
|
PenalizeCurrentTimerAndStartNewTimeEntryWithBodyWithResponse(ctx context.Context, workspaceId string, timeEntryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PenalizeCurrentTimerAndStartNewTimeEntryResponse, error)
|
|
|
|
PenalizeCurrentTimerAndStartNewTimeEntryWithResponse(ctx context.Context, workspaceId string, timeEntryId string, body PenalizeCurrentTimerAndStartNewTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*PenalizeCurrentTimerAndStartNewTimeEntryResponse, error)
|
|
|
|
// TransferWorkspaceDeprecatedFlowWithBodyWithResponse request with any body
|
|
TransferWorkspaceDeprecatedFlowWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferWorkspaceDeprecatedFlowResponse, error)
|
|
|
|
TransferWorkspaceDeprecatedFlowWithResponse(ctx context.Context, workspaceId string, body TransferWorkspaceDeprecatedFlowJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferWorkspaceDeprecatedFlowResponse, error)
|
|
|
|
// TransferWorkspaceWithBodyWithResponse request with any body
|
|
TransferWorkspaceWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferWorkspaceResponse, error)
|
|
|
|
TransferWorkspaceWithResponse(ctx context.Context, workspaceId string, body TransferWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferWorkspaceResponse, error)
|
|
|
|
// GetTrialActivationDataWithResponse request
|
|
GetTrialActivationDataWithResponse(ctx context.Context, workspaceId string, params *GetTrialActivationDataParams, reqEditors ...RequestEditorFn) (*GetTrialActivationDataResponse, error)
|
|
|
|
// RemoveMemberWithResponse request
|
|
RemoveMemberWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*RemoveMemberResponse, error)
|
|
|
|
// CopyTimeEntryCalendarDragWithBodyWithResponse request with any body
|
|
CopyTimeEntryCalendarDragWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyTimeEntryCalendarDragResponse, error)
|
|
|
|
CopyTimeEntryCalendarDragWithResponse(ctx context.Context, workspaceId string, userId string, body CopyTimeEntryCalendarDragJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyTimeEntryCalendarDragResponse, error)
|
|
|
|
// DuplicateTimeEntryWithResponse request
|
|
DuplicateTimeEntryWithResponse(ctx context.Context, workspaceId string, userId string, id string, reqEditors ...RequestEditorFn) (*DuplicateTimeEntryResponse, error)
|
|
|
|
// GetUserGroups1WithResponse request
|
|
GetUserGroups1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetUserGroups1Response, error)
|
|
|
|
// Create5WithBodyWithResponse request with any body
|
|
Create5WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create5Response, error)
|
|
|
|
Create5WithResponse(ctx context.Context, workspaceId string, body Create5JSONRequestBody, reqEditors ...RequestEditorFn) (*Create5Response, error)
|
|
|
|
// GetUserGroups2WithResponse request
|
|
GetUserGroups2WithResponse(ctx context.Context, workspaceId string, params *GetUserGroups2Params, reqEditors ...RequestEditorFn) (*GetUserGroups2Response, error)
|
|
|
|
// GetUserGroupNamesWithBodyWithResponse request with any body
|
|
GetUserGroupNamesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserGroupNamesResponse, error)
|
|
|
|
GetUserGroupNamesWithResponse(ctx context.Context, workspaceId string, body GetUserGroupNamesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserGroupNamesResponse, error)
|
|
|
|
// GetUsersForReportFilter1WithResponse request
|
|
GetUsersForReportFilter1WithResponse(ctx context.Context, workspaceId string, params *GetUsersForReportFilter1Params, reqEditors ...RequestEditorFn) (*GetUsersForReportFilter1Response, error)
|
|
|
|
// GetUserGroupForReportFilterPostWithBodyWithResponse request with any body
|
|
GetUserGroupForReportFilterPostWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserGroupForReportFilterPostResponse, error)
|
|
|
|
GetUserGroupForReportFilterPostWithResponse(ctx context.Context, workspaceId string, body GetUserGroupForReportFilterPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserGroupForReportFilterPostResponse, error)
|
|
|
|
// GetUsersForAttendanceReportFilterWithBodyWithResponse request with any body
|
|
GetUsersForAttendanceReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersForAttendanceReportFilterResponse, error)
|
|
|
|
GetUsersForAttendanceReportFilterWithResponse(ctx context.Context, workspaceId string, body GetUsersForAttendanceReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersForAttendanceReportFilterResponse, error)
|
|
|
|
// GetUserGroupIdsByNameWithResponse request
|
|
GetUserGroupIdsByNameWithResponse(ctx context.Context, workspaceId string, params *GetUserGroupIdsByNameParams, reqEditors ...RequestEditorFn) (*GetUserGroupIdsByNameResponse, error)
|
|
|
|
// GetUserGroupsWithBodyWithResponse request with any body
|
|
GetUserGroupsWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetUserGroupsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserGroupsResponse, error)
|
|
|
|
GetUserGroupsWithResponse(ctx context.Context, workspaceId string, params *GetUserGroupsParams, body GetUserGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserGroupsResponse, error)
|
|
|
|
// RemoveUserWithBodyWithResponse request with any body
|
|
RemoveUserWithBodyWithResponse(ctx context.Context, workspaceId string, params *RemoveUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveUserResponse, error)
|
|
|
|
RemoveUserWithResponse(ctx context.Context, workspaceId string, params *RemoveUserParams, body RemoveUserJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveUserResponse, error)
|
|
|
|
// AddUsersToUserGroupsFilterWithBodyWithResponse request with any body
|
|
AddUsersToUserGroupsFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsersToUserGroupsFilterResponse, error)
|
|
|
|
AddUsersToUserGroupsFilterWithResponse(ctx context.Context, workspaceId string, body AddUsersToUserGroupsFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsersToUserGroupsFilterResponse, error)
|
|
|
|
// Delete4WithResponse request
|
|
Delete4WithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*Delete4Response, error)
|
|
|
|
// Update2WithBodyWithResponse request with any body
|
|
Update2WithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update2Response, error)
|
|
|
|
Update2WithResponse(ctx context.Context, workspaceId string, id string, body Update2JSONRequestBody, reqEditors ...RequestEditorFn) (*Update2Response, error)
|
|
|
|
// GetUsersWithBodyWithResponse request with any body
|
|
GetUsersWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersResponse, error)
|
|
|
|
GetUsersWithResponse(ctx context.Context, workspaceId string, body GetUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersResponse, error)
|
|
|
|
// GetUsers1WithResponse request
|
|
GetUsers1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetUsers1Response, error)
|
|
|
|
// AddUsersWithBodyWithResponse request with any body
|
|
AddUsersWithBodyWithResponse(ctx context.Context, workspaceId string, params *AddUsersParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsersResponse, error)
|
|
|
|
AddUsersWithResponse(ctx context.Context, workspaceId string, params *AddUsersParams, body AddUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsersResponse, error)
|
|
|
|
// GetExpensesForUsersWithResponse request
|
|
GetExpensesForUsersWithResponse(ctx context.Context, workspaceId string, params *GetExpensesForUsersParams, reqEditors ...RequestEditorFn) (*GetExpensesForUsersResponse, error)
|
|
|
|
// SetMembershipsWithBodyWithResponse request with any body
|
|
SetMembershipsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMembershipsResponse, error)
|
|
|
|
SetMembershipsWithResponse(ctx context.Context, workspaceId string, body SetMembershipsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMembershipsResponse, error)
|
|
|
|
// ResendInviteWithResponse request
|
|
ResendInviteWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*ResendInviteResponse, error)
|
|
|
|
// CreateDeprecatedWithBodyWithResponse request with any body
|
|
CreateDeprecatedWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDeprecatedResponse, error)
|
|
|
|
CreateDeprecatedWithResponse(ctx context.Context, workspaceId string, userId string, body CreateDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDeprecatedResponse, error)
|
|
|
|
// GetRequestsByUserWithResponse request
|
|
GetRequestsByUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetRequestsByUserResponse, error)
|
|
|
|
// GetApprovedTotalsWithBodyWithResponse request with any body
|
|
GetApprovedTotalsWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApprovedTotalsResponse, error)
|
|
|
|
GetApprovedTotalsWithResponse(ctx context.Context, workspaceId string, userId string, body GetApprovedTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApprovedTotalsResponse, error)
|
|
|
|
// CreateForOtherDeprecatedWithBodyWithResponse request with any body
|
|
CreateForOtherDeprecatedWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForOtherDeprecatedResponse, error)
|
|
|
|
CreateForOtherDeprecatedWithResponse(ctx context.Context, workspaceId string, userId string, body CreateForOtherDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForOtherDeprecatedResponse, error)
|
|
|
|
// GetPreviewWithBodyWithResponse request with any body
|
|
GetPreviewWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, params *GetPreviewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetPreviewResponse, error)
|
|
|
|
GetPreviewWithResponse(ctx context.Context, workspaceId string, userId string, params *GetPreviewParams, body GetPreviewJSONRequestBody, reqEditors ...RequestEditorFn) (*GetPreviewResponse, error)
|
|
|
|
// GetTimeEntryStatusWithResponse request
|
|
GetTimeEntryStatusWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntryStatusParams, reqEditors ...RequestEditorFn) (*GetTimeEntryStatusResponse, error)
|
|
|
|
// GetTimeEntryWeekStatusWithResponse request
|
|
GetTimeEntryWeekStatusWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntryWeekStatusParams, reqEditors ...RequestEditorFn) (*GetTimeEntryWeekStatusResponse, error)
|
|
|
|
// GetWeeklyRequestsByUserWithResponse request
|
|
GetWeeklyRequestsByUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetWeeklyRequestsByUserResponse, error)
|
|
|
|
// WithdrawAllOfUserWithResponse request
|
|
WithdrawAllOfUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*WithdrawAllOfUserResponse, error)
|
|
|
|
// WithdrawAllOfWorkspaceDeprecatedWithResponse request
|
|
WithdrawAllOfWorkspaceDeprecatedWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*WithdrawAllOfWorkspaceDeprecatedResponse, error)
|
|
|
|
// WithdrawWeeklyOfUserWithResponse request
|
|
WithdrawWeeklyOfUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*WithdrawWeeklyOfUserResponse, error)
|
|
|
|
// SetCostRateForUser1WithBodyWithResponse request with any body
|
|
SetCostRateForUser1WithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCostRateForUser1Response, error)
|
|
|
|
SetCostRateForUser1WithResponse(ctx context.Context, workspaceId string, userId string, body SetCostRateForUser1JSONRequestBody, reqEditors ...RequestEditorFn) (*SetCostRateForUser1Response, error)
|
|
|
|
// UpsertUserCustomFieldValueWithBodyWithResponse request with any body
|
|
UpsertUserCustomFieldValueWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertUserCustomFieldValueResponse, error)
|
|
|
|
UpsertUserCustomFieldValueWithResponse(ctx context.Context, workspaceId string, userId string, body UpsertUserCustomFieldValueJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertUserCustomFieldValueResponse, error)
|
|
|
|
// GetFavoriteEntriesWithResponse request
|
|
GetFavoriteEntriesWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetFavoriteEntriesResponse, error)
|
|
|
|
// CreateFavoriteTimeEntryWithBodyWithResponse request with any body
|
|
CreateFavoriteTimeEntryWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFavoriteTimeEntryResponse, error)
|
|
|
|
CreateFavoriteTimeEntryWithResponse(ctx context.Context, workspaceId string, userId string, body CreateFavoriteTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFavoriteTimeEntryResponse, error)
|
|
|
|
// ReorderInvoiceItemWithBodyWithResponse request with any body
|
|
ReorderInvoiceItemWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReorderInvoiceItemResponse, error)
|
|
|
|
ReorderInvoiceItemWithResponse(ctx context.Context, workspaceId string, userId string, body ReorderInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*ReorderInvoiceItemResponse, error)
|
|
|
|
// Delete3WithResponse request
|
|
Delete3WithResponse(ctx context.Context, workspaceId string, userId string, id string, reqEditors ...RequestEditorFn) (*Delete3Response, error)
|
|
|
|
// Update1WithBodyWithResponse request with any body
|
|
Update1WithBodyWithResponse(ctx context.Context, workspaceId string, userId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update1Response, error)
|
|
|
|
Update1WithResponse(ctx context.Context, workspaceId string, userId string, id string, body Update1JSONRequestBody, reqEditors ...RequestEditorFn) (*Update1Response, error)
|
|
|
|
// GetHolidays1WithResponse request
|
|
GetHolidays1WithResponse(ctx context.Context, workspaceId string, userId string, params *GetHolidays1Params, reqEditors ...RequestEditorFn) (*GetHolidays1Response, error)
|
|
|
|
// SetHourlyRateForUser1WithBodyWithResponse request with any body
|
|
SetHourlyRateForUser1WithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHourlyRateForUser1Response, error)
|
|
|
|
SetHourlyRateForUser1WithResponse(ctx context.Context, workspaceId string, userId string, body SetHourlyRateForUser1JSONRequestBody, reqEditors ...RequestEditorFn) (*SetHourlyRateForUser1Response, error)
|
|
|
|
// GetPermissionsToUserWithResponse request
|
|
GetPermissionsToUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetPermissionsToUserResponse, error)
|
|
|
|
// RemoveFavoriteProjectWithResponse request
|
|
RemoveFavoriteProjectWithResponse(ctx context.Context, workspaceId string, userId string, projectId string, reqEditors ...RequestEditorFn) (*RemoveFavoriteProjectResponse, error)
|
|
|
|
// Delete2WithResponse request
|
|
Delete2WithResponse(ctx context.Context, workspaceId string, userId string, projectFavoritesId string, reqEditors ...RequestEditorFn) (*Delete2Response, error)
|
|
|
|
// Create4WithResponse request
|
|
Create4WithResponse(ctx context.Context, workspaceId string, userId string, projectId string, reqEditors ...RequestEditorFn) (*Create4Response, error)
|
|
|
|
// Delete1WithResponse request
|
|
Delete1WithResponse(ctx context.Context, workspaceId string, userId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*Delete1Response, error)
|
|
|
|
// Create3WithResponse request
|
|
Create3WithResponse(ctx context.Context, workspaceId string, userId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*Create3Response, error)
|
|
|
|
// ReSubmitWithBodyWithResponse request with any body
|
|
ReSubmitWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReSubmitResponse, error)
|
|
|
|
ReSubmitWithResponse(ctx context.Context, workspaceId string, userId string, body ReSubmitJSONRequestBody, reqEditors ...RequestEditorFn) (*ReSubmitResponse, error)
|
|
|
|
// GetUserRolesWithResponse request
|
|
GetUserRolesWithResponse(ctx context.Context, workspaceId string, userId string, params *GetUserRolesParams, reqEditors ...RequestEditorFn) (*GetUserRolesResponse, error)
|
|
|
|
// UpdateUserRolesWithBodyWithResponse request with any body
|
|
UpdateUserRolesWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserRolesResponse, error)
|
|
|
|
UpdateUserRolesWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateUserRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserRolesResponse, error)
|
|
|
|
// Create2WithBodyWithResponse request with any body
|
|
Create2WithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create2Response, error)
|
|
|
|
Create2WithResponse(ctx context.Context, workspaceId string, userId string, body Create2JSONRequestBody, reqEditors ...RequestEditorFn) (*Create2Response, error)
|
|
|
|
// CreateForOtherWithBodyWithResponse request with any body
|
|
CreateForOtherWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForOtherResponse, error)
|
|
|
|
CreateForOtherWithResponse(ctx context.Context, workspaceId string, userId string, body CreateForOtherJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForOtherResponse, error)
|
|
|
|
// GetWorkCapacityWithResponse request
|
|
GetWorkCapacityWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetWorkCapacityResponse, error)
|
|
|
|
// GetWebhooksWithResponse request
|
|
GetWebhooksWithResponse(ctx context.Context, workspaceId string, params *GetWebhooksParams, reqEditors ...RequestEditorFn) (*GetWebhooksResponse, error)
|
|
|
|
// Create1WithBodyWithResponse request with any body
|
|
Create1WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create1Response, error)
|
|
|
|
Create1WithResponse(ctx context.Context, workspaceId string, body Create1JSONRequestBody, reqEditors ...RequestEditorFn) (*Create1Response, error)
|
|
|
|
// DeleteWithResponse request
|
|
DeleteWithResponse(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*DeleteResponse, error)
|
|
|
|
// GetWebhookWithResponse request
|
|
GetWebhookWithResponse(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*GetWebhookResponse, error)
|
|
|
|
// UpdateWithBodyWithResponse request with any body
|
|
UpdateWithBodyWithResponse(ctx context.Context, workspaceId string, webhookId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResponse, error)
|
|
|
|
UpdateWithResponse(ctx context.Context, workspaceId string, webhookId string, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResponse, error)
|
|
|
|
// GetLogsForWebhook1WithResponse request
|
|
GetLogsForWebhook1WithResponse(ctx context.Context, workspaceId string, webhookId string, params *GetLogsForWebhook1Params, reqEditors ...RequestEditorFn) (*GetLogsForWebhook1Response, error)
|
|
|
|
// GetLogCountWithResponse request
|
|
GetLogCountWithResponse(ctx context.Context, workspaceId string, webhookId string, params *GetLogCountParams, reqEditors ...RequestEditorFn) (*GetLogCountResponse, error)
|
|
|
|
// TriggerResendEventForWebhookWithResponse request
|
|
TriggerResendEventForWebhookWithResponse(ctx context.Context, workspaceId string, webhookId string, webhookLogId string, reqEditors ...RequestEditorFn) (*TriggerResendEventForWebhookResponse, error)
|
|
|
|
// TriggerTestEventForWebhookWithResponse request
|
|
TriggerTestEventForWebhookWithResponse(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*TriggerTestEventForWebhookResponse, error)
|
|
|
|
// GenerateNewTokenWithResponse request
|
|
GenerateNewTokenWithResponse(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*GenerateNewTokenResponse, error)
|
|
}
|
|
|
|
type GetInitialDataResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *InvoiceEmailLinkDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetInitialDataResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetInitialDataResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DownloadReportResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *openapi_types.File
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DownloadReportResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DownloadReportResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ResetPinResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ResetPinResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ResetPinResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ValidatePinResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *InvoiceEmailLinkPinValidationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ValidatePinResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ValidatePinResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateSmtpConfigurationResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *SMTPConfigurationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateSmtpConfigurationResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateSmtpConfigurationResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DisableAccessToEntitiesInTransferResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *WorkspaceTransferAccessDisabledDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DisableAccessToEntitiesInTransferResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DisableAccessToEntitiesInTransferResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EnableAccessToEntitiesInTransferResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r EnableAccessToEntitiesInTransferResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r EnableAccessToEntitiesInTransferResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UsersExistResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UsersExistResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UsersExistResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HandleCleanupOnSourceRegionResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r HandleCleanupOnSourceRegionResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r HandleCleanupOnSourceRegionResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HandleTransferCompletedOnSourceRegionResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r HandleTransferCompletedOnSourceRegionResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r HandleTransferCompletedOnSourceRegionResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HandleTransferCompletedFailureResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r HandleTransferCompletedFailureResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r HandleTransferCompletedFailureResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HandleTransferCompletedSuccessResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r HandleTransferCompletedSuccessResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r HandleTransferCompletedSuccessResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAllUsersResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UsersDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetAllUsersResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetAllUsersResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUserInfoResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TeamMemberInfoDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUserInfoResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUserInfoResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUserMembershipsAndInvitesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserMembershipAndInviteDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUserMembershipsAndInvitesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUserMembershipsAndInvitesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CheckForNewsletterSubscriptionResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CheckForNewsletterSubscriptionResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CheckForNewsletterSubscriptionResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AddNotificationsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r AddNotificationsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r AddNotificationsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetNewsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]NewsDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetNewsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetNewsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteNewsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteNewsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteNewsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateNewsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateNewsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateNewsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SearchAllUsersResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UsersDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r SearchAllUsersResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r SearchAllUsersResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type NumberOfUsersRegisteredResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *int64
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r NumberOfUsersRegisteredResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r NumberOfUsersRegisteredResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsersOnWorkspaceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UsersAndCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsersOnWorkspaceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsersOnWorkspaceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type BulkEditUsersResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r BulkEditUsersResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r BulkEditUsersResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsersOfWorkspace5Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserListAndCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsersOfWorkspace5Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsersOfWorkspace5Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetInfoResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TeamMemberInfoDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetInfoResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetInfoResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetMembersInfoResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TeamMemberInfoDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetMembersInfoResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetMembersInfoResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUserNamesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]EntityIdNameDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUserNamesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUserNamesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindPoliciesToBeApprovedByUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]PolicyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r FindPoliciesToBeApprovedByUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r FindPoliciesToBeApprovedByUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsersAndUsersFromUserGroupsAssignedToProjectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsersAndUsersFromUserGroupsAssignedToProjectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsersAndUsersFromUserGroupsAssignedToProjectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsersForProjectMembersFilterResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ReportFilterUsersWithCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsersForProjectMembersFilterResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsersForProjectMembersFilterResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsersForAttendanceReportFilter1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ReportFilterUsersWithCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsersForAttendanceReportFilter1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsersForAttendanceReportFilter1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsersOfWorkspace4Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]string
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsersOfWorkspace4Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsersOfWorkspace4Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsersForReportFilterOldResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ReportFilterUsersWithCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsersForReportFilterOldResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsersForReportFilterOldResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsersForReportFilterResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ReportFilterUsersWithCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsersForReportFilterResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsersForReportFilterResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsersOfUserGroupResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsersOfUserGroupResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsersOfUserGroupResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsersOfWorkspace3Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *int64
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsersOfWorkspace3Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsersOfWorkspace3Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsersOfWorkspace2Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TeamMembersAndCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsersOfWorkspace2Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsersOfWorkspace2Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateTimeTrackingSettings1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateTimeTrackingSettings1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateTimeTrackingSettings1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateDashboardSelectionResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateDashboardSelectionResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateDashboardSelectionResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SetDefaultWorkspaceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r SetDefaultWorkspaceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r SetDefaultWorkspaceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ChangeEmailResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ChangeEmailResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ChangeEmailResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HasPendingEmailChangeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *PendingEmailChangeResponse
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r HasPendingEmailChangeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r HasPendingEmailChangeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateLangResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateLangResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateLangResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type MarkAsRead1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r MarkAsRead1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r MarkAsRead1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type MarkAsReadResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r MarkAsReadResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r MarkAsReadResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ChangeNameAdminResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ChangeNameAdminResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ChangeNameAdminResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetNewsForUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]NewsDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetNewsForUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetNewsForUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ReadNewsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ReadNewsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ReadNewsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetNotificationsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]NotificationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetNotificationsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetNotificationsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdatePictureResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdatePictureResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdatePictureResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateNameAndProfilePictureResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UsersNameAndProfilePictureDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateNameAndProfilePictureResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateNameAndProfilePictureResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateSettingsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateSettingsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateSettingsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateSummaryReportSettingsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateSummaryReportSettingsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateSummaryReportSettingsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateTimeTrackingSettingsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateTimeTrackingSettingsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateTimeTrackingSettingsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateTimezoneResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateTimezoneResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateTimezoneResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetVerificationCampaignNotificationsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]NotificationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetVerificationCampaignNotificationsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetVerificationCampaignNotificationsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type MarkNotificationsAsReadResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r MarkNotificationsAsReadResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r MarkNotificationsAsReadResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetWorkCapacityForUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserCapacityDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetWorkCapacityForUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetWorkCapacityForUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsersWorkingDaysResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]GetUsersWorkingDays200
|
|
}
|
|
type GetUsersWorkingDays200 string
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsersWorkingDaysResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsersWorkingDaysResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UploadImageResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UploadFileResponseV1
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UploadImageResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UploadImageResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAllUnfinishedWalkthroughTypesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WalkthroughDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetAllUnfinishedWalkthroughTypesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetAllUnfinishedWalkthroughTypesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FinishWalkthroughResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r FinishWalkthroughResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r FinishWalkthroughResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetOwnerEmailByWorkspaceIdResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *string
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetOwnerEmailByWorkspaceIdResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetOwnerEmailByWorkspaceIdResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetWorkspacesOfUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]WorkspaceOverviewDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetWorkspacesOfUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetWorkspacesOfUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *WorkspaceDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetWorkspaceInfoResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]WorkspaceSubscriptionInfoDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetWorkspaceInfoResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetWorkspaceInfoResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type InsertLegacyPlanNotificationsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r InsertLegacyPlanNotificationsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r InsertLegacyPlanNotificationsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetPermissionsToUserForWorkspacesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AuthorizationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetPermissionsToUserForWorkspacesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetPermissionsToUserForWorkspacesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type LeaveWorkspaceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r LeaveWorkspaceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r LeaveWorkspaceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetWorkspaceByIdResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WorkspaceDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetWorkspaceByIdResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetWorkspaceByIdResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateWorkspaceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WorkspaceDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateWorkspaceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateWorkspaceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetABTestingResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ABTestingDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetABTestingResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetABTestingResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetActiveMembersResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ActiveMembersDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetActiveMembersResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetActiveMembersResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UninstallResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UninstallResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UninstallResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetInstalledAddonsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AddonDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetInstalledAddonsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetInstalledAddonsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type InstallResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *AddonDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r InstallResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r InstallResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetInstalledAddonsIdNamePairResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]IdNamePairDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetInstalledAddonsIdNamePairResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetInstalledAddonsIdNamePairResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetInstalledAddonsByKeysResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]IdNamePairDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetInstalledAddonsByKeysResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetInstalledAddonsByKeysResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Uninstall1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Uninstall1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Uninstall1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAddonByIdResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *AddonDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetAddonByIdResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetAddonByIdResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateSettings1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *AddonDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateSettings1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateSettings1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateStatus3Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *AddonDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateStatus3Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateStatus3Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAddonUserJWTResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *string
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetAddonUserJWTResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetAddonUserJWTResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAddonWebhooksResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WebhooksDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetAddonWebhooksResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetAddonWebhooksResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RemoveUninstalledAddonResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RemoveUninstalledAddonResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RemoveUninstalledAddonResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListOfWorkspace1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AlertDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ListOfWorkspace1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ListOfWorkspace1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create20Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *AlertDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create20Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create20Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete18Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *AlertDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete18Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete18Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Update11Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *AlertDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Update11Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Update11Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAllowedUpdatesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *AllowedUpdates
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetAllowedUpdatesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetAllowedUpdatesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ApproveRequestsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ApproveRequestsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ApproveRequestsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CountResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *int64
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CountResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CountResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HasPendingResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r HasPendingResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r HasPendingResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RemindManagersToApproveResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RemindManagersToApproveResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RemindManagersToApproveResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RemindUsersToSubmitResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RemindUsersToSubmitResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RemindUsersToSubmitResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetApprovalGroupsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ApprovalGroupDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApprovalGroupsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApprovalGroupsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUnsubmittedSummariesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]UnsubmittedSummaryGroupDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUnsubmittedSummariesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUnsubmittedSummariesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type WithdrawAllOfWorkspaceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r WithdrawAllOfWorkspaceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r WithdrawAllOfWorkspaceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetRequestsByWorkspaceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ApprovalInfoDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetRequestsByWorkspaceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetRequestsByWorkspaceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetApprovalRequestResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ApprovalRequestDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApprovalRequestResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApprovalRequestResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateStatus2Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ApprovalRequestDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateStatus2Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateStatus2Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetApprovalDashboardResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ApprovalDashboardDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApprovalDashboardResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApprovalDashboardResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetApprovalDetailsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ApprovalDetailsDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApprovalDetailsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApprovalDetailsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FetchCustomAttributesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]CustomAttributeDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r FetchCustomAttributesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r FetchCustomAttributesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CheckWorkspaceTransferPossibilityResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WorkspaceTransferPossibleDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CheckWorkspaceTransferPossibilityResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CheckWorkspaceTransferPossibilityResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteMany3Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ClientDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteMany3Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteMany3Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetClients1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ClientDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetClients1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetClients1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateMany2Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ClientWithCurrencyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateMany2Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateMany2Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create19Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *ClientDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create19Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create19Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetArchivePermissionsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ArchivePermissionDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetArchivePermissionsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetArchivePermissionsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HaveRelatedTasksResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r HaveRelatedTasksResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r HaveRelatedTasksResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetClientsOfIdsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ClientDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetClientsOfIdsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetClientsOfIdsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetClientsForInvoiceFilter1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ClientDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetClientsForInvoiceFilter1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetClientsForInvoiceFilter1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetClients2Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ClientDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetClients2Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetClients2Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetClientsForReportFilterResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ClientDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetClientsForReportFilterResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetClientsForReportFilterResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetClientIdsForReportFilterResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]string
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetClientIdsForReportFilterResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetClientIdsForReportFilterResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTimeOffPoliciesAndHolidaysForClientResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeOffPolicyHolidayForClients
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTimeOffPoliciesAndHolidaysForClientResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTimeOffPoliciesAndHolidaysForClientResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete17Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ClientDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete17Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete17Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetClientResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ClientDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetClientResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetClientResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetProjectsArchivePermissionsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetProjectsArchivePermissionsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetProjectsArchivePermissionsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Update10Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ClientWithCurrencyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Update10Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Update10Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SetCostRate2Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WorkspaceDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r SetCostRate2Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r SetCostRate2Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetCouponResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *SubscriptionCouponDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetCouponResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetCouponResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetWorkspaceCurrenciesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]CurrencyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetWorkspaceCurrenciesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetWorkspaceCurrenciesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateCurrencyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *CurrencyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateCurrencyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateCurrencyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RemoveCurrencyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RemoveCurrencyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RemoveCurrencyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetCurrencyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *string
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetCurrencyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetCurrencyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateCurrencyCodeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *CurrencyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateCurrencyCodeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateCurrencyCodeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SetCurrencyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WorkspaceDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r SetCurrencyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r SetCurrencyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type OfWorkspaceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]CustomFieldDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r OfWorkspaceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r OfWorkspaceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create18Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *CustomFieldDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create18Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create18Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type OfWorkspaceWithRequiredAvailabilityResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]CustomFieldRequiredAvailabilityDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r OfWorkspaceWithRequiredAvailabilityResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r OfWorkspaceWithRequiredAvailabilityResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete16Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete16Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete16Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EditResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *CustomFieldDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r EditResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r EditResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RemoveDefaultValueOfProjectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *CustomFieldDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RemoveDefaultValueOfProjectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RemoveDefaultValueOfProjectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EditDefaultValuesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *CustomFieldDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r EditDefaultValuesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r EditDefaultValuesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetOfProjectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]CustomFieldDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetOfProjectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetOfProjectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateCustomLabelsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WorkspaceDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateCustomLabelsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateCustomLabelsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AddEmailResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r AddEmailResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r AddEmailResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteManyExpensesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteManyExpensesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteManyExpensesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetExpensesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ExpensesAndTotalsDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetExpensesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetExpensesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateExpenseResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *ExpenseDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateExpenseResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateExpenseResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetCategoriesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ExpenseCategoriesWithCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetCategoriesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetCategoriesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create17Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *ExpenseCategoryDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create17Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create17Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetCategoriesByIdsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ExpenseCategoryDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetCategoriesByIdsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetCategoriesByIdsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteCategoryResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteCategoryResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteCategoryResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateCategoryResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ExpenseCategoryDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateCategoryResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateCategoryResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateStatus1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ExpenseCategoryDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateStatus1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateStatus1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetExpensesInDateRangeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ExpenseHydratedDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetExpensesInDateRangeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetExpensesInDateRangeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateInvoicedStatus1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateInvoicedStatus1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateInvoicedStatus1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RestoreManyExpensesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ExpenseDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RestoreManyExpensesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RestoreManyExpensesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteExpenseResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ExpenseDeletedDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteExpenseResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteExpenseResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetExpenseResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ExpenseDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetExpenseResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetExpenseResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateExpenseResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ExpenseWithApprovalRequestUpdatedDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateExpenseResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateExpenseResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DownloadFileResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]byte
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DownloadFileResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DownloadFileResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ImportFileDataResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ImportFileDataResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ImportFileDataResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CheckUsersForImportResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *CheckUsersResponse
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CheckUsersForImportResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CheckUsersForImportResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetHolidaysResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]HolidayDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetHolidaysResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetHolidaysResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create16Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *HolidayDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create16Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create16Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete15Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *HolidayDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete15Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete15Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Update9Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *HolidayDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Update9Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Update9Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SetHourlyRate2Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WorkspaceDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r SetHourlyRate2Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r SetHourlyRate2Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetInvitedEmailsInfoResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *InvitedEmailsInfo
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetInvitedEmailsInfoResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetInvitedEmailsInfoResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetInvoiceEmailTemplatesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]InvoiceEmailTemplateDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetInvoiceEmailTemplatesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetInvoiceEmailTemplatesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpsertInvoiceEmailTemplateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *InvoiceEmailTemplateDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpsertInvoiceEmailTemplateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpsertInvoiceEmailTemplateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetInvoiceEmailDataResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *InvoiceEmailDataDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetInvoiceEmailDataResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetInvoiceEmailDataResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SendInvoiceEmailResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r SendInvoiceEmailResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r SendInvoiceEmailResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateInvoiceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *CreateInvoiceDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateInvoiceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateInvoiceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAllCompaniesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]CompanyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetAllCompaniesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetAllCompaniesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateCompanyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *CompanyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateCompanyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateCompanyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateCompaniesInWorkspaceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateCompaniesInWorkspaceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateCompaniesInWorkspaceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CountAllCompaniesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *int64
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CountAllCompaniesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CountAllCompaniesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetClientsForInvoiceFilterResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]CompanyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetClientsForInvoiceFilterResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetClientsForInvoiceFilterResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteCompanyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteCompanyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteCompanyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetCompanyByIdResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *CompanyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetCompanyByIdResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetCompanyByIdResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateCompanyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *CompanyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateCompanyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateCompanyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetInvoicesInfoResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *InvoiceInfoResponseDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetInvoicesInfoResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetInvoicesInfoResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetInvoiceItemTypesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]InvoiceItemTypeDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetInvoiceItemTypesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetInvoiceItemTypesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateInvoiceItemTypeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *CreateInvoiceItemTypeDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateInvoiceItemTypeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateInvoiceItemTypeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteInvoiceItemTypeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteInvoiceItemTypeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteInvoiceItemTypeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateInvoiceItemTypeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *InvoiceItemTypeDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateInvoiceItemTypeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateInvoiceItemTypeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetNextInvoiceNumberResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *NextInvoiceNumberDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetNextInvoiceNumberResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetNextInvoiceNumberResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetInvoicePermissionsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *InvoicePermissionsDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetInvoicePermissionsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetInvoicePermissionsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateInvoicePermissionsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateInvoicePermissionsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateInvoicePermissionsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CanUserManageInvoicesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CanUserManageInvoicesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CanUserManageInvoicesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetInvoiceSettingsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *InvoiceSettingsDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetInvoiceSettingsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetInvoiceSettingsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateInvoiceSettingsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateInvoiceSettingsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateInvoiceSettingsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteInvoiceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteInvoiceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteInvoiceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetInvoiceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *InvoiceOverviewDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetInvoiceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetInvoiceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateInvoiceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *InvoiceOverviewDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateInvoiceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateInvoiceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DuplicateInvoiceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *InvoiceOverviewDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DuplicateInvoiceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DuplicateInvoiceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ExportInvoiceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]byte
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ExportInvoiceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ExportInvoiceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ImportTimeAndExpensesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *InvoiceOverviewDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ImportTimeAndExpensesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ImportTimeAndExpensesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AddInvoiceItemResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *InvoiceItemDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r AddInvoiceItemResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r AddInvoiceItemResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ReorderInvoiceItem1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]InvoiceItemDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ReorderInvoiceItem1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ReorderInvoiceItem1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EditInvoiceItemResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *InvoiceOverviewDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r EditInvoiceItemResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r EditInvoiceItemResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteInvoiceItemsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *InvoiceOverviewDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteInvoiceItemsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteInvoiceItemsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetPaymentsForInvoiceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]InvoicePaymentDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetPaymentsForInvoiceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetPaymentsForInvoiceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateInvoicePaymentResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *InvoiceOverviewDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateInvoicePaymentResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateInvoicePaymentResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeletePaymentByIdResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *InvoiceOverviewDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeletePaymentByIdResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeletePaymentByIdResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ChangeInvoiceStatusResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ChangeInvoiceStatusResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ChangeInvoiceStatusResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AuthorizationCheckResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r AuthorizationCheckResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r AuthorizationCheckResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type IsAvailableResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r IsAvailableResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r IsAvailableResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type IsAvailable1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r IsAvailable1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r IsAvailable1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GeneratePinCodeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *PinCodeDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GeneratePinCodeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GeneratePinCodeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GeneratePinCodeForUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *PinCodeDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GeneratePinCodeForUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GeneratePinCodeForUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUserPinCodeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *KioskUserPinCodeDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUserPinCodeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUserPinCodeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdatePinCodeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdatePinCodeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdatePinCodeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetKiosksOfWorkspaceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *KioskHydratedWithCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetKiosksOfWorkspaceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetKiosksOfWorkspaceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create15Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *KioskDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create15Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create15Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateBreakDefaultsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]KioskDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateBreakDefaultsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateBreakDefaultsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTotalCountOfKiosksOnWorkspaceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *int64
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTotalCountOfKiosksOnWorkspaceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTotalCountOfKiosksOnWorkspaceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateDefaultsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]KioskDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateDefaultsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateDefaultsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HasActiveKiosksResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r HasActiveKiosksResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r HasActiveKiosksResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetWithProjectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]EntityIdNameDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetWithProjectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetWithProjectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetWithTaskResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]EntityIdNameDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetWithTaskResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetWithTaskResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetForReportFilterResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]EntityIdNameDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetForReportFilterResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetForReportFilterResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetWithoutDefaultsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]KioskDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetWithoutDefaultsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetWithoutDefaultsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteKioskResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteKioskResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteKioskResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetKioskByIdResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *KioskHydratedDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetKioskByIdResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetKioskByIdResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Update8Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *KioskDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Update8Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Update8Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ExportAssigneesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]byte
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ExportAssigneesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ExportAssigneesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HasEntryInProgressResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r HasEntryInProgressResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r HasEntryInProgressResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateStatusResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *KioskDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateStatusResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateStatusResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AcknowledgeLegacyPlanNotificationsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r AcknowledgeLegacyPlanNotificationsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r AcknowledgeLegacyPlanNotificationsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetLegacyPlanUpgradeDataResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *LegacyPlanUpgradeDataDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetLegacyPlanUpgradeDataResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetLegacyPlanUpgradeDataResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AddLimitedUsersResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WorkspaceDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r AddLimitedUsersResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r AddLimitedUsersResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetLimitedUsersCountResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *int32
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetLimitedUsersCountResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetLimitedUsersCountResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetMemberProfileResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *MemberProfileDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetMemberProfileResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetMemberProfileResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateMemberProfileResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *MemberProfileDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateMemberProfileResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateMemberProfileResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateMemberProfileWithAdditionalDataResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *MemberProfileDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateMemberProfileWithAdditionalDataResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateMemberProfileWithAdditionalDataResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateMemberSettingsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *MemberProfileDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateMemberSettingsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateMemberSettingsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetWeekStartResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *GetWeekStart200
|
|
}
|
|
type GetWeekStart200 string
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetWeekStartResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetWeekStartResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateMemberWorkingDaysAndCapacityResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *MemberProfileDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateMemberWorkingDaysAndCapacityResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateMemberWorkingDaysAndCapacityResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetMembersCountResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *MembersCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetMembersCountResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetMembersCountResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindNotInvitedEmailsInResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]string
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r FindNotInvitedEmailsInResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r FindNotInvitedEmailsInResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetOrganizationResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *OrganizationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetOrganizationResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetOrganizationResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create14Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *OrganizationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create14Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create14Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetOrganizationNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *OrganizationNameDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetOrganizationNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetOrganizationNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CheckAvailabilityOfDomainNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CheckAvailabilityOfDomainNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CheckAvailabilityOfDomainNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteOrganizationResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *OrganizationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteOrganizationResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteOrganizationResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateOrganizationResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *OrganizationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateOrganizationResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateOrganizationResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetLoginSettingsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *LoginSettingsDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetLoginSettingsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetLoginSettingsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteOAuth2ConfigurationResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteOAuth2ConfigurationResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteOAuth2ConfigurationResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetOrganizationOAuth2ConfigurationResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *OAuth2ConfigurationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetOrganizationOAuth2ConfigurationResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetOrganizationOAuth2ConfigurationResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateOAuth2Configuration1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *OAuth2ConfigurationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateOAuth2Configuration1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateOAuth2Configuration1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type TestOAuth2ConfigurationResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r TestOAuth2ConfigurationResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r TestOAuth2ConfigurationResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteSAML2ConfigurationResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteSAML2ConfigurationResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteSAML2ConfigurationResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetOrganizationSAML2ConfigurationResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *SAML2ConfigurationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetOrganizationSAML2ConfigurationResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetOrganizationSAML2ConfigurationResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateSAML2ConfigurationResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *SAML2ConfigurationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateSAML2ConfigurationResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateSAML2ConfigurationResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type TestSAML2ConfigurationResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r TestSAML2ConfigurationResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r TestSAML2ConfigurationResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAllOrganizationsOfUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]string
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetAllOrganizationsOfUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetAllOrganizationsOfUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetWorkspaceOwnerResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *OwnerIdResponse
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetWorkspaceOwnerResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetWorkspaceOwnerResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type TransferOwnershipResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r TransferOwnershipResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r TransferOwnershipResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetWorkspaceOwnerTimeZoneResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *OwnerTimeZoneResponse
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetWorkspaceOwnerTimeZoneResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetWorkspaceOwnerTimeZoneResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CancelSubscriptionResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *BillingInformationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CancelSubscriptionResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CancelSubscriptionResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ConfirmPaymentResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *BillingInformationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ConfirmPaymentResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ConfirmPaymentResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetCustomerInfoResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *CustomerInformationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetCustomerInfoResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetCustomerInfoResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateCustomerResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *CustomerDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateCustomerResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateCustomerResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateCustomerResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateCustomerResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateCustomerResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EditInvoiceInformationResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *CustomerBillingInformationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r EditInvoiceInformationResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r EditInvoiceInformationResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EditPaymentInformationResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *CustomerPaymentInformationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r EditPaymentInformationResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r EditPaymentInformationResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ExtendTrialResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ExtendTrialResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ExtendTrialResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetFeatureSubscriptionsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]FeatureSubscriptionsDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetFeatureSubscriptionsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetFeatureSubscriptionsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type InitialUpgradeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UpgradePriceDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r InitialUpgradeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r InitialUpgradeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetInvoiceInfoResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *CustomerBillingInformationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetInvoiceInfoResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetInvoiceInfoResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetInvoicesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]StripeInvoiceDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetInvoicesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetInvoicesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetInvoicesCountResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *map[string]int64
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetInvoicesCountResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetInvoicesCountResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetLastOpenInvoiceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *StripeInvoicePayDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetLastOpenInvoiceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetLastOpenInvoiceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetInvoicesListResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *StripeInvoicesDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetInvoicesListResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetInvoicesListResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetPaymentDateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *BillingInformationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetPaymentDateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetPaymentDateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetPaymentInfoResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *CustomerPaymentInformationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetPaymentInfoResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetPaymentInfoResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateSetupIntentForPaymentMethodResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *SetupIntentDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateSetupIntentForPaymentMethodResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateSetupIntentForPaymentMethodResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type PreviewUpgradeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UpgradePriceDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PreviewUpgradeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PreviewUpgradeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ReactivateSubscriptionResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ReactivateSubscriptionResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ReactivateSubscriptionResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetScheduledInvoiceInfoResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *NextCustomerInformationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetScheduledInvoiceInfoResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetScheduledInvoiceInfoResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateUserSeatsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *BillingInformationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateUserSeatsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateUserSeatsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateSetupIntentForInitialSubscriptionResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *SetupIntentDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateSetupIntentForInitialSubscriptionResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateSetupIntentForInitialSubscriptionResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateSubscriptionResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *BillingInformationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateSubscriptionResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateSubscriptionResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateSubscriptionResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *BillingInformationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateSubscriptionResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateSubscriptionResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpgradePreCheckResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UpgradePreCheckDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpgradePreCheckResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpgradePreCheckResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteSubscriptionResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteSubscriptionResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteSubscriptionResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type TerminateTrialResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r TerminateTrialResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r TerminateTrialResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type StartTrialResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r StartTrialResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r StartTrialResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type WasRegionalEverAllowedResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r WasRegionalEverAllowedResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r WasRegionalEverAllowedResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindForUserAndPolicyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]BalanceHistoryDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r FindForUserAndPolicyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r FindForUserAndPolicyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetClientsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ProjectsByClientDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetClientsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetClientsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetProjects3Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ProjectFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetProjects3Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetProjects3Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetProjectFavoritesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ProjectFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetProjectFavoritesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetProjectFavoritesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTasks21Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TaskFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTasks21Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTasks21Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RecalculateProjectStatus1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RecalculateProjectStatus1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RecalculateProjectStatus1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetProjectAndTaskResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *TaskWithProjectDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetProjectAndTaskResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetProjectAndTaskResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteMany2Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ProjectDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteMany2Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteMany2Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetProjects2Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *PageProjectDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetProjects2Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetProjects2Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateMany1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *BulkProjectEditDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateMany1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateMany1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create12Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *ProjectFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create12Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create12Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetFilteredProjectsCountResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *int32
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetFilteredProjectsCountResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetFilteredProjectsCountResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetFilteredProjectsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *PageProjectDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetFilteredProjectsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetFilteredProjectsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateFromTemplateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *ProjectFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateFromTemplateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateFromTemplateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetProjectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ProjectDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetProjectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetProjectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetLastUsedProjectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ProjectDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetLastUsedProjectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetLastUsedProjectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type LastUsedProject1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *struct {
|
|
union json.RawMessage
|
|
}
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r LastUsedProject1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r LastUsedProject1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetProjectsListResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ProjectDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetProjectsListResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetProjectsListResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HasManagerRole1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r HasManagerRole1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r HasManagerRole1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetProjectsForReportFilterResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ProjectDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetProjectsForReportFilterResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetProjectsForReportFilterResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetProjectIdsForReportFilterResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]string
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetProjectIdsForReportFilterResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetProjectIdsForReportFilterResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTasksByIdsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TaskDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTasksByIdsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTasksByIdsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAllTasksResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TaskDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetAllTasksResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetAllTasksResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTasksResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TaskDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTasksResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTasksResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTasksForReportFilterResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TasksGroupedByProjectIdDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTasksForReportFilterResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTasksForReportFilterResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTaskIdsForReportFilterResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]string
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTaskIdsForReportFilterResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTaskIdsForReportFilterResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTimeOffPoliciesAndHolidaysWithProjectsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeOffPolicyHolidayForProjects
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTimeOffPoliciesAndHolidaysWithProjectsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTimeOffPoliciesAndHolidaysWithProjectsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetLastUsedOfUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ProjectDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetLastUsedOfUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetLastUsedOfUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetPermissionsToUserForProjectsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AuthorizationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetPermissionsToUserForProjectsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetPermissionsToUserForProjectsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete13Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ProjectDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete13Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete13Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetProject1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ProjectDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetProject1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetProject1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Update14Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ProjectDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Update14Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Update14Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Update6Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ProjectDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Update6Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Update6Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SetCostRate1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ProjectDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r SetCostRate1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r SetCostRate1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateEstimateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ProjectDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateEstimateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateEstimateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SetHourlyRate1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ProjectDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r SetHourlyRate1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r SetHourlyRate1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HasManagerRoleResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r HasManagerRoleResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r HasManagerRoleResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAuthsForProjectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AuthorizationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetAuthsForProjectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetAuthsForProjectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RecalculateProjectStatusResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RecalculateProjectStatusResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RecalculateProjectStatusResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTasks1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TaskDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTasks1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTasks1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create13Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *TaskDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create13Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create13Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTasksAssignedToUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TaskDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTasksAssignedToUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTasksAssignedToUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTimeOffPoliciesAndHolidaysWithTasksResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeOffPolicyHolidayForTasks
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTimeOffPoliciesAndHolidaysWithTasksResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTimeOffPoliciesAndHolidaysWithTasksResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Update7Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TaskDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Update7Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Update7Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SetCostRateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TaskDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r SetCostRateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r SetCostRateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SetHourlyRateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TaskDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r SetHourlyRateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r SetHourlyRateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete14Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TaskDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete14Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete14Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTaskAssignedToUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TaskDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTaskAssignedToUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTaskAssignedToUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AddUsers1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ProjectDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r AddUsers1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r AddUsers1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetStatusResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ProjectStatus
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetStatusResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetStatusResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RemoveUserGroupMembershipResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ProjectDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RemoveUserGroupMembershipResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RemoveUserGroupMembershipResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsers4Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsers4Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsers4Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AddUsersCostRate1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ProjectDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r AddUsersCostRate1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r AddUsersCostRate1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AddUsersHourlyRate1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ProjectDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r AddUsersHourlyRate1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r AddUsersHourlyRate1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RemoveUserMembershipResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ProjectDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RemoveUserMembershipResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RemoveUserMembershipResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RemovePermissionsToUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AuthorizationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RemovePermissionsToUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RemovePermissionsToUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetPermissionsToUser1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AuthorizationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetPermissionsToUser1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetPermissionsToUser1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AddPermissionsToUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AuthorizationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r AddPermissionsToUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r AddPermissionsToUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DisconnectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DisconnectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DisconnectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ConnectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *PumbleInitialConnectionDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ConnectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ConnectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Connect1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *PumbleConnectedDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Connect1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Connect1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SyncClientsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *[]ClientDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r SyncClientsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r SyncClientsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SyncProjectsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *[]ProjectDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r SyncProjectsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r SyncProjectsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateProjectsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateProjectsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateProjectsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAllRegionsForUserAccountResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]RegionDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetAllRegionsForUserAccountResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetAllRegionsForUserAccountResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListOfWorkspaceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ReminderDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ListOfWorkspaceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ListOfWorkspaceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create11Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *ReminderDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create11Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create11Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type OfWorkspaceIdAndUserIdResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ReminderDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r OfWorkspaceIdAndUserIdResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r OfWorkspaceIdAndUserIdResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete12Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete12Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete12Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Update5Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ReminderDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Update5Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Update5Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetDashboardInfoResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *MainReportDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetDashboardInfoResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetDashboardInfoResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetMyMostTrackedResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]MostTrackedDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetMyMostTrackedResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetMyMostTrackedResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTeamActivitiesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TeamActivityDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTeamActivitiesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTeamActivitiesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAmountPreviewResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *BillableAndCostAmountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetAmountPreviewResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetAmountPreviewResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetDraftAssignmentsCountResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *DraftAssignmentsCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetDraftAssignmentsCountResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetDraftAssignmentsCountResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetProjectTotalsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]SchedulingProjectsTotalsWithoutBillableDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetProjectTotalsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetProjectTotalsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetFilteredProjectTotalsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]SchedulingProjectsTotalsWithoutBillableDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetFilteredProjectTotalsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetFilteredProjectTotalsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetProjectTotalsForSingleProjectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *SchedulingProjectsTotalsWithoutBillableDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetProjectTotalsForSingleProjectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetProjectTotalsForSingleProjectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetProjectsForUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *SchedulingProjectsDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetProjectsForUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetProjectsForUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type PublishAssignmentsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PublishAssignmentsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PublishAssignmentsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateRecurringResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *[]AssignmentDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateRecurringResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateRecurringResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete11Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AssignmentDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete11Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete11Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EditRecurringResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AssignmentDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r EditRecurringResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r EditRecurringResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EditPeriodForRecurringResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AssignmentDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r EditPeriodForRecurringResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r EditPeriodForRecurringResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EditRecurringPeriodResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AssignmentDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r EditRecurringPeriodResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r EditRecurringPeriodResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUserTotalsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]SchedulingUsersTotalsWithoutBillableDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUserTotalsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUserTotalsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAssignmentsForUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AssignmentHydratedDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetAssignmentsForUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetAssignmentsForUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetFilteredAssignmentsForUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AssignmentHydratedDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetFilteredAssignmentsForUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetFilteredAssignmentsForUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsers3Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *SchedulingUsersBaseDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsers3Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsers3Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetProjects1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *SchedulingProjectsBaseDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetProjects1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetProjects1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RemindToPublishResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RemindToPublishResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RemindToPublishResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUserTotalsForSingleUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *SchedulingUsersBaseDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUserTotalsForSingleUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUserTotalsForSingleUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Get3Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *AssignmentDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Get3Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Get3Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CopyAssignmentResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AssignmentDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CopyAssignmentResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CopyAssignmentResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SplitAssignmentResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AssignmentDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r SplitAssignmentResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r SplitAssignmentResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ShiftScheduleResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AssignmentDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ShiftScheduleResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ShiftScheduleResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HideProjectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r HideProjectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r HideProjectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ShowProjectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ShowProjectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ShowProjectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type HideUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r HideUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r HideUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ShowUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ShowUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ShowUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create10Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *MilestoneDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create10Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create10Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete10Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *MilestoneDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete10Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete10Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Get2Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *MilestoneDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Get2Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Get2Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Edit1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *MilestoneDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Edit1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Edit1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EditDateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *MilestoneDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r EditDateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r EditDateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetProjectsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ProjectFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetProjectsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetProjectsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsers2Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ReportFilterUsersWithCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsers2Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsers2Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsersAssignedToProjectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsersAssignedToProjectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsersAssignedToProjectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetSidebarConfigResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *SidebarResponseDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetSidebarConfigResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetSidebarConfigResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateSidebarResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *SidebarResponseDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateSidebarResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateSidebarResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FilterUsersByStatusResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]PtoTeamMemberDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r FilterUsersByStatusResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r FilterUsersByStatusResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete9Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete9Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete9Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type StopResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r StopResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r StopResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type StartResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *TimeEntryFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r StartResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r StartResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteMany1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TagDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteMany1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteMany1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTagsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TagDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTagsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTagsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateManyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TagDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateManyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateManyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create9Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *TagDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create9Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create9Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ConnectedToApprovedEntriesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ConnectedToApprovedEntriesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ConnectedToApprovedEntriesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTagsOfIdsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TagDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTagsOfIdsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTagsOfIdsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTagIdsByNameAndStatusResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]string
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTagIdsByNameAndStatusResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTagIdsByNameAndStatusResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete8Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TagDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete8Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete8Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Update4Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TagDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Update4Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Update4Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTemplatesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TemplateFullWithEntitiesFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTemplatesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTemplatesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create8Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TemplateDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create8Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create8Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete7Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TemplateDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete7Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete7Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTemplateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TemplateDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTemplateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTemplateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Update13Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TemplateDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Update13Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Update13Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ActivateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *CopiedEntriesDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ActivateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ActivateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeactivateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeactivateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeactivateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CopyTimeEntriesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *CopiedEntriesDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CopyTimeEntriesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CopyTimeEntriesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ContinueTimeEntryResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *TimeEntryFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ContinueTimeEntryResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ContinueTimeEntryResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTeamMembersOfAdminResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *PtoTeamMembersAndCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTeamMembersOfAdminResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTeamMembersOfAdminResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetBalancesForPolicyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *BalancesWithCount
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetBalancesForPolicyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetBalancesForPolicyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateBalanceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateBalanceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateBalanceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetBalancesForUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *BalancesWithCount
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetBalancesForUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetBalancesForUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTeamMembersOfManagerResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *PtoTeamMembersAndCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTeamMembersOfManagerResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTeamMembersOfManagerResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindPoliciesForWorkspaceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]PolicyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r FindPoliciesForWorkspaceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r FindPoliciesForWorkspaceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreatePolicyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *PolicyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreatePolicyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreatePolicyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetPolicyAssignmentForCurrentUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]PolicyAssignmentFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetPolicyAssignmentForCurrentUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetPolicyAssignmentForCurrentUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTeamAssignmentsDistributionResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TeamPolicyAssignmentsDistribution
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTeamAssignmentsDistributionResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTeamAssignmentsDistributionResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetPolicyAssignmentsForUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]PolicyAssignmentFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetPolicyAssignmentsForUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetPolicyAssignmentsForUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type FindPoliciesForUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]PolicyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r FindPoliciesForUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r FindPoliciesForUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeletePolicyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeletePolicyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeletePolicyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdatePolicyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *PolicyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdatePolicyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdatePolicyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ArchiveResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *PolicyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ArchiveResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ArchiveResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RestoreResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *PolicyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RestoreResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RestoreResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetPolicyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *PolicyDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetPolicyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetPolicyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create7Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeOffRequestFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create7Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create7Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete6Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeOffRequestDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete6Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete6Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ApproveResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeOffRequestDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ApproveResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ApproveResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RejectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeOffRequestDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RejectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RejectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateForOther1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeOffRequestFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateForOther1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateForOther1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Get1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeOffRequestsWithCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Get1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Get1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTimeOffRequestByIdResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeOffRequestFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTimeOffRequestByIdResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTimeOffRequestByIdResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetAllUsersOfWorkspaceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *PtoTeamMembersAndCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetAllUsersOfWorkspaceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetAllUsersOfWorkspaceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUserGroupsOfWorkspaceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *PtoTeamMembersAndCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUserGroupsOfWorkspaceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUserGroupsOfWorkspaceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsersOfWorkspaceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *PtoTeamMembersAndCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsersOfWorkspaceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsersOfWorkspaceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimelineUsersDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTimelineForReportsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimelineUsersDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTimelineForReportsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTimelineForReportsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteManyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TimeEntryUpdatedDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteManyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteManyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTimeEntriesBySearchValueResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TimeEntryRecentlyUsedDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTimeEntriesBySearchValueResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTimeEntriesBySearchValueResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create6Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create6Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create6Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type PatchTimeEntriesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PatchTimeEntriesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PatchTimeEntriesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type EndStartedResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r EndStartedResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r EndStartedResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetMultipleTimeEntriesByIdResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetMultipleTimeEntriesByIdResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetMultipleTimeEntriesByIdResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateFull1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *TimeEntryFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateFull1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateFull1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTimeEntryInProgressResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTimeEntryInProgressResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTimeEntryInProgressResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateInvoicedStatusResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateInvoicedStatusResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateInvoicedStatusResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListOfProjectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TimeEntryFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ListOfProjectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ListOfProjectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTimeEntriesRecentlyUsedResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TimeEntryRecentlyUsedDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTimeEntriesRecentlyUsedResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTimeEntriesRecentlyUsedResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RestoreTimeEntriesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RestoreTimeEntriesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RestoreTimeEntriesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateForManyResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TimeEntryWithUsernameDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateForManyResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateForManyResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateForOthersResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *TimeEntrySummaryDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateForOthersResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateForOthersResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListOfFullResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TeamMemberInfoDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ListOfFullResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ListOfFullResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTimeEntriesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TimeEntryDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTimeEntriesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTimeEntriesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AssertTimeEntriesExistInDateRangeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r AssertTimeEntriesExistInDateRangeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r AssertTimeEntriesExistInDateRangeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateFullResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *TimeEntryFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateFullResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateFullResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTimeEntriesInRangeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TimeEntryFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTimeEntriesInRangeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTimeEntriesInRangeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTimeEntriesForTimesheetResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TimeEntryDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTimeEntriesForTimesheetResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTimeEntriesForTimesheetResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type PatchResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryUpdatedDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PatchResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PatchResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Update3Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Update3Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Update3Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTimeEntryAttributesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]CustomAttributeDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTimeEntryAttributesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTimeEntryAttributesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateTimeEntryAttributeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *CustomAttributeDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateTimeEntryAttributeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateTimeEntryAttributeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteTimeEntryAttributeResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *CustomAttributeDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteTimeEntryAttributeResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteTimeEntryAttributeResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateBillableResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateBillableResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateBillableResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateDescriptionResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateDescriptionResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateDescriptionResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateEndResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateEndResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateEndResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateFullResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateFullResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateFullResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateProjectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateProjectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateProjectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RemoveProjectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RemoveProjectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RemoveProjectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateProjectAndTaskResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateProjectAndTaskResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateProjectAndTaskResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateAndSplitResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateAndSplitResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateAndSplitResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SplitTimeEntryResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *[]TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r SplitTimeEntryResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r SplitTimeEntryResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateStartResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateStartResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateStartResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateTagsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateTagsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateTagsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RemoveTaskResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RemoveTaskResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RemoveTaskResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateTimeIntervalResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryUpdatedDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateTimeIntervalResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateTimeIntervalResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete5Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryUpdatedDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete5Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete5Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateCustomFieldResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *CustomFieldValueDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateCustomFieldResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateCustomFieldResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type PenalizeCurrentTimerAndStartNewTimeEntryResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r PenalizeCurrentTimerAndStartNewTimeEntryResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r PenalizeCurrentTimerAndStartNewTimeEntryResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type TransferWorkspaceDeprecatedFlowResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WorkspaceTransferDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r TransferWorkspaceDeprecatedFlowResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r TransferWorkspaceDeprecatedFlowResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type TransferWorkspaceResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WorkspaceTransferDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r TransferWorkspaceResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r TransferWorkspaceResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTrialActivationDataResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TrialActivationDataDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTrialActivationDataResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTrialActivationDataResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RemoveMemberResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RemoveMemberResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RemoveMemberResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CopyTimeEntryCalendarDragResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CopyTimeEntryCalendarDragResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CopyTimeEntryCalendarDragResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DuplicateTimeEntryResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *TimeEntryDtoImpl
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DuplicateTimeEntryResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DuplicateTimeEntryResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUserGroups1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]UserGroupDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUserGroups1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUserGroups1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create5Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *UserGroupDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create5Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create5Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUserGroups2Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *GroupsAndCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUserGroups2Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUserGroups2Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUserGroupNamesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]UserGroupDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUserGroupNamesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUserGroupNamesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsersForReportFilter1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ReportFilterUsersWithCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsersForReportFilter1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsersForReportFilter1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUserGroupForReportFilterPostResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ReportFilterUsersWithCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUserGroupForReportFilterPostResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUserGroupForReportFilterPostResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsersForAttendanceReportFilterResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ReportFilterUsersWithCountDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsersForAttendanceReportFilterResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsersForAttendanceReportFilterResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUserGroupIdsByNameResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]string
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUserGroupIdsByNameResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUserGroupIdsByNameResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUserGroupsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]UserGroupDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUserGroupsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUserGroupsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RemoveUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]UserGroupDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RemoveUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RemoveUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AddUsersToUserGroupsFilterResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]UserGroupDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r AddUsersToUserGroupsFilterResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r AddUsersToUserGroupsFilterResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete4Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserGroupDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete4Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete4Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Update2Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserGroupDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Update2Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Update2Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsersResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsersResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsersResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUsers1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]UserDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUsers1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUsers1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AddUsersResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WorkspaceDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r AddUsersResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r AddUsersResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetExpensesForUsersResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ExpenseDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetExpensesForUsersResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetExpensesForUsersResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SetMembershipsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WorkspaceDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r SetMembershipsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r SetMembershipsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ResendInviteResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WorkspaceDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ResendInviteResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ResendInviteResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateDeprecatedResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *ApprovalRequestDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateDeprecatedResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateDeprecatedResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetRequestsByUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ApprovalInfoDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetRequestsByUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetRequestsByUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetApprovedTotalsResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ApprovalPeriodTotalsDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetApprovedTotalsResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetApprovedTotalsResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateForOtherDeprecatedResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *ApprovalRequestDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateForOtherDeprecatedResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateForOtherDeprecatedResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetPreviewResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ApprovalPeriodTotalsDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetPreviewResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetPreviewResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTimeEntryStatusResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryApprovalStatusDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTimeEntryStatusResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTimeEntryStatusResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetTimeEntryWeekStatusResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TimeEntryApprovalStatusDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetTimeEntryWeekStatusResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetTimeEntryWeekStatusResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetWeeklyRequestsByUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]ApprovalInfoDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetWeeklyRequestsByUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetWeeklyRequestsByUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type WithdrawAllOfUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r WithdrawAllOfUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r WithdrawAllOfUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type WithdrawAllOfWorkspaceDeprecatedResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r WithdrawAllOfWorkspaceDeprecatedResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r WithdrawAllOfWorkspaceDeprecatedResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type WithdrawWeeklyOfUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r WithdrawWeeklyOfUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r WithdrawWeeklyOfUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SetCostRateForUser1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WorkspaceDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r SetCostRateForUser1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r SetCostRateForUser1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpsertUserCustomFieldValueResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *[]UserCustomFieldValueDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpsertUserCustomFieldValueResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpsertUserCustomFieldValueResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetFavoriteEntriesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]FavoriteTimeEntryFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetFavoriteEntriesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetFavoriteEntriesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateFavoriteTimeEntryResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *FavoriteTimeEntryFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateFavoriteTimeEntryResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateFavoriteTimeEntryResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ReorderInvoiceItemResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]FavoriteTimeEntryFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ReorderInvoiceItemResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ReorderInvoiceItemResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete3Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete3Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete3Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Update1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *FavoriteTimeEntryFullDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Update1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Update1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetHolidays1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]HolidayDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetHolidays1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetHolidays1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type SetHourlyRateForUser1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WorkspaceDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r SetHourlyRateForUser1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r SetHourlyRateForUser1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetPermissionsToUserResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]AuthorizationDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetPermissionsToUserResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetPermissionsToUserResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type RemoveFavoriteProjectResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r RemoveFavoriteProjectResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r RemoveFavoriteProjectResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete2Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete2Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete2Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create4Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *ProjectFavoritesDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create4Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create4Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Delete1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Delete1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Delete1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create3Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *TaskFavoritesDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create3Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create3Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ReSubmitResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *ApprovalRequestDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r ReSubmitResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r ReSubmitResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUserRolesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserRolesInfoDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetUserRolesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetUserRolesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateUserRolesResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *UserRolesInfoDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateUserRolesResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateUserRolesResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create2Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *ApprovalRequestDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create2Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create2Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateForOtherResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *ApprovalRequestDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r CreateForOtherResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r CreateForOtherResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetWorkCapacityResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *int64
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetWorkCapacityResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetWorkCapacityResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetWebhooksResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WebhooksDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetWebhooksResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetWebhooksResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Create1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON201 *WebhookDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r Create1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r Create1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r DeleteResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r DeleteResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetWebhookResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WebhookDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetWebhookResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetWebhookResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WebhookDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r UpdateResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r UpdateResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetLogsForWebhook1Response struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *[]WebhookLogDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetLogsForWebhook1Response) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetLogsForWebhook1Response) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetLogCountResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *int64
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GetLogCountResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GetLogCountResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type TriggerResendEventForWebhookResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r TriggerResendEventForWebhookResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r TriggerResendEventForWebhookResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type TriggerTestEventForWebhookResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *bool
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r TriggerTestEventForWebhookResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r TriggerTestEventForWebhookResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GenerateNewTokenResponse struct {
|
|
Body []byte
|
|
HTTPResponse *http.Response
|
|
JSON200 *WebhookDto
|
|
}
|
|
|
|
// Status returns HTTPResponse.Status
|
|
func (r GenerateNewTokenResponse) Status() string {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.Status
|
|
}
|
|
return http.StatusText(0)
|
|
}
|
|
|
|
// StatusCode returns HTTPResponse.StatusCode
|
|
func (r GenerateNewTokenResponse) StatusCode() int {
|
|
if r.HTTPResponse != nil {
|
|
return r.HTTPResponse.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// GetInitialDataWithResponse request returning *GetInitialDataResponse
|
|
func (c *ClientWithResponses) GetInitialDataWithResponse(ctx context.Context, reportId string, reqEditors ...RequestEditorFn) (*GetInitialDataResponse, error) {
|
|
rsp, err := c.GetInitialData(ctx, reportId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInitialDataResponse(rsp)
|
|
}
|
|
|
|
// DownloadReportWithBodyWithResponse request with arbitrary body returning *DownloadReportResponse
|
|
func (c *ClientWithResponses) DownloadReportWithBodyWithResponse(ctx context.Context, reportId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DownloadReportResponse, error) {
|
|
rsp, err := c.DownloadReportWithBody(ctx, reportId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDownloadReportResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) DownloadReportWithResponse(ctx context.Context, reportId string, body DownloadReportJSONRequestBody, reqEditors ...RequestEditorFn) (*DownloadReportResponse, error) {
|
|
rsp, err := c.DownloadReport(ctx, reportId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDownloadReportResponse(rsp)
|
|
}
|
|
|
|
// ResetPinWithResponse request returning *ResetPinResponse
|
|
func (c *ClientWithResponses) ResetPinWithResponse(ctx context.Context, reportId string, reqEditors ...RequestEditorFn) (*ResetPinResponse, error) {
|
|
rsp, err := c.ResetPin(ctx, reportId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseResetPinResponse(rsp)
|
|
}
|
|
|
|
// ValidatePinWithBodyWithResponse request with arbitrary body returning *ValidatePinResponse
|
|
func (c *ClientWithResponses) ValidatePinWithBodyWithResponse(ctx context.Context, reportId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ValidatePinResponse, error) {
|
|
rsp, err := c.ValidatePinWithBody(ctx, reportId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseValidatePinResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) ValidatePinWithResponse(ctx context.Context, reportId string, body ValidatePinJSONRequestBody, reqEditors ...RequestEditorFn) (*ValidatePinResponse, error) {
|
|
rsp, err := c.ValidatePin(ctx, reportId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseValidatePinResponse(rsp)
|
|
}
|
|
|
|
// UpdateSmtpConfigurationWithBodyWithResponse request with arbitrary body returning *UpdateSmtpConfigurationResponse
|
|
func (c *ClientWithResponses) UpdateSmtpConfigurationWithBodyWithResponse(ctx context.Context, systemSettingsId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSmtpConfigurationResponse, error) {
|
|
rsp, err := c.UpdateSmtpConfigurationWithBody(ctx, systemSettingsId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateSmtpConfigurationResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateSmtpConfigurationWithResponse(ctx context.Context, systemSettingsId string, body UpdateSmtpConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSmtpConfigurationResponse, error) {
|
|
rsp, err := c.UpdateSmtpConfiguration(ctx, systemSettingsId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateSmtpConfigurationResponse(rsp)
|
|
}
|
|
|
|
// DisableAccessToEntitiesInTransferWithBodyWithResponse request with arbitrary body returning *DisableAccessToEntitiesInTransferResponse
|
|
func (c *ClientWithResponses) DisableAccessToEntitiesInTransferWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DisableAccessToEntitiesInTransferResponse, error) {
|
|
rsp, err := c.DisableAccessToEntitiesInTransferWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDisableAccessToEntitiesInTransferResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) DisableAccessToEntitiesInTransferWithResponse(ctx context.Context, body DisableAccessToEntitiesInTransferJSONRequestBody, reqEditors ...RequestEditorFn) (*DisableAccessToEntitiesInTransferResponse, error) {
|
|
rsp, err := c.DisableAccessToEntitiesInTransfer(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDisableAccessToEntitiesInTransferResponse(rsp)
|
|
}
|
|
|
|
// EnableAccessToEntitiesInTransferWithResponse request returning *EnableAccessToEntitiesInTransferResponse
|
|
func (c *ClientWithResponses) EnableAccessToEntitiesInTransferWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*EnableAccessToEntitiesInTransferResponse, error) {
|
|
rsp, err := c.EnableAccessToEntitiesInTransfer(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEnableAccessToEntitiesInTransferResponse(rsp)
|
|
}
|
|
|
|
// UsersExistWithBodyWithResponse request with arbitrary body returning *UsersExistResponse
|
|
func (c *ClientWithResponses) UsersExistWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UsersExistResponse, error) {
|
|
rsp, err := c.UsersExistWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUsersExistResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UsersExistWithResponse(ctx context.Context, body UsersExistJSONRequestBody, reqEditors ...RequestEditorFn) (*UsersExistResponse, error) {
|
|
rsp, err := c.UsersExist(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUsersExistResponse(rsp)
|
|
}
|
|
|
|
// HandleCleanupOnSourceRegionWithResponse request returning *HandleCleanupOnSourceRegionResponse
|
|
func (c *ClientWithResponses) HandleCleanupOnSourceRegionWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HandleCleanupOnSourceRegionResponse, error) {
|
|
rsp, err := c.HandleCleanupOnSourceRegion(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseHandleCleanupOnSourceRegionResponse(rsp)
|
|
}
|
|
|
|
// HandleTransferCompletedOnSourceRegionWithResponse request returning *HandleTransferCompletedOnSourceRegionResponse
|
|
func (c *ClientWithResponses) HandleTransferCompletedOnSourceRegionWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HandleTransferCompletedOnSourceRegionResponse, error) {
|
|
rsp, err := c.HandleTransferCompletedOnSourceRegion(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseHandleTransferCompletedOnSourceRegionResponse(rsp)
|
|
}
|
|
|
|
// HandleTransferCompletedFailureWithBodyWithResponse request with arbitrary body returning *HandleTransferCompletedFailureResponse
|
|
func (c *ClientWithResponses) HandleTransferCompletedFailureWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HandleTransferCompletedFailureResponse, error) {
|
|
rsp, err := c.HandleTransferCompletedFailureWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseHandleTransferCompletedFailureResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) HandleTransferCompletedFailureWithResponse(ctx context.Context, workspaceId string, body HandleTransferCompletedFailureJSONRequestBody, reqEditors ...RequestEditorFn) (*HandleTransferCompletedFailureResponse, error) {
|
|
rsp, err := c.HandleTransferCompletedFailure(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseHandleTransferCompletedFailureResponse(rsp)
|
|
}
|
|
|
|
// HandleTransferCompletedSuccessWithBodyWithResponse request with arbitrary body returning *HandleTransferCompletedSuccessResponse
|
|
func (c *ClientWithResponses) HandleTransferCompletedSuccessWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HandleTransferCompletedSuccessResponse, error) {
|
|
rsp, err := c.HandleTransferCompletedSuccessWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseHandleTransferCompletedSuccessResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) HandleTransferCompletedSuccessWithResponse(ctx context.Context, workspaceId string, body HandleTransferCompletedSuccessJSONRequestBody, reqEditors ...RequestEditorFn) (*HandleTransferCompletedSuccessResponse, error) {
|
|
rsp, err := c.HandleTransferCompletedSuccess(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseHandleTransferCompletedSuccessResponse(rsp)
|
|
}
|
|
|
|
// GetAllUsersWithResponse request returning *GetAllUsersResponse
|
|
func (c *ClientWithResponses) GetAllUsersWithResponse(ctx context.Context, params *GetAllUsersParams, reqEditors ...RequestEditorFn) (*GetAllUsersResponse, error) {
|
|
rsp, err := c.GetAllUsers(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetAllUsersResponse(rsp)
|
|
}
|
|
|
|
// GetUserInfoWithBodyWithResponse request with arbitrary body returning *GetUserInfoResponse
|
|
func (c *ClientWithResponses) GetUserInfoWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserInfoResponse, error) {
|
|
rsp, err := c.GetUserInfoWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserInfoResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetUserInfoWithResponse(ctx context.Context, body GetUserInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserInfoResponse, error) {
|
|
rsp, err := c.GetUserInfo(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserInfoResponse(rsp)
|
|
}
|
|
|
|
// GetUserMembershipsAndInvitesWithBodyWithResponse request with arbitrary body returning *GetUserMembershipsAndInvitesResponse
|
|
func (c *ClientWithResponses) GetUserMembershipsAndInvitesWithBodyWithResponse(ctx context.Context, params *GetUserMembershipsAndInvitesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserMembershipsAndInvitesResponse, error) {
|
|
rsp, err := c.GetUserMembershipsAndInvitesWithBody(ctx, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserMembershipsAndInvitesResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetUserMembershipsAndInvitesWithResponse(ctx context.Context, params *GetUserMembershipsAndInvitesParams, body GetUserMembershipsAndInvitesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserMembershipsAndInvitesResponse, error) {
|
|
rsp, err := c.GetUserMembershipsAndInvites(ctx, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserMembershipsAndInvitesResponse(rsp)
|
|
}
|
|
|
|
// CheckForNewsletterSubscriptionWithResponse request returning *CheckForNewsletterSubscriptionResponse
|
|
func (c *ClientWithResponses) CheckForNewsletterSubscriptionWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*CheckForNewsletterSubscriptionResponse, error) {
|
|
rsp, err := c.CheckForNewsletterSubscription(ctx, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCheckForNewsletterSubscriptionResponse(rsp)
|
|
}
|
|
|
|
// AddNotificationsWithBodyWithResponse request with arbitrary body returning *AddNotificationsResponse
|
|
func (c *ClientWithResponses) AddNotificationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddNotificationsResponse, error) {
|
|
rsp, err := c.AddNotificationsWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddNotificationsResponse(rsp)
|
|
}
|
|
|
|
// GetNewsWithResponse request returning *GetNewsResponse
|
|
func (c *ClientWithResponses) GetNewsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetNewsResponse, error) {
|
|
rsp, err := c.GetNews(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetNewsResponse(rsp)
|
|
}
|
|
|
|
// DeleteNewsWithResponse request returning *DeleteNewsResponse
|
|
func (c *ClientWithResponses) DeleteNewsWithResponse(ctx context.Context, newsId string, reqEditors ...RequestEditorFn) (*DeleteNewsResponse, error) {
|
|
rsp, err := c.DeleteNews(ctx, newsId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteNewsResponse(rsp)
|
|
}
|
|
|
|
// UpdateNewsWithBodyWithResponse request with arbitrary body returning *UpdateNewsResponse
|
|
func (c *ClientWithResponses) UpdateNewsWithBodyWithResponse(ctx context.Context, newsId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNewsResponse, error) {
|
|
rsp, err := c.UpdateNewsWithBody(ctx, newsId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateNewsResponse(rsp)
|
|
}
|
|
|
|
// SearchAllUsersWithResponse request returning *SearchAllUsersResponse
|
|
func (c *ClientWithResponses) SearchAllUsersWithResponse(ctx context.Context, params *SearchAllUsersParams, reqEditors ...RequestEditorFn) (*SearchAllUsersResponse, error) {
|
|
rsp, err := c.SearchAllUsers(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSearchAllUsersResponse(rsp)
|
|
}
|
|
|
|
// NumberOfUsersRegisteredWithResponse request returning *NumberOfUsersRegisteredResponse
|
|
func (c *ClientWithResponses) NumberOfUsersRegisteredWithResponse(ctx context.Context, params *NumberOfUsersRegisteredParams, reqEditors ...RequestEditorFn) (*NumberOfUsersRegisteredResponse, error) {
|
|
rsp, err := c.NumberOfUsersRegistered(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseNumberOfUsersRegisteredResponse(rsp)
|
|
}
|
|
|
|
// GetUsersOnWorkspaceWithResponse request returning *GetUsersOnWorkspaceResponse
|
|
func (c *ClientWithResponses) GetUsersOnWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetUsersOnWorkspaceParams, reqEditors ...RequestEditorFn) (*GetUsersOnWorkspaceResponse, error) {
|
|
rsp, err := c.GetUsersOnWorkspace(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersOnWorkspaceResponse(rsp)
|
|
}
|
|
|
|
// BulkEditUsersWithBodyWithResponse request with arbitrary body returning *BulkEditUsersResponse
|
|
func (c *ClientWithResponses) BulkEditUsersWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*BulkEditUsersResponse, error) {
|
|
rsp, err := c.BulkEditUsersWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseBulkEditUsersResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) BulkEditUsersWithResponse(ctx context.Context, workspaceId string, body BulkEditUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*BulkEditUsersResponse, error) {
|
|
rsp, err := c.BulkEditUsers(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseBulkEditUsersResponse(rsp)
|
|
}
|
|
|
|
// GetUsersOfWorkspace5WithResponse request returning *GetUsersOfWorkspace5Response
|
|
func (c *ClientWithResponses) GetUsersOfWorkspace5WithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace5Params, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspace5Response, error) {
|
|
rsp, err := c.GetUsersOfWorkspace5(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersOfWorkspace5Response(rsp)
|
|
}
|
|
|
|
// GetInfoWithBodyWithResponse request with arbitrary body returning *GetInfoResponse
|
|
func (c *ClientWithResponses) GetInfoWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInfoResponse, error) {
|
|
rsp, err := c.GetInfoWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInfoResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetInfoWithResponse(ctx context.Context, workspaceId string, body GetInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInfoResponse, error) {
|
|
rsp, err := c.GetInfo(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInfoResponse(rsp)
|
|
}
|
|
|
|
// GetMembersInfoWithResponse request returning *GetMembersInfoResponse
|
|
func (c *ClientWithResponses) GetMembersInfoWithResponse(ctx context.Context, workspaceId string, params *GetMembersInfoParams, reqEditors ...RequestEditorFn) (*GetMembersInfoResponse, error) {
|
|
rsp, err := c.GetMembersInfo(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetMembersInfoResponse(rsp)
|
|
}
|
|
|
|
// GetUserNamesWithBodyWithResponse request with arbitrary body returning *GetUserNamesResponse
|
|
func (c *ClientWithResponses) GetUserNamesWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetUserNamesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserNamesResponse, error) {
|
|
rsp, err := c.GetUserNamesWithBody(ctx, workspaceId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserNamesResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetUserNamesWithResponse(ctx context.Context, workspaceId string, params *GetUserNamesParams, body GetUserNamesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserNamesResponse, error) {
|
|
rsp, err := c.GetUserNames(ctx, workspaceId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserNamesResponse(rsp)
|
|
}
|
|
|
|
// FindPoliciesToBeApprovedByUserWithResponse request returning *FindPoliciesToBeApprovedByUserResponse
|
|
func (c *ClientWithResponses) FindPoliciesToBeApprovedByUserWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*FindPoliciesToBeApprovedByUserResponse, error) {
|
|
rsp, err := c.FindPoliciesToBeApprovedByUser(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseFindPoliciesToBeApprovedByUserResponse(rsp)
|
|
}
|
|
|
|
// GetUsersAndUsersFromUserGroupsAssignedToProjectWithResponse request returning *GetUsersAndUsersFromUserGroupsAssignedToProjectResponse
|
|
func (c *ClientWithResponses) GetUsersAndUsersFromUserGroupsAssignedToProjectWithResponse(ctx context.Context, workspaceId string, projectId string, params *GetUsersAndUsersFromUserGroupsAssignedToProjectParams, reqEditors ...RequestEditorFn) (*GetUsersAndUsersFromUserGroupsAssignedToProjectResponse, error) {
|
|
rsp, err := c.GetUsersAndUsersFromUserGroupsAssignedToProject(ctx, workspaceId, projectId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersAndUsersFromUserGroupsAssignedToProjectResponse(rsp)
|
|
}
|
|
|
|
// GetUsersForProjectMembersFilterWithBodyWithResponse request with arbitrary body returning *GetUsersForProjectMembersFilterResponse
|
|
func (c *ClientWithResponses) GetUsersForProjectMembersFilterWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersForProjectMembersFilterResponse, error) {
|
|
rsp, err := c.GetUsersForProjectMembersFilterWithBody(ctx, workspaceId, projectId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersForProjectMembersFilterResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetUsersForProjectMembersFilterWithResponse(ctx context.Context, workspaceId string, projectId string, body GetUsersForProjectMembersFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersForProjectMembersFilterResponse, error) {
|
|
rsp, err := c.GetUsersForProjectMembersFilter(ctx, workspaceId, projectId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersForProjectMembersFilterResponse(rsp)
|
|
}
|
|
|
|
// GetUsersForAttendanceReportFilter1WithBodyWithResponse request with arbitrary body returning *GetUsersForAttendanceReportFilter1Response
|
|
func (c *ClientWithResponses) GetUsersForAttendanceReportFilter1WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersForAttendanceReportFilter1Response, error) {
|
|
rsp, err := c.GetUsersForAttendanceReportFilter1WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersForAttendanceReportFilter1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetUsersForAttendanceReportFilter1WithResponse(ctx context.Context, workspaceId string, body GetUsersForAttendanceReportFilter1JSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersForAttendanceReportFilter1Response, error) {
|
|
rsp, err := c.GetUsersForAttendanceReportFilter1(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersForAttendanceReportFilter1Response(rsp)
|
|
}
|
|
|
|
// GetUsersOfWorkspace4WithResponse request returning *GetUsersOfWorkspace4Response
|
|
func (c *ClientWithResponses) GetUsersOfWorkspace4WithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace4Params, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspace4Response, error) {
|
|
rsp, err := c.GetUsersOfWorkspace4(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersOfWorkspace4Response(rsp)
|
|
}
|
|
|
|
// GetUsersForReportFilterOldWithResponse request returning *GetUsersForReportFilterOldResponse
|
|
func (c *ClientWithResponses) GetUsersForReportFilterOldWithResponse(ctx context.Context, workspaceId string, params *GetUsersForReportFilterOldParams, reqEditors ...RequestEditorFn) (*GetUsersForReportFilterOldResponse, error) {
|
|
rsp, err := c.GetUsersForReportFilterOld(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersForReportFilterOldResponse(rsp)
|
|
}
|
|
|
|
// GetUsersForReportFilterWithBodyWithResponse request with arbitrary body returning *GetUsersForReportFilterResponse
|
|
func (c *ClientWithResponses) GetUsersForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersForReportFilterResponse, error) {
|
|
rsp, err := c.GetUsersForReportFilterWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersForReportFilterResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetUsersForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetUsersForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersForReportFilterResponse, error) {
|
|
rsp, err := c.GetUsersForReportFilter(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersForReportFilterResponse(rsp)
|
|
}
|
|
|
|
// GetUsersOfUserGroupWithResponse request returning *GetUsersOfUserGroupResponse
|
|
func (c *ClientWithResponses) GetUsersOfUserGroupWithResponse(ctx context.Context, workspaceId string, userGroupId string, params *GetUsersOfUserGroupParams, reqEditors ...RequestEditorFn) (*GetUsersOfUserGroupResponse, error) {
|
|
rsp, err := c.GetUsersOfUserGroup(ctx, workspaceId, userGroupId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersOfUserGroupResponse(rsp)
|
|
}
|
|
|
|
// GetUsersOfWorkspace3WithResponse request returning *GetUsersOfWorkspace3Response
|
|
func (c *ClientWithResponses) GetUsersOfWorkspace3WithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace3Params, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspace3Response, error) {
|
|
rsp, err := c.GetUsersOfWorkspace3(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersOfWorkspace3Response(rsp)
|
|
}
|
|
|
|
// GetUsersOfWorkspace2WithResponse request returning *GetUsersOfWorkspace2Response
|
|
func (c *ClientWithResponses) GetUsersOfWorkspace2WithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspace2Params, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspace2Response, error) {
|
|
rsp, err := c.GetUsersOfWorkspace2(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersOfWorkspace2Response(rsp)
|
|
}
|
|
|
|
// GetUserWithResponse request returning *GetUserResponse
|
|
func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetUserResponse, error) {
|
|
rsp, err := c.GetUser(ctx, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserResponse(rsp)
|
|
}
|
|
|
|
// UpdateTimeTrackingSettings1WithBodyWithResponse request with arbitrary body returning *UpdateTimeTrackingSettings1Response
|
|
func (c *ClientWithResponses) UpdateTimeTrackingSettings1WithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimeTrackingSettings1Response, error) {
|
|
rsp, err := c.UpdateTimeTrackingSettings1WithBody(ctx, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateTimeTrackingSettings1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateTimeTrackingSettings1WithResponse(ctx context.Context, userId string, body UpdateTimeTrackingSettings1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimeTrackingSettings1Response, error) {
|
|
rsp, err := c.UpdateTimeTrackingSettings1(ctx, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateTimeTrackingSettings1Response(rsp)
|
|
}
|
|
|
|
// UpdateDashboardSelectionWithBodyWithResponse request with arbitrary body returning *UpdateDashboardSelectionResponse
|
|
func (c *ClientWithResponses) UpdateDashboardSelectionWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDashboardSelectionResponse, error) {
|
|
rsp, err := c.UpdateDashboardSelectionWithBody(ctx, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateDashboardSelectionResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateDashboardSelectionWithResponse(ctx context.Context, userId string, body UpdateDashboardSelectionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDashboardSelectionResponse, error) {
|
|
rsp, err := c.UpdateDashboardSelection(ctx, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateDashboardSelectionResponse(rsp)
|
|
}
|
|
|
|
// SetDefaultWorkspaceWithResponse request returning *SetDefaultWorkspaceResponse
|
|
func (c *ClientWithResponses) SetDefaultWorkspaceWithResponse(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*SetDefaultWorkspaceResponse, error) {
|
|
rsp, err := c.SetDefaultWorkspace(ctx, userId, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetDefaultWorkspaceResponse(rsp)
|
|
}
|
|
|
|
// DeleteUserWithBodyWithResponse request with arbitrary body returning *DeleteUserResponse
|
|
func (c *ClientWithResponses) DeleteUserWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) {
|
|
rsp, err := c.DeleteUserWithBody(ctx, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteUserResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, userId string, body DeleteUserJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) {
|
|
rsp, err := c.DeleteUser(ctx, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteUserResponse(rsp)
|
|
}
|
|
|
|
// ChangeEmailWithBodyWithResponse request with arbitrary body returning *ChangeEmailResponse
|
|
func (c *ClientWithResponses) ChangeEmailWithBodyWithResponse(ctx context.Context, userId string, params *ChangeEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeEmailResponse, error) {
|
|
rsp, err := c.ChangeEmailWithBody(ctx, userId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseChangeEmailResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) ChangeEmailWithResponse(ctx context.Context, userId string, params *ChangeEmailParams, body ChangeEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeEmailResponse, error) {
|
|
rsp, err := c.ChangeEmail(ctx, userId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseChangeEmailResponse(rsp)
|
|
}
|
|
|
|
// HasPendingEmailChangeWithResponse request returning *HasPendingEmailChangeResponse
|
|
func (c *ClientWithResponses) HasPendingEmailChangeWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*HasPendingEmailChangeResponse, error) {
|
|
rsp, err := c.HasPendingEmailChange(ctx, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseHasPendingEmailChangeResponse(rsp)
|
|
}
|
|
|
|
// UpdateLangWithBodyWithResponse request with arbitrary body returning *UpdateLangResponse
|
|
func (c *ClientWithResponses) UpdateLangWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLangResponse, error) {
|
|
rsp, err := c.UpdateLangWithBody(ctx, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateLangResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateLangWithResponse(ctx context.Context, userId string, body UpdateLangJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLangResponse, error) {
|
|
rsp, err := c.UpdateLang(ctx, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateLangResponse(rsp)
|
|
}
|
|
|
|
// MarkAsRead1WithBodyWithResponse request with arbitrary body returning *MarkAsRead1Response
|
|
func (c *ClientWithResponses) MarkAsRead1WithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkAsRead1Response, error) {
|
|
rsp, err := c.MarkAsRead1WithBody(ctx, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseMarkAsRead1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) MarkAsRead1WithResponse(ctx context.Context, userId string, body MarkAsRead1JSONRequestBody, reqEditors ...RequestEditorFn) (*MarkAsRead1Response, error) {
|
|
rsp, err := c.MarkAsRead1(ctx, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseMarkAsRead1Response(rsp)
|
|
}
|
|
|
|
// MarkAsReadWithBodyWithResponse request with arbitrary body returning *MarkAsReadResponse
|
|
func (c *ClientWithResponses) MarkAsReadWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkAsReadResponse, error) {
|
|
rsp, err := c.MarkAsReadWithBody(ctx, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseMarkAsReadResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) MarkAsReadWithResponse(ctx context.Context, userId string, body MarkAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkAsReadResponse, error) {
|
|
rsp, err := c.MarkAsRead(ctx, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseMarkAsReadResponse(rsp)
|
|
}
|
|
|
|
// ChangeNameAdminWithBodyWithResponse request with arbitrary body returning *ChangeNameAdminResponse
|
|
func (c *ClientWithResponses) ChangeNameAdminWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeNameAdminResponse, error) {
|
|
rsp, err := c.ChangeNameAdminWithBody(ctx, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseChangeNameAdminResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) ChangeNameAdminWithResponse(ctx context.Context, userId string, body ChangeNameAdminJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeNameAdminResponse, error) {
|
|
rsp, err := c.ChangeNameAdmin(ctx, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseChangeNameAdminResponse(rsp)
|
|
}
|
|
|
|
// GetNewsForUserWithResponse request returning *GetNewsForUserResponse
|
|
func (c *ClientWithResponses) GetNewsForUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetNewsForUserResponse, error) {
|
|
rsp, err := c.GetNewsForUser(ctx, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetNewsForUserResponse(rsp)
|
|
}
|
|
|
|
// ReadNewsWithBodyWithResponse request with arbitrary body returning *ReadNewsResponse
|
|
func (c *ClientWithResponses) ReadNewsWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReadNewsResponse, error) {
|
|
rsp, err := c.ReadNewsWithBody(ctx, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseReadNewsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) ReadNewsWithResponse(ctx context.Context, userId string, body ReadNewsJSONRequestBody, reqEditors ...RequestEditorFn) (*ReadNewsResponse, error) {
|
|
rsp, err := c.ReadNews(ctx, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseReadNewsResponse(rsp)
|
|
}
|
|
|
|
// GetNotificationsWithResponse request returning *GetNotificationsResponse
|
|
func (c *ClientWithResponses) GetNotificationsWithResponse(ctx context.Context, userId string, params *GetNotificationsParams, reqEditors ...RequestEditorFn) (*GetNotificationsResponse, error) {
|
|
rsp, err := c.GetNotifications(ctx, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetNotificationsResponse(rsp)
|
|
}
|
|
|
|
// UpdatePictureWithBodyWithResponse request with arbitrary body returning *UpdatePictureResponse
|
|
func (c *ClientWithResponses) UpdatePictureWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePictureResponse, error) {
|
|
rsp, err := c.UpdatePictureWithBody(ctx, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdatePictureResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdatePictureWithResponse(ctx context.Context, userId string, body UpdatePictureJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePictureResponse, error) {
|
|
rsp, err := c.UpdatePicture(ctx, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdatePictureResponse(rsp)
|
|
}
|
|
|
|
// UpdateNameAndProfilePictureWithBodyWithResponse request with arbitrary body returning *UpdateNameAndProfilePictureResponse
|
|
func (c *ClientWithResponses) UpdateNameAndProfilePictureWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateNameAndProfilePictureResponse, error) {
|
|
rsp, err := c.UpdateNameAndProfilePictureWithBody(ctx, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateNameAndProfilePictureResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateNameAndProfilePictureWithResponse(ctx context.Context, userId string, body UpdateNameAndProfilePictureJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateNameAndProfilePictureResponse, error) {
|
|
rsp, err := c.UpdateNameAndProfilePicture(ctx, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateNameAndProfilePictureResponse(rsp)
|
|
}
|
|
|
|
// UpdateSettingsWithBodyWithResponse request with arbitrary body returning *UpdateSettingsResponse
|
|
func (c *ClientWithResponses) UpdateSettingsWithBodyWithResponse(ctx context.Context, userId string, params *UpdateSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) {
|
|
rsp, err := c.UpdateSettingsWithBody(ctx, userId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateSettingsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateSettingsWithResponse(ctx context.Context, userId string, params *UpdateSettingsParams, body UpdateSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSettingsResponse, error) {
|
|
rsp, err := c.UpdateSettings(ctx, userId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateSettingsResponse(rsp)
|
|
}
|
|
|
|
// UpdateSummaryReportSettingsWithBodyWithResponse request with arbitrary body returning *UpdateSummaryReportSettingsResponse
|
|
func (c *ClientWithResponses) UpdateSummaryReportSettingsWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSummaryReportSettingsResponse, error) {
|
|
rsp, err := c.UpdateSummaryReportSettingsWithBody(ctx, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateSummaryReportSettingsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateSummaryReportSettingsWithResponse(ctx context.Context, userId string, body UpdateSummaryReportSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSummaryReportSettingsResponse, error) {
|
|
rsp, err := c.UpdateSummaryReportSettings(ctx, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateSummaryReportSettingsResponse(rsp)
|
|
}
|
|
|
|
// UpdateTimeTrackingSettingsWithBodyWithResponse request with arbitrary body returning *UpdateTimeTrackingSettingsResponse
|
|
func (c *ClientWithResponses) UpdateTimeTrackingSettingsWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimeTrackingSettingsResponse, error) {
|
|
rsp, err := c.UpdateTimeTrackingSettingsWithBody(ctx, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateTimeTrackingSettingsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateTimeTrackingSettingsWithResponse(ctx context.Context, userId string, body UpdateTimeTrackingSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimeTrackingSettingsResponse, error) {
|
|
rsp, err := c.UpdateTimeTrackingSettings(ctx, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateTimeTrackingSettingsResponse(rsp)
|
|
}
|
|
|
|
// UpdateTimezoneWithBodyWithResponse request with arbitrary body returning *UpdateTimezoneResponse
|
|
func (c *ClientWithResponses) UpdateTimezoneWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimezoneResponse, error) {
|
|
rsp, err := c.UpdateTimezoneWithBody(ctx, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateTimezoneResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateTimezoneWithResponse(ctx context.Context, userId string, body UpdateTimezoneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimezoneResponse, error) {
|
|
rsp, err := c.UpdateTimezone(ctx, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateTimezoneResponse(rsp)
|
|
}
|
|
|
|
// GetVerificationCampaignNotificationsWithResponse request returning *GetVerificationCampaignNotificationsResponse
|
|
func (c *ClientWithResponses) GetVerificationCampaignNotificationsWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetVerificationCampaignNotificationsResponse, error) {
|
|
rsp, err := c.GetVerificationCampaignNotifications(ctx, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetVerificationCampaignNotificationsResponse(rsp)
|
|
}
|
|
|
|
// MarkNotificationsAsReadWithBodyWithResponse request with arbitrary body returning *MarkNotificationsAsReadResponse
|
|
func (c *ClientWithResponses) MarkNotificationsAsReadWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MarkNotificationsAsReadResponse, error) {
|
|
rsp, err := c.MarkNotificationsAsReadWithBody(ctx, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseMarkNotificationsAsReadResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) MarkNotificationsAsReadWithResponse(ctx context.Context, userId string, body MarkNotificationsAsReadJSONRequestBody, reqEditors ...RequestEditorFn) (*MarkNotificationsAsReadResponse, error) {
|
|
rsp, err := c.MarkNotificationsAsRead(ctx, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseMarkNotificationsAsReadResponse(rsp)
|
|
}
|
|
|
|
// GetWorkCapacityForUserWithResponse request returning *GetWorkCapacityForUserResponse
|
|
func (c *ClientWithResponses) GetWorkCapacityForUserWithResponse(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkCapacityForUserResponse, error) {
|
|
rsp, err := c.GetWorkCapacityForUser(ctx, userId, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetWorkCapacityForUserResponse(rsp)
|
|
}
|
|
|
|
// GetUsersWorkingDaysWithResponse request returning *GetUsersWorkingDaysResponse
|
|
func (c *ClientWithResponses) GetUsersWorkingDaysWithResponse(ctx context.Context, userId string, workspaceId string, reqEditors ...RequestEditorFn) (*GetUsersWorkingDaysResponse, error) {
|
|
rsp, err := c.GetUsersWorkingDays(ctx, userId, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersWorkingDaysResponse(rsp)
|
|
}
|
|
|
|
// UploadImageWithBodyWithResponse request with arbitrary body returning *UploadImageResponse
|
|
func (c *ClientWithResponses) UploadImageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadImageResponse, error) {
|
|
rsp, err := c.UploadImageWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUploadImageResponse(rsp)
|
|
}
|
|
|
|
// GetAllUnfinishedWalkthroughTypesWithResponse request returning *GetAllUnfinishedWalkthroughTypesResponse
|
|
func (c *ClientWithResponses) GetAllUnfinishedWalkthroughTypesWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetAllUnfinishedWalkthroughTypesResponse, error) {
|
|
rsp, err := c.GetAllUnfinishedWalkthroughTypes(ctx, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetAllUnfinishedWalkthroughTypesResponse(rsp)
|
|
}
|
|
|
|
// FinishWalkthroughWithBodyWithResponse request with arbitrary body returning *FinishWalkthroughResponse
|
|
func (c *ClientWithResponses) FinishWalkthroughWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FinishWalkthroughResponse, error) {
|
|
rsp, err := c.FinishWalkthroughWithBody(ctx, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseFinishWalkthroughResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) FinishWalkthroughWithResponse(ctx context.Context, userId string, body FinishWalkthroughJSONRequestBody, reqEditors ...RequestEditorFn) (*FinishWalkthroughResponse, error) {
|
|
rsp, err := c.FinishWalkthrough(ctx, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseFinishWalkthroughResponse(rsp)
|
|
}
|
|
|
|
// GetOwnerEmailByWorkspaceIdWithResponse request returning *GetOwnerEmailByWorkspaceIdResponse
|
|
func (c *ClientWithResponses) GetOwnerEmailByWorkspaceIdWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetOwnerEmailByWorkspaceIdResponse, error) {
|
|
rsp, err := c.GetOwnerEmailByWorkspaceId(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetOwnerEmailByWorkspaceIdResponse(rsp)
|
|
}
|
|
|
|
// GetWorkspacesOfUserWithResponse request returning *GetWorkspacesOfUserResponse
|
|
func (c *ClientWithResponses) GetWorkspacesOfUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetWorkspacesOfUserResponse, error) {
|
|
rsp, err := c.GetWorkspacesOfUser(ctx, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetWorkspacesOfUserResponse(rsp)
|
|
}
|
|
|
|
// CreateWithBodyWithResponse request with arbitrary body returning *CreateResponse
|
|
func (c *ClientWithResponses) CreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateResponse, error) {
|
|
rsp, err := c.CreateWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateWithResponse(ctx context.Context, body CreateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateResponse, error) {
|
|
rsp, err := c.Create(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateResponse(rsp)
|
|
}
|
|
|
|
// GetWorkspaceInfoWithResponse request returning *GetWorkspaceInfoResponse
|
|
func (c *ClientWithResponses) GetWorkspaceInfoWithResponse(ctx context.Context, params *GetWorkspaceInfoParams, reqEditors ...RequestEditorFn) (*GetWorkspaceInfoResponse, error) {
|
|
rsp, err := c.GetWorkspaceInfo(ctx, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetWorkspaceInfoResponse(rsp)
|
|
}
|
|
|
|
// InsertLegacyPlanNotificationsWithBodyWithResponse request with arbitrary body returning *InsertLegacyPlanNotificationsResponse
|
|
func (c *ClientWithResponses) InsertLegacyPlanNotificationsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InsertLegacyPlanNotificationsResponse, error) {
|
|
rsp, err := c.InsertLegacyPlanNotificationsWithBody(ctx, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseInsertLegacyPlanNotificationsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) InsertLegacyPlanNotificationsWithResponse(ctx context.Context, body InsertLegacyPlanNotificationsJSONRequestBody, reqEditors ...RequestEditorFn) (*InsertLegacyPlanNotificationsResponse, error) {
|
|
rsp, err := c.InsertLegacyPlanNotifications(ctx, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseInsertLegacyPlanNotificationsResponse(rsp)
|
|
}
|
|
|
|
// GetPermissionsToUserForWorkspacesWithBodyWithResponse request with arbitrary body returning *GetPermissionsToUserForWorkspacesResponse
|
|
func (c *ClientWithResponses) GetPermissionsToUserForWorkspacesWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetPermissionsToUserForWorkspacesResponse, error) {
|
|
rsp, err := c.GetPermissionsToUserForWorkspacesWithBody(ctx, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetPermissionsToUserForWorkspacesResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetPermissionsToUserForWorkspacesWithResponse(ctx context.Context, userId string, body GetPermissionsToUserForWorkspacesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetPermissionsToUserForWorkspacesResponse, error) {
|
|
rsp, err := c.GetPermissionsToUserForWorkspaces(ctx, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetPermissionsToUserForWorkspacesResponse(rsp)
|
|
}
|
|
|
|
// LeaveWorkspaceWithResponse request returning *LeaveWorkspaceResponse
|
|
func (c *ClientWithResponses) LeaveWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*LeaveWorkspaceResponse, error) {
|
|
rsp, err := c.LeaveWorkspace(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseLeaveWorkspaceResponse(rsp)
|
|
}
|
|
|
|
// GetWorkspaceByIdWithResponse request returning *GetWorkspaceByIdResponse
|
|
func (c *ClientWithResponses) GetWorkspaceByIdWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkspaceByIdResponse, error) {
|
|
rsp, err := c.GetWorkspaceById(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetWorkspaceByIdResponse(rsp)
|
|
}
|
|
|
|
// UpdateWorkspaceWithBodyWithResponse request with arbitrary body returning *UpdateWorkspaceResponse
|
|
func (c *ClientWithResponses) UpdateWorkspaceWithBodyWithResponse(ctx context.Context, workspaceId string, params *UpdateWorkspaceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWorkspaceResponse, error) {
|
|
rsp, err := c.UpdateWorkspaceWithBody(ctx, workspaceId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateWorkspaceResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateWorkspaceWithResponse(ctx context.Context, workspaceId string, params *UpdateWorkspaceParams, body UpdateWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWorkspaceResponse, error) {
|
|
rsp, err := c.UpdateWorkspace(ctx, workspaceId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateWorkspaceResponse(rsp)
|
|
}
|
|
|
|
// GetABTestingWithResponse request returning *GetABTestingResponse
|
|
func (c *ClientWithResponses) GetABTestingWithResponse(ctx context.Context, workspaceId string, params *GetABTestingParams, reqEditors ...RequestEditorFn) (*GetABTestingResponse, error) {
|
|
rsp, err := c.GetABTesting(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetABTestingResponse(rsp)
|
|
}
|
|
|
|
// GetActiveMembersWithResponse request returning *GetActiveMembersResponse
|
|
func (c *ClientWithResponses) GetActiveMembersWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetActiveMembersResponse, error) {
|
|
rsp, err := c.GetActiveMembers(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetActiveMembersResponse(rsp)
|
|
}
|
|
|
|
// UninstallWithBodyWithResponse request with arbitrary body returning *UninstallResponse
|
|
func (c *ClientWithResponses) UninstallWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UninstallResponse, error) {
|
|
rsp, err := c.UninstallWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUninstallResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UninstallWithResponse(ctx context.Context, workspaceId string, body UninstallJSONRequestBody, reqEditors ...RequestEditorFn) (*UninstallResponse, error) {
|
|
rsp, err := c.Uninstall(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUninstallResponse(rsp)
|
|
}
|
|
|
|
// GetInstalledAddonsWithResponse request returning *GetInstalledAddonsResponse
|
|
func (c *ClientWithResponses) GetInstalledAddonsWithResponse(ctx context.Context, workspaceId string, params *GetInstalledAddonsParams, reqEditors ...RequestEditorFn) (*GetInstalledAddonsResponse, error) {
|
|
rsp, err := c.GetInstalledAddons(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInstalledAddonsResponse(rsp)
|
|
}
|
|
|
|
// InstallWithBodyWithResponse request with arbitrary body returning *InstallResponse
|
|
func (c *ClientWithResponses) InstallWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InstallResponse, error) {
|
|
rsp, err := c.InstallWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseInstallResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) InstallWithResponse(ctx context.Context, workspaceId string, body InstallJSONRequestBody, reqEditors ...RequestEditorFn) (*InstallResponse, error) {
|
|
rsp, err := c.Install(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseInstallResponse(rsp)
|
|
}
|
|
|
|
// GetInstalledAddonsIdNamePairWithResponse request returning *GetInstalledAddonsIdNamePairResponse
|
|
func (c *ClientWithResponses) GetInstalledAddonsIdNamePairWithResponse(ctx context.Context, workspaceId string, params *GetInstalledAddonsIdNamePairParams, reqEditors ...RequestEditorFn) (*GetInstalledAddonsIdNamePairResponse, error) {
|
|
rsp, err := c.GetInstalledAddonsIdNamePair(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInstalledAddonsIdNamePairResponse(rsp)
|
|
}
|
|
|
|
// GetInstalledAddonsByKeysWithBodyWithResponse request with arbitrary body returning *GetInstalledAddonsByKeysResponse
|
|
func (c *ClientWithResponses) GetInstalledAddonsByKeysWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInstalledAddonsByKeysResponse, error) {
|
|
rsp, err := c.GetInstalledAddonsByKeysWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInstalledAddonsByKeysResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetInstalledAddonsByKeysWithResponse(ctx context.Context, workspaceId string, body GetInstalledAddonsByKeysJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInstalledAddonsByKeysResponse, error) {
|
|
rsp, err := c.GetInstalledAddonsByKeys(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInstalledAddonsByKeysResponse(rsp)
|
|
}
|
|
|
|
// Uninstall1WithResponse request returning *Uninstall1Response
|
|
func (c *ClientWithResponses) Uninstall1WithResponse(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*Uninstall1Response, error) {
|
|
rsp, err := c.Uninstall1(ctx, workspaceId, addonId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUninstall1Response(rsp)
|
|
}
|
|
|
|
// GetAddonByIdWithResponse request returning *GetAddonByIdResponse
|
|
func (c *ClientWithResponses) GetAddonByIdWithResponse(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*GetAddonByIdResponse, error) {
|
|
rsp, err := c.GetAddonById(ctx, workspaceId, addonId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetAddonByIdResponse(rsp)
|
|
}
|
|
|
|
// UpdateSettings1WithBodyWithResponse request with arbitrary body returning *UpdateSettings1Response
|
|
func (c *ClientWithResponses) UpdateSettings1WithBodyWithResponse(ctx context.Context, workspaceId string, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSettings1Response, error) {
|
|
rsp, err := c.UpdateSettings1WithBody(ctx, workspaceId, addonId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateSettings1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateSettings1WithResponse(ctx context.Context, workspaceId string, addonId string, body UpdateSettings1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSettings1Response, error) {
|
|
rsp, err := c.UpdateSettings1(ctx, workspaceId, addonId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateSettings1Response(rsp)
|
|
}
|
|
|
|
// UpdateStatus3WithBodyWithResponse request with arbitrary body returning *UpdateStatus3Response
|
|
func (c *ClientWithResponses) UpdateStatus3WithBodyWithResponse(ctx context.Context, workspaceId string, addonId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatus3Response, error) {
|
|
rsp, err := c.UpdateStatus3WithBody(ctx, workspaceId, addonId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateStatus3Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateStatus3WithResponse(ctx context.Context, workspaceId string, addonId string, body UpdateStatus3JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatus3Response, error) {
|
|
rsp, err := c.UpdateStatus3(ctx, workspaceId, addonId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateStatus3Response(rsp)
|
|
}
|
|
|
|
// GetAddonUserJWTWithResponse request returning *GetAddonUserJWTResponse
|
|
func (c *ClientWithResponses) GetAddonUserJWTWithResponse(ctx context.Context, workspaceId string, addonId string, params *GetAddonUserJWTParams, reqEditors ...RequestEditorFn) (*GetAddonUserJWTResponse, error) {
|
|
rsp, err := c.GetAddonUserJWT(ctx, workspaceId, addonId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetAddonUserJWTResponse(rsp)
|
|
}
|
|
|
|
// GetAddonWebhooksWithResponse request returning *GetAddonWebhooksResponse
|
|
func (c *ClientWithResponses) GetAddonWebhooksWithResponse(ctx context.Context, workspaceId string, addonId string, reqEditors ...RequestEditorFn) (*GetAddonWebhooksResponse, error) {
|
|
rsp, err := c.GetAddonWebhooks(ctx, workspaceId, addonId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetAddonWebhooksResponse(rsp)
|
|
}
|
|
|
|
// RemoveUninstalledAddonWithResponse request returning *RemoveUninstalledAddonResponse
|
|
func (c *ClientWithResponses) RemoveUninstalledAddonWithResponse(ctx context.Context, workspaceId string, addonKey string, reqEditors ...RequestEditorFn) (*RemoveUninstalledAddonResponse, error) {
|
|
rsp, err := c.RemoveUninstalledAddon(ctx, workspaceId, addonKey, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemoveUninstalledAddonResponse(rsp)
|
|
}
|
|
|
|
// ListOfWorkspace1WithResponse request returning *ListOfWorkspace1Response
|
|
func (c *ClientWithResponses) ListOfWorkspace1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*ListOfWorkspace1Response, error) {
|
|
rsp, err := c.ListOfWorkspace1(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseListOfWorkspace1Response(rsp)
|
|
}
|
|
|
|
// Create20WithBodyWithResponse request with arbitrary body returning *Create20Response
|
|
func (c *ClientWithResponses) Create20WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create20Response, error) {
|
|
rsp, err := c.Create20WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate20Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create20WithResponse(ctx context.Context, workspaceId string, body Create20JSONRequestBody, reqEditors ...RequestEditorFn) (*Create20Response, error) {
|
|
rsp, err := c.Create20(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate20Response(rsp)
|
|
}
|
|
|
|
// Delete18WithResponse request returning *Delete18Response
|
|
func (c *ClientWithResponses) Delete18WithResponse(ctx context.Context, workspaceId string, alertId string, reqEditors ...RequestEditorFn) (*Delete18Response, error) {
|
|
rsp, err := c.Delete18(ctx, workspaceId, alertId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete18Response(rsp)
|
|
}
|
|
|
|
// Update11WithBodyWithResponse request with arbitrary body returning *Update11Response
|
|
func (c *ClientWithResponses) Update11WithBodyWithResponse(ctx context.Context, workspaceId string, alertId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update11Response, error) {
|
|
rsp, err := c.Update11WithBody(ctx, workspaceId, alertId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate11Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Update11WithResponse(ctx context.Context, workspaceId string, alertId string, body Update11JSONRequestBody, reqEditors ...RequestEditorFn) (*Update11Response, error) {
|
|
rsp, err := c.Update11(ctx, workspaceId, alertId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate11Response(rsp)
|
|
}
|
|
|
|
// GetAllowedUpdatesWithResponse request returning *GetAllowedUpdatesResponse
|
|
func (c *ClientWithResponses) GetAllowedUpdatesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetAllowedUpdatesResponse, error) {
|
|
rsp, err := c.GetAllowedUpdates(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetAllowedUpdatesResponse(rsp)
|
|
}
|
|
|
|
// ApproveRequestsWithBodyWithResponse request with arbitrary body returning *ApproveRequestsResponse
|
|
func (c *ClientWithResponses) ApproveRequestsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApproveRequestsResponse, error) {
|
|
rsp, err := c.ApproveRequestsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseApproveRequestsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) ApproveRequestsWithResponse(ctx context.Context, workspaceId string, body ApproveRequestsJSONRequestBody, reqEditors ...RequestEditorFn) (*ApproveRequestsResponse, error) {
|
|
rsp, err := c.ApproveRequests(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseApproveRequestsResponse(rsp)
|
|
}
|
|
|
|
// CountWithBodyWithResponse request with arbitrary body returning *CountResponse
|
|
func (c *ClientWithResponses) CountWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CountResponse, error) {
|
|
rsp, err := c.CountWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCountResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CountWithResponse(ctx context.Context, workspaceId string, body CountJSONRequestBody, reqEditors ...RequestEditorFn) (*CountResponse, error) {
|
|
rsp, err := c.Count(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCountResponse(rsp)
|
|
}
|
|
|
|
// HasPendingWithResponse request returning *HasPendingResponse
|
|
func (c *ClientWithResponses) HasPendingWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HasPendingResponse, error) {
|
|
rsp, err := c.HasPending(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseHasPendingResponse(rsp)
|
|
}
|
|
|
|
// RemindManagersToApproveWithBodyWithResponse request with arbitrary body returning *RemindManagersToApproveResponse
|
|
func (c *ClientWithResponses) RemindManagersToApproveWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemindManagersToApproveResponse, error) {
|
|
rsp, err := c.RemindManagersToApproveWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemindManagersToApproveResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) RemindManagersToApproveWithResponse(ctx context.Context, workspaceId string, body RemindManagersToApproveJSONRequestBody, reqEditors ...RequestEditorFn) (*RemindManagersToApproveResponse, error) {
|
|
rsp, err := c.RemindManagersToApprove(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemindManagersToApproveResponse(rsp)
|
|
}
|
|
|
|
// RemindUsersToSubmitWithBodyWithResponse request with arbitrary body returning *RemindUsersToSubmitResponse
|
|
func (c *ClientWithResponses) RemindUsersToSubmitWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemindUsersToSubmitResponse, error) {
|
|
rsp, err := c.RemindUsersToSubmitWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemindUsersToSubmitResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) RemindUsersToSubmitWithResponse(ctx context.Context, workspaceId string, body RemindUsersToSubmitJSONRequestBody, reqEditors ...RequestEditorFn) (*RemindUsersToSubmitResponse, error) {
|
|
rsp, err := c.RemindUsersToSubmit(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemindUsersToSubmitResponse(rsp)
|
|
}
|
|
|
|
// GetApprovalGroupsWithBodyWithResponse request with arbitrary body returning *GetApprovalGroupsResponse
|
|
func (c *ClientWithResponses) GetApprovalGroupsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApprovalGroupsResponse, error) {
|
|
rsp, err := c.GetApprovalGroupsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApprovalGroupsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetApprovalGroupsWithResponse(ctx context.Context, workspaceId string, body GetApprovalGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApprovalGroupsResponse, error) {
|
|
rsp, err := c.GetApprovalGroups(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApprovalGroupsResponse(rsp)
|
|
}
|
|
|
|
// GetUnsubmittedSummariesWithBodyWithResponse request with arbitrary body returning *GetUnsubmittedSummariesResponse
|
|
func (c *ClientWithResponses) GetUnsubmittedSummariesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUnsubmittedSummariesResponse, error) {
|
|
rsp, err := c.GetUnsubmittedSummariesWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUnsubmittedSummariesResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetUnsubmittedSummariesWithResponse(ctx context.Context, workspaceId string, body GetUnsubmittedSummariesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUnsubmittedSummariesResponse, error) {
|
|
rsp, err := c.GetUnsubmittedSummaries(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUnsubmittedSummariesResponse(rsp)
|
|
}
|
|
|
|
// WithdrawAllOfWorkspaceWithResponse request returning *WithdrawAllOfWorkspaceResponse
|
|
func (c *ClientWithResponses) WithdrawAllOfWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*WithdrawAllOfWorkspaceResponse, error) {
|
|
rsp, err := c.WithdrawAllOfWorkspace(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseWithdrawAllOfWorkspaceResponse(rsp)
|
|
}
|
|
|
|
// GetRequestsByWorkspaceWithResponse request returning *GetRequestsByWorkspaceResponse
|
|
func (c *ClientWithResponses) GetRequestsByWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetRequestsByWorkspaceResponse, error) {
|
|
rsp, err := c.GetRequestsByWorkspace(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetRequestsByWorkspaceResponse(rsp)
|
|
}
|
|
|
|
// GetApprovalRequestWithResponse request returning *GetApprovalRequestResponse
|
|
func (c *ClientWithResponses) GetApprovalRequestWithResponse(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*GetApprovalRequestResponse, error) {
|
|
rsp, err := c.GetApprovalRequest(ctx, workspaceId, approvalRequestId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApprovalRequestResponse(rsp)
|
|
}
|
|
|
|
// UpdateStatus2WithBodyWithResponse request with arbitrary body returning *UpdateStatus2Response
|
|
func (c *ClientWithResponses) UpdateStatus2WithBodyWithResponse(ctx context.Context, workspaceId string, approvalRequestId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatus2Response, error) {
|
|
rsp, err := c.UpdateStatus2WithBody(ctx, workspaceId, approvalRequestId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateStatus2Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateStatus2WithResponse(ctx context.Context, workspaceId string, approvalRequestId string, body UpdateStatus2JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatus2Response, error) {
|
|
rsp, err := c.UpdateStatus2(ctx, workspaceId, approvalRequestId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateStatus2Response(rsp)
|
|
}
|
|
|
|
// GetApprovalDashboardWithResponse request returning *GetApprovalDashboardResponse
|
|
func (c *ClientWithResponses) GetApprovalDashboardWithResponse(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*GetApprovalDashboardResponse, error) {
|
|
rsp, err := c.GetApprovalDashboard(ctx, workspaceId, approvalRequestId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApprovalDashboardResponse(rsp)
|
|
}
|
|
|
|
// GetApprovalDetailsWithResponse request returning *GetApprovalDetailsResponse
|
|
func (c *ClientWithResponses) GetApprovalDetailsWithResponse(ctx context.Context, workspaceId string, approvalRequestId string, reqEditors ...RequestEditorFn) (*GetApprovalDetailsResponse, error) {
|
|
rsp, err := c.GetApprovalDetails(ctx, workspaceId, approvalRequestId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApprovalDetailsResponse(rsp)
|
|
}
|
|
|
|
// FetchCustomAttributesWithBodyWithResponse request with arbitrary body returning *FetchCustomAttributesResponse
|
|
func (c *ClientWithResponses) FetchCustomAttributesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FetchCustomAttributesResponse, error) {
|
|
rsp, err := c.FetchCustomAttributesWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseFetchCustomAttributesResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) FetchCustomAttributesWithResponse(ctx context.Context, workspaceId string, body FetchCustomAttributesJSONRequestBody, reqEditors ...RequestEditorFn) (*FetchCustomAttributesResponse, error) {
|
|
rsp, err := c.FetchCustomAttributes(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseFetchCustomAttributesResponse(rsp)
|
|
}
|
|
|
|
// CheckWorkspaceTransferPossibilityWithResponse request returning *CheckWorkspaceTransferPossibilityResponse
|
|
func (c *ClientWithResponses) CheckWorkspaceTransferPossibilityWithResponse(ctx context.Context, workspaceId string, params *CheckWorkspaceTransferPossibilityParams, reqEditors ...RequestEditorFn) (*CheckWorkspaceTransferPossibilityResponse, error) {
|
|
rsp, err := c.CheckWorkspaceTransferPossibility(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCheckWorkspaceTransferPossibilityResponse(rsp)
|
|
}
|
|
|
|
// DeleteMany3WithBodyWithResponse request with arbitrary body returning *DeleteMany3Response
|
|
func (c *ClientWithResponses) DeleteMany3WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMany3Response, error) {
|
|
rsp, err := c.DeleteMany3WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteMany3Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) DeleteMany3WithResponse(ctx context.Context, workspaceId string, body DeleteMany3JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMany3Response, error) {
|
|
rsp, err := c.DeleteMany3(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteMany3Response(rsp)
|
|
}
|
|
|
|
// GetClients1WithResponse request returning *GetClients1Response
|
|
func (c *ClientWithResponses) GetClients1WithResponse(ctx context.Context, workspaceId string, params *GetClients1Params, reqEditors ...RequestEditorFn) (*GetClients1Response, error) {
|
|
rsp, err := c.GetClients1(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetClients1Response(rsp)
|
|
}
|
|
|
|
// UpdateMany2WithBodyWithResponse request with arbitrary body returning *UpdateMany2Response
|
|
func (c *ClientWithResponses) UpdateMany2WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMany2Response, error) {
|
|
rsp, err := c.UpdateMany2WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateMany2Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateMany2WithResponse(ctx context.Context, workspaceId string, body UpdateMany2JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMany2Response, error) {
|
|
rsp, err := c.UpdateMany2(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateMany2Response(rsp)
|
|
}
|
|
|
|
// Create19WithBodyWithResponse request with arbitrary body returning *Create19Response
|
|
func (c *ClientWithResponses) Create19WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create19Response, error) {
|
|
rsp, err := c.Create19WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate19Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create19WithResponse(ctx context.Context, workspaceId string, body Create19JSONRequestBody, reqEditors ...RequestEditorFn) (*Create19Response, error) {
|
|
rsp, err := c.Create19(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate19Response(rsp)
|
|
}
|
|
|
|
// GetArchivePermissionsWithBodyWithResponse request with arbitrary body returning *GetArchivePermissionsResponse
|
|
func (c *ClientWithResponses) GetArchivePermissionsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetArchivePermissionsResponse, error) {
|
|
rsp, err := c.GetArchivePermissionsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetArchivePermissionsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetArchivePermissionsWithResponse(ctx context.Context, workspaceId string, body GetArchivePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetArchivePermissionsResponse, error) {
|
|
rsp, err := c.GetArchivePermissions(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetArchivePermissionsResponse(rsp)
|
|
}
|
|
|
|
// HaveRelatedTasksWithBodyWithResponse request with arbitrary body returning *HaveRelatedTasksResponse
|
|
func (c *ClientWithResponses) HaveRelatedTasksWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*HaveRelatedTasksResponse, error) {
|
|
rsp, err := c.HaveRelatedTasksWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseHaveRelatedTasksResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) HaveRelatedTasksWithResponse(ctx context.Context, workspaceId string, body HaveRelatedTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*HaveRelatedTasksResponse, error) {
|
|
rsp, err := c.HaveRelatedTasks(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseHaveRelatedTasksResponse(rsp)
|
|
}
|
|
|
|
// GetClientsOfIdsWithBodyWithResponse request with arbitrary body returning *GetClientsOfIdsResponse
|
|
func (c *ClientWithResponses) GetClientsOfIdsWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetClientsOfIdsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetClientsOfIdsResponse, error) {
|
|
rsp, err := c.GetClientsOfIdsWithBody(ctx, workspaceId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetClientsOfIdsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetClientsOfIdsWithResponse(ctx context.Context, workspaceId string, params *GetClientsOfIdsParams, body GetClientsOfIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetClientsOfIdsResponse, error) {
|
|
rsp, err := c.GetClientsOfIds(ctx, workspaceId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetClientsOfIdsResponse(rsp)
|
|
}
|
|
|
|
// GetClientsForInvoiceFilter1WithResponse request returning *GetClientsForInvoiceFilter1Response
|
|
func (c *ClientWithResponses) GetClientsForInvoiceFilter1WithResponse(ctx context.Context, workspaceId string, params *GetClientsForInvoiceFilter1Params, reqEditors ...RequestEditorFn) (*GetClientsForInvoiceFilter1Response, error) {
|
|
rsp, err := c.GetClientsForInvoiceFilter1(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetClientsForInvoiceFilter1Response(rsp)
|
|
}
|
|
|
|
// GetClients2WithResponse request returning *GetClients2Response
|
|
func (c *ClientWithResponses) GetClients2WithResponse(ctx context.Context, workspaceId string, params *GetClients2Params, reqEditors ...RequestEditorFn) (*GetClients2Response, error) {
|
|
rsp, err := c.GetClients2(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetClients2Response(rsp)
|
|
}
|
|
|
|
// GetClientsForReportFilterWithResponse request returning *GetClientsForReportFilterResponse
|
|
func (c *ClientWithResponses) GetClientsForReportFilterWithResponse(ctx context.Context, workspaceId string, params *GetClientsForReportFilterParams, reqEditors ...RequestEditorFn) (*GetClientsForReportFilterResponse, error) {
|
|
rsp, err := c.GetClientsForReportFilter(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetClientsForReportFilterResponse(rsp)
|
|
}
|
|
|
|
// GetClientIdsForReportFilterWithResponse request returning *GetClientIdsForReportFilterResponse
|
|
func (c *ClientWithResponses) GetClientIdsForReportFilterWithResponse(ctx context.Context, workspaceId string, params *GetClientIdsForReportFilterParams, reqEditors ...RequestEditorFn) (*GetClientIdsForReportFilterResponse, error) {
|
|
rsp, err := c.GetClientIdsForReportFilter(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetClientIdsForReportFilterResponse(rsp)
|
|
}
|
|
|
|
// GetTimeOffPoliciesAndHolidaysForClientWithBodyWithResponse request with arbitrary body returning *GetTimeOffPoliciesAndHolidaysForClientResponse
|
|
func (c *ClientWithResponses) GetTimeOffPoliciesAndHolidaysForClientWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysForClientResponse, error) {
|
|
rsp, err := c.GetTimeOffPoliciesAndHolidaysForClientWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimeOffPoliciesAndHolidaysForClientResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetTimeOffPoliciesAndHolidaysForClientWithResponse(ctx context.Context, workspaceId string, body GetTimeOffPoliciesAndHolidaysForClientJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysForClientResponse, error) {
|
|
rsp, err := c.GetTimeOffPoliciesAndHolidaysForClient(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimeOffPoliciesAndHolidaysForClientResponse(rsp)
|
|
}
|
|
|
|
// Delete17WithResponse request returning *Delete17Response
|
|
func (c *ClientWithResponses) Delete17WithResponse(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*Delete17Response, error) {
|
|
rsp, err := c.Delete17(ctx, workspaceId, clientId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete17Response(rsp)
|
|
}
|
|
|
|
// GetClientWithResponse request returning *GetClientResponse
|
|
func (c *ClientWithResponses) GetClientWithResponse(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*GetClientResponse, error) {
|
|
rsp, err := c.GetClient(ctx, workspaceId, clientId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetClientResponse(rsp)
|
|
}
|
|
|
|
// GetProjectsArchivePermissionsWithResponse request returning *GetProjectsArchivePermissionsResponse
|
|
func (c *ClientWithResponses) GetProjectsArchivePermissionsWithResponse(ctx context.Context, workspaceId string, clientId string, reqEditors ...RequestEditorFn) (*GetProjectsArchivePermissionsResponse, error) {
|
|
rsp, err := c.GetProjectsArchivePermissions(ctx, workspaceId, clientId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjectsArchivePermissionsResponse(rsp)
|
|
}
|
|
|
|
// Update10WithBodyWithResponse request with arbitrary body returning *Update10Response
|
|
func (c *ClientWithResponses) Update10WithBodyWithResponse(ctx context.Context, workspaceId string, id string, params *Update10Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update10Response, error) {
|
|
rsp, err := c.Update10WithBody(ctx, workspaceId, id, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate10Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Update10WithResponse(ctx context.Context, workspaceId string, id string, params *Update10Params, body Update10JSONRequestBody, reqEditors ...RequestEditorFn) (*Update10Response, error) {
|
|
rsp, err := c.Update10(ctx, workspaceId, id, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate10Response(rsp)
|
|
}
|
|
|
|
// SetCostRate2WithBodyWithResponse request with arbitrary body returning *SetCostRate2Response
|
|
func (c *ClientWithResponses) SetCostRate2WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCostRate2Response, error) {
|
|
rsp, err := c.SetCostRate2WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetCostRate2Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) SetCostRate2WithResponse(ctx context.Context, workspaceId string, body SetCostRate2JSONRequestBody, reqEditors ...RequestEditorFn) (*SetCostRate2Response, error) {
|
|
rsp, err := c.SetCostRate2(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetCostRate2Response(rsp)
|
|
}
|
|
|
|
// GetCouponWithResponse request returning *GetCouponResponse
|
|
func (c *ClientWithResponses) GetCouponWithResponse(ctx context.Context, workspaceId string, params *GetCouponParams, reqEditors ...RequestEditorFn) (*GetCouponResponse, error) {
|
|
rsp, err := c.GetCoupon(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetCouponResponse(rsp)
|
|
}
|
|
|
|
// GetWorkspaceCurrenciesWithResponse request returning *GetWorkspaceCurrenciesResponse
|
|
func (c *ClientWithResponses) GetWorkspaceCurrenciesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkspaceCurrenciesResponse, error) {
|
|
rsp, err := c.GetWorkspaceCurrencies(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetWorkspaceCurrenciesResponse(rsp)
|
|
}
|
|
|
|
// CreateCurrencyWithBodyWithResponse request with arbitrary body returning *CreateCurrencyResponse
|
|
func (c *ClientWithResponses) CreateCurrencyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCurrencyResponse, error) {
|
|
rsp, err := c.CreateCurrencyWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateCurrencyResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateCurrencyWithResponse(ctx context.Context, workspaceId string, body CreateCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCurrencyResponse, error) {
|
|
rsp, err := c.CreateCurrency(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateCurrencyResponse(rsp)
|
|
}
|
|
|
|
// RemoveCurrencyWithResponse request returning *RemoveCurrencyResponse
|
|
func (c *ClientWithResponses) RemoveCurrencyWithResponse(ctx context.Context, workspaceId string, currencyId string, reqEditors ...RequestEditorFn) (*RemoveCurrencyResponse, error) {
|
|
rsp, err := c.RemoveCurrency(ctx, workspaceId, currencyId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemoveCurrencyResponse(rsp)
|
|
}
|
|
|
|
// GetCurrencyWithResponse request returning *GetCurrencyResponse
|
|
func (c *ClientWithResponses) GetCurrencyWithResponse(ctx context.Context, workspaceId string, currencyId string, reqEditors ...RequestEditorFn) (*GetCurrencyResponse, error) {
|
|
rsp, err := c.GetCurrency(ctx, workspaceId, currencyId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetCurrencyResponse(rsp)
|
|
}
|
|
|
|
// UpdateCurrencyCodeWithBodyWithResponse request with arbitrary body returning *UpdateCurrencyCodeResponse
|
|
func (c *ClientWithResponses) UpdateCurrencyCodeWithBodyWithResponse(ctx context.Context, workspaceId string, currencyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCurrencyCodeResponse, error) {
|
|
rsp, err := c.UpdateCurrencyCodeWithBody(ctx, workspaceId, currencyId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateCurrencyCodeResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateCurrencyCodeWithResponse(ctx context.Context, workspaceId string, currencyId string, body UpdateCurrencyCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCurrencyCodeResponse, error) {
|
|
rsp, err := c.UpdateCurrencyCode(ctx, workspaceId, currencyId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateCurrencyCodeResponse(rsp)
|
|
}
|
|
|
|
// SetCurrencyWithBodyWithResponse request with arbitrary body returning *SetCurrencyResponse
|
|
func (c *ClientWithResponses) SetCurrencyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCurrencyResponse, error) {
|
|
rsp, err := c.SetCurrencyWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetCurrencyResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) SetCurrencyWithResponse(ctx context.Context, workspaceId string, body SetCurrencyJSONRequestBody, reqEditors ...RequestEditorFn) (*SetCurrencyResponse, error) {
|
|
rsp, err := c.SetCurrency(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetCurrencyResponse(rsp)
|
|
}
|
|
|
|
// OfWorkspaceWithResponse request returning *OfWorkspaceResponse
|
|
func (c *ClientWithResponses) OfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *OfWorkspaceParams, reqEditors ...RequestEditorFn) (*OfWorkspaceResponse, error) {
|
|
rsp, err := c.OfWorkspace(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseOfWorkspaceResponse(rsp)
|
|
}
|
|
|
|
// Create18WithBodyWithResponse request with arbitrary body returning *Create18Response
|
|
func (c *ClientWithResponses) Create18WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create18Response, error) {
|
|
rsp, err := c.Create18WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate18Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create18WithResponse(ctx context.Context, workspaceId string, body Create18JSONRequestBody, reqEditors ...RequestEditorFn) (*Create18Response, error) {
|
|
rsp, err := c.Create18(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate18Response(rsp)
|
|
}
|
|
|
|
// OfWorkspaceWithRequiredAvailabilityWithResponse request returning *OfWorkspaceWithRequiredAvailabilityResponse
|
|
func (c *ClientWithResponses) OfWorkspaceWithRequiredAvailabilityWithResponse(ctx context.Context, workspaceId string, params *OfWorkspaceWithRequiredAvailabilityParams, reqEditors ...RequestEditorFn) (*OfWorkspaceWithRequiredAvailabilityResponse, error) {
|
|
rsp, err := c.OfWorkspaceWithRequiredAvailability(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseOfWorkspaceWithRequiredAvailabilityResponse(rsp)
|
|
}
|
|
|
|
// Delete16WithResponse request returning *Delete16Response
|
|
func (c *ClientWithResponses) Delete16WithResponse(ctx context.Context, workspaceId string, customFieldId string, reqEditors ...RequestEditorFn) (*Delete16Response, error) {
|
|
rsp, err := c.Delete16(ctx, workspaceId, customFieldId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete16Response(rsp)
|
|
}
|
|
|
|
// EditWithBodyWithResponse request with arbitrary body returning *EditResponse
|
|
func (c *ClientWithResponses) EditWithBodyWithResponse(ctx context.Context, workspaceId string, customFieldId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditResponse, error) {
|
|
rsp, err := c.EditWithBody(ctx, workspaceId, customFieldId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) EditWithResponse(ctx context.Context, workspaceId string, customFieldId string, body EditJSONRequestBody, reqEditors ...RequestEditorFn) (*EditResponse, error) {
|
|
rsp, err := c.Edit(ctx, workspaceId, customFieldId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditResponse(rsp)
|
|
}
|
|
|
|
// RemoveDefaultValueOfProjectWithResponse request returning *RemoveDefaultValueOfProjectResponse
|
|
func (c *ClientWithResponses) RemoveDefaultValueOfProjectWithResponse(ctx context.Context, workspaceId string, customFieldId string, projectId string, reqEditors ...RequestEditorFn) (*RemoveDefaultValueOfProjectResponse, error) {
|
|
rsp, err := c.RemoveDefaultValueOfProject(ctx, workspaceId, customFieldId, projectId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemoveDefaultValueOfProjectResponse(rsp)
|
|
}
|
|
|
|
// EditDefaultValuesWithBodyWithResponse request with arbitrary body returning *EditDefaultValuesResponse
|
|
func (c *ClientWithResponses) EditDefaultValuesWithBodyWithResponse(ctx context.Context, workspaceId string, customFieldId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditDefaultValuesResponse, error) {
|
|
rsp, err := c.EditDefaultValuesWithBody(ctx, workspaceId, customFieldId, projectId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditDefaultValuesResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) EditDefaultValuesWithResponse(ctx context.Context, workspaceId string, customFieldId string, projectId string, body EditDefaultValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*EditDefaultValuesResponse, error) {
|
|
rsp, err := c.EditDefaultValues(ctx, workspaceId, customFieldId, projectId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditDefaultValuesResponse(rsp)
|
|
}
|
|
|
|
// GetOfProjectWithResponse request returning *GetOfProjectResponse
|
|
func (c *ClientWithResponses) GetOfProjectWithResponse(ctx context.Context, workspaceId string, projectId string, params *GetOfProjectParams, reqEditors ...RequestEditorFn) (*GetOfProjectResponse, error) {
|
|
rsp, err := c.GetOfProject(ctx, workspaceId, projectId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetOfProjectResponse(rsp)
|
|
}
|
|
|
|
// UpdateCustomLabelsWithBodyWithResponse request with arbitrary body returning *UpdateCustomLabelsResponse
|
|
func (c *ClientWithResponses) UpdateCustomLabelsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomLabelsResponse, error) {
|
|
rsp, err := c.UpdateCustomLabelsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateCustomLabelsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateCustomLabelsWithResponse(ctx context.Context, workspaceId string, body UpdateCustomLabelsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomLabelsResponse, error) {
|
|
rsp, err := c.UpdateCustomLabels(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateCustomLabelsResponse(rsp)
|
|
}
|
|
|
|
// AddEmailWithBodyWithResponse request with arbitrary body returning *AddEmailResponse
|
|
func (c *ClientWithResponses) AddEmailWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, params *AddEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddEmailResponse, error) {
|
|
rsp, err := c.AddEmailWithBody(ctx, workspaceId, userId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddEmailResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) AddEmailWithResponse(ctx context.Context, workspaceId string, userId string, params *AddEmailParams, body AddEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*AddEmailResponse, error) {
|
|
rsp, err := c.AddEmail(ctx, workspaceId, userId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddEmailResponse(rsp)
|
|
}
|
|
|
|
// DeleteManyExpensesWithBodyWithResponse request with arbitrary body returning *DeleteManyExpensesResponse
|
|
func (c *ClientWithResponses) DeleteManyExpensesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteManyExpensesResponse, error) {
|
|
rsp, err := c.DeleteManyExpensesWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteManyExpensesResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) DeleteManyExpensesWithResponse(ctx context.Context, workspaceId string, body DeleteManyExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteManyExpensesResponse, error) {
|
|
rsp, err := c.DeleteManyExpenses(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteManyExpensesResponse(rsp)
|
|
}
|
|
|
|
// GetExpensesWithResponse request returning *GetExpensesResponse
|
|
func (c *ClientWithResponses) GetExpensesWithResponse(ctx context.Context, workspaceId string, params *GetExpensesParams, reqEditors ...RequestEditorFn) (*GetExpensesResponse, error) {
|
|
rsp, err := c.GetExpenses(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetExpensesResponse(rsp)
|
|
}
|
|
|
|
// CreateExpenseWithBodyWithResponse request with arbitrary body returning *CreateExpenseResponse
|
|
func (c *ClientWithResponses) CreateExpenseWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateExpenseResponse, error) {
|
|
rsp, err := c.CreateExpenseWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateExpenseResponse(rsp)
|
|
}
|
|
|
|
// GetCategoriesWithResponse request returning *GetCategoriesResponse
|
|
func (c *ClientWithResponses) GetCategoriesWithResponse(ctx context.Context, workspaceId string, params *GetCategoriesParams, reqEditors ...RequestEditorFn) (*GetCategoriesResponse, error) {
|
|
rsp, err := c.GetCategories(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetCategoriesResponse(rsp)
|
|
}
|
|
|
|
// Create17WithBodyWithResponse request with arbitrary body returning *Create17Response
|
|
func (c *ClientWithResponses) Create17WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create17Response, error) {
|
|
rsp, err := c.Create17WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate17Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create17WithResponse(ctx context.Context, workspaceId string, body Create17JSONRequestBody, reqEditors ...RequestEditorFn) (*Create17Response, error) {
|
|
rsp, err := c.Create17(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate17Response(rsp)
|
|
}
|
|
|
|
// GetCategoriesByIdsWithResponse request returning *GetCategoriesByIdsResponse
|
|
func (c *ClientWithResponses) GetCategoriesByIdsWithResponse(ctx context.Context, workspaceId string, params *GetCategoriesByIdsParams, reqEditors ...RequestEditorFn) (*GetCategoriesByIdsResponse, error) {
|
|
rsp, err := c.GetCategoriesByIds(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetCategoriesByIdsResponse(rsp)
|
|
}
|
|
|
|
// DeleteCategoryWithResponse request returning *DeleteCategoryResponse
|
|
func (c *ClientWithResponses) DeleteCategoryWithResponse(ctx context.Context, workspaceId string, categoryId string, reqEditors ...RequestEditorFn) (*DeleteCategoryResponse, error) {
|
|
rsp, err := c.DeleteCategory(ctx, workspaceId, categoryId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteCategoryResponse(rsp)
|
|
}
|
|
|
|
// UpdateCategoryWithBodyWithResponse request with arbitrary body returning *UpdateCategoryResponse
|
|
func (c *ClientWithResponses) UpdateCategoryWithBodyWithResponse(ctx context.Context, workspaceId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCategoryResponse, error) {
|
|
rsp, err := c.UpdateCategoryWithBody(ctx, workspaceId, categoryId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateCategoryResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateCategoryWithResponse(ctx context.Context, workspaceId string, categoryId string, body UpdateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCategoryResponse, error) {
|
|
rsp, err := c.UpdateCategory(ctx, workspaceId, categoryId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateCategoryResponse(rsp)
|
|
}
|
|
|
|
// UpdateStatus1WithBodyWithResponse request with arbitrary body returning *UpdateStatus1Response
|
|
func (c *ClientWithResponses) UpdateStatus1WithBodyWithResponse(ctx context.Context, workspaceId string, categoryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatus1Response, error) {
|
|
rsp, err := c.UpdateStatus1WithBody(ctx, workspaceId, categoryId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateStatus1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateStatus1WithResponse(ctx context.Context, workspaceId string, categoryId string, body UpdateStatus1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatus1Response, error) {
|
|
rsp, err := c.UpdateStatus1(ctx, workspaceId, categoryId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateStatus1Response(rsp)
|
|
}
|
|
|
|
// GetExpensesInDateRangeWithResponse request returning *GetExpensesInDateRangeResponse
|
|
func (c *ClientWithResponses) GetExpensesInDateRangeWithResponse(ctx context.Context, workspaceId string, params *GetExpensesInDateRangeParams, reqEditors ...RequestEditorFn) (*GetExpensesInDateRangeResponse, error) {
|
|
rsp, err := c.GetExpensesInDateRange(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetExpensesInDateRangeResponse(rsp)
|
|
}
|
|
|
|
// UpdateInvoicedStatus1WithBodyWithResponse request with arbitrary body returning *UpdateInvoicedStatus1Response
|
|
func (c *ClientWithResponses) UpdateInvoicedStatus1WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoicedStatus1Response, error) {
|
|
rsp, err := c.UpdateInvoicedStatus1WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateInvoicedStatus1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateInvoicedStatus1WithResponse(ctx context.Context, workspaceId string, body UpdateInvoicedStatus1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoicedStatus1Response, error) {
|
|
rsp, err := c.UpdateInvoicedStatus1(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateInvoicedStatus1Response(rsp)
|
|
}
|
|
|
|
// RestoreManyExpensesWithBodyWithResponse request with arbitrary body returning *RestoreManyExpensesResponse
|
|
func (c *ClientWithResponses) RestoreManyExpensesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RestoreManyExpensesResponse, error) {
|
|
rsp, err := c.RestoreManyExpensesWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRestoreManyExpensesResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) RestoreManyExpensesWithResponse(ctx context.Context, workspaceId string, body RestoreManyExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*RestoreManyExpensesResponse, error) {
|
|
rsp, err := c.RestoreManyExpenses(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRestoreManyExpensesResponse(rsp)
|
|
}
|
|
|
|
// DeleteExpenseWithResponse request returning *DeleteExpenseResponse
|
|
func (c *ClientWithResponses) DeleteExpenseWithResponse(ctx context.Context, workspaceId string, expenseId string, reqEditors ...RequestEditorFn) (*DeleteExpenseResponse, error) {
|
|
rsp, err := c.DeleteExpense(ctx, workspaceId, expenseId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteExpenseResponse(rsp)
|
|
}
|
|
|
|
// GetExpenseWithResponse request returning *GetExpenseResponse
|
|
func (c *ClientWithResponses) GetExpenseWithResponse(ctx context.Context, workspaceId string, expenseId string, reqEditors ...RequestEditorFn) (*GetExpenseResponse, error) {
|
|
rsp, err := c.GetExpense(ctx, workspaceId, expenseId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetExpenseResponse(rsp)
|
|
}
|
|
|
|
// UpdateExpenseWithBodyWithResponse request with arbitrary body returning *UpdateExpenseResponse
|
|
func (c *ClientWithResponses) UpdateExpenseWithBodyWithResponse(ctx context.Context, workspaceId string, expenseId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateExpenseResponse, error) {
|
|
rsp, err := c.UpdateExpenseWithBody(ctx, workspaceId, expenseId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateExpenseResponse(rsp)
|
|
}
|
|
|
|
// DownloadFileWithResponse request returning *DownloadFileResponse
|
|
func (c *ClientWithResponses) DownloadFileWithResponse(ctx context.Context, workspaceId string, expenseId string, fileId string, reqEditors ...RequestEditorFn) (*DownloadFileResponse, error) {
|
|
rsp, err := c.DownloadFile(ctx, workspaceId, expenseId, fileId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDownloadFileResponse(rsp)
|
|
}
|
|
|
|
// ImportFileDataWithBodyWithResponse request with arbitrary body returning *ImportFileDataResponse
|
|
func (c *ClientWithResponses) ImportFileDataWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportFileDataResponse, error) {
|
|
rsp, err := c.ImportFileDataWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseImportFileDataResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) ImportFileDataWithResponse(ctx context.Context, workspaceId string, body ImportFileDataJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportFileDataResponse, error) {
|
|
rsp, err := c.ImportFileData(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseImportFileDataResponse(rsp)
|
|
}
|
|
|
|
// CheckUsersForImportWithResponse request returning *CheckUsersForImportResponse
|
|
func (c *ClientWithResponses) CheckUsersForImportWithResponse(ctx context.Context, workspaceId string, fileImportId string, reqEditors ...RequestEditorFn) (*CheckUsersForImportResponse, error) {
|
|
rsp, err := c.CheckUsersForImport(ctx, workspaceId, fileImportId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCheckUsersForImportResponse(rsp)
|
|
}
|
|
|
|
// GetHolidaysWithResponse request returning *GetHolidaysResponse
|
|
func (c *ClientWithResponses) GetHolidaysWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetHolidaysResponse, error) {
|
|
rsp, err := c.GetHolidays(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetHolidaysResponse(rsp)
|
|
}
|
|
|
|
// Create16WithBodyWithResponse request with arbitrary body returning *Create16Response
|
|
func (c *ClientWithResponses) Create16WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create16Response, error) {
|
|
rsp, err := c.Create16WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate16Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create16WithResponse(ctx context.Context, workspaceId string, body Create16JSONRequestBody, reqEditors ...RequestEditorFn) (*Create16Response, error) {
|
|
rsp, err := c.Create16(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate16Response(rsp)
|
|
}
|
|
|
|
// Delete15WithResponse request returning *Delete15Response
|
|
func (c *ClientWithResponses) Delete15WithResponse(ctx context.Context, workspaceId string, holidayId string, reqEditors ...RequestEditorFn) (*Delete15Response, error) {
|
|
rsp, err := c.Delete15(ctx, workspaceId, holidayId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete15Response(rsp)
|
|
}
|
|
|
|
// Update9WithBodyWithResponse request with arbitrary body returning *Update9Response
|
|
func (c *ClientWithResponses) Update9WithBodyWithResponse(ctx context.Context, workspaceId string, holidayId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update9Response, error) {
|
|
rsp, err := c.Update9WithBody(ctx, workspaceId, holidayId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate9Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Update9WithResponse(ctx context.Context, workspaceId string, holidayId string, body Update9JSONRequestBody, reqEditors ...RequestEditorFn) (*Update9Response, error) {
|
|
rsp, err := c.Update9(ctx, workspaceId, holidayId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate9Response(rsp)
|
|
}
|
|
|
|
// SetHourlyRate2WithBodyWithResponse request with arbitrary body returning *SetHourlyRate2Response
|
|
func (c *ClientWithResponses) SetHourlyRate2WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHourlyRate2Response, error) {
|
|
rsp, err := c.SetHourlyRate2WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetHourlyRate2Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) SetHourlyRate2WithResponse(ctx context.Context, workspaceId string, body SetHourlyRate2JSONRequestBody, reqEditors ...RequestEditorFn) (*SetHourlyRate2Response, error) {
|
|
rsp, err := c.SetHourlyRate2(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetHourlyRate2Response(rsp)
|
|
}
|
|
|
|
// GetInvitedEmailsInfoWithBodyWithResponse request with arbitrary body returning *GetInvitedEmailsInfoResponse
|
|
func (c *ClientWithResponses) GetInvitedEmailsInfoWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInvitedEmailsInfoResponse, error) {
|
|
rsp, err := c.GetInvitedEmailsInfoWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInvitedEmailsInfoResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetInvitedEmailsInfoWithResponse(ctx context.Context, workspaceId string, body GetInvitedEmailsInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInvitedEmailsInfoResponse, error) {
|
|
rsp, err := c.GetInvitedEmailsInfo(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInvitedEmailsInfoResponse(rsp)
|
|
}
|
|
|
|
// GetInvoiceEmailTemplatesWithResponse request returning *GetInvoiceEmailTemplatesResponse
|
|
func (c *ClientWithResponses) GetInvoiceEmailTemplatesWithResponse(ctx context.Context, workspaceId string, params *GetInvoiceEmailTemplatesParams, reqEditors ...RequestEditorFn) (*GetInvoiceEmailTemplatesResponse, error) {
|
|
rsp, err := c.GetInvoiceEmailTemplates(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInvoiceEmailTemplatesResponse(rsp)
|
|
}
|
|
|
|
// UpsertInvoiceEmailTemplateWithBodyWithResponse request with arbitrary body returning *UpsertInvoiceEmailTemplateResponse
|
|
func (c *ClientWithResponses) UpsertInvoiceEmailTemplateWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertInvoiceEmailTemplateResponse, error) {
|
|
rsp, err := c.UpsertInvoiceEmailTemplateWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpsertInvoiceEmailTemplateResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpsertInvoiceEmailTemplateWithResponse(ctx context.Context, workspaceId string, body UpsertInvoiceEmailTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertInvoiceEmailTemplateResponse, error) {
|
|
rsp, err := c.UpsertInvoiceEmailTemplate(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpsertInvoiceEmailTemplateResponse(rsp)
|
|
}
|
|
|
|
// GetInvoiceEmailDataWithResponse request returning *GetInvoiceEmailDataResponse
|
|
func (c *ClientWithResponses) GetInvoiceEmailDataWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, reqEditors ...RequestEditorFn) (*GetInvoiceEmailDataResponse, error) {
|
|
rsp, err := c.GetInvoiceEmailData(ctx, workspaceId, invoiceId, invoiceEmailTemplateType, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInvoiceEmailDataResponse(rsp)
|
|
}
|
|
|
|
// SendInvoiceEmailWithBodyWithResponse request with arbitrary body returning *SendInvoiceEmailResponse
|
|
func (c *ClientWithResponses) SendInvoiceEmailWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendInvoiceEmailResponse, error) {
|
|
rsp, err := c.SendInvoiceEmailWithBody(ctx, workspaceId, invoiceId, invoiceEmailTemplateType, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSendInvoiceEmailResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) SendInvoiceEmailWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceEmailTemplateType string, body SendInvoiceEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*SendInvoiceEmailResponse, error) {
|
|
rsp, err := c.SendInvoiceEmail(ctx, workspaceId, invoiceId, invoiceEmailTemplateType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSendInvoiceEmailResponse(rsp)
|
|
}
|
|
|
|
// CreateInvoiceWithBodyWithResponse request with arbitrary body returning *CreateInvoiceResponse
|
|
func (c *ClientWithResponses) CreateInvoiceWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoiceResponse, error) {
|
|
rsp, err := c.CreateInvoiceWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateInvoiceResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateInvoiceWithResponse(ctx context.Context, workspaceId string, body CreateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoiceResponse, error) {
|
|
rsp, err := c.CreateInvoice(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateInvoiceResponse(rsp)
|
|
}
|
|
|
|
// GetAllCompaniesWithResponse request returning *GetAllCompaniesResponse
|
|
func (c *ClientWithResponses) GetAllCompaniesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetAllCompaniesResponse, error) {
|
|
rsp, err := c.GetAllCompanies(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetAllCompaniesResponse(rsp)
|
|
}
|
|
|
|
// CreateCompanyWithBodyWithResponse request with arbitrary body returning *CreateCompanyResponse
|
|
func (c *ClientWithResponses) CreateCompanyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCompanyResponse, error) {
|
|
rsp, err := c.CreateCompanyWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateCompanyResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateCompanyWithResponse(ctx context.Context, workspaceId string, body CreateCompanyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCompanyResponse, error) {
|
|
rsp, err := c.CreateCompany(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateCompanyResponse(rsp)
|
|
}
|
|
|
|
// UpdateCompaniesInWorkspaceWithBodyWithResponse request with arbitrary body returning *UpdateCompaniesInWorkspaceResponse
|
|
func (c *ClientWithResponses) UpdateCompaniesInWorkspaceWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCompaniesInWorkspaceResponse, error) {
|
|
rsp, err := c.UpdateCompaniesInWorkspaceWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateCompaniesInWorkspaceResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateCompaniesInWorkspaceWithResponse(ctx context.Context, workspaceId string, body UpdateCompaniesInWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCompaniesInWorkspaceResponse, error) {
|
|
rsp, err := c.UpdateCompaniesInWorkspace(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateCompaniesInWorkspaceResponse(rsp)
|
|
}
|
|
|
|
// CountAllCompaniesWithResponse request returning *CountAllCompaniesResponse
|
|
func (c *ClientWithResponses) CountAllCompaniesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*CountAllCompaniesResponse, error) {
|
|
rsp, err := c.CountAllCompanies(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCountAllCompaniesResponse(rsp)
|
|
}
|
|
|
|
// GetClientsForInvoiceFilterWithResponse request returning *GetClientsForInvoiceFilterResponse
|
|
func (c *ClientWithResponses) GetClientsForInvoiceFilterWithResponse(ctx context.Context, workspaceId string, params *GetClientsForInvoiceFilterParams, reqEditors ...RequestEditorFn) (*GetClientsForInvoiceFilterResponse, error) {
|
|
rsp, err := c.GetClientsForInvoiceFilter(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetClientsForInvoiceFilterResponse(rsp)
|
|
}
|
|
|
|
// DeleteCompanyWithResponse request returning *DeleteCompanyResponse
|
|
func (c *ClientWithResponses) DeleteCompanyWithResponse(ctx context.Context, workspaceId string, companyId string, reqEditors ...RequestEditorFn) (*DeleteCompanyResponse, error) {
|
|
rsp, err := c.DeleteCompany(ctx, workspaceId, companyId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteCompanyResponse(rsp)
|
|
}
|
|
|
|
// GetCompanyByIdWithResponse request returning *GetCompanyByIdResponse
|
|
func (c *ClientWithResponses) GetCompanyByIdWithResponse(ctx context.Context, workspaceId string, companyId string, reqEditors ...RequestEditorFn) (*GetCompanyByIdResponse, error) {
|
|
rsp, err := c.GetCompanyById(ctx, workspaceId, companyId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetCompanyByIdResponse(rsp)
|
|
}
|
|
|
|
// UpdateCompanyWithBodyWithResponse request with arbitrary body returning *UpdateCompanyResponse
|
|
func (c *ClientWithResponses) UpdateCompanyWithBodyWithResponse(ctx context.Context, workspaceId string, companyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCompanyResponse, error) {
|
|
rsp, err := c.UpdateCompanyWithBody(ctx, workspaceId, companyId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateCompanyResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateCompanyWithResponse(ctx context.Context, workspaceId string, companyId string, body UpdateCompanyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCompanyResponse, error) {
|
|
rsp, err := c.UpdateCompany(ctx, workspaceId, companyId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateCompanyResponse(rsp)
|
|
}
|
|
|
|
// GetInvoicesInfoWithBodyWithResponse request with arbitrary body returning *GetInvoicesInfoResponse
|
|
func (c *ClientWithResponses) GetInvoicesInfoWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetInvoicesInfoResponse, error) {
|
|
rsp, err := c.GetInvoicesInfoWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInvoicesInfoResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetInvoicesInfoWithResponse(ctx context.Context, workspaceId string, body GetInvoicesInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetInvoicesInfoResponse, error) {
|
|
rsp, err := c.GetInvoicesInfo(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInvoicesInfoResponse(rsp)
|
|
}
|
|
|
|
// GetInvoiceItemTypesWithResponse request returning *GetInvoiceItemTypesResponse
|
|
func (c *ClientWithResponses) GetInvoiceItemTypesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetInvoiceItemTypesResponse, error) {
|
|
rsp, err := c.GetInvoiceItemTypes(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInvoiceItemTypesResponse(rsp)
|
|
}
|
|
|
|
// CreateInvoiceItemTypeWithBodyWithResponse request with arbitrary body returning *CreateInvoiceItemTypeResponse
|
|
func (c *ClientWithResponses) CreateInvoiceItemTypeWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoiceItemTypeResponse, error) {
|
|
rsp, err := c.CreateInvoiceItemTypeWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateInvoiceItemTypeResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateInvoiceItemTypeWithResponse(ctx context.Context, workspaceId string, body CreateInvoiceItemTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoiceItemTypeResponse, error) {
|
|
rsp, err := c.CreateInvoiceItemType(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateInvoiceItemTypeResponse(rsp)
|
|
}
|
|
|
|
// DeleteInvoiceItemTypeWithResponse request returning *DeleteInvoiceItemTypeResponse
|
|
func (c *ClientWithResponses) DeleteInvoiceItemTypeWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*DeleteInvoiceItemTypeResponse, error) {
|
|
rsp, err := c.DeleteInvoiceItemType(ctx, workspaceId, id, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteInvoiceItemTypeResponse(rsp)
|
|
}
|
|
|
|
// UpdateInvoiceItemTypeWithBodyWithResponse request with arbitrary body returning *UpdateInvoiceItemTypeResponse
|
|
func (c *ClientWithResponses) UpdateInvoiceItemTypeWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceItemTypeResponse, error) {
|
|
rsp, err := c.UpdateInvoiceItemTypeWithBody(ctx, workspaceId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateInvoiceItemTypeResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateInvoiceItemTypeWithResponse(ctx context.Context, workspaceId string, id string, body UpdateInvoiceItemTypeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceItemTypeResponse, error) {
|
|
rsp, err := c.UpdateInvoiceItemType(ctx, workspaceId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateInvoiceItemTypeResponse(rsp)
|
|
}
|
|
|
|
// GetNextInvoiceNumberWithResponse request returning *GetNextInvoiceNumberResponse
|
|
func (c *ClientWithResponses) GetNextInvoiceNumberWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetNextInvoiceNumberResponse, error) {
|
|
rsp, err := c.GetNextInvoiceNumber(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetNextInvoiceNumberResponse(rsp)
|
|
}
|
|
|
|
// GetInvoicePermissionsWithResponse request returning *GetInvoicePermissionsResponse
|
|
func (c *ClientWithResponses) GetInvoicePermissionsWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetInvoicePermissionsResponse, error) {
|
|
rsp, err := c.GetInvoicePermissions(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInvoicePermissionsResponse(rsp)
|
|
}
|
|
|
|
// UpdateInvoicePermissionsWithBodyWithResponse request with arbitrary body returning *UpdateInvoicePermissionsResponse
|
|
func (c *ClientWithResponses) UpdateInvoicePermissionsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoicePermissionsResponse, error) {
|
|
rsp, err := c.UpdateInvoicePermissionsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateInvoicePermissionsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateInvoicePermissionsWithResponse(ctx context.Context, workspaceId string, body UpdateInvoicePermissionsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoicePermissionsResponse, error) {
|
|
rsp, err := c.UpdateInvoicePermissions(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateInvoicePermissionsResponse(rsp)
|
|
}
|
|
|
|
// CanUserManageInvoicesWithResponse request returning *CanUserManageInvoicesResponse
|
|
func (c *ClientWithResponses) CanUserManageInvoicesWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*CanUserManageInvoicesResponse, error) {
|
|
rsp, err := c.CanUserManageInvoices(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCanUserManageInvoicesResponse(rsp)
|
|
}
|
|
|
|
// GetInvoiceSettingsWithResponse request returning *GetInvoiceSettingsResponse
|
|
func (c *ClientWithResponses) GetInvoiceSettingsWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetInvoiceSettingsResponse, error) {
|
|
rsp, err := c.GetInvoiceSettings(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInvoiceSettingsResponse(rsp)
|
|
}
|
|
|
|
// UpdateInvoiceSettingsWithBodyWithResponse request with arbitrary body returning *UpdateInvoiceSettingsResponse
|
|
func (c *ClientWithResponses) UpdateInvoiceSettingsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceSettingsResponse, error) {
|
|
rsp, err := c.UpdateInvoiceSettingsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateInvoiceSettingsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateInvoiceSettingsWithResponse(ctx context.Context, workspaceId string, body UpdateInvoiceSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceSettingsResponse, error) {
|
|
rsp, err := c.UpdateInvoiceSettings(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateInvoiceSettingsResponse(rsp)
|
|
}
|
|
|
|
// DeleteInvoiceWithResponse request returning *DeleteInvoiceResponse
|
|
func (c *ClientWithResponses) DeleteInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*DeleteInvoiceResponse, error) {
|
|
rsp, err := c.DeleteInvoice(ctx, workspaceId, invoiceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteInvoiceResponse(rsp)
|
|
}
|
|
|
|
// GetInvoiceWithResponse request returning *GetInvoiceResponse
|
|
func (c *ClientWithResponses) GetInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*GetInvoiceResponse, error) {
|
|
rsp, err := c.GetInvoice(ctx, workspaceId, invoiceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInvoiceResponse(rsp)
|
|
}
|
|
|
|
// UpdateInvoiceWithBodyWithResponse request with arbitrary body returning *UpdateInvoiceResponse
|
|
func (c *ClientWithResponses) UpdateInvoiceWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error) {
|
|
rsp, err := c.UpdateInvoiceWithBody(ctx, workspaceId, invoiceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateInvoiceResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error) {
|
|
rsp, err := c.UpdateInvoice(ctx, workspaceId, invoiceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateInvoiceResponse(rsp)
|
|
}
|
|
|
|
// DuplicateInvoiceWithResponse request returning *DuplicateInvoiceResponse
|
|
func (c *ClientWithResponses) DuplicateInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*DuplicateInvoiceResponse, error) {
|
|
rsp, err := c.DuplicateInvoice(ctx, workspaceId, invoiceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDuplicateInvoiceResponse(rsp)
|
|
}
|
|
|
|
// ExportInvoiceWithResponse request returning *ExportInvoiceResponse
|
|
func (c *ClientWithResponses) ExportInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, params *ExportInvoiceParams, reqEditors ...RequestEditorFn) (*ExportInvoiceResponse, error) {
|
|
rsp, err := c.ExportInvoice(ctx, workspaceId, invoiceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseExportInvoiceResponse(rsp)
|
|
}
|
|
|
|
// ImportTimeAndExpensesWithBodyWithResponse request with arbitrary body returning *ImportTimeAndExpensesResponse
|
|
func (c *ClientWithResponses) ImportTimeAndExpensesWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ImportTimeAndExpensesResponse, error) {
|
|
rsp, err := c.ImportTimeAndExpensesWithBody(ctx, workspaceId, invoiceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseImportTimeAndExpensesResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) ImportTimeAndExpensesWithResponse(ctx context.Context, workspaceId string, invoiceId string, body ImportTimeAndExpensesJSONRequestBody, reqEditors ...RequestEditorFn) (*ImportTimeAndExpensesResponse, error) {
|
|
rsp, err := c.ImportTimeAndExpenses(ctx, workspaceId, invoiceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseImportTimeAndExpensesResponse(rsp)
|
|
}
|
|
|
|
// AddInvoiceItemWithResponse request returning *AddInvoiceItemResponse
|
|
func (c *ClientWithResponses) AddInvoiceItemWithResponse(ctx context.Context, workspaceId string, invoiceId string, reqEditors ...RequestEditorFn) (*AddInvoiceItemResponse, error) {
|
|
rsp, err := c.AddInvoiceItem(ctx, workspaceId, invoiceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddInvoiceItemResponse(rsp)
|
|
}
|
|
|
|
// ReorderInvoiceItem1WithBodyWithResponse request with arbitrary body returning *ReorderInvoiceItem1Response
|
|
func (c *ClientWithResponses) ReorderInvoiceItem1WithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReorderInvoiceItem1Response, error) {
|
|
rsp, err := c.ReorderInvoiceItem1WithBody(ctx, workspaceId, invoiceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseReorderInvoiceItem1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) ReorderInvoiceItem1WithResponse(ctx context.Context, workspaceId string, invoiceId string, body ReorderInvoiceItem1JSONRequestBody, reqEditors ...RequestEditorFn) (*ReorderInvoiceItem1Response, error) {
|
|
rsp, err := c.ReorderInvoiceItem1(ctx, workspaceId, invoiceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseReorderInvoiceItem1Response(rsp)
|
|
}
|
|
|
|
// EditInvoiceItemWithBodyWithResponse request with arbitrary body returning *EditInvoiceItemResponse
|
|
func (c *ClientWithResponses) EditInvoiceItemWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceItemOrder int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditInvoiceItemResponse, error) {
|
|
rsp, err := c.EditInvoiceItemWithBody(ctx, workspaceId, invoiceId, invoiceItemOrder, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditInvoiceItemResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) EditInvoiceItemWithResponse(ctx context.Context, workspaceId string, invoiceId string, invoiceItemOrder int32, body EditInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*EditInvoiceItemResponse, error) {
|
|
rsp, err := c.EditInvoiceItem(ctx, workspaceId, invoiceId, invoiceItemOrder, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditInvoiceItemResponse(rsp)
|
|
}
|
|
|
|
// DeleteInvoiceItemsWithResponse request returning *DeleteInvoiceItemsResponse
|
|
func (c *ClientWithResponses) DeleteInvoiceItemsWithResponse(ctx context.Context, workspaceId string, invoiceId string, params *DeleteInvoiceItemsParams, reqEditors ...RequestEditorFn) (*DeleteInvoiceItemsResponse, error) {
|
|
rsp, err := c.DeleteInvoiceItems(ctx, workspaceId, invoiceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteInvoiceItemsResponse(rsp)
|
|
}
|
|
|
|
// GetPaymentsForInvoiceWithResponse request returning *GetPaymentsForInvoiceResponse
|
|
func (c *ClientWithResponses) GetPaymentsForInvoiceWithResponse(ctx context.Context, workspaceId string, invoiceId string, params *GetPaymentsForInvoiceParams, reqEditors ...RequestEditorFn) (*GetPaymentsForInvoiceResponse, error) {
|
|
rsp, err := c.GetPaymentsForInvoice(ctx, workspaceId, invoiceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetPaymentsForInvoiceResponse(rsp)
|
|
}
|
|
|
|
// CreateInvoicePaymentWithBodyWithResponse request with arbitrary body returning *CreateInvoicePaymentResponse
|
|
func (c *ClientWithResponses) CreateInvoicePaymentWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoicePaymentResponse, error) {
|
|
rsp, err := c.CreateInvoicePaymentWithBody(ctx, workspaceId, invoiceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateInvoicePaymentResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateInvoicePaymentWithResponse(ctx context.Context, workspaceId string, invoiceId string, body CreateInvoicePaymentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoicePaymentResponse, error) {
|
|
rsp, err := c.CreateInvoicePayment(ctx, workspaceId, invoiceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateInvoicePaymentResponse(rsp)
|
|
}
|
|
|
|
// DeletePaymentByIdWithResponse request returning *DeletePaymentByIdResponse
|
|
func (c *ClientWithResponses) DeletePaymentByIdWithResponse(ctx context.Context, workspaceId string, invoiceId string, paymentId string, reqEditors ...RequestEditorFn) (*DeletePaymentByIdResponse, error) {
|
|
rsp, err := c.DeletePaymentById(ctx, workspaceId, invoiceId, paymentId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeletePaymentByIdResponse(rsp)
|
|
}
|
|
|
|
// ChangeInvoiceStatusWithBodyWithResponse request with arbitrary body returning *ChangeInvoiceStatusResponse
|
|
func (c *ClientWithResponses) ChangeInvoiceStatusWithBodyWithResponse(ctx context.Context, workspaceId string, invoiceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ChangeInvoiceStatusResponse, error) {
|
|
rsp, err := c.ChangeInvoiceStatusWithBody(ctx, workspaceId, invoiceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseChangeInvoiceStatusResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) ChangeInvoiceStatusWithResponse(ctx context.Context, workspaceId string, invoiceId string, body ChangeInvoiceStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*ChangeInvoiceStatusResponse, error) {
|
|
rsp, err := c.ChangeInvoiceStatus(ctx, workspaceId, invoiceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseChangeInvoiceStatusResponse(rsp)
|
|
}
|
|
|
|
// AuthorizationCheckWithResponse request returning *AuthorizationCheckResponse
|
|
func (c *ClientWithResponses) AuthorizationCheckWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*AuthorizationCheckResponse, error) {
|
|
rsp, err := c.AuthorizationCheck(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAuthorizationCheckResponse(rsp)
|
|
}
|
|
|
|
// IsAvailableWithResponse request returning *IsAvailableResponse
|
|
func (c *ClientWithResponses) IsAvailableWithResponse(ctx context.Context, workspaceId string, params *IsAvailableParams, reqEditors ...RequestEditorFn) (*IsAvailableResponse, error) {
|
|
rsp, err := c.IsAvailable(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseIsAvailableResponse(rsp)
|
|
}
|
|
|
|
// IsAvailable1WithResponse request returning *IsAvailable1Response
|
|
func (c *ClientWithResponses) IsAvailable1WithResponse(ctx context.Context, workspaceId string, userId string, params *IsAvailable1Params, reqEditors ...RequestEditorFn) (*IsAvailable1Response, error) {
|
|
rsp, err := c.IsAvailable1(ctx, workspaceId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseIsAvailable1Response(rsp)
|
|
}
|
|
|
|
// GeneratePinCodeWithResponse request returning *GeneratePinCodeResponse
|
|
func (c *ClientWithResponses) GeneratePinCodeWithResponse(ctx context.Context, workspaceId string, params *GeneratePinCodeParams, reqEditors ...RequestEditorFn) (*GeneratePinCodeResponse, error) {
|
|
rsp, err := c.GeneratePinCode(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGeneratePinCodeResponse(rsp)
|
|
}
|
|
|
|
// GeneratePinCodeForUserWithResponse request returning *GeneratePinCodeForUserResponse
|
|
func (c *ClientWithResponses) GeneratePinCodeForUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GeneratePinCodeForUserResponse, error) {
|
|
rsp, err := c.GeneratePinCodeForUser(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGeneratePinCodeForUserResponse(rsp)
|
|
}
|
|
|
|
// GetUserPinCodeWithResponse request returning *GetUserPinCodeResponse
|
|
func (c *ClientWithResponses) GetUserPinCodeWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetUserPinCodeResponse, error) {
|
|
rsp, err := c.GetUserPinCode(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserPinCodeResponse(rsp)
|
|
}
|
|
|
|
// UpdatePinCodeWithBodyWithResponse request with arbitrary body returning *UpdatePinCodeResponse
|
|
func (c *ClientWithResponses) UpdatePinCodeWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePinCodeResponse, error) {
|
|
rsp, err := c.UpdatePinCodeWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdatePinCodeResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdatePinCodeWithResponse(ctx context.Context, workspaceId string, userId string, body UpdatePinCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePinCodeResponse, error) {
|
|
rsp, err := c.UpdatePinCode(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdatePinCodeResponse(rsp)
|
|
}
|
|
|
|
// GetKiosksOfWorkspaceWithResponse request returning *GetKiosksOfWorkspaceResponse
|
|
func (c *ClientWithResponses) GetKiosksOfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetKiosksOfWorkspaceParams, reqEditors ...RequestEditorFn) (*GetKiosksOfWorkspaceResponse, error) {
|
|
rsp, err := c.GetKiosksOfWorkspace(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetKiosksOfWorkspaceResponse(rsp)
|
|
}
|
|
|
|
// Create15WithBodyWithResponse request with arbitrary body returning *Create15Response
|
|
func (c *ClientWithResponses) Create15WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create15Response, error) {
|
|
rsp, err := c.Create15WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate15Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create15WithResponse(ctx context.Context, workspaceId string, body Create15JSONRequestBody, reqEditors ...RequestEditorFn) (*Create15Response, error) {
|
|
rsp, err := c.Create15(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate15Response(rsp)
|
|
}
|
|
|
|
// UpdateBreakDefaultsWithBodyWithResponse request with arbitrary body returning *UpdateBreakDefaultsResponse
|
|
func (c *ClientWithResponses) UpdateBreakDefaultsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBreakDefaultsResponse, error) {
|
|
rsp, err := c.UpdateBreakDefaultsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateBreakDefaultsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateBreakDefaultsWithResponse(ctx context.Context, workspaceId string, body UpdateBreakDefaultsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBreakDefaultsResponse, error) {
|
|
rsp, err := c.UpdateBreakDefaults(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateBreakDefaultsResponse(rsp)
|
|
}
|
|
|
|
// GetTotalCountOfKiosksOnWorkspaceWithResponse request returning *GetTotalCountOfKiosksOnWorkspaceResponse
|
|
func (c *ClientWithResponses) GetTotalCountOfKiosksOnWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetTotalCountOfKiosksOnWorkspaceResponse, error) {
|
|
rsp, err := c.GetTotalCountOfKiosksOnWorkspace(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTotalCountOfKiosksOnWorkspaceResponse(rsp)
|
|
}
|
|
|
|
// UpdateDefaultsWithBodyWithResponse request with arbitrary body returning *UpdateDefaultsResponse
|
|
func (c *ClientWithResponses) UpdateDefaultsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDefaultsResponse, error) {
|
|
rsp, err := c.UpdateDefaultsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateDefaultsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateDefaultsWithResponse(ctx context.Context, workspaceId string, body UpdateDefaultsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDefaultsResponse, error) {
|
|
rsp, err := c.UpdateDefaults(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateDefaultsResponse(rsp)
|
|
}
|
|
|
|
// HasActiveKiosksWithResponse request returning *HasActiveKiosksResponse
|
|
func (c *ClientWithResponses) HasActiveKiosksWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HasActiveKiosksResponse, error) {
|
|
rsp, err := c.HasActiveKiosks(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseHasActiveKiosksResponse(rsp)
|
|
}
|
|
|
|
// GetWithProjectWithBodyWithResponse request with arbitrary body returning *GetWithProjectResponse
|
|
func (c *ClientWithResponses) GetWithProjectWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWithProjectResponse, error) {
|
|
rsp, err := c.GetWithProjectWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetWithProjectResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetWithProjectWithResponse(ctx context.Context, workspaceId string, body GetWithProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*GetWithProjectResponse, error) {
|
|
rsp, err := c.GetWithProject(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetWithProjectResponse(rsp)
|
|
}
|
|
|
|
// GetWithTaskWithBodyWithResponse request with arbitrary body returning *GetWithTaskResponse
|
|
func (c *ClientWithResponses) GetWithTaskWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetWithTaskResponse, error) {
|
|
rsp, err := c.GetWithTaskWithBody(ctx, workspaceId, projectId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetWithTaskResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetWithTaskWithResponse(ctx context.Context, workspaceId string, projectId string, body GetWithTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*GetWithTaskResponse, error) {
|
|
rsp, err := c.GetWithTask(ctx, workspaceId, projectId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetWithTaskResponse(rsp)
|
|
}
|
|
|
|
// GetForReportFilterWithResponse request returning *GetForReportFilterResponse
|
|
func (c *ClientWithResponses) GetForReportFilterWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetForReportFilterResponse, error) {
|
|
rsp, err := c.GetForReportFilter(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetForReportFilterResponse(rsp)
|
|
}
|
|
|
|
// GetWithoutDefaultsWithResponse request returning *GetWithoutDefaultsResponse
|
|
func (c *ClientWithResponses) GetWithoutDefaultsWithResponse(ctx context.Context, workspaceId string, params *GetWithoutDefaultsParams, reqEditors ...RequestEditorFn) (*GetWithoutDefaultsResponse, error) {
|
|
rsp, err := c.GetWithoutDefaults(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetWithoutDefaultsResponse(rsp)
|
|
}
|
|
|
|
// DeleteKioskWithResponse request returning *DeleteKioskResponse
|
|
func (c *ClientWithResponses) DeleteKioskWithResponse(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*DeleteKioskResponse, error) {
|
|
rsp, err := c.DeleteKiosk(ctx, workspaceId, kioskId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteKioskResponse(rsp)
|
|
}
|
|
|
|
// GetKioskByIdWithResponse request returning *GetKioskByIdResponse
|
|
func (c *ClientWithResponses) GetKioskByIdWithResponse(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*GetKioskByIdResponse, error) {
|
|
rsp, err := c.GetKioskById(ctx, workspaceId, kioskId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetKioskByIdResponse(rsp)
|
|
}
|
|
|
|
// Update8WithBodyWithResponse request with arbitrary body returning *Update8Response
|
|
func (c *ClientWithResponses) Update8WithBodyWithResponse(ctx context.Context, workspaceId string, kioskId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update8Response, error) {
|
|
rsp, err := c.Update8WithBody(ctx, workspaceId, kioskId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate8Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Update8WithResponse(ctx context.Context, workspaceId string, kioskId string, body Update8JSONRequestBody, reqEditors ...RequestEditorFn) (*Update8Response, error) {
|
|
rsp, err := c.Update8(ctx, workspaceId, kioskId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate8Response(rsp)
|
|
}
|
|
|
|
// ExportAssigneesWithResponse request returning *ExportAssigneesResponse
|
|
func (c *ClientWithResponses) ExportAssigneesWithResponse(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*ExportAssigneesResponse, error) {
|
|
rsp, err := c.ExportAssignees(ctx, workspaceId, kioskId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseExportAssigneesResponse(rsp)
|
|
}
|
|
|
|
// HasEntryInProgressWithResponse request returning *HasEntryInProgressResponse
|
|
func (c *ClientWithResponses) HasEntryInProgressWithResponse(ctx context.Context, workspaceId string, kioskId string, reqEditors ...RequestEditorFn) (*HasEntryInProgressResponse, error) {
|
|
rsp, err := c.HasEntryInProgress(ctx, workspaceId, kioskId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseHasEntryInProgressResponse(rsp)
|
|
}
|
|
|
|
// UpdateStatusWithBodyWithResponse request with arbitrary body returning *UpdateStatusResponse
|
|
func (c *ClientWithResponses) UpdateStatusWithBodyWithResponse(ctx context.Context, workspaceId string, kioskId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStatusResponse, error) {
|
|
rsp, err := c.UpdateStatusWithBody(ctx, workspaceId, kioskId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateStatusResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateStatusWithResponse(ctx context.Context, workspaceId string, kioskId string, body UpdateStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStatusResponse, error) {
|
|
rsp, err := c.UpdateStatus(ctx, workspaceId, kioskId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateStatusResponse(rsp)
|
|
}
|
|
|
|
// AcknowledgeLegacyPlanNotificationsWithResponse request returning *AcknowledgeLegacyPlanNotificationsResponse
|
|
func (c *ClientWithResponses) AcknowledgeLegacyPlanNotificationsWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*AcknowledgeLegacyPlanNotificationsResponse, error) {
|
|
rsp, err := c.AcknowledgeLegacyPlanNotifications(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAcknowledgeLegacyPlanNotificationsResponse(rsp)
|
|
}
|
|
|
|
// GetLegacyPlanUpgradeDataWithResponse request returning *GetLegacyPlanUpgradeDataResponse
|
|
func (c *ClientWithResponses) GetLegacyPlanUpgradeDataWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetLegacyPlanUpgradeDataResponse, error) {
|
|
rsp, err := c.GetLegacyPlanUpgradeData(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetLegacyPlanUpgradeDataResponse(rsp)
|
|
}
|
|
|
|
// AddLimitedUsersWithBodyWithResponse request with arbitrary body returning *AddLimitedUsersResponse
|
|
func (c *ClientWithResponses) AddLimitedUsersWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddLimitedUsersResponse, error) {
|
|
rsp, err := c.AddLimitedUsersWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddLimitedUsersResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) AddLimitedUsersWithResponse(ctx context.Context, workspaceId string, body AddLimitedUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*AddLimitedUsersResponse, error) {
|
|
rsp, err := c.AddLimitedUsers(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddLimitedUsersResponse(rsp)
|
|
}
|
|
|
|
// GetLimitedUsersCountWithResponse request returning *GetLimitedUsersCountResponse
|
|
func (c *ClientWithResponses) GetLimitedUsersCountWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetLimitedUsersCountResponse, error) {
|
|
rsp, err := c.GetLimitedUsersCount(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetLimitedUsersCountResponse(rsp)
|
|
}
|
|
|
|
// GetMemberProfileWithResponse request returning *GetMemberProfileResponse
|
|
func (c *ClientWithResponses) GetMemberProfileWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetMemberProfileResponse, error) {
|
|
rsp, err := c.GetMemberProfile(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetMemberProfileResponse(rsp)
|
|
}
|
|
|
|
// UpdateMemberProfileWithBodyWithResponse request with arbitrary body returning *UpdateMemberProfileResponse
|
|
func (c *ClientWithResponses) UpdateMemberProfileWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberProfileResponse, error) {
|
|
rsp, err := c.UpdateMemberProfileWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateMemberProfileResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateMemberProfileWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateMemberProfileJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberProfileResponse, error) {
|
|
rsp, err := c.UpdateMemberProfile(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateMemberProfileResponse(rsp)
|
|
}
|
|
|
|
// UpdateMemberProfileWithAdditionalDataWithBodyWithResponse request with arbitrary body returning *UpdateMemberProfileWithAdditionalDataResponse
|
|
func (c *ClientWithResponses) UpdateMemberProfileWithAdditionalDataWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberProfileWithAdditionalDataResponse, error) {
|
|
rsp, err := c.UpdateMemberProfileWithAdditionalDataWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateMemberProfileWithAdditionalDataResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateMemberProfileWithAdditionalDataWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateMemberProfileWithAdditionalDataJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberProfileWithAdditionalDataResponse, error) {
|
|
rsp, err := c.UpdateMemberProfileWithAdditionalData(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateMemberProfileWithAdditionalDataResponse(rsp)
|
|
}
|
|
|
|
// UpdateMemberSettingsWithBodyWithResponse request with arbitrary body returning *UpdateMemberSettingsResponse
|
|
func (c *ClientWithResponses) UpdateMemberSettingsWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberSettingsResponse, error) {
|
|
rsp, err := c.UpdateMemberSettingsWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateMemberSettingsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateMemberSettingsWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateMemberSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberSettingsResponse, error) {
|
|
rsp, err := c.UpdateMemberSettings(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateMemberSettingsResponse(rsp)
|
|
}
|
|
|
|
// GetWeekStartWithResponse request returning *GetWeekStartResponse
|
|
func (c *ClientWithResponses) GetWeekStartWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetWeekStartResponse, error) {
|
|
rsp, err := c.GetWeekStart(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetWeekStartResponse(rsp)
|
|
}
|
|
|
|
// UpdateMemberWorkingDaysAndCapacityWithBodyWithResponse request with arbitrary body returning *UpdateMemberWorkingDaysAndCapacityResponse
|
|
func (c *ClientWithResponses) UpdateMemberWorkingDaysAndCapacityWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMemberWorkingDaysAndCapacityResponse, error) {
|
|
rsp, err := c.UpdateMemberWorkingDaysAndCapacityWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateMemberWorkingDaysAndCapacityResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateMemberWorkingDaysAndCapacityWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateMemberWorkingDaysAndCapacityJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMemberWorkingDaysAndCapacityResponse, error) {
|
|
rsp, err := c.UpdateMemberWorkingDaysAndCapacity(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateMemberWorkingDaysAndCapacityResponse(rsp)
|
|
}
|
|
|
|
// GetMembersCountWithResponse request returning *GetMembersCountResponse
|
|
func (c *ClientWithResponses) GetMembersCountWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetMembersCountResponse, error) {
|
|
rsp, err := c.GetMembersCount(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetMembersCountResponse(rsp)
|
|
}
|
|
|
|
// FindNotInvitedEmailsInWithBodyWithResponse request with arbitrary body returning *FindNotInvitedEmailsInResponse
|
|
func (c *ClientWithResponses) FindNotInvitedEmailsInWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FindNotInvitedEmailsInResponse, error) {
|
|
rsp, err := c.FindNotInvitedEmailsInWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseFindNotInvitedEmailsInResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) FindNotInvitedEmailsInWithResponse(ctx context.Context, workspaceId string, body FindNotInvitedEmailsInJSONRequestBody, reqEditors ...RequestEditorFn) (*FindNotInvitedEmailsInResponse, error) {
|
|
rsp, err := c.FindNotInvitedEmailsIn(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseFindNotInvitedEmailsInResponse(rsp)
|
|
}
|
|
|
|
// GetOrganizationWithResponse request returning *GetOrganizationResponse
|
|
func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error) {
|
|
rsp, err := c.GetOrganization(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetOrganizationResponse(rsp)
|
|
}
|
|
|
|
// Create14WithBodyWithResponse request with arbitrary body returning *Create14Response
|
|
func (c *ClientWithResponses) Create14WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create14Response, error) {
|
|
rsp, err := c.Create14WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate14Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create14WithResponse(ctx context.Context, workspaceId string, body Create14JSONRequestBody, reqEditors ...RequestEditorFn) (*Create14Response, error) {
|
|
rsp, err := c.Create14(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate14Response(rsp)
|
|
}
|
|
|
|
// GetOrganizationNameWithResponse request returning *GetOrganizationNameResponse
|
|
func (c *ClientWithResponses) GetOrganizationNameWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetOrganizationNameResponse, error) {
|
|
rsp, err := c.GetOrganizationName(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetOrganizationNameResponse(rsp)
|
|
}
|
|
|
|
// CheckAvailabilityOfDomainNameWithResponse request returning *CheckAvailabilityOfDomainNameResponse
|
|
func (c *ClientWithResponses) CheckAvailabilityOfDomainNameWithResponse(ctx context.Context, workspaceId string, params *CheckAvailabilityOfDomainNameParams, reqEditors ...RequestEditorFn) (*CheckAvailabilityOfDomainNameResponse, error) {
|
|
rsp, err := c.CheckAvailabilityOfDomainName(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCheckAvailabilityOfDomainNameResponse(rsp)
|
|
}
|
|
|
|
// DeleteOrganizationWithResponse request returning *DeleteOrganizationResponse
|
|
func (c *ClientWithResponses) DeleteOrganizationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOrganizationResponse, error) {
|
|
rsp, err := c.DeleteOrganization(ctx, workspaceId, organizationId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteOrganizationResponse(rsp)
|
|
}
|
|
|
|
// UpdateOrganizationWithBodyWithResponse request with arbitrary body returning *UpdateOrganizationResponse
|
|
func (c *ClientWithResponses) UpdateOrganizationWithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) {
|
|
rsp, err := c.UpdateOrganizationWithBody(ctx, workspaceId, organizationId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateOrganizationResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateOrganizationWithResponse(ctx context.Context, workspaceId string, organizationId string, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error) {
|
|
rsp, err := c.UpdateOrganization(ctx, workspaceId, organizationId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateOrganizationResponse(rsp)
|
|
}
|
|
|
|
// GetLoginSettingsWithResponse request returning *GetLoginSettingsResponse
|
|
func (c *ClientWithResponses) GetLoginSettingsWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*GetLoginSettingsResponse, error) {
|
|
rsp, err := c.GetLoginSettings(ctx, workspaceId, organizationId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetLoginSettingsResponse(rsp)
|
|
}
|
|
|
|
// DeleteOAuth2ConfigurationWithResponse request returning *DeleteOAuth2ConfigurationResponse
|
|
func (c *ClientWithResponses) DeleteOAuth2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*DeleteOAuth2ConfigurationResponse, error) {
|
|
rsp, err := c.DeleteOAuth2Configuration(ctx, workspaceId, organizationId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteOAuth2ConfigurationResponse(rsp)
|
|
}
|
|
|
|
// GetOrganizationOAuth2ConfigurationWithResponse request returning *GetOrganizationOAuth2ConfigurationResponse
|
|
func (c *ClientWithResponses) GetOrganizationOAuth2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*GetOrganizationOAuth2ConfigurationResponse, error) {
|
|
rsp, err := c.GetOrganizationOAuth2Configuration(ctx, workspaceId, organizationId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetOrganizationOAuth2ConfigurationResponse(rsp)
|
|
}
|
|
|
|
// UpdateOAuth2Configuration1WithBodyWithResponse request with arbitrary body returning *UpdateOAuth2Configuration1Response
|
|
func (c *ClientWithResponses) UpdateOAuth2Configuration1WithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOAuth2Configuration1Response, error) {
|
|
rsp, err := c.UpdateOAuth2Configuration1WithBody(ctx, workspaceId, organizationId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateOAuth2Configuration1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateOAuth2Configuration1WithResponse(ctx context.Context, workspaceId string, organizationId string, body UpdateOAuth2Configuration1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOAuth2Configuration1Response, error) {
|
|
rsp, err := c.UpdateOAuth2Configuration1(ctx, workspaceId, organizationId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateOAuth2Configuration1Response(rsp)
|
|
}
|
|
|
|
// TestOAuth2ConfigurationWithBodyWithResponse request with arbitrary body returning *TestOAuth2ConfigurationResponse
|
|
func (c *ClientWithResponses) TestOAuth2ConfigurationWithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestOAuth2ConfigurationResponse, error) {
|
|
rsp, err := c.TestOAuth2ConfigurationWithBody(ctx, workspaceId, organizationId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseTestOAuth2ConfigurationResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) TestOAuth2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, body TestOAuth2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestOAuth2ConfigurationResponse, error) {
|
|
rsp, err := c.TestOAuth2Configuration(ctx, workspaceId, organizationId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseTestOAuth2ConfigurationResponse(rsp)
|
|
}
|
|
|
|
// DeleteSAML2ConfigurationWithResponse request returning *DeleteSAML2ConfigurationResponse
|
|
func (c *ClientWithResponses) DeleteSAML2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*DeleteSAML2ConfigurationResponse, error) {
|
|
rsp, err := c.DeleteSAML2Configuration(ctx, workspaceId, organizationId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteSAML2ConfigurationResponse(rsp)
|
|
}
|
|
|
|
// GetOrganizationSAML2ConfigurationWithResponse request returning *GetOrganizationSAML2ConfigurationResponse
|
|
func (c *ClientWithResponses) GetOrganizationSAML2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, reqEditors ...RequestEditorFn) (*GetOrganizationSAML2ConfigurationResponse, error) {
|
|
rsp, err := c.GetOrganizationSAML2Configuration(ctx, workspaceId, organizationId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetOrganizationSAML2ConfigurationResponse(rsp)
|
|
}
|
|
|
|
// UpdateSAML2ConfigurationWithBodyWithResponse request with arbitrary body returning *UpdateSAML2ConfigurationResponse
|
|
func (c *ClientWithResponses) UpdateSAML2ConfigurationWithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSAML2ConfigurationResponse, error) {
|
|
rsp, err := c.UpdateSAML2ConfigurationWithBody(ctx, workspaceId, organizationId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateSAML2ConfigurationResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateSAML2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, body UpdateSAML2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSAML2ConfigurationResponse, error) {
|
|
rsp, err := c.UpdateSAML2Configuration(ctx, workspaceId, organizationId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateSAML2ConfigurationResponse(rsp)
|
|
}
|
|
|
|
// TestSAML2ConfigurationWithBodyWithResponse request with arbitrary body returning *TestSAML2ConfigurationResponse
|
|
func (c *ClientWithResponses) TestSAML2ConfigurationWithBodyWithResponse(ctx context.Context, workspaceId string, organizationId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TestSAML2ConfigurationResponse, error) {
|
|
rsp, err := c.TestSAML2ConfigurationWithBody(ctx, workspaceId, organizationId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseTestSAML2ConfigurationResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) TestSAML2ConfigurationWithResponse(ctx context.Context, workspaceId string, organizationId string, body TestSAML2ConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*TestSAML2ConfigurationResponse, error) {
|
|
rsp, err := c.TestSAML2Configuration(ctx, workspaceId, organizationId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseTestSAML2ConfigurationResponse(rsp)
|
|
}
|
|
|
|
// GetAllOrganizationsOfUserWithResponse request returning *GetAllOrganizationsOfUserResponse
|
|
func (c *ClientWithResponses) GetAllOrganizationsOfUserWithResponse(ctx context.Context, workspaceId string, userId string, params *GetAllOrganizationsOfUserParams, reqEditors ...RequestEditorFn) (*GetAllOrganizationsOfUserResponse, error) {
|
|
rsp, err := c.GetAllOrganizationsOfUser(ctx, workspaceId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetAllOrganizationsOfUserResponse(rsp)
|
|
}
|
|
|
|
// GetWorkspaceOwnerWithResponse request returning *GetWorkspaceOwnerResponse
|
|
func (c *ClientWithResponses) GetWorkspaceOwnerWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkspaceOwnerResponse, error) {
|
|
rsp, err := c.GetWorkspaceOwner(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetWorkspaceOwnerResponse(rsp)
|
|
}
|
|
|
|
// TransferOwnershipWithBodyWithResponse request with arbitrary body returning *TransferOwnershipResponse
|
|
func (c *ClientWithResponses) TransferOwnershipWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferOwnershipResponse, error) {
|
|
rsp, err := c.TransferOwnershipWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseTransferOwnershipResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) TransferOwnershipWithResponse(ctx context.Context, workspaceId string, body TransferOwnershipJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferOwnershipResponse, error) {
|
|
rsp, err := c.TransferOwnership(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseTransferOwnershipResponse(rsp)
|
|
}
|
|
|
|
// GetWorkspaceOwnerTimeZoneWithResponse request returning *GetWorkspaceOwnerTimeZoneResponse
|
|
func (c *ClientWithResponses) GetWorkspaceOwnerTimeZoneWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetWorkspaceOwnerTimeZoneResponse, error) {
|
|
rsp, err := c.GetWorkspaceOwnerTimeZone(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetWorkspaceOwnerTimeZoneResponse(rsp)
|
|
}
|
|
|
|
// CancelSubscriptionWithBodyWithResponse request with arbitrary body returning *CancelSubscriptionResponse
|
|
func (c *ClientWithResponses) CancelSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error) {
|
|
rsp, err := c.CancelSubscriptionWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCancelSubscriptionResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CancelSubscriptionWithResponse(ctx context.Context, workspaceId string, body CancelSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CancelSubscriptionResponse, error) {
|
|
rsp, err := c.CancelSubscription(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCancelSubscriptionResponse(rsp)
|
|
}
|
|
|
|
// ConfirmPaymentWithResponse request returning *ConfirmPaymentResponse
|
|
func (c *ClientWithResponses) ConfirmPaymentWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*ConfirmPaymentResponse, error) {
|
|
rsp, err := c.ConfirmPayment(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseConfirmPaymentResponse(rsp)
|
|
}
|
|
|
|
// GetCustomerInfoWithResponse request returning *GetCustomerInfoResponse
|
|
func (c *ClientWithResponses) GetCustomerInfoWithResponse(ctx context.Context, workspaceId string, params *GetCustomerInfoParams, reqEditors ...RequestEditorFn) (*GetCustomerInfoResponse, error) {
|
|
rsp, err := c.GetCustomerInfo(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetCustomerInfoResponse(rsp)
|
|
}
|
|
|
|
// CreateCustomerWithBodyWithResponse request with arbitrary body returning *CreateCustomerResponse
|
|
func (c *ClientWithResponses) CreateCustomerWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error) {
|
|
rsp, err := c.CreateCustomerWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateCustomerResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateCustomerWithResponse(ctx context.Context, workspaceId string, body CreateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCustomerResponse, error) {
|
|
rsp, err := c.CreateCustomer(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateCustomerResponse(rsp)
|
|
}
|
|
|
|
// UpdateCustomerWithBodyWithResponse request with arbitrary body returning *UpdateCustomerResponse
|
|
func (c *ClientWithResponses) UpdateCustomerWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) {
|
|
rsp, err := c.UpdateCustomerWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateCustomerResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateCustomerWithResponse(ctx context.Context, workspaceId string, body UpdateCustomerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomerResponse, error) {
|
|
rsp, err := c.UpdateCustomer(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateCustomerResponse(rsp)
|
|
}
|
|
|
|
// EditInvoiceInformationWithBodyWithResponse request with arbitrary body returning *EditInvoiceInformationResponse
|
|
func (c *ClientWithResponses) EditInvoiceInformationWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditInvoiceInformationResponse, error) {
|
|
rsp, err := c.EditInvoiceInformationWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditInvoiceInformationResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) EditInvoiceInformationWithResponse(ctx context.Context, workspaceId string, body EditInvoiceInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*EditInvoiceInformationResponse, error) {
|
|
rsp, err := c.EditInvoiceInformation(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditInvoiceInformationResponse(rsp)
|
|
}
|
|
|
|
// EditPaymentInformationWithBodyWithResponse request with arbitrary body returning *EditPaymentInformationResponse
|
|
func (c *ClientWithResponses) EditPaymentInformationWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditPaymentInformationResponse, error) {
|
|
rsp, err := c.EditPaymentInformationWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditPaymentInformationResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) EditPaymentInformationWithResponse(ctx context.Context, workspaceId string, body EditPaymentInformationJSONRequestBody, reqEditors ...RequestEditorFn) (*EditPaymentInformationResponse, error) {
|
|
rsp, err := c.EditPaymentInformation(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditPaymentInformationResponse(rsp)
|
|
}
|
|
|
|
// ExtendTrialWithResponse request returning *ExtendTrialResponse
|
|
func (c *ClientWithResponses) ExtendTrialWithResponse(ctx context.Context, workspaceId string, params *ExtendTrialParams, reqEditors ...RequestEditorFn) (*ExtendTrialResponse, error) {
|
|
rsp, err := c.ExtendTrial(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseExtendTrialResponse(rsp)
|
|
}
|
|
|
|
// GetFeatureSubscriptionsWithResponse request returning *GetFeatureSubscriptionsResponse
|
|
func (c *ClientWithResponses) GetFeatureSubscriptionsWithResponse(ctx context.Context, workspaceId string, params *GetFeatureSubscriptionsParams, reqEditors ...RequestEditorFn) (*GetFeatureSubscriptionsResponse, error) {
|
|
rsp, err := c.GetFeatureSubscriptions(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetFeatureSubscriptionsResponse(rsp)
|
|
}
|
|
|
|
// InitialUpgradeWithBodyWithResponse request with arbitrary body returning *InitialUpgradeResponse
|
|
func (c *ClientWithResponses) InitialUpgradeWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InitialUpgradeResponse, error) {
|
|
rsp, err := c.InitialUpgradeWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseInitialUpgradeResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) InitialUpgradeWithResponse(ctx context.Context, workspaceId string, body InitialUpgradeJSONRequestBody, reqEditors ...RequestEditorFn) (*InitialUpgradeResponse, error) {
|
|
rsp, err := c.InitialUpgrade(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseInitialUpgradeResponse(rsp)
|
|
}
|
|
|
|
// GetInvoiceInfoWithResponse request returning *GetInvoiceInfoResponse
|
|
func (c *ClientWithResponses) GetInvoiceInfoWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetInvoiceInfoResponse, error) {
|
|
rsp, err := c.GetInvoiceInfo(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInvoiceInfoResponse(rsp)
|
|
}
|
|
|
|
// GetInvoicesWithResponse request returning *GetInvoicesResponse
|
|
func (c *ClientWithResponses) GetInvoicesWithResponse(ctx context.Context, workspaceId string, params *GetInvoicesParams, reqEditors ...RequestEditorFn) (*GetInvoicesResponse, error) {
|
|
rsp, err := c.GetInvoices(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInvoicesResponse(rsp)
|
|
}
|
|
|
|
// GetInvoicesCountWithResponse request returning *GetInvoicesCountResponse
|
|
func (c *ClientWithResponses) GetInvoicesCountWithResponse(ctx context.Context, workspaceId string, params *GetInvoicesCountParams, reqEditors ...RequestEditorFn) (*GetInvoicesCountResponse, error) {
|
|
rsp, err := c.GetInvoicesCount(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInvoicesCountResponse(rsp)
|
|
}
|
|
|
|
// GetLastOpenInvoiceWithResponse request returning *GetLastOpenInvoiceResponse
|
|
func (c *ClientWithResponses) GetLastOpenInvoiceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetLastOpenInvoiceResponse, error) {
|
|
rsp, err := c.GetLastOpenInvoice(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetLastOpenInvoiceResponse(rsp)
|
|
}
|
|
|
|
// GetInvoicesListWithResponse request returning *GetInvoicesListResponse
|
|
func (c *ClientWithResponses) GetInvoicesListWithResponse(ctx context.Context, workspaceId string, params *GetInvoicesListParams, reqEditors ...RequestEditorFn) (*GetInvoicesListResponse, error) {
|
|
rsp, err := c.GetInvoicesList(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetInvoicesListResponse(rsp)
|
|
}
|
|
|
|
// GetPaymentDateWithResponse request returning *GetPaymentDateResponse
|
|
func (c *ClientWithResponses) GetPaymentDateWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetPaymentDateResponse, error) {
|
|
rsp, err := c.GetPaymentDate(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetPaymentDateResponse(rsp)
|
|
}
|
|
|
|
// GetPaymentInfoWithResponse request returning *GetPaymentInfoResponse
|
|
func (c *ClientWithResponses) GetPaymentInfoWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetPaymentInfoResponse, error) {
|
|
rsp, err := c.GetPaymentInfo(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetPaymentInfoResponse(rsp)
|
|
}
|
|
|
|
// CreateSetupIntentForPaymentMethodWithBodyWithResponse request with arbitrary body returning *CreateSetupIntentForPaymentMethodResponse
|
|
func (c *ClientWithResponses) CreateSetupIntentForPaymentMethodWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSetupIntentForPaymentMethodResponse, error) {
|
|
rsp, err := c.CreateSetupIntentForPaymentMethodWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateSetupIntentForPaymentMethodResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateSetupIntentForPaymentMethodWithResponse(ctx context.Context, workspaceId string, body CreateSetupIntentForPaymentMethodJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSetupIntentForPaymentMethodResponse, error) {
|
|
rsp, err := c.CreateSetupIntentForPaymentMethod(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateSetupIntentForPaymentMethodResponse(rsp)
|
|
}
|
|
|
|
// PreviewUpgradeWithResponse request returning *PreviewUpgradeResponse
|
|
func (c *ClientWithResponses) PreviewUpgradeWithResponse(ctx context.Context, workspaceId string, params *PreviewUpgradeParams, reqEditors ...RequestEditorFn) (*PreviewUpgradeResponse, error) {
|
|
rsp, err := c.PreviewUpgrade(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePreviewUpgradeResponse(rsp)
|
|
}
|
|
|
|
// ReactivateSubscriptionWithResponse request returning *ReactivateSubscriptionResponse
|
|
func (c *ClientWithResponses) ReactivateSubscriptionWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*ReactivateSubscriptionResponse, error) {
|
|
rsp, err := c.ReactivateSubscription(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseReactivateSubscriptionResponse(rsp)
|
|
}
|
|
|
|
// GetScheduledInvoiceInfoWithResponse request returning *GetScheduledInvoiceInfoResponse
|
|
func (c *ClientWithResponses) GetScheduledInvoiceInfoWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetScheduledInvoiceInfoResponse, error) {
|
|
rsp, err := c.GetScheduledInvoiceInfo(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetScheduledInvoiceInfoResponse(rsp)
|
|
}
|
|
|
|
// UpdateUserSeatsWithBodyWithResponse request with arbitrary body returning *UpdateUserSeatsResponse
|
|
func (c *ClientWithResponses) UpdateUserSeatsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserSeatsResponse, error) {
|
|
rsp, err := c.UpdateUserSeatsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateUserSeatsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateUserSeatsWithResponse(ctx context.Context, workspaceId string, body UpdateUserSeatsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserSeatsResponse, error) {
|
|
rsp, err := c.UpdateUserSeats(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateUserSeatsResponse(rsp)
|
|
}
|
|
|
|
// CreateSetupIntentForInitialSubscriptionWithBodyWithResponse request with arbitrary body returning *CreateSetupIntentForInitialSubscriptionResponse
|
|
func (c *ClientWithResponses) CreateSetupIntentForInitialSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSetupIntentForInitialSubscriptionResponse, error) {
|
|
rsp, err := c.CreateSetupIntentForInitialSubscriptionWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateSetupIntentForInitialSubscriptionResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateSetupIntentForInitialSubscriptionWithResponse(ctx context.Context, workspaceId string, body CreateSetupIntentForInitialSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSetupIntentForInitialSubscriptionResponse, error) {
|
|
rsp, err := c.CreateSetupIntentForInitialSubscription(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateSetupIntentForInitialSubscriptionResponse(rsp)
|
|
}
|
|
|
|
// CreateSubscriptionWithBodyWithResponse request with arbitrary body returning *CreateSubscriptionResponse
|
|
func (c *ClientWithResponses) CreateSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) {
|
|
rsp, err := c.CreateSubscriptionWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateSubscriptionResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateSubscriptionWithResponse(ctx context.Context, workspaceId string, body CreateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSubscriptionResponse, error) {
|
|
rsp, err := c.CreateSubscription(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateSubscriptionResponse(rsp)
|
|
}
|
|
|
|
// UpdateSubscriptionWithBodyWithResponse request with arbitrary body returning *UpdateSubscriptionResponse
|
|
func (c *ClientWithResponses) UpdateSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) {
|
|
rsp, err := c.UpdateSubscriptionWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateSubscriptionResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateSubscriptionWithResponse(ctx context.Context, workspaceId string, body UpdateSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSubscriptionResponse, error) {
|
|
rsp, err := c.UpdateSubscription(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateSubscriptionResponse(rsp)
|
|
}
|
|
|
|
// UpgradePreCheckWithResponse request returning *UpgradePreCheckResponse
|
|
func (c *ClientWithResponses) UpgradePreCheckWithResponse(ctx context.Context, workspaceId string, params *UpgradePreCheckParams, reqEditors ...RequestEditorFn) (*UpgradePreCheckResponse, error) {
|
|
rsp, err := c.UpgradePreCheck(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpgradePreCheckResponse(rsp)
|
|
}
|
|
|
|
// DeleteSubscriptionWithBodyWithResponse request with arbitrary body returning *DeleteSubscriptionResponse
|
|
func (c *ClientWithResponses) DeleteSubscriptionWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteSubscriptionResponse, error) {
|
|
rsp, err := c.DeleteSubscriptionWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteSubscriptionResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) DeleteSubscriptionWithResponse(ctx context.Context, workspaceId string, body DeleteSubscriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteSubscriptionResponse, error) {
|
|
rsp, err := c.DeleteSubscription(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteSubscriptionResponse(rsp)
|
|
}
|
|
|
|
// TerminateTrialWithResponse request returning *TerminateTrialResponse
|
|
func (c *ClientWithResponses) TerminateTrialWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*TerminateTrialResponse, error) {
|
|
rsp, err := c.TerminateTrial(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseTerminateTrialResponse(rsp)
|
|
}
|
|
|
|
// StartTrialWithResponse request returning *StartTrialResponse
|
|
func (c *ClientWithResponses) StartTrialWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*StartTrialResponse, error) {
|
|
rsp, err := c.StartTrial(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseStartTrialResponse(rsp)
|
|
}
|
|
|
|
// WasRegionalEverAllowedWithResponse request returning *WasRegionalEverAllowedResponse
|
|
func (c *ClientWithResponses) WasRegionalEverAllowedWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*WasRegionalEverAllowedResponse, error) {
|
|
rsp, err := c.WasRegionalEverAllowed(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseWasRegionalEverAllowedResponse(rsp)
|
|
}
|
|
|
|
// FindForUserAndPolicyWithResponse request returning *FindForUserAndPolicyResponse
|
|
func (c *ClientWithResponses) FindForUserAndPolicyWithResponse(ctx context.Context, workspaceId string, policyId string, userId string, params *FindForUserAndPolicyParams, reqEditors ...RequestEditorFn) (*FindForUserAndPolicyResponse, error) {
|
|
rsp, err := c.FindForUserAndPolicy(ctx, workspaceId, policyId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseFindForUserAndPolicyResponse(rsp)
|
|
}
|
|
|
|
// GetClientsWithResponse request returning *GetClientsResponse
|
|
func (c *ClientWithResponses) GetClientsWithResponse(ctx context.Context, workspaceId string, params *GetClientsParams, reqEditors ...RequestEditorFn) (*GetClientsResponse, error) {
|
|
rsp, err := c.GetClients(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetClientsResponse(rsp)
|
|
}
|
|
|
|
// GetProjects3WithResponse request returning *GetProjects3Response
|
|
func (c *ClientWithResponses) GetProjects3WithResponse(ctx context.Context, workspaceId string, params *GetProjects3Params, reqEditors ...RequestEditorFn) (*GetProjects3Response, error) {
|
|
rsp, err := c.GetProjects3(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjects3Response(rsp)
|
|
}
|
|
|
|
// GetProjectFavoritesWithResponse request returning *GetProjectFavoritesResponse
|
|
func (c *ClientWithResponses) GetProjectFavoritesWithResponse(ctx context.Context, workspaceId string, params *GetProjectFavoritesParams, reqEditors ...RequestEditorFn) (*GetProjectFavoritesResponse, error) {
|
|
rsp, err := c.GetProjectFavorites(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjectFavoritesResponse(rsp)
|
|
}
|
|
|
|
// GetTasks21WithResponse request returning *GetTasks21Response
|
|
func (c *ClientWithResponses) GetTasks21WithResponse(ctx context.Context, workspaceId string, projectId string, params *GetTasks21Params, reqEditors ...RequestEditorFn) (*GetTasks21Response, error) {
|
|
rsp, err := c.GetTasks21(ctx, workspaceId, projectId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTasks21Response(rsp)
|
|
}
|
|
|
|
// RecalculateProjectStatus1WithResponse request returning *RecalculateProjectStatus1Response
|
|
func (c *ClientWithResponses) RecalculateProjectStatus1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*RecalculateProjectStatus1Response, error) {
|
|
rsp, err := c.RecalculateProjectStatus1(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRecalculateProjectStatus1Response(rsp)
|
|
}
|
|
|
|
// GetProjectAndTaskWithBodyWithResponse request with arbitrary body returning *GetProjectAndTaskResponse
|
|
func (c *ClientWithResponses) GetProjectAndTaskWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectAndTaskResponse, error) {
|
|
rsp, err := c.GetProjectAndTaskWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjectAndTaskResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetProjectAndTaskWithResponse(ctx context.Context, workspaceId string, body GetProjectAndTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectAndTaskResponse, error) {
|
|
rsp, err := c.GetProjectAndTask(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjectAndTaskResponse(rsp)
|
|
}
|
|
|
|
// DeleteMany2WithBodyWithResponse request with arbitrary body returning *DeleteMany2Response
|
|
func (c *ClientWithResponses) DeleteMany2WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMany2Response, error) {
|
|
rsp, err := c.DeleteMany2WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteMany2Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) DeleteMany2WithResponse(ctx context.Context, workspaceId string, body DeleteMany2JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMany2Response, error) {
|
|
rsp, err := c.DeleteMany2(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteMany2Response(rsp)
|
|
}
|
|
|
|
// GetProjects2WithResponse request returning *GetProjects2Response
|
|
func (c *ClientWithResponses) GetProjects2WithResponse(ctx context.Context, workspaceId string, params *GetProjects2Params, reqEditors ...RequestEditorFn) (*GetProjects2Response, error) {
|
|
rsp, err := c.GetProjects2(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjects2Response(rsp)
|
|
}
|
|
|
|
// UpdateMany1WithBodyWithResponse request with arbitrary body returning *UpdateMany1Response
|
|
func (c *ClientWithResponses) UpdateMany1WithBodyWithResponse(ctx context.Context, workspaceId string, params *UpdateMany1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMany1Response, error) {
|
|
rsp, err := c.UpdateMany1WithBody(ctx, workspaceId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateMany1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateMany1WithResponse(ctx context.Context, workspaceId string, params *UpdateMany1Params, body UpdateMany1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMany1Response, error) {
|
|
rsp, err := c.UpdateMany1(ctx, workspaceId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateMany1Response(rsp)
|
|
}
|
|
|
|
// Create12WithBodyWithResponse request with arbitrary body returning *Create12Response
|
|
func (c *ClientWithResponses) Create12WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create12Response, error) {
|
|
rsp, err := c.Create12WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate12Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create12WithResponse(ctx context.Context, workspaceId string, body Create12JSONRequestBody, reqEditors ...RequestEditorFn) (*Create12Response, error) {
|
|
rsp, err := c.Create12(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate12Response(rsp)
|
|
}
|
|
|
|
// GetFilteredProjectsCountWithResponse request returning *GetFilteredProjectsCountResponse
|
|
func (c *ClientWithResponses) GetFilteredProjectsCountWithResponse(ctx context.Context, workspaceId string, params *GetFilteredProjectsCountParams, reqEditors ...RequestEditorFn) (*GetFilteredProjectsCountResponse, error) {
|
|
rsp, err := c.GetFilteredProjectsCount(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetFilteredProjectsCountResponse(rsp)
|
|
}
|
|
|
|
// GetFilteredProjectsWithBodyWithResponse request with arbitrary body returning *GetFilteredProjectsResponse
|
|
func (c *ClientWithResponses) GetFilteredProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetFilteredProjectsResponse, error) {
|
|
rsp, err := c.GetFilteredProjectsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetFilteredProjectsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetFilteredProjectsWithResponse(ctx context.Context, workspaceId string, body GetFilteredProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetFilteredProjectsResponse, error) {
|
|
rsp, err := c.GetFilteredProjects(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetFilteredProjectsResponse(rsp)
|
|
}
|
|
|
|
// CreateFromTemplateWithBodyWithResponse request with arbitrary body returning *CreateFromTemplateResponse
|
|
func (c *ClientWithResponses) CreateFromTemplateWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFromTemplateResponse, error) {
|
|
rsp, err := c.CreateFromTemplateWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateFromTemplateResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateFromTemplateWithResponse(ctx context.Context, workspaceId string, body CreateFromTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFromTemplateResponse, error) {
|
|
rsp, err := c.CreateFromTemplate(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateFromTemplateResponse(rsp)
|
|
}
|
|
|
|
// GetProjectWithBodyWithResponse request with arbitrary body returning *GetProjectResponse
|
|
func (c *ClientWithResponses) GetProjectWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) {
|
|
rsp, err := c.GetProjectWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjectResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, workspaceId string, body GetProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) {
|
|
rsp, err := c.GetProject(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjectResponse(rsp)
|
|
}
|
|
|
|
// GetLastUsedProjectWithResponse request returning *GetLastUsedProjectResponse
|
|
func (c *ClientWithResponses) GetLastUsedProjectWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetLastUsedProjectResponse, error) {
|
|
rsp, err := c.GetLastUsedProject(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetLastUsedProjectResponse(rsp)
|
|
}
|
|
|
|
// LastUsedProject1WithResponse request returning *LastUsedProject1Response
|
|
func (c *ClientWithResponses) LastUsedProject1WithResponse(ctx context.Context, workspaceId string, params *LastUsedProject1Params, reqEditors ...RequestEditorFn) (*LastUsedProject1Response, error) {
|
|
rsp, err := c.LastUsedProject1(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseLastUsedProject1Response(rsp)
|
|
}
|
|
|
|
// GetProjectsListWithResponse request returning *GetProjectsListResponse
|
|
func (c *ClientWithResponses) GetProjectsListWithResponse(ctx context.Context, workspaceId string, params *GetProjectsListParams, reqEditors ...RequestEditorFn) (*GetProjectsListResponse, error) {
|
|
rsp, err := c.GetProjectsList(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjectsListResponse(rsp)
|
|
}
|
|
|
|
// HasManagerRole1WithResponse request returning *HasManagerRole1Response
|
|
func (c *ClientWithResponses) HasManagerRole1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*HasManagerRole1Response, error) {
|
|
rsp, err := c.HasManagerRole1(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseHasManagerRole1Response(rsp)
|
|
}
|
|
|
|
// GetProjectsForReportFilterWithBodyWithResponse request with arbitrary body returning *GetProjectsForReportFilterResponse
|
|
func (c *ClientWithResponses) GetProjectsForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectsForReportFilterResponse, error) {
|
|
rsp, err := c.GetProjectsForReportFilterWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjectsForReportFilterResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetProjectsForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetProjectsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectsForReportFilterResponse, error) {
|
|
rsp, err := c.GetProjectsForReportFilter(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjectsForReportFilterResponse(rsp)
|
|
}
|
|
|
|
// GetProjectIdsForReportFilterWithBodyWithResponse request with arbitrary body returning *GetProjectIdsForReportFilterResponse
|
|
func (c *ClientWithResponses) GetProjectIdsForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetProjectIdsForReportFilterResponse, error) {
|
|
rsp, err := c.GetProjectIdsForReportFilterWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjectIdsForReportFilterResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetProjectIdsForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetProjectIdsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetProjectIdsForReportFilterResponse, error) {
|
|
rsp, err := c.GetProjectIdsForReportFilter(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjectIdsForReportFilterResponse(rsp)
|
|
}
|
|
|
|
// GetTasksByIdsWithBodyWithResponse request with arbitrary body returning *GetTasksByIdsResponse
|
|
func (c *ClientWithResponses) GetTasksByIdsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTasksByIdsResponse, error) {
|
|
rsp, err := c.GetTasksByIdsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTasksByIdsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetTasksByIdsWithResponse(ctx context.Context, workspaceId string, body GetTasksByIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTasksByIdsResponse, error) {
|
|
rsp, err := c.GetTasksByIds(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTasksByIdsResponse(rsp)
|
|
}
|
|
|
|
// GetAllTasksWithBodyWithResponse request with arbitrary body returning *GetAllTasksResponse
|
|
func (c *ClientWithResponses) GetAllTasksWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetAllTasksResponse, error) {
|
|
rsp, err := c.GetAllTasksWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetAllTasksResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetAllTasksWithResponse(ctx context.Context, workspaceId string, body GetAllTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*GetAllTasksResponse, error) {
|
|
rsp, err := c.GetAllTasks(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetAllTasksResponse(rsp)
|
|
}
|
|
|
|
// GetTasksWithBodyWithResponse request with arbitrary body returning *GetTasksResponse
|
|
func (c *ClientWithResponses) GetTasksWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetTasksParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTasksResponse, error) {
|
|
rsp, err := c.GetTasksWithBody(ctx, workspaceId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTasksResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetTasksWithResponse(ctx context.Context, workspaceId string, params *GetTasksParams, body GetTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTasksResponse, error) {
|
|
rsp, err := c.GetTasks(ctx, workspaceId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTasksResponse(rsp)
|
|
}
|
|
|
|
// GetTasksForReportFilterWithBodyWithResponse request with arbitrary body returning *GetTasksForReportFilterResponse
|
|
func (c *ClientWithResponses) GetTasksForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTasksForReportFilterResponse, error) {
|
|
rsp, err := c.GetTasksForReportFilterWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTasksForReportFilterResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetTasksForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetTasksForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTasksForReportFilterResponse, error) {
|
|
rsp, err := c.GetTasksForReportFilter(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTasksForReportFilterResponse(rsp)
|
|
}
|
|
|
|
// GetTaskIdsForReportFilterWithBodyWithResponse request with arbitrary body returning *GetTaskIdsForReportFilterResponse
|
|
func (c *ClientWithResponses) GetTaskIdsForReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTaskIdsForReportFilterResponse, error) {
|
|
rsp, err := c.GetTaskIdsForReportFilterWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTaskIdsForReportFilterResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetTaskIdsForReportFilterWithResponse(ctx context.Context, workspaceId string, body GetTaskIdsForReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTaskIdsForReportFilterResponse, error) {
|
|
rsp, err := c.GetTaskIdsForReportFilter(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTaskIdsForReportFilterResponse(rsp)
|
|
}
|
|
|
|
// GetTimeOffPoliciesAndHolidaysWithProjectsWithBodyWithResponse request with arbitrary body returning *GetTimeOffPoliciesAndHolidaysWithProjectsResponse
|
|
func (c *ClientWithResponses) GetTimeOffPoliciesAndHolidaysWithProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysWithProjectsResponse, error) {
|
|
rsp, err := c.GetTimeOffPoliciesAndHolidaysWithProjectsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimeOffPoliciesAndHolidaysWithProjectsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetTimeOffPoliciesAndHolidaysWithProjectsWithResponse(ctx context.Context, workspaceId string, body GetTimeOffPoliciesAndHolidaysWithProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysWithProjectsResponse, error) {
|
|
rsp, err := c.GetTimeOffPoliciesAndHolidaysWithProjects(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimeOffPoliciesAndHolidaysWithProjectsResponse(rsp)
|
|
}
|
|
|
|
// GetLastUsedOfUserWithResponse request returning *GetLastUsedOfUserResponse
|
|
func (c *ClientWithResponses) GetLastUsedOfUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetLastUsedOfUserResponse, error) {
|
|
rsp, err := c.GetLastUsedOfUser(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetLastUsedOfUserResponse(rsp)
|
|
}
|
|
|
|
// GetPermissionsToUserForProjectsWithBodyWithResponse request with arbitrary body returning *GetPermissionsToUserForProjectsResponse
|
|
func (c *ClientWithResponses) GetPermissionsToUserForProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetPermissionsToUserForProjectsResponse, error) {
|
|
rsp, err := c.GetPermissionsToUserForProjectsWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetPermissionsToUserForProjectsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetPermissionsToUserForProjectsWithResponse(ctx context.Context, workspaceId string, userId string, body GetPermissionsToUserForProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetPermissionsToUserForProjectsResponse, error) {
|
|
rsp, err := c.GetPermissionsToUserForProjects(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetPermissionsToUserForProjectsResponse(rsp)
|
|
}
|
|
|
|
// Delete13WithResponse request returning *Delete13Response
|
|
func (c *ClientWithResponses) Delete13WithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*Delete13Response, error) {
|
|
rsp, err := c.Delete13(ctx, workspaceId, projectId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete13Response(rsp)
|
|
}
|
|
|
|
// GetProject1WithResponse request returning *GetProject1Response
|
|
func (c *ClientWithResponses) GetProject1WithResponse(ctx context.Context, workspaceId string, projectId string, params *GetProject1Params, reqEditors ...RequestEditorFn) (*GetProject1Response, error) {
|
|
rsp, err := c.GetProject1(ctx, workspaceId, projectId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProject1Response(rsp)
|
|
}
|
|
|
|
// Update14WithBodyWithResponse request with arbitrary body returning *Update14Response
|
|
func (c *ClientWithResponses) Update14WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, params *Update14Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update14Response, error) {
|
|
rsp, err := c.Update14WithBody(ctx, workspaceId, projectId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate14Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Update14WithResponse(ctx context.Context, workspaceId string, projectId string, params *Update14Params, body Update14JSONRequestBody, reqEditors ...RequestEditorFn) (*Update14Response, error) {
|
|
rsp, err := c.Update14(ctx, workspaceId, projectId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate14Response(rsp)
|
|
}
|
|
|
|
// Update6WithBodyWithResponse request with arbitrary body returning *Update6Response
|
|
func (c *ClientWithResponses) Update6WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, params *Update6Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update6Response, error) {
|
|
rsp, err := c.Update6WithBody(ctx, workspaceId, projectId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate6Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Update6WithResponse(ctx context.Context, workspaceId string, projectId string, params *Update6Params, body Update6JSONRequestBody, reqEditors ...RequestEditorFn) (*Update6Response, error) {
|
|
rsp, err := c.Update6(ctx, workspaceId, projectId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate6Response(rsp)
|
|
}
|
|
|
|
// SetCostRate1WithBodyWithResponse request with arbitrary body returning *SetCostRate1Response
|
|
func (c *ClientWithResponses) SetCostRate1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCostRate1Response, error) {
|
|
rsp, err := c.SetCostRate1WithBody(ctx, workspaceId, projectId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetCostRate1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) SetCostRate1WithResponse(ctx context.Context, workspaceId string, projectId string, body SetCostRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*SetCostRate1Response, error) {
|
|
rsp, err := c.SetCostRate1(ctx, workspaceId, projectId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetCostRate1Response(rsp)
|
|
}
|
|
|
|
// UpdateEstimateWithBodyWithResponse request with arbitrary body returning *UpdateEstimateResponse
|
|
func (c *ClientWithResponses) UpdateEstimateWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEstimateResponse, error) {
|
|
rsp, err := c.UpdateEstimateWithBody(ctx, workspaceId, projectId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateEstimateResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateEstimateWithResponse(ctx context.Context, workspaceId string, projectId string, body UpdateEstimateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEstimateResponse, error) {
|
|
rsp, err := c.UpdateEstimate(ctx, workspaceId, projectId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateEstimateResponse(rsp)
|
|
}
|
|
|
|
// SetHourlyRate1WithBodyWithResponse request with arbitrary body returning *SetHourlyRate1Response
|
|
func (c *ClientWithResponses) SetHourlyRate1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHourlyRate1Response, error) {
|
|
rsp, err := c.SetHourlyRate1WithBody(ctx, workspaceId, projectId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetHourlyRate1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) SetHourlyRate1WithResponse(ctx context.Context, workspaceId string, projectId string, body SetHourlyRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*SetHourlyRate1Response, error) {
|
|
rsp, err := c.SetHourlyRate1(ctx, workspaceId, projectId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetHourlyRate1Response(rsp)
|
|
}
|
|
|
|
// HasManagerRoleWithResponse request returning *HasManagerRoleResponse
|
|
func (c *ClientWithResponses) HasManagerRoleWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*HasManagerRoleResponse, error) {
|
|
rsp, err := c.HasManagerRole(ctx, workspaceId, projectId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseHasManagerRoleResponse(rsp)
|
|
}
|
|
|
|
// GetAuthsForProjectWithResponse request returning *GetAuthsForProjectResponse
|
|
func (c *ClientWithResponses) GetAuthsForProjectWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*GetAuthsForProjectResponse, error) {
|
|
rsp, err := c.GetAuthsForProject(ctx, workspaceId, projectId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetAuthsForProjectResponse(rsp)
|
|
}
|
|
|
|
// RecalculateProjectStatusWithResponse request returning *RecalculateProjectStatusResponse
|
|
func (c *ClientWithResponses) RecalculateProjectStatusWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*RecalculateProjectStatusResponse, error) {
|
|
rsp, err := c.RecalculateProjectStatus(ctx, workspaceId, projectId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRecalculateProjectStatusResponse(rsp)
|
|
}
|
|
|
|
// GetTasks1WithResponse request returning *GetTasks1Response
|
|
func (c *ClientWithResponses) GetTasks1WithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*GetTasks1Response, error) {
|
|
rsp, err := c.GetTasks1(ctx, workspaceId, projectId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTasks1Response(rsp)
|
|
}
|
|
|
|
// Create13WithBodyWithResponse request with arbitrary body returning *Create13Response
|
|
func (c *ClientWithResponses) Create13WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, params *Create13Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create13Response, error) {
|
|
rsp, err := c.Create13WithBody(ctx, workspaceId, projectId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate13Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create13WithResponse(ctx context.Context, workspaceId string, projectId string, params *Create13Params, body Create13JSONRequestBody, reqEditors ...RequestEditorFn) (*Create13Response, error) {
|
|
rsp, err := c.Create13(ctx, workspaceId, projectId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate13Response(rsp)
|
|
}
|
|
|
|
// GetTasksAssignedToUserWithResponse request returning *GetTasksAssignedToUserResponse
|
|
func (c *ClientWithResponses) GetTasksAssignedToUserWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*GetTasksAssignedToUserResponse, error) {
|
|
rsp, err := c.GetTasksAssignedToUser(ctx, workspaceId, projectId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTasksAssignedToUserResponse(rsp)
|
|
}
|
|
|
|
// GetTimeOffPoliciesAndHolidaysWithTasksWithBodyWithResponse request with arbitrary body returning *GetTimeOffPoliciesAndHolidaysWithTasksResponse
|
|
func (c *ClientWithResponses) GetTimeOffPoliciesAndHolidaysWithTasksWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysWithTasksResponse, error) {
|
|
rsp, err := c.GetTimeOffPoliciesAndHolidaysWithTasksWithBody(ctx, workspaceId, projectId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimeOffPoliciesAndHolidaysWithTasksResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetTimeOffPoliciesAndHolidaysWithTasksWithResponse(ctx context.Context, workspaceId string, projectId string, body GetTimeOffPoliciesAndHolidaysWithTasksJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTimeOffPoliciesAndHolidaysWithTasksResponse, error) {
|
|
rsp, err := c.GetTimeOffPoliciesAndHolidaysWithTasks(ctx, workspaceId, projectId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimeOffPoliciesAndHolidaysWithTasksResponse(rsp)
|
|
}
|
|
|
|
// Update7WithBodyWithResponse request with arbitrary body returning *Update7Response
|
|
func (c *ClientWithResponses) Update7WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, id string, params *Update7Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update7Response, error) {
|
|
rsp, err := c.Update7WithBody(ctx, workspaceId, projectId, id, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate7Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Update7WithResponse(ctx context.Context, workspaceId string, projectId string, id string, params *Update7Params, body Update7JSONRequestBody, reqEditors ...RequestEditorFn) (*Update7Response, error) {
|
|
rsp, err := c.Update7(ctx, workspaceId, projectId, id, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate7Response(rsp)
|
|
}
|
|
|
|
// SetCostRateWithBodyWithResponse request with arbitrary body returning *SetCostRateResponse
|
|
func (c *ClientWithResponses) SetCostRateWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCostRateResponse, error) {
|
|
rsp, err := c.SetCostRateWithBody(ctx, workspaceId, projectId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetCostRateResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) SetCostRateWithResponse(ctx context.Context, workspaceId string, projectId string, id string, body SetCostRateJSONRequestBody, reqEditors ...RequestEditorFn) (*SetCostRateResponse, error) {
|
|
rsp, err := c.SetCostRate(ctx, workspaceId, projectId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetCostRateResponse(rsp)
|
|
}
|
|
|
|
// SetHourlyRateWithBodyWithResponse request with arbitrary body returning *SetHourlyRateResponse
|
|
func (c *ClientWithResponses) SetHourlyRateWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHourlyRateResponse, error) {
|
|
rsp, err := c.SetHourlyRateWithBody(ctx, workspaceId, projectId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetHourlyRateResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) SetHourlyRateWithResponse(ctx context.Context, workspaceId string, projectId string, id string, body SetHourlyRateJSONRequestBody, reqEditors ...RequestEditorFn) (*SetHourlyRateResponse, error) {
|
|
rsp, err := c.SetHourlyRate(ctx, workspaceId, projectId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetHourlyRateResponse(rsp)
|
|
}
|
|
|
|
// Delete14WithResponse request returning *Delete14Response
|
|
func (c *ClientWithResponses) Delete14WithResponse(ctx context.Context, workspaceId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*Delete14Response, error) {
|
|
rsp, err := c.Delete14(ctx, workspaceId, projectId, taskId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete14Response(rsp)
|
|
}
|
|
|
|
// GetTaskAssignedToUserWithResponse request returning *GetTaskAssignedToUserResponse
|
|
func (c *ClientWithResponses) GetTaskAssignedToUserWithResponse(ctx context.Context, workspaceId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*GetTaskAssignedToUserResponse, error) {
|
|
rsp, err := c.GetTaskAssignedToUser(ctx, workspaceId, projectId, taskId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTaskAssignedToUserResponse(rsp)
|
|
}
|
|
|
|
// AddUsers1WithBodyWithResponse request with arbitrary body returning *AddUsers1Response
|
|
func (c *ClientWithResponses) AddUsers1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsers1Response, error) {
|
|
rsp, err := c.AddUsers1WithBody(ctx, workspaceId, projectId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddUsers1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) AddUsers1WithResponse(ctx context.Context, workspaceId string, projectId string, body AddUsers1JSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsers1Response, error) {
|
|
rsp, err := c.AddUsers1(ctx, workspaceId, projectId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddUsers1Response(rsp)
|
|
}
|
|
|
|
// GetStatusWithResponse request returning *GetStatusResponse
|
|
func (c *ClientWithResponses) GetStatusWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*GetStatusResponse, error) {
|
|
rsp, err := c.GetStatus(ctx, workspaceId, projectId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetStatusResponse(rsp)
|
|
}
|
|
|
|
// RemoveUserGroupMembershipWithResponse request returning *RemoveUserGroupMembershipResponse
|
|
func (c *ClientWithResponses) RemoveUserGroupMembershipWithResponse(ctx context.Context, workspaceId string, projectId string, usergroupId string, reqEditors ...RequestEditorFn) (*RemoveUserGroupMembershipResponse, error) {
|
|
rsp, err := c.RemoveUserGroupMembership(ctx, workspaceId, projectId, usergroupId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemoveUserGroupMembershipResponse(rsp)
|
|
}
|
|
|
|
// GetUsers4WithResponse request returning *GetUsers4Response
|
|
func (c *ClientWithResponses) GetUsers4WithResponse(ctx context.Context, workspaceId string, projectId string, params *GetUsers4Params, reqEditors ...RequestEditorFn) (*GetUsers4Response, error) {
|
|
rsp, err := c.GetUsers4(ctx, workspaceId, projectId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsers4Response(rsp)
|
|
}
|
|
|
|
// AddUsersCostRate1WithBodyWithResponse request with arbitrary body returning *AddUsersCostRate1Response
|
|
func (c *ClientWithResponses) AddUsersCostRate1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsersCostRate1Response, error) {
|
|
rsp, err := c.AddUsersCostRate1WithBody(ctx, workspaceId, projectId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddUsersCostRate1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) AddUsersCostRate1WithResponse(ctx context.Context, workspaceId string, projectId string, userId string, body AddUsersCostRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsersCostRate1Response, error) {
|
|
rsp, err := c.AddUsersCostRate1(ctx, workspaceId, projectId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddUsersCostRate1Response(rsp)
|
|
}
|
|
|
|
// AddUsersHourlyRate1WithBodyWithResponse request with arbitrary body returning *AddUsersHourlyRate1Response
|
|
func (c *ClientWithResponses) AddUsersHourlyRate1WithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsersHourlyRate1Response, error) {
|
|
rsp, err := c.AddUsersHourlyRate1WithBody(ctx, workspaceId, projectId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddUsersHourlyRate1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) AddUsersHourlyRate1WithResponse(ctx context.Context, workspaceId string, projectId string, userId string, body AddUsersHourlyRate1JSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsersHourlyRate1Response, error) {
|
|
rsp, err := c.AddUsersHourlyRate1(ctx, workspaceId, projectId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddUsersHourlyRate1Response(rsp)
|
|
}
|
|
|
|
// RemoveUserMembershipWithResponse request returning *RemoveUserMembershipResponse
|
|
func (c *ClientWithResponses) RemoveUserMembershipWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, reqEditors ...RequestEditorFn) (*RemoveUserMembershipResponse, error) {
|
|
rsp, err := c.RemoveUserMembership(ctx, workspaceId, projectId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemoveUserMembershipResponse(rsp)
|
|
}
|
|
|
|
// RemovePermissionsToUserWithBodyWithResponse request with arbitrary body returning *RemovePermissionsToUserResponse
|
|
func (c *ClientWithResponses) RemovePermissionsToUserWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemovePermissionsToUserResponse, error) {
|
|
rsp, err := c.RemovePermissionsToUserWithBody(ctx, workspaceId, projectId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemovePermissionsToUserResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) RemovePermissionsToUserWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, body RemovePermissionsToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*RemovePermissionsToUserResponse, error) {
|
|
rsp, err := c.RemovePermissionsToUser(ctx, workspaceId, projectId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemovePermissionsToUserResponse(rsp)
|
|
}
|
|
|
|
// GetPermissionsToUser1WithResponse request returning *GetPermissionsToUser1Response
|
|
func (c *ClientWithResponses) GetPermissionsToUser1WithResponse(ctx context.Context, workspaceId string, projectId string, userId string, reqEditors ...RequestEditorFn) (*GetPermissionsToUser1Response, error) {
|
|
rsp, err := c.GetPermissionsToUser1(ctx, workspaceId, projectId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetPermissionsToUser1Response(rsp)
|
|
}
|
|
|
|
// AddPermissionsToUserWithBodyWithResponse request with arbitrary body returning *AddPermissionsToUserResponse
|
|
func (c *ClientWithResponses) AddPermissionsToUserWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddPermissionsToUserResponse, error) {
|
|
rsp, err := c.AddPermissionsToUserWithBody(ctx, workspaceId, projectId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddPermissionsToUserResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) AddPermissionsToUserWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, body AddPermissionsToUserJSONRequestBody, reqEditors ...RequestEditorFn) (*AddPermissionsToUserResponse, error) {
|
|
rsp, err := c.AddPermissionsToUser(ctx, workspaceId, projectId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddPermissionsToUserResponse(rsp)
|
|
}
|
|
|
|
// DisconnectWithResponse request returning *DisconnectResponse
|
|
func (c *ClientWithResponses) DisconnectWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*DisconnectResponse, error) {
|
|
rsp, err := c.Disconnect(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDisconnectResponse(rsp)
|
|
}
|
|
|
|
// ConnectWithBodyWithResponse request with arbitrary body returning *ConnectResponse
|
|
func (c *ClientWithResponses) ConnectWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConnectResponse, error) {
|
|
rsp, err := c.ConnectWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseConnectResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) ConnectWithResponse(ctx context.Context, workspaceId string, body ConnectJSONRequestBody, reqEditors ...RequestEditorFn) (*ConnectResponse, error) {
|
|
rsp, err := c.Connect(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseConnectResponse(rsp)
|
|
}
|
|
|
|
// Connect1WithResponse request returning *Connect1Response
|
|
func (c *ClientWithResponses) Connect1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*Connect1Response, error) {
|
|
rsp, err := c.Connect1(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseConnect1Response(rsp)
|
|
}
|
|
|
|
// SyncClientsWithBodyWithResponse request with arbitrary body returning *SyncClientsResponse
|
|
func (c *ClientWithResponses) SyncClientsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncClientsResponse, error) {
|
|
rsp, err := c.SyncClientsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSyncClientsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) SyncClientsWithResponse(ctx context.Context, workspaceId string, body SyncClientsJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncClientsResponse, error) {
|
|
rsp, err := c.SyncClients(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSyncClientsResponse(rsp)
|
|
}
|
|
|
|
// SyncProjectsWithBodyWithResponse request with arbitrary body returning *SyncProjectsResponse
|
|
func (c *ClientWithResponses) SyncProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SyncProjectsResponse, error) {
|
|
rsp, err := c.SyncProjectsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSyncProjectsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) SyncProjectsWithResponse(ctx context.Context, workspaceId string, body SyncProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*SyncProjectsResponse, error) {
|
|
rsp, err := c.SyncProjects(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSyncProjectsResponse(rsp)
|
|
}
|
|
|
|
// UpdateProjectsWithBodyWithResponse request with arbitrary body returning *UpdateProjectsResponse
|
|
func (c *ClientWithResponses) UpdateProjectsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectsResponse, error) {
|
|
rsp, err := c.UpdateProjectsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateProjectsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateProjectsWithResponse(ctx context.Context, workspaceId string, body UpdateProjectsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectsResponse, error) {
|
|
rsp, err := c.UpdateProjects(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateProjectsResponse(rsp)
|
|
}
|
|
|
|
// GetAllRegionsForUserAccountWithResponse request returning *GetAllRegionsForUserAccountResponse
|
|
func (c *ClientWithResponses) GetAllRegionsForUserAccountWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetAllRegionsForUserAccountResponse, error) {
|
|
rsp, err := c.GetAllRegionsForUserAccount(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetAllRegionsForUserAccountResponse(rsp)
|
|
}
|
|
|
|
// ListOfWorkspaceWithResponse request returning *ListOfWorkspaceResponse
|
|
func (c *ClientWithResponses) ListOfWorkspaceWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*ListOfWorkspaceResponse, error) {
|
|
rsp, err := c.ListOfWorkspace(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseListOfWorkspaceResponse(rsp)
|
|
}
|
|
|
|
// Create11WithBodyWithResponse request with arbitrary body returning *Create11Response
|
|
func (c *ClientWithResponses) Create11WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create11Response, error) {
|
|
rsp, err := c.Create11WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate11Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create11WithResponse(ctx context.Context, workspaceId string, body Create11JSONRequestBody, reqEditors ...RequestEditorFn) (*Create11Response, error) {
|
|
rsp, err := c.Create11(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate11Response(rsp)
|
|
}
|
|
|
|
// OfWorkspaceIdAndUserIdWithResponse request returning *OfWorkspaceIdAndUserIdResponse
|
|
func (c *ClientWithResponses) OfWorkspaceIdAndUserIdWithResponse(ctx context.Context, workspaceId string, params *OfWorkspaceIdAndUserIdParams, reqEditors ...RequestEditorFn) (*OfWorkspaceIdAndUserIdResponse, error) {
|
|
rsp, err := c.OfWorkspaceIdAndUserId(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseOfWorkspaceIdAndUserIdResponse(rsp)
|
|
}
|
|
|
|
// Delete12WithResponse request returning *Delete12Response
|
|
func (c *ClientWithResponses) Delete12WithResponse(ctx context.Context, workspaceId string, reminderId string, reqEditors ...RequestEditorFn) (*Delete12Response, error) {
|
|
rsp, err := c.Delete12(ctx, workspaceId, reminderId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete12Response(rsp)
|
|
}
|
|
|
|
// Update5WithBodyWithResponse request with arbitrary body returning *Update5Response
|
|
func (c *ClientWithResponses) Update5WithBodyWithResponse(ctx context.Context, workspaceId string, reminderId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update5Response, error) {
|
|
rsp, err := c.Update5WithBody(ctx, workspaceId, reminderId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate5Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Update5WithResponse(ctx context.Context, workspaceId string, reminderId string, body Update5JSONRequestBody, reqEditors ...RequestEditorFn) (*Update5Response, error) {
|
|
rsp, err := c.Update5(ctx, workspaceId, reminderId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate5Response(rsp)
|
|
}
|
|
|
|
// GetDashboardInfoWithBodyWithResponse request with arbitrary body returning *GetDashboardInfoResponse
|
|
func (c *ClientWithResponses) GetDashboardInfoWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDashboardInfoResponse, error) {
|
|
rsp, err := c.GetDashboardInfoWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetDashboardInfoResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetDashboardInfoWithResponse(ctx context.Context, workspaceId string, body GetDashboardInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*GetDashboardInfoResponse, error) {
|
|
rsp, err := c.GetDashboardInfo(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetDashboardInfoResponse(rsp)
|
|
}
|
|
|
|
// GetMyMostTrackedWithResponse request returning *GetMyMostTrackedResponse
|
|
func (c *ClientWithResponses) GetMyMostTrackedWithResponse(ctx context.Context, workspaceId string, params *GetMyMostTrackedParams, reqEditors ...RequestEditorFn) (*GetMyMostTrackedResponse, error) {
|
|
rsp, err := c.GetMyMostTracked(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetMyMostTrackedResponse(rsp)
|
|
}
|
|
|
|
// GetTeamActivitiesWithResponse request returning *GetTeamActivitiesResponse
|
|
func (c *ClientWithResponses) GetTeamActivitiesWithResponse(ctx context.Context, workspaceId string, params *GetTeamActivitiesParams, reqEditors ...RequestEditorFn) (*GetTeamActivitiesResponse, error) {
|
|
rsp, err := c.GetTeamActivities(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTeamActivitiesResponse(rsp)
|
|
}
|
|
|
|
// GetAmountPreviewWithResponse request returning *GetAmountPreviewResponse
|
|
func (c *ClientWithResponses) GetAmountPreviewWithResponse(ctx context.Context, workspaceId string, params *GetAmountPreviewParams, reqEditors ...RequestEditorFn) (*GetAmountPreviewResponse, error) {
|
|
rsp, err := c.GetAmountPreview(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetAmountPreviewResponse(rsp)
|
|
}
|
|
|
|
// GetDraftAssignmentsCountWithBodyWithResponse request with arbitrary body returning *GetDraftAssignmentsCountResponse
|
|
func (c *ClientWithResponses) GetDraftAssignmentsCountWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetDraftAssignmentsCountResponse, error) {
|
|
rsp, err := c.GetDraftAssignmentsCountWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetDraftAssignmentsCountResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetDraftAssignmentsCountWithResponse(ctx context.Context, workspaceId string, body GetDraftAssignmentsCountJSONRequestBody, reqEditors ...RequestEditorFn) (*GetDraftAssignmentsCountResponse, error) {
|
|
rsp, err := c.GetDraftAssignmentsCount(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetDraftAssignmentsCountResponse(rsp)
|
|
}
|
|
|
|
// GetProjectTotalsWithResponse request returning *GetProjectTotalsResponse
|
|
func (c *ClientWithResponses) GetProjectTotalsWithResponse(ctx context.Context, workspaceId string, params *GetProjectTotalsParams, reqEditors ...RequestEditorFn) (*GetProjectTotalsResponse, error) {
|
|
rsp, err := c.GetProjectTotals(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjectTotalsResponse(rsp)
|
|
}
|
|
|
|
// GetFilteredProjectTotalsWithBodyWithResponse request with arbitrary body returning *GetFilteredProjectTotalsResponse
|
|
func (c *ClientWithResponses) GetFilteredProjectTotalsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetFilteredProjectTotalsResponse, error) {
|
|
rsp, err := c.GetFilteredProjectTotalsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetFilteredProjectTotalsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetFilteredProjectTotalsWithResponse(ctx context.Context, workspaceId string, body GetFilteredProjectTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetFilteredProjectTotalsResponse, error) {
|
|
rsp, err := c.GetFilteredProjectTotals(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetFilteredProjectTotalsResponse(rsp)
|
|
}
|
|
|
|
// GetProjectTotalsForSingleProjectWithResponse request returning *GetProjectTotalsForSingleProjectResponse
|
|
func (c *ClientWithResponses) GetProjectTotalsForSingleProjectWithResponse(ctx context.Context, workspaceId string, projectId string, params *GetProjectTotalsForSingleProjectParams, reqEditors ...RequestEditorFn) (*GetProjectTotalsForSingleProjectResponse, error) {
|
|
rsp, err := c.GetProjectTotalsForSingleProject(ctx, workspaceId, projectId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjectTotalsForSingleProjectResponse(rsp)
|
|
}
|
|
|
|
// GetProjectsForUserWithResponse request returning *GetProjectsForUserResponse
|
|
func (c *ClientWithResponses) GetProjectsForUserWithResponse(ctx context.Context, workspaceId string, projectId string, userId string, params *GetProjectsForUserParams, reqEditors ...RequestEditorFn) (*GetProjectsForUserResponse, error) {
|
|
rsp, err := c.GetProjectsForUser(ctx, workspaceId, projectId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjectsForUserResponse(rsp)
|
|
}
|
|
|
|
// PublishAssignmentsWithBodyWithResponse request with arbitrary body returning *PublishAssignmentsResponse
|
|
func (c *ClientWithResponses) PublishAssignmentsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PublishAssignmentsResponse, error) {
|
|
rsp, err := c.PublishAssignmentsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePublishAssignmentsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) PublishAssignmentsWithResponse(ctx context.Context, workspaceId string, body PublishAssignmentsJSONRequestBody, reqEditors ...RequestEditorFn) (*PublishAssignmentsResponse, error) {
|
|
rsp, err := c.PublishAssignments(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePublishAssignmentsResponse(rsp)
|
|
}
|
|
|
|
// CreateRecurringWithBodyWithResponse request with arbitrary body returning *CreateRecurringResponse
|
|
func (c *ClientWithResponses) CreateRecurringWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRecurringResponse, error) {
|
|
rsp, err := c.CreateRecurringWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateRecurringResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateRecurringWithResponse(ctx context.Context, workspaceId string, body CreateRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRecurringResponse, error) {
|
|
rsp, err := c.CreateRecurring(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateRecurringResponse(rsp)
|
|
}
|
|
|
|
// Delete11WithResponse request returning *Delete11Response
|
|
func (c *ClientWithResponses) Delete11WithResponse(ctx context.Context, workspaceId string, assignmentId string, params *Delete11Params, reqEditors ...RequestEditorFn) (*Delete11Response, error) {
|
|
rsp, err := c.Delete11(ctx, workspaceId, assignmentId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete11Response(rsp)
|
|
}
|
|
|
|
// EditRecurringWithBodyWithResponse request with arbitrary body returning *EditRecurringResponse
|
|
func (c *ClientWithResponses) EditRecurringWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditRecurringResponse, error) {
|
|
rsp, err := c.EditRecurringWithBody(ctx, workspaceId, assignmentId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditRecurringResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) EditRecurringWithResponse(ctx context.Context, workspaceId string, assignmentId string, body EditRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*EditRecurringResponse, error) {
|
|
rsp, err := c.EditRecurring(ctx, workspaceId, assignmentId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditRecurringResponse(rsp)
|
|
}
|
|
|
|
// EditPeriodForRecurringWithBodyWithResponse request with arbitrary body returning *EditPeriodForRecurringResponse
|
|
func (c *ClientWithResponses) EditPeriodForRecurringWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditPeriodForRecurringResponse, error) {
|
|
rsp, err := c.EditPeriodForRecurringWithBody(ctx, workspaceId, assignmentId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditPeriodForRecurringResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) EditPeriodForRecurringWithResponse(ctx context.Context, workspaceId string, assignmentId string, body EditPeriodForRecurringJSONRequestBody, reqEditors ...RequestEditorFn) (*EditPeriodForRecurringResponse, error) {
|
|
rsp, err := c.EditPeriodForRecurring(ctx, workspaceId, assignmentId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditPeriodForRecurringResponse(rsp)
|
|
}
|
|
|
|
// EditRecurringPeriodWithBodyWithResponse request with arbitrary body returning *EditRecurringPeriodResponse
|
|
func (c *ClientWithResponses) EditRecurringPeriodWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditRecurringPeriodResponse, error) {
|
|
rsp, err := c.EditRecurringPeriodWithBody(ctx, workspaceId, assignmentId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditRecurringPeriodResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) EditRecurringPeriodWithResponse(ctx context.Context, workspaceId string, assignmentId string, body EditRecurringPeriodJSONRequestBody, reqEditors ...RequestEditorFn) (*EditRecurringPeriodResponse, error) {
|
|
rsp, err := c.EditRecurringPeriod(ctx, workspaceId, assignmentId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditRecurringPeriodResponse(rsp)
|
|
}
|
|
|
|
// GetUserTotalsWithBodyWithResponse request with arbitrary body returning *GetUserTotalsResponse
|
|
func (c *ClientWithResponses) GetUserTotalsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserTotalsResponse, error) {
|
|
rsp, err := c.GetUserTotalsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserTotalsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetUserTotalsWithResponse(ctx context.Context, workspaceId string, body GetUserTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserTotalsResponse, error) {
|
|
rsp, err := c.GetUserTotals(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserTotalsResponse(rsp)
|
|
}
|
|
|
|
// GetAssignmentsForUserWithResponse request returning *GetAssignmentsForUserResponse
|
|
func (c *ClientWithResponses) GetAssignmentsForUserWithResponse(ctx context.Context, workspaceId string, userId string, params *GetAssignmentsForUserParams, reqEditors ...RequestEditorFn) (*GetAssignmentsForUserResponse, error) {
|
|
rsp, err := c.GetAssignmentsForUser(ctx, workspaceId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetAssignmentsForUserResponse(rsp)
|
|
}
|
|
|
|
// GetFilteredAssignmentsForUserWithBodyWithResponse request with arbitrary body returning *GetFilteredAssignmentsForUserResponse
|
|
func (c *ClientWithResponses) GetFilteredAssignmentsForUserWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetFilteredAssignmentsForUserResponse, error) {
|
|
rsp, err := c.GetFilteredAssignmentsForUserWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetFilteredAssignmentsForUserResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetFilteredAssignmentsForUserWithResponse(ctx context.Context, workspaceId string, userId string, body GetFilteredAssignmentsForUserJSONRequestBody, reqEditors ...RequestEditorFn) (*GetFilteredAssignmentsForUserResponse, error) {
|
|
rsp, err := c.GetFilteredAssignmentsForUser(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetFilteredAssignmentsForUserResponse(rsp)
|
|
}
|
|
|
|
// GetUsers3WithResponse request returning *GetUsers3Response
|
|
func (c *ClientWithResponses) GetUsers3WithResponse(ctx context.Context, workspaceId string, projectId string, params *GetUsers3Params, reqEditors ...RequestEditorFn) (*GetUsers3Response, error) {
|
|
rsp, err := c.GetUsers3(ctx, workspaceId, projectId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsers3Response(rsp)
|
|
}
|
|
|
|
// GetProjects1WithResponse request returning *GetProjects1Response
|
|
func (c *ClientWithResponses) GetProjects1WithResponse(ctx context.Context, workspaceId string, userId string, params *GetProjects1Params, reqEditors ...RequestEditorFn) (*GetProjects1Response, error) {
|
|
rsp, err := c.GetProjects1(ctx, workspaceId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjects1Response(rsp)
|
|
}
|
|
|
|
// RemindToPublishWithResponse request returning *RemindToPublishResponse
|
|
func (c *ClientWithResponses) RemindToPublishWithResponse(ctx context.Context, workspaceId string, userId string, params *RemindToPublishParams, reqEditors ...RequestEditorFn) (*RemindToPublishResponse, error) {
|
|
rsp, err := c.RemindToPublish(ctx, workspaceId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemindToPublishResponse(rsp)
|
|
}
|
|
|
|
// GetUserTotalsForSingleUserWithResponse request returning *GetUserTotalsForSingleUserResponse
|
|
func (c *ClientWithResponses) GetUserTotalsForSingleUserWithResponse(ctx context.Context, workspaceId string, userId string, params *GetUserTotalsForSingleUserParams, reqEditors ...RequestEditorFn) (*GetUserTotalsForSingleUserResponse, error) {
|
|
rsp, err := c.GetUserTotalsForSingleUser(ctx, workspaceId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserTotalsForSingleUserResponse(rsp)
|
|
}
|
|
|
|
// Get3WithResponse request returning *Get3Response
|
|
func (c *ClientWithResponses) Get3WithResponse(ctx context.Context, workspaceId string, assignmentId string, reqEditors ...RequestEditorFn) (*Get3Response, error) {
|
|
rsp, err := c.Get3(ctx, workspaceId, assignmentId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGet3Response(rsp)
|
|
}
|
|
|
|
// CopyAssignmentWithBodyWithResponse request with arbitrary body returning *CopyAssignmentResponse
|
|
func (c *ClientWithResponses) CopyAssignmentWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyAssignmentResponse, error) {
|
|
rsp, err := c.CopyAssignmentWithBody(ctx, workspaceId, assignmentId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCopyAssignmentResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CopyAssignmentWithResponse(ctx context.Context, workspaceId string, assignmentId string, body CopyAssignmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyAssignmentResponse, error) {
|
|
rsp, err := c.CopyAssignment(ctx, workspaceId, assignmentId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCopyAssignmentResponse(rsp)
|
|
}
|
|
|
|
// SplitAssignmentWithBodyWithResponse request with arbitrary body returning *SplitAssignmentResponse
|
|
func (c *ClientWithResponses) SplitAssignmentWithBodyWithResponse(ctx context.Context, workspaceId string, assignmentId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SplitAssignmentResponse, error) {
|
|
rsp, err := c.SplitAssignmentWithBody(ctx, workspaceId, assignmentId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSplitAssignmentResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) SplitAssignmentWithResponse(ctx context.Context, workspaceId string, assignmentId string, body SplitAssignmentJSONRequestBody, reqEditors ...RequestEditorFn) (*SplitAssignmentResponse, error) {
|
|
rsp, err := c.SplitAssignment(ctx, workspaceId, assignmentId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSplitAssignmentResponse(rsp)
|
|
}
|
|
|
|
// ShiftScheduleWithBodyWithResponse request with arbitrary body returning *ShiftScheduleResponse
|
|
func (c *ClientWithResponses) ShiftScheduleWithBodyWithResponse(ctx context.Context, workspaceId string, projectId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ShiftScheduleResponse, error) {
|
|
rsp, err := c.ShiftScheduleWithBody(ctx, workspaceId, projectId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseShiftScheduleResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) ShiftScheduleWithResponse(ctx context.Context, workspaceId string, projectId string, body ShiftScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*ShiftScheduleResponse, error) {
|
|
rsp, err := c.ShiftSchedule(ctx, workspaceId, projectId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseShiftScheduleResponse(rsp)
|
|
}
|
|
|
|
// HideProjectWithResponse request returning *HideProjectResponse
|
|
func (c *ClientWithResponses) HideProjectWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*HideProjectResponse, error) {
|
|
rsp, err := c.HideProject(ctx, workspaceId, projectId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseHideProjectResponse(rsp)
|
|
}
|
|
|
|
// ShowProjectWithResponse request returning *ShowProjectResponse
|
|
func (c *ClientWithResponses) ShowProjectWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*ShowProjectResponse, error) {
|
|
rsp, err := c.ShowProject(ctx, workspaceId, projectId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseShowProjectResponse(rsp)
|
|
}
|
|
|
|
// HideUserWithResponse request returning *HideUserResponse
|
|
func (c *ClientWithResponses) HideUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*HideUserResponse, error) {
|
|
rsp, err := c.HideUser(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseHideUserResponse(rsp)
|
|
}
|
|
|
|
// ShowUserWithResponse request returning *ShowUserResponse
|
|
func (c *ClientWithResponses) ShowUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*ShowUserResponse, error) {
|
|
rsp, err := c.ShowUser(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseShowUserResponse(rsp)
|
|
}
|
|
|
|
// Create10WithBodyWithResponse request with arbitrary body returning *Create10Response
|
|
func (c *ClientWithResponses) Create10WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create10Response, error) {
|
|
rsp, err := c.Create10WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate10Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create10WithResponse(ctx context.Context, workspaceId string, body Create10JSONRequestBody, reqEditors ...RequestEditorFn) (*Create10Response, error) {
|
|
rsp, err := c.Create10(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate10Response(rsp)
|
|
}
|
|
|
|
// Delete10WithResponse request returning *Delete10Response
|
|
func (c *ClientWithResponses) Delete10WithResponse(ctx context.Context, workspaceId string, milestoneId string, reqEditors ...RequestEditorFn) (*Delete10Response, error) {
|
|
rsp, err := c.Delete10(ctx, workspaceId, milestoneId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete10Response(rsp)
|
|
}
|
|
|
|
// Get2WithResponse request returning *Get2Response
|
|
func (c *ClientWithResponses) Get2WithResponse(ctx context.Context, workspaceId string, milestoneId string, reqEditors ...RequestEditorFn) (*Get2Response, error) {
|
|
rsp, err := c.Get2(ctx, workspaceId, milestoneId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGet2Response(rsp)
|
|
}
|
|
|
|
// Edit1WithBodyWithResponse request with arbitrary body returning *Edit1Response
|
|
func (c *ClientWithResponses) Edit1WithBodyWithResponse(ctx context.Context, workspaceId string, milestoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Edit1Response, error) {
|
|
rsp, err := c.Edit1WithBody(ctx, workspaceId, milestoneId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEdit1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Edit1WithResponse(ctx context.Context, workspaceId string, milestoneId string, body Edit1JSONRequestBody, reqEditors ...RequestEditorFn) (*Edit1Response, error) {
|
|
rsp, err := c.Edit1(ctx, workspaceId, milestoneId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEdit1Response(rsp)
|
|
}
|
|
|
|
// EditDateWithBodyWithResponse request with arbitrary body returning *EditDateResponse
|
|
func (c *ClientWithResponses) EditDateWithBodyWithResponse(ctx context.Context, workspaceId string, milestoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditDateResponse, error) {
|
|
rsp, err := c.EditDateWithBody(ctx, workspaceId, milestoneId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditDateResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) EditDateWithResponse(ctx context.Context, workspaceId string, milestoneId string, body EditDateJSONRequestBody, reqEditors ...RequestEditorFn) (*EditDateResponse, error) {
|
|
rsp, err := c.EditDate(ctx, workspaceId, milestoneId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEditDateResponse(rsp)
|
|
}
|
|
|
|
// GetProjectsWithResponse request returning *GetProjectsResponse
|
|
func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, workspaceId string, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error) {
|
|
rsp, err := c.GetProjects(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetProjectsResponse(rsp)
|
|
}
|
|
|
|
// GetUsers2WithResponse request returning *GetUsers2Response
|
|
func (c *ClientWithResponses) GetUsers2WithResponse(ctx context.Context, workspaceId string, params *GetUsers2Params, reqEditors ...RequestEditorFn) (*GetUsers2Response, error) {
|
|
rsp, err := c.GetUsers2(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsers2Response(rsp)
|
|
}
|
|
|
|
// GetUsersAssignedToProjectWithResponse request returning *GetUsersAssignedToProjectResponse
|
|
func (c *ClientWithResponses) GetUsersAssignedToProjectWithResponse(ctx context.Context, workspaceId string, projectId string, params *GetUsersAssignedToProjectParams, reqEditors ...RequestEditorFn) (*GetUsersAssignedToProjectResponse, error) {
|
|
rsp, err := c.GetUsersAssignedToProject(ctx, workspaceId, projectId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersAssignedToProjectResponse(rsp)
|
|
}
|
|
|
|
// GetSidebarConfigWithResponse request returning *GetSidebarConfigResponse
|
|
func (c *ClientWithResponses) GetSidebarConfigWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetSidebarConfigResponse, error) {
|
|
rsp, err := c.GetSidebarConfig(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetSidebarConfigResponse(rsp)
|
|
}
|
|
|
|
// UpdateSidebarWithBodyWithResponse request with arbitrary body returning *UpdateSidebarResponse
|
|
func (c *ClientWithResponses) UpdateSidebarWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSidebarResponse, error) {
|
|
rsp, err := c.UpdateSidebarWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateSidebarResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateSidebarWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateSidebarJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSidebarResponse, error) {
|
|
rsp, err := c.UpdateSidebar(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateSidebarResponse(rsp)
|
|
}
|
|
|
|
// FilterUsersByStatusWithBodyWithResponse request with arbitrary body returning *FilterUsersByStatusResponse
|
|
func (c *ClientWithResponses) FilterUsersByStatusWithBodyWithResponse(ctx context.Context, workspaceId string, params *FilterUsersByStatusParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FilterUsersByStatusResponse, error) {
|
|
rsp, err := c.FilterUsersByStatusWithBody(ctx, workspaceId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseFilterUsersByStatusResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) FilterUsersByStatusWithResponse(ctx context.Context, workspaceId string, params *FilterUsersByStatusParams, body FilterUsersByStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*FilterUsersByStatusResponse, error) {
|
|
rsp, err := c.FilterUsersByStatus(ctx, workspaceId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseFilterUsersByStatusResponse(rsp)
|
|
}
|
|
|
|
// Delete9WithBodyWithResponse request with arbitrary body returning *Delete9Response
|
|
func (c *ClientWithResponses) Delete9WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Delete9Response, error) {
|
|
rsp, err := c.Delete9WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete9Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Delete9WithResponse(ctx context.Context, workspaceId string, body Delete9JSONRequestBody, reqEditors ...RequestEditorFn) (*Delete9Response, error) {
|
|
rsp, err := c.Delete9(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete9Response(rsp)
|
|
}
|
|
|
|
// StopWithBodyWithResponse request with arbitrary body returning *StopResponse
|
|
func (c *ClientWithResponses) StopWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StopResponse, error) {
|
|
rsp, err := c.StopWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseStopResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) StopWithResponse(ctx context.Context, workspaceId string, body StopJSONRequestBody, reqEditors ...RequestEditorFn) (*StopResponse, error) {
|
|
rsp, err := c.Stop(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseStopResponse(rsp)
|
|
}
|
|
|
|
// StartWithBodyWithResponse request with arbitrary body returning *StartResponse
|
|
func (c *ClientWithResponses) StartWithBodyWithResponse(ctx context.Context, workspaceId string, params *StartParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartResponse, error) {
|
|
rsp, err := c.StartWithBody(ctx, workspaceId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseStartResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) StartWithResponse(ctx context.Context, workspaceId string, params *StartParams, body StartJSONRequestBody, reqEditors ...RequestEditorFn) (*StartResponse, error) {
|
|
rsp, err := c.Start(ctx, workspaceId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseStartResponse(rsp)
|
|
}
|
|
|
|
// DeleteMany1WithBodyWithResponse request with arbitrary body returning *DeleteMany1Response
|
|
func (c *ClientWithResponses) DeleteMany1WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMany1Response, error) {
|
|
rsp, err := c.DeleteMany1WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteMany1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) DeleteMany1WithResponse(ctx context.Context, workspaceId string, body DeleteMany1JSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMany1Response, error) {
|
|
rsp, err := c.DeleteMany1(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteMany1Response(rsp)
|
|
}
|
|
|
|
// GetTagsWithResponse request returning *GetTagsResponse
|
|
func (c *ClientWithResponses) GetTagsWithResponse(ctx context.Context, workspaceId string, params *GetTagsParams, reqEditors ...RequestEditorFn) (*GetTagsResponse, error) {
|
|
rsp, err := c.GetTags(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTagsResponse(rsp)
|
|
}
|
|
|
|
// UpdateManyWithBodyWithResponse request with arbitrary body returning *UpdateManyResponse
|
|
func (c *ClientWithResponses) UpdateManyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateManyResponse, error) {
|
|
rsp, err := c.UpdateManyWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateManyResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateManyWithResponse(ctx context.Context, workspaceId string, body UpdateManyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateManyResponse, error) {
|
|
rsp, err := c.UpdateMany(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateManyResponse(rsp)
|
|
}
|
|
|
|
// Create9WithBodyWithResponse request with arbitrary body returning *Create9Response
|
|
func (c *ClientWithResponses) Create9WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create9Response, error) {
|
|
rsp, err := c.Create9WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate9Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create9WithResponse(ctx context.Context, workspaceId string, body Create9JSONRequestBody, reqEditors ...RequestEditorFn) (*Create9Response, error) {
|
|
rsp, err := c.Create9(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate9Response(rsp)
|
|
}
|
|
|
|
// ConnectedToApprovedEntriesWithBodyWithResponse request with arbitrary body returning *ConnectedToApprovedEntriesResponse
|
|
func (c *ClientWithResponses) ConnectedToApprovedEntriesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ConnectedToApprovedEntriesResponse, error) {
|
|
rsp, err := c.ConnectedToApprovedEntriesWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseConnectedToApprovedEntriesResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) ConnectedToApprovedEntriesWithResponse(ctx context.Context, workspaceId string, body ConnectedToApprovedEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*ConnectedToApprovedEntriesResponse, error) {
|
|
rsp, err := c.ConnectedToApprovedEntries(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseConnectedToApprovedEntriesResponse(rsp)
|
|
}
|
|
|
|
// GetTagsOfIdsWithBodyWithResponse request with arbitrary body returning *GetTagsOfIdsResponse
|
|
func (c *ClientWithResponses) GetTagsOfIdsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTagsOfIdsResponse, error) {
|
|
rsp, err := c.GetTagsOfIdsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTagsOfIdsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetTagsOfIdsWithResponse(ctx context.Context, workspaceId string, body GetTagsOfIdsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTagsOfIdsResponse, error) {
|
|
rsp, err := c.GetTagsOfIds(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTagsOfIdsResponse(rsp)
|
|
}
|
|
|
|
// GetTagIdsByNameAndStatusWithResponse request returning *GetTagIdsByNameAndStatusResponse
|
|
func (c *ClientWithResponses) GetTagIdsByNameAndStatusWithResponse(ctx context.Context, workspaceId string, params *GetTagIdsByNameAndStatusParams, reqEditors ...RequestEditorFn) (*GetTagIdsByNameAndStatusResponse, error) {
|
|
rsp, err := c.GetTagIdsByNameAndStatus(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTagIdsByNameAndStatusResponse(rsp)
|
|
}
|
|
|
|
// Delete8WithResponse request returning *Delete8Response
|
|
func (c *ClientWithResponses) Delete8WithResponse(ctx context.Context, workspaceId string, tagId string, reqEditors ...RequestEditorFn) (*Delete8Response, error) {
|
|
rsp, err := c.Delete8(ctx, workspaceId, tagId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete8Response(rsp)
|
|
}
|
|
|
|
// Update4WithBodyWithResponse request with arbitrary body returning *Update4Response
|
|
func (c *ClientWithResponses) Update4WithBodyWithResponse(ctx context.Context, workspaceId string, tagId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update4Response, error) {
|
|
rsp, err := c.Update4WithBody(ctx, workspaceId, tagId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate4Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Update4WithResponse(ctx context.Context, workspaceId string, tagId string, body Update4JSONRequestBody, reqEditors ...RequestEditorFn) (*Update4Response, error) {
|
|
rsp, err := c.Update4(ctx, workspaceId, tagId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate4Response(rsp)
|
|
}
|
|
|
|
// GetTemplatesWithResponse request returning *GetTemplatesResponse
|
|
func (c *ClientWithResponses) GetTemplatesWithResponse(ctx context.Context, workspaceId string, params *GetTemplatesParams, reqEditors ...RequestEditorFn) (*GetTemplatesResponse, error) {
|
|
rsp, err := c.GetTemplates(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTemplatesResponse(rsp)
|
|
}
|
|
|
|
// Create8WithBodyWithResponse request with arbitrary body returning *Create8Response
|
|
func (c *ClientWithResponses) Create8WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create8Response, error) {
|
|
rsp, err := c.Create8WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate8Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create8WithResponse(ctx context.Context, workspaceId string, body Create8JSONRequestBody, reqEditors ...RequestEditorFn) (*Create8Response, error) {
|
|
rsp, err := c.Create8(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate8Response(rsp)
|
|
}
|
|
|
|
// Delete7WithResponse request returning *Delete7Response
|
|
func (c *ClientWithResponses) Delete7WithResponse(ctx context.Context, workspaceId string, templateId string, reqEditors ...RequestEditorFn) (*Delete7Response, error) {
|
|
rsp, err := c.Delete7(ctx, workspaceId, templateId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete7Response(rsp)
|
|
}
|
|
|
|
// GetTemplateWithResponse request returning *GetTemplateResponse
|
|
func (c *ClientWithResponses) GetTemplateWithResponse(ctx context.Context, workspaceId string, templateId string, params *GetTemplateParams, reqEditors ...RequestEditorFn) (*GetTemplateResponse, error) {
|
|
rsp, err := c.GetTemplate(ctx, workspaceId, templateId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTemplateResponse(rsp)
|
|
}
|
|
|
|
// Update13WithBodyWithResponse request with arbitrary body returning *Update13Response
|
|
func (c *ClientWithResponses) Update13WithBodyWithResponse(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update13Response, error) {
|
|
rsp, err := c.Update13WithBody(ctx, workspaceId, templateId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate13Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Update13WithResponse(ctx context.Context, workspaceId string, templateId string, body Update13JSONRequestBody, reqEditors ...RequestEditorFn) (*Update13Response, error) {
|
|
rsp, err := c.Update13(ctx, workspaceId, templateId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate13Response(rsp)
|
|
}
|
|
|
|
// ActivateWithBodyWithResponse request with arbitrary body returning *ActivateResponse
|
|
func (c *ClientWithResponses) ActivateWithBodyWithResponse(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ActivateResponse, error) {
|
|
rsp, err := c.ActivateWithBody(ctx, workspaceId, templateId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseActivateResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) ActivateWithResponse(ctx context.Context, workspaceId string, templateId string, body ActivateJSONRequestBody, reqEditors ...RequestEditorFn) (*ActivateResponse, error) {
|
|
rsp, err := c.Activate(ctx, workspaceId, templateId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseActivateResponse(rsp)
|
|
}
|
|
|
|
// DeactivateWithBodyWithResponse request with arbitrary body returning *DeactivateResponse
|
|
func (c *ClientWithResponses) DeactivateWithBodyWithResponse(ctx context.Context, workspaceId string, templateId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeactivateResponse, error) {
|
|
rsp, err := c.DeactivateWithBody(ctx, workspaceId, templateId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeactivateResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) DeactivateWithResponse(ctx context.Context, workspaceId string, templateId string, body DeactivateJSONRequestBody, reqEditors ...RequestEditorFn) (*DeactivateResponse, error) {
|
|
rsp, err := c.Deactivate(ctx, workspaceId, templateId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeactivateResponse(rsp)
|
|
}
|
|
|
|
// CopyTimeEntriesWithBodyWithResponse request with arbitrary body returning *CopyTimeEntriesResponse
|
|
func (c *ClientWithResponses) CopyTimeEntriesWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyTimeEntriesResponse, error) {
|
|
rsp, err := c.CopyTimeEntriesWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCopyTimeEntriesResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CopyTimeEntriesWithResponse(ctx context.Context, workspaceId string, userId string, body CopyTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyTimeEntriesResponse, error) {
|
|
rsp, err := c.CopyTimeEntries(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCopyTimeEntriesResponse(rsp)
|
|
}
|
|
|
|
// ContinueTimeEntryWithResponse request returning *ContinueTimeEntryResponse
|
|
func (c *ClientWithResponses) ContinueTimeEntryWithResponse(ctx context.Context, workspaceId string, timeEntryId string, reqEditors ...RequestEditorFn) (*ContinueTimeEntryResponse, error) {
|
|
rsp, err := c.ContinueTimeEntry(ctx, workspaceId, timeEntryId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseContinueTimeEntryResponse(rsp)
|
|
}
|
|
|
|
// GetTeamMembersOfAdminWithResponse request returning *GetTeamMembersOfAdminResponse
|
|
func (c *ClientWithResponses) GetTeamMembersOfAdminWithResponse(ctx context.Context, workspaceId string, params *GetTeamMembersOfAdminParams, reqEditors ...RequestEditorFn) (*GetTeamMembersOfAdminResponse, error) {
|
|
rsp, err := c.GetTeamMembersOfAdmin(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTeamMembersOfAdminResponse(rsp)
|
|
}
|
|
|
|
// GetBalancesForPolicyWithResponse request returning *GetBalancesForPolicyResponse
|
|
func (c *ClientWithResponses) GetBalancesForPolicyWithResponse(ctx context.Context, workspaceId string, policyId string, params *GetBalancesForPolicyParams, reqEditors ...RequestEditorFn) (*GetBalancesForPolicyResponse, error) {
|
|
rsp, err := c.GetBalancesForPolicy(ctx, workspaceId, policyId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetBalancesForPolicyResponse(rsp)
|
|
}
|
|
|
|
// UpdateBalanceWithBodyWithResponse request with arbitrary body returning *UpdateBalanceResponse
|
|
func (c *ClientWithResponses) UpdateBalanceWithBodyWithResponse(ctx context.Context, workspaceId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBalanceResponse, error) {
|
|
rsp, err := c.UpdateBalanceWithBody(ctx, workspaceId, policyId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateBalanceResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateBalanceWithResponse(ctx context.Context, workspaceId string, policyId string, body UpdateBalanceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBalanceResponse, error) {
|
|
rsp, err := c.UpdateBalance(ctx, workspaceId, policyId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateBalanceResponse(rsp)
|
|
}
|
|
|
|
// GetBalancesForUserWithResponse request returning *GetBalancesForUserResponse
|
|
func (c *ClientWithResponses) GetBalancesForUserWithResponse(ctx context.Context, workspaceId string, userId string, params *GetBalancesForUserParams, reqEditors ...RequestEditorFn) (*GetBalancesForUserResponse, error) {
|
|
rsp, err := c.GetBalancesForUser(ctx, workspaceId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetBalancesForUserResponse(rsp)
|
|
}
|
|
|
|
// GetTeamMembersOfManagerWithResponse request returning *GetTeamMembersOfManagerResponse
|
|
func (c *ClientWithResponses) GetTeamMembersOfManagerWithResponse(ctx context.Context, workspaceId string, params *GetTeamMembersOfManagerParams, reqEditors ...RequestEditorFn) (*GetTeamMembersOfManagerResponse, error) {
|
|
rsp, err := c.GetTeamMembersOfManager(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTeamMembersOfManagerResponse(rsp)
|
|
}
|
|
|
|
// FindPoliciesForWorkspaceWithResponse request returning *FindPoliciesForWorkspaceResponse
|
|
func (c *ClientWithResponses) FindPoliciesForWorkspaceWithResponse(ctx context.Context, workspaceId string, params *FindPoliciesForWorkspaceParams, reqEditors ...RequestEditorFn) (*FindPoliciesForWorkspaceResponse, error) {
|
|
rsp, err := c.FindPoliciesForWorkspace(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseFindPoliciesForWorkspaceResponse(rsp)
|
|
}
|
|
|
|
// CreatePolicyWithBodyWithResponse request with arbitrary body returning *CreatePolicyResponse
|
|
func (c *ClientWithResponses) CreatePolicyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error) {
|
|
rsp, err := c.CreatePolicyWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreatePolicyResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreatePolicyWithResponse(ctx context.Context, workspaceId string, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error) {
|
|
rsp, err := c.CreatePolicy(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreatePolicyResponse(rsp)
|
|
}
|
|
|
|
// GetPolicyAssignmentForCurrentUserWithResponse request returning *GetPolicyAssignmentForCurrentUserResponse
|
|
func (c *ClientWithResponses) GetPolicyAssignmentForCurrentUserWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetPolicyAssignmentForCurrentUserResponse, error) {
|
|
rsp, err := c.GetPolicyAssignmentForCurrentUser(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetPolicyAssignmentForCurrentUserResponse(rsp)
|
|
}
|
|
|
|
// GetTeamAssignmentsDistributionWithResponse request returning *GetTeamAssignmentsDistributionResponse
|
|
func (c *ClientWithResponses) GetTeamAssignmentsDistributionWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetTeamAssignmentsDistributionResponse, error) {
|
|
rsp, err := c.GetTeamAssignmentsDistribution(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTeamAssignmentsDistributionResponse(rsp)
|
|
}
|
|
|
|
// GetPolicyAssignmentsForUserWithResponse request returning *GetPolicyAssignmentsForUserResponse
|
|
func (c *ClientWithResponses) GetPolicyAssignmentsForUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetPolicyAssignmentsForUserResponse, error) {
|
|
rsp, err := c.GetPolicyAssignmentsForUser(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetPolicyAssignmentsForUserResponse(rsp)
|
|
}
|
|
|
|
// FindPoliciesForUserWithResponse request returning *FindPoliciesForUserResponse
|
|
func (c *ClientWithResponses) FindPoliciesForUserWithResponse(ctx context.Context, workspaceId string, userId string, params *FindPoliciesForUserParams, reqEditors ...RequestEditorFn) (*FindPoliciesForUserResponse, error) {
|
|
rsp, err := c.FindPoliciesForUser(ctx, workspaceId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseFindPoliciesForUserResponse(rsp)
|
|
}
|
|
|
|
// DeletePolicyWithResponse request returning *DeletePolicyResponse
|
|
func (c *ClientWithResponses) DeletePolicyWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*DeletePolicyResponse, error) {
|
|
rsp, err := c.DeletePolicy(ctx, workspaceId, id, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeletePolicyResponse(rsp)
|
|
}
|
|
|
|
// UpdatePolicyWithBodyWithResponse request with arbitrary body returning *UpdatePolicyResponse
|
|
func (c *ClientWithResponses) UpdatePolicyWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error) {
|
|
rsp, err := c.UpdatePolicyWithBody(ctx, workspaceId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdatePolicyResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdatePolicyWithResponse(ctx context.Context, workspaceId string, id string, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error) {
|
|
rsp, err := c.UpdatePolicy(ctx, workspaceId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdatePolicyResponse(rsp)
|
|
}
|
|
|
|
// ArchiveWithResponse request returning *ArchiveResponse
|
|
func (c *ClientWithResponses) ArchiveWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*ArchiveResponse, error) {
|
|
rsp, err := c.Archive(ctx, workspaceId, id, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseArchiveResponse(rsp)
|
|
}
|
|
|
|
// RestoreWithResponse request returning *RestoreResponse
|
|
func (c *ClientWithResponses) RestoreWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*RestoreResponse, error) {
|
|
rsp, err := c.Restore(ctx, workspaceId, id, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRestoreResponse(rsp)
|
|
}
|
|
|
|
// GetPolicyWithResponse request returning *GetPolicyResponse
|
|
func (c *ClientWithResponses) GetPolicyWithResponse(ctx context.Context, workspaceId string, policyId string, reqEditors ...RequestEditorFn) (*GetPolicyResponse, error) {
|
|
rsp, err := c.GetPolicy(ctx, workspaceId, policyId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetPolicyResponse(rsp)
|
|
}
|
|
|
|
// Create7WithBodyWithResponse request with arbitrary body returning *Create7Response
|
|
func (c *ClientWithResponses) Create7WithBodyWithResponse(ctx context.Context, workspaceId string, policyId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create7Response, error) {
|
|
rsp, err := c.Create7WithBody(ctx, workspaceId, policyId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate7Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create7WithResponse(ctx context.Context, workspaceId string, policyId string, body Create7JSONRequestBody, reqEditors ...RequestEditorFn) (*Create7Response, error) {
|
|
rsp, err := c.Create7(ctx, workspaceId, policyId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate7Response(rsp)
|
|
}
|
|
|
|
// Delete6WithResponse request returning *Delete6Response
|
|
func (c *ClientWithResponses) Delete6WithResponse(ctx context.Context, workspaceId string, policyId string, requestId string, reqEditors ...RequestEditorFn) (*Delete6Response, error) {
|
|
rsp, err := c.Delete6(ctx, workspaceId, policyId, requestId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete6Response(rsp)
|
|
}
|
|
|
|
// ApproveWithResponse request returning *ApproveResponse
|
|
func (c *ClientWithResponses) ApproveWithResponse(ctx context.Context, workspaceId string, policyId string, requestId string, reqEditors ...RequestEditorFn) (*ApproveResponse, error) {
|
|
rsp, err := c.Approve(ctx, workspaceId, policyId, requestId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseApproveResponse(rsp)
|
|
}
|
|
|
|
// RejectWithBodyWithResponse request with arbitrary body returning *RejectResponse
|
|
func (c *ClientWithResponses) RejectWithBodyWithResponse(ctx context.Context, workspaceId string, policyId string, requestId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RejectResponse, error) {
|
|
rsp, err := c.RejectWithBody(ctx, workspaceId, policyId, requestId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRejectResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) RejectWithResponse(ctx context.Context, workspaceId string, policyId string, requestId string, body RejectJSONRequestBody, reqEditors ...RequestEditorFn) (*RejectResponse, error) {
|
|
rsp, err := c.Reject(ctx, workspaceId, policyId, requestId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRejectResponse(rsp)
|
|
}
|
|
|
|
// CreateForOther1WithBodyWithResponse request with arbitrary body returning *CreateForOther1Response
|
|
func (c *ClientWithResponses) CreateForOther1WithBodyWithResponse(ctx context.Context, workspaceId string, policyId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForOther1Response, error) {
|
|
rsp, err := c.CreateForOther1WithBody(ctx, workspaceId, policyId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateForOther1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateForOther1WithResponse(ctx context.Context, workspaceId string, policyId string, userId string, body CreateForOther1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForOther1Response, error) {
|
|
rsp, err := c.CreateForOther1(ctx, workspaceId, policyId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateForOther1Response(rsp)
|
|
}
|
|
|
|
// Get1WithBodyWithResponse request with arbitrary body returning *Get1Response
|
|
func (c *ClientWithResponses) Get1WithBodyWithResponse(ctx context.Context, workspaceId string, params *Get1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Get1Response, error) {
|
|
rsp, err := c.Get1WithBody(ctx, workspaceId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGet1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Get1WithResponse(ctx context.Context, workspaceId string, params *Get1Params, body Get1JSONRequestBody, reqEditors ...RequestEditorFn) (*Get1Response, error) {
|
|
rsp, err := c.Get1(ctx, workspaceId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGet1Response(rsp)
|
|
}
|
|
|
|
// GetTimeOffRequestByIdWithResponse request returning *GetTimeOffRequestByIdResponse
|
|
func (c *ClientWithResponses) GetTimeOffRequestByIdWithResponse(ctx context.Context, workspaceId string, requestId string, reqEditors ...RequestEditorFn) (*GetTimeOffRequestByIdResponse, error) {
|
|
rsp, err := c.GetTimeOffRequestById(ctx, workspaceId, requestId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimeOffRequestByIdResponse(rsp)
|
|
}
|
|
|
|
// GetAllUsersOfWorkspaceWithResponse request returning *GetAllUsersOfWorkspaceResponse
|
|
func (c *ClientWithResponses) GetAllUsersOfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetAllUsersOfWorkspaceParams, reqEditors ...RequestEditorFn) (*GetAllUsersOfWorkspaceResponse, error) {
|
|
rsp, err := c.GetAllUsersOfWorkspace(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetAllUsersOfWorkspaceResponse(rsp)
|
|
}
|
|
|
|
// GetUserGroupsOfWorkspaceWithResponse request returning *GetUserGroupsOfWorkspaceResponse
|
|
func (c *ClientWithResponses) GetUserGroupsOfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetUserGroupsOfWorkspaceParams, reqEditors ...RequestEditorFn) (*GetUserGroupsOfWorkspaceResponse, error) {
|
|
rsp, err := c.GetUserGroupsOfWorkspace(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserGroupsOfWorkspaceResponse(rsp)
|
|
}
|
|
|
|
// GetUsersOfWorkspaceWithResponse request returning *GetUsersOfWorkspaceResponse
|
|
func (c *ClientWithResponses) GetUsersOfWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetUsersOfWorkspaceParams, reqEditors ...RequestEditorFn) (*GetUsersOfWorkspaceResponse, error) {
|
|
rsp, err := c.GetUsersOfWorkspace(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersOfWorkspaceResponse(rsp)
|
|
}
|
|
|
|
// GetWithBodyWithResponse request with arbitrary body returning *GetResponse
|
|
func (c *ClientWithResponses) GetWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetResponse, error) {
|
|
rsp, err := c.GetWithBody(ctx, workspaceId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetWithResponse(ctx context.Context, workspaceId string, params *GetParams, body GetJSONRequestBody, reqEditors ...RequestEditorFn) (*GetResponse, error) {
|
|
rsp, err := c.Get(ctx, workspaceId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetResponse(rsp)
|
|
}
|
|
|
|
// GetTimelineForReportsWithBodyWithResponse request with arbitrary body returning *GetTimelineForReportsResponse
|
|
func (c *ClientWithResponses) GetTimelineForReportsWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetTimelineForReportsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetTimelineForReportsResponse, error) {
|
|
rsp, err := c.GetTimelineForReportsWithBody(ctx, workspaceId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimelineForReportsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetTimelineForReportsWithResponse(ctx context.Context, workspaceId string, params *GetTimelineForReportsParams, body GetTimelineForReportsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetTimelineForReportsResponse, error) {
|
|
rsp, err := c.GetTimelineForReports(ctx, workspaceId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimelineForReportsResponse(rsp)
|
|
}
|
|
|
|
// DeleteManyWithBodyWithResponse request with arbitrary body returning *DeleteManyResponse
|
|
func (c *ClientWithResponses) DeleteManyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteManyResponse, error) {
|
|
rsp, err := c.DeleteManyWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteManyResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) DeleteManyWithResponse(ctx context.Context, workspaceId string, body DeleteManyJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteManyResponse, error) {
|
|
rsp, err := c.DeleteMany(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteManyResponse(rsp)
|
|
}
|
|
|
|
// GetTimeEntriesBySearchValueWithResponse request returning *GetTimeEntriesBySearchValueResponse
|
|
func (c *ClientWithResponses) GetTimeEntriesBySearchValueWithResponse(ctx context.Context, workspaceId string, params *GetTimeEntriesBySearchValueParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesBySearchValueResponse, error) {
|
|
rsp, err := c.GetTimeEntriesBySearchValue(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimeEntriesBySearchValueResponse(rsp)
|
|
}
|
|
|
|
// Create6WithBodyWithResponse request with arbitrary body returning *Create6Response
|
|
func (c *ClientWithResponses) Create6WithBodyWithResponse(ctx context.Context, workspaceId string, params *Create6Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create6Response, error) {
|
|
rsp, err := c.Create6WithBody(ctx, workspaceId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate6Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create6WithResponse(ctx context.Context, workspaceId string, params *Create6Params, body Create6JSONRequestBody, reqEditors ...RequestEditorFn) (*Create6Response, error) {
|
|
rsp, err := c.Create6(ctx, workspaceId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate6Response(rsp)
|
|
}
|
|
|
|
// PatchTimeEntriesWithBodyWithResponse request with arbitrary body returning *PatchTimeEntriesResponse
|
|
func (c *ClientWithResponses) PatchTimeEntriesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchTimeEntriesResponse, error) {
|
|
rsp, err := c.PatchTimeEntriesWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePatchTimeEntriesResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) PatchTimeEntriesWithResponse(ctx context.Context, workspaceId string, body PatchTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchTimeEntriesResponse, error) {
|
|
rsp, err := c.PatchTimeEntries(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePatchTimeEntriesResponse(rsp)
|
|
}
|
|
|
|
// EndStartedWithBodyWithResponse request with arbitrary body returning *EndStartedResponse
|
|
func (c *ClientWithResponses) EndStartedWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EndStartedResponse, error) {
|
|
rsp, err := c.EndStartedWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEndStartedResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) EndStartedWithResponse(ctx context.Context, workspaceId string, body EndStartedJSONRequestBody, reqEditors ...RequestEditorFn) (*EndStartedResponse, error) {
|
|
rsp, err := c.EndStarted(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseEndStartedResponse(rsp)
|
|
}
|
|
|
|
// GetMultipleTimeEntriesByIdWithResponse request returning *GetMultipleTimeEntriesByIdResponse
|
|
func (c *ClientWithResponses) GetMultipleTimeEntriesByIdWithResponse(ctx context.Context, workspaceId string, params *GetMultipleTimeEntriesByIdParams, reqEditors ...RequestEditorFn) (*GetMultipleTimeEntriesByIdResponse, error) {
|
|
rsp, err := c.GetMultipleTimeEntriesById(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetMultipleTimeEntriesByIdResponse(rsp)
|
|
}
|
|
|
|
// CreateFull1WithBodyWithResponse request with arbitrary body returning *CreateFull1Response
|
|
func (c *ClientWithResponses) CreateFull1WithBodyWithResponse(ctx context.Context, workspaceId string, params *CreateFull1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFull1Response, error) {
|
|
rsp, err := c.CreateFull1WithBody(ctx, workspaceId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateFull1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateFull1WithResponse(ctx context.Context, workspaceId string, params *CreateFull1Params, body CreateFull1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFull1Response, error) {
|
|
rsp, err := c.CreateFull1(ctx, workspaceId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateFull1Response(rsp)
|
|
}
|
|
|
|
// GetTimeEntryInProgressWithResponse request returning *GetTimeEntryInProgressResponse
|
|
func (c *ClientWithResponses) GetTimeEntryInProgressWithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetTimeEntryInProgressResponse, error) {
|
|
rsp, err := c.GetTimeEntryInProgress(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimeEntryInProgressResponse(rsp)
|
|
}
|
|
|
|
// UpdateInvoicedStatusWithBodyWithResponse request with arbitrary body returning *UpdateInvoicedStatusResponse
|
|
func (c *ClientWithResponses) UpdateInvoicedStatusWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoicedStatusResponse, error) {
|
|
rsp, err := c.UpdateInvoicedStatusWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateInvoicedStatusResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateInvoicedStatusWithResponse(ctx context.Context, workspaceId string, body UpdateInvoicedStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoicedStatusResponse, error) {
|
|
rsp, err := c.UpdateInvoicedStatus(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateInvoicedStatusResponse(rsp)
|
|
}
|
|
|
|
// ListOfProjectWithResponse request returning *ListOfProjectResponse
|
|
func (c *ClientWithResponses) ListOfProjectWithResponse(ctx context.Context, workspaceId string, projectId string, reqEditors ...RequestEditorFn) (*ListOfProjectResponse, error) {
|
|
rsp, err := c.ListOfProject(ctx, workspaceId, projectId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseListOfProjectResponse(rsp)
|
|
}
|
|
|
|
// GetTimeEntriesRecentlyUsedWithResponse request returning *GetTimeEntriesRecentlyUsedResponse
|
|
func (c *ClientWithResponses) GetTimeEntriesRecentlyUsedWithResponse(ctx context.Context, workspaceId string, params *GetTimeEntriesRecentlyUsedParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesRecentlyUsedResponse, error) {
|
|
rsp, err := c.GetTimeEntriesRecentlyUsed(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimeEntriesRecentlyUsedResponse(rsp)
|
|
}
|
|
|
|
// RestoreTimeEntriesWithBodyWithResponse request with arbitrary body returning *RestoreTimeEntriesResponse
|
|
func (c *ClientWithResponses) RestoreTimeEntriesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RestoreTimeEntriesResponse, error) {
|
|
rsp, err := c.RestoreTimeEntriesWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRestoreTimeEntriesResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) RestoreTimeEntriesWithResponse(ctx context.Context, workspaceId string, body RestoreTimeEntriesJSONRequestBody, reqEditors ...RequestEditorFn) (*RestoreTimeEntriesResponse, error) {
|
|
rsp, err := c.RestoreTimeEntries(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRestoreTimeEntriesResponse(rsp)
|
|
}
|
|
|
|
// CreateForManyWithBodyWithResponse request with arbitrary body returning *CreateForManyResponse
|
|
func (c *ClientWithResponses) CreateForManyWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForManyResponse, error) {
|
|
rsp, err := c.CreateForManyWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateForManyResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateForManyWithResponse(ctx context.Context, workspaceId string, body CreateForManyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForManyResponse, error) {
|
|
rsp, err := c.CreateForMany(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateForManyResponse(rsp)
|
|
}
|
|
|
|
// CreateForOthersWithBodyWithResponse request with arbitrary body returning *CreateForOthersResponse
|
|
func (c *ClientWithResponses) CreateForOthersWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForOthersResponse, error) {
|
|
rsp, err := c.CreateForOthersWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateForOthersResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateForOthersWithResponse(ctx context.Context, workspaceId string, userId string, body CreateForOthersJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForOthersResponse, error) {
|
|
rsp, err := c.CreateForOthers(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateForOthersResponse(rsp)
|
|
}
|
|
|
|
// ListOfFullWithResponse request returning *ListOfFullResponse
|
|
func (c *ClientWithResponses) ListOfFullWithResponse(ctx context.Context, workspaceId string, userId string, params *ListOfFullParams, reqEditors ...RequestEditorFn) (*ListOfFullResponse, error) {
|
|
rsp, err := c.ListOfFull(ctx, workspaceId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseListOfFullResponse(rsp)
|
|
}
|
|
|
|
// GetTimeEntriesWithResponse request returning *GetTimeEntriesResponse
|
|
func (c *ClientWithResponses) GetTimeEntriesWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesResponse, error) {
|
|
rsp, err := c.GetTimeEntries(ctx, workspaceId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimeEntriesResponse(rsp)
|
|
}
|
|
|
|
// AssertTimeEntriesExistInDateRangeWithResponse request returning *AssertTimeEntriesExistInDateRangeResponse
|
|
func (c *ClientWithResponses) AssertTimeEntriesExistInDateRangeWithResponse(ctx context.Context, workspaceId string, userId string, params *AssertTimeEntriesExistInDateRangeParams, reqEditors ...RequestEditorFn) (*AssertTimeEntriesExistInDateRangeResponse, error) {
|
|
rsp, err := c.AssertTimeEntriesExistInDateRange(ctx, workspaceId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAssertTimeEntriesExistInDateRangeResponse(rsp)
|
|
}
|
|
|
|
// CreateFullWithBodyWithResponse request with arbitrary body returning *CreateFullResponse
|
|
func (c *ClientWithResponses) CreateFullWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, params *CreateFullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFullResponse, error) {
|
|
rsp, err := c.CreateFullWithBody(ctx, workspaceId, userId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateFullResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateFullWithResponse(ctx context.Context, workspaceId string, userId string, params *CreateFullParams, body CreateFullJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFullResponse, error) {
|
|
rsp, err := c.CreateFull(ctx, workspaceId, userId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateFullResponse(rsp)
|
|
}
|
|
|
|
// GetTimeEntriesInRangeWithResponse request returning *GetTimeEntriesInRangeResponse
|
|
func (c *ClientWithResponses) GetTimeEntriesInRangeWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesInRangeParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesInRangeResponse, error) {
|
|
rsp, err := c.GetTimeEntriesInRange(ctx, workspaceId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimeEntriesInRangeResponse(rsp)
|
|
}
|
|
|
|
// GetTimeEntriesForTimesheetWithResponse request returning *GetTimeEntriesForTimesheetResponse
|
|
func (c *ClientWithResponses) GetTimeEntriesForTimesheetWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntriesForTimesheetParams, reqEditors ...RequestEditorFn) (*GetTimeEntriesForTimesheetResponse, error) {
|
|
rsp, err := c.GetTimeEntriesForTimesheet(ctx, workspaceId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimeEntriesForTimesheetResponse(rsp)
|
|
}
|
|
|
|
// PatchWithBodyWithResponse request with arbitrary body returning *PatchResponse
|
|
func (c *ClientWithResponses) PatchWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchResponse, error) {
|
|
rsp, err := c.PatchWithBody(ctx, workspaceId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePatchResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) PatchWithResponse(ctx context.Context, workspaceId string, id string, body PatchJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchResponse, error) {
|
|
rsp, err := c.Patch(ctx, workspaceId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePatchResponse(rsp)
|
|
}
|
|
|
|
// Update3WithBodyWithResponse request with arbitrary body returning *Update3Response
|
|
func (c *ClientWithResponses) Update3WithBodyWithResponse(ctx context.Context, workspaceId string, id string, params *Update3Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update3Response, error) {
|
|
rsp, err := c.Update3WithBody(ctx, workspaceId, id, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate3Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Update3WithResponse(ctx context.Context, workspaceId string, id string, params *Update3Params, body Update3JSONRequestBody, reqEditors ...RequestEditorFn) (*Update3Response, error) {
|
|
rsp, err := c.Update3(ctx, workspaceId, id, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate3Response(rsp)
|
|
}
|
|
|
|
// GetTimeEntryAttributesWithResponse request returning *GetTimeEntryAttributesResponse
|
|
func (c *ClientWithResponses) GetTimeEntryAttributesWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*GetTimeEntryAttributesResponse, error) {
|
|
rsp, err := c.GetTimeEntryAttributes(ctx, workspaceId, id, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimeEntryAttributesResponse(rsp)
|
|
}
|
|
|
|
// CreateTimeEntryAttributeWithBodyWithResponse request with arbitrary body returning *CreateTimeEntryAttributeResponse
|
|
func (c *ClientWithResponses) CreateTimeEntryAttributeWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTimeEntryAttributeResponse, error) {
|
|
rsp, err := c.CreateTimeEntryAttributeWithBody(ctx, workspaceId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateTimeEntryAttributeResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateTimeEntryAttributeWithResponse(ctx context.Context, workspaceId string, id string, body CreateTimeEntryAttributeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTimeEntryAttributeResponse, error) {
|
|
rsp, err := c.CreateTimeEntryAttribute(ctx, workspaceId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateTimeEntryAttributeResponse(rsp)
|
|
}
|
|
|
|
// DeleteTimeEntryAttributeWithBodyWithResponse request with arbitrary body returning *DeleteTimeEntryAttributeResponse
|
|
func (c *ClientWithResponses) DeleteTimeEntryAttributeWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteTimeEntryAttributeResponse, error) {
|
|
rsp, err := c.DeleteTimeEntryAttributeWithBody(ctx, workspaceId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteTimeEntryAttributeResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) DeleteTimeEntryAttributeWithResponse(ctx context.Context, workspaceId string, id string, body DeleteTimeEntryAttributeJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteTimeEntryAttributeResponse, error) {
|
|
rsp, err := c.DeleteTimeEntryAttribute(ctx, workspaceId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteTimeEntryAttributeResponse(rsp)
|
|
}
|
|
|
|
// UpdateBillableWithBodyWithResponse request with arbitrary body returning *UpdateBillableResponse
|
|
func (c *ClientWithResponses) UpdateBillableWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBillableResponse, error) {
|
|
rsp, err := c.UpdateBillableWithBody(ctx, workspaceId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateBillableResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateBillableWithResponse(ctx context.Context, workspaceId string, id string, body UpdateBillableJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBillableResponse, error) {
|
|
rsp, err := c.UpdateBillable(ctx, workspaceId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateBillableResponse(rsp)
|
|
}
|
|
|
|
// UpdateDescriptionWithBodyWithResponse request with arbitrary body returning *UpdateDescriptionResponse
|
|
func (c *ClientWithResponses) UpdateDescriptionWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDescriptionResponse, error) {
|
|
rsp, err := c.UpdateDescriptionWithBody(ctx, workspaceId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateDescriptionResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateDescriptionWithResponse(ctx context.Context, workspaceId string, id string, body UpdateDescriptionJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDescriptionResponse, error) {
|
|
rsp, err := c.UpdateDescription(ctx, workspaceId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateDescriptionResponse(rsp)
|
|
}
|
|
|
|
// UpdateEndWithBodyWithResponse request with arbitrary body returning *UpdateEndResponse
|
|
func (c *ClientWithResponses) UpdateEndWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEndResponse, error) {
|
|
rsp, err := c.UpdateEndWithBody(ctx, workspaceId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateEndResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateEndWithResponse(ctx context.Context, workspaceId string, id string, body UpdateEndJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEndResponse, error) {
|
|
rsp, err := c.UpdateEnd(ctx, workspaceId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateEndResponse(rsp)
|
|
}
|
|
|
|
// UpdateFullWithBodyWithResponse request with arbitrary body returning *UpdateFullResponse
|
|
func (c *ClientWithResponses) UpdateFullWithBodyWithResponse(ctx context.Context, workspaceId string, id string, params *UpdateFullParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFullResponse, error) {
|
|
rsp, err := c.UpdateFullWithBody(ctx, workspaceId, id, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateFullResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateFullWithResponse(ctx context.Context, workspaceId string, id string, params *UpdateFullParams, body UpdateFullJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFullResponse, error) {
|
|
rsp, err := c.UpdateFull(ctx, workspaceId, id, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateFullResponse(rsp)
|
|
}
|
|
|
|
// UpdateProjectWithBodyWithResponse request with arbitrary body returning *UpdateProjectResponse
|
|
func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) {
|
|
rsp, err := c.UpdateProjectWithBody(ctx, workspaceId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateProjectResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, workspaceId string, id string, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) {
|
|
rsp, err := c.UpdateProject(ctx, workspaceId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateProjectResponse(rsp)
|
|
}
|
|
|
|
// RemoveProjectWithResponse request returning *RemoveProjectResponse
|
|
func (c *ClientWithResponses) RemoveProjectWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*RemoveProjectResponse, error) {
|
|
rsp, err := c.RemoveProject(ctx, workspaceId, id, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemoveProjectResponse(rsp)
|
|
}
|
|
|
|
// UpdateProjectAndTaskWithBodyWithResponse request with arbitrary body returning *UpdateProjectAndTaskResponse
|
|
func (c *ClientWithResponses) UpdateProjectAndTaskWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectAndTaskResponse, error) {
|
|
rsp, err := c.UpdateProjectAndTaskWithBody(ctx, workspaceId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateProjectAndTaskResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateProjectAndTaskWithResponse(ctx context.Context, workspaceId string, id string, body UpdateProjectAndTaskJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectAndTaskResponse, error) {
|
|
rsp, err := c.UpdateProjectAndTask(ctx, workspaceId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateProjectAndTaskResponse(rsp)
|
|
}
|
|
|
|
// UpdateAndSplitWithBodyWithResponse request with arbitrary body returning *UpdateAndSplitResponse
|
|
func (c *ClientWithResponses) UpdateAndSplitWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateAndSplitResponse, error) {
|
|
rsp, err := c.UpdateAndSplitWithBody(ctx, workspaceId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateAndSplitResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateAndSplitWithResponse(ctx context.Context, workspaceId string, id string, body UpdateAndSplitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateAndSplitResponse, error) {
|
|
rsp, err := c.UpdateAndSplit(ctx, workspaceId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateAndSplitResponse(rsp)
|
|
}
|
|
|
|
// SplitTimeEntryWithBodyWithResponse request with arbitrary body returning *SplitTimeEntryResponse
|
|
func (c *ClientWithResponses) SplitTimeEntryWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SplitTimeEntryResponse, error) {
|
|
rsp, err := c.SplitTimeEntryWithBody(ctx, workspaceId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSplitTimeEntryResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) SplitTimeEntryWithResponse(ctx context.Context, workspaceId string, id string, body SplitTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*SplitTimeEntryResponse, error) {
|
|
rsp, err := c.SplitTimeEntry(ctx, workspaceId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSplitTimeEntryResponse(rsp)
|
|
}
|
|
|
|
// UpdateStartWithBodyWithResponse request with arbitrary body returning *UpdateStartResponse
|
|
func (c *ClientWithResponses) UpdateStartWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStartResponse, error) {
|
|
rsp, err := c.UpdateStartWithBody(ctx, workspaceId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateStartResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateStartWithResponse(ctx context.Context, workspaceId string, id string, body UpdateStartJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStartResponse, error) {
|
|
rsp, err := c.UpdateStart(ctx, workspaceId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateStartResponse(rsp)
|
|
}
|
|
|
|
// UpdateTagsWithBodyWithResponse request with arbitrary body returning *UpdateTagsResponse
|
|
func (c *ClientWithResponses) UpdateTagsWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTagsResponse, error) {
|
|
rsp, err := c.UpdateTagsWithBody(ctx, workspaceId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateTagsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateTagsWithResponse(ctx context.Context, workspaceId string, id string, body UpdateTagsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTagsResponse, error) {
|
|
rsp, err := c.UpdateTags(ctx, workspaceId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateTagsResponse(rsp)
|
|
}
|
|
|
|
// RemoveTaskWithResponse request returning *RemoveTaskResponse
|
|
func (c *ClientWithResponses) RemoveTaskWithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*RemoveTaskResponse, error) {
|
|
rsp, err := c.RemoveTask(ctx, workspaceId, id, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemoveTaskResponse(rsp)
|
|
}
|
|
|
|
// UpdateTimeIntervalWithBodyWithResponse request with arbitrary body returning *UpdateTimeIntervalResponse
|
|
func (c *ClientWithResponses) UpdateTimeIntervalWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTimeIntervalResponse, error) {
|
|
rsp, err := c.UpdateTimeIntervalWithBody(ctx, workspaceId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateTimeIntervalResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateTimeIntervalWithResponse(ctx context.Context, workspaceId string, id string, body UpdateTimeIntervalJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTimeIntervalResponse, error) {
|
|
rsp, err := c.UpdateTimeInterval(ctx, workspaceId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateTimeIntervalResponse(rsp)
|
|
}
|
|
|
|
// UpdateUserWithBodyWithResponse request with arbitrary body returning *UpdateUserResponse
|
|
func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) {
|
|
rsp, err := c.UpdateUserWithBody(ctx, workspaceId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateUserResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, workspaceId string, id string, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error) {
|
|
rsp, err := c.UpdateUser(ctx, workspaceId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateUserResponse(rsp)
|
|
}
|
|
|
|
// Delete5WithResponse request returning *Delete5Response
|
|
func (c *ClientWithResponses) Delete5WithResponse(ctx context.Context, workspaceId string, timeEntryId string, reqEditors ...RequestEditorFn) (*Delete5Response, error) {
|
|
rsp, err := c.Delete5(ctx, workspaceId, timeEntryId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete5Response(rsp)
|
|
}
|
|
|
|
// UpdateCustomFieldWithBodyWithResponse request with arbitrary body returning *UpdateCustomFieldResponse
|
|
func (c *ClientWithResponses) UpdateCustomFieldWithBodyWithResponse(ctx context.Context, workspaceId string, timeEntryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCustomFieldResponse, error) {
|
|
rsp, err := c.UpdateCustomFieldWithBody(ctx, workspaceId, timeEntryId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateCustomFieldResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateCustomFieldWithResponse(ctx context.Context, workspaceId string, timeEntryId string, body UpdateCustomFieldJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCustomFieldResponse, error) {
|
|
rsp, err := c.UpdateCustomField(ctx, workspaceId, timeEntryId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateCustomFieldResponse(rsp)
|
|
}
|
|
|
|
// PenalizeCurrentTimerAndStartNewTimeEntryWithBodyWithResponse request with arbitrary body returning *PenalizeCurrentTimerAndStartNewTimeEntryResponse
|
|
func (c *ClientWithResponses) PenalizeCurrentTimerAndStartNewTimeEntryWithBodyWithResponse(ctx context.Context, workspaceId string, timeEntryId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PenalizeCurrentTimerAndStartNewTimeEntryResponse, error) {
|
|
rsp, err := c.PenalizeCurrentTimerAndStartNewTimeEntryWithBody(ctx, workspaceId, timeEntryId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePenalizeCurrentTimerAndStartNewTimeEntryResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) PenalizeCurrentTimerAndStartNewTimeEntryWithResponse(ctx context.Context, workspaceId string, timeEntryId string, body PenalizeCurrentTimerAndStartNewTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*PenalizeCurrentTimerAndStartNewTimeEntryResponse, error) {
|
|
rsp, err := c.PenalizeCurrentTimerAndStartNewTimeEntry(ctx, workspaceId, timeEntryId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParsePenalizeCurrentTimerAndStartNewTimeEntryResponse(rsp)
|
|
}
|
|
|
|
// TransferWorkspaceDeprecatedFlowWithBodyWithResponse request with arbitrary body returning *TransferWorkspaceDeprecatedFlowResponse
|
|
func (c *ClientWithResponses) TransferWorkspaceDeprecatedFlowWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferWorkspaceDeprecatedFlowResponse, error) {
|
|
rsp, err := c.TransferWorkspaceDeprecatedFlowWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseTransferWorkspaceDeprecatedFlowResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) TransferWorkspaceDeprecatedFlowWithResponse(ctx context.Context, workspaceId string, body TransferWorkspaceDeprecatedFlowJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferWorkspaceDeprecatedFlowResponse, error) {
|
|
rsp, err := c.TransferWorkspaceDeprecatedFlow(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseTransferWorkspaceDeprecatedFlowResponse(rsp)
|
|
}
|
|
|
|
// TransferWorkspaceWithBodyWithResponse request with arbitrary body returning *TransferWorkspaceResponse
|
|
func (c *ClientWithResponses) TransferWorkspaceWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TransferWorkspaceResponse, error) {
|
|
rsp, err := c.TransferWorkspaceWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseTransferWorkspaceResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) TransferWorkspaceWithResponse(ctx context.Context, workspaceId string, body TransferWorkspaceJSONRequestBody, reqEditors ...RequestEditorFn) (*TransferWorkspaceResponse, error) {
|
|
rsp, err := c.TransferWorkspace(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseTransferWorkspaceResponse(rsp)
|
|
}
|
|
|
|
// GetTrialActivationDataWithResponse request returning *GetTrialActivationDataResponse
|
|
func (c *ClientWithResponses) GetTrialActivationDataWithResponse(ctx context.Context, workspaceId string, params *GetTrialActivationDataParams, reqEditors ...RequestEditorFn) (*GetTrialActivationDataResponse, error) {
|
|
rsp, err := c.GetTrialActivationData(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTrialActivationDataResponse(rsp)
|
|
}
|
|
|
|
// RemoveMemberWithResponse request returning *RemoveMemberResponse
|
|
func (c *ClientWithResponses) RemoveMemberWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*RemoveMemberResponse, error) {
|
|
rsp, err := c.RemoveMember(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemoveMemberResponse(rsp)
|
|
}
|
|
|
|
// CopyTimeEntryCalendarDragWithBodyWithResponse request with arbitrary body returning *CopyTimeEntryCalendarDragResponse
|
|
func (c *ClientWithResponses) CopyTimeEntryCalendarDragWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CopyTimeEntryCalendarDragResponse, error) {
|
|
rsp, err := c.CopyTimeEntryCalendarDragWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCopyTimeEntryCalendarDragResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CopyTimeEntryCalendarDragWithResponse(ctx context.Context, workspaceId string, userId string, body CopyTimeEntryCalendarDragJSONRequestBody, reqEditors ...RequestEditorFn) (*CopyTimeEntryCalendarDragResponse, error) {
|
|
rsp, err := c.CopyTimeEntryCalendarDrag(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCopyTimeEntryCalendarDragResponse(rsp)
|
|
}
|
|
|
|
// DuplicateTimeEntryWithResponse request returning *DuplicateTimeEntryResponse
|
|
func (c *ClientWithResponses) DuplicateTimeEntryWithResponse(ctx context.Context, workspaceId string, userId string, id string, reqEditors ...RequestEditorFn) (*DuplicateTimeEntryResponse, error) {
|
|
rsp, err := c.DuplicateTimeEntry(ctx, workspaceId, userId, id, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDuplicateTimeEntryResponse(rsp)
|
|
}
|
|
|
|
// GetUserGroups1WithResponse request returning *GetUserGroups1Response
|
|
func (c *ClientWithResponses) GetUserGroups1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetUserGroups1Response, error) {
|
|
rsp, err := c.GetUserGroups1(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserGroups1Response(rsp)
|
|
}
|
|
|
|
// Create5WithBodyWithResponse request with arbitrary body returning *Create5Response
|
|
func (c *ClientWithResponses) Create5WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create5Response, error) {
|
|
rsp, err := c.Create5WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate5Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create5WithResponse(ctx context.Context, workspaceId string, body Create5JSONRequestBody, reqEditors ...RequestEditorFn) (*Create5Response, error) {
|
|
rsp, err := c.Create5(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate5Response(rsp)
|
|
}
|
|
|
|
// GetUserGroups2WithResponse request returning *GetUserGroups2Response
|
|
func (c *ClientWithResponses) GetUserGroups2WithResponse(ctx context.Context, workspaceId string, params *GetUserGroups2Params, reqEditors ...RequestEditorFn) (*GetUserGroups2Response, error) {
|
|
rsp, err := c.GetUserGroups2(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserGroups2Response(rsp)
|
|
}
|
|
|
|
// GetUserGroupNamesWithBodyWithResponse request with arbitrary body returning *GetUserGroupNamesResponse
|
|
func (c *ClientWithResponses) GetUserGroupNamesWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserGroupNamesResponse, error) {
|
|
rsp, err := c.GetUserGroupNamesWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserGroupNamesResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetUserGroupNamesWithResponse(ctx context.Context, workspaceId string, body GetUserGroupNamesJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserGroupNamesResponse, error) {
|
|
rsp, err := c.GetUserGroupNames(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserGroupNamesResponse(rsp)
|
|
}
|
|
|
|
// GetUsersForReportFilter1WithResponse request returning *GetUsersForReportFilter1Response
|
|
func (c *ClientWithResponses) GetUsersForReportFilter1WithResponse(ctx context.Context, workspaceId string, params *GetUsersForReportFilter1Params, reqEditors ...RequestEditorFn) (*GetUsersForReportFilter1Response, error) {
|
|
rsp, err := c.GetUsersForReportFilter1(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersForReportFilter1Response(rsp)
|
|
}
|
|
|
|
// GetUserGroupForReportFilterPostWithBodyWithResponse request with arbitrary body returning *GetUserGroupForReportFilterPostResponse
|
|
func (c *ClientWithResponses) GetUserGroupForReportFilterPostWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserGroupForReportFilterPostResponse, error) {
|
|
rsp, err := c.GetUserGroupForReportFilterPostWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserGroupForReportFilterPostResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetUserGroupForReportFilterPostWithResponse(ctx context.Context, workspaceId string, body GetUserGroupForReportFilterPostJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserGroupForReportFilterPostResponse, error) {
|
|
rsp, err := c.GetUserGroupForReportFilterPost(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserGroupForReportFilterPostResponse(rsp)
|
|
}
|
|
|
|
// GetUsersForAttendanceReportFilterWithBodyWithResponse request with arbitrary body returning *GetUsersForAttendanceReportFilterResponse
|
|
func (c *ClientWithResponses) GetUsersForAttendanceReportFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersForAttendanceReportFilterResponse, error) {
|
|
rsp, err := c.GetUsersForAttendanceReportFilterWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersForAttendanceReportFilterResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetUsersForAttendanceReportFilterWithResponse(ctx context.Context, workspaceId string, body GetUsersForAttendanceReportFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersForAttendanceReportFilterResponse, error) {
|
|
rsp, err := c.GetUsersForAttendanceReportFilter(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersForAttendanceReportFilterResponse(rsp)
|
|
}
|
|
|
|
// GetUserGroupIdsByNameWithResponse request returning *GetUserGroupIdsByNameResponse
|
|
func (c *ClientWithResponses) GetUserGroupIdsByNameWithResponse(ctx context.Context, workspaceId string, params *GetUserGroupIdsByNameParams, reqEditors ...RequestEditorFn) (*GetUserGroupIdsByNameResponse, error) {
|
|
rsp, err := c.GetUserGroupIdsByName(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserGroupIdsByNameResponse(rsp)
|
|
}
|
|
|
|
// GetUserGroupsWithBodyWithResponse request with arbitrary body returning *GetUserGroupsResponse
|
|
func (c *ClientWithResponses) GetUserGroupsWithBodyWithResponse(ctx context.Context, workspaceId string, params *GetUserGroupsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUserGroupsResponse, error) {
|
|
rsp, err := c.GetUserGroupsWithBody(ctx, workspaceId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserGroupsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetUserGroupsWithResponse(ctx context.Context, workspaceId string, params *GetUserGroupsParams, body GetUserGroupsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUserGroupsResponse, error) {
|
|
rsp, err := c.GetUserGroups(ctx, workspaceId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserGroupsResponse(rsp)
|
|
}
|
|
|
|
// RemoveUserWithBodyWithResponse request with arbitrary body returning *RemoveUserResponse
|
|
func (c *ClientWithResponses) RemoveUserWithBodyWithResponse(ctx context.Context, workspaceId string, params *RemoveUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RemoveUserResponse, error) {
|
|
rsp, err := c.RemoveUserWithBody(ctx, workspaceId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemoveUserResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) RemoveUserWithResponse(ctx context.Context, workspaceId string, params *RemoveUserParams, body RemoveUserJSONRequestBody, reqEditors ...RequestEditorFn) (*RemoveUserResponse, error) {
|
|
rsp, err := c.RemoveUser(ctx, workspaceId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemoveUserResponse(rsp)
|
|
}
|
|
|
|
// AddUsersToUserGroupsFilterWithBodyWithResponse request with arbitrary body returning *AddUsersToUserGroupsFilterResponse
|
|
func (c *ClientWithResponses) AddUsersToUserGroupsFilterWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsersToUserGroupsFilterResponse, error) {
|
|
rsp, err := c.AddUsersToUserGroupsFilterWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddUsersToUserGroupsFilterResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) AddUsersToUserGroupsFilterWithResponse(ctx context.Context, workspaceId string, body AddUsersToUserGroupsFilterJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsersToUserGroupsFilterResponse, error) {
|
|
rsp, err := c.AddUsersToUserGroupsFilter(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddUsersToUserGroupsFilterResponse(rsp)
|
|
}
|
|
|
|
// Delete4WithResponse request returning *Delete4Response
|
|
func (c *ClientWithResponses) Delete4WithResponse(ctx context.Context, workspaceId string, id string, reqEditors ...RequestEditorFn) (*Delete4Response, error) {
|
|
rsp, err := c.Delete4(ctx, workspaceId, id, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete4Response(rsp)
|
|
}
|
|
|
|
// Update2WithBodyWithResponse request with arbitrary body returning *Update2Response
|
|
func (c *ClientWithResponses) Update2WithBodyWithResponse(ctx context.Context, workspaceId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update2Response, error) {
|
|
rsp, err := c.Update2WithBody(ctx, workspaceId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate2Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Update2WithResponse(ctx context.Context, workspaceId string, id string, body Update2JSONRequestBody, reqEditors ...RequestEditorFn) (*Update2Response, error) {
|
|
rsp, err := c.Update2(ctx, workspaceId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate2Response(rsp)
|
|
}
|
|
|
|
// GetUsersWithBodyWithResponse request with arbitrary body returning *GetUsersResponse
|
|
func (c *ClientWithResponses) GetUsersWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetUsersResponse, error) {
|
|
rsp, err := c.GetUsersWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetUsersWithResponse(ctx context.Context, workspaceId string, body GetUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*GetUsersResponse, error) {
|
|
rsp, err := c.GetUsers(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsersResponse(rsp)
|
|
}
|
|
|
|
// GetUsers1WithResponse request returning *GetUsers1Response
|
|
func (c *ClientWithResponses) GetUsers1WithResponse(ctx context.Context, workspaceId string, reqEditors ...RequestEditorFn) (*GetUsers1Response, error) {
|
|
rsp, err := c.GetUsers1(ctx, workspaceId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUsers1Response(rsp)
|
|
}
|
|
|
|
// AddUsersWithBodyWithResponse request with arbitrary body returning *AddUsersResponse
|
|
func (c *ClientWithResponses) AddUsersWithBodyWithResponse(ctx context.Context, workspaceId string, params *AddUsersParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUsersResponse, error) {
|
|
rsp, err := c.AddUsersWithBody(ctx, workspaceId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddUsersResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) AddUsersWithResponse(ctx context.Context, workspaceId string, params *AddUsersParams, body AddUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUsersResponse, error) {
|
|
rsp, err := c.AddUsers(ctx, workspaceId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseAddUsersResponse(rsp)
|
|
}
|
|
|
|
// GetExpensesForUsersWithResponse request returning *GetExpensesForUsersResponse
|
|
func (c *ClientWithResponses) GetExpensesForUsersWithResponse(ctx context.Context, workspaceId string, params *GetExpensesForUsersParams, reqEditors ...RequestEditorFn) (*GetExpensesForUsersResponse, error) {
|
|
rsp, err := c.GetExpensesForUsers(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetExpensesForUsersResponse(rsp)
|
|
}
|
|
|
|
// SetMembershipsWithBodyWithResponse request with arbitrary body returning *SetMembershipsResponse
|
|
func (c *ClientWithResponses) SetMembershipsWithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetMembershipsResponse, error) {
|
|
rsp, err := c.SetMembershipsWithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetMembershipsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) SetMembershipsWithResponse(ctx context.Context, workspaceId string, body SetMembershipsJSONRequestBody, reqEditors ...RequestEditorFn) (*SetMembershipsResponse, error) {
|
|
rsp, err := c.SetMemberships(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetMembershipsResponse(rsp)
|
|
}
|
|
|
|
// ResendInviteWithResponse request returning *ResendInviteResponse
|
|
func (c *ClientWithResponses) ResendInviteWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*ResendInviteResponse, error) {
|
|
rsp, err := c.ResendInvite(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseResendInviteResponse(rsp)
|
|
}
|
|
|
|
// CreateDeprecatedWithBodyWithResponse request with arbitrary body returning *CreateDeprecatedResponse
|
|
func (c *ClientWithResponses) CreateDeprecatedWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDeprecatedResponse, error) {
|
|
rsp, err := c.CreateDeprecatedWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateDeprecatedResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateDeprecatedWithResponse(ctx context.Context, workspaceId string, userId string, body CreateDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDeprecatedResponse, error) {
|
|
rsp, err := c.CreateDeprecated(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateDeprecatedResponse(rsp)
|
|
}
|
|
|
|
// GetRequestsByUserWithResponse request returning *GetRequestsByUserResponse
|
|
func (c *ClientWithResponses) GetRequestsByUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetRequestsByUserResponse, error) {
|
|
rsp, err := c.GetRequestsByUser(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetRequestsByUserResponse(rsp)
|
|
}
|
|
|
|
// GetApprovedTotalsWithBodyWithResponse request with arbitrary body returning *GetApprovedTotalsResponse
|
|
func (c *ClientWithResponses) GetApprovedTotalsWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetApprovedTotalsResponse, error) {
|
|
rsp, err := c.GetApprovedTotalsWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApprovedTotalsResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetApprovedTotalsWithResponse(ctx context.Context, workspaceId string, userId string, body GetApprovedTotalsJSONRequestBody, reqEditors ...RequestEditorFn) (*GetApprovedTotalsResponse, error) {
|
|
rsp, err := c.GetApprovedTotals(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetApprovedTotalsResponse(rsp)
|
|
}
|
|
|
|
// CreateForOtherDeprecatedWithBodyWithResponse request with arbitrary body returning *CreateForOtherDeprecatedResponse
|
|
func (c *ClientWithResponses) CreateForOtherDeprecatedWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForOtherDeprecatedResponse, error) {
|
|
rsp, err := c.CreateForOtherDeprecatedWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateForOtherDeprecatedResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateForOtherDeprecatedWithResponse(ctx context.Context, workspaceId string, userId string, body CreateForOtherDeprecatedJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForOtherDeprecatedResponse, error) {
|
|
rsp, err := c.CreateForOtherDeprecated(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateForOtherDeprecatedResponse(rsp)
|
|
}
|
|
|
|
// GetPreviewWithBodyWithResponse request with arbitrary body returning *GetPreviewResponse
|
|
func (c *ClientWithResponses) GetPreviewWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, params *GetPreviewParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GetPreviewResponse, error) {
|
|
rsp, err := c.GetPreviewWithBody(ctx, workspaceId, userId, params, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetPreviewResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) GetPreviewWithResponse(ctx context.Context, workspaceId string, userId string, params *GetPreviewParams, body GetPreviewJSONRequestBody, reqEditors ...RequestEditorFn) (*GetPreviewResponse, error) {
|
|
rsp, err := c.GetPreview(ctx, workspaceId, userId, params, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetPreviewResponse(rsp)
|
|
}
|
|
|
|
// GetTimeEntryStatusWithResponse request returning *GetTimeEntryStatusResponse
|
|
func (c *ClientWithResponses) GetTimeEntryStatusWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntryStatusParams, reqEditors ...RequestEditorFn) (*GetTimeEntryStatusResponse, error) {
|
|
rsp, err := c.GetTimeEntryStatus(ctx, workspaceId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimeEntryStatusResponse(rsp)
|
|
}
|
|
|
|
// GetTimeEntryWeekStatusWithResponse request returning *GetTimeEntryWeekStatusResponse
|
|
func (c *ClientWithResponses) GetTimeEntryWeekStatusWithResponse(ctx context.Context, workspaceId string, userId string, params *GetTimeEntryWeekStatusParams, reqEditors ...RequestEditorFn) (*GetTimeEntryWeekStatusResponse, error) {
|
|
rsp, err := c.GetTimeEntryWeekStatus(ctx, workspaceId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetTimeEntryWeekStatusResponse(rsp)
|
|
}
|
|
|
|
// GetWeeklyRequestsByUserWithResponse request returning *GetWeeklyRequestsByUserResponse
|
|
func (c *ClientWithResponses) GetWeeklyRequestsByUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetWeeklyRequestsByUserResponse, error) {
|
|
rsp, err := c.GetWeeklyRequestsByUser(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetWeeklyRequestsByUserResponse(rsp)
|
|
}
|
|
|
|
// WithdrawAllOfUserWithResponse request returning *WithdrawAllOfUserResponse
|
|
func (c *ClientWithResponses) WithdrawAllOfUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*WithdrawAllOfUserResponse, error) {
|
|
rsp, err := c.WithdrawAllOfUser(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseWithdrawAllOfUserResponse(rsp)
|
|
}
|
|
|
|
// WithdrawAllOfWorkspaceDeprecatedWithResponse request returning *WithdrawAllOfWorkspaceDeprecatedResponse
|
|
func (c *ClientWithResponses) WithdrawAllOfWorkspaceDeprecatedWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*WithdrawAllOfWorkspaceDeprecatedResponse, error) {
|
|
rsp, err := c.WithdrawAllOfWorkspaceDeprecated(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseWithdrawAllOfWorkspaceDeprecatedResponse(rsp)
|
|
}
|
|
|
|
// WithdrawWeeklyOfUserWithResponse request returning *WithdrawWeeklyOfUserResponse
|
|
func (c *ClientWithResponses) WithdrawWeeklyOfUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*WithdrawWeeklyOfUserResponse, error) {
|
|
rsp, err := c.WithdrawWeeklyOfUser(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseWithdrawWeeklyOfUserResponse(rsp)
|
|
}
|
|
|
|
// SetCostRateForUser1WithBodyWithResponse request with arbitrary body returning *SetCostRateForUser1Response
|
|
func (c *ClientWithResponses) SetCostRateForUser1WithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetCostRateForUser1Response, error) {
|
|
rsp, err := c.SetCostRateForUser1WithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetCostRateForUser1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) SetCostRateForUser1WithResponse(ctx context.Context, workspaceId string, userId string, body SetCostRateForUser1JSONRequestBody, reqEditors ...RequestEditorFn) (*SetCostRateForUser1Response, error) {
|
|
rsp, err := c.SetCostRateForUser1(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetCostRateForUser1Response(rsp)
|
|
}
|
|
|
|
// UpsertUserCustomFieldValueWithBodyWithResponse request with arbitrary body returning *UpsertUserCustomFieldValueResponse
|
|
func (c *ClientWithResponses) UpsertUserCustomFieldValueWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpsertUserCustomFieldValueResponse, error) {
|
|
rsp, err := c.UpsertUserCustomFieldValueWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpsertUserCustomFieldValueResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpsertUserCustomFieldValueWithResponse(ctx context.Context, workspaceId string, userId string, body UpsertUserCustomFieldValueJSONRequestBody, reqEditors ...RequestEditorFn) (*UpsertUserCustomFieldValueResponse, error) {
|
|
rsp, err := c.UpsertUserCustomFieldValue(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpsertUserCustomFieldValueResponse(rsp)
|
|
}
|
|
|
|
// GetFavoriteEntriesWithResponse request returning *GetFavoriteEntriesResponse
|
|
func (c *ClientWithResponses) GetFavoriteEntriesWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetFavoriteEntriesResponse, error) {
|
|
rsp, err := c.GetFavoriteEntries(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetFavoriteEntriesResponse(rsp)
|
|
}
|
|
|
|
// CreateFavoriteTimeEntryWithBodyWithResponse request with arbitrary body returning *CreateFavoriteTimeEntryResponse
|
|
func (c *ClientWithResponses) CreateFavoriteTimeEntryWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFavoriteTimeEntryResponse, error) {
|
|
rsp, err := c.CreateFavoriteTimeEntryWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateFavoriteTimeEntryResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateFavoriteTimeEntryWithResponse(ctx context.Context, workspaceId string, userId string, body CreateFavoriteTimeEntryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFavoriteTimeEntryResponse, error) {
|
|
rsp, err := c.CreateFavoriteTimeEntry(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateFavoriteTimeEntryResponse(rsp)
|
|
}
|
|
|
|
// ReorderInvoiceItemWithBodyWithResponse request with arbitrary body returning *ReorderInvoiceItemResponse
|
|
func (c *ClientWithResponses) ReorderInvoiceItemWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReorderInvoiceItemResponse, error) {
|
|
rsp, err := c.ReorderInvoiceItemWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseReorderInvoiceItemResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) ReorderInvoiceItemWithResponse(ctx context.Context, workspaceId string, userId string, body ReorderInvoiceItemJSONRequestBody, reqEditors ...RequestEditorFn) (*ReorderInvoiceItemResponse, error) {
|
|
rsp, err := c.ReorderInvoiceItem(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseReorderInvoiceItemResponse(rsp)
|
|
}
|
|
|
|
// Delete3WithResponse request returning *Delete3Response
|
|
func (c *ClientWithResponses) Delete3WithResponse(ctx context.Context, workspaceId string, userId string, id string, reqEditors ...RequestEditorFn) (*Delete3Response, error) {
|
|
rsp, err := c.Delete3(ctx, workspaceId, userId, id, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete3Response(rsp)
|
|
}
|
|
|
|
// Update1WithBodyWithResponse request with arbitrary body returning *Update1Response
|
|
func (c *ClientWithResponses) Update1WithBodyWithResponse(ctx context.Context, workspaceId string, userId string, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Update1Response, error) {
|
|
rsp, err := c.Update1WithBody(ctx, workspaceId, userId, id, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Update1WithResponse(ctx context.Context, workspaceId string, userId string, id string, body Update1JSONRequestBody, reqEditors ...RequestEditorFn) (*Update1Response, error) {
|
|
rsp, err := c.Update1(ctx, workspaceId, userId, id, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdate1Response(rsp)
|
|
}
|
|
|
|
// GetHolidays1WithResponse request returning *GetHolidays1Response
|
|
func (c *ClientWithResponses) GetHolidays1WithResponse(ctx context.Context, workspaceId string, userId string, params *GetHolidays1Params, reqEditors ...RequestEditorFn) (*GetHolidays1Response, error) {
|
|
rsp, err := c.GetHolidays1(ctx, workspaceId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetHolidays1Response(rsp)
|
|
}
|
|
|
|
// SetHourlyRateForUser1WithBodyWithResponse request with arbitrary body returning *SetHourlyRateForUser1Response
|
|
func (c *ClientWithResponses) SetHourlyRateForUser1WithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetHourlyRateForUser1Response, error) {
|
|
rsp, err := c.SetHourlyRateForUser1WithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetHourlyRateForUser1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) SetHourlyRateForUser1WithResponse(ctx context.Context, workspaceId string, userId string, body SetHourlyRateForUser1JSONRequestBody, reqEditors ...RequestEditorFn) (*SetHourlyRateForUser1Response, error) {
|
|
rsp, err := c.SetHourlyRateForUser1(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseSetHourlyRateForUser1Response(rsp)
|
|
}
|
|
|
|
// GetPermissionsToUserWithResponse request returning *GetPermissionsToUserResponse
|
|
func (c *ClientWithResponses) GetPermissionsToUserWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetPermissionsToUserResponse, error) {
|
|
rsp, err := c.GetPermissionsToUser(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetPermissionsToUserResponse(rsp)
|
|
}
|
|
|
|
// RemoveFavoriteProjectWithResponse request returning *RemoveFavoriteProjectResponse
|
|
func (c *ClientWithResponses) RemoveFavoriteProjectWithResponse(ctx context.Context, workspaceId string, userId string, projectId string, reqEditors ...RequestEditorFn) (*RemoveFavoriteProjectResponse, error) {
|
|
rsp, err := c.RemoveFavoriteProject(ctx, workspaceId, userId, projectId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseRemoveFavoriteProjectResponse(rsp)
|
|
}
|
|
|
|
// Delete2WithResponse request returning *Delete2Response
|
|
func (c *ClientWithResponses) Delete2WithResponse(ctx context.Context, workspaceId string, userId string, projectFavoritesId string, reqEditors ...RequestEditorFn) (*Delete2Response, error) {
|
|
rsp, err := c.Delete2(ctx, workspaceId, userId, projectFavoritesId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete2Response(rsp)
|
|
}
|
|
|
|
// Create4WithResponse request returning *Create4Response
|
|
func (c *ClientWithResponses) Create4WithResponse(ctx context.Context, workspaceId string, userId string, projectId string, reqEditors ...RequestEditorFn) (*Create4Response, error) {
|
|
rsp, err := c.Create4(ctx, workspaceId, userId, projectId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate4Response(rsp)
|
|
}
|
|
|
|
// Delete1WithResponse request returning *Delete1Response
|
|
func (c *ClientWithResponses) Delete1WithResponse(ctx context.Context, workspaceId string, userId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*Delete1Response, error) {
|
|
rsp, err := c.Delete1(ctx, workspaceId, userId, projectId, taskId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDelete1Response(rsp)
|
|
}
|
|
|
|
// Create3WithResponse request returning *Create3Response
|
|
func (c *ClientWithResponses) Create3WithResponse(ctx context.Context, workspaceId string, userId string, projectId string, taskId string, reqEditors ...RequestEditorFn) (*Create3Response, error) {
|
|
rsp, err := c.Create3(ctx, workspaceId, userId, projectId, taskId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate3Response(rsp)
|
|
}
|
|
|
|
// ReSubmitWithBodyWithResponse request with arbitrary body returning *ReSubmitResponse
|
|
func (c *ClientWithResponses) ReSubmitWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReSubmitResponse, error) {
|
|
rsp, err := c.ReSubmitWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseReSubmitResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) ReSubmitWithResponse(ctx context.Context, workspaceId string, userId string, body ReSubmitJSONRequestBody, reqEditors ...RequestEditorFn) (*ReSubmitResponse, error) {
|
|
rsp, err := c.ReSubmit(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseReSubmitResponse(rsp)
|
|
}
|
|
|
|
// GetUserRolesWithResponse request returning *GetUserRolesResponse
|
|
func (c *ClientWithResponses) GetUserRolesWithResponse(ctx context.Context, workspaceId string, userId string, params *GetUserRolesParams, reqEditors ...RequestEditorFn) (*GetUserRolesResponse, error) {
|
|
rsp, err := c.GetUserRoles(ctx, workspaceId, userId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetUserRolesResponse(rsp)
|
|
}
|
|
|
|
// UpdateUserRolesWithBodyWithResponse request with arbitrary body returning *UpdateUserRolesResponse
|
|
func (c *ClientWithResponses) UpdateUserRolesWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserRolesResponse, error) {
|
|
rsp, err := c.UpdateUserRolesWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateUserRolesResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateUserRolesWithResponse(ctx context.Context, workspaceId string, userId string, body UpdateUserRolesJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserRolesResponse, error) {
|
|
rsp, err := c.UpdateUserRoles(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateUserRolesResponse(rsp)
|
|
}
|
|
|
|
// Create2WithBodyWithResponse request with arbitrary body returning *Create2Response
|
|
func (c *ClientWithResponses) Create2WithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create2Response, error) {
|
|
rsp, err := c.Create2WithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate2Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create2WithResponse(ctx context.Context, workspaceId string, userId string, body Create2JSONRequestBody, reqEditors ...RequestEditorFn) (*Create2Response, error) {
|
|
rsp, err := c.Create2(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate2Response(rsp)
|
|
}
|
|
|
|
// CreateForOtherWithBodyWithResponse request with arbitrary body returning *CreateForOtherResponse
|
|
func (c *ClientWithResponses) CreateForOtherWithBodyWithResponse(ctx context.Context, workspaceId string, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateForOtherResponse, error) {
|
|
rsp, err := c.CreateForOtherWithBody(ctx, workspaceId, userId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateForOtherResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) CreateForOtherWithResponse(ctx context.Context, workspaceId string, userId string, body CreateForOtherJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateForOtherResponse, error) {
|
|
rsp, err := c.CreateForOther(ctx, workspaceId, userId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreateForOtherResponse(rsp)
|
|
}
|
|
|
|
// GetWorkCapacityWithResponse request returning *GetWorkCapacityResponse
|
|
func (c *ClientWithResponses) GetWorkCapacityWithResponse(ctx context.Context, workspaceId string, userId string, reqEditors ...RequestEditorFn) (*GetWorkCapacityResponse, error) {
|
|
rsp, err := c.GetWorkCapacity(ctx, workspaceId, userId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetWorkCapacityResponse(rsp)
|
|
}
|
|
|
|
// GetWebhooksWithResponse request returning *GetWebhooksResponse
|
|
func (c *ClientWithResponses) GetWebhooksWithResponse(ctx context.Context, workspaceId string, params *GetWebhooksParams, reqEditors ...RequestEditorFn) (*GetWebhooksResponse, error) {
|
|
rsp, err := c.GetWebhooks(ctx, workspaceId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetWebhooksResponse(rsp)
|
|
}
|
|
|
|
// Create1WithBodyWithResponse request with arbitrary body returning *Create1Response
|
|
func (c *ClientWithResponses) Create1WithBodyWithResponse(ctx context.Context, workspaceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*Create1Response, error) {
|
|
rsp, err := c.Create1WithBody(ctx, workspaceId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate1Response(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) Create1WithResponse(ctx context.Context, workspaceId string, body Create1JSONRequestBody, reqEditors ...RequestEditorFn) (*Create1Response, error) {
|
|
rsp, err := c.Create1(ctx, workspaceId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseCreate1Response(rsp)
|
|
}
|
|
|
|
// DeleteWithResponse request returning *DeleteResponse
|
|
func (c *ClientWithResponses) DeleteWithResponse(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*DeleteResponse, error) {
|
|
rsp, err := c.Delete(ctx, workspaceId, webhookId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseDeleteResponse(rsp)
|
|
}
|
|
|
|
// GetWebhookWithResponse request returning *GetWebhookResponse
|
|
func (c *ClientWithResponses) GetWebhookWithResponse(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*GetWebhookResponse, error) {
|
|
rsp, err := c.GetWebhook(ctx, workspaceId, webhookId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetWebhookResponse(rsp)
|
|
}
|
|
|
|
// UpdateWithBodyWithResponse request with arbitrary body returning *UpdateResponse
|
|
func (c *ClientWithResponses) UpdateWithBodyWithResponse(ctx context.Context, workspaceId string, webhookId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateResponse, error) {
|
|
rsp, err := c.UpdateWithBody(ctx, workspaceId, webhookId, contentType, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateResponse(rsp)
|
|
}
|
|
|
|
func (c *ClientWithResponses) UpdateWithResponse(ctx context.Context, workspaceId string, webhookId string, body UpdateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateResponse, error) {
|
|
rsp, err := c.Update(ctx, workspaceId, webhookId, body, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseUpdateResponse(rsp)
|
|
}
|
|
|
|
// GetLogsForWebhook1WithResponse request returning *GetLogsForWebhook1Response
|
|
func (c *ClientWithResponses) GetLogsForWebhook1WithResponse(ctx context.Context, workspaceId string, webhookId string, params *GetLogsForWebhook1Params, reqEditors ...RequestEditorFn) (*GetLogsForWebhook1Response, error) {
|
|
rsp, err := c.GetLogsForWebhook1(ctx, workspaceId, webhookId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetLogsForWebhook1Response(rsp)
|
|
}
|
|
|
|
// GetLogCountWithResponse request returning *GetLogCountResponse
|
|
func (c *ClientWithResponses) GetLogCountWithResponse(ctx context.Context, workspaceId string, webhookId string, params *GetLogCountParams, reqEditors ...RequestEditorFn) (*GetLogCountResponse, error) {
|
|
rsp, err := c.GetLogCount(ctx, workspaceId, webhookId, params, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGetLogCountResponse(rsp)
|
|
}
|
|
|
|
// TriggerResendEventForWebhookWithResponse request returning *TriggerResendEventForWebhookResponse
|
|
func (c *ClientWithResponses) TriggerResendEventForWebhookWithResponse(ctx context.Context, workspaceId string, webhookId string, webhookLogId string, reqEditors ...RequestEditorFn) (*TriggerResendEventForWebhookResponse, error) {
|
|
rsp, err := c.TriggerResendEventForWebhook(ctx, workspaceId, webhookId, webhookLogId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseTriggerResendEventForWebhookResponse(rsp)
|
|
}
|
|
|
|
// TriggerTestEventForWebhookWithResponse request returning *TriggerTestEventForWebhookResponse
|
|
func (c *ClientWithResponses) TriggerTestEventForWebhookWithResponse(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*TriggerTestEventForWebhookResponse, error) {
|
|
rsp, err := c.TriggerTestEventForWebhook(ctx, workspaceId, webhookId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseTriggerTestEventForWebhookResponse(rsp)
|
|
}
|
|
|
|
// GenerateNewTokenWithResponse request returning *GenerateNewTokenResponse
|
|
func (c *ClientWithResponses) GenerateNewTokenWithResponse(ctx context.Context, workspaceId string, webhookId string, reqEditors ...RequestEditorFn) (*GenerateNewTokenResponse, error) {
|
|
rsp, err := c.GenerateNewToken(ctx, workspaceId, webhookId, reqEditors...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return ParseGenerateNewTokenResponse(rsp)
|
|
}
|
|
|
|
// ParseGetInitialDataResponse parses an HTTP response from a GetInitialDataWithResponse call
|
|
func ParseGetInitialDataResponse(rsp *http.Response) (*GetInitialDataResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetInitialDataResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest InvoiceEmailLinkDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDownloadReportResponse parses an HTTP response from a DownloadReportWithResponse call
|
|
func ParseDownloadReportResponse(rsp *http.Response) (*DownloadReportResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DownloadReportResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest openapi_types.File
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseResetPinResponse parses an HTTP response from a ResetPinWithResponse call
|
|
func ParseResetPinResponse(rsp *http.Response) (*ResetPinResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ResetPinResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseValidatePinResponse parses an HTTP response from a ValidatePinWithResponse call
|
|
func ParseValidatePinResponse(rsp *http.Response) (*ValidatePinResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ValidatePinResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest InvoiceEmailLinkPinValidationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateSmtpConfigurationResponse parses an HTTP response from a UpdateSmtpConfigurationWithResponse call
|
|
func ParseUpdateSmtpConfigurationResponse(rsp *http.Response) (*UpdateSmtpConfigurationResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateSmtpConfigurationResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest SMTPConfigurationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDisableAccessToEntitiesInTransferResponse parses an HTTP response from a DisableAccessToEntitiesInTransferWithResponse call
|
|
func ParseDisableAccessToEntitiesInTransferResponse(rsp *http.Response) (*DisableAccessToEntitiesInTransferResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DisableAccessToEntitiesInTransferResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest WorkspaceTransferAccessDisabledDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseEnableAccessToEntitiesInTransferResponse parses an HTTP response from a EnableAccessToEntitiesInTransferWithResponse call
|
|
func ParseEnableAccessToEntitiesInTransferResponse(rsp *http.Response) (*EnableAccessToEntitiesInTransferResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &EnableAccessToEntitiesInTransferResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUsersExistResponse parses an HTTP response from a UsersExistWithResponse call
|
|
func ParseUsersExistResponse(rsp *http.Response) (*UsersExistResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UsersExistResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseHandleCleanupOnSourceRegionResponse parses an HTTP response from a HandleCleanupOnSourceRegionWithResponse call
|
|
func ParseHandleCleanupOnSourceRegionResponse(rsp *http.Response) (*HandleCleanupOnSourceRegionResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &HandleCleanupOnSourceRegionResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseHandleTransferCompletedOnSourceRegionResponse parses an HTTP response from a HandleTransferCompletedOnSourceRegionWithResponse call
|
|
func ParseHandleTransferCompletedOnSourceRegionResponse(rsp *http.Response) (*HandleTransferCompletedOnSourceRegionResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &HandleTransferCompletedOnSourceRegionResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseHandleTransferCompletedFailureResponse parses an HTTP response from a HandleTransferCompletedFailureWithResponse call
|
|
func ParseHandleTransferCompletedFailureResponse(rsp *http.Response) (*HandleTransferCompletedFailureResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &HandleTransferCompletedFailureResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseHandleTransferCompletedSuccessResponse parses an HTTP response from a HandleTransferCompletedSuccessWithResponse call
|
|
func ParseHandleTransferCompletedSuccessResponse(rsp *http.Response) (*HandleTransferCompletedSuccessResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &HandleTransferCompletedSuccessResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetAllUsersResponse parses an HTTP response from a GetAllUsersWithResponse call
|
|
func ParseGetAllUsersResponse(rsp *http.Response) (*GetAllUsersResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetAllUsersResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UsersDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUserInfoResponse parses an HTTP response from a GetUserInfoWithResponse call
|
|
func ParseGetUserInfoResponse(rsp *http.Response) (*GetUserInfoResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUserInfoResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TeamMemberInfoDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUserMembershipsAndInvitesResponse parses an HTTP response from a GetUserMembershipsAndInvitesWithResponse call
|
|
func ParseGetUserMembershipsAndInvitesResponse(rsp *http.Response) (*GetUserMembershipsAndInvitesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUserMembershipsAndInvitesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserMembershipAndInviteDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCheckForNewsletterSubscriptionResponse parses an HTTP response from a CheckForNewsletterSubscriptionWithResponse call
|
|
func ParseCheckForNewsletterSubscriptionResponse(rsp *http.Response) (*CheckForNewsletterSubscriptionResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CheckForNewsletterSubscriptionResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseAddNotificationsResponse parses an HTTP response from a AddNotificationsWithResponse call
|
|
func ParseAddNotificationsResponse(rsp *http.Response) (*AddNotificationsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &AddNotificationsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetNewsResponse parses an HTTP response from a GetNewsWithResponse call
|
|
func ParseGetNewsResponse(rsp *http.Response) (*GetNewsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetNewsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []NewsDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteNewsResponse parses an HTTP response from a DeleteNewsWithResponse call
|
|
func ParseDeleteNewsResponse(rsp *http.Response) (*DeleteNewsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteNewsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateNewsResponse parses an HTTP response from a UpdateNewsWithResponse call
|
|
func ParseUpdateNewsResponse(rsp *http.Response) (*UpdateNewsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateNewsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseSearchAllUsersResponse parses an HTTP response from a SearchAllUsersWithResponse call
|
|
func ParseSearchAllUsersResponse(rsp *http.Response) (*SearchAllUsersResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &SearchAllUsersResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UsersDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseNumberOfUsersRegisteredResponse parses an HTTP response from a NumberOfUsersRegisteredWithResponse call
|
|
func ParseNumberOfUsersRegisteredResponse(rsp *http.Response) (*NumberOfUsersRegisteredResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &NumberOfUsersRegisteredResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest int64
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsersOnWorkspaceResponse parses an HTTP response from a GetUsersOnWorkspaceWithResponse call
|
|
func ParseGetUsersOnWorkspaceResponse(rsp *http.Response) (*GetUsersOnWorkspaceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsersOnWorkspaceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UsersAndCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseBulkEditUsersResponse parses an HTTP response from a BulkEditUsersWithResponse call
|
|
func ParseBulkEditUsersResponse(rsp *http.Response) (*BulkEditUsersResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &BulkEditUsersResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsersOfWorkspace5Response parses an HTTP response from a GetUsersOfWorkspace5WithResponse call
|
|
func ParseGetUsersOfWorkspace5Response(rsp *http.Response) (*GetUsersOfWorkspace5Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsersOfWorkspace5Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserListAndCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetInfoResponse parses an HTTP response from a GetInfoWithResponse call
|
|
func ParseGetInfoResponse(rsp *http.Response) (*GetInfoResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetInfoResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TeamMemberInfoDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetMembersInfoResponse parses an HTTP response from a GetMembersInfoWithResponse call
|
|
func ParseGetMembersInfoResponse(rsp *http.Response) (*GetMembersInfoResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetMembersInfoResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TeamMemberInfoDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUserNamesResponse parses an HTTP response from a GetUserNamesWithResponse call
|
|
func ParseGetUserNamesResponse(rsp *http.Response) (*GetUserNamesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUserNamesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []EntityIdNameDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseFindPoliciesToBeApprovedByUserResponse parses an HTTP response from a FindPoliciesToBeApprovedByUserWithResponse call
|
|
func ParseFindPoliciesToBeApprovedByUserResponse(rsp *http.Response) (*FindPoliciesToBeApprovedByUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &FindPoliciesToBeApprovedByUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []PolicyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsersAndUsersFromUserGroupsAssignedToProjectResponse parses an HTTP response from a GetUsersAndUsersFromUserGroupsAssignedToProjectWithResponse call
|
|
func ParseGetUsersAndUsersFromUserGroupsAssignedToProjectResponse(rsp *http.Response) (*GetUsersAndUsersFromUserGroupsAssignedToProjectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsersAndUsersFromUserGroupsAssignedToProjectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsersForProjectMembersFilterResponse parses an HTTP response from a GetUsersForProjectMembersFilterWithResponse call
|
|
func ParseGetUsersForProjectMembersFilterResponse(rsp *http.Response) (*GetUsersForProjectMembersFilterResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsersForProjectMembersFilterResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ReportFilterUsersWithCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsersForAttendanceReportFilter1Response parses an HTTP response from a GetUsersForAttendanceReportFilter1WithResponse call
|
|
func ParseGetUsersForAttendanceReportFilter1Response(rsp *http.Response) (*GetUsersForAttendanceReportFilter1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsersForAttendanceReportFilter1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ReportFilterUsersWithCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsersOfWorkspace4Response parses an HTTP response from a GetUsersOfWorkspace4WithResponse call
|
|
func ParseGetUsersOfWorkspace4Response(rsp *http.Response) (*GetUsersOfWorkspace4Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsersOfWorkspace4Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []string
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsersForReportFilterOldResponse parses an HTTP response from a GetUsersForReportFilterOldWithResponse call
|
|
func ParseGetUsersForReportFilterOldResponse(rsp *http.Response) (*GetUsersForReportFilterOldResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsersForReportFilterOldResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ReportFilterUsersWithCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsersForReportFilterResponse parses an HTTP response from a GetUsersForReportFilterWithResponse call
|
|
func ParseGetUsersForReportFilterResponse(rsp *http.Response) (*GetUsersForReportFilterResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsersForReportFilterResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ReportFilterUsersWithCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsersOfUserGroupResponse parses an HTTP response from a GetUsersOfUserGroupWithResponse call
|
|
func ParseGetUsersOfUserGroupResponse(rsp *http.Response) (*GetUsersOfUserGroupResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsersOfUserGroupResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsersOfWorkspace3Response parses an HTTP response from a GetUsersOfWorkspace3WithResponse call
|
|
func ParseGetUsersOfWorkspace3Response(rsp *http.Response) (*GetUsersOfWorkspace3Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsersOfWorkspace3Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest int64
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsersOfWorkspace2Response parses an HTTP response from a GetUsersOfWorkspace2WithResponse call
|
|
func ParseGetUsersOfWorkspace2Response(rsp *http.Response) (*GetUsersOfWorkspace2Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsersOfWorkspace2Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TeamMembersAndCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call
|
|
func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateTimeTrackingSettings1Response parses an HTTP response from a UpdateTimeTrackingSettings1WithResponse call
|
|
func ParseUpdateTimeTrackingSettings1Response(rsp *http.Response) (*UpdateTimeTrackingSettings1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateTimeTrackingSettings1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateDashboardSelectionResponse parses an HTTP response from a UpdateDashboardSelectionWithResponse call
|
|
func ParseUpdateDashboardSelectionResponse(rsp *http.Response) (*UpdateDashboardSelectionResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateDashboardSelectionResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseSetDefaultWorkspaceResponse parses an HTTP response from a SetDefaultWorkspaceWithResponse call
|
|
func ParseSetDefaultWorkspaceResponse(rsp *http.Response) (*SetDefaultWorkspaceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &SetDefaultWorkspaceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call
|
|
func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseChangeEmailResponse parses an HTTP response from a ChangeEmailWithResponse call
|
|
func ParseChangeEmailResponse(rsp *http.Response) (*ChangeEmailResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ChangeEmailResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseHasPendingEmailChangeResponse parses an HTTP response from a HasPendingEmailChangeWithResponse call
|
|
func ParseHasPendingEmailChangeResponse(rsp *http.Response) (*HasPendingEmailChangeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &HasPendingEmailChangeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest PendingEmailChangeResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateLangResponse parses an HTTP response from a UpdateLangWithResponse call
|
|
func ParseUpdateLangResponse(rsp *http.Response) (*UpdateLangResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateLangResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseMarkAsRead1Response parses an HTTP response from a MarkAsRead1WithResponse call
|
|
func ParseMarkAsRead1Response(rsp *http.Response) (*MarkAsRead1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &MarkAsRead1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseMarkAsReadResponse parses an HTTP response from a MarkAsReadWithResponse call
|
|
func ParseMarkAsReadResponse(rsp *http.Response) (*MarkAsReadResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &MarkAsReadResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseChangeNameAdminResponse parses an HTTP response from a ChangeNameAdminWithResponse call
|
|
func ParseChangeNameAdminResponse(rsp *http.Response) (*ChangeNameAdminResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ChangeNameAdminResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetNewsForUserResponse parses an HTTP response from a GetNewsForUserWithResponse call
|
|
func ParseGetNewsForUserResponse(rsp *http.Response) (*GetNewsForUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetNewsForUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []NewsDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseReadNewsResponse parses an HTTP response from a ReadNewsWithResponse call
|
|
func ParseReadNewsResponse(rsp *http.Response) (*ReadNewsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ReadNewsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetNotificationsResponse parses an HTTP response from a GetNotificationsWithResponse call
|
|
func ParseGetNotificationsResponse(rsp *http.Response) (*GetNotificationsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetNotificationsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []NotificationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdatePictureResponse parses an HTTP response from a UpdatePictureWithResponse call
|
|
func ParseUpdatePictureResponse(rsp *http.Response) (*UpdatePictureResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdatePictureResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateNameAndProfilePictureResponse parses an HTTP response from a UpdateNameAndProfilePictureWithResponse call
|
|
func ParseUpdateNameAndProfilePictureResponse(rsp *http.Response) (*UpdateNameAndProfilePictureResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateNameAndProfilePictureResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UsersNameAndProfilePictureDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateSettingsResponse parses an HTTP response from a UpdateSettingsWithResponse call
|
|
func ParseUpdateSettingsResponse(rsp *http.Response) (*UpdateSettingsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateSettingsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateSummaryReportSettingsResponse parses an HTTP response from a UpdateSummaryReportSettingsWithResponse call
|
|
func ParseUpdateSummaryReportSettingsResponse(rsp *http.Response) (*UpdateSummaryReportSettingsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateSummaryReportSettingsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateTimeTrackingSettingsResponse parses an HTTP response from a UpdateTimeTrackingSettingsWithResponse call
|
|
func ParseUpdateTimeTrackingSettingsResponse(rsp *http.Response) (*UpdateTimeTrackingSettingsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateTimeTrackingSettingsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateTimezoneResponse parses an HTTP response from a UpdateTimezoneWithResponse call
|
|
func ParseUpdateTimezoneResponse(rsp *http.Response) (*UpdateTimezoneResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateTimezoneResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetVerificationCampaignNotificationsResponse parses an HTTP response from a GetVerificationCampaignNotificationsWithResponse call
|
|
func ParseGetVerificationCampaignNotificationsResponse(rsp *http.Response) (*GetVerificationCampaignNotificationsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetVerificationCampaignNotificationsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []NotificationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseMarkNotificationsAsReadResponse parses an HTTP response from a MarkNotificationsAsReadWithResponse call
|
|
func ParseMarkNotificationsAsReadResponse(rsp *http.Response) (*MarkNotificationsAsReadResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &MarkNotificationsAsReadResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetWorkCapacityForUserResponse parses an HTTP response from a GetWorkCapacityForUserWithResponse call
|
|
func ParseGetWorkCapacityForUserResponse(rsp *http.Response) (*GetWorkCapacityForUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetWorkCapacityForUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserCapacityDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsersWorkingDaysResponse parses an HTTP response from a GetUsersWorkingDaysWithResponse call
|
|
func ParseGetUsersWorkingDaysResponse(rsp *http.Response) (*GetUsersWorkingDaysResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsersWorkingDaysResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []GetUsersWorkingDays200
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUploadImageResponse parses an HTTP response from a UploadImageWithResponse call
|
|
func ParseUploadImageResponse(rsp *http.Response) (*UploadImageResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UploadImageResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UploadFileResponseV1
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetAllUnfinishedWalkthroughTypesResponse parses an HTTP response from a GetAllUnfinishedWalkthroughTypesWithResponse call
|
|
func ParseGetAllUnfinishedWalkthroughTypesResponse(rsp *http.Response) (*GetAllUnfinishedWalkthroughTypesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetAllUnfinishedWalkthroughTypesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WalkthroughDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseFinishWalkthroughResponse parses an HTTP response from a FinishWalkthroughWithResponse call
|
|
func ParseFinishWalkthroughResponse(rsp *http.Response) (*FinishWalkthroughResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &FinishWalkthroughResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetOwnerEmailByWorkspaceIdResponse parses an HTTP response from a GetOwnerEmailByWorkspaceIdWithResponse call
|
|
func ParseGetOwnerEmailByWorkspaceIdResponse(rsp *http.Response) (*GetOwnerEmailByWorkspaceIdResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetOwnerEmailByWorkspaceIdResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest string
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetWorkspacesOfUserResponse parses an HTTP response from a GetWorkspacesOfUserWithResponse call
|
|
func ParseGetWorkspacesOfUserResponse(rsp *http.Response) (*GetWorkspacesOfUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetWorkspacesOfUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []WorkspaceOverviewDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateResponse parses an HTTP response from a CreateWithResponse call
|
|
func ParseCreateResponse(rsp *http.Response) (*CreateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest WorkspaceDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetWorkspaceInfoResponse parses an HTTP response from a GetWorkspaceInfoWithResponse call
|
|
func ParseGetWorkspaceInfoResponse(rsp *http.Response) (*GetWorkspaceInfoResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetWorkspaceInfoResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []WorkspaceSubscriptionInfoDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseInsertLegacyPlanNotificationsResponse parses an HTTP response from a InsertLegacyPlanNotificationsWithResponse call
|
|
func ParseInsertLegacyPlanNotificationsResponse(rsp *http.Response) (*InsertLegacyPlanNotificationsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &InsertLegacyPlanNotificationsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetPermissionsToUserForWorkspacesResponse parses an HTTP response from a GetPermissionsToUserForWorkspacesWithResponse call
|
|
func ParseGetPermissionsToUserForWorkspacesResponse(rsp *http.Response) (*GetPermissionsToUserForWorkspacesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetPermissionsToUserForWorkspacesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AuthorizationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseLeaveWorkspaceResponse parses an HTTP response from a LeaveWorkspaceWithResponse call
|
|
func ParseLeaveWorkspaceResponse(rsp *http.Response) (*LeaveWorkspaceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &LeaveWorkspaceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetWorkspaceByIdResponse parses an HTTP response from a GetWorkspaceByIdWithResponse call
|
|
func ParseGetWorkspaceByIdResponse(rsp *http.Response) (*GetWorkspaceByIdResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetWorkspaceByIdResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WorkspaceDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateWorkspaceResponse parses an HTTP response from a UpdateWorkspaceWithResponse call
|
|
func ParseUpdateWorkspaceResponse(rsp *http.Response) (*UpdateWorkspaceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateWorkspaceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WorkspaceDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetABTestingResponse parses an HTTP response from a GetABTestingWithResponse call
|
|
func ParseGetABTestingResponse(rsp *http.Response) (*GetABTestingResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetABTestingResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ABTestingDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetActiveMembersResponse parses an HTTP response from a GetActiveMembersWithResponse call
|
|
func ParseGetActiveMembersResponse(rsp *http.Response) (*GetActiveMembersResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetActiveMembersResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ActiveMembersDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUninstallResponse parses an HTTP response from a UninstallWithResponse call
|
|
func ParseUninstallResponse(rsp *http.Response) (*UninstallResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UninstallResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetInstalledAddonsResponse parses an HTTP response from a GetInstalledAddonsWithResponse call
|
|
func ParseGetInstalledAddonsResponse(rsp *http.Response) (*GetInstalledAddonsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetInstalledAddonsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AddonDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseInstallResponse parses an HTTP response from a InstallWithResponse call
|
|
func ParseInstallResponse(rsp *http.Response) (*InstallResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &InstallResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest AddonDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetInstalledAddonsIdNamePairResponse parses an HTTP response from a GetInstalledAddonsIdNamePairWithResponse call
|
|
func ParseGetInstalledAddonsIdNamePairResponse(rsp *http.Response) (*GetInstalledAddonsIdNamePairResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetInstalledAddonsIdNamePairResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []IdNamePairDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetInstalledAddonsByKeysResponse parses an HTTP response from a GetInstalledAddonsByKeysWithResponse call
|
|
func ParseGetInstalledAddonsByKeysResponse(rsp *http.Response) (*GetInstalledAddonsByKeysResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetInstalledAddonsByKeysResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []IdNamePairDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUninstall1Response parses an HTTP response from a Uninstall1WithResponse call
|
|
func ParseUninstall1Response(rsp *http.Response) (*Uninstall1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Uninstall1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetAddonByIdResponse parses an HTTP response from a GetAddonByIdWithResponse call
|
|
func ParseGetAddonByIdResponse(rsp *http.Response) (*GetAddonByIdResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetAddonByIdResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest AddonDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateSettings1Response parses an HTTP response from a UpdateSettings1WithResponse call
|
|
func ParseUpdateSettings1Response(rsp *http.Response) (*UpdateSettings1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateSettings1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest AddonDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateStatus3Response parses an HTTP response from a UpdateStatus3WithResponse call
|
|
func ParseUpdateStatus3Response(rsp *http.Response) (*UpdateStatus3Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateStatus3Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest AddonDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetAddonUserJWTResponse parses an HTTP response from a GetAddonUserJWTWithResponse call
|
|
func ParseGetAddonUserJWTResponse(rsp *http.Response) (*GetAddonUserJWTResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetAddonUserJWTResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest string
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetAddonWebhooksResponse parses an HTTP response from a GetAddonWebhooksWithResponse call
|
|
func ParseGetAddonWebhooksResponse(rsp *http.Response) (*GetAddonWebhooksResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetAddonWebhooksResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WebhooksDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRemoveUninstalledAddonResponse parses an HTTP response from a RemoveUninstalledAddonWithResponse call
|
|
func ParseRemoveUninstalledAddonResponse(rsp *http.Response) (*RemoveUninstalledAddonResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RemoveUninstalledAddonResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseListOfWorkspace1Response parses an HTTP response from a ListOfWorkspace1WithResponse call
|
|
func ParseListOfWorkspace1Response(rsp *http.Response) (*ListOfWorkspace1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ListOfWorkspace1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AlertDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate20Response parses an HTTP response from a Create20WithResponse call
|
|
func ParseCreate20Response(rsp *http.Response) (*Create20Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create20Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest AlertDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete18Response parses an HTTP response from a Delete18WithResponse call
|
|
func ParseDelete18Response(rsp *http.Response) (*Delete18Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete18Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest AlertDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdate11Response parses an HTTP response from a Update11WithResponse call
|
|
func ParseUpdate11Response(rsp *http.Response) (*Update11Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Update11Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest AlertDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetAllowedUpdatesResponse parses an HTTP response from a GetAllowedUpdatesWithResponse call
|
|
func ParseGetAllowedUpdatesResponse(rsp *http.Response) (*GetAllowedUpdatesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetAllowedUpdatesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest AllowedUpdates
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseApproveRequestsResponse parses an HTTP response from a ApproveRequestsWithResponse call
|
|
func ParseApproveRequestsResponse(rsp *http.Response) (*ApproveRequestsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ApproveRequestsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCountResponse parses an HTTP response from a CountWithResponse call
|
|
func ParseCountResponse(rsp *http.Response) (*CountResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CountResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest int64
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseHasPendingResponse parses an HTTP response from a HasPendingWithResponse call
|
|
func ParseHasPendingResponse(rsp *http.Response) (*HasPendingResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &HasPendingResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRemindManagersToApproveResponse parses an HTTP response from a RemindManagersToApproveWithResponse call
|
|
func ParseRemindManagersToApproveResponse(rsp *http.Response) (*RemindManagersToApproveResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RemindManagersToApproveResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRemindUsersToSubmitResponse parses an HTTP response from a RemindUsersToSubmitWithResponse call
|
|
func ParseRemindUsersToSubmitResponse(rsp *http.Response) (*RemindUsersToSubmitResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RemindUsersToSubmitResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApprovalGroupsResponse parses an HTTP response from a GetApprovalGroupsWithResponse call
|
|
func ParseGetApprovalGroupsResponse(rsp *http.Response) (*GetApprovalGroupsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApprovalGroupsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ApprovalGroupDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUnsubmittedSummariesResponse parses an HTTP response from a GetUnsubmittedSummariesWithResponse call
|
|
func ParseGetUnsubmittedSummariesResponse(rsp *http.Response) (*GetUnsubmittedSummariesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUnsubmittedSummariesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []UnsubmittedSummaryGroupDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseWithdrawAllOfWorkspaceResponse parses an HTTP response from a WithdrawAllOfWorkspaceWithResponse call
|
|
func ParseWithdrawAllOfWorkspaceResponse(rsp *http.Response) (*WithdrawAllOfWorkspaceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &WithdrawAllOfWorkspaceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetRequestsByWorkspaceResponse parses an HTTP response from a GetRequestsByWorkspaceWithResponse call
|
|
func ParseGetRequestsByWorkspaceResponse(rsp *http.Response) (*GetRequestsByWorkspaceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetRequestsByWorkspaceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ApprovalInfoDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApprovalRequestResponse parses an HTTP response from a GetApprovalRequestWithResponse call
|
|
func ParseGetApprovalRequestResponse(rsp *http.Response) (*GetApprovalRequestResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApprovalRequestResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ApprovalRequestDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateStatus2Response parses an HTTP response from a UpdateStatus2WithResponse call
|
|
func ParseUpdateStatus2Response(rsp *http.Response) (*UpdateStatus2Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateStatus2Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ApprovalRequestDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApprovalDashboardResponse parses an HTTP response from a GetApprovalDashboardWithResponse call
|
|
func ParseGetApprovalDashboardResponse(rsp *http.Response) (*GetApprovalDashboardResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApprovalDashboardResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ApprovalDashboardDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApprovalDetailsResponse parses an HTTP response from a GetApprovalDetailsWithResponse call
|
|
func ParseGetApprovalDetailsResponse(rsp *http.Response) (*GetApprovalDetailsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApprovalDetailsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ApprovalDetailsDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseFetchCustomAttributesResponse parses an HTTP response from a FetchCustomAttributesWithResponse call
|
|
func ParseFetchCustomAttributesResponse(rsp *http.Response) (*FetchCustomAttributesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &FetchCustomAttributesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []CustomAttributeDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCheckWorkspaceTransferPossibilityResponse parses an HTTP response from a CheckWorkspaceTransferPossibilityWithResponse call
|
|
func ParseCheckWorkspaceTransferPossibilityResponse(rsp *http.Response) (*CheckWorkspaceTransferPossibilityResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CheckWorkspaceTransferPossibilityResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WorkspaceTransferPossibleDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteMany3Response parses an HTTP response from a DeleteMany3WithResponse call
|
|
func ParseDeleteMany3Response(rsp *http.Response) (*DeleteMany3Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteMany3Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ClientDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetClients1Response parses an HTTP response from a GetClients1WithResponse call
|
|
func ParseGetClients1Response(rsp *http.Response) (*GetClients1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetClients1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ClientDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateMany2Response parses an HTTP response from a UpdateMany2WithResponse call
|
|
func ParseUpdateMany2Response(rsp *http.Response) (*UpdateMany2Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateMany2Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ClientWithCurrencyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate19Response parses an HTTP response from a Create19WithResponse call
|
|
func ParseCreate19Response(rsp *http.Response) (*Create19Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create19Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest ClientDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetArchivePermissionsResponse parses an HTTP response from a GetArchivePermissionsWithResponse call
|
|
func ParseGetArchivePermissionsResponse(rsp *http.Response) (*GetArchivePermissionsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetArchivePermissionsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ArchivePermissionDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseHaveRelatedTasksResponse parses an HTTP response from a HaveRelatedTasksWithResponse call
|
|
func ParseHaveRelatedTasksResponse(rsp *http.Response) (*HaveRelatedTasksResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &HaveRelatedTasksResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetClientsOfIdsResponse parses an HTTP response from a GetClientsOfIdsWithResponse call
|
|
func ParseGetClientsOfIdsResponse(rsp *http.Response) (*GetClientsOfIdsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetClientsOfIdsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ClientDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetClientsForInvoiceFilter1Response parses an HTTP response from a GetClientsForInvoiceFilter1WithResponse call
|
|
func ParseGetClientsForInvoiceFilter1Response(rsp *http.Response) (*GetClientsForInvoiceFilter1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetClientsForInvoiceFilter1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ClientDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetClients2Response parses an HTTP response from a GetClients2WithResponse call
|
|
func ParseGetClients2Response(rsp *http.Response) (*GetClients2Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetClients2Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ClientDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetClientsForReportFilterResponse parses an HTTP response from a GetClientsForReportFilterWithResponse call
|
|
func ParseGetClientsForReportFilterResponse(rsp *http.Response) (*GetClientsForReportFilterResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetClientsForReportFilterResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ClientDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetClientIdsForReportFilterResponse parses an HTTP response from a GetClientIdsForReportFilterWithResponse call
|
|
func ParseGetClientIdsForReportFilterResponse(rsp *http.Response) (*GetClientIdsForReportFilterResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetClientIdsForReportFilterResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []string
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTimeOffPoliciesAndHolidaysForClientResponse parses an HTTP response from a GetTimeOffPoliciesAndHolidaysForClientWithResponse call
|
|
func ParseGetTimeOffPoliciesAndHolidaysForClientResponse(rsp *http.Response) (*GetTimeOffPoliciesAndHolidaysForClientResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTimeOffPoliciesAndHolidaysForClientResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeOffPolicyHolidayForClients
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete17Response parses an HTTP response from a Delete17WithResponse call
|
|
func ParseDelete17Response(rsp *http.Response) (*Delete17Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete17Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ClientDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetClientResponse parses an HTTP response from a GetClientWithResponse call
|
|
func ParseGetClientResponse(rsp *http.Response) (*GetClientResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetClientResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ClientDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetProjectsArchivePermissionsResponse parses an HTTP response from a GetProjectsArchivePermissionsWithResponse call
|
|
func ParseGetProjectsArchivePermissionsResponse(rsp *http.Response) (*GetProjectsArchivePermissionsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetProjectsArchivePermissionsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdate10Response parses an HTTP response from a Update10WithResponse call
|
|
func ParseUpdate10Response(rsp *http.Response) (*Update10Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Update10Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ClientWithCurrencyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseSetCostRate2Response parses an HTTP response from a SetCostRate2WithResponse call
|
|
func ParseSetCostRate2Response(rsp *http.Response) (*SetCostRate2Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &SetCostRate2Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WorkspaceDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetCouponResponse parses an HTTP response from a GetCouponWithResponse call
|
|
func ParseGetCouponResponse(rsp *http.Response) (*GetCouponResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetCouponResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest SubscriptionCouponDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetWorkspaceCurrenciesResponse parses an HTTP response from a GetWorkspaceCurrenciesWithResponse call
|
|
func ParseGetWorkspaceCurrenciesResponse(rsp *http.Response) (*GetWorkspaceCurrenciesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetWorkspaceCurrenciesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []CurrencyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateCurrencyResponse parses an HTTP response from a CreateCurrencyWithResponse call
|
|
func ParseCreateCurrencyResponse(rsp *http.Response) (*CreateCurrencyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateCurrencyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest CurrencyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRemoveCurrencyResponse parses an HTTP response from a RemoveCurrencyWithResponse call
|
|
func ParseRemoveCurrencyResponse(rsp *http.Response) (*RemoveCurrencyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RemoveCurrencyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetCurrencyResponse parses an HTTP response from a GetCurrencyWithResponse call
|
|
func ParseGetCurrencyResponse(rsp *http.Response) (*GetCurrencyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetCurrencyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest string
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateCurrencyCodeResponse parses an HTTP response from a UpdateCurrencyCodeWithResponse call
|
|
func ParseUpdateCurrencyCodeResponse(rsp *http.Response) (*UpdateCurrencyCodeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateCurrencyCodeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest CurrencyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseSetCurrencyResponse parses an HTTP response from a SetCurrencyWithResponse call
|
|
func ParseSetCurrencyResponse(rsp *http.Response) (*SetCurrencyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &SetCurrencyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WorkspaceDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseOfWorkspaceResponse parses an HTTP response from a OfWorkspaceWithResponse call
|
|
func ParseOfWorkspaceResponse(rsp *http.Response) (*OfWorkspaceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &OfWorkspaceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []CustomFieldDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate18Response parses an HTTP response from a Create18WithResponse call
|
|
func ParseCreate18Response(rsp *http.Response) (*Create18Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create18Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest CustomFieldDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseOfWorkspaceWithRequiredAvailabilityResponse parses an HTTP response from a OfWorkspaceWithRequiredAvailabilityWithResponse call
|
|
func ParseOfWorkspaceWithRequiredAvailabilityResponse(rsp *http.Response) (*OfWorkspaceWithRequiredAvailabilityResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &OfWorkspaceWithRequiredAvailabilityResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []CustomFieldRequiredAvailabilityDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete16Response parses an HTTP response from a Delete16WithResponse call
|
|
func ParseDelete16Response(rsp *http.Response) (*Delete16Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete16Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseEditResponse parses an HTTP response from a EditWithResponse call
|
|
func ParseEditResponse(rsp *http.Response) (*EditResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &EditResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest CustomFieldDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRemoveDefaultValueOfProjectResponse parses an HTTP response from a RemoveDefaultValueOfProjectWithResponse call
|
|
func ParseRemoveDefaultValueOfProjectResponse(rsp *http.Response) (*RemoveDefaultValueOfProjectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RemoveDefaultValueOfProjectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest CustomFieldDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseEditDefaultValuesResponse parses an HTTP response from a EditDefaultValuesWithResponse call
|
|
func ParseEditDefaultValuesResponse(rsp *http.Response) (*EditDefaultValuesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &EditDefaultValuesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest CustomFieldDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetOfProjectResponse parses an HTTP response from a GetOfProjectWithResponse call
|
|
func ParseGetOfProjectResponse(rsp *http.Response) (*GetOfProjectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetOfProjectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []CustomFieldDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateCustomLabelsResponse parses an HTTP response from a UpdateCustomLabelsWithResponse call
|
|
func ParseUpdateCustomLabelsResponse(rsp *http.Response) (*UpdateCustomLabelsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateCustomLabelsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WorkspaceDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseAddEmailResponse parses an HTTP response from a AddEmailWithResponse call
|
|
func ParseAddEmailResponse(rsp *http.Response) (*AddEmailResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &AddEmailResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteManyExpensesResponse parses an HTTP response from a DeleteManyExpensesWithResponse call
|
|
func ParseDeleteManyExpensesResponse(rsp *http.Response) (*DeleteManyExpensesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteManyExpensesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetExpensesResponse parses an HTTP response from a GetExpensesWithResponse call
|
|
func ParseGetExpensesResponse(rsp *http.Response) (*GetExpensesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetExpensesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ExpensesAndTotalsDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateExpenseResponse parses an HTTP response from a CreateExpenseWithResponse call
|
|
func ParseCreateExpenseResponse(rsp *http.Response) (*CreateExpenseResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateExpenseResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest ExpenseDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetCategoriesResponse parses an HTTP response from a GetCategoriesWithResponse call
|
|
func ParseGetCategoriesResponse(rsp *http.Response) (*GetCategoriesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetCategoriesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ExpenseCategoriesWithCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate17Response parses an HTTP response from a Create17WithResponse call
|
|
func ParseCreate17Response(rsp *http.Response) (*Create17Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create17Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest ExpenseCategoryDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetCategoriesByIdsResponse parses an HTTP response from a GetCategoriesByIdsWithResponse call
|
|
func ParseGetCategoriesByIdsResponse(rsp *http.Response) (*GetCategoriesByIdsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetCategoriesByIdsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ExpenseCategoryDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteCategoryResponse parses an HTTP response from a DeleteCategoryWithResponse call
|
|
func ParseDeleteCategoryResponse(rsp *http.Response) (*DeleteCategoryResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteCategoryResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateCategoryResponse parses an HTTP response from a UpdateCategoryWithResponse call
|
|
func ParseUpdateCategoryResponse(rsp *http.Response) (*UpdateCategoryResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateCategoryResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ExpenseCategoryDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateStatus1Response parses an HTTP response from a UpdateStatus1WithResponse call
|
|
func ParseUpdateStatus1Response(rsp *http.Response) (*UpdateStatus1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateStatus1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ExpenseCategoryDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetExpensesInDateRangeResponse parses an HTTP response from a GetExpensesInDateRangeWithResponse call
|
|
func ParseGetExpensesInDateRangeResponse(rsp *http.Response) (*GetExpensesInDateRangeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetExpensesInDateRangeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ExpenseHydratedDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateInvoicedStatus1Response parses an HTTP response from a UpdateInvoicedStatus1WithResponse call
|
|
func ParseUpdateInvoicedStatus1Response(rsp *http.Response) (*UpdateInvoicedStatus1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateInvoicedStatus1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRestoreManyExpensesResponse parses an HTTP response from a RestoreManyExpensesWithResponse call
|
|
func ParseRestoreManyExpensesResponse(rsp *http.Response) (*RestoreManyExpensesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RestoreManyExpensesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ExpenseDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteExpenseResponse parses an HTTP response from a DeleteExpenseWithResponse call
|
|
func ParseDeleteExpenseResponse(rsp *http.Response) (*DeleteExpenseResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteExpenseResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ExpenseDeletedDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetExpenseResponse parses an HTTP response from a GetExpenseWithResponse call
|
|
func ParseGetExpenseResponse(rsp *http.Response) (*GetExpenseResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetExpenseResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ExpenseDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateExpenseResponse parses an HTTP response from a UpdateExpenseWithResponse call
|
|
func ParseUpdateExpenseResponse(rsp *http.Response) (*UpdateExpenseResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateExpenseResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ExpenseWithApprovalRequestUpdatedDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDownloadFileResponse parses an HTTP response from a DownloadFileWithResponse call
|
|
func ParseDownloadFileResponse(rsp *http.Response) (*DownloadFileResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DownloadFileResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []byte
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseImportFileDataResponse parses an HTTP response from a ImportFileDataWithResponse call
|
|
func ParseImportFileDataResponse(rsp *http.Response) (*ImportFileDataResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ImportFileDataResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCheckUsersForImportResponse parses an HTTP response from a CheckUsersForImportWithResponse call
|
|
func ParseCheckUsersForImportResponse(rsp *http.Response) (*CheckUsersForImportResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CheckUsersForImportResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest CheckUsersResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetHolidaysResponse parses an HTTP response from a GetHolidaysWithResponse call
|
|
func ParseGetHolidaysResponse(rsp *http.Response) (*GetHolidaysResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetHolidaysResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []HolidayDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate16Response parses an HTTP response from a Create16WithResponse call
|
|
func ParseCreate16Response(rsp *http.Response) (*Create16Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create16Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest HolidayDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete15Response parses an HTTP response from a Delete15WithResponse call
|
|
func ParseDelete15Response(rsp *http.Response) (*Delete15Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete15Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest HolidayDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdate9Response parses an HTTP response from a Update9WithResponse call
|
|
func ParseUpdate9Response(rsp *http.Response) (*Update9Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Update9Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest HolidayDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseSetHourlyRate2Response parses an HTTP response from a SetHourlyRate2WithResponse call
|
|
func ParseSetHourlyRate2Response(rsp *http.Response) (*SetHourlyRate2Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &SetHourlyRate2Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WorkspaceDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetInvitedEmailsInfoResponse parses an HTTP response from a GetInvitedEmailsInfoWithResponse call
|
|
func ParseGetInvitedEmailsInfoResponse(rsp *http.Response) (*GetInvitedEmailsInfoResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetInvitedEmailsInfoResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest InvitedEmailsInfo
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetInvoiceEmailTemplatesResponse parses an HTTP response from a GetInvoiceEmailTemplatesWithResponse call
|
|
func ParseGetInvoiceEmailTemplatesResponse(rsp *http.Response) (*GetInvoiceEmailTemplatesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetInvoiceEmailTemplatesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []InvoiceEmailTemplateDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpsertInvoiceEmailTemplateResponse parses an HTTP response from a UpsertInvoiceEmailTemplateWithResponse call
|
|
func ParseUpsertInvoiceEmailTemplateResponse(rsp *http.Response) (*UpsertInvoiceEmailTemplateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpsertInvoiceEmailTemplateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest InvoiceEmailTemplateDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetInvoiceEmailDataResponse parses an HTTP response from a GetInvoiceEmailDataWithResponse call
|
|
func ParseGetInvoiceEmailDataResponse(rsp *http.Response) (*GetInvoiceEmailDataResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetInvoiceEmailDataResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest InvoiceEmailDataDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseSendInvoiceEmailResponse parses an HTTP response from a SendInvoiceEmailWithResponse call
|
|
func ParseSendInvoiceEmailResponse(rsp *http.Response) (*SendInvoiceEmailResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &SendInvoiceEmailResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateInvoiceResponse parses an HTTP response from a CreateInvoiceWithResponse call
|
|
func ParseCreateInvoiceResponse(rsp *http.Response) (*CreateInvoiceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateInvoiceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest CreateInvoiceDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetAllCompaniesResponse parses an HTTP response from a GetAllCompaniesWithResponse call
|
|
func ParseGetAllCompaniesResponse(rsp *http.Response) (*GetAllCompaniesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetAllCompaniesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []CompanyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateCompanyResponse parses an HTTP response from a CreateCompanyWithResponse call
|
|
func ParseCreateCompanyResponse(rsp *http.Response) (*CreateCompanyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateCompanyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest CompanyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateCompaniesInWorkspaceResponse parses an HTTP response from a UpdateCompaniesInWorkspaceWithResponse call
|
|
func ParseUpdateCompaniesInWorkspaceResponse(rsp *http.Response) (*UpdateCompaniesInWorkspaceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateCompaniesInWorkspaceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCountAllCompaniesResponse parses an HTTP response from a CountAllCompaniesWithResponse call
|
|
func ParseCountAllCompaniesResponse(rsp *http.Response) (*CountAllCompaniesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CountAllCompaniesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest int64
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetClientsForInvoiceFilterResponse parses an HTTP response from a GetClientsForInvoiceFilterWithResponse call
|
|
func ParseGetClientsForInvoiceFilterResponse(rsp *http.Response) (*GetClientsForInvoiceFilterResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetClientsForInvoiceFilterResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []CompanyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteCompanyResponse parses an HTTP response from a DeleteCompanyWithResponse call
|
|
func ParseDeleteCompanyResponse(rsp *http.Response) (*DeleteCompanyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteCompanyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetCompanyByIdResponse parses an HTTP response from a GetCompanyByIdWithResponse call
|
|
func ParseGetCompanyByIdResponse(rsp *http.Response) (*GetCompanyByIdResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetCompanyByIdResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest CompanyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateCompanyResponse parses an HTTP response from a UpdateCompanyWithResponse call
|
|
func ParseUpdateCompanyResponse(rsp *http.Response) (*UpdateCompanyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateCompanyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest CompanyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetInvoicesInfoResponse parses an HTTP response from a GetInvoicesInfoWithResponse call
|
|
func ParseGetInvoicesInfoResponse(rsp *http.Response) (*GetInvoicesInfoResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetInvoicesInfoResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest InvoiceInfoResponseDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetInvoiceItemTypesResponse parses an HTTP response from a GetInvoiceItemTypesWithResponse call
|
|
func ParseGetInvoiceItemTypesResponse(rsp *http.Response) (*GetInvoiceItemTypesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetInvoiceItemTypesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []InvoiceItemTypeDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateInvoiceItemTypeResponse parses an HTTP response from a CreateInvoiceItemTypeWithResponse call
|
|
func ParseCreateInvoiceItemTypeResponse(rsp *http.Response) (*CreateInvoiceItemTypeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateInvoiceItemTypeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest CreateInvoiceItemTypeDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteInvoiceItemTypeResponse parses an HTTP response from a DeleteInvoiceItemTypeWithResponse call
|
|
func ParseDeleteInvoiceItemTypeResponse(rsp *http.Response) (*DeleteInvoiceItemTypeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteInvoiceItemTypeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateInvoiceItemTypeResponse parses an HTTP response from a UpdateInvoiceItemTypeWithResponse call
|
|
func ParseUpdateInvoiceItemTypeResponse(rsp *http.Response) (*UpdateInvoiceItemTypeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateInvoiceItemTypeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest InvoiceItemTypeDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetNextInvoiceNumberResponse parses an HTTP response from a GetNextInvoiceNumberWithResponse call
|
|
func ParseGetNextInvoiceNumberResponse(rsp *http.Response) (*GetNextInvoiceNumberResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetNextInvoiceNumberResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest NextInvoiceNumberDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetInvoicePermissionsResponse parses an HTTP response from a GetInvoicePermissionsWithResponse call
|
|
func ParseGetInvoicePermissionsResponse(rsp *http.Response) (*GetInvoicePermissionsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetInvoicePermissionsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest InvoicePermissionsDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateInvoicePermissionsResponse parses an HTTP response from a UpdateInvoicePermissionsWithResponse call
|
|
func ParseUpdateInvoicePermissionsResponse(rsp *http.Response) (*UpdateInvoicePermissionsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateInvoicePermissionsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCanUserManageInvoicesResponse parses an HTTP response from a CanUserManageInvoicesWithResponse call
|
|
func ParseCanUserManageInvoicesResponse(rsp *http.Response) (*CanUserManageInvoicesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CanUserManageInvoicesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetInvoiceSettingsResponse parses an HTTP response from a GetInvoiceSettingsWithResponse call
|
|
func ParseGetInvoiceSettingsResponse(rsp *http.Response) (*GetInvoiceSettingsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetInvoiceSettingsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest InvoiceSettingsDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateInvoiceSettingsResponse parses an HTTP response from a UpdateInvoiceSettingsWithResponse call
|
|
func ParseUpdateInvoiceSettingsResponse(rsp *http.Response) (*UpdateInvoiceSettingsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateInvoiceSettingsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteInvoiceResponse parses an HTTP response from a DeleteInvoiceWithResponse call
|
|
func ParseDeleteInvoiceResponse(rsp *http.Response) (*DeleteInvoiceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteInvoiceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetInvoiceResponse parses an HTTP response from a GetInvoiceWithResponse call
|
|
func ParseGetInvoiceResponse(rsp *http.Response) (*GetInvoiceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetInvoiceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest InvoiceOverviewDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateInvoiceResponse parses an HTTP response from a UpdateInvoiceWithResponse call
|
|
func ParseUpdateInvoiceResponse(rsp *http.Response) (*UpdateInvoiceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateInvoiceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest InvoiceOverviewDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDuplicateInvoiceResponse parses an HTTP response from a DuplicateInvoiceWithResponse call
|
|
func ParseDuplicateInvoiceResponse(rsp *http.Response) (*DuplicateInvoiceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DuplicateInvoiceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest InvoiceOverviewDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseExportInvoiceResponse parses an HTTP response from a ExportInvoiceWithResponse call
|
|
func ParseExportInvoiceResponse(rsp *http.Response) (*ExportInvoiceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ExportInvoiceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []byte
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseImportTimeAndExpensesResponse parses an HTTP response from a ImportTimeAndExpensesWithResponse call
|
|
func ParseImportTimeAndExpensesResponse(rsp *http.Response) (*ImportTimeAndExpensesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ImportTimeAndExpensesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest InvoiceOverviewDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseAddInvoiceItemResponse parses an HTTP response from a AddInvoiceItemWithResponse call
|
|
func ParseAddInvoiceItemResponse(rsp *http.Response) (*AddInvoiceItemResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &AddInvoiceItemResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest InvoiceItemDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseReorderInvoiceItem1Response parses an HTTP response from a ReorderInvoiceItem1WithResponse call
|
|
func ParseReorderInvoiceItem1Response(rsp *http.Response) (*ReorderInvoiceItem1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ReorderInvoiceItem1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []InvoiceItemDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseEditInvoiceItemResponse parses an HTTP response from a EditInvoiceItemWithResponse call
|
|
func ParseEditInvoiceItemResponse(rsp *http.Response) (*EditInvoiceItemResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &EditInvoiceItemResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest InvoiceOverviewDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteInvoiceItemsResponse parses an HTTP response from a DeleteInvoiceItemsWithResponse call
|
|
func ParseDeleteInvoiceItemsResponse(rsp *http.Response) (*DeleteInvoiceItemsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteInvoiceItemsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest InvoiceOverviewDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetPaymentsForInvoiceResponse parses an HTTP response from a GetPaymentsForInvoiceWithResponse call
|
|
func ParseGetPaymentsForInvoiceResponse(rsp *http.Response) (*GetPaymentsForInvoiceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetPaymentsForInvoiceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []InvoicePaymentDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateInvoicePaymentResponse parses an HTTP response from a CreateInvoicePaymentWithResponse call
|
|
func ParseCreateInvoicePaymentResponse(rsp *http.Response) (*CreateInvoicePaymentResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateInvoicePaymentResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest InvoiceOverviewDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeletePaymentByIdResponse parses an HTTP response from a DeletePaymentByIdWithResponse call
|
|
func ParseDeletePaymentByIdResponse(rsp *http.Response) (*DeletePaymentByIdResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeletePaymentByIdResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest InvoiceOverviewDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseChangeInvoiceStatusResponse parses an HTTP response from a ChangeInvoiceStatusWithResponse call
|
|
func ParseChangeInvoiceStatusResponse(rsp *http.Response) (*ChangeInvoiceStatusResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ChangeInvoiceStatusResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseAuthorizationCheckResponse parses an HTTP response from a AuthorizationCheckWithResponse call
|
|
func ParseAuthorizationCheckResponse(rsp *http.Response) (*AuthorizationCheckResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &AuthorizationCheckResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseIsAvailableResponse parses an HTTP response from a IsAvailableWithResponse call
|
|
func ParseIsAvailableResponse(rsp *http.Response) (*IsAvailableResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &IsAvailableResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseIsAvailable1Response parses an HTTP response from a IsAvailable1WithResponse call
|
|
func ParseIsAvailable1Response(rsp *http.Response) (*IsAvailable1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &IsAvailable1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGeneratePinCodeResponse parses an HTTP response from a GeneratePinCodeWithResponse call
|
|
func ParseGeneratePinCodeResponse(rsp *http.Response) (*GeneratePinCodeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GeneratePinCodeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest PinCodeDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGeneratePinCodeForUserResponse parses an HTTP response from a GeneratePinCodeForUserWithResponse call
|
|
func ParseGeneratePinCodeForUserResponse(rsp *http.Response) (*GeneratePinCodeForUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GeneratePinCodeForUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest PinCodeDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUserPinCodeResponse parses an HTTP response from a GetUserPinCodeWithResponse call
|
|
func ParseGetUserPinCodeResponse(rsp *http.Response) (*GetUserPinCodeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUserPinCodeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest KioskUserPinCodeDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdatePinCodeResponse parses an HTTP response from a UpdatePinCodeWithResponse call
|
|
func ParseUpdatePinCodeResponse(rsp *http.Response) (*UpdatePinCodeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdatePinCodeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetKiosksOfWorkspaceResponse parses an HTTP response from a GetKiosksOfWorkspaceWithResponse call
|
|
func ParseGetKiosksOfWorkspaceResponse(rsp *http.Response) (*GetKiosksOfWorkspaceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetKiosksOfWorkspaceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest KioskHydratedWithCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate15Response parses an HTTP response from a Create15WithResponse call
|
|
func ParseCreate15Response(rsp *http.Response) (*Create15Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create15Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest KioskDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateBreakDefaultsResponse parses an HTTP response from a UpdateBreakDefaultsWithResponse call
|
|
func ParseUpdateBreakDefaultsResponse(rsp *http.Response) (*UpdateBreakDefaultsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateBreakDefaultsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []KioskDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTotalCountOfKiosksOnWorkspaceResponse parses an HTTP response from a GetTotalCountOfKiosksOnWorkspaceWithResponse call
|
|
func ParseGetTotalCountOfKiosksOnWorkspaceResponse(rsp *http.Response) (*GetTotalCountOfKiosksOnWorkspaceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTotalCountOfKiosksOnWorkspaceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest int64
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateDefaultsResponse parses an HTTP response from a UpdateDefaultsWithResponse call
|
|
func ParseUpdateDefaultsResponse(rsp *http.Response) (*UpdateDefaultsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateDefaultsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []KioskDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseHasActiveKiosksResponse parses an HTTP response from a HasActiveKiosksWithResponse call
|
|
func ParseHasActiveKiosksResponse(rsp *http.Response) (*HasActiveKiosksResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &HasActiveKiosksResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetWithProjectResponse parses an HTTP response from a GetWithProjectWithResponse call
|
|
func ParseGetWithProjectResponse(rsp *http.Response) (*GetWithProjectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetWithProjectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []EntityIdNameDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetWithTaskResponse parses an HTTP response from a GetWithTaskWithResponse call
|
|
func ParseGetWithTaskResponse(rsp *http.Response) (*GetWithTaskResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetWithTaskResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []EntityIdNameDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetForReportFilterResponse parses an HTTP response from a GetForReportFilterWithResponse call
|
|
func ParseGetForReportFilterResponse(rsp *http.Response) (*GetForReportFilterResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetForReportFilterResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []EntityIdNameDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetWithoutDefaultsResponse parses an HTTP response from a GetWithoutDefaultsWithResponse call
|
|
func ParseGetWithoutDefaultsResponse(rsp *http.Response) (*GetWithoutDefaultsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetWithoutDefaultsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []KioskDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteKioskResponse parses an HTTP response from a DeleteKioskWithResponse call
|
|
func ParseDeleteKioskResponse(rsp *http.Response) (*DeleteKioskResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteKioskResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetKioskByIdResponse parses an HTTP response from a GetKioskByIdWithResponse call
|
|
func ParseGetKioskByIdResponse(rsp *http.Response) (*GetKioskByIdResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetKioskByIdResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest KioskHydratedDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdate8Response parses an HTTP response from a Update8WithResponse call
|
|
func ParseUpdate8Response(rsp *http.Response) (*Update8Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Update8Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest KioskDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseExportAssigneesResponse parses an HTTP response from a ExportAssigneesWithResponse call
|
|
func ParseExportAssigneesResponse(rsp *http.Response) (*ExportAssigneesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ExportAssigneesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []byte
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseHasEntryInProgressResponse parses an HTTP response from a HasEntryInProgressWithResponse call
|
|
func ParseHasEntryInProgressResponse(rsp *http.Response) (*HasEntryInProgressResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &HasEntryInProgressResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateStatusResponse parses an HTTP response from a UpdateStatusWithResponse call
|
|
func ParseUpdateStatusResponse(rsp *http.Response) (*UpdateStatusResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateStatusResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest KioskDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseAcknowledgeLegacyPlanNotificationsResponse parses an HTTP response from a AcknowledgeLegacyPlanNotificationsWithResponse call
|
|
func ParseAcknowledgeLegacyPlanNotificationsResponse(rsp *http.Response) (*AcknowledgeLegacyPlanNotificationsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &AcknowledgeLegacyPlanNotificationsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetLegacyPlanUpgradeDataResponse parses an HTTP response from a GetLegacyPlanUpgradeDataWithResponse call
|
|
func ParseGetLegacyPlanUpgradeDataResponse(rsp *http.Response) (*GetLegacyPlanUpgradeDataResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetLegacyPlanUpgradeDataResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest LegacyPlanUpgradeDataDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseAddLimitedUsersResponse parses an HTTP response from a AddLimitedUsersWithResponse call
|
|
func ParseAddLimitedUsersResponse(rsp *http.Response) (*AddLimitedUsersResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &AddLimitedUsersResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WorkspaceDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetLimitedUsersCountResponse parses an HTTP response from a GetLimitedUsersCountWithResponse call
|
|
func ParseGetLimitedUsersCountResponse(rsp *http.Response) (*GetLimitedUsersCountResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetLimitedUsersCountResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest int32
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetMemberProfileResponse parses an HTTP response from a GetMemberProfileWithResponse call
|
|
func ParseGetMemberProfileResponse(rsp *http.Response) (*GetMemberProfileResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetMemberProfileResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest MemberProfileDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateMemberProfileResponse parses an HTTP response from a UpdateMemberProfileWithResponse call
|
|
func ParseUpdateMemberProfileResponse(rsp *http.Response) (*UpdateMemberProfileResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateMemberProfileResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest MemberProfileDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateMemberProfileWithAdditionalDataResponse parses an HTTP response from a UpdateMemberProfileWithAdditionalDataWithResponse call
|
|
func ParseUpdateMemberProfileWithAdditionalDataResponse(rsp *http.Response) (*UpdateMemberProfileWithAdditionalDataResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateMemberProfileWithAdditionalDataResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest MemberProfileDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateMemberSettingsResponse parses an HTTP response from a UpdateMemberSettingsWithResponse call
|
|
func ParseUpdateMemberSettingsResponse(rsp *http.Response) (*UpdateMemberSettingsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateMemberSettingsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest MemberProfileDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetWeekStartResponse parses an HTTP response from a GetWeekStartWithResponse call
|
|
func ParseGetWeekStartResponse(rsp *http.Response) (*GetWeekStartResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetWeekStartResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest GetWeekStart200
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateMemberWorkingDaysAndCapacityResponse parses an HTTP response from a UpdateMemberWorkingDaysAndCapacityWithResponse call
|
|
func ParseUpdateMemberWorkingDaysAndCapacityResponse(rsp *http.Response) (*UpdateMemberWorkingDaysAndCapacityResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateMemberWorkingDaysAndCapacityResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest MemberProfileDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetMembersCountResponse parses an HTTP response from a GetMembersCountWithResponse call
|
|
func ParseGetMembersCountResponse(rsp *http.Response) (*GetMembersCountResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetMembersCountResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest MembersCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseFindNotInvitedEmailsInResponse parses an HTTP response from a FindNotInvitedEmailsInWithResponse call
|
|
func ParseFindNotInvitedEmailsInResponse(rsp *http.Response) (*FindNotInvitedEmailsInResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &FindNotInvitedEmailsInResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []string
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call
|
|
func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetOrganizationResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest OrganizationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate14Response parses an HTTP response from a Create14WithResponse call
|
|
func ParseCreate14Response(rsp *http.Response) (*Create14Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create14Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest OrganizationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetOrganizationNameResponse parses an HTTP response from a GetOrganizationNameWithResponse call
|
|
func ParseGetOrganizationNameResponse(rsp *http.Response) (*GetOrganizationNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetOrganizationNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest OrganizationNameDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCheckAvailabilityOfDomainNameResponse parses an HTTP response from a CheckAvailabilityOfDomainNameWithResponse call
|
|
func ParseCheckAvailabilityOfDomainNameResponse(rsp *http.Response) (*CheckAvailabilityOfDomainNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CheckAvailabilityOfDomainNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteOrganizationResponse parses an HTTP response from a DeleteOrganizationWithResponse call
|
|
func ParseDeleteOrganizationResponse(rsp *http.Response) (*DeleteOrganizationResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteOrganizationResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest OrganizationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateOrganizationResponse parses an HTTP response from a UpdateOrganizationWithResponse call
|
|
func ParseUpdateOrganizationResponse(rsp *http.Response) (*UpdateOrganizationResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateOrganizationResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest OrganizationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetLoginSettingsResponse parses an HTTP response from a GetLoginSettingsWithResponse call
|
|
func ParseGetLoginSettingsResponse(rsp *http.Response) (*GetLoginSettingsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetLoginSettingsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest LoginSettingsDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteOAuth2ConfigurationResponse parses an HTTP response from a DeleteOAuth2ConfigurationWithResponse call
|
|
func ParseDeleteOAuth2ConfigurationResponse(rsp *http.Response) (*DeleteOAuth2ConfigurationResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteOAuth2ConfigurationResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetOrganizationOAuth2ConfigurationResponse parses an HTTP response from a GetOrganizationOAuth2ConfigurationWithResponse call
|
|
func ParseGetOrganizationOAuth2ConfigurationResponse(rsp *http.Response) (*GetOrganizationOAuth2ConfigurationResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetOrganizationOAuth2ConfigurationResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest OAuth2ConfigurationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateOAuth2Configuration1Response parses an HTTP response from a UpdateOAuth2Configuration1WithResponse call
|
|
func ParseUpdateOAuth2Configuration1Response(rsp *http.Response) (*UpdateOAuth2Configuration1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateOAuth2Configuration1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest OAuth2ConfigurationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseTestOAuth2ConfigurationResponse parses an HTTP response from a TestOAuth2ConfigurationWithResponse call
|
|
func ParseTestOAuth2ConfigurationResponse(rsp *http.Response) (*TestOAuth2ConfigurationResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &TestOAuth2ConfigurationResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteSAML2ConfigurationResponse parses an HTTP response from a DeleteSAML2ConfigurationWithResponse call
|
|
func ParseDeleteSAML2ConfigurationResponse(rsp *http.Response) (*DeleteSAML2ConfigurationResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteSAML2ConfigurationResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetOrganizationSAML2ConfigurationResponse parses an HTTP response from a GetOrganizationSAML2ConfigurationWithResponse call
|
|
func ParseGetOrganizationSAML2ConfigurationResponse(rsp *http.Response) (*GetOrganizationSAML2ConfigurationResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetOrganizationSAML2ConfigurationResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest SAML2ConfigurationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateSAML2ConfigurationResponse parses an HTTP response from a UpdateSAML2ConfigurationWithResponse call
|
|
func ParseUpdateSAML2ConfigurationResponse(rsp *http.Response) (*UpdateSAML2ConfigurationResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateSAML2ConfigurationResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest SAML2ConfigurationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseTestSAML2ConfigurationResponse parses an HTTP response from a TestSAML2ConfigurationWithResponse call
|
|
func ParseTestSAML2ConfigurationResponse(rsp *http.Response) (*TestSAML2ConfigurationResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &TestSAML2ConfigurationResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetAllOrganizationsOfUserResponse parses an HTTP response from a GetAllOrganizationsOfUserWithResponse call
|
|
func ParseGetAllOrganizationsOfUserResponse(rsp *http.Response) (*GetAllOrganizationsOfUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetAllOrganizationsOfUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []string
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetWorkspaceOwnerResponse parses an HTTP response from a GetWorkspaceOwnerWithResponse call
|
|
func ParseGetWorkspaceOwnerResponse(rsp *http.Response) (*GetWorkspaceOwnerResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetWorkspaceOwnerResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest OwnerIdResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseTransferOwnershipResponse parses an HTTP response from a TransferOwnershipWithResponse call
|
|
func ParseTransferOwnershipResponse(rsp *http.Response) (*TransferOwnershipResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &TransferOwnershipResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetWorkspaceOwnerTimeZoneResponse parses an HTTP response from a GetWorkspaceOwnerTimeZoneWithResponse call
|
|
func ParseGetWorkspaceOwnerTimeZoneResponse(rsp *http.Response) (*GetWorkspaceOwnerTimeZoneResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetWorkspaceOwnerTimeZoneResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest OwnerTimeZoneResponse
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCancelSubscriptionResponse parses an HTTP response from a CancelSubscriptionWithResponse call
|
|
func ParseCancelSubscriptionResponse(rsp *http.Response) (*CancelSubscriptionResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CancelSubscriptionResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest BillingInformationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseConfirmPaymentResponse parses an HTTP response from a ConfirmPaymentWithResponse call
|
|
func ParseConfirmPaymentResponse(rsp *http.Response) (*ConfirmPaymentResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ConfirmPaymentResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest BillingInformationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetCustomerInfoResponse parses an HTTP response from a GetCustomerInfoWithResponse call
|
|
func ParseGetCustomerInfoResponse(rsp *http.Response) (*GetCustomerInfoResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetCustomerInfoResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest CustomerInformationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateCustomerResponse parses an HTTP response from a CreateCustomerWithResponse call
|
|
func ParseCreateCustomerResponse(rsp *http.Response) (*CreateCustomerResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateCustomerResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest CustomerDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateCustomerResponse parses an HTTP response from a UpdateCustomerWithResponse call
|
|
func ParseUpdateCustomerResponse(rsp *http.Response) (*UpdateCustomerResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateCustomerResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseEditInvoiceInformationResponse parses an HTTP response from a EditInvoiceInformationWithResponse call
|
|
func ParseEditInvoiceInformationResponse(rsp *http.Response) (*EditInvoiceInformationResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &EditInvoiceInformationResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest CustomerBillingInformationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseEditPaymentInformationResponse parses an HTTP response from a EditPaymentInformationWithResponse call
|
|
func ParseEditPaymentInformationResponse(rsp *http.Response) (*EditPaymentInformationResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &EditPaymentInformationResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest CustomerPaymentInformationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseExtendTrialResponse parses an HTTP response from a ExtendTrialWithResponse call
|
|
func ParseExtendTrialResponse(rsp *http.Response) (*ExtendTrialResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ExtendTrialResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetFeatureSubscriptionsResponse parses an HTTP response from a GetFeatureSubscriptionsWithResponse call
|
|
func ParseGetFeatureSubscriptionsResponse(rsp *http.Response) (*GetFeatureSubscriptionsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetFeatureSubscriptionsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []FeatureSubscriptionsDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseInitialUpgradeResponse parses an HTTP response from a InitialUpgradeWithResponse call
|
|
func ParseInitialUpgradeResponse(rsp *http.Response) (*InitialUpgradeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &InitialUpgradeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UpgradePriceDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetInvoiceInfoResponse parses an HTTP response from a GetInvoiceInfoWithResponse call
|
|
func ParseGetInvoiceInfoResponse(rsp *http.Response) (*GetInvoiceInfoResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetInvoiceInfoResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest CustomerBillingInformationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetInvoicesResponse parses an HTTP response from a GetInvoicesWithResponse call
|
|
func ParseGetInvoicesResponse(rsp *http.Response) (*GetInvoicesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetInvoicesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []StripeInvoiceDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetInvoicesCountResponse parses an HTTP response from a GetInvoicesCountWithResponse call
|
|
func ParseGetInvoicesCountResponse(rsp *http.Response) (*GetInvoicesCountResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetInvoicesCountResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest map[string]int64
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetLastOpenInvoiceResponse parses an HTTP response from a GetLastOpenInvoiceWithResponse call
|
|
func ParseGetLastOpenInvoiceResponse(rsp *http.Response) (*GetLastOpenInvoiceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetLastOpenInvoiceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest StripeInvoicePayDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetInvoicesListResponse parses an HTTP response from a GetInvoicesListWithResponse call
|
|
func ParseGetInvoicesListResponse(rsp *http.Response) (*GetInvoicesListResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetInvoicesListResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest StripeInvoicesDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetPaymentDateResponse parses an HTTP response from a GetPaymentDateWithResponse call
|
|
func ParseGetPaymentDateResponse(rsp *http.Response) (*GetPaymentDateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetPaymentDateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest BillingInformationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetPaymentInfoResponse parses an HTTP response from a GetPaymentInfoWithResponse call
|
|
func ParseGetPaymentInfoResponse(rsp *http.Response) (*GetPaymentInfoResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetPaymentInfoResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest CustomerPaymentInformationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateSetupIntentForPaymentMethodResponse parses an HTTP response from a CreateSetupIntentForPaymentMethodWithResponse call
|
|
func ParseCreateSetupIntentForPaymentMethodResponse(rsp *http.Response) (*CreateSetupIntentForPaymentMethodResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateSetupIntentForPaymentMethodResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest SetupIntentDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePreviewUpgradeResponse parses an HTTP response from a PreviewUpgradeWithResponse call
|
|
func ParsePreviewUpgradeResponse(rsp *http.Response) (*PreviewUpgradeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PreviewUpgradeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UpgradePriceDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseReactivateSubscriptionResponse parses an HTTP response from a ReactivateSubscriptionWithResponse call
|
|
func ParseReactivateSubscriptionResponse(rsp *http.Response) (*ReactivateSubscriptionResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ReactivateSubscriptionResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetScheduledInvoiceInfoResponse parses an HTTP response from a GetScheduledInvoiceInfoWithResponse call
|
|
func ParseGetScheduledInvoiceInfoResponse(rsp *http.Response) (*GetScheduledInvoiceInfoResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetScheduledInvoiceInfoResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest NextCustomerInformationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateUserSeatsResponse parses an HTTP response from a UpdateUserSeatsWithResponse call
|
|
func ParseUpdateUserSeatsResponse(rsp *http.Response) (*UpdateUserSeatsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateUserSeatsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest BillingInformationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateSetupIntentForInitialSubscriptionResponse parses an HTTP response from a CreateSetupIntentForInitialSubscriptionWithResponse call
|
|
func ParseCreateSetupIntentForInitialSubscriptionResponse(rsp *http.Response) (*CreateSetupIntentForInitialSubscriptionResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateSetupIntentForInitialSubscriptionResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest SetupIntentDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateSubscriptionResponse parses an HTTP response from a CreateSubscriptionWithResponse call
|
|
func ParseCreateSubscriptionResponse(rsp *http.Response) (*CreateSubscriptionResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateSubscriptionResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest BillingInformationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateSubscriptionResponse parses an HTTP response from a UpdateSubscriptionWithResponse call
|
|
func ParseUpdateSubscriptionResponse(rsp *http.Response) (*UpdateSubscriptionResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateSubscriptionResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest BillingInformationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpgradePreCheckResponse parses an HTTP response from a UpgradePreCheckWithResponse call
|
|
func ParseUpgradePreCheckResponse(rsp *http.Response) (*UpgradePreCheckResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpgradePreCheckResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UpgradePreCheckDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteSubscriptionResponse parses an HTTP response from a DeleteSubscriptionWithResponse call
|
|
func ParseDeleteSubscriptionResponse(rsp *http.Response) (*DeleteSubscriptionResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteSubscriptionResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseTerminateTrialResponse parses an HTTP response from a TerminateTrialWithResponse call
|
|
func ParseTerminateTrialResponse(rsp *http.Response) (*TerminateTrialResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &TerminateTrialResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseStartTrialResponse parses an HTTP response from a StartTrialWithResponse call
|
|
func ParseStartTrialResponse(rsp *http.Response) (*StartTrialResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &StartTrialResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseWasRegionalEverAllowedResponse parses an HTTP response from a WasRegionalEverAllowedWithResponse call
|
|
func ParseWasRegionalEverAllowedResponse(rsp *http.Response) (*WasRegionalEverAllowedResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &WasRegionalEverAllowedResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseFindForUserAndPolicyResponse parses an HTTP response from a FindForUserAndPolicyWithResponse call
|
|
func ParseFindForUserAndPolicyResponse(rsp *http.Response) (*FindForUserAndPolicyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &FindForUserAndPolicyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []BalanceHistoryDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetClientsResponse parses an HTTP response from a GetClientsWithResponse call
|
|
func ParseGetClientsResponse(rsp *http.Response) (*GetClientsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetClientsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ProjectsByClientDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetProjects3Response parses an HTTP response from a GetProjects3WithResponse call
|
|
func ParseGetProjects3Response(rsp *http.Response) (*GetProjects3Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetProjects3Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ProjectFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetProjectFavoritesResponse parses an HTTP response from a GetProjectFavoritesWithResponse call
|
|
func ParseGetProjectFavoritesResponse(rsp *http.Response) (*GetProjectFavoritesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetProjectFavoritesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ProjectFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTasks21Response parses an HTTP response from a GetTasks21WithResponse call
|
|
func ParseGetTasks21Response(rsp *http.Response) (*GetTasks21Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTasks21Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TaskFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRecalculateProjectStatus1Response parses an HTTP response from a RecalculateProjectStatus1WithResponse call
|
|
func ParseRecalculateProjectStatus1Response(rsp *http.Response) (*RecalculateProjectStatus1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RecalculateProjectStatus1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetProjectAndTaskResponse parses an HTTP response from a GetProjectAndTaskWithResponse call
|
|
func ParseGetProjectAndTaskResponse(rsp *http.Response) (*GetProjectAndTaskResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetProjectAndTaskResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest TaskWithProjectDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteMany2Response parses an HTTP response from a DeleteMany2WithResponse call
|
|
func ParseDeleteMany2Response(rsp *http.Response) (*DeleteMany2Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteMany2Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ProjectDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetProjects2Response parses an HTTP response from a GetProjects2WithResponse call
|
|
func ParseGetProjects2Response(rsp *http.Response) (*GetProjects2Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetProjects2Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest PageProjectDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateMany1Response parses an HTTP response from a UpdateMany1WithResponse call
|
|
func ParseUpdateMany1Response(rsp *http.Response) (*UpdateMany1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateMany1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest BulkProjectEditDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate12Response parses an HTTP response from a Create12WithResponse call
|
|
func ParseCreate12Response(rsp *http.Response) (*Create12Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create12Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest ProjectFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetFilteredProjectsCountResponse parses an HTTP response from a GetFilteredProjectsCountWithResponse call
|
|
func ParseGetFilteredProjectsCountResponse(rsp *http.Response) (*GetFilteredProjectsCountResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetFilteredProjectsCountResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest int32
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetFilteredProjectsResponse parses an HTTP response from a GetFilteredProjectsWithResponse call
|
|
func ParseGetFilteredProjectsResponse(rsp *http.Response) (*GetFilteredProjectsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetFilteredProjectsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest PageProjectDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateFromTemplateResponse parses an HTTP response from a CreateFromTemplateWithResponse call
|
|
func ParseCreateFromTemplateResponse(rsp *http.Response) (*CreateFromTemplateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateFromTemplateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest ProjectFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetProjectResponse parses an HTTP response from a GetProjectWithResponse call
|
|
func ParseGetProjectResponse(rsp *http.Response) (*GetProjectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetProjectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ProjectDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetLastUsedProjectResponse parses an HTTP response from a GetLastUsedProjectWithResponse call
|
|
func ParseGetLastUsedProjectResponse(rsp *http.Response) (*GetLastUsedProjectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetLastUsedProjectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ProjectDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseLastUsedProject1Response parses an HTTP response from a LastUsedProject1WithResponse call
|
|
func ParseLastUsedProject1Response(rsp *http.Response) (*LastUsedProject1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &LastUsedProject1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest struct {
|
|
union json.RawMessage
|
|
}
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetProjectsListResponse parses an HTTP response from a GetProjectsListWithResponse call
|
|
func ParseGetProjectsListResponse(rsp *http.Response) (*GetProjectsListResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetProjectsListResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ProjectDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseHasManagerRole1Response parses an HTTP response from a HasManagerRole1WithResponse call
|
|
func ParseHasManagerRole1Response(rsp *http.Response) (*HasManagerRole1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &HasManagerRole1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetProjectsForReportFilterResponse parses an HTTP response from a GetProjectsForReportFilterWithResponse call
|
|
func ParseGetProjectsForReportFilterResponse(rsp *http.Response) (*GetProjectsForReportFilterResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetProjectsForReportFilterResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ProjectDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetProjectIdsForReportFilterResponse parses an HTTP response from a GetProjectIdsForReportFilterWithResponse call
|
|
func ParseGetProjectIdsForReportFilterResponse(rsp *http.Response) (*GetProjectIdsForReportFilterResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetProjectIdsForReportFilterResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []string
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTasksByIdsResponse parses an HTTP response from a GetTasksByIdsWithResponse call
|
|
func ParseGetTasksByIdsResponse(rsp *http.Response) (*GetTasksByIdsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTasksByIdsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TaskDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetAllTasksResponse parses an HTTP response from a GetAllTasksWithResponse call
|
|
func ParseGetAllTasksResponse(rsp *http.Response) (*GetAllTasksResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetAllTasksResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TaskDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTasksResponse parses an HTTP response from a GetTasksWithResponse call
|
|
func ParseGetTasksResponse(rsp *http.Response) (*GetTasksResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTasksResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TaskDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTasksForReportFilterResponse parses an HTTP response from a GetTasksForReportFilterWithResponse call
|
|
func ParseGetTasksForReportFilterResponse(rsp *http.Response) (*GetTasksForReportFilterResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTasksForReportFilterResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TasksGroupedByProjectIdDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTaskIdsForReportFilterResponse parses an HTTP response from a GetTaskIdsForReportFilterWithResponse call
|
|
func ParseGetTaskIdsForReportFilterResponse(rsp *http.Response) (*GetTaskIdsForReportFilterResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTaskIdsForReportFilterResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []string
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTimeOffPoliciesAndHolidaysWithProjectsResponse parses an HTTP response from a GetTimeOffPoliciesAndHolidaysWithProjectsWithResponse call
|
|
func ParseGetTimeOffPoliciesAndHolidaysWithProjectsResponse(rsp *http.Response) (*GetTimeOffPoliciesAndHolidaysWithProjectsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTimeOffPoliciesAndHolidaysWithProjectsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeOffPolicyHolidayForProjects
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetLastUsedOfUserResponse parses an HTTP response from a GetLastUsedOfUserWithResponse call
|
|
func ParseGetLastUsedOfUserResponse(rsp *http.Response) (*GetLastUsedOfUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetLastUsedOfUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ProjectDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetPermissionsToUserForProjectsResponse parses an HTTP response from a GetPermissionsToUserForProjectsWithResponse call
|
|
func ParseGetPermissionsToUserForProjectsResponse(rsp *http.Response) (*GetPermissionsToUserForProjectsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetPermissionsToUserForProjectsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AuthorizationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete13Response parses an HTTP response from a Delete13WithResponse call
|
|
func ParseDelete13Response(rsp *http.Response) (*Delete13Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete13Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ProjectDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetProject1Response parses an HTTP response from a GetProject1WithResponse call
|
|
func ParseGetProject1Response(rsp *http.Response) (*GetProject1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetProject1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ProjectDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdate14Response parses an HTTP response from a Update14WithResponse call
|
|
func ParseUpdate14Response(rsp *http.Response) (*Update14Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Update14Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ProjectDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdate6Response parses an HTTP response from a Update6WithResponse call
|
|
func ParseUpdate6Response(rsp *http.Response) (*Update6Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Update6Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ProjectDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseSetCostRate1Response parses an HTTP response from a SetCostRate1WithResponse call
|
|
func ParseSetCostRate1Response(rsp *http.Response) (*SetCostRate1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &SetCostRate1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ProjectDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateEstimateResponse parses an HTTP response from a UpdateEstimateWithResponse call
|
|
func ParseUpdateEstimateResponse(rsp *http.Response) (*UpdateEstimateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateEstimateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ProjectDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseSetHourlyRate1Response parses an HTTP response from a SetHourlyRate1WithResponse call
|
|
func ParseSetHourlyRate1Response(rsp *http.Response) (*SetHourlyRate1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &SetHourlyRate1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ProjectDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseHasManagerRoleResponse parses an HTTP response from a HasManagerRoleWithResponse call
|
|
func ParseHasManagerRoleResponse(rsp *http.Response) (*HasManagerRoleResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &HasManagerRoleResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetAuthsForProjectResponse parses an HTTP response from a GetAuthsForProjectWithResponse call
|
|
func ParseGetAuthsForProjectResponse(rsp *http.Response) (*GetAuthsForProjectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetAuthsForProjectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AuthorizationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRecalculateProjectStatusResponse parses an HTTP response from a RecalculateProjectStatusWithResponse call
|
|
func ParseRecalculateProjectStatusResponse(rsp *http.Response) (*RecalculateProjectStatusResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RecalculateProjectStatusResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTasks1Response parses an HTTP response from a GetTasks1WithResponse call
|
|
func ParseGetTasks1Response(rsp *http.Response) (*GetTasks1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTasks1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TaskDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate13Response parses an HTTP response from a Create13WithResponse call
|
|
func ParseCreate13Response(rsp *http.Response) (*Create13Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create13Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest TaskDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTasksAssignedToUserResponse parses an HTTP response from a GetTasksAssignedToUserWithResponse call
|
|
func ParseGetTasksAssignedToUserResponse(rsp *http.Response) (*GetTasksAssignedToUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTasksAssignedToUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TaskDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTimeOffPoliciesAndHolidaysWithTasksResponse parses an HTTP response from a GetTimeOffPoliciesAndHolidaysWithTasksWithResponse call
|
|
func ParseGetTimeOffPoliciesAndHolidaysWithTasksResponse(rsp *http.Response) (*GetTimeOffPoliciesAndHolidaysWithTasksResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTimeOffPoliciesAndHolidaysWithTasksResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeOffPolicyHolidayForTasks
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdate7Response parses an HTTP response from a Update7WithResponse call
|
|
func ParseUpdate7Response(rsp *http.Response) (*Update7Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Update7Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TaskDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseSetCostRateResponse parses an HTTP response from a SetCostRateWithResponse call
|
|
func ParseSetCostRateResponse(rsp *http.Response) (*SetCostRateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &SetCostRateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TaskDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseSetHourlyRateResponse parses an HTTP response from a SetHourlyRateWithResponse call
|
|
func ParseSetHourlyRateResponse(rsp *http.Response) (*SetHourlyRateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &SetHourlyRateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TaskDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete14Response parses an HTTP response from a Delete14WithResponse call
|
|
func ParseDelete14Response(rsp *http.Response) (*Delete14Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete14Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TaskDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTaskAssignedToUserResponse parses an HTTP response from a GetTaskAssignedToUserWithResponse call
|
|
func ParseGetTaskAssignedToUserResponse(rsp *http.Response) (*GetTaskAssignedToUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTaskAssignedToUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TaskDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseAddUsers1Response parses an HTTP response from a AddUsers1WithResponse call
|
|
func ParseAddUsers1Response(rsp *http.Response) (*AddUsers1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &AddUsers1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ProjectDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetStatusResponse parses an HTTP response from a GetStatusWithResponse call
|
|
func ParseGetStatusResponse(rsp *http.Response) (*GetStatusResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetStatusResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ProjectStatus
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRemoveUserGroupMembershipResponse parses an HTTP response from a RemoveUserGroupMembershipWithResponse call
|
|
func ParseRemoveUserGroupMembershipResponse(rsp *http.Response) (*RemoveUserGroupMembershipResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RemoveUserGroupMembershipResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ProjectDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsers4Response parses an HTTP response from a GetUsers4WithResponse call
|
|
func ParseGetUsers4Response(rsp *http.Response) (*GetUsers4Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsers4Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseAddUsersCostRate1Response parses an HTTP response from a AddUsersCostRate1WithResponse call
|
|
func ParseAddUsersCostRate1Response(rsp *http.Response) (*AddUsersCostRate1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &AddUsersCostRate1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ProjectDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseAddUsersHourlyRate1Response parses an HTTP response from a AddUsersHourlyRate1WithResponse call
|
|
func ParseAddUsersHourlyRate1Response(rsp *http.Response) (*AddUsersHourlyRate1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &AddUsersHourlyRate1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ProjectDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRemoveUserMembershipResponse parses an HTTP response from a RemoveUserMembershipWithResponse call
|
|
func ParseRemoveUserMembershipResponse(rsp *http.Response) (*RemoveUserMembershipResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RemoveUserMembershipResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ProjectDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRemovePermissionsToUserResponse parses an HTTP response from a RemovePermissionsToUserWithResponse call
|
|
func ParseRemovePermissionsToUserResponse(rsp *http.Response) (*RemovePermissionsToUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RemovePermissionsToUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AuthorizationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetPermissionsToUser1Response parses an HTTP response from a GetPermissionsToUser1WithResponse call
|
|
func ParseGetPermissionsToUser1Response(rsp *http.Response) (*GetPermissionsToUser1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetPermissionsToUser1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AuthorizationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseAddPermissionsToUserResponse parses an HTTP response from a AddPermissionsToUserWithResponse call
|
|
func ParseAddPermissionsToUserResponse(rsp *http.Response) (*AddPermissionsToUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &AddPermissionsToUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AuthorizationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDisconnectResponse parses an HTTP response from a DisconnectWithResponse call
|
|
func ParseDisconnectResponse(rsp *http.Response) (*DisconnectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DisconnectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseConnectResponse parses an HTTP response from a ConnectWithResponse call
|
|
func ParseConnectResponse(rsp *http.Response) (*ConnectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ConnectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest PumbleInitialConnectionDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseConnect1Response parses an HTTP response from a Connect1WithResponse call
|
|
func ParseConnect1Response(rsp *http.Response) (*Connect1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Connect1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest PumbleConnectedDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseSyncClientsResponse parses an HTTP response from a SyncClientsWithResponse call
|
|
func ParseSyncClientsResponse(rsp *http.Response) (*SyncClientsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &SyncClientsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest []ClientDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseSyncProjectsResponse parses an HTTP response from a SyncProjectsWithResponse call
|
|
func ParseSyncProjectsResponse(rsp *http.Response) (*SyncProjectsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &SyncProjectsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest []ProjectDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateProjectsResponse parses an HTTP response from a UpdateProjectsWithResponse call
|
|
func ParseUpdateProjectsResponse(rsp *http.Response) (*UpdateProjectsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateProjectsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetAllRegionsForUserAccountResponse parses an HTTP response from a GetAllRegionsForUserAccountWithResponse call
|
|
func ParseGetAllRegionsForUserAccountResponse(rsp *http.Response) (*GetAllRegionsForUserAccountResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetAllRegionsForUserAccountResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []RegionDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseListOfWorkspaceResponse parses an HTTP response from a ListOfWorkspaceWithResponse call
|
|
func ParseListOfWorkspaceResponse(rsp *http.Response) (*ListOfWorkspaceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ListOfWorkspaceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ReminderDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate11Response parses an HTTP response from a Create11WithResponse call
|
|
func ParseCreate11Response(rsp *http.Response) (*Create11Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create11Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest ReminderDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseOfWorkspaceIdAndUserIdResponse parses an HTTP response from a OfWorkspaceIdAndUserIdWithResponse call
|
|
func ParseOfWorkspaceIdAndUserIdResponse(rsp *http.Response) (*OfWorkspaceIdAndUserIdResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &OfWorkspaceIdAndUserIdResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ReminderDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete12Response parses an HTTP response from a Delete12WithResponse call
|
|
func ParseDelete12Response(rsp *http.Response) (*Delete12Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete12Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdate5Response parses an HTTP response from a Update5WithResponse call
|
|
func ParseUpdate5Response(rsp *http.Response) (*Update5Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Update5Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ReminderDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetDashboardInfoResponse parses an HTTP response from a GetDashboardInfoWithResponse call
|
|
func ParseGetDashboardInfoResponse(rsp *http.Response) (*GetDashboardInfoResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetDashboardInfoResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest MainReportDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetMyMostTrackedResponse parses an HTTP response from a GetMyMostTrackedWithResponse call
|
|
func ParseGetMyMostTrackedResponse(rsp *http.Response) (*GetMyMostTrackedResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetMyMostTrackedResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []MostTrackedDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTeamActivitiesResponse parses an HTTP response from a GetTeamActivitiesWithResponse call
|
|
func ParseGetTeamActivitiesResponse(rsp *http.Response) (*GetTeamActivitiesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTeamActivitiesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TeamActivityDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetAmountPreviewResponse parses an HTTP response from a GetAmountPreviewWithResponse call
|
|
func ParseGetAmountPreviewResponse(rsp *http.Response) (*GetAmountPreviewResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetAmountPreviewResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest BillableAndCostAmountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetDraftAssignmentsCountResponse parses an HTTP response from a GetDraftAssignmentsCountWithResponse call
|
|
func ParseGetDraftAssignmentsCountResponse(rsp *http.Response) (*GetDraftAssignmentsCountResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetDraftAssignmentsCountResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest DraftAssignmentsCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetProjectTotalsResponse parses an HTTP response from a GetProjectTotalsWithResponse call
|
|
func ParseGetProjectTotalsResponse(rsp *http.Response) (*GetProjectTotalsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetProjectTotalsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []SchedulingProjectsTotalsWithoutBillableDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetFilteredProjectTotalsResponse parses an HTTP response from a GetFilteredProjectTotalsWithResponse call
|
|
func ParseGetFilteredProjectTotalsResponse(rsp *http.Response) (*GetFilteredProjectTotalsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetFilteredProjectTotalsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []SchedulingProjectsTotalsWithoutBillableDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetProjectTotalsForSingleProjectResponse parses an HTTP response from a GetProjectTotalsForSingleProjectWithResponse call
|
|
func ParseGetProjectTotalsForSingleProjectResponse(rsp *http.Response) (*GetProjectTotalsForSingleProjectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetProjectTotalsForSingleProjectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest SchedulingProjectsTotalsWithoutBillableDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetProjectsForUserResponse parses an HTTP response from a GetProjectsForUserWithResponse call
|
|
func ParseGetProjectsForUserResponse(rsp *http.Response) (*GetProjectsForUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetProjectsForUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest SchedulingProjectsDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePublishAssignmentsResponse parses an HTTP response from a PublishAssignmentsWithResponse call
|
|
func ParsePublishAssignmentsResponse(rsp *http.Response) (*PublishAssignmentsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PublishAssignmentsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateRecurringResponse parses an HTTP response from a CreateRecurringWithResponse call
|
|
func ParseCreateRecurringResponse(rsp *http.Response) (*CreateRecurringResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateRecurringResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest []AssignmentDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete11Response parses an HTTP response from a Delete11WithResponse call
|
|
func ParseDelete11Response(rsp *http.Response) (*Delete11Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete11Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AssignmentDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseEditRecurringResponse parses an HTTP response from a EditRecurringWithResponse call
|
|
func ParseEditRecurringResponse(rsp *http.Response) (*EditRecurringResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &EditRecurringResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AssignmentDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseEditPeriodForRecurringResponse parses an HTTP response from a EditPeriodForRecurringWithResponse call
|
|
func ParseEditPeriodForRecurringResponse(rsp *http.Response) (*EditPeriodForRecurringResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &EditPeriodForRecurringResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AssignmentDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseEditRecurringPeriodResponse parses an HTTP response from a EditRecurringPeriodWithResponse call
|
|
func ParseEditRecurringPeriodResponse(rsp *http.Response) (*EditRecurringPeriodResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &EditRecurringPeriodResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AssignmentDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUserTotalsResponse parses an HTTP response from a GetUserTotalsWithResponse call
|
|
func ParseGetUserTotalsResponse(rsp *http.Response) (*GetUserTotalsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUserTotalsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []SchedulingUsersTotalsWithoutBillableDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetAssignmentsForUserResponse parses an HTTP response from a GetAssignmentsForUserWithResponse call
|
|
func ParseGetAssignmentsForUserResponse(rsp *http.Response) (*GetAssignmentsForUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetAssignmentsForUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AssignmentHydratedDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetFilteredAssignmentsForUserResponse parses an HTTP response from a GetFilteredAssignmentsForUserWithResponse call
|
|
func ParseGetFilteredAssignmentsForUserResponse(rsp *http.Response) (*GetFilteredAssignmentsForUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetFilteredAssignmentsForUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AssignmentHydratedDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsers3Response parses an HTTP response from a GetUsers3WithResponse call
|
|
func ParseGetUsers3Response(rsp *http.Response) (*GetUsers3Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsers3Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest SchedulingUsersBaseDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetProjects1Response parses an HTTP response from a GetProjects1WithResponse call
|
|
func ParseGetProjects1Response(rsp *http.Response) (*GetProjects1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetProjects1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest SchedulingProjectsBaseDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRemindToPublishResponse parses an HTTP response from a RemindToPublishWithResponse call
|
|
func ParseRemindToPublishResponse(rsp *http.Response) (*RemindToPublishResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RemindToPublishResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUserTotalsForSingleUserResponse parses an HTTP response from a GetUserTotalsForSingleUserWithResponse call
|
|
func ParseGetUserTotalsForSingleUserResponse(rsp *http.Response) (*GetUserTotalsForSingleUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUserTotalsForSingleUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest SchedulingUsersBaseDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGet3Response parses an HTTP response from a Get3WithResponse call
|
|
func ParseGet3Response(rsp *http.Response) (*Get3Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Get3Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest AssignmentDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCopyAssignmentResponse parses an HTTP response from a CopyAssignmentWithResponse call
|
|
func ParseCopyAssignmentResponse(rsp *http.Response) (*CopyAssignmentResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CopyAssignmentResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AssignmentDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseSplitAssignmentResponse parses an HTTP response from a SplitAssignmentWithResponse call
|
|
func ParseSplitAssignmentResponse(rsp *http.Response) (*SplitAssignmentResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &SplitAssignmentResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AssignmentDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseShiftScheduleResponse parses an HTTP response from a ShiftScheduleWithResponse call
|
|
func ParseShiftScheduleResponse(rsp *http.Response) (*ShiftScheduleResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ShiftScheduleResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AssignmentDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseHideProjectResponse parses an HTTP response from a HideProjectWithResponse call
|
|
func ParseHideProjectResponse(rsp *http.Response) (*HideProjectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &HideProjectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseShowProjectResponse parses an HTTP response from a ShowProjectWithResponse call
|
|
func ParseShowProjectResponse(rsp *http.Response) (*ShowProjectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ShowProjectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseHideUserResponse parses an HTTP response from a HideUserWithResponse call
|
|
func ParseHideUserResponse(rsp *http.Response) (*HideUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &HideUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseShowUserResponse parses an HTTP response from a ShowUserWithResponse call
|
|
func ParseShowUserResponse(rsp *http.Response) (*ShowUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ShowUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate10Response parses an HTTP response from a Create10WithResponse call
|
|
func ParseCreate10Response(rsp *http.Response) (*Create10Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create10Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest MilestoneDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete10Response parses an HTTP response from a Delete10WithResponse call
|
|
func ParseDelete10Response(rsp *http.Response) (*Delete10Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete10Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest MilestoneDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGet2Response parses an HTTP response from a Get2WithResponse call
|
|
func ParseGet2Response(rsp *http.Response) (*Get2Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Get2Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest MilestoneDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseEdit1Response parses an HTTP response from a Edit1WithResponse call
|
|
func ParseEdit1Response(rsp *http.Response) (*Edit1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Edit1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest MilestoneDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseEditDateResponse parses an HTTP response from a EditDateWithResponse call
|
|
func ParseEditDateResponse(rsp *http.Response) (*EditDateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &EditDateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest MilestoneDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetProjectsResponse parses an HTTP response from a GetProjectsWithResponse call
|
|
func ParseGetProjectsResponse(rsp *http.Response) (*GetProjectsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetProjectsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ProjectFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsers2Response parses an HTTP response from a GetUsers2WithResponse call
|
|
func ParseGetUsers2Response(rsp *http.Response) (*GetUsers2Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsers2Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ReportFilterUsersWithCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsersAssignedToProjectResponse parses an HTTP response from a GetUsersAssignedToProjectWithResponse call
|
|
func ParseGetUsersAssignedToProjectResponse(rsp *http.Response) (*GetUsersAssignedToProjectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsersAssignedToProjectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetSidebarConfigResponse parses an HTTP response from a GetSidebarConfigWithResponse call
|
|
func ParseGetSidebarConfigResponse(rsp *http.Response) (*GetSidebarConfigResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetSidebarConfigResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest SidebarResponseDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateSidebarResponse parses an HTTP response from a UpdateSidebarWithResponse call
|
|
func ParseUpdateSidebarResponse(rsp *http.Response) (*UpdateSidebarResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateSidebarResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest SidebarResponseDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseFilterUsersByStatusResponse parses an HTTP response from a FilterUsersByStatusWithResponse call
|
|
func ParseFilterUsersByStatusResponse(rsp *http.Response) (*FilterUsersByStatusResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &FilterUsersByStatusResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []PtoTeamMemberDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete9Response parses an HTTP response from a Delete9WithResponse call
|
|
func ParseDelete9Response(rsp *http.Response) (*Delete9Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete9Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseStopResponse parses an HTTP response from a StopWithResponse call
|
|
func ParseStopResponse(rsp *http.Response) (*StopResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &StopResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseStartResponse parses an HTTP response from a StartWithResponse call
|
|
func ParseStartResponse(rsp *http.Response) (*StartResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &StartResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest TimeEntryFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteMany1Response parses an HTTP response from a DeleteMany1WithResponse call
|
|
func ParseDeleteMany1Response(rsp *http.Response) (*DeleteMany1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteMany1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TagDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTagsResponse parses an HTTP response from a GetTagsWithResponse call
|
|
func ParseGetTagsResponse(rsp *http.Response) (*GetTagsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTagsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TagDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateManyResponse parses an HTTP response from a UpdateManyWithResponse call
|
|
func ParseUpdateManyResponse(rsp *http.Response) (*UpdateManyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateManyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TagDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate9Response parses an HTTP response from a Create9WithResponse call
|
|
func ParseCreate9Response(rsp *http.Response) (*Create9Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create9Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest TagDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseConnectedToApprovedEntriesResponse parses an HTTP response from a ConnectedToApprovedEntriesWithResponse call
|
|
func ParseConnectedToApprovedEntriesResponse(rsp *http.Response) (*ConnectedToApprovedEntriesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ConnectedToApprovedEntriesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTagsOfIdsResponse parses an HTTP response from a GetTagsOfIdsWithResponse call
|
|
func ParseGetTagsOfIdsResponse(rsp *http.Response) (*GetTagsOfIdsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTagsOfIdsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TagDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTagIdsByNameAndStatusResponse parses an HTTP response from a GetTagIdsByNameAndStatusWithResponse call
|
|
func ParseGetTagIdsByNameAndStatusResponse(rsp *http.Response) (*GetTagIdsByNameAndStatusResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTagIdsByNameAndStatusResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []string
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete8Response parses an HTTP response from a Delete8WithResponse call
|
|
func ParseDelete8Response(rsp *http.Response) (*Delete8Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete8Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TagDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdate4Response parses an HTTP response from a Update4WithResponse call
|
|
func ParseUpdate4Response(rsp *http.Response) (*Update4Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Update4Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TagDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTemplatesResponse parses an HTTP response from a GetTemplatesWithResponse call
|
|
func ParseGetTemplatesResponse(rsp *http.Response) (*GetTemplatesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTemplatesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TemplateFullWithEntitiesFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate8Response parses an HTTP response from a Create8WithResponse call
|
|
func ParseCreate8Response(rsp *http.Response) (*Create8Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create8Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TemplateDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete7Response parses an HTTP response from a Delete7WithResponse call
|
|
func ParseDelete7Response(rsp *http.Response) (*Delete7Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete7Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TemplateDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTemplateResponse parses an HTTP response from a GetTemplateWithResponse call
|
|
func ParseGetTemplateResponse(rsp *http.Response) (*GetTemplateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTemplateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TemplateDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdate13Response parses an HTTP response from a Update13WithResponse call
|
|
func ParseUpdate13Response(rsp *http.Response) (*Update13Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Update13Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TemplateDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseActivateResponse parses an HTTP response from a ActivateWithResponse call
|
|
func ParseActivateResponse(rsp *http.Response) (*ActivateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ActivateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest CopiedEntriesDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeactivateResponse parses an HTTP response from a DeactivateWithResponse call
|
|
func ParseDeactivateResponse(rsp *http.Response) (*DeactivateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeactivateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCopyTimeEntriesResponse parses an HTTP response from a CopyTimeEntriesWithResponse call
|
|
func ParseCopyTimeEntriesResponse(rsp *http.Response) (*CopyTimeEntriesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CopyTimeEntriesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest CopiedEntriesDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseContinueTimeEntryResponse parses an HTTP response from a ContinueTimeEntryWithResponse call
|
|
func ParseContinueTimeEntryResponse(rsp *http.Response) (*ContinueTimeEntryResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ContinueTimeEntryResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest TimeEntryFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTeamMembersOfAdminResponse parses an HTTP response from a GetTeamMembersOfAdminWithResponse call
|
|
func ParseGetTeamMembersOfAdminResponse(rsp *http.Response) (*GetTeamMembersOfAdminResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTeamMembersOfAdminResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest PtoTeamMembersAndCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetBalancesForPolicyResponse parses an HTTP response from a GetBalancesForPolicyWithResponse call
|
|
func ParseGetBalancesForPolicyResponse(rsp *http.Response) (*GetBalancesForPolicyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetBalancesForPolicyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest BalancesWithCount
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateBalanceResponse parses an HTTP response from a UpdateBalanceWithResponse call
|
|
func ParseUpdateBalanceResponse(rsp *http.Response) (*UpdateBalanceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateBalanceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetBalancesForUserResponse parses an HTTP response from a GetBalancesForUserWithResponse call
|
|
func ParseGetBalancesForUserResponse(rsp *http.Response) (*GetBalancesForUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetBalancesForUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest BalancesWithCount
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTeamMembersOfManagerResponse parses an HTTP response from a GetTeamMembersOfManagerWithResponse call
|
|
func ParseGetTeamMembersOfManagerResponse(rsp *http.Response) (*GetTeamMembersOfManagerResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTeamMembersOfManagerResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest PtoTeamMembersAndCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseFindPoliciesForWorkspaceResponse parses an HTTP response from a FindPoliciesForWorkspaceWithResponse call
|
|
func ParseFindPoliciesForWorkspaceResponse(rsp *http.Response) (*FindPoliciesForWorkspaceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &FindPoliciesForWorkspaceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []PolicyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreatePolicyResponse parses an HTTP response from a CreatePolicyWithResponse call
|
|
func ParseCreatePolicyResponse(rsp *http.Response) (*CreatePolicyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreatePolicyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest PolicyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetPolicyAssignmentForCurrentUserResponse parses an HTTP response from a GetPolicyAssignmentForCurrentUserWithResponse call
|
|
func ParseGetPolicyAssignmentForCurrentUserResponse(rsp *http.Response) (*GetPolicyAssignmentForCurrentUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetPolicyAssignmentForCurrentUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []PolicyAssignmentFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTeamAssignmentsDistributionResponse parses an HTTP response from a GetTeamAssignmentsDistributionWithResponse call
|
|
func ParseGetTeamAssignmentsDistributionResponse(rsp *http.Response) (*GetTeamAssignmentsDistributionResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTeamAssignmentsDistributionResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TeamPolicyAssignmentsDistribution
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetPolicyAssignmentsForUserResponse parses an HTTP response from a GetPolicyAssignmentsForUserWithResponse call
|
|
func ParseGetPolicyAssignmentsForUserResponse(rsp *http.Response) (*GetPolicyAssignmentsForUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetPolicyAssignmentsForUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []PolicyAssignmentFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseFindPoliciesForUserResponse parses an HTTP response from a FindPoliciesForUserWithResponse call
|
|
func ParseFindPoliciesForUserResponse(rsp *http.Response) (*FindPoliciesForUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &FindPoliciesForUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []PolicyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeletePolicyResponse parses an HTTP response from a DeletePolicyWithResponse call
|
|
func ParseDeletePolicyResponse(rsp *http.Response) (*DeletePolicyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeletePolicyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdatePolicyResponse parses an HTTP response from a UpdatePolicyWithResponse call
|
|
func ParseUpdatePolicyResponse(rsp *http.Response) (*UpdatePolicyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdatePolicyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest PolicyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseArchiveResponse parses an HTTP response from a ArchiveWithResponse call
|
|
func ParseArchiveResponse(rsp *http.Response) (*ArchiveResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ArchiveResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest PolicyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRestoreResponse parses an HTTP response from a RestoreWithResponse call
|
|
func ParseRestoreResponse(rsp *http.Response) (*RestoreResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RestoreResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest PolicyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetPolicyResponse parses an HTTP response from a GetPolicyWithResponse call
|
|
func ParseGetPolicyResponse(rsp *http.Response) (*GetPolicyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetPolicyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest PolicyDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate7Response parses an HTTP response from a Create7WithResponse call
|
|
func ParseCreate7Response(rsp *http.Response) (*Create7Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create7Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeOffRequestFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete6Response parses an HTTP response from a Delete6WithResponse call
|
|
func ParseDelete6Response(rsp *http.Response) (*Delete6Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete6Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeOffRequestDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseApproveResponse parses an HTTP response from a ApproveWithResponse call
|
|
func ParseApproveResponse(rsp *http.Response) (*ApproveResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ApproveResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeOffRequestDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRejectResponse parses an HTTP response from a RejectWithResponse call
|
|
func ParseRejectResponse(rsp *http.Response) (*RejectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RejectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeOffRequestDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateForOther1Response parses an HTTP response from a CreateForOther1WithResponse call
|
|
func ParseCreateForOther1Response(rsp *http.Response) (*CreateForOther1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateForOther1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeOffRequestFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGet1Response parses an HTTP response from a Get1WithResponse call
|
|
func ParseGet1Response(rsp *http.Response) (*Get1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Get1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeOffRequestsWithCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTimeOffRequestByIdResponse parses an HTTP response from a GetTimeOffRequestByIdWithResponse call
|
|
func ParseGetTimeOffRequestByIdResponse(rsp *http.Response) (*GetTimeOffRequestByIdResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTimeOffRequestByIdResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeOffRequestFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetAllUsersOfWorkspaceResponse parses an HTTP response from a GetAllUsersOfWorkspaceWithResponse call
|
|
func ParseGetAllUsersOfWorkspaceResponse(rsp *http.Response) (*GetAllUsersOfWorkspaceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetAllUsersOfWorkspaceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest PtoTeamMembersAndCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUserGroupsOfWorkspaceResponse parses an HTTP response from a GetUserGroupsOfWorkspaceWithResponse call
|
|
func ParseGetUserGroupsOfWorkspaceResponse(rsp *http.Response) (*GetUserGroupsOfWorkspaceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUserGroupsOfWorkspaceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest PtoTeamMembersAndCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsersOfWorkspaceResponse parses an HTTP response from a GetUsersOfWorkspaceWithResponse call
|
|
func ParseGetUsersOfWorkspaceResponse(rsp *http.Response) (*GetUsersOfWorkspaceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsersOfWorkspaceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest PtoTeamMembersAndCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetResponse parses an HTTP response from a GetWithResponse call
|
|
func ParseGetResponse(rsp *http.Response) (*GetResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimelineUsersDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTimelineForReportsResponse parses an HTTP response from a GetTimelineForReportsWithResponse call
|
|
func ParseGetTimelineForReportsResponse(rsp *http.Response) (*GetTimelineForReportsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTimelineForReportsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimelineUsersDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteManyResponse parses an HTTP response from a DeleteManyWithResponse call
|
|
func ParseDeleteManyResponse(rsp *http.Response) (*DeleteManyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteManyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TimeEntryUpdatedDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTimeEntriesBySearchValueResponse parses an HTTP response from a GetTimeEntriesBySearchValueWithResponse call
|
|
func ParseGetTimeEntriesBySearchValueResponse(rsp *http.Response) (*GetTimeEntriesBySearchValueResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTimeEntriesBySearchValueResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TimeEntryRecentlyUsedDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate6Response parses an HTTP response from a Create6WithResponse call
|
|
func ParseCreate6Response(rsp *http.Response) (*Create6Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create6Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePatchTimeEntriesResponse parses an HTTP response from a PatchTimeEntriesWithResponse call
|
|
func ParsePatchTimeEntriesResponse(rsp *http.Response) (*PatchTimeEntriesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PatchTimeEntriesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseEndStartedResponse parses an HTTP response from a EndStartedWithResponse call
|
|
func ParseEndStartedResponse(rsp *http.Response) (*EndStartedResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &EndStartedResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetMultipleTimeEntriesByIdResponse parses an HTTP response from a GetMultipleTimeEntriesByIdWithResponse call
|
|
func ParseGetMultipleTimeEntriesByIdResponse(rsp *http.Response) (*GetMultipleTimeEntriesByIdResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetMultipleTimeEntriesByIdResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateFull1Response parses an HTTP response from a CreateFull1WithResponse call
|
|
func ParseCreateFull1Response(rsp *http.Response) (*CreateFull1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateFull1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest TimeEntryFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTimeEntryInProgressResponse parses an HTTP response from a GetTimeEntryInProgressWithResponse call
|
|
func ParseGetTimeEntryInProgressResponse(rsp *http.Response) (*GetTimeEntryInProgressResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTimeEntryInProgressResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateInvoicedStatusResponse parses an HTTP response from a UpdateInvoicedStatusWithResponse call
|
|
func ParseUpdateInvoicedStatusResponse(rsp *http.Response) (*UpdateInvoicedStatusResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateInvoicedStatusResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseListOfProjectResponse parses an HTTP response from a ListOfProjectWithResponse call
|
|
func ParseListOfProjectResponse(rsp *http.Response) (*ListOfProjectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ListOfProjectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TimeEntryFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTimeEntriesRecentlyUsedResponse parses an HTTP response from a GetTimeEntriesRecentlyUsedWithResponse call
|
|
func ParseGetTimeEntriesRecentlyUsedResponse(rsp *http.Response) (*GetTimeEntriesRecentlyUsedResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTimeEntriesRecentlyUsedResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TimeEntryRecentlyUsedDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRestoreTimeEntriesResponse parses an HTTP response from a RestoreTimeEntriesWithResponse call
|
|
func ParseRestoreTimeEntriesResponse(rsp *http.Response) (*RestoreTimeEntriesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RestoreTimeEntriesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateForManyResponse parses an HTTP response from a CreateForManyWithResponse call
|
|
func ParseCreateForManyResponse(rsp *http.Response) (*CreateForManyResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateForManyResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TimeEntryWithUsernameDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateForOthersResponse parses an HTTP response from a CreateForOthersWithResponse call
|
|
func ParseCreateForOthersResponse(rsp *http.Response) (*CreateForOthersResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateForOthersResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest TimeEntrySummaryDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseListOfFullResponse parses an HTTP response from a ListOfFullWithResponse call
|
|
func ParseListOfFullResponse(rsp *http.Response) (*ListOfFullResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ListOfFullResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TeamMemberInfoDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTimeEntriesResponse parses an HTTP response from a GetTimeEntriesWithResponse call
|
|
func ParseGetTimeEntriesResponse(rsp *http.Response) (*GetTimeEntriesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTimeEntriesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TimeEntryDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseAssertTimeEntriesExistInDateRangeResponse parses an HTTP response from a AssertTimeEntriesExistInDateRangeWithResponse call
|
|
func ParseAssertTimeEntriesExistInDateRangeResponse(rsp *http.Response) (*AssertTimeEntriesExistInDateRangeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &AssertTimeEntriesExistInDateRangeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateFullResponse parses an HTTP response from a CreateFullWithResponse call
|
|
func ParseCreateFullResponse(rsp *http.Response) (*CreateFullResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateFullResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest TimeEntryFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTimeEntriesInRangeResponse parses an HTTP response from a GetTimeEntriesInRangeWithResponse call
|
|
func ParseGetTimeEntriesInRangeResponse(rsp *http.Response) (*GetTimeEntriesInRangeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTimeEntriesInRangeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TimeEntryFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTimeEntriesForTimesheetResponse parses an HTTP response from a GetTimeEntriesForTimesheetWithResponse call
|
|
func ParseGetTimeEntriesForTimesheetResponse(rsp *http.Response) (*GetTimeEntriesForTimesheetResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTimeEntriesForTimesheetResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TimeEntryDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePatchResponse parses an HTTP response from a PatchWithResponse call
|
|
func ParsePatchResponse(rsp *http.Response) (*PatchResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PatchResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryUpdatedDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdate3Response parses an HTTP response from a Update3WithResponse call
|
|
func ParseUpdate3Response(rsp *http.Response) (*Update3Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Update3Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTimeEntryAttributesResponse parses an HTTP response from a GetTimeEntryAttributesWithResponse call
|
|
func ParseGetTimeEntryAttributesResponse(rsp *http.Response) (*GetTimeEntryAttributesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTimeEntryAttributesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []CustomAttributeDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateTimeEntryAttributeResponse parses an HTTP response from a CreateTimeEntryAttributeWithResponse call
|
|
func ParseCreateTimeEntryAttributeResponse(rsp *http.Response) (*CreateTimeEntryAttributeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateTimeEntryAttributeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest CustomAttributeDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteTimeEntryAttributeResponse parses an HTTP response from a DeleteTimeEntryAttributeWithResponse call
|
|
func ParseDeleteTimeEntryAttributeResponse(rsp *http.Response) (*DeleteTimeEntryAttributeResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteTimeEntryAttributeResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest CustomAttributeDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateBillableResponse parses an HTTP response from a UpdateBillableWithResponse call
|
|
func ParseUpdateBillableResponse(rsp *http.Response) (*UpdateBillableResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateBillableResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateDescriptionResponse parses an HTTP response from a UpdateDescriptionWithResponse call
|
|
func ParseUpdateDescriptionResponse(rsp *http.Response) (*UpdateDescriptionResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateDescriptionResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateEndResponse parses an HTTP response from a UpdateEndWithResponse call
|
|
func ParseUpdateEndResponse(rsp *http.Response) (*UpdateEndResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateEndResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateFullResponse parses an HTTP response from a UpdateFullWithResponse call
|
|
func ParseUpdateFullResponse(rsp *http.Response) (*UpdateFullResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateFullResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateProjectResponse parses an HTTP response from a UpdateProjectWithResponse call
|
|
func ParseUpdateProjectResponse(rsp *http.Response) (*UpdateProjectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateProjectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRemoveProjectResponse parses an HTTP response from a RemoveProjectWithResponse call
|
|
func ParseRemoveProjectResponse(rsp *http.Response) (*RemoveProjectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RemoveProjectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateProjectAndTaskResponse parses an HTTP response from a UpdateProjectAndTaskWithResponse call
|
|
func ParseUpdateProjectAndTaskResponse(rsp *http.Response) (*UpdateProjectAndTaskResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateProjectAndTaskResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateAndSplitResponse parses an HTTP response from a UpdateAndSplitWithResponse call
|
|
func ParseUpdateAndSplitResponse(rsp *http.Response) (*UpdateAndSplitResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateAndSplitResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseSplitTimeEntryResponse parses an HTTP response from a SplitTimeEntryWithResponse call
|
|
func ParseSplitTimeEntryResponse(rsp *http.Response) (*SplitTimeEntryResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &SplitTimeEntryResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest []TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateStartResponse parses an HTTP response from a UpdateStartWithResponse call
|
|
func ParseUpdateStartResponse(rsp *http.Response) (*UpdateStartResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateStartResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateTagsResponse parses an HTTP response from a UpdateTagsWithResponse call
|
|
func ParseUpdateTagsResponse(rsp *http.Response) (*UpdateTagsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateTagsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRemoveTaskResponse parses an HTTP response from a RemoveTaskWithResponse call
|
|
func ParseRemoveTaskResponse(rsp *http.Response) (*RemoveTaskResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RemoveTaskResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateTimeIntervalResponse parses an HTTP response from a UpdateTimeIntervalWithResponse call
|
|
func ParseUpdateTimeIntervalResponse(rsp *http.Response) (*UpdateTimeIntervalResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateTimeIntervalResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryUpdatedDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateUserResponse parses an HTTP response from a UpdateUserWithResponse call
|
|
func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete5Response parses an HTTP response from a Delete5WithResponse call
|
|
func ParseDelete5Response(rsp *http.Response) (*Delete5Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete5Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryUpdatedDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateCustomFieldResponse parses an HTTP response from a UpdateCustomFieldWithResponse call
|
|
func ParseUpdateCustomFieldResponse(rsp *http.Response) (*UpdateCustomFieldResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateCustomFieldResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest CustomFieldValueDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParsePenalizeCurrentTimerAndStartNewTimeEntryResponse parses an HTTP response from a PenalizeCurrentTimerAndStartNewTimeEntryWithResponse call
|
|
func ParsePenalizeCurrentTimerAndStartNewTimeEntryResponse(rsp *http.Response) (*PenalizeCurrentTimerAndStartNewTimeEntryResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &PenalizeCurrentTimerAndStartNewTimeEntryResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseTransferWorkspaceDeprecatedFlowResponse parses an HTTP response from a TransferWorkspaceDeprecatedFlowWithResponse call
|
|
func ParseTransferWorkspaceDeprecatedFlowResponse(rsp *http.Response) (*TransferWorkspaceDeprecatedFlowResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &TransferWorkspaceDeprecatedFlowResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WorkspaceTransferDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseTransferWorkspaceResponse parses an HTTP response from a TransferWorkspaceWithResponse call
|
|
func ParseTransferWorkspaceResponse(rsp *http.Response) (*TransferWorkspaceResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &TransferWorkspaceResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WorkspaceTransferDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTrialActivationDataResponse parses an HTTP response from a GetTrialActivationDataWithResponse call
|
|
func ParseGetTrialActivationDataResponse(rsp *http.Response) (*GetTrialActivationDataResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTrialActivationDataResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TrialActivationDataDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRemoveMemberResponse parses an HTTP response from a RemoveMemberWithResponse call
|
|
func ParseRemoveMemberResponse(rsp *http.Response) (*RemoveMemberResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RemoveMemberResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCopyTimeEntryCalendarDragResponse parses an HTTP response from a CopyTimeEntryCalendarDragWithResponse call
|
|
func ParseCopyTimeEntryCalendarDragResponse(rsp *http.Response) (*CopyTimeEntryCalendarDragResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CopyTimeEntryCalendarDragResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDuplicateTimeEntryResponse parses an HTTP response from a DuplicateTimeEntryWithResponse call
|
|
func ParseDuplicateTimeEntryResponse(rsp *http.Response) (*DuplicateTimeEntryResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DuplicateTimeEntryResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest TimeEntryDtoImpl
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUserGroups1Response parses an HTTP response from a GetUserGroups1WithResponse call
|
|
func ParseGetUserGroups1Response(rsp *http.Response) (*GetUserGroups1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUserGroups1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []UserGroupDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate5Response parses an HTTP response from a Create5WithResponse call
|
|
func ParseCreate5Response(rsp *http.Response) (*Create5Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create5Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest UserGroupDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUserGroups2Response parses an HTTP response from a GetUserGroups2WithResponse call
|
|
func ParseGetUserGroups2Response(rsp *http.Response) (*GetUserGroups2Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUserGroups2Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest GroupsAndCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUserGroupNamesResponse parses an HTTP response from a GetUserGroupNamesWithResponse call
|
|
func ParseGetUserGroupNamesResponse(rsp *http.Response) (*GetUserGroupNamesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUserGroupNamesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []UserGroupDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsersForReportFilter1Response parses an HTTP response from a GetUsersForReportFilter1WithResponse call
|
|
func ParseGetUsersForReportFilter1Response(rsp *http.Response) (*GetUsersForReportFilter1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsersForReportFilter1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ReportFilterUsersWithCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUserGroupForReportFilterPostResponse parses an HTTP response from a GetUserGroupForReportFilterPostWithResponse call
|
|
func ParseGetUserGroupForReportFilterPostResponse(rsp *http.Response) (*GetUserGroupForReportFilterPostResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUserGroupForReportFilterPostResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ReportFilterUsersWithCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsersForAttendanceReportFilterResponse parses an HTTP response from a GetUsersForAttendanceReportFilterWithResponse call
|
|
func ParseGetUsersForAttendanceReportFilterResponse(rsp *http.Response) (*GetUsersForAttendanceReportFilterResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsersForAttendanceReportFilterResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ReportFilterUsersWithCountDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUserGroupIdsByNameResponse parses an HTTP response from a GetUserGroupIdsByNameWithResponse call
|
|
func ParseGetUserGroupIdsByNameResponse(rsp *http.Response) (*GetUserGroupIdsByNameResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUserGroupIdsByNameResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []string
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUserGroupsResponse parses an HTTP response from a GetUserGroupsWithResponse call
|
|
func ParseGetUserGroupsResponse(rsp *http.Response) (*GetUserGroupsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUserGroupsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []UserGroupDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRemoveUserResponse parses an HTTP response from a RemoveUserWithResponse call
|
|
func ParseRemoveUserResponse(rsp *http.Response) (*RemoveUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RemoveUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []UserGroupDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseAddUsersToUserGroupsFilterResponse parses an HTTP response from a AddUsersToUserGroupsFilterWithResponse call
|
|
func ParseAddUsersToUserGroupsFilterResponse(rsp *http.Response) (*AddUsersToUserGroupsFilterResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &AddUsersToUserGroupsFilterResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []UserGroupDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete4Response parses an HTTP response from a Delete4WithResponse call
|
|
func ParseDelete4Response(rsp *http.Response) (*Delete4Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete4Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserGroupDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdate2Response parses an HTTP response from a Update2WithResponse call
|
|
func ParseUpdate2Response(rsp *http.Response) (*Update2Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Update2Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserGroupDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsersResponse parses an HTTP response from a GetUsersWithResponse call
|
|
func ParseGetUsersResponse(rsp *http.Response) (*GetUsersResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsersResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUsers1Response parses an HTTP response from a GetUsers1WithResponse call
|
|
func ParseGetUsers1Response(rsp *http.Response) (*GetUsers1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUsers1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []UserDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseAddUsersResponse parses an HTTP response from a AddUsersWithResponse call
|
|
func ParseAddUsersResponse(rsp *http.Response) (*AddUsersResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &AddUsersResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WorkspaceDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetExpensesForUsersResponse parses an HTTP response from a GetExpensesForUsersWithResponse call
|
|
func ParseGetExpensesForUsersResponse(rsp *http.Response) (*GetExpensesForUsersResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetExpensesForUsersResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ExpenseDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseSetMembershipsResponse parses an HTTP response from a SetMembershipsWithResponse call
|
|
func ParseSetMembershipsResponse(rsp *http.Response) (*SetMembershipsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &SetMembershipsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WorkspaceDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseResendInviteResponse parses an HTTP response from a ResendInviteWithResponse call
|
|
func ParseResendInviteResponse(rsp *http.Response) (*ResendInviteResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ResendInviteResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WorkspaceDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateDeprecatedResponse parses an HTTP response from a CreateDeprecatedWithResponse call
|
|
func ParseCreateDeprecatedResponse(rsp *http.Response) (*CreateDeprecatedResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateDeprecatedResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest ApprovalRequestDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetRequestsByUserResponse parses an HTTP response from a GetRequestsByUserWithResponse call
|
|
func ParseGetRequestsByUserResponse(rsp *http.Response) (*GetRequestsByUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetRequestsByUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ApprovalInfoDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetApprovedTotalsResponse parses an HTTP response from a GetApprovedTotalsWithResponse call
|
|
func ParseGetApprovedTotalsResponse(rsp *http.Response) (*GetApprovedTotalsResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetApprovedTotalsResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ApprovalPeriodTotalsDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateForOtherDeprecatedResponse parses an HTTP response from a CreateForOtherDeprecatedWithResponse call
|
|
func ParseCreateForOtherDeprecatedResponse(rsp *http.Response) (*CreateForOtherDeprecatedResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateForOtherDeprecatedResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest ApprovalRequestDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetPreviewResponse parses an HTTP response from a GetPreviewWithResponse call
|
|
func ParseGetPreviewResponse(rsp *http.Response) (*GetPreviewResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetPreviewResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ApprovalPeriodTotalsDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTimeEntryStatusResponse parses an HTTP response from a GetTimeEntryStatusWithResponse call
|
|
func ParseGetTimeEntryStatusResponse(rsp *http.Response) (*GetTimeEntryStatusResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTimeEntryStatusResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryApprovalStatusDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetTimeEntryWeekStatusResponse parses an HTTP response from a GetTimeEntryWeekStatusWithResponse call
|
|
func ParseGetTimeEntryWeekStatusResponse(rsp *http.Response) (*GetTimeEntryWeekStatusResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetTimeEntryWeekStatusResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TimeEntryApprovalStatusDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetWeeklyRequestsByUserResponse parses an HTTP response from a GetWeeklyRequestsByUserWithResponse call
|
|
func ParseGetWeeklyRequestsByUserResponse(rsp *http.Response) (*GetWeeklyRequestsByUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetWeeklyRequestsByUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []ApprovalInfoDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseWithdrawAllOfUserResponse parses an HTTP response from a WithdrawAllOfUserWithResponse call
|
|
func ParseWithdrawAllOfUserResponse(rsp *http.Response) (*WithdrawAllOfUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &WithdrawAllOfUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseWithdrawAllOfWorkspaceDeprecatedResponse parses an HTTP response from a WithdrawAllOfWorkspaceDeprecatedWithResponse call
|
|
func ParseWithdrawAllOfWorkspaceDeprecatedResponse(rsp *http.Response) (*WithdrawAllOfWorkspaceDeprecatedResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &WithdrawAllOfWorkspaceDeprecatedResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseWithdrawWeeklyOfUserResponse parses an HTTP response from a WithdrawWeeklyOfUserWithResponse call
|
|
func ParseWithdrawWeeklyOfUserResponse(rsp *http.Response) (*WithdrawWeeklyOfUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &WithdrawWeeklyOfUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseSetCostRateForUser1Response parses an HTTP response from a SetCostRateForUser1WithResponse call
|
|
func ParseSetCostRateForUser1Response(rsp *http.Response) (*SetCostRateForUser1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &SetCostRateForUser1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WorkspaceDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpsertUserCustomFieldValueResponse parses an HTTP response from a UpsertUserCustomFieldValueWithResponse call
|
|
func ParseUpsertUserCustomFieldValueResponse(rsp *http.Response) (*UpsertUserCustomFieldValueResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpsertUserCustomFieldValueResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest []UserCustomFieldValueDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetFavoriteEntriesResponse parses an HTTP response from a GetFavoriteEntriesWithResponse call
|
|
func ParseGetFavoriteEntriesResponse(rsp *http.Response) (*GetFavoriteEntriesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetFavoriteEntriesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []FavoriteTimeEntryFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateFavoriteTimeEntryResponse parses an HTTP response from a CreateFavoriteTimeEntryWithResponse call
|
|
func ParseCreateFavoriteTimeEntryResponse(rsp *http.Response) (*CreateFavoriteTimeEntryResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateFavoriteTimeEntryResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest FavoriteTimeEntryFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseReorderInvoiceItemResponse parses an HTTP response from a ReorderInvoiceItemWithResponse call
|
|
func ParseReorderInvoiceItemResponse(rsp *http.Response) (*ReorderInvoiceItemResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ReorderInvoiceItemResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []FavoriteTimeEntryFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete3Response parses an HTTP response from a Delete3WithResponse call
|
|
func ParseDelete3Response(rsp *http.Response) (*Delete3Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete3Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdate1Response parses an HTTP response from a Update1WithResponse call
|
|
func ParseUpdate1Response(rsp *http.Response) (*Update1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Update1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest FavoriteTimeEntryFullDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetHolidays1Response parses an HTTP response from a GetHolidays1WithResponse call
|
|
func ParseGetHolidays1Response(rsp *http.Response) (*GetHolidays1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetHolidays1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []HolidayDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseSetHourlyRateForUser1Response parses an HTTP response from a SetHourlyRateForUser1WithResponse call
|
|
func ParseSetHourlyRateForUser1Response(rsp *http.Response) (*SetHourlyRateForUser1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &SetHourlyRateForUser1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WorkspaceDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetPermissionsToUserResponse parses an HTTP response from a GetPermissionsToUserWithResponse call
|
|
func ParseGetPermissionsToUserResponse(rsp *http.Response) (*GetPermissionsToUserResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetPermissionsToUserResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []AuthorizationDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseRemoveFavoriteProjectResponse parses an HTTP response from a RemoveFavoriteProjectWithResponse call
|
|
func ParseRemoveFavoriteProjectResponse(rsp *http.Response) (*RemoveFavoriteProjectResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &RemoveFavoriteProjectResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete2Response parses an HTTP response from a Delete2WithResponse call
|
|
func ParseDelete2Response(rsp *http.Response) (*Delete2Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete2Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate4Response parses an HTTP response from a Create4WithResponse call
|
|
func ParseCreate4Response(rsp *http.Response) (*Create4Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create4Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest ProjectFavoritesDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDelete1Response parses an HTTP response from a Delete1WithResponse call
|
|
func ParseDelete1Response(rsp *http.Response) (*Delete1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Delete1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate3Response parses an HTTP response from a Create3WithResponse call
|
|
func ParseCreate3Response(rsp *http.Response) (*Create3Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create3Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest TaskFavoritesDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseReSubmitResponse parses an HTTP response from a ReSubmitWithResponse call
|
|
func ParseReSubmitResponse(rsp *http.Response) (*ReSubmitResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &ReSubmitResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest ApprovalRequestDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetUserRolesResponse parses an HTTP response from a GetUserRolesWithResponse call
|
|
func ParseGetUserRolesResponse(rsp *http.Response) (*GetUserRolesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetUserRolesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserRolesInfoDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateUserRolesResponse parses an HTTP response from a UpdateUserRolesWithResponse call
|
|
func ParseUpdateUserRolesResponse(rsp *http.Response) (*UpdateUserRolesResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateUserRolesResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest UserRolesInfoDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate2Response parses an HTTP response from a Create2WithResponse call
|
|
func ParseCreate2Response(rsp *http.Response) (*Create2Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create2Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest ApprovalRequestDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreateForOtherResponse parses an HTTP response from a CreateForOtherWithResponse call
|
|
func ParseCreateForOtherResponse(rsp *http.Response) (*CreateForOtherResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &CreateForOtherResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest ApprovalRequestDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetWorkCapacityResponse parses an HTTP response from a GetWorkCapacityWithResponse call
|
|
func ParseGetWorkCapacityResponse(rsp *http.Response) (*GetWorkCapacityResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetWorkCapacityResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest int64
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetWebhooksResponse parses an HTTP response from a GetWebhooksWithResponse call
|
|
func ParseGetWebhooksResponse(rsp *http.Response) (*GetWebhooksResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetWebhooksResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WebhooksDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseCreate1Response parses an HTTP response from a Create1WithResponse call
|
|
func ParseCreate1Response(rsp *http.Response) (*Create1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &Create1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201:
|
|
var dest WebhookDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON201 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseDeleteResponse parses an HTTP response from a DeleteWithResponse call
|
|
func ParseDeleteResponse(rsp *http.Response) (*DeleteResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &DeleteResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetWebhookResponse parses an HTTP response from a GetWebhookWithResponse call
|
|
func ParseGetWebhookResponse(rsp *http.Response) (*GetWebhookResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetWebhookResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WebhookDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseUpdateResponse parses an HTTP response from a UpdateWithResponse call
|
|
func ParseUpdateResponse(rsp *http.Response) (*UpdateResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &UpdateResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WebhookDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetLogsForWebhook1Response parses an HTTP response from a GetLogsForWebhook1WithResponse call
|
|
func ParseGetLogsForWebhook1Response(rsp *http.Response) (*GetLogsForWebhook1Response, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetLogsForWebhook1Response{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest []WebhookLogDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGetLogCountResponse parses an HTTP response from a GetLogCountWithResponse call
|
|
func ParseGetLogCountResponse(rsp *http.Response) (*GetLogCountResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GetLogCountResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest int64
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseTriggerResendEventForWebhookResponse parses an HTTP response from a TriggerResendEventForWebhookWithResponse call
|
|
func ParseTriggerResendEventForWebhookResponse(rsp *http.Response) (*TriggerResendEventForWebhookResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &TriggerResendEventForWebhookResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseTriggerTestEventForWebhookResponse parses an HTTP response from a TriggerTestEventForWebhookWithResponse call
|
|
func ParseTriggerTestEventForWebhookResponse(rsp *http.Response) (*TriggerTestEventForWebhookResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &TriggerTestEventForWebhookResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest bool
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|
|
|
|
// ParseGenerateNewTokenResponse parses an HTTP response from a GenerateNewTokenWithResponse call
|
|
func ParseGenerateNewTokenResponse(rsp *http.Response) (*GenerateNewTokenResponse, error) {
|
|
bodyBytes, err := io.ReadAll(rsp.Body)
|
|
defer func() { _ = rsp.Body.Close() }()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
response := &GenerateNewTokenResponse{
|
|
Body: bodyBytes,
|
|
HTTPResponse: rsp,
|
|
}
|
|
|
|
switch {
|
|
case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200:
|
|
var dest WebhookDto
|
|
if err := json.Unmarshal(bodyBytes, &dest); err != nil {
|
|
return nil, err
|
|
}
|
|
response.JSON200 = &dest
|
|
|
|
}
|
|
|
|
return response, nil
|
|
}
|