UNPKG

@salaxy/core

Version:

General plain JavaScript / TypeScript libraries for Salaxy API (Palkkaus.fi)

537 lines 2.32 MB
class Ur { /** * Creates a new ConfigLogic based on a Config in env file. * @param config Raw config in env file. */ constructor(e) { Object.assign(this, e); } /** Gets the type of the environment. */ getEnv() { return this.apiServer?.indexOf("localhost") > -1 ? "local" : this.apiServer?.indexOf("rc") > -1 ? "rc" : this.integrationsServer?.indexOf("test") > -1 ? "test" : this.isTestData ? "demo" : "prod"; } /** Gets the server address for the Omapalkka service based on environment. */ getOmapalkkaServer() { switch (this.getEnv()) { case "prod": return "https://www.omapalkka.fi"; case "local": return "http://localhost:3000"; case "test": return "https://test-www.omapalkka.fi"; case "rc": case "demo": default: return "https://demo-www.omapalkka.fi"; } } /** Gets the API server address for the Omapalkka service based on environment. */ getOmapalkkaApiServer() { switch (this.getEnv()) { case "prod": return "https://secure.omapalkka.fi"; case "local": return "https://localhost:7270"; case "test": return "https://test-secure.omapalkka.fi"; case "rc": case "demo": default: return "https://demo-secure.omapalkka.fi"; } } } class ke { static get defaultConfig() { return { wwwServer: "https://test.palkkaus.fi", apiServer: "https://test-api.salaxy.com", proServer: "https://demo-pro.palkkaus.fi/server", reportServer: "https://test-reports.salaxy.com", integrationsServer: "https://test-integrations.salaxy.com", isTestData: !0, useCookie: !0 }; } static getGlobalConfig() { const e = this.getGlobal(); return e.salaxy && e.salaxy.config ? e.salaxy.config : null; } static setGlobalConfig(e) { const t = this.getGlobal(); t.salaxy = t.salaxy || {}, t.salaxy.config = e; } static getGlobal() { if (typeof globalThis < "u") return globalThis; if (typeof self < "u") return self; if (typeof window < "u") return window; if (typeof global < "u") return global; throw new Error("unable to locate global object"); } /** * Returns current configuration. * If global (salaxy.config) configuration is null, default config (demo) is returned */ static get current() { return new Ur(this.getGlobalConfig() ?? this.defaultConfig); } /** * Set current configuration. */ static set current(e) { this.setGlobalConfig(e); } /** Get global, globalThis object */ static get global() { return this.getGlobal(); } } class La { /** * Gets a cookie value by a key * @param key - CName / key to look for. */ get(e) { const n = document.cookie.split(";"); for (const i of n) { const s = decodeURIComponent(i).trim(); if (s.indexOf(e + "=") === 0) return s.substring(e.length + 1); } return null; } /** * Sets a cookie value for the specified CName * @param cname - CName for the cookie value. Name is uri encoded as a fallback, but generally, you should make sure this is a valid cname. * @param value - Value to set for the cookie. Value is uri encoded. * @param expirationDays - Days until the cookie expires. * Set this to null or 0 to not set the expiration date at all. * This defaults the behavior where cookie is deleted when browser is closed. */ setCookie(e, t, n) { if (e = encodeURIComponent(e), t = encodeURIComponent(t), n && n > 0) { const i = /* @__PURE__ */ new Date(); i.setTime(i.getTime() + n * 24 * 60 * 60 * 1e3); const s = "expires=" + i.toUTCString(); document.cookie = e + "=" + t + ";" + s + ";path=/"; } else document.cookie = e + "=" + t + ";path=/"; } } class _k { /** * Creates a new instance of AjaxJQuery */ constructor() { this.useCookie = !0, this.useCredentials = !1, this.serverAddress = "https://test-api.salaxy.com"; const e = ke.current; e && (e.apiServer && (this.serverAddress = e.apiServer), e.useCredentials != null && (this.useCredentials = e.useCredentials), e.useCookie != null && (this.useCookie = e.useCookie)); } /** Gets the API address with version information. E.g. 'https://test-api.salaxy.com/v03/api' */ getApiAddress() { return this.serverAddress + "/v03/api"; } /** Gets the Server address that is used as bases to the HTML queries. E.g. 'https://test-api.salaxy.com' */ getServerAddress() { return this.serverAddress; } /** * Gets a JSON-message from server using the API * * @param method - The API method is the url path after the api version segments (e.g. '/v03/api') * and starts with a forward slash, e.g. '/calculator/new', or a full URL address. * * @returns A Promise with result data. Standard Promise rejection to be used for error handling. */ getJSON(e) { const t = this.getCurrentToken(); return this.getJQuery().ajax({ dataType: "json", url: this.getUrl(e), xhrFields: { withCredentials: t ? !1 : this.useCredentials }, beforeSend: (n) => { t && n.setRequestHeader("Authorization", "Bearer " + t); } }); } /** * Gets a HTML-message from server using the API * * @param method - The API method is the url path after the api version segments (e.g. '/v03/api') * and starts with a forward slash, e.g. '/calculator/new', or a full URL address. * * @returns A Promise with result html. Standard Promise rejection to be used for error handling. */ getHTML(e) { const t = this.getCurrentToken(); return this.getJQuery().ajax({ dataType: "html", url: this.getUrl(e), xhrFields: { withCredentials: t ? !1 : this.useCredentials }, beforeSend: (n) => { t && n.setRequestHeader("Authorization", "Bearer " + t); } }); } /** * POSTS data to server and receives back a JSON-message. * * @param method - The API method is the url path after the api version segments (e.g. '/v03/api') * and starts with a forward slash, e.g. '/calculator/new', or a full URL address. * @param data - The data that is posted to the server. * * @returns A Promise with result data. Standard Promise rejection to be used for error handling. */ postJSON(e, t) { const n = this.getCurrentToken(); return this.getJQuery().ajax({ type: "POST", url: this.getUrl(e), data: t, dataType: "json", xhrFields: { withCredentials: n ? !1 : this.useCredentials }, beforeSend: (i) => { n && i.setRequestHeader("Authorization", "Bearer " + n); } }); } /** * POSTS data to server and receives back HTML. * * @param method - The API method is the url starting from api version, e.g. '/v03/api'. E.g. '/calculator/new' * @param data - The data that is posted to the server. * * @returns A Promise with result data. Standard Promise rejection to be used for error handling. */ postHTML(e, t) { const n = this.getCurrentToken(); return this.getJQuery().ajax({ type: "POST", url: this.getUrl(e), data: t, dataType: "html", xhrFields: { withCredentials: n ? !1 : this.useCredentials }, beforeSend: (i) => { n && i.setRequestHeader("Authorization", "Bearer " + n); } }); } /** * Sends a DELETE-message to server using the API * * @param method - The API method is the url path after the api version segments (e.g. '/v03/api') * and starts with a forward slash, e.g. '/calculator/new', or a full URL address. * * @returns A Promise with result data. Standard Promise rejection to be used for error handling. */ remove(e) { const t = this.getCurrentToken(); return this.getJQuery().ajax({ type: "DELETE", url: this.getUrl(e), xhrFields: { withCredentials: t ? !1 : this.useCredentials }, beforeSend: (n) => { t && n.setRequestHeader("Authorization", "Bearer " + t); } }); } /** * Gets the current token. * Will check the salaxy-token cookie if the token is persisted there */ getCurrentToken() { return !this.token && this.useCookie && (this.token = new La().get("salaxy-token") || ""), this.token; } /** * Sets the current token. The token is set to cookie called "salaxy-token" or * if the HTML page is running from local computer, it is set to local storage. * * @param token - the authentication token to store. */ setCurrentToken(e) { this.useCookie && new La().setCookie("salaxy-token", e || ""), this.token = e; } /** * Implements the OAuth2 "Resource Owner Password Credentials Grant" flow (RFC6749 4.3). * This method is not typically used in production web sites - use Implicit Grant instead for client side JavScript (SPAs). * However, it is very useful in development, testing, trusted helpers and server-side scenarios. */ resourceOwnerLogin(e, t) { return this.getJQuery().ajax({ type: "POST", url: this.getServerAddress() + "/oauth2/token", data: { grant_type: "password", username: e, password: t }, // eslint-disable-next-line @typescript-eslint/no-unused-vars success: (n, i, s) => { this.setCurrentToken(n.access_token); }, dataType: "json" }); } getJQuery() { const e = ke.global.jQuery; if (e) return e; throw new Error("ERROR: No jQuery. AjaxJQuery requires jQuery to be referenced."); } /** If missing, append the API server address to the given url method string */ getUrl(e) { return !e || e.trim() === "" ? null : e.toLowerCase().startsWith("http") ? e : e.toLowerCase().startsWith("/v") ? this.getServerAddress() + e : this.getApiAddress() + e; } } class Gk { /** * Creates a new instance of AjaxXHR */ constructor() { this.useCookie = !0, this.serverAddress = "https://test-api.salaxy.com"; const e = ke.current; e && (e.apiServer && (this.serverAddress = e.apiServer), e.useCredentials != null && (this.useCredentials = e.useCredentials), e.useCookie != null && (this.useCookie = e.useCookie)); } /** Gets the API address with version information. E.g. 'https://test-api.salaxy.com/v03/api' */ getApiAddress() { return this.serverAddress + "/v03/api"; } /** Gets the Server address that is used as bases to the HTML queries. E.g. 'https://test-api.salaxy.com' */ getServerAddress() { return this.serverAddress; } /** * Gets a JSON-message from server using the API * * @param method - The API method is the url path after the api version segments (e.g. '/v03/api') * and starts with a forward slash, e.g. '/calculator/new', or a full URL address. * * @returns A Promise with result data. Standard Promise rejection to be used for error handling. */ getJSON(e) { return new Promise((t, n) => { const i = this.createCORSRequest("GET", this.getUrl(e)); if (!i) return n(new Error("CORS not supported!")); i.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), i.setRequestHeader("Accept", "application/json; charset=UTF-8"); const s = this.getCurrentToken(); s && i.setRequestHeader("Authorization", "Bearer " + s), i.withCredentials = s ? !1 : this.useCredentials, i.onreadystatechange = () => { if (i.readyState === XMLHttpRequest.DONE) if (i.status === 200) try { const r = JSON.parse(i.responseText); return t(r); } catch (r) { return n(r); } else return n(new Error("There was a problem with the request.")); }, i.onerror = () => n(new Error("There was a problem with the request.")), i.send(); }); } /** * Gets a HTML-message from server using the API * * @param method - The API method is the url path after the api version segments (e.g. '/v03/api') * and starts with a forward slash, e.g. '/calculator/new', or a full URL address. * * @returns A Promise with result html. Standard Promise rejection to be used for error handling. */ getHTML(e) { return new Promise((t, n) => { const i = this.createCORSRequest("GET", this.getUrl(e)); if (!i) return n(new Error("CORS not supported!")); i.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), i.setRequestHeader("Accept", "application/json; charset=UTF-8"); const s = this.getCurrentToken(); s && i.setRequestHeader("Authorization", "Bearer " + s), i.withCredentials = s ? !1 : this.useCredentials, i.onreadystatechange = () => { if (i.readyState === XMLHttpRequest.DONE) return i.status === 200 ? t(i.responseText) : n(new Error("There was a problem with the request.")); }, i.onerror = () => n(new Error("There was a problem with the request.")), i.send(); }); } /** * POSTS data to server and receives back a JSON-message. * * @param method - The API method is the url path after the api version segments (e.g. '/v03/api') * and starts with a forward slash, e.g. '/calculator/new', or a full URL address. * @param data - The data that is posted to the server. * * @returns A Promise with result. Standard Promise rejection to be used for error handling. */ postJSON(e, t) { return new Promise((n, i) => { const s = this.createCORSRequest("POST", this.getUrl(e)); if (!s) return i(new Error("CORS not supported!")); s.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), s.setRequestHeader("Accept", "application/json; charset=UTF-8"); const r = this.getCurrentToken(); r && s.setRequestHeader("Authorization", "Bearer " + r), s.withCredentials = r ? !1 : this.useCredentials, s.onreadystatechange = () => { if (s.readyState === XMLHttpRequest.DONE) if (s.status === 200) try { const l = JSON.parse(s.responseText); return n(l); } catch (l) { return i(l); } else return i(new Error("There was a problem with the request.")); }, s.onerror = () => i(new Error("There was a problem with the request.")); const o = !t || typeof t == "string" ? t : JSON.stringify(t); s.send(o); }); } /** * POSTS data to server and receives back HTML. * * @param method - The API method is the url path after the api version segments (e.g. '/v03/api') * and starts with a forward slash, e.g. '/calculator/new', or a full URL address. * @param data - The data that is posted to the server. * * @returns A Promise with result. Standard Promise rejection to be used for error handling. */ postHTML(e, t) { return new Promise((n, i) => { const s = this.createCORSRequest("POST", this.getUrl(e)); if (!s) return i(new Error("CORS not supported!")); s.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), s.setRequestHeader("Accept", "application/json; charset=UTF-8"); const r = this.getCurrentToken(); r && s.setRequestHeader("Authorization", "Bearer " + r), s.withCredentials = r ? !1 : this.useCredentials, s.onreadystatechange = () => { if (s.readyState === XMLHttpRequest.DONE) return s.status === 200 ? n(s.responseText) : i(new Error("There was a problem with the request.")); }, s.onerror = () => i(new Error("There was a problem with the request.")); const o = !t || typeof t == "string" ? t : JSON.stringify(t); s.send(o); }); } /** * Sends a DELETE-message to server using the API * * @param method - The API method is the url path after the api version segments (e.g. '/v03/api') * and starts with a forward slash, e.g. '/calculator/new', or a full URL address. * * @returns A Promise with result. Standard Promise rejection to be used for error handling. */ remove(e) { return new Promise((t, n) => { const i = this.createCORSRequest("DELETE", this.getUrl(e)); if (!i) return n(new Error("CORS not supported!")); i.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), i.setRequestHeader("Accept", "application/json; charset=UTF-8"); const s = this.getCurrentToken(); s && i.setRequestHeader("Authorization", "Bearer " + s), i.withCredentials = s ? !1 : this.useCredentials, i.onreadystatechange = () => { if (i.readyState === XMLHttpRequest.DONE) if (i.status === 200) try { const r = JSON.parse(i.responseText); return t(r); } catch (r) { return n(r); } else return n(new Error("There was a problem with the request.")); }, i.onerror = () => n(new Error("There was a problem with the request.")), i.send(); }); } /** * Gets the current token. * Will check the salaxy-token cookie if the token is persisted there */ getCurrentToken() { return !this.token && this.useCookie && (this.token = new La().get("salaxy-token") || ""), this.token; } /** * Sets the current token. The token is set to cookie called "salaxy-token" or * if the HTML page is running from local computer, it is set to local storage. * * @param token - the authentication token to store. */ setCurrentToken(e) { this.useCookie && new La().setCookie("salaxy-token", e || ""), this.token = e; } /** If missing, append the API server address to the given url method string */ getUrl(e) { return !e || e.trim() === "" ? null : e.toLowerCase().startsWith("http") ? e : e.toLowerCase().startsWith("/v") ? this.getServerAddress() + e : this.getApiAddress() + e; } createCORSRequest(e, t) { let n = new XMLHttpRequest(); return "withCredentials" in n ? n.open(e, t, !0) : typeof XDomainRequest < "u" ? (n = new XDomainRequest(), n.open(e, t)) : n = null, n; } } class It { /** * Gets a valid input type, format and other input properties from schema. * @param schema The property schema based on which the input is created. * @param propertyName Name of property or null if the input is not created from a property, but from model directly. * @param dataBindingPath Path for the data model. * Default is "form": The current form. Could be a a longer path e.g. "form.result.employerCalc" */ static getInputMetadata(e, t, n = "form") { const i = { name: t, path: null, type: e.type, format: e.format, isEnum: !1 }; switch (t = t || "", i.path = i.name ? n ? n + "." + i.name : i.name : n, i.type) { case "number": case "integer": case "boolean": case "object": case "array": break; case "string": i.isEnum = e.enum?.length > 0; break; default: return i.type = "error", i.content = `Unhandled data type '${i.type}', format '${i.format}' in '${t || "no property name"}'.`, i; } return i; } /** * Gets the necessary metadata for generating the inputs for the specified model of type "object". * If the schema is not of type "object", returns null. * @param schema Schema for which the user interface is generated. * @param dataBindingPath Path for the data model. * Default is "form": The current form. Could be a a longer path e.g. "form.result.employerCalc" */ static getInputsForObject(e, t = "form") { return e.type === "object" ? Object.keys(e.properties).map((n) => this.getInputMetadata(e, n, t)) : null; } /** * Gets input for the schema itself. * @param schema Schema for which the input component is generated. * @param propertyName Property name in relation to schema. This may be used in language versioning / texts. * @param dataBindingPath Path for the data binding within the form. */ static getInputForSelf(e, t, n) { return this.getInputMetadata(e, t, n); } /** * Gets the necessary metadata for generating the inputs for the array items. * If the schema is not of type "array", returns null. * @param schema Schema for which the user interface is generated. * @param dataBindingPath Path for the data binding within the form. */ static getInputsForArray(e, t) { return e.type === "array" ? It.getInputsForObject(e.items, t) || [It.getInputForSelf(e.items, null, t)] : null; } } var Kr = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Authorization_code = "authorization_code", a.Password = "password", a.Client_credentials = "client_credentials", a.Refresh_token = "refresh_token", a.JwtBearer = "jwtBearer", a))(Kr || {}), $r = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Code = "code", a.Token = "token", a))($r || {}), Yr = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Bearer = "bearer", a.Mac = "mac", a))(Yr || {}), Wr = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Invalid_request = "invalid_request", a.Unauthorized_client = "unauthorized_client", a.Access_denied = "access_denied", a.Unsupported_response_type = "unsupported_response_type", a.Invalid_scope = "invalid_scope", a.Server_error = "server_error", a.Temporarily_unavailable = "temporarily_unavailable", a))(Wr || {}), _r = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Sign_in = "sign_in", a.Sign_up = "sign_up", a))(_r || {}), Gr = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.DoNotShow = "doNotShow", a.Employment = "employment", a.Insurance = "insurance", a.Salary = "salary", a.Examples = "examples", a.PalkkausGeneral = "palkkausGeneral", a.PalkkausInstructions = "palkkausInstructions", a.Blog = "blog", a.Press = "press", a.PersonEmployer = "personEmployer", a.HouseholdEmployer = "householdEmployer", a.Worker = "worker", a.Employee = "employee", a.Entrepreneur = "entrepreneur", a.Association = "association", a.BusinessOwner = "businessOwner", a.ProductLongDescription = "productLongDescription", a.DocumentTemplates = "documentTemplates", a.InstructionsAndExamples = "instructionsAndExamples", a))(Gr || {}), ut = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.UnpaidLeave = "unpaidLeave", a.PersonalReason = "personalReason", a.Illness = "illness", a.PartTimeSickLeave = "partTimeSickLeave", a.ParentalLeave = "parentalLeave", a.SpecialMaternityLeave = "specialMaternityLeave", a.Rehabilitation = "rehabilitation", a.ChildIllness = "childIllness", a.PartTimeChildCareLeave = "partTimeChildCareLeave", a.Training = "training", a.JobAlternationLeave = "jobAlternationLeave", a.StudyLeave = "studyLeave", a.IndustrialAction = "industrialAction", a.InterruptionInWorkProvision = "interruptionInWorkProvision", a.LeaveOfAbsence = "leaveOfAbsence", a.MilitaryRefresherTraining = "militaryRefresherTraining", a.MilitaryService = "militaryService", a.LayOff = "layOff", a.ChildCareLeave = "childCareLeave", a.MidWeekHoliday = "midWeekHoliday", a.AccruedHoliday = "accruedHoliday", a.OccupationalAccident = "occupationalAccident", a.AnnualLeave = "annualLeave", a.PartTimeAbsenceDueToRehabilitation = "partTimeAbsenceDueToRehabilitation", a.Other = "other", a))(ut || {}), Jr = /* @__PURE__ */ ((a) => (a.Unknown = "unknown", a.UnlinkedPrimaryPartner = "unlinkedPrimaryPartner", a.UnlinkedAccountingOnly = "unlinkedAccountingOnly", a.PendingPrimaryPartner = "pendingPrimaryPartner", a.PrimaryPartner = "primaryPartner", a.None = "none", a))(Jr || {}), zr = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Procountor = "procountor", a.VismaNetvisor = "vismaNetvisor", a.VismaFivaldi = "vismaFivaldi", a))(zr || {}), Xr = /* @__PURE__ */ ((a) => (a.Default = "default", a.Accounting = "accounting", a.PeriodicInvoices = "periodicInvoices", a.AccountingAndPeriodicInvoices = "accountingAndPeriodicInvoices", a.IrReports = "irReports", a.AccountingAndIrReports = "accountingAndIrReports", a.PeriodicInvoicesAndIrReports = "periodicInvoicesAndIrReports", a.AccountingAndPeriodicInvoicesAndIrReports = "accountingAndPeriodicInvoicesAndIrReports", a))(Xr || {}), qr = /* @__PURE__ */ ((a) => (a.Debit = "debit", a.Credit = "credit", a.Total = "total", a.GroupHeader = "groupHeader", a.GroupTotal = "groupTotal", a.ChildRow = "childRow", a))(qr || {}), $a = /* @__PURE__ */ ((a) => (a.Classic = "classic", a.Simple = "simple", a.Mapped = "mapped", a))($a || {}), Zr = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.OwnedTarget = "ownedTarget", a.ProductTarget = "productTarget", a.SharedTarget = "sharedTarget", a))(Zr || {}), Qr = /* @__PURE__ */ ((a) => (a.A = "a", a.B = "b", a.C = "c", a.U = "u", a))(Qr || {}), wi = /* @__PURE__ */ ((a) => (a.Unknown = "unknown", a.Age_15 = "age_15", a.Age16 = "age16", a.Age17 = "age17", a.Age18_52 = "age18_52", a.Age53_62 = "age53_62", a.Age63_64 = "age63_64", a.Age65_67 = "age65_67", a.Age68AndOVer = "age68AndOVer", a))(wi || {}), eo = /* @__PURE__ */ ((a) => (a.MealAllowance = "mealAllowance", a.PartialDailyAllowance = "partialDailyAllowance", a.FullDailyAllowance = "fullDailyAllowance", a.InternationalDailyAllowance = "internationalDailyAllowance", a.TaxExemptReimbursementsAbroad = "taxExemptReimbursementsAbroad", a))(eo || {}), Oe = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Planned = "planned", a.ManualSalary = "manualSalary", a.ManualCompensation = "manualCompensation", a.ManualBonus = "manualBonus", a.PaidCalc = "paidCalc", a.DraftCalc = "draftCalc", a))(Oe || {}), ao = /* @__PURE__ */ ((a) => (a.Ignored = "ignored", a.Success = "success", a.Warning = "warning", a.Error = "error", a))(ao || {}), to = /* @__PURE__ */ ((a) => (a.Ignored = "ignored", a.Success = "success", a.Warning = "warning", a.Error = "error", a))(to || {}), Fa = /* @__PURE__ */ ((a) => (a.Unknown = "unknown", a.AccountBase = "accountBase", a.CompanyAccount = "companyAccount", a.PersonAccount = "personAccount", a.WorkerAccount = "workerAccount", a.Certificate = "certificate", a.SessionUserCredential = "sessionUserCredential", a.Onboarding = "onboarding", a.Profile = "profile", a.Calculation = "calculation", a.CalculationPaid = "calculationPaid", a.ESalaryPayment = "eSalaryPayment", a.Payment = "payment", a.EarningsPayment = "earningsPayment", a.Employment = "employment", a.WorkerAbsences = "workerAbsences", a.HolidayYear = "holidayYear", a.Taxcard = "taxcard", a.PayrollDetails = "payrollDetails", a.Invoice = "invoice", a.Report = "report", a.BlobFile = "blobFile", a.PayerSummary = "payerSummary", a.CalendarEvent = "calendarEvent", a.Usecase = "usecase", a.Dataset = "dataset", a.Article = "article", a.MessageThread = "messageThread", a.EmailMessage = "emailMessage", a.AccountProducts = "accountProducts", a.VarmaPensionOrder = "varmaPensionOrder", a.IfInsuranceOrder = "ifInsuranceOrder", a.Historical = "historical", a))(Fa || {}), no = /* @__PURE__ */ ((a) => (a.Default = "default", a.UserFriendly = "userFriendly", a))(no || {}), ga = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Calculation = "calculation", a.CalculationPaid = "calculationPaid", a.Dataset = "dataset", a.PayrollDetails = "payrollDetails", a.Invoice = "invoice", a.EarningsPaymentReport = "earningsPaymentReport", a.PayerSummaryReport = "payerSummaryReport", a.Employment = "employment", a.MessageThread = "messageThread", a.CalendarEvent = "calendarEvent", a.ListItems = "listItems", a))(ga || {}), we = /* @__PURE__ */ ((a) => (a.General = "general", a.Required = "required", a.Invalid = "invalid", a.Warning = "warning", a))(we || {}), io = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.EmailPwdLocal = "emailPwdLocal", a.Facebook = "facebook", a.Google = "google", a.Microsoft = "microsoft", a.LinkedIn = "linkedIn", a.Auth0Database = "auth0Database", a.X509 = "x509", a.Salaxy = "salaxy", a.Test = "test", a.WebAuthn = "webAuthn", a.MicrosoftOAuth = "microsoftOAuth", a.GoogleOAuth = "googleOAuth", a.InternalLocalhost = "internalLocalhost", a))(io || {}), so = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.OK = "oK", a.AccessDenied = "accessDenied", a.ExpiredOauthToken = "expiredOauthToken", a.InvalidOAuthToken = "invalidOAuthToken", a.NoOauthToken = "noOauthToken", a))(so || {}), ro = /* @__PURE__ */ ((a) => (a.None = "none", a.EmployerAuthorization = "employerAuthorization", a.WorkerContract = "workerContract", a.CompanyContract = "companyContract", a.Manual = "manual", a.Temporary = "temporary", a))(ro || {}), Xe = /* @__PURE__ */ ((a) => (a.Icon = "icon", a.Uploaded = "uploaded", a.Gravatar = "gravatar", a))(Xe || {}), oo = /* @__PURE__ */ ((a) => (a.Unknown = "unknown", a.Error = "error", a.PaytrailBatch = "paytrailBatch", a.NetvisorPayment = "netvisorPayment", a.SalaryGrossPayment = "salaryGrossPayment", a.RefundPayment = "refundPayment", a.PartialRefundPayment = "partialRefundPayment", a.DoubleRefundPayment = "doubleRefundPayment", a.TransferToEcfaPayment = "transferToEcfaPayment", a.InsuranceGrossPayment = "insuranceGrossPayment", a.NetSalary = "netSalary", a.SalaryAdvance = "salaryAdvance", a.NetSalaryRepayment = "netSalaryRepayment", a.NetSalaryCorrection = "netSalaryCorrection", a.TaxAccount = "taxAccount", a.Tvr = "tvr", a.TvrRfnd = "tvrRfnd", a.PalkkausFees = "palkkausFees", a.BankFees = "bankFees", a.PaytrailFees = "paytrailFees", a.InsuranceLahiTapiola = "insuranceLahiTapiola", a.Tyel = "tyel", a.TyelEteraContract = "tyelEteraContract", a.TyelEteraTemp = "tyelEteraTemp", a.TyelEteraUnknown = "tyelEteraUnknown", a.TyelEloContract = "tyelEloContract", a.TyelEloTemp = "tyelEloTemp", a.TyelEloInitialImport = "tyelEloInitialImport", a.TyelVarmaContract = "tyelVarmaContract", a.TyelVarmaTemp = "tyelVarmaTemp", a.TyelIlmarinenContract = "tyelIlmarinenContract", a.TyelIlmarinenTemp = "tyelIlmarinenTemp", a.Union = "union", a.UnionRaksa = "unionRaksa", a.Foreclosure = "foreclosure", a.SaldoYearBegin = "saldoYearBegin", a.SaldoYearEnd = "saldoYearEnd", a))(oo || {}), lo = /* @__PURE__ */ ((a) => (a.AccommodationBenefit = "accommodationBenefit", a.TelephoneBenefit = "telephoneBenefit", a.MealBenefit = "mealBenefit", a.OtherBenefits = "otherBenefits", a))(lo || {}), uo = /* @__PURE__ */ ((a) => (a.Unknown = "unknown", a.AuthorizationPdf = "authorizationPdf", a.Avatar = "avatar", a.TaxCard = "taxCard", a.ExpensesReceipt = "expensesReceipt", a.Raksaloki = "raksaloki", a.Template = "template", a.EInvoice = "eInvoice", a.Temporary = "temporary", a.Settings = "settings", a.Messages = "messages", a.Record = "record", a.MonthlyReport = "monthlyReport", a.YearlyReport = "yearlyReport", a.CalcReport = "calcReport", a))(uo || {}), ko = /* @__PURE__ */ ((a) => (a.UserFiles = "userFiles", a.VersionHistory = "versionHistory", a.SystemFiles = "systemFiles", a.Payload = "payload", a.Reports = "reports", a.CdnImages = "cdnImages", a.Iam = "iam", a.GitContent = "gitContent", a.FileSystemContent = "fileSystemContent", a))(ko || {}), Ge = /* @__PURE__ */ ((a) => (a.Default = "default", a.Primary = "primary", a.Success = "success", a.Info = "info", a.Warning = "warning", a.Danger = "danger", a))(Ge || {}), mo = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.BaseSalary = "baseSalary", a.SalaryAdditions = "salaryAdditions", a.Benefits = "benefits", a.Expenses = "expenses", a.Deductions = "deductions", a.OtherNoPayment = "otherNoPayment", a.Totals = "totals", a.Disabled = "disabled", a))(mo || {}), co = /* @__PURE__ */ ((a) => (a.Exclude = "exclude", a.PensionInsurance = "pensionInsurance", a.AccidentInsurance = "accidentInsurance", a.UnemploymentInsurance = "unemploymentInsurance", a.HealthInsurance = "healthInsurance", a.InsurancesDeduction = "insurancesDeduction", a.NoTax = "noTax", a.Tax = "tax", a.TaxDeduction = "taxDeduction", a.CfNoPayment = "cfNoPayment", a.CfPayment = "cfPayment", a.CfDeduction = "cfDeduction", a.CfDeductionAtSalaxy = "cfDeductionAtSalaxy", a))(co || {}), po = /* @__PURE__ */ ((a) => (a.Default = "default", a.Worker = "worker", a.Employer = "employer", a.Employment = "employment", a.Taxcard = "taxcard", a.Insurances = "insurances", a))(po || {}), ho = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.TotalBenefits = "totalBenefits", a.TotalExpenses = "totalExpenses", a.TotalSocialSecurityEmployer = "totalSocialSecurityEmployer", a.TotalSocialSecurityEmployerDebt = "totalSocialSecurityEmployerDebt", a.TotalSocialSecurityEmployerPayment = "totalSocialSecurityEmployerPayment", a.TotalPension = "totalPension", a.TotalPensionPayment = "totalPensionPayment", a.TotalPensionEmployer = "totalPensionEmployer", a.TotalPensionEmployerDebt = "totalPensionEmployerDebt", a.TotalPensionWorker = "totalPensionWorker", a.TotalUnemployment = "totalUnemployment", a.TotalUnemploymentPayment = "totalUnemploymentPayment", a.TotalUnemploymentEmployer = "totalUnemploymentEmployer", a.TotalUnemploymentEmployerDebt = "totalUnemploymentEmployerDebt", a.TotalUnemploymentWorker = "totalUnemploymentWorker", a.TotalPalkkaus = "totalPalkkaus", a.TotalSalary = "totalSalary", a.TotalTax = "totalTax", a.TotalTaxPayment = "totalTaxPayment", a.TotalPayment = "totalPayment", a.TotalWorkerPayment = "totalWorkerPayment", a.TotalService = "totalService", a))(ho || {}), wa = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Disabled = "disabled", a.ManualRow = "manualRow", a.WorktimeImport = "worktimeImport", a.PriceEmployment = "priceEmployment", a.PriceCompany = "priceCompany", a.CustomRowtype = "customRowtype", a))(wa || {}), m = /* @__PURE__ */ ((a) => (a.Unknown = "unknown", a.Salary = "salary", a.HourlySalary = "hourlySalary", a.MonthlySalary = "monthlySalary", a.TotalWorkerPayment = "totalWorkerPayment", a.TotalEmployerPayment = "totalEmployerPayment", a.Compensation = "compensation", a.Overtime = "overtime", a.TesWorktimeShortening = "tesWorktimeShortening", a.EveningAddition = "eveningAddition", a.NightimeAddition = "nightimeAddition", a.SaturdayAddition = "saturdayAddition", a.SundayWork = "sundayWork", a.OtherAdditions = "otherAdditions", a.PaidSickLeaveSalary = "paidSickLeaveSalary", a.PaidSickLeaveHourlySalary = "paidSickLeaveHourlySalary", a.PaidSickLeaveMonthlySalary = "paidSickLeaveMonthlySalary", a.TrainingSalary = "trainingSalary", a.TrainingHourlySalary = "trainingHourlySalary", a.TrainingMonthlySalary = "trainingMonthlySalary", a.AccomodationBenefit = "accomodationBenefit", a.MealBenefit = "mealBenefit", a.PhoneBenefit = "phoneBenefit", a.CarBenefit = "carBenefit", a.BicycleBenefit = "bicycleBenefit", a.OtherBenefit = "otherBenefit", a.HolidayCompensation = "holidayCompensation", a.HolidayBonus = "holidayBonus", a.HolidaySalary = "holidaySalary", a.DailyAllowance = "dailyAllowance", a.DailyAllowanceHalf = "dailyAllowanceHalf", a.MealCompensation = "mealCompensation", a.MilageOwnCar = "milageOwnCar", a.ToolCompensation = "toolCompensation", a.Expenses = "expenses", a.MilageDaily = "milageDaily", a.MilageOther = "milageOther", a.UnionPayment = "unionPayment", a.Foreclosure = "foreclosure", a.Advance = "advance", a.ForeclosureByPalkkaus = "foreclosureByPalkkaus", a.PrepaidExpenses = "prepaidExpenses", a.OtherDeductions = "otherDeductions", a.DeductibleOfExerciseAndCultureBenefit = "deductibleOfExerciseAndCultureBenefit", a.ChildCareSubsidy = "childCareSubsidy", a.ChainsawReduction = "chainsawReduction", a.NonProfitOrg = "nonProfitOrg", a.SubsidisedCommute = "subsidisedCommute", a.IrIncomeType = "irIncomeType", a.Board = "board", a.Remuneration = "remuneration", a.OtherCompensation = "otherCompensation", a.WorkingTimeCompensation = "workingTimeCompensation", a.EmploymentTermination = "employmentTermination", a.HourlySalaryWithWorkingTimeCompensation = "hourlySalaryWithWorkingTimeCompensation", a.PaidSickLeave = "paidSickLeave", a.Training = "training", a.TaxAtSource = "taxAtSource", a.TaxWithholding = "taxWithholding", a.AbsencePeriod = "absencePeriod", a.ServiceCharge = "serviceCharge", a.Service = "service", a.Totals = "totals", a))(m || {}), z = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Count = "count", a.Percent = "percent", a.Days = "days", a.Kilometers = "kilometers", a.Hours = "hours", a))(z || {}), Ea = /* @__PURE__ */ ((a) => (a.Draft = "draft", a.PaymentStarted = "paymentStarted", a.PaymentSucceeded = "paymentSucceeded", a.PaymentCanceled = "paymentCanceled", a.PaymentError = "paymentError", a.PaymentWorkerCopy = "paymentWorkerCopy", a.WorkerRequested = "workerRequested", a.WorkerRequestAccepted = "workerRequestAccepted", a.WorkerRequestDeclined = "workerRequestDeclined", a.PaymentRefunded = "paymentRefunded", a.WaitingApproval = "waitingApproval", a.PayrollDraft = "payrollDraft", a.ProDraft = "proDraft", a.SharedWaiting = "sharedWaiting", a.SharedApproved = "sharedApproved", a.SharedRejected = "sharedRejected", a.History = "history", a.Template = "template", a))(Ea || {}), yo = /* @__PURE__ */ ((a) => (a.All = "all", a.Readonly = "readonly", a.Editable = "editable", a.Sent = "sent", a.Shared = "shared", a.Received = "received", a.Error = "error", a))(yo || {}), vo = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Display = "display", a.Email = "email", a.Audio = "audio", a.CreateItem = "createItem", a.Script = "script", a.PaymentDate = "paymentDate", a))(vo || {}), fo = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Cancelled = "cancelled", a.Confirmed = "confirmed", a.Tentative = "tentative", a.NeedsAction = "needsAction", a.Completed = "completed", a.InProcess = "inProcess", a))(fo || {}), go = /* @__PURE__ */ ((a) => (a.LimitedCarBenefit = "limitedCarBenefit", a.FullCarBenefit = "fullCarBenefit", a))(go || {}), bo = /* @__PURE__ */ ((a) => (a.Unknown = "unknown", a.FiOy = "fiOy", a.FiTm = "fiTm", a.FiRy = "fiRy", a.FiYy = "fiYy", a))(bo || {}), Lt = /* @__PURE__ */ ((a) => (a.Person = "person", a.CustomContact = "customContact", a))(Lt || {}), Ua = /* @__PURE__ */ ((a) => (a.Default = "default", a.WorkerAccount = "workerAccount", a.EmployerOverride = "employerOverride", a.Foreign = "foreign", a))(Ua || {}), jo = /* @__PURE__ */ ((a) => (a.None = "none", a.Calculation = "calculation", a.Row = "row", a.Hidden = "hidden", a))(jo || {}), Ot = /* @__PURE__ */ ((a) => (a.Fi = "fi", a.Ae = "ae", a.At = "at", a.Ba = "ba", a.Bg = "bg", a.By = "by", a.Cn = "cn", a.De = "de", a.Eg = "eg", a.Fr = "fr", a.Gg = "gg", a.Hr = "hr", a.Ie = "ie", a.In = "in", a.Je = "je", a.Kr = "kr", a.Lk = "lk", a.Lv = "lv", a.Me = "me", a.Mx = "mx", a.No = "no", a.Pk = "pk", a.Rs = "rs", a.Sg = "sg", a.Th = "th", a.Tr = "tr", a.Us = "us", a.Vg = "vg", a.Zm = "zm", a.Am = "am", a.Au = "au", a.Bb = "bb", a.Bm = "bm", a.Ca = "ca", a.Cy = "cy", a.Dk = "dk", a.Es = "es", a.Gb = "gb", a.Gr = "gr", a.Hu = "hu", a.Il = "il", a.Is = "is", a.Jp = "jp", a.Ky = "ky", a.Lt = "lt", a.Ma = "ma", a.Mk = "mk", a.My = "my", a.Nz = "nz", a.Pl = "pl", a.Ru = "ru", a.Si = "si", a.Tj = "tj", a.Tz = "tz", a.Uy = "uy", a.Vn = "vn", a.Ar = "ar", a.Az = "az", a.Be = "be", a.Br = "br", a.Ch = "ch", a.Cz = "cz", a.Ee = "ee", a.Ge = "ge", a.Hk = "hk", a.Id = "id", a.Im = "im", a.It = "it", a.Kg = "kg", a.Kz = "kz", a.Lu = "lu", a.Md = "md", a.Mt = "mt", a.Nl = "nl", a.Ph = "ph", a.Ro = "ro", a.Se = "se", a.Sk = "sk", a.Tm = "tm", a.Ua = "ua", a.Uz = "uz", a.Za = "za", a.Other = "other", a))(Ot || {}), So = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Forecast = "forecast", a.Preview = "preview", a.WaitingPalkkaus = "waitingPalkkaus", a.Unread = "unread", a.Read = "read", a.PaymentStarted = "paymentStarted", a.Warning = "warning", a.Paid = "paid", a.Canceled = "canceled", a.Error = "error", a))(So || {}), To = /* @__PURE__ */ ((a) => (a.Palkkaus = "palkkaus", a.CustomSso = "customSso", a.CustomPalkkaus = "customPalkkaus", a.NoCustomerUi = "noCustomerUi", a))(To || {}), Eo = /* @__PURE__ */ ((a) => (a.New = "new", a.Scheduled = "scheduled", a.Succeeded = "succeeded", a.Canceled = "canceled", a.Error = "error", a.Invalid = "invalid", a))(Eo || {}), an = /* @__PURE__ */ ((a) => (a.BankAccount = "bankAccount", a.External = "external", a))(an || {}), xo = /* @__PURE__ */ ((a) => (a.Unknown = "unknown", a.Primary = "primary", a.SecondaryCurrent = "secondaryCurrent", a.Archived = "archived", a))(xo || {}), _a = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Auto = "auto", a.Manual = "manual", a.NoTaxCard = "noTaxCard", a.TaxAtSource = "taxAtSource", a))(_a || {}), K = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Salary = "salary", a.HourlySalary = "hourlySalary", a.MonthlySalary = "monthlySalary", a.Compensation = "compensation", a.BoardMember = "boardMember", a.Entrepreneur = "entrepreneur", a.Farmer = "farmer", a.EmployedByStateEmploymentFund = "employedByStateEmploymentFund", a.Athlete = "athlete", a.PerformingArtist = "performingArtist", a.ForeignWorker = "foreignWorker", a.WorkingAbroad = "workingAbroad", a))(K || {}), ne = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.FileExcel = "fileExcel", a.FileCsv = "fileCsv", a.FilePdf = "filePdf", a.FileText = "fileText", a.CopyExcel = "copyExcel", a.CopyCsv = "copyCsv", a.CopyText = "copyText", a.PaymentChannel = "paymentChannel", a.Api = "api", a))(ne || {}), Ai = /* @__PURE__ */ ((a) => (a.Draft = "draft", a.Instance = "instance", a.Template = "template", a))(Ai || {}), wo = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.ReportAdHoc = "reportAdHoc", a.Import = "import", a.Export = "export", a.Batch = "batch", a))(wo || {}), Ao = /* @__PURE__ */ ((a) => (a.Assumption = "assumption", a.AgeBased = "ageBased", a.AgeGroupBased = "ageGroupBased", a.MonthCorrect = "monthCorrect", a.Exact = "exact", a.Verified = "verified", a))(Ao || {}), Pi = /* @__PURE__ */ ((a) => (a.NotDefined = "notDefined", a.Construction = "construction", a.Mll = "mll", a.ChildCare = "childCare", a.Cleaning = "cleaning", a.SantaClaus = "santaClaus", a.Entrepreneur = "entrepreneur", a.Other = "other", a))(Pi || {}), Po = /* @__PURE__ */ ((a) => (a.Unknown = "unknown", a.Male = "male", a.Female = "female", a))(Po || {}), Do = /* @__PURE__ */ ((a) => (a.NotDefined = "notDefined", a.I = "i", a.J = "j", a.K = "k", a.M = "m", a.O = "o", a.N = "n", a.P = "p", a.Q = "q", a.R = "r", a.S = "s", a.Other = "other", a))(Do || {}), Co = /* @__PURE__ */ ((a) => (a.NotDefined = "notDefined", a.Small = "small", a.Medium = "medium", a.Large = "large", a))(Co || {}), ua = /* @__PURE__ */ ((a) => (a.EmployedByStateEmploymentFund = "employedByStateEmploymentFund", a.JointOwnerWithPayer = "jointOwnerWithPayer", a.PartialOwner = "partialOwner", a.KeyEmployee = "keyEmployee", a.LeasedEmployeeLivingAbroad = "leasedEmployeeLivingAbroad", a.PersonWorkingInFrontierDistrict = "personWorkingInFrontierDistrict", a.PersonWorkingAbroad = "personWorkingAbroad", a.Athlete = "athlete", a.PerformingArtist = "performingArtist", a.RestrictedPeriodInFinland = "restrictedPeriodInFinland", a.NetOfTaxContract = "netOfTaxContract", a.Organization = "organization", a.PersonWorkingOnAlandFerry = "personWorkingOnAlandFerry", a.EntrepreneurOrFarmerNoPensionRequired = "entrepreneurOrFarmerNoPensionRequired", a.DimplomaticMission = "dimplomaticMission", a.Eppo = "eppo", a.LightEntrepreneur = "lightEntrepreneur", a))(ua || {}), Fo = /* @__PURE__ */ ((a) => (a.Default = "default", a.New = "new", a.Changed = "changed", a.Removed = "removed", a))(Fo || {}), Io = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.TaxIdentificationNumber = "taxIdentificationNumber", a.ForeignPersonalIdentificationNumber = "foreignPersonalIdentificationNumber", a.Other = "other", a))(Io || {}), Di = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Forecast = "forecast", a.Preview = "preview", a.WaitingPalkkaus = "waitingPalkkaus", a.Unread = "unread", a.Read = "read", a.WaitingConfirmation = "waitingConfirmation", a.PaymentStarted = "paymentStarted", a.Warning = "warning", a.Paid = "paid", a.Canceled = "canceled", a.Error = "error", a))(Di || {}), Lo = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Net = "net", a.Tax = "tax", a.TaxWithholding = "taxWithholding", a.TaxSocialSecurity = "taxSocialSecurity", a.TaxAtSource = "taxAtSource", a.Unemployment = "unemployment", a.Pension = "pension", a.Union = "union", a.Foreclosure = "foreclosure", a.Payroll = "payroll", a.Service = "service", a.Fee = "fee", a.Gross = "gross", a.Verification = "verification", a))(Lo || {}), Oo = /* @__PURE__ */ ((a) => (a.NewYearsDay = "newYearsDay", a.Epiphany = "epiphany", a.GoodFriday = "goodFriday", a.EasterSunday = "easterSunday", a.EasterSaturday = "easterSaturday", a.EasterMonday = "easterMonday", a.MayDay = "mayDay", a.AscensionDay = "ascensionDay", a.Pentecost = "pentecost", a.MidsummerEve = "midsummerEve", a.MidsummerDay = "midsummerDay", a.AllSaintsDay = "allSaintsDay", a.IndependenceDay = "independenceDay", a.ChristmasEve = "christmasEve", a.ChristmasDay = "christmasDay", a.StStephensDay = "stStephensDay", a))(Oo || {}), Mo = /* @__PURE__ */ ((a) => (a.Initial = "initial", a.Manual = "manual", a.CalcDraft = "calcDraft", a.CalcPaid = "calcPaid", a))(Mo || {}), No = /* @__PURE__ */ ((a) => (a.None = "none", a.PayForHolidaySalary = "payForHolidaySalary", a.PaySummerBonus = "paySummerBonus", a.PaySelectedDays = "paySelectedDays", a.Pay24Days = "pay24Days", a.PayAllBonus = "payAllBonus", a))(No || {}), Mt = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Permanent14Days = "permanent14Days", a.Permanent35Hours = "permanent35Hours", a.TemporaryTimeOff = "temporaryTimeOff", a.HolidayCompensation = "holidayCompensation", a.HolidayCompensationIncluded = "holidayCompensationIncluded", a.NoHolidays = "noHolidays", a))(Mt || {}), ba = /* @__PURE__ */ ((a) => (a.Official = "official", a.NonBanking = "nonBanking", a.Holiday = "holiday", a))(ba || {}), ja = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.NormalMonthlyPay = "normalMonthlyPay", a.AverageDailyPay = "averageDailyPay", a.PercentageBasedPay = "percentageBasedPay", a.AverageHourlyPay = "averageHourlyPay", a.HolidayCompensation = "holidayCompensation", a.OtherPay = "otherPay", a))(ja || {}), Ro = /* @__PURE__ */ ((a) => (a.Open = "open", a.Closed = "closed", a.Printed = "printed", a))(Ro || {}), Bo = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Ok = "ok", a.OkWithModifications = "okWithModifications", a.WillHandleMyself = "willHandleMyself", a))(Bo || {}), Vo = /* @__PURE__ */ ((a) => (a.None = "none", a.LähiTapiola = "lähiTapiola", a.Pohjola = "pohjola", a.If = "if", a.Fennia = "fennia", a.AVakuutus = "aVakuutus", a.Aktia = "aktia", a.Pohjantähti = "pohjantähti", a.Tryg = "tryg", a.Ålands = "ålands", a.Turva = "turva", a.Redarnas = "redarnas", a.Folksam = "folksam", a.Alandia = "alandia", a.Other = "other", a.Pending = "pending", a))(Vo || {}), Nt = /* @__PURE__ */ ((a) => (a.NotSubjectToEarningsRelatedPensionInsurance = "notSubjectToEarningsRelatedPensionInsurance", a.NotSubjectToAccidentAndOccupationalDiseaseInsurance = "notSubjectToAccidentAndOccupationalDiseaseInsurance", a.NotSubjectToUnemploymentInsurance = "notSubjectToUnemploymentInsurance", a.NotSubjectToHealthInsurance = "notSubjectToHealthInsurance", a.VoluntaryEarningsRelatedPensionInsurance = "voluntaryEarningsRelatedPensionInsurance", a.NoObligationToHealthInsuranceDailyAllowanceContribution = "noObligationToHealthInsuranceDailyAllowanceContribution", a))(Nt || {}), Ho = /* @__PURE__ */ ((a) => (a.Default = "default", a.Foreign = "foreign", a.Mixed = "mixed", a))(Ho || {}), Ci = /* @__PURE__ */ ((a) => (a.InvoiceDate = "invoiceDate", a.DueDate = "dueDate", a.LogicalDate = "logicalDate", a))(Ci || {}), Uo = /* @__PURE__ */ ((a) => (a.Default = "default", a.Salary = "salary", a.SalaryInPast = "salaryInPast", a))(Uo || {}), Ko = /* @__PURE__ */ ((a) => (a.NoMoney = "noMoney", a.OneOff = "oneOff", a.UnjustEnrichment = "unjustEnrichment", a))(Ko || {}), $o = /* @__PURE__ */ ((a) => (a.IncludeAll = "includeAll", a.IncludePension = "includePension", a.IncludeHealthInsurance = "includeHealthInsurance", a.IncludeUnemployment = "includeUnemployment", a.IncludeAccidentInsurance = "includeAccidentInsurance", a.ExcludeAll = "excludeAll", a.ExcludePension = "excludePension", a.ExcludeHealthInsurance = "excludeHealthInsurance", a.ExcludeUnemployment = "excludeUnemployment", a.ExcludeAccidentInsurance = "excludeAccidentInsurance", a))($o || {}), Yo = /* @__PURE__ */ ((a) => (a.Manual = "manual", a.Usecase = "usecase", a.UsecaseV02 = "usecaseV02", a))(Yo || {}), xe = /* @__PURE__ */ ((a) => (a.Default = "default", a.Fi = "fi", a.Sv = "sv", a.En = "en", a))(xe || {}), de = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Person = "person", a.Company = "company", a.PersonCreatedByEmployer = "personCreatedByEmployer", a.Partner = "partner", a))(de || {}), Wo = /* @__PURE__ */ ((a) => (a.Procuration = "procuration", a.PowerOfAttorney = "powerOfAttorney", a.ApparentAuthority = "apparentAuthority", a.Other = "other", a))(Wo || {}), _o = /* @__PURE__ */ ((a) => (a.Draft = "draft", a.WaitingApproval = "waitingApproval", a.Checked = "checked", a.Sent = "sent", a.Handled = "handled", a.Canceled = "canceled", a))(_o || {}), Go = /* @__PURE__ */ ((a) => (a.NewWorkerInsurance = "newWorkerInsurance", a.MoveWorkerInsurance = "moveWorkerInsurance", a.NewEntrepreneurInsurance = "newEntrepreneurInsurance", a.MoveEntrepreneurInsurance = "moveEntrepreneurInsurance", a.Other = "other", a))(Go || {}), Jo = /* @__PURE__ */ ((a) => (a.Undefined = "undefined", a.Owner = "owner", a.OtherParty = "otherParty", a.System = "system", a))(Jo || {}), zo = /* @__PURE__ */ ((a) => (a.Draft = "draft", a.Active = "active", a.Approved = "approved", a.Rejected = "rejected", a.Archived = "archived", a.Template = "template", a))(zo || {}), Xo = /* @__PURE__ */ ((a) => (a.Email = "email", a.Sms = "sms", a))(Xo || {}), qo = /* @__PURE__ */ ((a) => (a.Created = "created", a.Open = "open", a.Error = "error", a.Cancel = "cancel", a.Done = "done", a.Expired = "expired", a))(qo || {}), Zo = /* @__P