import {z} from 'zod' 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 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 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 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 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 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 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 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 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 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 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, 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 IntectUserTaxInfo = {TaxCardType?: IntectTaxCardType | undefined, IsCurrent?: 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}; 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, 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, 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 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, 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 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 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 CreateApiApiSalarystatementsPdfFromclientArgs = {body: IntectSalaryStatement}; export type CreateApiApiSalarystatementsPdfFromclientOptions = {baseUrl?: string | undefined, basicAuth?: {username: string, password: string} | undefined, fetch?: typeof fetch | undefined}; export const createApiApiSalarystatementsPdfFromclientResponse = z.object({}); 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 }; /** * Retrieves a salary statement as a PDF file based on data submitted in the request. Use this for preview functionality. * * POST /api/salarystatements/pdf/fromclient * * Also accepts auth: ApiKey */ export const createApiApiSalarystatementsPdfFromclient = async (args: CreateApiApiSalarystatementsPdfFromclientArgs, options?: CreateApiApiSalarystatementsPdfFromclientOptions) => { 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/salarystatements/pdf/fromclient${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(createApiApiSalarystatementsPdfFromclientResponse, await res.json()) };