import {z} from 'zod' export type IntectSalaryPeriodCountryMapping = {Id?: number | undefined, SalaryPeriodId?: number | undefined, CountryId?: number | undefined, PayoutDate?: string | undefined, SalaryPeriod?: IntectSalaryPeriod | undefined}; export type IntectSalaryPeriod = {Id?: number | undefined, StartDate?: string | undefined, EndDate?: string | undefined, SalaryCycleId?: number | undefined, SuggestedPayoutDate?: (string | null) | undefined, FriendlyName?: string | undefined, SalaryCycle?: IntectSalaryCycle | undefined, SalaryPeriodCountryMappings?: Array | undefined}; export type IntectEmploymentConfigurationHistory = {Id?: number | undefined, UserEmploymentId?: number | undefined, FromDate?: string | undefined, StandardHoursPerWeek?: (number | null) | undefined, StandardWorkDaysPerWeek?: (number | null) | undefined, StandardWorkHoursMonday?: (number | null) | undefined, StandardWorkHoursTuesday?: (number | null) | undefined, StandardWorkHoursWednesday?: (number | null) | undefined, StandardWorkHoursThursday?: (number | null) | undefined, StandardWorkHoursFriday?: (number | null) | undefined, StandardWorkHoursSaturday?: (number | null) | undefined, StandardWorkHoursSunday?: (number | null) | undefined, DegreeOfEmployment?: (number | null) | undefined, VacationFactor?: (number | null) | undefined}; export type IntectVacationType = {StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectVacationProvider = {SENumber?: string | undefined, NetsNumber?: string | undefined, IsAdministrative?: boolean | undefined, StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectCountry = {IsSupported?: boolean | undefined, DefaultLanguageId?: number | undefined, ReleaseNoteLink?: string | undefined, GetHelpOnlineLink?: string | undefined, OperatingStatus?: string | undefined, StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectAddress = {Id?: number | undefined, Line1?: string | undefined, Line2?: string | undefined, PostalCode?: string | undefined, City?: string | undefined, CountryId?: (number | null) | undefined, Created?: string | undefined, Updated?: string | undefined, Country?: IntectCountry | undefined}; export type IntectUserImage = {Id?: number | undefined, Image?: string | undefined}; export type IntectDimensionValue = {Id?: number | undefined, CompanyId?: number | undefined, DimensionNumber?: number | undefined, Value?: string | undefined, Description?: string | undefined, ApproverCompanyUserId?: (number | null) | undefined, LimitToDepartmentId?: (number | null) | undefined, LimitToTemplateId?: (number | null) | undefined}; export type IntectExpenseError = {Id?: number | undefined, CompanyUserId?: number | undefined, ErrorMessage?: string | undefined, CompanyUser?: IntectCompanyUser | undefined}; export type IntectCompanyUser = {Id?: number | undefined, UserId?: number | undefined, CompanyId?: number | undefined, RoleId?: number | undefined, IsActive?: boolean | undefined, FirstName?: string | undefined, MiddleName?: string | undefined, LastName?: string | undefined, BankRegNo?: string | undefined, BankAccountNo?: string | undefined, BicSwiftNo?: string | undefined, IbanNo?: string | undefined, AddressId?: number | undefined, IsPaymentApprover?: boolean | undefined, Initials?: string | undefined, TelMobile?: string | undefined, TelFixed?: string | undefined, CompanyEmail?: string | undefined, PersonalEmail?: string | undefined, Created?: string | undefined, DeactivationDate?: (string | null) | undefined, PreferredCurrencyId?: (number | null) | undefined, AutoDetermineBankAccount?: boolean | undefined, MunicipalityId?: (number | null) | undefined, Updated?: string | undefined, TinNr?: string | undefined, TinNrUnknown?: boolean | undefined, ExpenseId?: (string | null) | undefined, IsActiveInExpense?: boolean | undefined, CreatedBy?: (number | null) | undefined, UpdatedBy?: (number | null) | undefined, RecycleBin?: string | undefined, UserEmployments?: Array | undefined, Address?: IntectAddress | undefined, UserImage?: IntectUserImage | undefined, DimensionValues?: Array | undefined, ExpenseErrors?: Array | undefined, FullName?: string | undefined, UserLanguageId?: number | undefined, UserIdentityNumber?: string | undefined, UserDateOfBirth?: (string | null) | undefined, UserIsFemale?: (boolean | null) | undefined, HasDummyIdentityNumber?: boolean | undefined, IsTemporaryNorwegianIdentityNumber?: boolean | undefined}; export type IntectUnitType = {RelevantCountries?: Array | undefined, StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectSalaryRecordPersistenceType = {StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectFormula = {Id?: number | undefined, CompanyId?: (number | null) | undefined, AccountId?: (number | null) | undefined, Name?: string | undefined, Description?: string | undefined, Expression?: string | undefined, FormulaOutputTypeId?: number | undefined}; export type IntectTemplateSalaryRecord = {UnitType?: IntectUnitType | undefined, PersistenceType?: IntectSalaryRecordPersistenceType | undefined, Id?: number | undefined, EmploymentTemplateId?: number | undefined, Units?: (number | null) | undefined, IsActive?: boolean | undefined, Description?: string | undefined, UnitTypeId?: (number | null) | undefined, AmountPerUnit?: (number | null) | undefined, Amount?: (number | null) | undefined, BaseAmount?: (number | null) | undefined, SalaryTypeId?: number | undefined, PersistenceTypeId?: number | undefined, SortOrder?: number | undefined, Formula1Id?: (number | null) | undefined, Formula2Id?: (number | null) | undefined, Formula3Id?: (number | null) | undefined, Formula1?: IntectFormula | undefined, Formula2?: IntectFormula | undefined, Formula3?: IntectFormula | undefined}; export type IntectSenioritySupplement = {Id?: number | undefined, EmploymentTemplateId?: number | undefined, SeniorityMonthsStart?: (number | null) | undefined, SeniorityMonthsEnd?: (number | null) | undefined, SupplementAmount?: number | undefined, SupplementIntervalType?: number | undefined, HourlyRate?: (number | null) | undefined, BaseOnTotalWorkHours?: boolean | undefined}; export type IntectOvertimeSupplement = {Id?: number | undefined, EmploymentTemplateId?: number | undefined, TotalHoursWorkedFrom?: (number | null) | undefined, TotalHoursWorkedUntil?: (number | null) | undefined, SupplementAmount?: (number | null) | undefined, SupplementPercentage?: (number | null) | undefined, OvertimeSupplementPrinciple?: number | undefined, Description?: string | undefined}; export type IntectTemplateFeriefriAllocationRule = {Id?: number | undefined, TemplateBalanceConfigurationId?: number | undefined, Months?: (number | null) | undefined, TriggerDate?: (string | null) | undefined, Percentage?: (number | null) | undefined, Hours?: (number | null) | undefined}; export type IntectTemplateBalanceConfiguration = {FeriefriAllocationRules?: Array | undefined, Id?: number | undefined, EmploymentTemplateId?: number | undefined, BalanceDefinitionId?: number | undefined, EarningPercentage?: (number | null) | undefined, BaseCalculationMethodId?: (number | null) | undefined, EarningFixedAmount?: (number | null) | undefined, EarningFixedAmountPrincipleId?: (number | null) | undefined, PensionSharePercentage?: (number | null) | undefined, PensionShareFixedAmount?: (number | null) | undefined, DaysConversionPercentage?: (number | null) | undefined, DaysEarnedPerPayslip?: (number | null) | undefined, PayoutPercentage?: (number | null) | undefined, SeniorityRequirementMonths?: (number | null) | undefined, CustomBehaviorId?: (number | null) | undefined, UnitsEarnedPerInterval?: (number | null) | undefined, BalanceEarningIntervalId?: (number | null) | undefined, TerminationMethodId?: (number | null) | undefined, SpendingMethodId?: (number | null) | undefined, SpendingReducesVacationBase?: (boolean | null) | undefined, EarningBasedOnWeeklyHours?: (boolean | null) | undefined}; export type IntectSalaryCycleTranslation = {Id?: number | undefined, SalaryCycleId?: number | undefined, LanguageId?: number | undefined, Name?: string | undefined, Language?: IntectLanguage | undefined, SalaryCycle?: IntectSalaryCycle | undefined}; export type IntectLanguage = {Id?: number | undefined, Name?: string | undefined, Code?: string | undefined, IsSupported?: boolean | undefined, CultureCode?: string | undefined, SalaryCycleTranslations?: Array | undefined}; export type IntectCompanyLogo = {Id?: number | undefined, Logo?: string | undefined, Company?: IntectCompany | undefined}; export type IntectTimeEntryTypeConfiguration = {Id?: number | undefined, TimeEntryTypeId?: number | undefined, SalaryTypeId?: number | undefined, Description?: string | undefined, Amount?: (number | null) | undefined, AmountPerUnit?: (number | null) | undefined, AppliesBefore?: (string | null) | undefined, AppliesAfter?: (string | null) | undefined, AppliesHolidays?: boolean | undefined, AmountPerKilometer?: (number | null) | undefined, EmploymentTemplateId?: (number | null) | undefined, TargetUnitTypeId?: (number | null) | undefined, ConversionFactor?: (number | null) | undefined, UserEmploymentId?: (number | null) | undefined, AppliesSaturdays?: boolean | undefined, AppliesSundays?: boolean | undefined, UseDefaultRate?: boolean | undefined, ConversionFactorAffectsRate?: boolean | undefined, LegacyFlexEarningPercentage?: (number | null) | undefined, NewFlexEarningPercentage?: (number | null) | undefined, PensionPercentage?: (number | null) | undefined, AppliesMondays?: boolean | undefined, AppliesTuesdays?: boolean | undefined, AppliesWednesdays?: boolean | undefined, AppliesThursdays?: boolean | undefined, AppliesFridays?: boolean | undefined, LimitToDepartmentId?: (number | null) | undefined, LimitToDimension1ValueId?: (number | null) | undefined, LimitToDimension2ValueId?: (number | null) | undefined, LimitToDimension3ValueId?: (number | null) | undefined, PensionPercentageEmployee?: (number | null) | undefined, SeniorityMonthsFrom?: (number | null) | undefined, SeniorityMonthsLessThan?: (number | null) | undefined}; export type IntectAgaRate = {OrdinaryRate?: number | undefined, AgricultureAndFisheryRate?: number | undefined, StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectNorwayMunicipalityZone = {Id?: number | undefined, MunicipalityCode?: number | undefined, MunicipalityName?: string | undefined, County?: string | undefined, Zone?: string | undefined, DisplayName?: string | undefined, AgaRate?: IntectAgaRate | undefined}; export type IntectDepartment = {Id?: number | undefined, CompanyId?: number | undefined, Name?: string | undefined, Description?: string | undefined, IsActive?: boolean | undefined, EIncomeReference?: string | undefined, ExternalReference?: string | undefined, ManagerCompanyUserId?: (number | null) | undefined, Municipality?: (number | null) | undefined, Created?: string | undefined, Updated?: string | undefined, DimensionValues?: Array | undefined, TimeEntryTypeConfigurations?: Array | undefined, NorwayMunicipalityZone?: IntectNorwayMunicipalityZone | undefined}; export type IntectIntegrationOperation = {Id?: number | undefined, IntegrationId?: number | undefined, IsActive?: boolean | undefined, LastRun?: (string | null) | undefined, StatusCode?: number | undefined, OperationId?: number | undefined, TranslationKey?: string | undefined, TranslationParametersList?: string | undefined, LastSuccessfulRun?: (string | null) | undefined, Integration?: IntectIntegration | undefined, TranslatedStatusMessage?: string | undefined}; export type IntectIntegrationConfiguration = {Id?: number | undefined, IntegrationId?: number | undefined, Key?: string | undefined, Value?: string | undefined, Integration?: IntectIntegration | undefined}; export type IntectExternalSystemCredential = {IsPrivate?: boolean | undefined, BackendKey?: string | undefined, StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectIntegrationCredential = {Id?: number | undefined, IntegrationId?: number | undefined, Key?: string | undefined, Value?: string | undefined, Integration?: IntectIntegration | undefined, ExternalSystemCredential?: IntectExternalSystemCredential | undefined, IsPrivate?: boolean | undefined}; export type IntectIntegration = {Id?: number | undefined, CompanyId?: number | undefined, ExternalSystemId?: number | undefined, Name?: string | undefined, Created?: string | undefined, StatusCode?: number | undefined, IsSalaryTypeMappingActive?: boolean | undefined, IntegrationOperations?: Array | undefined, IntegrationConfigurations?: Array | undefined, IntegrationCredentials?: Array | undefined}; export type IntectExternalAccount = {Id?: number | undefined, CompanyId?: number | undefined, AccountIdentifier?: string | undefined, AccountNumber?: string | undefined, AccountName?: string | undefined, Description?: string | undefined, IntegrationId?: (number | null) | undefined, Company?: IntectCompany | undefined, Integration?: IntectIntegration | undefined}; export type IntectCustomValue = {Id?: number | undefined, Locked?: boolean | undefined, Name?: string | undefined, AppliesFrom?: string | undefined, Text?: string | undefined, Value?: (number | null) | undefined, CompanyId?: (number | null) | undefined, UserEmploymentId?: (number | null) | undefined, UserEmploymentTemplateId?: (number | null) | undefined, Company?: IntectCompany | undefined, UserEmployment?: IntectUserEmployment | undefined, UserEmploymentTemplate?: IntectUserEmploymentTemplate | undefined}; export type IntectSalaryBatchStatus = {StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectGender = {IsFemale?: boolean | undefined, StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectAccountRole = {StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectImportMappingColumn = {Id?: number | undefined, ImportMappingId?: number | undefined, ColumnKey?: string | undefined, UserColumnNumber?: number | undefined, SalaryTypeId?: (number | null) | undefined, BackendKey?: string | undefined}; export type IntectImportMapping = {Id?: number | undefined, CompanyId?: (number | null) | undefined, Name?: string | undefined, StartRow?: number | undefined, CountryId?: (number | null) | undefined, TypeId?: number | undefined, AccountOnly?: boolean | undefined, AccountId?: (number | null) | undefined, ImportMappingColumns?: Array | undefined, Account?: IntectAccount | undefined}; export type IntectAccountType = {StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectAccountStatus = {StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectAccountInvoiceType = {StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectPricePackage = {PayslipPrice?: (number | null) | undefined, MonthlyPrice?: (number | null) | undefined, MonthlyPriceIsMinimum?: boolean | undefined, SupportMinutes?: (number | null) | undefined, IncludedModuleIds?: string | undefined}; export type IntectAccount = {Id?: number | undefined, Name?: string | undefined, StatusId?: number | undefined, AccountTypeId?: number | undefined, IsPublic?: boolean | undefined, Description?: string | undefined, DefaultInvoiceTypeId?: number | undefined, MasterCompanyId?: (number | null) | undefined, MasterCompanyEmail?: string | undefined, MasterCompanyVATRegistrationNumber?: string | undefined, MasterCompanyName?: string | undefined, MasterCompanyAddress?: string | undefined, MasterCompanyPostalCode?: string | undefined, MasterCompanyCity?: string | undefined, MasterCompanyCountry?: string | undefined, MasterCompanyEAN?: string | undefined, MasterCompanyAttention?: string | undefined, Companies?: Array | undefined, LoginHistories?: Array | undefined, MasterCompany?: IntectCompany | undefined, ImportMappings?: Array | undefined, AccountType?: IntectAccountType | undefined, AccountStatus?: IntectAccountStatus | undefined, DefaultInvoiceType?: IntectAccountInvoiceType | undefined, PricePackage?: IntectPricePackage | undefined}; export type IntectLoginHistory = {Id?: number | undefined, LoginTime?: string | undefined, UserIp?: string | undefined, Country?: string | undefined, City?: string | undefined, Region?: string | undefined, PostalCode?: string | undefined, IsSuccessful?: boolean | undefined, UserName?: string | undefined, UserId?: (number | null) | undefined, CompanyId?: (number | null) | undefined, UserAgent?: string | undefined, BrowserName?: string | undefined, BrowserVersion?: string | undefined, OSName?: string | undefined, OSVersion?: string | undefined, OperationType?: string | undefined, AccountId?: (number | null) | undefined, IsProcessed?: boolean | undefined, Comment?: string | undefined, APIKey?: string | undefined, Provider?: string | undefined, Issuer?: string | undefined, RoleId?: (number | null) | undefined, CorrelationId?: string | undefined, Company?: IntectCompany | undefined, User?: IntectUser | undefined, Account?: IntectAccount | undefined}; export type IntectBillingPrinciple = {StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectModule = {InfoOnly?: boolean | undefined, Price?: number | undefined, BillingPrincipleId?: number | undefined, FreeUntilDate?: (string | null) | undefined, PackageLevel?: number | undefined, RegisterUsageOnly?: boolean | undefined, BillingPrinciple?: IntectBillingPrinciple | undefined, StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectCompanyModule = {Id?: number | undefined, ModuleId?: number | undefined, LastActivated?: string | undefined, CompanyId?: number | undefined, ScheduledDeactivationDate?: (string | null) | undefined, ActivatedUserId?: (number | null) | undefined, ActivatedByUser?: IntectUser | undefined, Module?: IntectModule | undefined}; export type IntectUser = {FullName?: string | undefined, IdentityNumberFormatted?: string | undefined, HasDummyIdentityNumber?: boolean | undefined, IsTemporaryNorwegianIdentityNumber?: boolean | undefined, Gender?: IntectGender | undefined, AccountRole?: IntectAccountRole | undefined, Id?: number | undefined, FirstName?: string | undefined, MiddleName?: string | undefined, LastName?: string | undefined, IdentityNumber?: string | undefined, BankRegNo?: string | undefined, BankAccountNo?: string | undefined, Username?: string | undefined, LanguageId?: number | undefined, BicSwiftNo?: string | undefined, IbanNo?: string | undefined, AddressId?: number | undefined, AccessPhrase?: string | undefined, DateOfBirth?: (string | null) | undefined, TelMobile?: string | undefined, TelFixed?: string | undefined, Email?: string | undefined, DefaultInitials?: string | undefined, DefaultCompanyId?: (number | null) | undefined, UseGlobalEmail?: boolean | undefined, IsFirstLogin?: boolean | undefined, Preferences?: string | undefined, Created?: string | undefined, ShowUpdateNotification?: boolean | undefined, ShowUrgentNotification?: boolean | undefined, ShowPayslipTutorial?: number | undefined, AccountId?: (number | null) | undefined, AccountRoleId?: (number | null) | undefined, IsFemale?: (boolean | null) | undefined, SystemAliasId?: number | undefined, IntectSupport?: boolean | undefined, ShowFormulaConfigurationPage?: boolean | undefined, ShowFormulaAssignments?: boolean | undefined, IntectSupportAvailableSupportCenters?: string | undefined, Address?: IntectAddress | undefined, CompanyUsers?: Array | undefined, UserImage?: IntectUserImage | undefined, LoginHistories?: Array | undefined, ActivatedCompanyModules?: Array | undefined, CalculatedSalaryBatches?: Array | undefined, NorwayTaxSystemResponseLines?: Array | undefined}; export type IntectPaymentMethod = {RelevantCountries?: Array | undefined, StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectPaymentPlanType = {IsSystemPaymentPlanType?: boolean | undefined, RelevantCountries?: Array | undefined, StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectCurrency = {StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectPayment = {DestinationCurrency?: IntectCurrency | undefined, Id?: number | undefined, PaymentBatchId?: (number | null) | undefined, DueDate?: (string | null) | undefined, PaymentDate?: (string | null) | undefined, SalaryBatchId?: (number | null) | undefined, UserEmploymentId?: (number | null) | undefined, SalaryStatementId?: (number | null) | undefined, RecipientNetsNo?: string | undefined, RecipientBankRegNo?: string | undefined, RecipientBankAccountNo?: string | undefined, ReferenceIdentifier?: string | undefined, OwnReferenceText?: string | undefined, RecipientMessage?: string | undefined, NetsTransferType?: (number | null) | undefined, NetsInfoType?: (number | null) | undefined, AdditionalInfo?: string | undefined, CompanyId?: number | undefined, Amount?: number | undefined, CompanyBankRegNo?: string | undefined, CompanyBankAccountNo?: string | undefined, UserIdentityNumber?: string | undefined, CollectiveAgreementCode?: string | undefined, RecipientName?: string | undefined, AutoDetermineBankAccount?: boolean | undefined, NovemberFirstBatchId?: (number | null) | undefined, PaymentProviderId?: number | undefined, RecipientIban?: string | undefined, RecipientBicSwift?: string | undefined, DestinationCurrencyId?: (number | null) | undefined, PensionProviderId?: (number | null) | undefined, ExternalPaymentPartnerId?: (number | null) | undefined, PaymentTypeId?: number | undefined, QuarterNumber?: (number | null) | undefined, QuarterYear?: (number | null) | undefined, PensionPolicyNumber?: string | undefined, PaymentPlanTypeId?: (number | null) | undefined, PensionEmployeeShare?: (number | null) | undefined, PensionEmployeeShareAmount?: (number | null) | undefined, PensionCompanyShareAmount?: (number | null) | undefined, PensionCompanyShare?: (number | null) | undefined, PensionBaseAmount?: (number | null) | undefined, PensionVoluntaryShare?: (number | null) | undefined, PensionVoluntaryAmount?: (number | null) | undefined, NewFlexPensionAmount?: (number | null) | undefined, RecurringPaymentPlanId?: (number | null) | undefined, Created?: string | undefined, Updated?: string | undefined, PaymentPlanRecipientId?: (number | null) | undefined, KidNumber?: string | undefined, PaymentPlanRecipient?: IntectPaymentPlanRecipient | undefined}; export type IntectPaymentPlanRecipient = {PaymentMethod?: IntectPaymentMethod | undefined, PaymentPlanType?: IntectPaymentPlanType | undefined, Id?: number | undefined, Name?: string | undefined, PaymentPlanTypeId?: number | undefined, VATRegistrationNumber?: string | undefined, TelFixed?: string | undefined, Email?: string | undefined, AddressId?: number | undefined, IsSystemRecipient?: boolean | undefined, CountryId?: (number | null) | undefined, CompanyId?: (number | null) | undefined, AccountNumber?: (number | null) | undefined, PaymentMethodId?: number | undefined, ExternalIdentifier?: string | undefined, BasePaymentPlanRecipientId?: (number | null) | undefined, KIDReference?: string | undefined, MainDeductionAmount?: (number | null) | undefined, MainDeductionShare?: (number | null) | undefined, MainDeductionAmountMin?: (number | null) | undefined, MainDeductionAmountMax?: (number | null) | undefined, AdditionalDeductionAmount?: (number | null) | undefined, AdditionalDeductionShare?: (number | null) | undefined, AdditionalDeductionAmountMin?: (number | null) | undefined, AdditionalDeductionAmountMax?: (number | null) | undefined, InsuranceDeductionAmount?: (number | null) | undefined, AdditionalDeductionAccountOverride?: (number | null) | undefined, AdditionalDeductionKIDReferenceOverride?: string | undefined, InsuranceDeductionAccountOverride?: (number | null) | undefined, InsuranceDeductionKIDReferenceOverride?: string | undefined, ERPReference?: string | undefined, AdditionalDeductionERPReferenceOverride?: string | undefined, InsuranceDeductionERPReferenceOverride?: string | undefined, Address?: IntectAddress | undefined, Payments?: Array | undefined, SalaryBatchRecords?: Array | undefined}; export type IntectSalaryBatchRecord = {Id?: number | undefined, SalaryTypeId?: number | undefined, Amount?: number | undefined, Units?: (number | null) | undefined, Description?: string | undefined, CompanyUserId?: number | undefined, UnitTypeId?: (number | null) | undefined, UserEmploymentId?: number | undefined, SalaryRecordId?: (number | null) | undefined, SalaryBatchId?: number | undefined, AmountPerUnit?: (number | null) | undefined, BaseAmount?: (number | null) | undefined, SalaryStatementId?: (number | null) | undefined, IncludeInPayment?: boolean | undefined, EIncomeCategory?: number | undefined, EIncomeSubCategory?: number | undefined, SummaryCategoryId?: (number | null) | undefined, PeriodFactor?: (number | null) | undefined, FromDate?: (string | null) | undefined, ToDate?: (string | null) | undefined, SortOrder?: number | undefined, SpecialIdentifier?: string | undefined, BaseSalaryTypeId?: (number | null) | undefined, ExternalReferenceSalaryType?: string | undefined, ExternalReferenceEmployee?: string | undefined, ExternalReferenceDepartment?: string | undefined, InformationOnly?: boolean | undefined, Dimension1Value?: string | undefined, Dimension2Value?: string | undefined, Dimension3Value?: string | undefined, SulinalFieldNumber?: string | undefined, IsReportableIncome?: boolean | undefined, SkatteverketAgiFieldCode?: (number | null) | undefined, LegacyFlexEarningPercentage?: (number | null) | undefined, NewFlexEarningPercentage?: (number | null) | undefined, PensionPercentage?: (number | null) | undefined, DisplayDates?: boolean | undefined, Dimension1ValueId?: (number | null) | undefined, Dimension2ValueId?: (number | null) | undefined, Dimension3ValueId?: (number | null) | undefined, PensionPercentageEmployee?: (number | null) | undefined, IsBaseSalary?: boolean | undefined, TriggersSecondaryEmployeeTax?: boolean | undefined, TriggersMainEmployeeTax?: boolean | undefined, TriggersPublicPension?: boolean | undefined, TriggersPrimaryVacation?: boolean | undefined, HideOnPayslip?: boolean | undefined, Formula1Expression?: string | undefined, EvaluatedFormula1Expression?: string | undefined, Formula2Expression?: string | undefined, EvaluatedFormula2Expression?: string | undefined, Formula3Expression?: string | undefined, EvaluatedFormula3Expression?: string | undefined, DeductionRecurringPaymentPlanId?: (number | null) | undefined, PaymentPlanRecipientId?: (number | null) | undefined, PaymentPlanRecipient?: IntectPaymentPlanRecipient | undefined}; export type IntectSalaryBatchValidationIssue = {Id?: number | undefined, SalaryBatchId?: number | undefined, UserEmploymentId?: (number | null) | undefined, IsError?: boolean | undefined, Description?: string | undefined, EmployeeName?: string | undefined, MessageKey?: string | undefined, MessageParameters?: string | undefined}; export type IntectBalanceDefinition = {Id?: number | undefined, CompanyId?: (number | null) | undefined, CountryId?: (number | null) | undefined, Name?: string | undefined, SpecialIdentifier?: string | undefined, IsConfigurable?: boolean | undefined, AmountEnabled?: boolean | undefined, TaxEnabled?: boolean | undefined, SecondaryAmountEnabled?: boolean | undefined, TertiaryAmountEnabled?: boolean | undefined, DaysEnabled?: boolean | undefined, SecondaryDaysEnabled?: boolean | undefined, HoursEnabled?: boolean | undefined, BaseAmountEnabled?: boolean | undefined, HasPeriods?: boolean | undefined, SuspendedDaysEnabled?: boolean | undefined, IsActive?: boolean | undefined, BaseCalculationMethodId?: (number | null) | undefined, BalanceEarningIntervalId?: (number | null) | undefined, UnitsEarnedPerInterval?: (number | null) | undefined, EarningFixedAmount?: (number | null) | undefined, EarningPercentage?: (number | null) | undefined, TerminationMethodId?: (number | null) | undefined, SpendingMethodId?: (number | null) | undefined, BalancePeriods?: Array | undefined}; export type IntectBalancePeriod = {Id?: number | undefined, BalanceId?: number | undefined, EarningStartDate?: string | undefined, EarningEndDate?: string | undefined, SpendingStartDate?: string | undefined, SpendingEndDate?: string | undefined, SpecialIdentifier?: string | undefined, BalanceDefinition?: IntectBalanceDefinition | undefined, Name?: string | undefined}; export type IntectBalanceAdjustment = {Id?: number | undefined, UserEmploymentId?: number | undefined, SalaryStatementId?: (number | null) | undefined, Created?: string | undefined, EffectPerDate?: string | undefined, IsSpending?: boolean | undefined, Amount?: number | undefined, Days?: number | undefined, Hours?: number | undefined, TaxAmount?: number | undefined, NetAmount?: number | undefined, IsDraft?: boolean | undefined, BalancePeriodId?: (number | null) | undefined, BaseAmount?: (number | null) | undefined, BalanceDefinitionId?: number | undefined, SecondaryAmount?: (number | null) | undefined, SecondaryDays?: (number | null) | undefined, TertiaryAmount?: number | undefined, SpecialIdentifier?: string | undefined, BatchPayoutDate?: string | undefined, IsReverted?: boolean | undefined, DaysSuspended?: (number | null) | undefined, SalaryBatchId?: (number | null) | undefined, SalaryStatement?: IntectSalaryStatement | undefined, UserEmployment?: IntectUserEmployment | undefined, BalancePeriod?: IntectBalancePeriod | undefined, BalanceDefinition?: IntectBalanceDefinition | undefined, SalaryBatch?: IntectSalaryBatch | undefined}; export type IntectSalaryTypeView = {SalaryTypeId?: number | undefined, BaseSalaryTypeId?: (number | null) | undefined, CompanyId?: number | undefined, LanguageId?: number | undefined, CategoryId?: (number | null) | undefined, Name?: string | undefined, Description?: string | undefined, DefaultPayslipText?: string | undefined, IsVisible?: boolean | undefined, IsActive?: boolean | undefined, UnitTypeId?: (number | null) | undefined, AmountPerUnit?: (number | null) | undefined, Units?: (number | null) | undefined, BaseAmount?: (number | null) | undefined, Amount?: (number | null) | undefined, EIncomeCategory?: number | undefined, EIncomeSubCategory?: number | undefined, SummaryCategoryId?: (number | null) | undefined, SalaryTypeGroupId?: (number | null) | undefined, ExternalReference?: string | undefined, ImportExternalReference?: string | undefined, IncludeInPayment?: boolean | undefined, SortOrder?: number | undefined, AllowEditUnitType?: boolean | undefined, AllowEditBaseAmount?: boolean | undefined, AllowEditGreatPrayerDayBehavior?: boolean | undefined, NegativeDefault?: boolean | undefined, DefaultPersistanceTypeId?: (number | null) | undefined, StatisticsOnly?: boolean | undefined, StatisticsFieldCode?: string | undefined, SumFromIds?: string | undefined, SumFromReverseSign?: boolean | undefined, IncludeAlways?: boolean | undefined, RelatesToIncomeType5?: (boolean | null) | undefined, Explanation?: string | undefined, TriggersOvertimeSupplement?: (boolean | null) | undefined, SulinalFieldNumber?: string | undefined, OverviewIndex?: (number | null) | undefined, OverviewDisplayMode?: (number | null) | undefined, Identifier?: string | undefined, IsAdvanced?: (boolean | null) | undefined, AccountTypeId?: (number | null) | undefined, BalanceDefinitionId?: (number | null) | undefined, BalanceBehavior?: (number | null) | undefined, BaseName?: string | undefined, BaseDescription?: string | undefined, BasePayslipText?: string | undefined, SkatteverketAgiFieldCode?: (number | null) | undefined, DimensionDistributionOptionId?: (number | null) | undefined, DisplayDates?: boolean | undefined, PensionBehaviorId?: number | undefined, Dimension1ValueId?: (number | null) | undefined, Dimension2ValueId?: (number | null) | undefined, Dimension3ValueId?: (number | null) | undefined, FlexBehaviorId?: (number | null) | undefined, GreatPrayerDayBehaviorId?: number | undefined, ProhibitDimensionValues?: boolean | undefined, SalaryIncomeTypeId?: (number | null) | undefined, IsVariable?: boolean | undefined, VatCode?: string | undefined, IsBaseSalary?: boolean | undefined, TriggersSecondaryEmployeeTax?: boolean | undefined, TriggersMainEmployeeTax?: boolean | undefined, TriggersPublicPension?: boolean | undefined, TriggersPrimaryVacation?: boolean | undefined, HideOnPayslip?: boolean | undefined, TriggersMainEmployerTax?: boolean | undefined, Formula1Id?: (number | null) | undefined, Formula1Expression?: string | undefined, Formula2Id?: (number | null) | undefined, Formula2Expression?: string | undefined, Formula3Id?: (number | null) | undefined, Formula3Expression?: string | undefined, Formula1Name?: string | undefined, Formula2Name?: string | undefined, Formula3Name?: string | undefined, Formula1Description?: string | undefined, Formula2Description?: string | undefined, Formula3Description?: string | undefined, BaseIdentifier?: string | undefined, SalaryIncomeDescriptionId?: (number | null) | undefined, IsUnionFeeBasis?: boolean | undefined, IgnoreDateLimitation?: boolean | undefined, IsVacationBasis?: (boolean | null) | undefined, SalaryIncomeAdditionalInfoIds?: string | undefined, SumUnitsFromIds?: string | undefined, StatisticsPayClassificationId?: (number | null) | undefined}; export type IntectTimeEntryTypeTranslation = {Id?: number | undefined, TimeEntryTypeId?: number | undefined, LanguageId?: number | undefined, Name?: string | undefined, Description?: string | undefined, DefaultPayslipText?: string | undefined, StatusId?: number | undefined, Comment?: string | undefined}; export type IntectTimeEntryTypeCountryMapping = {Id?: number | undefined, BaseTimeEntryTypeId?: number | undefined, CountryId?: number | undefined, TimeEntryType?: IntectTimeEntryType | undefined}; export type IntectTimeEntryType = {Id?: number | undefined, BaseTimeEntryTypeId?: (number | null) | undefined, CompanyId?: (number | null) | undefined, Name?: string | undefined, Description?: string | undefined, IsActive?: (boolean | null) | undefined, UnitTypeId?: (number | null) | undefined, ExternalReference?: string | undefined, SortOrder?: (number | null) | undefined, DefaultPayslipText?: string | undefined, AllowEditUnitType?: (boolean | null) | undefined, IsIllness?: (boolean | null) | undefined, InternalReferenceId?: (number | null) | undefined, Identifier?: string | undefined, StatisticsFieldCode?: string | undefined, MandatoryDescription?: (boolean | null) | undefined, IsReimbursable?: (boolean | null) | undefined, BaseTimeEntryType?: IntectTimeEntryType | undefined, TimeEntryTypeTranslations?: Array | undefined, TimeEntryTypeConfigurations?: Array | undefined, TimeEntryTypeCountryMappings?: Array | undefined}; export type IntectTimeEntryStatus = {StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectTimeEntryRecord = {ManagerName?: string | undefined, TemplateName?: string | undefined, UnitType?: IntectUnitType | undefined, Status?: IntectTimeEntryStatus | undefined, EmployeeName?: string | undefined, DepartmentName?: string | undefined, Title?: string | undefined, DepartmentId?: (number | null) | undefined, IsCalculated?: boolean | undefined, Id?: number | undefined, UserEmploymentId?: number | undefined, EntryDate?: string | undefined, TimeEntryTypeId?: number | undefined, Units?: number | undefined, UnitTypeId?: number | undefined, Description?: string | undefined, SalaryPeriodId?: number | undefined, StatusId?: number | undefined, Created?: string | undefined, RejectionReason?: string | undefined, SalaryRecordId?: (number | null) | undefined, SalaryStatementId?: (number | null) | undefined, KilometersDriven?: (number | null) | undefined, StartTime?: (string | null) | undefined, EndTime?: (string | null) | undefined, Dimension1Value?: string | undefined, Dimension2Value?: string | undefined, Dimension3Value?: string | undefined, EndDate?: (string | null) | undefined, CalculatedFromRecordId?: (number | null) | undefined, ExternalIdentifier?: string | undefined, CalculatedPayout?: (number | null) | undefined, CalculatedPayoutKilometers?: (number | null) | undefined, AmountPerUnit?: (number | null) | undefined, ApprovedUserId?: (number | null) | undefined, RejectedUserId?: (number | null) | undefined, Dimension1ValueId?: (number | null) | undefined, Dimension2ValueId?: (number | null) | undefined, Dimension3ValueId?: (number | null) | undefined, PensionPercentageEmployee?: (number | null) | undefined, Updated?: string | undefined, IsProcessing?: boolean | undefined, TimeEntryRecordSalaryRecordMappings?: Array | undefined}; export type IntectTimeEntryRecordSalaryRecordMapping = {Id?: number | undefined, TimeEntryRecordId?: number | undefined, SalaryRecordId?: number | undefined, ContributedUnits?: (number | null) | undefined, SalaryRecord?: IntectSalaryRecord | undefined, TimeEntryRecord?: IntectTimeEntryRecord | undefined}; export type IntectLedgerStatus = {StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectSalaryLedger = {Status?: IntectLedgerStatus | undefined, Id?: number | undefined, CompanyId?: number | undefined, Name?: string | undefined, OwnerUserId?: number | undefined, StatusId?: number | undefined, SalaryRecords?: Array | undefined}; export type IntectSalaryRecordAdditionalInfo = {Id?: number | undefined, SalaryRecordId?: number | undefined, Created?: string | undefined, Updated?: string | undefined, VehicleKm?: (number | null) | undefined, VehicleNumberOfJourneys?: (number | null) | undefined, VehicleHomeWorkKm?: (number | null) | undefined, VehicleListPrice?: (number | null) | undefined, VehicleRegistrationNumber?: string | undefined, VehicleCarPool?: (boolean | null) | undefined, VehicleOtherFreeUse?: (boolean | null) | undefined, VehicleFreeUseOutsideStandardRule?: (boolean | null) | undefined, VehiclePersonTypeId?: (number | null) | undefined, BenefitEarningsStartDate?: (string | null) | undefined, BenefitEarningsEndDate?: (string | null) | undefined, BeneficiaryUsTaxResidentFirst60Days?: (boolean | null) | undefined, NetSalaryVehicleListPrice?: (number | null) | undefined, NetSalaryVehicleRegistrationNumber?: string | undefined, NetSalaryVehicleCarPool?: (boolean | null) | undefined, ForeignArtistYear?: (number | null) | undefined, ForeignArtistGrossUpBasisAmount?: (number | null) | undefined, ForeignArtistTaxDeductedAmount?: (number | null) | undefined, TaxResidentCountryCode?: string | undefined, CountryOfEarningsCode?: string | undefined, EarnedOnSupportVessel?: boolean | undefined, EarnedOnContinentalShelf?: (boolean | null) | undefined, IncomeRelatedInformationId?: (number | null) | undefined, PaymentPlanRecipientId?: (number | null) | undefined, AccountNumber?: (number | null) | undefined, KIDReference?: string | undefined, ERPReference?: string | undefined, SalaryRecord?: IntectSalaryRecord | undefined}; export type IntectSalaryRecord = {SalaryTypeView?: IntectSalaryTypeView | undefined, UnitType?: IntectUnitType | undefined, PersistenceType?: IntectSalaryRecordPersistenceType | undefined, Id?: number | undefined, Units?: (number | null) | undefined, IsActive?: boolean | undefined, StartDate?: (string | null) | undefined, EndDate?: (string | null) | undefined, Description?: string | undefined, UserEmploymentId?: number | undefined, UnitTypeId?: (number | null) | undefined, AmountPerUnit?: (number | null) | undefined, Amount?: (number | null) | undefined, BaseAmount?: (number | null) | undefined, SalaryTypeId?: number | undefined, SortOrder?: (number | null) | undefined, TimeEntryTypeId?: (number | null) | undefined, PersistenceTypeId?: number | undefined, Dimension1Value?: string | undefined, Dimension2Value?: string | undefined, Dimension3Value?: string | undefined, ExternalIdentifier?: string | undefined, LegacyFlexEarningPercentage?: (number | null) | undefined, NewFlexEarningPercentage?: (number | null) | undefined, PensionPercentage?: (number | null) | undefined, SalaryStatementId?: (number | null) | undefined, Dimension1ValueId?: (number | null) | undefined, Dimension2ValueId?: (number | null) | undefined, Dimension3ValueId?: (number | null) | undefined, Created?: string | undefined, PensionPercentageEmployee?: (number | null) | undefined, InternalReference?: string | undefined, LedgerId?: (number | null) | undefined, Formula1Id?: (number | null) | undefined, Formula2Id?: (number | null) | undefined, Formula3Id?: (number | null) | undefined, Updated?: string | undefined, LicensePlate?: string | undefined, ListPrice?: (number | null) | undefined, PaymentPlanRecipientId?: (number | null) | undefined, AccountNumber?: (number | null) | undefined, KIDReference?: string | undefined, ERPReference?: string | undefined, TimeEntryType?: IntectTimeEntryType | undefined, SalaryStatement?: IntectSalaryStatement | undefined, TimeEntryRecordSalaryRecordMappings?: Array | undefined, SalaryLedger?: IntectSalaryLedger | undefined, Formula1?: IntectFormula | undefined, Formula2?: IntectFormula | undefined, Formula3?: IntectFormula | undefined, SalaryRecordAdditionalInfoes?: Array | undefined}; export type IntectSalaryStatement = {PayoutDateDerived?: (string | null) | undefined, VacationProvider?: IntectVacationProvider | undefined, IsFinalized?: boolean | undefined, TypeId?: number | undefined, Description?: string | undefined, Id?: number | undefined, SalaryBatchId?: number | undefined, PeriodFrom?: string | undefined, PeriodTo?: string | undefined, PayoutAmount?: (number | null) | undefined, AtpEmployee?: number | undefined, AtpEmployer?: number | undefined, UserEmploymentId?: number | undefined, TaxAmount?: number | undefined, AmbAmount?: number | undefined, PensionProviderId?: (number | null) | undefined, PensionEmployeeShare?: (number | null) | undefined, PensionEmployeeShareAmount?: number | undefined, PensionCompanyShare?: (number | null) | undefined, PensionCompanyShareAmount?: number | undefined, VacationProviderId?: (number | null) | undefined, VacationMoneyEarnedGross?: number | undefined, VacationMoneyEarnedNet?: (number | null) | undefined, VacationDaysEarned?: number | undefined, UserFullName?: string | undefined, UserIdentityNumber?: string | undefined, UserAddressId?: (number | null) | undefined, PensionBaseAmount?: number | undefined, VacationDaysSpent?: number | undefined, VacationBaseAmount?: number | undefined, PrimaryIncomeAmount?: number | undefined, HoursWorked?: number | undefined, KmEntered?: number | undefined, AppliedTaxDeduction?: number | undefined, TaxCardRemainingFreeAmount?: (number | null) | undefined, TaxCardTypeId?: number | undefined, TaxRate?: number | undefined, VacationDaysSubtracted?: number | undefined, TaxBaseAmount?: number | undefined, AmbBaseAmount?: number | undefined, VacationTaxDeduction?: (number | null) | undefined, TaxCardFreeAmountReduction?: (number | null) | undefined, ActualFromDate?: string | undefined, ActualEndDate?: string | undefined, IsTermination?: boolean | undefined, TerminationTotalVacationMoneyGross?: (number | null) | undefined, TerminationTotalVacationMoneyNet?: (number | null) | undefined, TerminationYearBeforeLastVacationMoneyGross?: (number | null) | undefined, TerminationYearBeforeLastVacationMoneyNet?: (number | null) | undefined, TerminationYearBeforeLastVacationRemainingDays?: (number | null) | undefined, TerminationLastYearVacationMoneyGross?: (number | null) | undefined, TerminationLastYearVacationMoneyNet?: (number | null) | undefined, TerminationLastYearVacationRemainingDays?: (number | null) | undefined, TerminationCurrentYearVacationMoneyGross?: (number | null) | undefined, TerminationCurrentYearVacationMoneyNet?: (number | null) | undefined, TerminationCurrentYearVacationRemainingDays?: (number | null) | undefined, VacationTaxReduction?: number | undefined, VacationAmbAmount?: number | undefined, FFHoursEarned?: number | undefined, FFHoursSpent?: number | undefined, RecipientBankRegNo?: string | undefined, RecipientBankAccountNo?: string | undefined, RecipientBicSwiftNo?: string | undefined, RecipientIbanNo?: string | undefined, IllnessCompensationAtpAmountEmployee?: (number | null) | undefined, DepartmentId?: (number | null) | undefined, OvertimeHours?: number | undefined, IllnessHours?: number | undefined, TaxableIncome?: number | undefined, VacationSupplementEarned?: (number | null) | undefined, SummaryAmountSalary?: (number | null) | undefined, SummaryAmountSupplements?: (number | null) | undefined, SummaryAmountTaxes?: (number | null) | undefined, SummaryAmountAdjustments?: (number | null) | undefined, FlexAmountEarned?: number | undefined, FlexAmountReduced?: number | undefined, SummaryAmountPension?: (number | null) | undefined, VacationAmbBaseAmount?: number | undefined, TaxFreeIncome?: (number | null) | undefined, TravelCompensation?: number | undefined, PensionCompanyTaxAmount?: (number | null) | undefined, PensionEmployeeTaxAmount?: (number | null) | undefined, ReportableNonTaxedIncome?: (number | null) | undefined, DownloadToken?: string | undefined, DownloadTokenExpiryTime?: (string | null) | undefined, VacationPayoutEarnedLastYear?: (number | null) | undefined, VacationPayoutEarnedCurrentYear?: (number | null) | undefined, VacationBalancePeriodId?: (number | null) | undefined, VacationPayoutAmountGross?: (number | null) | undefined, VacationPayoutAmountNet?: (number | null) | undefined, AdditionalVacationDaysEarned?: (number | null) | undefined, AdditionalVacationDaysSpent?: (number | null) | undefined, AdditionalVacationEarnedGross?: (number | null) | undefined, AmExemptIncome?: number | undefined, IsDummyOnAccountPayslip?: boolean | undefined, SocialTaxAmount?: (number | null) | undefined, MaternityProgramId?: (number | null) | undefined, MaternityProgramAmount?: (number | null) | undefined, PrimaryIncomeAmountFullPeriod?: (number | null) | undefined, DegreeOfEmployment?: (number | null) | undefined, VacationDegreeOfEmployment?: (number | null) | undefined, PrimaryIncomeAmountWithBonus?: number | undefined, TaxPaidNo?: number | undefined, TaxBasisNo?: number | undefined, PositiveTaxFreeIncome?: (number | null) | undefined, NegativeTaxFreeIncome?: (number | null) | undefined, GrossReductionAmount?: (number | null) | undefined, NewFlexAmountEarned?: number | undefined, CustomBalancesAmountEarned?: number | undefined, PositiveTaxableIncome?: (number | null) | undefined, ForeignPensionAmount?: (number | null) | undefined, DomesticPensionAmount?: (number | null) | undefined, StudentInsuranseAmount?: number | undefined, NewFlexPensionAmount?: (number | null) | undefined, ReportingPensionCompanyShareAmount?: (number | null) | undefined, ReportingPensionEmployeeShareAmount?: (number | null) | undefined, Created?: string | undefined, Updated?: string | undefined, SocialTaxFullAmount?: (number | null) | undefined, TaxableBenefits?: (number | null) | undefined, SummaryAmountReimbursments?: (number | null) | undefined, SummaryAmountExpenses?: (number | null) | undefined, SummaryAmountOtherCreditorsDeductions?: (number | null) | undefined, SummaryAmountAttachmentOfEarningDeductions?: (number | null) | undefined, SummaryAmountChildCareDeductions?: (number | null) | undefined, DeductionAttachmentOfEarningRemainingAmount?: (number | null) | undefined, DeductionOtherCreditorsRemainingAmount?: (number | null) | undefined, TaxTable?: string | undefined, AdditionalVacationPayoutEarnedLastYear?: (number | null) | undefined, AdditionalVacationPayoutEarnedCurrentYear?: (number | null) | undefined, VoluntaryExtraTax?: (number | null) | undefined, SummaryAmountUnionDeductionsFull?: (number | null) | undefined, SummaryAmountUnionDeductions?: (number | null) | undefined, SummaryAmountUnionDeductionCurrentBalance?: (number | null) | undefined, SummaryAmountDeductions?: (number | null) | undefined, SubUnitId?: (number | null) | undefined, SalaryBatchRecords?: Array | undefined, UserEmployment?: IntectUserEmployment | undefined, BalanceAdjustments?: Array | undefined, SalaryRecords?: Array | undefined, SalaryBatch?: IntectSalaryBatch | undefined}; export type IntectSalaryBatch = {Status?: IntectSalaryBatchStatus | undefined, IsDraft?: boolean | undefined, IsLocked?: boolean | undefined, IsFinalized?: boolean | undefined, Id?: number | undefined, CompanyId?: number | undefined, SalaryPeriodId?: number | undefined, Created?: string | undefined, StatusId?: number | undefined, Approved?: (string | null) | undefined, RejectionReason?: string | undefined, Rejected?: (string | null) | undefined, EIncomeTransferDate?: (string | null) | undefined, Message?: string | undefined, PayoutDate?: string | undefined, HasErrors?: boolean | undefined, HasWarnings?: boolean | undefined, NetsPaymentsProcessingDate?: (string | null) | undefined, IsTermination?: boolean | undefined, EIncomeZeroReport?: boolean | undefined, SalaryBatchNumber?: number | undefined, PaymentMethodSalary?: number | undefined, PaymentMethodTax?: number | undefined, PaymentMethodPension?: number | undefined, PayslipsArchived?: boolean | undefined, LimitToSpecificEmployees?: boolean | undefined, EBoksDeliveryEnabled?: boolean | undefined, PayoutAllFlex?: boolean | undefined, SpecifiedEmployees?: string | undefined, HasNemKontoPayments?: boolean | undefined, PaymentMethodPublicPension?: number | undefined, PaymentMethodVacationProvider?: number | undefined, ToArchive?: boolean | undefined, Finalized?: (string | null) | undefined, AllowPreliminaryPayslips?: boolean | undefined, PackageLevelWhenFinalized?: (number | null) | undefined, IsAutomated?: boolean | undefined, PayoutNewFlex?: boolean | undefined, ApprovedUserId?: (number | null) | undefined, CreatedUserId?: (number | null) | undefined, FinalizedUserId?: (number | null) | undefined, RejectedUserId?: (number | null) | undefined, FromDateOverride?: (string | null) | undefined, ToDateOverride?: (string | null) | undefined, FinalizationGuid?: string | undefined, LastCalculatedUserId?: (number | null) | undefined, PaymentMethodMaternityProgram?: number | undefined, AutoFinalize?: boolean | undefined, DispatchDate?: string | undefined, ToDispatch?: boolean | undefined, Updated?: string | undefined, TypeId?: number | undefined, PayoutVacationPay?: boolean | undefined, DeductVacationPay?: boolean | undefined, PayoutSeniorVacationPay?: boolean | undefined, DeductSeniorVacationPay?: boolean | undefined, TaxSystemResponseReruns?: number | undefined, EIncomeReversalDate?: (string | null) | undefined, EIncomeRerunRequested?: boolean | undefined, CalculatedByUser?: IntectUser | undefined, SalaryPeriod?: IntectSalaryPeriod | undefined, SalaryBatchRecords?: Array | undefined, SalaryBatchValidationIssues?: Array | undefined, SalaryStatements?: Array | undefined}; export type IntectNorwayTaxSystemResponseLine = {Id?: number | undefined, ParentRequestId?: (number | null) | undefined, ExportFeedbackStatusId?: (number | null) | undefined, SentUserId?: number | undefined, SubmissionDate?: string | undefined, InternalReportId?: string | undefined, ExternalReportId?: string | undefined, IsError?: boolean | undefined, ResponseCode?: string | undefined, ResponseText?: string | undefined, SalaryBatchId?: (number | null) | undefined, AmeldingType?: number | undefined, CompanyId?: number | undefined, ResponseReruns?: (number | null) | undefined, ReplacedById?: (number | null) | undefined, DialogId?: string | undefined, IdempotencyKey?: (string | null) | undefined, ChildNorwayTaxSystemResponseLine?: Array | undefined, ParentNorwayTaxSystemResponseLine?: IntectNorwayTaxSystemResponseLine | undefined, SalaryBatch?: IntectSalaryBatch | undefined, User?: IntectUser | undefined, Company?: IntectCompany | undefined, ReplacingNorwayTaxSystemResponseLine?: Array | undefined, ReplacedByNorwayTaxSystemResponseLine?: IntectNorwayTaxSystemResponseLine | undefined}; export type IntectKeycloakConfigClaimmapping = {Id?: number | undefined, KeycloakConfigId?: number | undefined, ClaimType?: string | undefined, ClaimPath?: string | undefined, ClaimValue?: string | undefined, RoleId?: number | undefined}; export type IntectKeycloakConfig = {Id?: number | undefined, CompanyId?: number | undefined, Issuer?: string | undefined, JwksUri?: string | undefined, Audience?: string | undefined, Realm?: string | undefined, IntectUrl?: string | undefined, AutoCreateUser?: boolean | undefined, AutoCreateServiceAccount?: boolean | undefined, Company?: IntectCompany | undefined, KeycloakConfigClaimmappings?: Array | undefined}; export type IntectPermission = {Id?: number | undefined, InternalKey?: string | undefined, CompanyRolePermissions?: Array | undefined}; export type IntectCompanyRolePermission = {Id?: number | undefined, CompanyId?: number | undefined, RoleId?: number | undefined, PermissionId?: number | undefined, IsGranted?: boolean | undefined, Company?: IntectCompany | undefined, Permission?: IntectPermission | undefined}; export type IntectSubUnit = {Id?: number | undefined, CompanyId?: number | undefined, Name?: string | undefined, Description?: string | undefined, IsActive?: boolean | undefined, VATRegistrationNumber?: string | undefined, Municipality?: (number | null) | undefined, Created?: string | undefined, Updated?: string | undefined, NorwayMunicipalityZone?: IntectNorwayMunicipalityZone | undefined}; export type IntectCompanyType = {StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectCompanyStatus = {StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectCompany = {Id?: number | undefined, Name?: string | undefined, StatusId?: number | undefined, VATRegistrationNumber?: string | undefined, AccountId?: (number | null) | undefined, Email1?: string | undefined, Email2?: string | undefined, DefaultLanguageId?: number | undefined, AddressId?: number | undefined, CompanyTypeId?: number | undefined, SecondaryVATRegistrationNumber?: string | undefined, MainContactCompanyUserId?: (number | null) | undefined, BankRegNo?: string | undefined, BankAccountNo?: string | undefined, BicSwiftNo?: string | undefined, IbanNo?: string | undefined, ExternalSystemComment?: string | undefined, PaymentMethodSalary?: number | undefined, PaymentMethodPension?: number | undefined, PaymentMethodTax?: number | undefined, ExternalSystemId?: (number | null) | undefined, TelMobile?: string | undefined, TelFixed?: string | undefined, KnowsIntectFrom?: string | undefined, ExternalAuthentication?: string | undefined, HasNetsAgreement?: boolean | undefined, Created?: string | undefined, EmployersAssociationNumber?: string | undefined, StaticsReportsYearly?: boolean | undefined, StatisticsRecipientId?: (number | null) | undefined, SubscribeToNewsLetter?: boolean | undefined, EstablishedDate?: (string | null) | undefined, EmployeeCountEstimate?: string | undefined, Preferences?: string | undefined, InvoiceIdentifier?: string | undefined, PaymentMethodPublicPension?: number | undefined, PaymentMethodVacationProvider?: number | undefined, InvoiceEmail?: string | undefined, HasAcceptedTerms?: boolean | undefined, CountryId?: number | undefined, CurrentPackageLevel?: number | undefined, ScheduledPackageId?: (number | null) | undefined, ScheduledPackageDate?: (string | null) | undefined, IndustryCode?: string | undefined, AccountComment?: string | undefined, BankId?: (number | null) | undefined, IndustryOrganizationId?: (number | null) | undefined, InvoiceTypeId?: number | undefined, DefaultTaxTableId?: (number | null) | undefined, AllowAutoDetermineBankAccount?: boolean | undefined, SystemAliasId?: number | undefined, PaymentMethodMaternityProgram?: number | undefined, BankAccountWithholdingTax?: string | undefined, BankGuarantee?: boolean | undefined, PensionProviderName?: string | undefined, NorwayTypeOfBusinessId?: number | undefined, BankAccountNorway?: string | undefined, PensionProviderOrgNo?: string | undefined, BankCustomerNumber?: string | undefined, UseSENumberForNetsAgreement?: boolean | undefined, ExpenseId?: (string | null) | undefined, ISOAgreementNumber?: string | undefined, ISOSignerID?: string | undefined, ISOUseCompanyCVR?: boolean | undefined, HalfTaxMonth?: (number | null) | undefined, ISOCustomerNumber?: string | undefined, ISODivisionCode?: string | undefined, EmployeeAnnualHoursNO?: (number | null) | undefined, IsFNOReportEnabled?: boolean | undefined, AltinnId?: string | undefined, IsItinerant?: boolean | undefined, Language?: IntectLanguage | undefined, Address?: IntectAddress | undefined, CompanyLogo?: IntectCompanyLogo | undefined, Departments?: Array | undefined, ExternalAccounts?: Array | undefined, Holidays?: Array | undefined, DimensionValues?: Array | undefined, CustomValues?: Array | undefined, NorwayTaxSystemResponseLines?: Array | undefined, KeycloakConfigs?: Array | undefined, CompanyRolePermissions?: Array | undefined, SubUnits?: Array | undefined, CompanyType?: IntectCompanyType | undefined, CompanyStatus?: IntectCompanyStatus | undefined, Country?: IntectCountry | undefined, HasIdP?: boolean | undefined, PricePackage?: IntectPricePackage | undefined, InvoiceType?: IntectAccountInvoiceType | undefined, RequiresTwoFactorAuthentication?: boolean | undefined}; export type IntectHoliday = {Id?: number | undefined, Date?: string | undefined, ConsiderHoliday?: boolean | undefined, DisablesBankPayments?: boolean | undefined, CountryId?: (number | null) | undefined, CompanyId?: (number | null) | undefined, UserEmploymentTemplateId?: (number | null) | undefined, Description?: string | undefined, Created?: (string | null) | undefined, Company?: IntectCompany | undefined, UserEmploymentTemplate?: IntectUserEmploymentTemplate | undefined}; export type IntectPensionPolicyValidation = {Regex?: Record | undefined, ViolationKey?: string | undefined, StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectPaymentPlanProvider = {NetsNo?: string | undefined, DefaultBaseCalculationMethodId?: number | undefined, NetsInfoType?: number | undefined, PolicyNumberRequired?: boolean | undefined, AccountNumberRequired?: boolean | undefined, PolicyNumberLabelOverride?: string | undefined, CountryId?: number | undefined, PensionPolicyValidation?: IntectPensionPolicyValidation | undefined, IsDummyForBankAccount?: boolean | undefined, RequiredNetsRecordTypes?: Array | undefined, SupportedPaymentPlanTypes?: Array | undefined, PolicyNumberPlace?: ('CollectiveAgreementCode' | 'ReferenceIdentifier' | 'DepartmentNumber') | undefined, StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectBaseCalculationMethod = {IsPensionBase?: boolean | undefined, IsFlexBase?: boolean | undefined, IsExtraVacationHoursBase?: boolean | undefined, IsCustomBalanceBase?: boolean | undefined, StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectRecurringPaymentPlan = {PaymentPlanProvider?: IntectPaymentPlanProvider | undefined, PensionBaseCalculationMethod?: IntectBaseCalculationMethod | undefined, IsBalanceActive?: boolean | undefined, IsDanishOrGreenlandicPaymentPlanType?: boolean | undefined, IsNorwayPaymentPlanType?: boolean | undefined, FixedAmountIsPerWorkDay?: boolean | undefined, Id?: number | undefined, UserEmploymentId?: (number | null) | undefined, UserEmploymentTemplateId?: (number | null) | undefined, BaseCalculationMethodId?: number | undefined, EmployeeShare?: (number | null) | undefined, CompanyShare?: (number | null) | undefined, PaymentPlanProviderId?: (number | null) | undefined, PolicyNumber?: string | undefined, EmployeeAmount?: (number | null) | undefined, CompanyAmount?: (number | null) | undefined, ProviderBankRegNo?: string | undefined, ProviderBankAccountNo?: string | undefined, DueDateDelayDays?: (number | null) | undefined, StartDate?: (string | null) | undefined, EndDate?: (string | null) | undefined, PaymentPlanTypeId?: number | undefined, SortOrder?: number | undefined, VoluntaryShare?: (number | null) | undefined, VoluntaryAmount?: (number | null) | undefined, SeniorityRequirementMonths?: (number | null) | undefined, AgeRequirementFrom?: (number | null) | undefined, AgeRequirementUntil?: (number | null) | undefined, PaymentPlanRecipientId?: (number | null) | undefined, Reference?: string | undefined, StartingBalance?: (number | null) | undefined, CurrentBalance?: (number | null) | undefined, FixedAmountBehavior?: number | undefined, EnableAutoAdjust?: boolean | undefined, PaymentPlanRecipient?: IntectPaymentPlanRecipient | undefined}; export type IntectRateInterval = {Id?: number | undefined, RateIntervalSetId?: number | undefined, SalaryTypeId?: number | undefined, SeniorityFrom?: (number | null) | undefined, SeniorityLessThan?: (number | null) | undefined, AgeFrom?: (number | null) | undefined, AgeLessThan?: (number | null) | undefined, WorkHoursFrom?: (number | null) | undefined, WorkHoursLessThan?: (number | null) | undefined, AmountPerUnit?: (number | null) | undefined, Amount?: (number | null) | undefined, Description?: string | undefined}; export type IntectRateIntervalSet = {Id?: number | undefined, EmploymentTemplateId?: number | undefined, Name?: string | undefined, ValidFrom?: (string | null) | undefined, ValidUntil?: (string | null) | undefined, RateIntervals?: Array | undefined}; export type IntectUserEmploymentTemplate = {VacationType?: IntectVacationType | undefined, VacationProvider?: IntectVacationProvider | undefined, CasualWorkerAppliesToAtpAndMaternity?: boolean | undefined, CasualWorkerAppliesToVacation?: boolean | undefined, Id?: number | undefined, CompanyId?: number | undefined, Name?: string | undefined, VacationTypeId?: number | undefined, VacationProviderId?: (number | null) | undefined, VacationExtraPercentage?: (number | null) | undefined, IsAtpTempWorker?: boolean | undefined, WorksElsewhere?: boolean | undefined, IncomeTypeId?: number | undefined, SalaryCycleId?: (number | null) | undefined, VacationReduceSalary?: boolean | undefined, VacationSupplementPayoutMonth?: number | undefined, IsInMaternityProgram?: boolean | undefined, IllnessReducesSalary?: boolean | undefined, StandardHoursPerWeek?: (number | null) | undefined, StatisticsSalaryPrincipleId?: (number | null) | undefined, StatisticsEmploymentPrincipleId?: (number | null) | undefined, StatisticsEmploymentTermsId?: (number | null) | undefined, StatisticsJobStatusId?: (number | null) | undefined, StatisticsJobFunctionCode?: (number | null) | undefined, StandardWorkDaysPerWeek?: (number | null) | undefined, DepartmentId?: (number | null) | undefined, FlexEarningPercentage?: number | undefined, FlexBaseCalculationMethodId?: number | undefined, IsDefault?: boolean | undefined, CollectiveBargainingAgreementCode?: string | undefined, TerminationVacationOverridePercentage?: (number | null) | undefined, SystemDefaultForCountryId?: (number | null) | undefined, TimeEntryRecordAcrossSalaryPeriodStrategy?: number | undefined, AllowExtendedTaxCardDeductions?: boolean | undefined, TemplateExternalReference?: string | undefined, UseTaxDeductionPerWorkDay?: boolean | undefined, DefaultRate?: (number | null) | undefined, VacationDaysPerYear?: (number | null) | undefined, ApplyLongTermIllnessCompensation?: boolean | undefined, AnnualIncomeMultiplicationFactor?: (number | null) | undefined, AdditionalVacationTerminationMethod?: (number | null) | undefined, AdditionalVacationSpentFirst?: boolean | undefined, AdvanceVacationDays?: (number | null) | undefined, WorkplaceIdentifier?: string | undefined, StandardWorkHoursMonday?: (number | null) | undefined, StandardWorkHoursTuesday?: (number | null) | undefined, StandardWorkHoursWednesday?: (number | null) | undefined, StandardWorkHoursThursday?: (number | null) | undefined, StandardWorkHoursFriday?: (number | null) | undefined, StandardWorkHoursSaturday?: (number | null) | undefined, StandardWorkHoursSunday?: (number | null) | undefined, CopiedFromTemplateId?: (number | null) | undefined, MaternityProgramId?: (number | null) | undefined, IsMaternityProgramVolunteer?: boolean | undefined, Dimension1ValueId?: (number | null) | undefined, Dimension2ValueId?: (number | null) | undefined, Dimension3ValueId?: (number | null) | undefined, Dimension1AllowOverride?: boolean | undefined, Dimension2AllowOverride?: boolean | undefined, Dimension3AllowOverride?: boolean | undefined, Dimension1Value?: string | undefined, Dimension2Value?: string | undefined, Dimension3Value?: string | undefined, WorkingAddressReference?: string | undefined, WorkplaceAddress?: string | undefined, WorkplaceCity?: string | undefined, EmploymentTypeId?: (number | null) | undefined, AppointmentTypeId?: (number | null) | undefined, WorkingHoursArragementId?: (number | null) | undefined, VacationLimitedAllowanceId?: number | undefined, FlexTerminationMethodId?: number | undefined, VacationMinimumAmount?: (number | null) | undefined, VacationMinimumAmountTerminationIgnore?: (boolean | null) | undefined, AdvanceVacationExpireDate?: (string | null) | undefined, VariableVacationPayoutMethodId?: (number | null) | undefined, VacationYearStartMonth?: (number | null) | undefined, Year5VacationDaysActionSE?: (number | null) | undefined, VacationPayoutMethodId?: (number | null) | undefined, VacationTerminationMethodId?: (number | null) | undefined, ExemptFromSocialTax?: boolean | undefined, GreatPrayerSupplementPayoutMethodId?: number | undefined, CasualWorkerStatusId?: number | undefined, SubUnitId?: (number | null) | undefined, TemplateSalaryRecords?: Array | undefined, SenioritySupplements?: Array | undefined, OvertimeSupplements?: Array | undefined, TemplateBalanceConfigurations?: Array | undefined, Holidays?: Array | undefined, DimensionValues?: Array | undefined, SalaryCycle?: IntectSalaryCycle | undefined, UserEmploymentTemplate1?: Array | undefined, UserEmploymentTemplate2?: IntectUserEmploymentTemplate | undefined, RecurringPaymentPlans?: Array | undefined, CustomValues?: Array | undefined, RateIntervalSets?: Array | undefined}; export type IntectTaxCardType = {EIncomeReference?: number | undefined, AllowTaxRate?: boolean | undefined, AllowDeduction?: boolean | undefined, AllowFreeAmount?: boolean | undefined, RelevantCountries?: Array | undefined, StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectWithholdingMonths = {Months?: number | undefined, RelevantCountries?: Array | undefined, StaticDataId?: number | undefined, Key?: string | undefined, Id?: number | undefined, Name?: string | undefined, Description?: string | undefined, SortKey?: string | undefined}; export type IntectUserTaxInfo = {TaxCardType?: IntectTaxCardType | undefined, IsCurrent?: boolean | undefined, WithholdingMonths?: IntectWithholdingMonths | undefined, HasFullYearWithholding?: boolean | undefined, Id?: number | undefined, ValidFrom?: string | undefined, ValidUntil?: (string | null) | undefined, TaxRate?: (number | null) | undefined, DeductionMonth?: (number | null) | undefined, FreeAmount?: (number | null) | undefined, UserEmploymentId?: number | undefined, IsActive?: boolean | undefined, TaxCardTypeId?: number | undefined, IsDummy?: boolean | undefined, MinimumRate?: (number | null) | undefined, MaximumDeductionMonth?: (number | null) | undefined, MaximumDeductionDay?: (number | null) | undefined, Created?: string | undefined, DeductionWeek?: (number | null) | undefined, DeductionDay?: (number | null) | undefined, IsManual?: boolean | undefined, ParsedFromFileName?: string | undefined, TaxCardRequestId?: (number | null) | undefined, Updated?: string | undefined, TaxCardYear?: (number | null) | undefined, ExternalTaxCardId?: string | undefined, TaxTable?: string | undefined, AdditionalInformation?: string | undefined, WithholdingMonthsId?: (number | null) | undefined, IsPaye?: boolean | undefined}; export type IntectEmploymentFeriefriAllocationRule = {Id?: number | undefined, EmploymentBalanceConfigurationId?: number | undefined, Months?: (number | null) | undefined, TriggerDate?: (string | null) | undefined, Percentage?: (number | null) | undefined, Hours?: (number | null) | undefined}; export type IntectEmploymentBalanceConfiguration = {Id?: number | undefined, UserEmploymentId?: number | undefined, BalanceDefinitionId?: number | undefined, EarningPercentage?: (number | null) | undefined, BaseCalculationMethodId?: (number | null) | undefined, EarningFixedAmount?: (number | null) | undefined, EarningFixedAmountPrincipleId?: (number | null) | undefined, PensionSharePercentage?: (number | null) | undefined, PensionShareFixedAmount?: (number | null) | undefined, DaysConversionPercentage?: (number | null) | undefined, DaysEarnedPerPayslip?: (number | null) | undefined, PayoutPercentage?: (number | null) | undefined, SeniorityRequirementMonths?: (number | null) | undefined, CustomBehaviorId?: (number | null) | undefined, UnitsEarnedPerInterval?: (number | null) | undefined, BalanceEarningIntervalId?: (number | null) | undefined, TerminationMethodId?: (number | null) | undefined, SpendingMethodId?: (number | null) | undefined, SpendingReducesVacationBase?: (boolean | null) | undefined, EarningBasedOnWeeklyHours?: (boolean | null) | undefined, FeriefriAllocationRules?: Array | undefined}; export type IntectCompanyCar = {Id?: number | undefined, UserEmploymentId?: number | undefined, TaxableValue?: number | undefined, FirstRegistrationDate?: (string | null) | undefined, PurchasedDate?: (string | null) | undefined, LicensePlateNumber?: string | undefined, Model?: string | undefined, ValidFrom?: (string | null) | undefined, ValidUntil?: (string | null) | undefined, EnvironmentSupplementValue?: number | undefined, IsOverDistanceLimit?: (boolean | null) | undefined, ModelCode?: string | undefined, AdditionalEquipment?: (number | null) | undefined, VehicleTax?: (number | null) | undefined, FuelPayerId?: (number | null) | undefined, FuelTypeId?: (number | null) | undefined, TaxableValueAdjusted?: (number | null) | undefined, ReducedBenefitValidFrom?: (string | null) | undefined, Comment?: string | undefined, UserEmployment?: IntectUserEmployment | undefined}; export type IntectUserEmployment = {CurrentConfiguration?: IntectEmploymentConfigurationHistory | undefined, VacationType?: IntectVacationType | undefined, VacationProvider?: IntectVacationProvider | undefined, CasualWorkerAppliesToAtpAndMaternity?: boolean | undefined, CasualWorkerAppliesToVacation?: boolean | undefined, Id?: number | undefined, CompanyUserId?: number | undefined, HireDate?: string | undefined, ExpireDate?: (string | null) | undefined, VacationTypeId?: number | undefined, VacationProviderId?: (number | null) | undefined, VacationExtraPercentage?: (number | null) | undefined, BasedOnTemplateId?: (number | null) | undefined, Title?: string | undefined, SalaryCycleId?: (number | null) | undefined, ExternalReference?: string | undefined, IsAtpTempWorker?: boolean | undefined, DepartmentId?: (number | null) | undefined, IncomeTypeId?: number | undefined, WorksElsewhere?: boolean | undefined, LastStatementEndDate?: (string | null) | undefined, VacationReduceSalary?: boolean | undefined, IsTerminated?: boolean | undefined, VacationSupplementPayoutMonth?: number | undefined, IsInMaternityProgram?: boolean | undefined, TaxCardRequested?: (string | null) | undefined, PreferredTaxCardTypeId?: number | undefined, Created?: string | undefined, IllnessReducesSalary?: boolean | undefined, ManagerCompanyUserId?: (number | null) | undefined, StatisticsSalaryPrincipleId?: (number | null) | undefined, StatisticsEmploymentPrincipleId?: (number | null) | undefined, StatisticsEmploymentTermsId?: (number | null) | undefined, StatisticsJobStatusId?: (number | null) | undefined, StatisticsJobFunctionCode?: (number | null) | undefined, StatisticsSalaryPrincipleFromDate?: (string | null) | undefined, StatisticsEmploymentPrincipleFromDate?: (string | null) | undefined, StatisticsEmploymentTermsFromDate?: (string | null) | undefined, StatisticsJobStatusFromDate?: (string | null) | undefined, StatisticsJobFunctionFromDate?: (string | null) | undefined, FlexEarningPercentage?: number | undefined, FlexBaseCalculationMethodId?: number | undefined, CollectiveBargainingAgreementCode?: string | undefined, TerminationVacationOverridePercentage?: (number | null) | undefined, SeniorityDate?: (string | null) | undefined, ApplyDanishRulesInGreenland?: boolean | undefined, AnnualTaxComment?: string | undefined, AllowExtendedTaxCardDeductions?: boolean | undefined, ReduceTaxCardDeduction?: (number | null) | undefined, IncreaseTaxRatePercentage?: (number | null) | undefined, UseTaxDeductionPerWorkDay?: boolean | undefined, DefaultRate?: (number | null) | undefined, TaxTableNumber?: string | undefined, TaxColumnNumber?: (number | null) | undefined, AdHocTaxRateOverride?: (number | null) | undefined, VacationDaysPerYear?: (number | null) | undefined, SecondaryExternalReference?: string | undefined, LastIllnessEndDate?: (string | null) | undefined, LastIllnessStartDate?: (string | null) | undefined, VacationTerminationDate?: (string | null) | undefined, VacationTerminationDatePriorYear?: (string | null) | undefined, AdditionalVacationTerminationMethod?: (number | null) | undefined, AdditionalVacationSpentFirst?: boolean | undefined, Updated?: (string | null) | undefined, AtpHours?: (number | null) | undefined, IsPendingRecalc?: boolean | undefined, AdvanceVacationDays?: (number | null) | undefined, WorkplaceIdentifier?: string | undefined, SettleVacationInTerminationMonth?: boolean | undefined, MaternityProgramId?: (number | null) | undefined, IsMaternityProgramVolunteer?: boolean | undefined, Dimension1ValueId?: (number | null) | undefined, Dimension2ValueId?: (number | null) | undefined, Dimension3ValueId?: (number | null) | undefined, Dimension1Value?: string | undefined, Dimension2Value?: string | undefined, Dimension3Value?: string | undefined, WorkingAddressReference?: string | undefined, WorkplaceAddress?: string | undefined, WorkplaceCity?: string | undefined, EmploymentTypeId?: (number | null) | undefined, CauseOfEndDateId?: (number | null) | undefined, AppointmentTypeId?: (number | null) | undefined, WorkingHoursArragementId?: (number | null) | undefined, OccupationCode?: string | undefined, FlexTerminationMethodId?: number | undefined, VacationLimitedAllowanceId?: number | undefined, ApplyDanishATPRulesInGreenland?: boolean | undefined, ApplyDanishAMBRulesInGreenland?: boolean | undefined, IsECHTriggerDisabled?: boolean | undefined, VacationMinimumAmount?: (number | null) | undefined, VacationMinimumAmountTerminationIgnore?: (boolean | null) | undefined, AdvanceVacationExpireDate?: (string | null) | undefined, VariableVacationPayoutMethodId?: (number | null) | undefined, VacationYearStartMonth?: (number | null) | undefined, RecentSalaryChangeDate?: (string | null) | undefined, LastReportedInAmeldingDate?: (string | null) | undefined, Year5VacationDaysActionSE?: (number | null) | undefined, VacationPayoutMethodId?: (number | null) | undefined, VacationTerminationMethodId?: (number | null) | undefined, AmeldingId?: string | undefined, ExemptFromSocialTax?: boolean | undefined, HalfTaxOverride?: boolean | undefined, GreatPrayerSupplementPayoutMethodId?: number | undefined, ExpireDateReportedInAmeldingDate?: (string | null) | undefined, IsNetSalary?: boolean | undefined, GrossingUpTable?: string | undefined, TaxRuleId?: (number | null) | undefined, CommuterTypeId?: (number | null) | undefined, StatusFNOId?: number | undefined, PayFormFNOId?: number | undefined, StatusDegreeShare?: number | undefined, IsWorkCapable?: boolean | undefined, IsReceivesAFP?: boolean | undefined, PensionAgeNO?: number | undefined, EmployeeAnnualHoursNO?: (number | null) | undefined, YearlySalary?: (number | null) | undefined, CasualWorkerStatusId?: number | undefined, SubUnitId?: (number | null) | undefined, CreatedFromUserEmploymentId?: (number | null) | undefined, CompanyUser?: IntectCompanyUser | undefined, UserEmploymentTemplate?: IntectUserEmploymentTemplate | undefined, UserTaxInfos?: Array | undefined, SalaryRecords?: Array | undefined, TimeEntryTypeConfigurations?: Array | undefined, EmploymentBalanceConfigurations?: Array | undefined, SalaryCycle?: IntectSalaryCycle | undefined, EmploymentConfigurationHistories?: Array | undefined, CompanyCars?: Array | undefined, RecurringPaymentPlans?: Array | undefined, CustomValues?: Array | undefined}; export type IntectSalaryCycle = {Id?: number | undefined, Name?: string | undefined, Months?: number | undefined, Days?: number | undefined, IsForwardPaid?: boolean | undefined, FirstPeriodStartDate?: (string | null) | undefined, SortKey?: string | undefined, SpecialIdentifier?: string | undefined, CompanyId?: (number | null) | undefined, AccountId?: (number | null) | undefined, SalaryPeriods?: Array | undefined, UserEmployments?: Array | undefined, UserEmploymentTemplates?: Array | undefined, IsMonthly?: boolean | undefined, IsWeekly?: boolean | undefined, IsBiWeekly?: boolean | undefined, IsMonthlyStandard?: boolean | undefined, IsCustom?: boolean | undefined}; export type CreateApiApiSalarycyclesArgs = {body: IntectSalaryCycle}; export type CreateApiApiSalarycyclesOptions = {baseUrl?: string | undefined, basicAuth?: {username: string, password: string} | undefined, fetch?: typeof fetch | undefined}; export const intectSalaryPeriodCountryMapping = z.object({Id: z.number().int().optional(), SalaryPeriodId: z.number().int().optional(), CountryId: z.number().int().optional(), PayoutDate: z.string().optional(), SalaryPeriod: z.lazy(() => intectSalaryPeriod.optional())}); export const intectSalaryPeriod: z.ZodType = z.object({Id: z.number().int().optional(), StartDate: z.string().optional(), EndDate: z.string().optional(), SalaryCycleId: z.number().int().optional(), SuggestedPayoutDate: z.string().nullable().optional(), FriendlyName: z.string().optional(), SalaryCycle: z.lazy(() => intectSalaryCycle.optional()), SalaryPeriodCountryMappings: z.array(intectSalaryPeriodCountryMapping).optional()}); export const intectEmploymentConfigurationHistory = z.object({Id: z.number().int().optional(), UserEmploymentId: z.number().int().optional(), FromDate: z.string().optional(), StandardHoursPerWeek: z.number().nullable().optional(), StandardWorkDaysPerWeek: z.number().nullable().optional(), StandardWorkHoursMonday: z.number().nullable().optional(), StandardWorkHoursTuesday: z.number().nullable().optional(), StandardWorkHoursWednesday: z.number().nullable().optional(), StandardWorkHoursThursday: z.number().nullable().optional(), StandardWorkHoursFriday: z.number().nullable().optional(), StandardWorkHoursSaturday: z.number().nullable().optional(), StandardWorkHoursSunday: z.number().nullable().optional(), DegreeOfEmployment: z.number().nullable().optional(), VacationFactor: z.number().nullable().optional()}); export const intectVacationType = z.object({StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectVacationProvider = z.object({SENumber: z.string().optional(), NetsNumber: z.string().optional(), IsAdministrative: z.boolean().optional(), StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectCountry = z.object({IsSupported: z.boolean().optional(), DefaultLanguageId: z.number().int().optional(), ReleaseNoteLink: z.string().optional(), GetHelpOnlineLink: z.string().optional(), OperatingStatus: z.string().optional(), StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectAddress = z.object({Id: z.number().int().optional(), Line1: z.string().optional(), Line2: z.string().optional(), PostalCode: z.string().optional(), City: z.string().optional(), CountryId: z.number().int().nullable().optional(), Created: z.string().optional(), Updated: z.string().optional(), Country: intectCountry.optional()}); export const intectUserImage = z.object({Id: z.number().int().optional(), Image: z.string().optional()}); export const intectDimensionValue = z.object({Id: z.number().int().optional(), CompanyId: z.number().int().optional(), DimensionNumber: z.number().int().optional(), Value: z.string().optional(), Description: z.string().optional(), ApproverCompanyUserId: z.number().int().nullable().optional(), LimitToDepartmentId: z.number().int().nullable().optional(), LimitToTemplateId: z.number().int().nullable().optional()}); export const intectExpenseError = z.object({Id: z.number().int().optional(), CompanyUserId: z.number().int().optional(), ErrorMessage: z.string().optional(), CompanyUser: z.lazy(() => intectCompanyUser.optional())}); export const intectCompanyUser: z.ZodType = z.object({Id: z.number().int().optional(), UserId: z.number().int().optional(), CompanyId: z.number().int().optional(), RoleId: z.number().int().optional(), IsActive: z.boolean().optional(), FirstName: z.string().optional(), MiddleName: z.string().optional(), LastName: z.string().optional(), BankRegNo: z.string().optional(), BankAccountNo: z.string().optional(), BicSwiftNo: z.string().optional(), IbanNo: z.string().optional(), AddressId: z.number().int().optional(), IsPaymentApprover: z.boolean().optional(), Initials: z.string().optional(), TelMobile: z.string().optional(), TelFixed: z.string().optional(), CompanyEmail: z.string().optional(), PersonalEmail: z.string().optional(), Created: z.string().optional(), DeactivationDate: z.string().nullable().optional(), PreferredCurrencyId: z.number().int().nullable().optional(), AutoDetermineBankAccount: z.boolean().optional(), MunicipalityId: z.number().int().nullable().optional(), Updated: z.string().optional(), TinNr: z.string().optional(), TinNrUnknown: z.boolean().optional(), ExpenseId: z.string().nullable().optional(), IsActiveInExpense: z.boolean().optional(), CreatedBy: z.number().int().nullable().optional(), UpdatedBy: z.number().int().nullable().optional(), RecycleBin: z.string().optional(), UserEmployments: z.array(z.lazy(() => intectUserEmployment)).optional(), Address: intectAddress.optional(), UserImage: intectUserImage.optional(), DimensionValues: z.array(intectDimensionValue).optional(), ExpenseErrors: z.array(intectExpenseError).optional(), FullName: z.string().optional(), UserLanguageId: z.number().int().optional(), UserIdentityNumber: z.string().optional(), UserDateOfBirth: z.string().nullable().optional(), UserIsFemale: z.boolean().nullable().optional(), HasDummyIdentityNumber: z.boolean().optional(), IsTemporaryNorwegianIdentityNumber: z.boolean().optional()}); export const intectUnitType = z.object({RelevantCountries: z.array(intectCountry).optional(), StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectSalaryRecordPersistenceType = z.object({StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectFormula = z.object({Id: z.number().int().optional(), CompanyId: z.number().int().nullable().optional(), AccountId: z.number().int().nullable().optional(), Name: z.string().optional(), Description: z.string().optional(), Expression: z.string().optional(), FormulaOutputTypeId: z.number().int().optional()}); export const intectTemplateSalaryRecord = z.object({UnitType: intectUnitType.optional(), PersistenceType: intectSalaryRecordPersistenceType.optional(), Id: z.number().int().optional(), EmploymentTemplateId: z.number().int().optional(), Units: z.number().nullable().optional(), IsActive: z.boolean().optional(), Description: z.string().optional(), UnitTypeId: z.number().int().nullable().optional(), AmountPerUnit: z.number().nullable().optional(), Amount: z.number().nullable().optional(), BaseAmount: z.number().nullable().optional(), SalaryTypeId: z.number().int().optional(), PersistenceTypeId: z.number().int().optional(), SortOrder: z.number().int().optional(), Formula1Id: z.number().int().nullable().optional(), Formula2Id: z.number().int().nullable().optional(), Formula3Id: z.number().int().nullable().optional(), Formula1: intectFormula.optional(), Formula2: intectFormula.optional(), Formula3: intectFormula.optional()}); export const intectSenioritySupplement = z.object({Id: z.number().int().optional(), EmploymentTemplateId: z.number().int().optional(), SeniorityMonthsStart: z.number().int().nullable().optional(), SeniorityMonthsEnd: z.number().int().nullable().optional(), SupplementAmount: z.number().optional(), SupplementIntervalType: z.number().int().optional(), HourlyRate: z.number().nullable().optional(), BaseOnTotalWorkHours: z.boolean().optional()}); export const intectOvertimeSupplement = z.object({Id: z.number().int().optional(), EmploymentTemplateId: z.number().int().optional(), TotalHoursWorkedFrom: z.number().int().nullable().optional(), TotalHoursWorkedUntil: z.number().int().nullable().optional(), SupplementAmount: z.number().nullable().optional(), SupplementPercentage: z.number().nullable().optional(), OvertimeSupplementPrinciple: z.number().int().optional(), Description: z.string().optional()}); export const intectTemplateFeriefriAllocationRule = z.object({Id: z.number().int().optional(), TemplateBalanceConfigurationId: z.number().int().optional(), Months: z.number().int().nullable().optional(), TriggerDate: z.string().nullable().optional(), Percentage: z.number().nullable().optional(), Hours: z.number().nullable().optional()}); export const intectTemplateBalanceConfiguration = z.object({FeriefriAllocationRules: z.array(intectTemplateFeriefriAllocationRule).optional(), Id: z.number().int().optional(), EmploymentTemplateId: z.number().int().optional(), BalanceDefinitionId: z.number().int().optional(), EarningPercentage: z.number().nullable().optional(), BaseCalculationMethodId: z.number().int().nullable().optional(), EarningFixedAmount: z.number().nullable().optional(), EarningFixedAmountPrincipleId: z.number().int().nullable().optional(), PensionSharePercentage: z.number().nullable().optional(), PensionShareFixedAmount: z.number().nullable().optional(), DaysConversionPercentage: z.number().nullable().optional(), DaysEarnedPerPayslip: z.number().nullable().optional(), PayoutPercentage: z.number().nullable().optional(), SeniorityRequirementMonths: z.number().int().nullable().optional(), CustomBehaviorId: z.number().int().nullable().optional(), UnitsEarnedPerInterval: z.number().nullable().optional(), BalanceEarningIntervalId: z.number().int().nullable().optional(), TerminationMethodId: z.number().int().nullable().optional(), SpendingMethodId: z.number().int().nullable().optional(), SpendingReducesVacationBase: z.boolean().nullable().optional(), EarningBasedOnWeeklyHours: z.boolean().nullable().optional()}); export const intectSalaryCycleTranslation = z.object({Id: z.number().int().optional(), SalaryCycleId: z.number().int().optional(), LanguageId: z.number().int().optional(), Name: z.string().optional(), Language: z.lazy(() => intectLanguage.optional()), SalaryCycle: z.lazy(() => intectSalaryCycle.optional())}); export const intectLanguage: z.ZodType = z.object({Id: z.number().int().optional(), Name: z.string().optional(), Code: z.string().optional(), IsSupported: z.boolean().optional(), CultureCode: z.string().optional(), SalaryCycleTranslations: z.array(intectSalaryCycleTranslation).optional()}); export const intectCompanyLogo = z.object({Id: z.number().int().optional(), Logo: z.string().optional(), Company: z.lazy(() => intectCompany.optional())}); export const intectTimeEntryTypeConfiguration = z.object({Id: z.number().int().optional(), TimeEntryTypeId: z.number().int().optional(), SalaryTypeId: z.number().int().optional(), Description: z.string().optional(), Amount: z.number().nullable().optional(), AmountPerUnit: z.number().nullable().optional(), AppliesBefore: z.string().nullable().optional(), AppliesAfter: z.string().nullable().optional(), AppliesHolidays: z.boolean().optional(), AmountPerKilometer: z.number().nullable().optional(), EmploymentTemplateId: z.number().int().nullable().optional(), TargetUnitTypeId: z.number().int().nullable().optional(), ConversionFactor: z.number().nullable().optional(), UserEmploymentId: z.number().int().nullable().optional(), AppliesSaturdays: z.boolean().optional(), AppliesSundays: z.boolean().optional(), UseDefaultRate: z.boolean().optional(), ConversionFactorAffectsRate: z.boolean().optional(), LegacyFlexEarningPercentage: z.number().nullable().optional(), NewFlexEarningPercentage: z.number().nullable().optional(), PensionPercentage: z.number().nullable().optional(), AppliesMondays: z.boolean().optional(), AppliesTuesdays: z.boolean().optional(), AppliesWednesdays: z.boolean().optional(), AppliesThursdays: z.boolean().optional(), AppliesFridays: z.boolean().optional(), LimitToDepartmentId: z.number().int().nullable().optional(), LimitToDimension1ValueId: z.number().int().nullable().optional(), LimitToDimension2ValueId: z.number().int().nullable().optional(), LimitToDimension3ValueId: z.number().int().nullable().optional(), PensionPercentageEmployee: z.number().nullable().optional(), SeniorityMonthsFrom: z.number().int().nullable().optional(), SeniorityMonthsLessThan: z.number().int().nullable().optional()}); export const intectAgaRate = z.object({OrdinaryRate: z.number().optional(), AgricultureAndFisheryRate: z.number().optional(), StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectNorwayMunicipalityZone = z.object({Id: z.number().int().optional(), MunicipalityCode: z.number().int().optional(), MunicipalityName: z.string().optional(), County: z.string().optional(), Zone: z.string().optional(), DisplayName: z.string().optional(), AgaRate: intectAgaRate.optional()}); export const intectDepartment = z.object({Id: z.number().int().optional(), CompanyId: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), IsActive: z.boolean().optional(), EIncomeReference: z.string().optional(), ExternalReference: z.string().optional(), ManagerCompanyUserId: z.number().int().nullable().optional(), Municipality: z.number().int().nullable().optional(), Created: z.string().optional(), Updated: z.string().optional(), DimensionValues: z.array(intectDimensionValue).optional(), TimeEntryTypeConfigurations: z.array(intectTimeEntryTypeConfiguration).optional(), NorwayMunicipalityZone: intectNorwayMunicipalityZone.optional()}); export const intectIntegrationOperation = z.object({Id: z.number().int().optional(), IntegrationId: z.number().int().optional(), IsActive: z.boolean().optional(), LastRun: z.string().nullable().optional(), StatusCode: z.number().int().optional(), OperationId: z.number().int().optional(), TranslationKey: z.string().optional(), TranslationParametersList: z.string().optional(), LastSuccessfulRun: z.string().nullable().optional(), Integration: z.lazy(() => intectIntegration.optional()), TranslatedStatusMessage: z.string().optional()}); export const intectIntegrationConfiguration = z.object({Id: z.number().int().optional(), IntegrationId: z.number().int().optional(), Key: z.string().optional(), Value: z.string().optional(), Integration: z.lazy(() => intectIntegration.optional())}); export const intectExternalSystemCredential = z.object({IsPrivate: z.boolean().optional(), BackendKey: z.string().optional(), StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectIntegrationCredential = z.object({Id: z.number().int().optional(), IntegrationId: z.number().int().optional(), Key: z.string().optional(), Value: z.string().optional(), Integration: z.lazy(() => intectIntegration.optional()), ExternalSystemCredential: intectExternalSystemCredential.optional(), IsPrivate: z.boolean().optional()}); export const intectIntegration: z.ZodType = z.object({Id: z.number().int().optional(), CompanyId: z.number().int().optional(), ExternalSystemId: z.number().int().optional(), Name: z.string().optional(), Created: z.string().optional(), StatusCode: z.number().int().optional(), IsSalaryTypeMappingActive: z.boolean().optional(), IntegrationOperations: z.array(intectIntegrationOperation).optional(), IntegrationConfigurations: z.array(intectIntegrationConfiguration).optional(), IntegrationCredentials: z.array(intectIntegrationCredential).optional()}); export const intectExternalAccount = z.object({Id: z.number().int().optional(), CompanyId: z.number().int().optional(), AccountIdentifier: z.string().optional(), AccountNumber: z.string().optional(), AccountName: z.string().optional(), Description: z.string().optional(), IntegrationId: z.number().int().nullable().optional(), Company: z.lazy(() => intectCompany.optional()), Integration: intectIntegration.optional()}); export const intectCustomValue = z.object({Id: z.number().int().optional(), Locked: z.boolean().optional(), Name: z.string().optional(), AppliesFrom: z.string().optional(), Text: z.string().optional(), Value: z.number().nullable().optional(), CompanyId: z.number().int().nullable().optional(), UserEmploymentId: z.number().int().nullable().optional(), UserEmploymentTemplateId: z.number().int().nullable().optional(), Company: z.lazy(() => intectCompany.optional()), UserEmployment: z.lazy(() => intectUserEmployment.optional()), UserEmploymentTemplate: z.lazy(() => intectUserEmploymentTemplate.optional())}); export const intectSalaryBatchStatus = z.object({StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectGender = z.object({IsFemale: z.boolean().optional(), StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectAccountRole = z.object({StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectImportMappingColumn = z.object({Id: z.number().int().optional(), ImportMappingId: z.number().int().optional(), ColumnKey: z.string().optional(), UserColumnNumber: z.number().int().optional(), SalaryTypeId: z.number().int().nullable().optional(), BackendKey: z.string().optional()}); export const intectImportMapping = z.object({Id: z.number().int().optional(), CompanyId: z.number().int().nullable().optional(), Name: z.string().optional(), StartRow: z.number().int().optional(), CountryId: z.number().int().nullable().optional(), TypeId: z.number().int().optional(), AccountOnly: z.boolean().optional(), AccountId: z.number().int().nullable().optional(), ImportMappingColumns: z.array(intectImportMappingColumn).optional(), Account: z.lazy(() => intectAccount.optional())}); export const intectAccountType = z.object({StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectAccountStatus = z.object({StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectAccountInvoiceType = z.object({StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectPricePackage = z.object({PayslipPrice: z.number().nullable().optional(), MonthlyPrice: z.number().nullable().optional(), MonthlyPriceIsMinimum: z.boolean().optional(), SupportMinutes: z.number().int().nullable().optional(), IncludedModuleIds: z.string().optional()}); export const intectAccount: z.ZodType = z.object({Id: z.number().int().optional(), Name: z.string().optional(), StatusId: z.number().int().optional(), AccountTypeId: z.number().int().optional(), IsPublic: z.boolean().optional(), Description: z.string().optional(), DefaultInvoiceTypeId: z.number().int().optional(), MasterCompanyId: z.number().int().nullable().optional(), MasterCompanyEmail: z.string().optional(), MasterCompanyVATRegistrationNumber: z.string().optional(), MasterCompanyName: z.string().optional(), MasterCompanyAddress: z.string().optional(), MasterCompanyPostalCode: z.string().optional(), MasterCompanyCity: z.string().optional(), MasterCompanyCountry: z.string().optional(), MasterCompanyEAN: z.string().optional(), MasterCompanyAttention: z.string().optional(), Companies: z.array(z.lazy(() => intectCompany)).optional(), LoginHistories: z.array(z.lazy(() => intectLoginHistory)).optional(), MasterCompany: z.lazy(() => intectCompany.optional()), ImportMappings: z.array(intectImportMapping).optional(), AccountType: intectAccountType.optional(), AccountStatus: intectAccountStatus.optional(), DefaultInvoiceType: intectAccountInvoiceType.optional(), PricePackage: intectPricePackage.optional()}); export const intectLoginHistory: z.ZodType = z.object({Id: z.number().int().optional(), LoginTime: z.string().optional(), UserIp: z.string().optional(), Country: z.string().optional(), City: z.string().optional(), Region: z.string().optional(), PostalCode: z.string().optional(), IsSuccessful: z.boolean().optional(), UserName: z.string().optional(), UserId: z.number().int().nullable().optional(), CompanyId: z.number().int().nullable().optional(), UserAgent: z.string().optional(), BrowserName: z.string().optional(), BrowserVersion: z.string().optional(), OSName: z.string().optional(), OSVersion: z.string().optional(), OperationType: z.string().optional(), AccountId: z.number().int().nullable().optional(), IsProcessed: z.boolean().optional(), Comment: z.string().optional(), APIKey: z.string().optional(), Provider: z.string().optional(), Issuer: z.string().optional(), RoleId: z.number().int().nullable().optional(), CorrelationId: z.string().optional(), Company: z.lazy(() => intectCompany.optional()), User: z.lazy(() => intectUser.optional()), Account: intectAccount.optional()}); export const intectBillingPrinciple = z.object({StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectModule = z.object({InfoOnly: z.boolean().optional(), Price: z.number().optional(), BillingPrincipleId: z.number().int().optional(), FreeUntilDate: z.string().nullable().optional(), PackageLevel: z.number().int().optional(), RegisterUsageOnly: z.boolean().optional(), BillingPrinciple: intectBillingPrinciple.optional(), StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectCompanyModule = z.object({Id: z.number().int().optional(), ModuleId: z.number().int().optional(), LastActivated: z.string().optional(), CompanyId: z.number().int().optional(), ScheduledDeactivationDate: z.string().nullable().optional(), ActivatedUserId: z.number().int().nullable().optional(), ActivatedByUser: z.lazy(() => intectUser.optional()), Module: intectModule.optional()}); export const intectUser: z.ZodType = z.object({FullName: z.string().optional(), IdentityNumberFormatted: z.string().optional(), HasDummyIdentityNumber: z.boolean().optional(), IsTemporaryNorwegianIdentityNumber: z.boolean().optional(), Gender: intectGender.optional(), AccountRole: intectAccountRole.optional(), Id: z.number().int().optional(), FirstName: z.string().optional(), MiddleName: z.string().optional(), LastName: z.string().optional(), IdentityNumber: z.string().optional(), BankRegNo: z.string().optional(), BankAccountNo: z.string().optional(), Username: z.string().optional(), LanguageId: z.number().int().optional(), BicSwiftNo: z.string().optional(), IbanNo: z.string().optional(), AddressId: z.number().int().optional(), AccessPhrase: z.string().optional(), DateOfBirth: z.string().nullable().optional(), TelMobile: z.string().optional(), TelFixed: z.string().optional(), Email: z.string().optional(), DefaultInitials: z.string().optional(), DefaultCompanyId: z.number().int().nullable().optional(), UseGlobalEmail: z.boolean().optional(), IsFirstLogin: z.boolean().optional(), Preferences: z.string().optional(), Created: z.string().optional(), ShowUpdateNotification: z.boolean().optional(), ShowUrgentNotification: z.boolean().optional(), ShowPayslipTutorial: z.number().int().optional(), AccountId: z.number().int().nullable().optional(), AccountRoleId: z.number().int().nullable().optional(), IsFemale: z.boolean().nullable().optional(), SystemAliasId: z.number().int().optional(), IntectSupport: z.boolean().optional(), ShowFormulaConfigurationPage: z.boolean().optional(), ShowFormulaAssignments: z.boolean().optional(), IntectSupportAvailableSupportCenters: z.string().optional(), Address: intectAddress.optional(), CompanyUsers: z.array(intectCompanyUser).optional(), UserImage: intectUserImage.optional(), LoginHistories: z.array(intectLoginHistory).optional(), ActivatedCompanyModules: z.array(intectCompanyModule).optional(), CalculatedSalaryBatches: z.array(z.lazy(() => intectSalaryBatch)).optional(), NorwayTaxSystemResponseLines: z.array(z.lazy(() => intectNorwayTaxSystemResponseLine)).optional()}); export const intectPaymentMethod = z.object({RelevantCountries: z.array(intectCountry).optional(), StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectPaymentPlanType = z.object({IsSystemPaymentPlanType: z.boolean().optional(), RelevantCountries: z.array(intectCountry).optional(), StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectCurrency = z.object({StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectPayment = z.object({DestinationCurrency: intectCurrency.optional(), Id: z.number().int().optional(), PaymentBatchId: z.number().int().nullable().optional(), DueDate: z.string().nullable().optional(), PaymentDate: z.string().nullable().optional(), SalaryBatchId: z.number().int().nullable().optional(), UserEmploymentId: z.number().int().nullable().optional(), SalaryStatementId: z.number().int().nullable().optional(), RecipientNetsNo: z.string().optional(), RecipientBankRegNo: z.string().optional(), RecipientBankAccountNo: z.string().optional(), ReferenceIdentifier: z.string().optional(), OwnReferenceText: z.string().optional(), RecipientMessage: z.string().optional(), NetsTransferType: z.number().int().nullable().optional(), NetsInfoType: z.number().int().nullable().optional(), AdditionalInfo: z.string().optional(), CompanyId: z.number().int().optional(), Amount: z.number().optional(), CompanyBankRegNo: z.string().optional(), CompanyBankAccountNo: z.string().optional(), UserIdentityNumber: z.string().optional(), CollectiveAgreementCode: z.string().optional(), RecipientName: z.string().optional(), AutoDetermineBankAccount: z.boolean().optional(), NovemberFirstBatchId: z.number().int().nullable().optional(), PaymentProviderId: z.number().int().optional(), RecipientIban: z.string().optional(), RecipientBicSwift: z.string().optional(), DestinationCurrencyId: z.number().int().nullable().optional(), PensionProviderId: z.number().int().nullable().optional(), ExternalPaymentPartnerId: z.number().int().nullable().optional(), PaymentTypeId: z.number().int().optional(), QuarterNumber: z.number().int().nullable().optional(), QuarterYear: z.number().int().nullable().optional(), PensionPolicyNumber: z.string().optional(), PaymentPlanTypeId: z.number().int().nullable().optional(), PensionEmployeeShare: z.number().nullable().optional(), PensionEmployeeShareAmount: z.number().nullable().optional(), PensionCompanyShareAmount: z.number().nullable().optional(), PensionCompanyShare: z.number().nullable().optional(), PensionBaseAmount: z.number().nullable().optional(), PensionVoluntaryShare: z.number().nullable().optional(), PensionVoluntaryAmount: z.number().nullable().optional(), NewFlexPensionAmount: z.number().nullable().optional(), RecurringPaymentPlanId: z.number().int().nullable().optional(), Created: z.string().optional(), Updated: z.string().optional(), PaymentPlanRecipientId: z.number().int().nullable().optional(), KidNumber: z.string().optional(), PaymentPlanRecipient: z.lazy(() => intectPaymentPlanRecipient.optional())}); export const intectPaymentPlanRecipient: z.ZodType = z.object({PaymentMethod: intectPaymentMethod.optional(), PaymentPlanType: intectPaymentPlanType.optional(), Id: z.number().int().optional(), Name: z.string().optional(), PaymentPlanTypeId: z.number().int().optional(), VATRegistrationNumber: z.string().optional(), TelFixed: z.string().optional(), Email: z.string().optional(), AddressId: z.number().int().optional(), IsSystemRecipient: z.boolean().optional(), CountryId: z.number().int().nullable().optional(), CompanyId: z.number().int().nullable().optional(), AccountNumber: z.number().int().nullable().optional(), PaymentMethodId: z.number().int().optional(), ExternalIdentifier: z.string().optional(), BasePaymentPlanRecipientId: z.number().int().nullable().optional(), KIDReference: z.string().optional(), MainDeductionAmount: z.number().nullable().optional(), MainDeductionShare: z.number().nullable().optional(), MainDeductionAmountMin: z.number().nullable().optional(), MainDeductionAmountMax: z.number().nullable().optional(), AdditionalDeductionAmount: z.number().nullable().optional(), AdditionalDeductionShare: z.number().nullable().optional(), AdditionalDeductionAmountMin: z.number().nullable().optional(), AdditionalDeductionAmountMax: z.number().nullable().optional(), InsuranceDeductionAmount: z.number().nullable().optional(), AdditionalDeductionAccountOverride: z.number().int().nullable().optional(), AdditionalDeductionKIDReferenceOverride: z.string().optional(), InsuranceDeductionAccountOverride: z.number().int().nullable().optional(), InsuranceDeductionKIDReferenceOverride: z.string().optional(), ERPReference: z.string().optional(), AdditionalDeductionERPReferenceOverride: z.string().optional(), InsuranceDeductionERPReferenceOverride: z.string().optional(), Address: intectAddress.optional(), Payments: z.array(intectPayment).optional(), SalaryBatchRecords: z.array(z.lazy(() => intectSalaryBatchRecord)).optional()}); export const intectSalaryBatchRecord: z.ZodType = z.object({Id: z.number().int().optional(), SalaryTypeId: z.number().int().optional(), Amount: z.number().optional(), Units: z.number().nullable().optional(), Description: z.string().optional(), CompanyUserId: z.number().int().optional(), UnitTypeId: z.number().int().nullable().optional(), UserEmploymentId: z.number().int().optional(), SalaryRecordId: z.number().int().nullable().optional(), SalaryBatchId: z.number().int().optional(), AmountPerUnit: z.number().nullable().optional(), BaseAmount: z.number().nullable().optional(), SalaryStatementId: z.number().int().nullable().optional(), IncludeInPayment: z.boolean().optional(), EIncomeCategory: z.number().int().optional(), EIncomeSubCategory: z.number().int().optional(), SummaryCategoryId: z.number().int().nullable().optional(), PeriodFactor: z.number().nullable().optional(), FromDate: z.string().nullable().optional(), ToDate: z.string().nullable().optional(), SortOrder: z.number().int().optional(), SpecialIdentifier: z.string().optional(), BaseSalaryTypeId: z.number().int().nullable().optional(), ExternalReferenceSalaryType: z.string().optional(), ExternalReferenceEmployee: z.string().optional(), ExternalReferenceDepartment: z.string().optional(), InformationOnly: z.boolean().optional(), Dimension1Value: z.string().optional(), Dimension2Value: z.string().optional(), Dimension3Value: z.string().optional(), SulinalFieldNumber: z.string().optional(), IsReportableIncome: z.boolean().optional(), SkatteverketAgiFieldCode: z.number().int().nullable().optional(), LegacyFlexEarningPercentage: z.number().nullable().optional(), NewFlexEarningPercentage: z.number().nullable().optional(), PensionPercentage: z.number().nullable().optional(), DisplayDates: z.boolean().optional(), Dimension1ValueId: z.number().int().nullable().optional(), Dimension2ValueId: z.number().int().nullable().optional(), Dimension3ValueId: z.number().int().nullable().optional(), PensionPercentageEmployee: z.number().nullable().optional(), IsBaseSalary: z.boolean().optional(), TriggersSecondaryEmployeeTax: z.boolean().optional(), TriggersMainEmployeeTax: z.boolean().optional(), TriggersPublicPension: z.boolean().optional(), TriggersPrimaryVacation: z.boolean().optional(), HideOnPayslip: z.boolean().optional(), Formula1Expression: z.string().optional(), EvaluatedFormula1Expression: z.string().optional(), Formula2Expression: z.string().optional(), EvaluatedFormula2Expression: z.string().optional(), Formula3Expression: z.string().optional(), EvaluatedFormula3Expression: z.string().optional(), DeductionRecurringPaymentPlanId: z.number().int().nullable().optional(), PaymentPlanRecipientId: z.number().int().nullable().optional(), PaymentPlanRecipient: intectPaymentPlanRecipient.optional()}); export const intectSalaryBatchValidationIssue = z.object({Id: z.number().int().optional(), SalaryBatchId: z.number().int().optional(), UserEmploymentId: z.number().int().nullable().optional(), IsError: z.boolean().optional(), Description: z.string().optional(), EmployeeName: z.string().optional(), MessageKey: z.string().optional(), MessageParameters: z.string().optional()}); export const intectBalanceDefinition = z.object({Id: z.number().int().optional(), CompanyId: z.number().int().nullable().optional(), CountryId: z.number().int().nullable().optional(), Name: z.string().optional(), SpecialIdentifier: z.string().optional(), IsConfigurable: z.boolean().optional(), AmountEnabled: z.boolean().optional(), TaxEnabled: z.boolean().optional(), SecondaryAmountEnabled: z.boolean().optional(), TertiaryAmountEnabled: z.boolean().optional(), DaysEnabled: z.boolean().optional(), SecondaryDaysEnabled: z.boolean().optional(), HoursEnabled: z.boolean().optional(), BaseAmountEnabled: z.boolean().optional(), HasPeriods: z.boolean().optional(), SuspendedDaysEnabled: z.boolean().optional(), IsActive: z.boolean().optional(), BaseCalculationMethodId: z.number().int().nullable().optional(), BalanceEarningIntervalId: z.number().int().nullable().optional(), UnitsEarnedPerInterval: z.number().nullable().optional(), EarningFixedAmount: z.number().nullable().optional(), EarningPercentage: z.number().nullable().optional(), TerminationMethodId: z.number().int().nullable().optional(), SpendingMethodId: z.number().int().nullable().optional(), BalancePeriods: z.array(z.lazy(() => intectBalancePeriod)).optional()}); export const intectBalancePeriod: z.ZodType = z.object({Id: z.number().int().optional(), BalanceId: z.number().int().optional(), EarningStartDate: z.string().optional(), EarningEndDate: z.string().optional(), SpendingStartDate: z.string().optional(), SpendingEndDate: z.string().optional(), SpecialIdentifier: z.string().optional(), BalanceDefinition: intectBalanceDefinition.optional(), Name: z.string().optional()}); export const intectBalanceAdjustment = z.object({Id: z.number().int().optional(), UserEmploymentId: z.number().int().optional(), SalaryStatementId: z.number().int().nullable().optional(), Created: z.string().optional(), EffectPerDate: z.string().optional(), IsSpending: z.boolean().optional(), Amount: z.number().optional(), Days: z.number().optional(), Hours: z.number().optional(), TaxAmount: z.number().optional(), NetAmount: z.number().optional(), IsDraft: z.boolean().optional(), BalancePeriodId: z.number().int().nullable().optional(), BaseAmount: z.number().nullable().optional(), BalanceDefinitionId: z.number().int().optional(), SecondaryAmount: z.number().nullable().optional(), SecondaryDays: z.number().nullable().optional(), TertiaryAmount: z.number().optional(), SpecialIdentifier: z.string().optional(), BatchPayoutDate: z.string().optional(), IsReverted: z.boolean().optional(), DaysSuspended: z.number().nullable().optional(), SalaryBatchId: z.number().int().nullable().optional(), SalaryStatement: z.lazy(() => intectSalaryStatement.optional()), UserEmployment: z.lazy(() => intectUserEmployment.optional()), BalancePeriod: intectBalancePeriod.optional(), BalanceDefinition: intectBalanceDefinition.optional(), SalaryBatch: z.lazy(() => intectSalaryBatch.optional())}); export const intectSalaryTypeView = z.object({SalaryTypeId: z.number().int().optional(), BaseSalaryTypeId: z.number().int().nullable().optional(), CompanyId: z.number().int().optional(), LanguageId: z.number().int().optional(), CategoryId: z.number().int().nullable().optional(), Name: z.string().optional(), Description: z.string().optional(), DefaultPayslipText: z.string().optional(), IsVisible: z.boolean().optional(), IsActive: z.boolean().optional(), UnitTypeId: z.number().int().nullable().optional(), AmountPerUnit: z.number().nullable().optional(), Units: z.number().nullable().optional(), BaseAmount: z.number().nullable().optional(), Amount: z.number().nullable().optional(), EIncomeCategory: z.number().int().optional(), EIncomeSubCategory: z.number().int().optional(), SummaryCategoryId: z.number().int().nullable().optional(), SalaryTypeGroupId: z.number().int().nullable().optional(), ExternalReference: z.string().optional(), ImportExternalReference: z.string().optional(), IncludeInPayment: z.boolean().optional(), SortOrder: z.number().int().optional(), AllowEditUnitType: z.boolean().optional(), AllowEditBaseAmount: z.boolean().optional(), AllowEditGreatPrayerDayBehavior: z.boolean().optional(), NegativeDefault: z.boolean().optional(), DefaultPersistanceTypeId: z.number().int().nullable().optional(), StatisticsOnly: z.boolean().optional(), StatisticsFieldCode: z.string().optional(), SumFromIds: z.string().optional(), SumFromReverseSign: z.boolean().optional(), IncludeAlways: z.boolean().optional(), RelatesToIncomeType5: z.boolean().nullable().optional(), Explanation: z.string().optional(), TriggersOvertimeSupplement: z.boolean().nullable().optional(), SulinalFieldNumber: z.string().optional(), OverviewIndex: z.number().int().nullable().optional(), OverviewDisplayMode: z.number().int().nullable().optional(), Identifier: z.string().optional(), IsAdvanced: z.boolean().nullable().optional(), AccountTypeId: z.number().int().nullable().optional(), BalanceDefinitionId: z.number().int().nullable().optional(), BalanceBehavior: z.number().int().nullable().optional(), BaseName: z.string().optional(), BaseDescription: z.string().optional(), BasePayslipText: z.string().optional(), SkatteverketAgiFieldCode: z.number().int().nullable().optional(), DimensionDistributionOptionId: z.number().int().nullable().optional(), DisplayDates: z.boolean().optional(), PensionBehaviorId: z.number().int().optional(), Dimension1ValueId: z.number().int().nullable().optional(), Dimension2ValueId: z.number().int().nullable().optional(), Dimension3ValueId: z.number().int().nullable().optional(), FlexBehaviorId: z.number().int().nullable().optional(), GreatPrayerDayBehaviorId: z.number().int().optional(), ProhibitDimensionValues: z.boolean().optional(), SalaryIncomeTypeId: z.number().int().nullable().optional(), IsVariable: z.boolean().optional(), VatCode: z.string().optional(), IsBaseSalary: z.boolean().optional(), TriggersSecondaryEmployeeTax: z.boolean().optional(), TriggersMainEmployeeTax: z.boolean().optional(), TriggersPublicPension: z.boolean().optional(), TriggersPrimaryVacation: z.boolean().optional(), HideOnPayslip: z.boolean().optional(), TriggersMainEmployerTax: z.boolean().optional(), Formula1Id: z.number().int().nullable().optional(), Formula1Expression: z.string().optional(), Formula2Id: z.number().int().nullable().optional(), Formula2Expression: z.string().optional(), Formula3Id: z.number().int().nullable().optional(), Formula3Expression: z.string().optional(), Formula1Name: z.string().optional(), Formula2Name: z.string().optional(), Formula3Name: z.string().optional(), Formula1Description: z.string().optional(), Formula2Description: z.string().optional(), Formula3Description: z.string().optional(), BaseIdentifier: z.string().optional(), SalaryIncomeDescriptionId: z.number().int().nullable().optional(), IsUnionFeeBasis: z.boolean().optional(), IgnoreDateLimitation: z.boolean().optional(), IsVacationBasis: z.boolean().nullable().optional(), SalaryIncomeAdditionalInfoIds: z.string().optional(), SumUnitsFromIds: z.string().optional(), StatisticsPayClassificationId: z.number().int().nullable().optional()}); export const intectTimeEntryTypeTranslation = z.object({Id: z.number().int().optional(), TimeEntryTypeId: z.number().int().optional(), LanguageId: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), DefaultPayslipText: z.string().optional(), StatusId: z.number().int().optional(), Comment: z.string().optional()}); export const intectTimeEntryTypeCountryMapping = z.object({Id: z.number().int().optional(), BaseTimeEntryTypeId: z.number().int().optional(), CountryId: z.number().int().optional(), TimeEntryType: z.lazy(() => intectTimeEntryType.optional())}); export const intectTimeEntryType: z.ZodType = z.object({Id: z.number().int().optional(), BaseTimeEntryTypeId: z.number().int().nullable().optional(), CompanyId: z.number().int().nullable().optional(), Name: z.string().optional(), Description: z.string().optional(), IsActive: z.boolean().nullable().optional(), UnitTypeId: z.number().int().nullable().optional(), ExternalReference: z.string().optional(), SortOrder: z.number().int().nullable().optional(), DefaultPayslipText: z.string().optional(), AllowEditUnitType: z.boolean().nullable().optional(), IsIllness: z.boolean().nullable().optional(), InternalReferenceId: z.number().int().nullable().optional(), Identifier: z.string().optional(), StatisticsFieldCode: z.string().optional(), MandatoryDescription: z.boolean().nullable().optional(), IsReimbursable: z.boolean().nullable().optional(), BaseTimeEntryType: z.lazy(() => intectTimeEntryType.optional()), TimeEntryTypeTranslations: z.array(intectTimeEntryTypeTranslation).optional(), TimeEntryTypeConfigurations: z.array(intectTimeEntryTypeConfiguration).optional(), TimeEntryTypeCountryMappings: z.array(intectTimeEntryTypeCountryMapping).optional()}); export const intectTimeEntryStatus = z.object({StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectTimeEntryRecord = z.object({ManagerName: z.string().optional(), TemplateName: z.string().optional(), UnitType: intectUnitType.optional(), Status: intectTimeEntryStatus.optional(), EmployeeName: z.string().optional(), DepartmentName: z.string().optional(), Title: z.string().optional(), DepartmentId: z.number().int().nullable().optional(), IsCalculated: z.boolean().optional(), Id: z.number().int().optional(), UserEmploymentId: z.number().int().optional(), EntryDate: z.string().optional(), TimeEntryTypeId: z.number().int().optional(), Units: z.number().optional(), UnitTypeId: z.number().int().optional(), Description: z.string().optional(), SalaryPeriodId: z.number().int().optional(), StatusId: z.number().int().optional(), Created: z.string().optional(), RejectionReason: z.string().optional(), SalaryRecordId: z.number().int().nullable().optional(), SalaryStatementId: z.number().int().nullable().optional(), KilometersDriven: z.number().nullable().optional(), StartTime: z.string().nullable().optional(), EndTime: z.string().nullable().optional(), Dimension1Value: z.string().optional(), Dimension2Value: z.string().optional(), Dimension3Value: z.string().optional(), EndDate: z.string().nullable().optional(), CalculatedFromRecordId: z.number().int().nullable().optional(), ExternalIdentifier: z.string().optional(), CalculatedPayout: z.number().nullable().optional(), CalculatedPayoutKilometers: z.number().nullable().optional(), AmountPerUnit: z.number().nullable().optional(), ApprovedUserId: z.number().int().nullable().optional(), RejectedUserId: z.number().int().nullable().optional(), Dimension1ValueId: z.number().int().nullable().optional(), Dimension2ValueId: z.number().int().nullable().optional(), Dimension3ValueId: z.number().int().nullable().optional(), PensionPercentageEmployee: z.number().nullable().optional(), Updated: z.string().optional(), IsProcessing: z.boolean().optional(), TimeEntryRecordSalaryRecordMappings: z.array(z.lazy(() => intectTimeEntryRecordSalaryRecordMapping)).optional()}); export const intectTimeEntryRecordSalaryRecordMapping: z.ZodType = z.object({Id: z.number().int().optional(), TimeEntryRecordId: z.number().int().optional(), SalaryRecordId: z.number().int().optional(), ContributedUnits: z.number().nullable().optional(), SalaryRecord: z.lazy(() => intectSalaryRecord.optional()), TimeEntryRecord: intectTimeEntryRecord.optional()}); export const intectLedgerStatus = z.object({StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectSalaryLedger = z.object({Status: intectLedgerStatus.optional(), Id: z.number().int().optional(), CompanyId: z.number().int().optional(), Name: z.string().optional(), OwnerUserId: z.number().int().optional(), StatusId: z.number().int().optional(), SalaryRecords: z.array(z.lazy(() => intectSalaryRecord)).optional()}); export const intectSalaryRecordAdditionalInfo = z.object({Id: z.number().int().optional(), SalaryRecordId: z.number().int().optional(), Created: z.string().optional(), Updated: z.string().optional(), VehicleKm: z.number().nullable().optional(), VehicleNumberOfJourneys: z.number().int().nullable().optional(), VehicleHomeWorkKm: z.number().nullable().optional(), VehicleListPrice: z.number().nullable().optional(), VehicleRegistrationNumber: z.string().optional(), VehicleCarPool: z.boolean().nullable().optional(), VehicleOtherFreeUse: z.boolean().nullable().optional(), VehicleFreeUseOutsideStandardRule: z.boolean().nullable().optional(), VehiclePersonTypeId: z.number().int().nullable().optional(), BenefitEarningsStartDate: z.string().nullable().optional(), BenefitEarningsEndDate: z.string().nullable().optional(), BeneficiaryUsTaxResidentFirst60Days: z.boolean().nullable().optional(), NetSalaryVehicleListPrice: z.number().nullable().optional(), NetSalaryVehicleRegistrationNumber: z.string().optional(), NetSalaryVehicleCarPool: z.boolean().nullable().optional(), ForeignArtistYear: z.number().int().nullable().optional(), ForeignArtistGrossUpBasisAmount: z.number().nullable().optional(), ForeignArtistTaxDeductedAmount: z.number().int().nullable().optional(), TaxResidentCountryCode: z.string().optional(), CountryOfEarningsCode: z.string().optional(), EarnedOnSupportVessel: z.boolean().optional(), EarnedOnContinentalShelf: z.boolean().nullable().optional(), IncomeRelatedInformationId: z.number().int().nullable().optional(), PaymentPlanRecipientId: z.number().int().nullable().optional(), AccountNumber: z.number().int().nullable().optional(), KIDReference: z.string().optional(), ERPReference: z.string().optional(), SalaryRecord: z.lazy(() => intectSalaryRecord.optional())}); export const intectSalaryRecord: z.ZodType = z.object({SalaryTypeView: intectSalaryTypeView.optional(), UnitType: intectUnitType.optional(), PersistenceType: intectSalaryRecordPersistenceType.optional(), Id: z.number().int().optional(), Units: z.number().nullable().optional(), IsActive: z.boolean().optional(), StartDate: z.string().nullable().optional(), EndDate: z.string().nullable().optional(), Description: z.string().optional(), UserEmploymentId: z.number().int().optional(), UnitTypeId: z.number().int().nullable().optional(), AmountPerUnit: z.number().nullable().optional(), Amount: z.number().nullable().optional(), BaseAmount: z.number().nullable().optional(), SalaryTypeId: z.number().int().optional(), SortOrder: z.number().int().nullable().optional(), TimeEntryTypeId: z.number().int().nullable().optional(), PersistenceTypeId: z.number().int().optional(), Dimension1Value: z.string().optional(), Dimension2Value: z.string().optional(), Dimension3Value: z.string().optional(), ExternalIdentifier: z.string().optional(), LegacyFlexEarningPercentage: z.number().nullable().optional(), NewFlexEarningPercentage: z.number().nullable().optional(), PensionPercentage: z.number().nullable().optional(), SalaryStatementId: z.number().int().nullable().optional(), Dimension1ValueId: z.number().int().nullable().optional(), Dimension2ValueId: z.number().int().nullable().optional(), Dimension3ValueId: z.number().int().nullable().optional(), Created: z.string().optional(), PensionPercentageEmployee: z.number().nullable().optional(), InternalReference: z.string().optional(), LedgerId: z.number().int().nullable().optional(), Formula1Id: z.number().int().nullable().optional(), Formula2Id: z.number().int().nullable().optional(), Formula3Id: z.number().int().nullable().optional(), Updated: z.string().optional(), LicensePlate: z.string().optional(), ListPrice: z.number().int().nullable().optional(), PaymentPlanRecipientId: z.number().int().nullable().optional(), AccountNumber: z.number().int().nullable().optional(), KIDReference: z.string().optional(), ERPReference: z.string().optional(), TimeEntryType: intectTimeEntryType.optional(), SalaryStatement: z.lazy(() => intectSalaryStatement.optional()), TimeEntryRecordSalaryRecordMappings: z.array(intectTimeEntryRecordSalaryRecordMapping).optional(), SalaryLedger: intectSalaryLedger.optional(), Formula1: intectFormula.optional(), Formula2: intectFormula.optional(), Formula3: intectFormula.optional(), SalaryRecordAdditionalInfoes: z.array(intectSalaryRecordAdditionalInfo).optional()}); export const intectSalaryStatement: z.ZodType = z.object({PayoutDateDerived: z.string().nullable().optional(), VacationProvider: intectVacationProvider.optional(), IsFinalized: z.boolean().optional(), TypeId: z.number().int().optional(), Description: z.string().optional(), Id: z.number().int().optional(), SalaryBatchId: z.number().int().optional(), PeriodFrom: z.string().optional(), PeriodTo: z.string().optional(), PayoutAmount: z.number().nullable().optional(), AtpEmployee: z.number().optional(), AtpEmployer: z.number().optional(), UserEmploymentId: z.number().int().optional(), TaxAmount: z.number().optional(), AmbAmount: z.number().optional(), PensionProviderId: z.number().int().nullable().optional(), PensionEmployeeShare: z.number().nullable().optional(), PensionEmployeeShareAmount: z.number().optional(), PensionCompanyShare: z.number().nullable().optional(), PensionCompanyShareAmount: z.number().optional(), VacationProviderId: z.number().int().nullable().optional(), VacationMoneyEarnedGross: z.number().optional(), VacationMoneyEarnedNet: z.number().nullable().optional(), VacationDaysEarned: z.number().optional(), UserFullName: z.string().optional(), UserIdentityNumber: z.string().optional(), UserAddressId: z.number().int().nullable().optional(), PensionBaseAmount: z.number().optional(), VacationDaysSpent: z.number().optional(), VacationBaseAmount: z.number().optional(), PrimaryIncomeAmount: z.number().optional(), HoursWorked: z.number().optional(), KmEntered: z.number().optional(), AppliedTaxDeduction: z.number().optional(), TaxCardRemainingFreeAmount: z.number().nullable().optional(), TaxCardTypeId: z.number().int().optional(), TaxRate: z.number().optional(), VacationDaysSubtracted: z.number().optional(), TaxBaseAmount: z.number().optional(), AmbBaseAmount: z.number().optional(), VacationTaxDeduction: z.number().nullable().optional(), TaxCardFreeAmountReduction: z.number().nullable().optional(), ActualFromDate: z.string().optional(), ActualEndDate: z.string().optional(), IsTermination: z.boolean().optional(), TerminationTotalVacationMoneyGross: z.number().nullable().optional(), TerminationTotalVacationMoneyNet: z.number().nullable().optional(), TerminationYearBeforeLastVacationMoneyGross: z.number().nullable().optional(), TerminationYearBeforeLastVacationMoneyNet: z.number().nullable().optional(), TerminationYearBeforeLastVacationRemainingDays: z.number().nullable().optional(), TerminationLastYearVacationMoneyGross: z.number().nullable().optional(), TerminationLastYearVacationMoneyNet: z.number().nullable().optional(), TerminationLastYearVacationRemainingDays: z.number().nullable().optional(), TerminationCurrentYearVacationMoneyGross: z.number().nullable().optional(), TerminationCurrentYearVacationMoneyNet: z.number().nullable().optional(), TerminationCurrentYearVacationRemainingDays: z.number().nullable().optional(), VacationTaxReduction: z.number().optional(), VacationAmbAmount: z.number().optional(), FFHoursEarned: z.number().optional(), FFHoursSpent: z.number().optional(), RecipientBankRegNo: z.string().optional(), RecipientBankAccountNo: z.string().optional(), RecipientBicSwiftNo: z.string().optional(), RecipientIbanNo: z.string().optional(), IllnessCompensationAtpAmountEmployee: z.number().nullable().optional(), DepartmentId: z.number().int().nullable().optional(), OvertimeHours: z.number().optional(), IllnessHours: z.number().optional(), TaxableIncome: z.number().optional(), VacationSupplementEarned: z.number().nullable().optional(), SummaryAmountSalary: z.number().nullable().optional(), SummaryAmountSupplements: z.number().nullable().optional(), SummaryAmountTaxes: z.number().nullable().optional(), SummaryAmountAdjustments: z.number().nullable().optional(), FlexAmountEarned: z.number().optional(), FlexAmountReduced: z.number().optional(), SummaryAmountPension: z.number().nullable().optional(), VacationAmbBaseAmount: z.number().optional(), TaxFreeIncome: z.number().nullable().optional(), TravelCompensation: z.number().optional(), PensionCompanyTaxAmount: z.number().nullable().optional(), PensionEmployeeTaxAmount: z.number().nullable().optional(), ReportableNonTaxedIncome: z.number().nullable().optional(), DownloadToken: z.string().optional(), DownloadTokenExpiryTime: z.string().nullable().optional(), VacationPayoutEarnedLastYear: z.number().nullable().optional(), VacationPayoutEarnedCurrentYear: z.number().nullable().optional(), VacationBalancePeriodId: z.number().int().nullable().optional(), VacationPayoutAmountGross: z.number().nullable().optional(), VacationPayoutAmountNet: z.number().nullable().optional(), AdditionalVacationDaysEarned: z.number().nullable().optional(), AdditionalVacationDaysSpent: z.number().nullable().optional(), AdditionalVacationEarnedGross: z.number().nullable().optional(), AmExemptIncome: z.number().optional(), IsDummyOnAccountPayslip: z.boolean().optional(), SocialTaxAmount: z.number().nullable().optional(), MaternityProgramId: z.number().int().nullable().optional(), MaternityProgramAmount: z.number().nullable().optional(), PrimaryIncomeAmountFullPeriod: z.number().nullable().optional(), DegreeOfEmployment: z.number().nullable().optional(), VacationDegreeOfEmployment: z.number().nullable().optional(), PrimaryIncomeAmountWithBonus: z.number().optional(), TaxPaidNo: z.number().optional(), TaxBasisNo: z.number().optional(), PositiveTaxFreeIncome: z.number().nullable().optional(), NegativeTaxFreeIncome: z.number().nullable().optional(), GrossReductionAmount: z.number().nullable().optional(), NewFlexAmountEarned: z.number().optional(), CustomBalancesAmountEarned: z.number().optional(), PositiveTaxableIncome: z.number().nullable().optional(), ForeignPensionAmount: z.number().nullable().optional(), DomesticPensionAmount: z.number().nullable().optional(), StudentInsuranseAmount: z.number().optional(), NewFlexPensionAmount: z.number().nullable().optional(), ReportingPensionCompanyShareAmount: z.number().nullable().optional(), ReportingPensionEmployeeShareAmount: z.number().nullable().optional(), Created: z.string().optional(), Updated: z.string().optional(), SocialTaxFullAmount: z.number().nullable().optional(), TaxableBenefits: z.number().nullable().optional(), SummaryAmountReimbursments: z.number().nullable().optional(), SummaryAmountExpenses: z.number().nullable().optional(), SummaryAmountOtherCreditorsDeductions: z.number().nullable().optional(), SummaryAmountAttachmentOfEarningDeductions: z.number().nullable().optional(), SummaryAmountChildCareDeductions: z.number().nullable().optional(), DeductionAttachmentOfEarningRemainingAmount: z.number().nullable().optional(), DeductionOtherCreditorsRemainingAmount: z.number().nullable().optional(), TaxTable: z.string().optional(), AdditionalVacationPayoutEarnedLastYear: z.number().nullable().optional(), AdditionalVacationPayoutEarnedCurrentYear: z.number().nullable().optional(), VoluntaryExtraTax: z.number().nullable().optional(), SummaryAmountUnionDeductionsFull: z.number().nullable().optional(), SummaryAmountUnionDeductions: z.number().nullable().optional(), SummaryAmountUnionDeductionCurrentBalance: z.number().nullable().optional(), SummaryAmountDeductions: z.number().nullable().optional(), SubUnitId: z.number().int().nullable().optional(), SalaryBatchRecords: z.array(intectSalaryBatchRecord).optional(), UserEmployment: z.lazy(() => intectUserEmployment.optional()), BalanceAdjustments: z.array(intectBalanceAdjustment).optional(), SalaryRecords: z.array(intectSalaryRecord).optional(), SalaryBatch: z.lazy(() => intectSalaryBatch.optional())}); export const intectSalaryBatch: z.ZodType = z.object({Status: intectSalaryBatchStatus.optional(), IsDraft: z.boolean().optional(), IsLocked: z.boolean().optional(), IsFinalized: z.boolean().optional(), Id: z.number().int().optional(), CompanyId: z.number().int().optional(), SalaryPeriodId: z.number().int().optional(), Created: z.string().optional(), StatusId: z.number().int().optional(), Approved: z.string().nullable().optional(), RejectionReason: z.string().optional(), Rejected: z.string().nullable().optional(), EIncomeTransferDate: z.string().nullable().optional(), Message: z.string().optional(), PayoutDate: z.string().optional(), HasErrors: z.boolean().optional(), HasWarnings: z.boolean().optional(), NetsPaymentsProcessingDate: z.string().nullable().optional(), IsTermination: z.boolean().optional(), EIncomeZeroReport: z.boolean().optional(), SalaryBatchNumber: z.number().int().optional(), PaymentMethodSalary: z.number().int().optional(), PaymentMethodTax: z.number().int().optional(), PaymentMethodPension: z.number().int().optional(), PayslipsArchived: z.boolean().optional(), LimitToSpecificEmployees: z.boolean().optional(), EBoksDeliveryEnabled: z.boolean().optional(), PayoutAllFlex: z.boolean().optional(), SpecifiedEmployees: z.string().optional(), HasNemKontoPayments: z.boolean().optional(), PaymentMethodPublicPension: z.number().int().optional(), PaymentMethodVacationProvider: z.number().int().optional(), ToArchive: z.boolean().optional(), Finalized: z.string().nullable().optional(), AllowPreliminaryPayslips: z.boolean().optional(), PackageLevelWhenFinalized: z.number().int().nullable().optional(), IsAutomated: z.boolean().optional(), PayoutNewFlex: z.boolean().optional(), ApprovedUserId: z.number().int().nullable().optional(), CreatedUserId: z.number().int().nullable().optional(), FinalizedUserId: z.number().int().nullable().optional(), RejectedUserId: z.number().int().nullable().optional(), FromDateOverride: z.string().nullable().optional(), ToDateOverride: z.string().nullable().optional(), FinalizationGuid: z.string().optional(), LastCalculatedUserId: z.number().int().nullable().optional(), PaymentMethodMaternityProgram: z.number().int().optional(), AutoFinalize: z.boolean().optional(), DispatchDate: z.string().optional(), ToDispatch: z.boolean().optional(), Updated: z.string().optional(), TypeId: z.number().int().optional(), PayoutVacationPay: z.boolean().optional(), DeductVacationPay: z.boolean().optional(), PayoutSeniorVacationPay: z.boolean().optional(), DeductSeniorVacationPay: z.boolean().optional(), TaxSystemResponseReruns: z.number().int().optional(), EIncomeReversalDate: z.string().nullable().optional(), EIncomeRerunRequested: z.boolean().optional(), CalculatedByUser: intectUser.optional(), SalaryPeriod: intectSalaryPeriod.optional(), SalaryBatchRecords: z.array(intectSalaryBatchRecord).optional(), SalaryBatchValidationIssues: z.array(intectSalaryBatchValidationIssue).optional(), SalaryStatements: z.array(intectSalaryStatement).optional()}); export const intectNorwayTaxSystemResponseLine: z.ZodType = z.object({Id: z.number().int().optional(), ParentRequestId: z.number().int().nullable().optional(), ExportFeedbackStatusId: z.number().int().nullable().optional(), SentUserId: z.number().int().optional(), SubmissionDate: z.string().optional(), InternalReportId: z.string().optional(), ExternalReportId: z.string().optional(), IsError: z.boolean().optional(), ResponseCode: z.string().optional(), ResponseText: z.string().optional(), SalaryBatchId: z.number().int().nullable().optional(), AmeldingType: z.number().int().optional(), CompanyId: z.number().int().optional(), ResponseReruns: z.number().int().nullable().optional(), ReplacedById: z.number().int().nullable().optional(), DialogId: z.string().optional(), IdempotencyKey: z.string().nullable().optional(), ChildNorwayTaxSystemResponseLine: z.array(z.lazy(() => intectNorwayTaxSystemResponseLine)).optional(), ParentNorwayTaxSystemResponseLine: z.lazy(() => intectNorwayTaxSystemResponseLine.optional()), SalaryBatch: intectSalaryBatch.optional(), User: intectUser.optional(), Company: z.lazy(() => intectCompany.optional()), ReplacingNorwayTaxSystemResponseLine: z.array(z.lazy(() => intectNorwayTaxSystemResponseLine)).optional(), ReplacedByNorwayTaxSystemResponseLine: z.lazy(() => intectNorwayTaxSystemResponseLine.optional())}); export const intectKeycloakConfigClaimmapping = z.object({Id: z.number().int().optional(), KeycloakConfigId: z.number().int().optional(), ClaimType: z.string().optional(), ClaimPath: z.string().optional(), ClaimValue: z.string().optional(), RoleId: z.number().int().optional()}); export const intectKeycloakConfig = z.object({Id: z.number().int().optional(), CompanyId: z.number().int().optional(), Issuer: z.string().optional(), JwksUri: z.string().optional(), Audience: z.string().optional(), Realm: z.string().optional(), IntectUrl: z.string().optional(), AutoCreateUser: z.boolean().optional(), AutoCreateServiceAccount: z.boolean().optional(), Company: z.lazy(() => intectCompany.optional()), KeycloakConfigClaimmappings: z.array(intectKeycloakConfigClaimmapping).optional()}); export const intectPermission = z.object({Id: z.number().int().optional(), InternalKey: z.string().optional(), CompanyRolePermissions: z.array(z.lazy(() => intectCompanyRolePermission)).optional()}); export const intectCompanyRolePermission: z.ZodType = z.object({Id: z.number().int().optional(), CompanyId: z.number().int().optional(), RoleId: z.number().int().optional(), PermissionId: z.number().int().optional(), IsGranted: z.boolean().optional(), Company: z.lazy(() => intectCompany.optional()), Permission: intectPermission.optional()}); export const intectSubUnit = z.object({Id: z.number().int().optional(), CompanyId: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), IsActive: z.boolean().optional(), VATRegistrationNumber: z.string().optional(), Municipality: z.number().int().nullable().optional(), Created: z.string().optional(), Updated: z.string().optional(), NorwayMunicipalityZone: intectNorwayMunicipalityZone.optional()}); export const intectCompanyType = z.object({StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectCompanyStatus = z.object({StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectCompany: z.ZodType = z.object({Id: z.number().int().optional(), Name: z.string().optional(), StatusId: z.number().int().optional(), VATRegistrationNumber: z.string().optional(), AccountId: z.number().int().nullable().optional(), Email1: z.string().optional(), Email2: z.string().optional(), DefaultLanguageId: z.number().int().optional(), AddressId: z.number().int().optional(), CompanyTypeId: z.number().int().optional(), SecondaryVATRegistrationNumber: z.string().optional(), MainContactCompanyUserId: z.number().int().nullable().optional(), BankRegNo: z.string().optional(), BankAccountNo: z.string().optional(), BicSwiftNo: z.string().optional(), IbanNo: z.string().optional(), ExternalSystemComment: z.string().optional(), PaymentMethodSalary: z.number().int().optional(), PaymentMethodPension: z.number().int().optional(), PaymentMethodTax: z.number().int().optional(), ExternalSystemId: z.number().int().nullable().optional(), TelMobile: z.string().optional(), TelFixed: z.string().optional(), KnowsIntectFrom: z.string().optional(), ExternalAuthentication: z.string().optional(), HasNetsAgreement: z.boolean().optional(), Created: z.string().optional(), EmployersAssociationNumber: z.string().optional(), StaticsReportsYearly: z.boolean().optional(), StatisticsRecipientId: z.number().int().nullable().optional(), SubscribeToNewsLetter: z.boolean().optional(), EstablishedDate: z.string().nullable().optional(), EmployeeCountEstimate: z.string().optional(), Preferences: z.string().optional(), InvoiceIdentifier: z.string().optional(), PaymentMethodPublicPension: z.number().int().optional(), PaymentMethodVacationProvider: z.number().int().optional(), InvoiceEmail: z.string().optional(), HasAcceptedTerms: z.boolean().optional(), CountryId: z.number().int().optional(), CurrentPackageLevel: z.number().int().optional(), ScheduledPackageId: z.number().int().nullable().optional(), ScheduledPackageDate: z.string().nullable().optional(), IndustryCode: z.string().optional(), AccountComment: z.string().optional(), BankId: z.number().int().nullable().optional(), IndustryOrganizationId: z.number().int().nullable().optional(), InvoiceTypeId: z.number().int().optional(), DefaultTaxTableId: z.number().int().nullable().optional(), AllowAutoDetermineBankAccount: z.boolean().optional(), SystemAliasId: z.number().int().optional(), PaymentMethodMaternityProgram: z.number().int().optional(), BankAccountWithholdingTax: z.string().optional(), BankGuarantee: z.boolean().optional(), PensionProviderName: z.string().optional(), NorwayTypeOfBusinessId: z.number().int().optional(), BankAccountNorway: z.string().optional(), PensionProviderOrgNo: z.string().optional(), BankCustomerNumber: z.string().optional(), UseSENumberForNetsAgreement: z.boolean().optional(), ExpenseId: z.string().nullable().optional(), ISOAgreementNumber: z.string().optional(), ISOSignerID: z.string().optional(), ISOUseCompanyCVR: z.boolean().optional(), HalfTaxMonth: z.number().int().nullable().optional(), ISOCustomerNumber: z.string().optional(), ISODivisionCode: z.string().optional(), EmployeeAnnualHoursNO: z.number().nullable().optional(), IsFNOReportEnabled: z.boolean().optional(), AltinnId: z.string().optional(), IsItinerant: z.boolean().optional(), Language: intectLanguage.optional(), Address: intectAddress.optional(), CompanyLogo: intectCompanyLogo.optional(), Departments: z.array(intectDepartment).optional(), ExternalAccounts: z.array(intectExternalAccount).optional(), Holidays: z.array(z.lazy(() => intectHoliday)).optional(), DimensionValues: z.array(intectDimensionValue).optional(), CustomValues: z.array(intectCustomValue).optional(), NorwayTaxSystemResponseLines: z.array(intectNorwayTaxSystemResponseLine).optional(), KeycloakConfigs: z.array(intectKeycloakConfig).optional(), CompanyRolePermissions: z.array(intectCompanyRolePermission).optional(), SubUnits: z.array(intectSubUnit).optional(), CompanyType: intectCompanyType.optional(), CompanyStatus: intectCompanyStatus.optional(), Country: intectCountry.optional(), HasIdP: z.boolean().optional(), PricePackage: intectPricePackage.optional(), InvoiceType: intectAccountInvoiceType.optional(), RequiresTwoFactorAuthentication: z.boolean().optional()}); export const intectHoliday: z.ZodType = z.object({Id: z.number().int().optional(), Date: z.string().optional(), ConsiderHoliday: z.boolean().optional(), DisablesBankPayments: z.boolean().optional(), CountryId: z.number().int().nullable().optional(), CompanyId: z.number().int().nullable().optional(), UserEmploymentTemplateId: z.number().int().nullable().optional(), Description: z.string().optional(), Created: z.string().nullable().optional(), Company: intectCompany.optional(), UserEmploymentTemplate: z.lazy(() => intectUserEmploymentTemplate.optional())}); export const intectPensionPolicyValidation = z.object({Regex: z.object({}).optional(), ViolationKey: z.string().optional(), StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectPaymentPlanProvider = z.object({NetsNo: z.string().optional(), DefaultBaseCalculationMethodId: z.number().int().optional(), NetsInfoType: z.number().int().optional(), PolicyNumberRequired: z.boolean().optional(), AccountNumberRequired: z.boolean().optional(), PolicyNumberLabelOverride: z.string().optional(), CountryId: z.number().int().optional(), PensionPolicyValidation: intectPensionPolicyValidation.optional(), IsDummyForBankAccount: z.boolean().optional(), RequiredNetsRecordTypes: z.array(z.number().int()).optional(), SupportedPaymentPlanTypes: z.array(z.number().int()).optional(), PolicyNumberPlace: z.enum(["CollectiveAgreementCode", "ReferenceIdentifier", "DepartmentNumber"]).optional(), StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectBaseCalculationMethod = z.object({IsPensionBase: z.boolean().optional(), IsFlexBase: z.boolean().optional(), IsExtraVacationHoursBase: z.boolean().optional(), IsCustomBalanceBase: z.boolean().optional(), StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectRecurringPaymentPlan = z.object({PaymentPlanProvider: intectPaymentPlanProvider.optional(), PensionBaseCalculationMethod: intectBaseCalculationMethod.optional(), IsBalanceActive: z.boolean().optional(), IsDanishOrGreenlandicPaymentPlanType: z.boolean().optional(), IsNorwayPaymentPlanType: z.boolean().optional(), FixedAmountIsPerWorkDay: z.boolean().optional(), Id: z.number().int().optional(), UserEmploymentId: z.number().int().nullable().optional(), UserEmploymentTemplateId: z.number().int().nullable().optional(), BaseCalculationMethodId: z.number().int().optional(), EmployeeShare: z.number().nullable().optional(), CompanyShare: z.number().nullable().optional(), PaymentPlanProviderId: z.number().int().nullable().optional(), PolicyNumber: z.string().optional(), EmployeeAmount: z.number().nullable().optional(), CompanyAmount: z.number().nullable().optional(), ProviderBankRegNo: z.string().optional(), ProviderBankAccountNo: z.string().optional(), DueDateDelayDays: z.number().int().nullable().optional(), StartDate: z.string().nullable().optional(), EndDate: z.string().nullable().optional(), PaymentPlanTypeId: z.number().int().optional(), SortOrder: z.number().int().optional(), VoluntaryShare: z.number().nullable().optional(), VoluntaryAmount: z.number().nullable().optional(), SeniorityRequirementMonths: z.number().int().nullable().optional(), AgeRequirementFrom: z.number().int().nullable().optional(), AgeRequirementUntil: z.number().int().nullable().optional(), PaymentPlanRecipientId: z.number().int().nullable().optional(), Reference: z.string().optional(), StartingBalance: z.number().nullable().optional(), CurrentBalance: z.number().nullable().optional(), FixedAmountBehavior: z.number().int().optional(), EnableAutoAdjust: z.boolean().optional(), PaymentPlanRecipient: intectPaymentPlanRecipient.optional()}); export const intectRateInterval = z.object({Id: z.number().int().optional(), RateIntervalSetId: z.number().int().optional(), SalaryTypeId: z.number().int().optional(), SeniorityFrom: z.number().int().nullable().optional(), SeniorityLessThan: z.number().int().nullable().optional(), AgeFrom: z.number().int().nullable().optional(), AgeLessThan: z.number().int().nullable().optional(), WorkHoursFrom: z.number().nullable().optional(), WorkHoursLessThan: z.number().nullable().optional(), AmountPerUnit: z.number().nullable().optional(), Amount: z.number().nullable().optional(), Description: z.string().optional()}); export const intectRateIntervalSet = z.object({Id: z.number().int().optional(), EmploymentTemplateId: z.number().int().optional(), Name: z.string().optional(), ValidFrom: z.string().nullable().optional(), ValidUntil: z.string().nullable().optional(), RateIntervals: z.array(intectRateInterval).optional()}); export const intectUserEmploymentTemplate: z.ZodType = z.object({VacationType: intectVacationType.optional(), VacationProvider: intectVacationProvider.optional(), CasualWorkerAppliesToAtpAndMaternity: z.boolean().optional(), CasualWorkerAppliesToVacation: z.boolean().optional(), Id: z.number().int().optional(), CompanyId: z.number().int().optional(), Name: z.string().optional(), VacationTypeId: z.number().int().optional(), VacationProviderId: z.number().int().nullable().optional(), VacationExtraPercentage: z.number().nullable().optional(), IsAtpTempWorker: z.boolean().optional(), WorksElsewhere: z.boolean().optional(), IncomeTypeId: z.number().int().optional(), SalaryCycleId: z.number().int().nullable().optional(), VacationReduceSalary: z.boolean().optional(), VacationSupplementPayoutMonth: z.number().int().optional(), IsInMaternityProgram: z.boolean().optional(), IllnessReducesSalary: z.boolean().optional(), StandardHoursPerWeek: z.number().nullable().optional(), StatisticsSalaryPrincipleId: z.number().int().nullable().optional(), StatisticsEmploymentPrincipleId: z.number().int().nullable().optional(), StatisticsEmploymentTermsId: z.number().int().nullable().optional(), StatisticsJobStatusId: z.number().int().nullable().optional(), StatisticsJobFunctionCode: z.number().int().nullable().optional(), StandardWorkDaysPerWeek: z.number().nullable().optional(), DepartmentId: z.number().int().nullable().optional(), FlexEarningPercentage: z.number().optional(), FlexBaseCalculationMethodId: z.number().int().optional(), IsDefault: z.boolean().optional(), CollectiveBargainingAgreementCode: z.string().optional(), TerminationVacationOverridePercentage: z.number().nullable().optional(), SystemDefaultForCountryId: z.number().int().nullable().optional(), TimeEntryRecordAcrossSalaryPeriodStrategy: z.number().int().optional(), AllowExtendedTaxCardDeductions: z.boolean().optional(), TemplateExternalReference: z.string().optional(), UseTaxDeductionPerWorkDay: z.boolean().optional(), DefaultRate: z.number().nullable().optional(), VacationDaysPerYear: z.number().nullable().optional(), ApplyLongTermIllnessCompensation: z.boolean().optional(), AnnualIncomeMultiplicationFactor: z.number().nullable().optional(), AdditionalVacationTerminationMethod: z.number().int().nullable().optional(), AdditionalVacationSpentFirst: z.boolean().optional(), AdvanceVacationDays: z.number().nullable().optional(), WorkplaceIdentifier: z.string().optional(), StandardWorkHoursMonday: z.number().nullable().optional(), StandardWorkHoursTuesday: z.number().nullable().optional(), StandardWorkHoursWednesday: z.number().nullable().optional(), StandardWorkHoursThursday: z.number().nullable().optional(), StandardWorkHoursFriday: z.number().nullable().optional(), StandardWorkHoursSaturday: z.number().nullable().optional(), StandardWorkHoursSunday: z.number().nullable().optional(), CopiedFromTemplateId: z.number().int().nullable().optional(), MaternityProgramId: z.number().int().nullable().optional(), IsMaternityProgramVolunteer: z.boolean().optional(), Dimension1ValueId: z.number().int().nullable().optional(), Dimension2ValueId: z.number().int().nullable().optional(), Dimension3ValueId: z.number().int().nullable().optional(), Dimension1AllowOverride: z.boolean().optional(), Dimension2AllowOverride: z.boolean().optional(), Dimension3AllowOverride: z.boolean().optional(), Dimension1Value: z.string().optional(), Dimension2Value: z.string().optional(), Dimension3Value: z.string().optional(), WorkingAddressReference: z.string().optional(), WorkplaceAddress: z.string().optional(), WorkplaceCity: z.string().optional(), EmploymentTypeId: z.number().int().nullable().optional(), AppointmentTypeId: z.number().int().nullable().optional(), WorkingHoursArragementId: z.number().int().nullable().optional(), VacationLimitedAllowanceId: z.number().int().optional(), FlexTerminationMethodId: z.number().int().optional(), VacationMinimumAmount: z.number().nullable().optional(), VacationMinimumAmountTerminationIgnore: z.boolean().nullable().optional(), AdvanceVacationExpireDate: z.string().nullable().optional(), VariableVacationPayoutMethodId: z.number().int().nullable().optional(), VacationYearStartMonth: z.number().int().nullable().optional(), Year5VacationDaysActionSE: z.number().int().nullable().optional(), VacationPayoutMethodId: z.number().int().nullable().optional(), VacationTerminationMethodId: z.number().int().nullable().optional(), ExemptFromSocialTax: z.boolean().optional(), GreatPrayerSupplementPayoutMethodId: z.number().int().optional(), CasualWorkerStatusId: z.number().int().optional(), SubUnitId: z.number().int().nullable().optional(), TemplateSalaryRecords: z.array(intectTemplateSalaryRecord).optional(), SenioritySupplements: z.array(intectSenioritySupplement).optional(), OvertimeSupplements: z.array(intectOvertimeSupplement).optional(), TemplateBalanceConfigurations: z.array(intectTemplateBalanceConfiguration).optional(), Holidays: z.array(intectHoliday).optional(), DimensionValues: z.array(intectDimensionValue).optional(), SalaryCycle: z.lazy(() => intectSalaryCycle.optional()), UserEmploymentTemplate1: z.array(z.lazy(() => intectUserEmploymentTemplate)).optional(), UserEmploymentTemplate2: z.lazy(() => intectUserEmploymentTemplate.optional()), RecurringPaymentPlans: z.array(intectRecurringPaymentPlan).optional(), CustomValues: z.array(intectCustomValue).optional(), RateIntervalSets: z.array(intectRateIntervalSet).optional()}); export const intectTaxCardType = z.object({EIncomeReference: z.number().int().optional(), AllowTaxRate: z.boolean().optional(), AllowDeduction: z.boolean().optional(), AllowFreeAmount: z.boolean().optional(), RelevantCountries: z.array(intectCountry).optional(), StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectWithholdingMonths = z.object({Months: z.number().optional(), RelevantCountries: z.array(intectCountry).optional(), StaticDataId: z.number().int().optional(), Key: z.string().optional(), Id: z.number().int().optional(), Name: z.string().optional(), Description: z.string().optional(), SortKey: z.string().optional()}); export const intectUserTaxInfo = z.object({TaxCardType: intectTaxCardType.optional(), IsCurrent: z.boolean().optional(), WithholdingMonths: intectWithholdingMonths.optional(), HasFullYearWithholding: z.boolean().optional(), Id: z.number().int().optional(), ValidFrom: z.string().optional(), ValidUntil: z.string().nullable().optional(), TaxRate: z.number().nullable().optional(), DeductionMonth: z.number().nullable().optional(), FreeAmount: z.number().nullable().optional(), UserEmploymentId: z.number().int().optional(), IsActive: z.boolean().optional(), TaxCardTypeId: z.number().int().optional(), IsDummy: z.boolean().optional(), MinimumRate: z.number().nullable().optional(), MaximumDeductionMonth: z.number().nullable().optional(), MaximumDeductionDay: z.number().nullable().optional(), Created: z.string().optional(), DeductionWeek: z.number().nullable().optional(), DeductionDay: z.number().nullable().optional(), IsManual: z.boolean().optional(), ParsedFromFileName: z.string().optional(), TaxCardRequestId: z.number().int().nullable().optional(), Updated: z.string().optional(), TaxCardYear: z.number().int().nullable().optional(), ExternalTaxCardId: z.string().optional(), TaxTable: z.string().optional(), AdditionalInformation: z.string().optional(), WithholdingMonthsId: z.number().int().nullable().optional(), IsPaye: z.boolean().optional()}); export const intectEmploymentFeriefriAllocationRule = z.object({Id: z.number().int().optional(), EmploymentBalanceConfigurationId: z.number().int().optional(), Months: z.number().int().nullable().optional(), TriggerDate: z.string().nullable().optional(), Percentage: z.number().nullable().optional(), Hours: z.number().nullable().optional()}); export const intectEmploymentBalanceConfiguration = z.object({Id: z.number().int().optional(), UserEmploymentId: z.number().int().optional(), BalanceDefinitionId: z.number().int().optional(), EarningPercentage: z.number().nullable().optional(), BaseCalculationMethodId: z.number().int().nullable().optional(), EarningFixedAmount: z.number().nullable().optional(), EarningFixedAmountPrincipleId: z.number().int().nullable().optional(), PensionSharePercentage: z.number().nullable().optional(), PensionShareFixedAmount: z.number().nullable().optional(), DaysConversionPercentage: z.number().nullable().optional(), DaysEarnedPerPayslip: z.number().nullable().optional(), PayoutPercentage: z.number().nullable().optional(), SeniorityRequirementMonths: z.number().int().nullable().optional(), CustomBehaviorId: z.number().int().nullable().optional(), UnitsEarnedPerInterval: z.number().nullable().optional(), BalanceEarningIntervalId: z.number().int().nullable().optional(), TerminationMethodId: z.number().int().nullable().optional(), SpendingMethodId: z.number().int().nullable().optional(), SpendingReducesVacationBase: z.boolean().nullable().optional(), EarningBasedOnWeeklyHours: z.boolean().nullable().optional(), FeriefriAllocationRules: z.array(intectEmploymentFeriefriAllocationRule).optional()}); export const intectCompanyCar = z.object({Id: z.number().int().optional(), UserEmploymentId: z.number().int().optional(), TaxableValue: z.number().optional(), FirstRegistrationDate: z.string().nullable().optional(), PurchasedDate: z.string().nullable().optional(), LicensePlateNumber: z.string().optional(), Model: z.string().optional(), ValidFrom: z.string().nullable().optional(), ValidUntil: z.string().nullable().optional(), EnvironmentSupplementValue: z.number().optional(), IsOverDistanceLimit: z.boolean().nullable().optional(), ModelCode: z.string().optional(), AdditionalEquipment: z.number().nullable().optional(), VehicleTax: z.number().nullable().optional(), FuelPayerId: z.number().int().nullable().optional(), FuelTypeId: z.number().int().nullable().optional(), TaxableValueAdjusted: z.number().nullable().optional(), ReducedBenefitValidFrom: z.string().nullable().optional(), Comment: z.string().optional(), UserEmployment: z.lazy(() => intectUserEmployment.optional())}); export const intectUserEmployment: z.ZodType = z.object({CurrentConfiguration: intectEmploymentConfigurationHistory.optional(), VacationType: intectVacationType.optional(), VacationProvider: intectVacationProvider.optional(), CasualWorkerAppliesToAtpAndMaternity: z.boolean().optional(), CasualWorkerAppliesToVacation: z.boolean().optional(), Id: z.number().int().optional(), CompanyUserId: z.number().int().optional(), HireDate: z.string().optional(), ExpireDate: z.string().nullable().optional(), VacationTypeId: z.number().int().optional(), VacationProviderId: z.number().int().nullable().optional(), VacationExtraPercentage: z.number().nullable().optional(), BasedOnTemplateId: z.number().int().nullable().optional(), Title: z.string().optional(), SalaryCycleId: z.number().int().nullable().optional(), ExternalReference: z.string().optional(), IsAtpTempWorker: z.boolean().optional(), DepartmentId: z.number().int().nullable().optional(), IncomeTypeId: z.number().int().optional(), WorksElsewhere: z.boolean().optional(), LastStatementEndDate: z.string().nullable().optional(), VacationReduceSalary: z.boolean().optional(), IsTerminated: z.boolean().optional(), VacationSupplementPayoutMonth: z.number().int().optional(), IsInMaternityProgram: z.boolean().optional(), TaxCardRequested: z.string().nullable().optional(), PreferredTaxCardTypeId: z.number().int().optional(), Created: z.string().optional(), IllnessReducesSalary: z.boolean().optional(), ManagerCompanyUserId: z.number().int().nullable().optional(), StatisticsSalaryPrincipleId: z.number().int().nullable().optional(), StatisticsEmploymentPrincipleId: z.number().int().nullable().optional(), StatisticsEmploymentTermsId: z.number().int().nullable().optional(), StatisticsJobStatusId: z.number().int().nullable().optional(), StatisticsJobFunctionCode: z.number().int().nullable().optional(), StatisticsSalaryPrincipleFromDate: z.string().nullable().optional(), StatisticsEmploymentPrincipleFromDate: z.string().nullable().optional(), StatisticsEmploymentTermsFromDate: z.string().nullable().optional(), StatisticsJobStatusFromDate: z.string().nullable().optional(), StatisticsJobFunctionFromDate: z.string().nullable().optional(), FlexEarningPercentage: z.number().optional(), FlexBaseCalculationMethodId: z.number().int().optional(), CollectiveBargainingAgreementCode: z.string().optional(), TerminationVacationOverridePercentage: z.number().nullable().optional(), SeniorityDate: z.string().nullable().optional(), ApplyDanishRulesInGreenland: z.boolean().optional(), AnnualTaxComment: z.string().optional(), AllowExtendedTaxCardDeductions: z.boolean().optional(), ReduceTaxCardDeduction: z.number().nullable().optional(), IncreaseTaxRatePercentage: z.number().nullable().optional(), UseTaxDeductionPerWorkDay: z.boolean().optional(), DefaultRate: z.number().nullable().optional(), TaxTableNumber: z.string().optional(), TaxColumnNumber: z.number().int().nullable().optional(), AdHocTaxRateOverride: z.number().nullable().optional(), VacationDaysPerYear: z.number().nullable().optional(), SecondaryExternalReference: z.string().optional(), LastIllnessEndDate: z.string().nullable().optional(), LastIllnessStartDate: z.string().nullable().optional(), VacationTerminationDate: z.string().nullable().optional(), VacationTerminationDatePriorYear: z.string().nullable().optional(), AdditionalVacationTerminationMethod: z.number().int().nullable().optional(), AdditionalVacationSpentFirst: z.boolean().optional(), Updated: z.string().nullable().optional(), AtpHours: z.number().nullable().optional(), IsPendingRecalc: z.boolean().optional(), AdvanceVacationDays: z.number().nullable().optional(), WorkplaceIdentifier: z.string().optional(), SettleVacationInTerminationMonth: z.boolean().optional(), MaternityProgramId: z.number().int().nullable().optional(), IsMaternityProgramVolunteer: z.boolean().optional(), Dimension1ValueId: z.number().int().nullable().optional(), Dimension2ValueId: z.number().int().nullable().optional(), Dimension3ValueId: z.number().int().nullable().optional(), Dimension1Value: z.string().optional(), Dimension2Value: z.string().optional(), Dimension3Value: z.string().optional(), WorkingAddressReference: z.string().optional(), WorkplaceAddress: z.string().optional(), WorkplaceCity: z.string().optional(), EmploymentTypeId: z.number().int().nullable().optional(), CauseOfEndDateId: z.number().int().nullable().optional(), AppointmentTypeId: z.number().int().nullable().optional(), WorkingHoursArragementId: z.number().int().nullable().optional(), OccupationCode: z.string().optional(), FlexTerminationMethodId: z.number().int().optional(), VacationLimitedAllowanceId: z.number().int().optional(), ApplyDanishATPRulesInGreenland: z.boolean().optional(), ApplyDanishAMBRulesInGreenland: z.boolean().optional(), IsECHTriggerDisabled: z.boolean().optional(), VacationMinimumAmount: z.number().nullable().optional(), VacationMinimumAmountTerminationIgnore: z.boolean().nullable().optional(), AdvanceVacationExpireDate: z.string().nullable().optional(), VariableVacationPayoutMethodId: z.number().int().nullable().optional(), VacationYearStartMonth: z.number().int().nullable().optional(), RecentSalaryChangeDate: z.string().nullable().optional(), LastReportedInAmeldingDate: z.string().nullable().optional(), Year5VacationDaysActionSE: z.number().int().nullable().optional(), VacationPayoutMethodId: z.number().int().nullable().optional(), VacationTerminationMethodId: z.number().int().nullable().optional(), AmeldingId: z.string().optional(), ExemptFromSocialTax: z.boolean().optional(), HalfTaxOverride: z.boolean().optional(), GreatPrayerSupplementPayoutMethodId: z.number().int().optional(), ExpireDateReportedInAmeldingDate: z.string().nullable().optional(), IsNetSalary: z.boolean().optional(), GrossingUpTable: z.string().optional(), TaxRuleId: z.number().int().nullable().optional(), CommuterTypeId: z.number().int().nullable().optional(), StatusFNOId: z.number().int().optional(), PayFormFNOId: z.number().int().optional(), StatusDegreeShare: z.number().optional(), IsWorkCapable: z.boolean().optional(), IsReceivesAFP: z.boolean().optional(), PensionAgeNO: z.number().int().optional(), EmployeeAnnualHoursNO: z.number().nullable().optional(), YearlySalary: z.number().nullable().optional(), CasualWorkerStatusId: z.number().int().optional(), SubUnitId: z.number().int().nullable().optional(), CreatedFromUserEmploymentId: z.number().int().nullable().optional(), CompanyUser: intectCompanyUser.optional(), UserEmploymentTemplate: intectUserEmploymentTemplate.optional(), UserTaxInfos: z.array(intectUserTaxInfo).optional(), SalaryRecords: z.array(intectSalaryRecord).optional(), TimeEntryTypeConfigurations: z.array(intectTimeEntryTypeConfiguration).optional(), EmploymentBalanceConfigurations: z.array(intectEmploymentBalanceConfiguration).optional(), SalaryCycle: z.lazy(() => intectSalaryCycle.optional()), EmploymentConfigurationHistories: z.array(intectEmploymentConfigurationHistory).optional(), CompanyCars: z.array(intectCompanyCar).optional(), RecurringPaymentPlans: z.array(intectRecurringPaymentPlan).optional(), CustomValues: z.array(intectCustomValue).optional()}); export const intectSalaryCycle: z.ZodType = z.object({Id: z.number().int().optional(), Name: z.string().optional(), Months: z.number().int().optional(), Days: z.number().int().optional(), IsForwardPaid: z.boolean().optional(), FirstPeriodStartDate: z.string().nullable().optional(), SortKey: z.string().optional(), SpecialIdentifier: z.string().optional(), CompanyId: z.number().int().nullable().optional(), AccountId: z.number().int().nullable().optional(), SalaryPeriods: z.array(intectSalaryPeriod).optional(), UserEmployments: z.array(intectUserEmployment).optional(), UserEmploymentTemplates: z.array(intectUserEmploymentTemplate).optional(), IsMonthly: z.boolean().optional(), IsWeekly: z.boolean().optional(), IsBiWeekly: z.boolean().optional(), IsMonthlyStandard: z.boolean().optional(), IsCustom: z.boolean().optional()}); export const validateResponse = async ( schema: { readonly '~standard': { readonly validate: (value: unknown) => ({ readonly value: Output; readonly issues?: undefined } | { readonly issues: ReadonlyArray<{ readonly message: string; readonly path?: ReadonlyArray | undefined }> }) | Promise<{ readonly value: Output; readonly issues?: undefined } | { readonly issues: ReadonlyArray<{ readonly message: string; readonly path?: ReadonlyArray | undefined }> }> } }, value: unknown ): Promise => { const result = await schema['~standard'].validate(value) if (result.issues !== undefined) { const detail = result.issues .map(({ message, path }) => path?.length ? `${path.map((segment) => String(typeof segment === 'object' ? segment.key : segment)).join('.')}: ${message}` : message ) .join('; ') throw new Error(`Response does not match the schema: ${detail}`, { cause: { issues: result.issues } }) } return result.value }; /** * Creates a custom salary cycle, optionally with a list of SalaryPeriods and/or SalaryCycleTranslations. * * POST /api/salarycycles * * Also accepts auth: ApiKey */ export const createApiApiSalarycycles = async (args: CreateApiApiSalarycyclesArgs, options?: CreateApiApiSalarycyclesOptions) => { const {baseUrl = "https://api.intect.app", fetch: fetchFn = fetch, basicAuth} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "application/json") if (basicAuth !== undefined) headers.set('authorization', `Basic ${btoa(`${basicAuth.username}:${basicAuth.password}`)}`) const url = `${baseUrl.replace(/\/+$/, '')}/api/salarycycles${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return validateResponse(intectSalaryCycle, await res.json()) };