@insurup/sdk 0.1.24 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.browser.js +1 -1
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.browser.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var fe=Object.defineProperty;var tt=(e,t,r)=>t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var rt=(e,t)=>{for(var r in t)fe(e,r,{get:t[r],enumerable:!0})};var h=(e,t,r)=>tt(e,typeof t!="symbol"?t+"":t,r);var Ce={name:"@insurup/sdk",version:"0.1.24",description:"Type-safe TypeScript SDK for the InsurUp insurance platform with GraphQL support. Tree-shakeable, works everywhere.",keywords:["insurup","insurance","sdk","typescript","api-client","graphql","policy","claims","coverage","vehicle-insurance","property-insurance"],author:"InsurUp Team",license:"MIT",homepage:"https://github.com/InsurUp/ts-toolkit#readme",repository:{type:"git",url:"git+https://github.com/InsurUp/ts-toolkit.git"},bugs:{url:"https://github.com/InsurUp/ts-toolkit/issues"},engines:{node:">=18"},type:"module",sideEffects:!1,main:"./dist/index.cjs",module:"./dist/index.js",types:"./dist/index.d.ts",files:["dist"],exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.js",require:"./dist/index.cjs",default:"./dist/index.js"},"./browser":{types:"./dist/index.d.ts",import:"./dist/index.browser.js",default:"./dist/index.browser.js"}},scripts:{build:"tsup && tsc -p tsconfig.build.json","check-types":"tsc --noEmit",dev:"tsup --watch",docs:"typedoc",lint:"eslint src test --max-warnings 0",test:"vitest run","test:unit":"vitest run test/unit","test:integration":"vitest run test/integration","test:watch":"vitest","test:coverage":"vitest run --coverage","test:coverage:unit":"vitest run test/unit --coverage","test:coverage:integration":"vitest run test/integration --coverage"},publishConfig:{access:"public"},devDependencies:{"@eslint/js":"^10.0.1","@vitest/coverage-v8":"^4.1.6",eslint:"^10.4.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.5",msw:"^2.14.6",prettier:"^3.8.3",tsup:"^8.5.1",typedoc:"^0.28.19",typescript:"^6.0.3","typescript-eslint":"^8.59.3",vitest:"^4.1.6"},dependencies:{"@insurup/contracts":"workspace:*","@microsoft/signalr":"^10.0.0"}};var st=Ce.version;var te=(i=>(i.Unknown="Unknown",i.JsonSerialization="JsonSerialization",i.JsonDeserialization="JsonDeserialization",i.NullResponse="NullResponse",i.Timeout="Timeout",i.HttpRequestFailed="HttpRequestFailed",i.UnexpectedNoContent="UnexpectedNoContent",i.GraphQLError="GraphQLError",i))(te||{}),ue=(R=>(R.Unknown="Unknown",R.AccessDenied="AccessDenied",R.BusinessValidation="BusinessValidation",R.FeatureNotSupported="FeatureNotSupported",R.InputValidation="InputValidation",R.ResourceDuplicate="ResourceDuplicate",R.ResourceInvalidState="ResourceInvalidState",R.ResourceNotFound="ResourceNotFound",R.EndpointNotFound="EndpointNotFound",R.UnsupportedMediaType="UnsupportedMediaType",R.MethodNotAllowed="MethodNotAllowed",R.Unauthorized="Unauthorized",R.Upstream="Upstream",R))(ue||{}),re=(p=>(p.Forbidden="FORBIDDEN",p.Unauthorized="UNAUTHORIZED",p.NotFound="NOT_FOUND",p.BadRequest="BAD_REQUEST",p.Conflict="CONFLICT",p.NotSupported="NOT_SUPPORTED",p.UpstreamError="UPSTREAM_ERROR",p.InternalError="INTERNAL_ERROR",p.ValidationError="VALIDATION_ERROR",p.FilterRequired="FILTER_REQUIRED",p.FilterMaxSpanExceeded="FILTER_MAX_SPAN_EXCEEDED",p.Unknown="UNKNOWN",p))(re||{});var ot={"https://api.insurup.com/problems/access-denied":"AccessDenied","https://api.insurup.com/problems/business-validation":"BusinessValidation","https://api.insurup.com/problems/feature-not-supported":"FeatureNotSupported","https://api.insurup.com/problems/input-validation":"InputValidation","https://api.insurup.com/problems/resource-duplicate":"ResourceDuplicate","https://api.insurup.com/problems/resource-invalid-state":"ResourceInvalidState","https://api.insurup.com/problems/resource-not-found":"ResourceNotFound","https://api.insurup.com/problems/endpoint-not-found":"EndpointNotFound","https://api.insurup.com/problems/unauthorized":"Unauthorized","https://api.insurup.com/problems/upstream-service":"Upstream","https://api.insurup.com/problems/unsupported-media-type":"UnsupportedMediaType","https://api.insurup.com/problems/method-not-allowed":"MethodNotAllowed"};function it(e){let t=e.toLowerCase().trim();return ot[t]??"Unknown"}function at(e){return!e||!Array.isArray(e)?[]:e.filter(t=>t!=null).map(t=>({propertyName:t.propertyName??"",errorMessage:t.errorMessage??"",attemptedValue:t.attemptedValue??null}))}function pe(e,t){let r={};try{if(t.trim()){let a=JSON.parse(t);typeof a=="object"&&a!==null&&(r=a)}}catch{}let n=r.type??"https://api.insurup.com/problems/unknown",s=it(n);return{kind:"server-error",isSuccess:!1,message:r.detail??(e.statusText||"Unknown server error"),type:s,typeString:n,title:r.title??`HTTP ${e.status}`,detail:r.detail??(e.statusText||"Unknown server error"),instance:r.instance??"",status:r.status??e.status,codes:r.codes??[],traceId:r.traceId??void 0,template:r.template??"",templateArgs:r.templateArgs??{},suggestions:r.suggestions??[],validationErrors:at(r.validationErrors)}}function ne(e){if(e instanceof Error){if(e.name==="AbortError"||e.message.includes("timeout"))return{kind:"client-error",isSuccess:!1,message:"Request timed out",type:"Timeout",error:e};let t=e.message.toLowerCase();return e.name==="TypeError"||t.includes("fetch")||t.includes("network")||t.includes("failed")||t.includes("econn")||t.includes("enotfound")?{kind:"client-error",isSuccess:!1,message:"HTTP request failed",type:"HttpRequestFailed",error:e}:{kind:"client-error",isSuccess:!1,message:"HTTP request failed",type:"HttpRequestFailed",error:e}}return{kind:"client-error",isSuccess:!1,message:"Unknown error occurred",type:"Unknown",error:e}}function ye(e){return{kind:"client-error",isSuccess:!1,message:e instanceof Error?e.message:"Failed to serialize request to JSON",type:"JsonSerialization",error:e}}function q(e){return{kind:"client-error",isSuccess:!1,message:"Failed to parse response JSON",type:"JsonDeserialization",error:e}}function ce(){return{kind:"client-error",isSuccess:!1,message:"Expected response data but received no content",type:"UnexpectedNoContent"}}function lt(e){return e instanceof P?e.error:{kind:"client-error",isSuccess:!1,message:e.message,type:"Unknown"}}var P=class extends Error{constructor(r){super(r.message);h(this,"error");this.name="InsurUpError",this.error=r}};function v(e){return{kind:"success",isSuccess:!0,message:"Success",data:e}}function de(){return{kind:"success",isSuccess:!0,message:"Success"}}function ut(e){if(e.isSuccess)return e.data;throw new P(e)}function pt(e){if(!e.isSuccess)throw new P(e)}function ct(e){if(e.isSuccess)return e.data;throw new P(e)}function dt(e){if(!e.isSuccess)throw new P(e)}function me(e){return{kind:"graphql-error",isSuccess:!1,message:e[0]?.message??"Unknown GraphQL error",errors:e}}var mt={retries:3,factor:2,minTimeout:1e3,maxTimeout:1e4,randomize:!0,backoffStrategy:"exponential",retryableStatusCodes:[408,429,500,502,503,504],onFailedAttempt:()=>{}},ht={info:(e,t)=>{t!==void 0?console.info(e,t):console.info(e)},warn:(e,t)=>{t!==void 0?console.warn(e,t):console.warn(e)},error:(e,t)=>{t!==void 0?console.error(e,t):console.error(e)}},L={baseUrl:"https://api.insurup.com/api/",customHeaders:{},userAgent:"@insurup/sdk",timeoutMs:3e4,logLevel:"none",logger:ht,retry:void 0,tokenProvider:void 0,onRequest:void 0,onResponse:void 0};function Ee(e){return{baseUrl:e?.baseUrl??L.baseUrl,customHeaders:{...L.customHeaders,...e?.customHeaders},userAgent:e?.userAgent??L.userAgent,timeoutMs:e?.timeoutMs??L.timeoutMs,logLevel:e?.logLevel??L.logLevel,logger:e?.logger??L.logger,retry:e?.retry?{...mt,...e.retry}:void 0,tokenProvider:e?.tokenProvider,onRequest:e?.onRequest,onResponse:e?.onResponse}}async function Pe(e,t){let{retries:r,factor:n,minTimeout:s,maxTimeout:a,randomize:l,backoffStrategy:d,onFailedAttempt:i}=t,m=1;for(;;)try{return await e(m)}catch(u){if(m>r)throw u;let p;switch(d){case"linear":p=s*m;break;case"constant":p=s;break;default:p=s*Math.pow(n,m-1)}l&&(p*=1+Math.random()),p=Math.min(p,a),i&&i({attemptNumber:m,retriesLeft:r-m+1,name:u instanceof Error?u.name:"Error",message:u instanceof Error?u.message:String(u),error:u instanceof Error?u:new Error(String(u))}),await new Promise(R=>setTimeout(R,p)),m++}}var se=class{constructor(t){h(this,"options");this.options=Ee(t)}async sendInternal(t,r,n,s,a=!0){let l=Date.now(),i={url:`${this.options.baseUrl.replace(/\/$/,"")}/${r.replace(/^\//,"")}`,method:t,headers:{...this.options.customHeaders,...s?.headers},body:n};if(this.options.onRequest)try{i=await this.options.onRequest(i)}catch(u){this.options.logLevel!=="none"&&this.options.logger.warn("Request interceptor failed:",u)}this.logRequest(t,r,n,s?.headers);let m=async u=>{try{let c=await this.sendSingleRequest(i.method,r,i.body,{headers:i.headers,signal:s?.signal,timeoutMs:s?.timeoutMs},a);if(c.kind==="success")return c;if(this.shouldRetryResult(c)){let p=new Error(c.message);throw p.result=c,p.attemptNumber=u,p}return c}catch(c){let p=ne(c);if(p.type==="Timeout")return p;if(p.type==="HttpRequestFailed"&&this.options.retry){let R=new Error(p.message);throw R.result=p,R.attemptNumber=u,R}return p}};try{let u;this.options.retry?u=await Pe(m,{...this.options.retry,onFailedAttempt:p=>{let R=p.error;R.result&&this.logRetry(p.attemptNumber,R.result),this.options.retry?.onFailedAttempt&&this.options.retry.onFailedAttempt(p)}}):u=await m(1);let c=Date.now()-l;if(this.logResponse("SUCCESS",c,1,u),this.options.onResponse)try{return await this.options.onResponse(u,i)}catch(p){this.options.logLevel!=="none"&&this.options.logger.warn("Response interceptor failed:",p)}return u}catch(u){let c=Date.now()-l,p=u;if(p.result){if(this.logResponse("ERROR",c,p.attemptNumber||1,p.result),this.options.onResponse)try{return await this.options.onResponse(p.result,i)}catch(le){this.options.logLevel!=="none"&&this.options.logger.warn("Response interceptor failed:",le)}return p.result}let R=ne(u);if(this.logResponse("ERROR",c,1,R),this.options.onResponse)try{return await this.options.onResponse(R,i)}catch(le){this.options.logLevel!=="none"&&this.options.logger.warn("Response interceptor failed:",le)}return R}}async sendSingleRequest(t,r,n,s,a=!0){let l=`${this.options.baseUrl.replace(/\/$/,"")}/${r.replace(/^\//,"")}`,d=await this.buildHeaders(s?.headers),i=null;if(n)if(n instanceof FormData)i=n;else try{i=JSON.stringify(n),this.hasContentTypeHeader(d)||(d["Content-Type"]="application/json")}catch(R){return ye(R)}let m=new AbortController,u=setTimeout(()=>m.abort(),s?.timeoutMs??this.options.timeoutMs),c;if(s?.signal)if(s.signal.aborted)m.abort();else{let R=()=>m.abort();s.signal.addEventListener("abort",R,{once:!0}),c=()=>s.signal.removeEventListener("abort",R)}let p;try{p=await fetch(l,{method:t,headers:d,body:i,signal:m.signal})}finally{clearTimeout(u),c?.()}return await this.handleResponse(p,a)}async get(t,r){return this.sendInternal("GET",t,null,r,!0)}async post(t,r,n){return this.sendInternal("POST",t,r,n,!0)}async postNoContent(t,r,n){return this.sendInternal("POST",t,r,n,!1)}async put(t,r,n){return this.sendInternal("PUT",t,r,n,!0)}async putNoContent(t,r,n){return this.sendInternal("PUT",t,r,n,!1)}async patch(t,r,n){return this.sendInternal("PATCH",t,r,n,!0)}async patchNoContent(t,r,n){return this.sendInternal("PATCH",t,r,n,!1)}async delete(t,r){return this.sendInternal("DELETE",t,null,r,!0)}async deleteNoContent(t,r){return this.sendInternal("DELETE",t,null,r,!1)}async getBlob(t,r){let n=`${this.options.baseUrl.replace(/\/$/,"")}/${t.replace(/^\//,"")}`,s=await this.buildHeaders(r?.headers),a={url:n,method:"GET",headers:s};if(this.options.onRequest)try{a=await this.options.onRequest(a)}catch(u){this.options.logLevel!=="none"&&this.options.logger.warn("Request interceptor failed:",u)}this.logRequest("GET",t,void 0,r?.headers);let l=new AbortController,d=setTimeout(()=>l.abort(),r?.timeoutMs??this.options.timeoutMs),i;if(r?.signal)if(r.signal.aborted)l.abort();else{let u=()=>l.abort();r.signal.addEventListener("abort",u,{once:!0}),i=()=>r.signal.removeEventListener("abort",u)}let m;try{m=await fetch(n,{method:"GET",headers:a.headers,signal:l.signal})}catch(u){let c=ne(u);if(this.options.onResponse)try{return await this.options.onResponse(c,a)}catch(p){this.options.logLevel!=="none"&&this.options.logger.warn("Response interceptor failed:",p)}return c}finally{clearTimeout(d),i?.()}if(!m.ok){let u=await m.text(),c=pe(m,u);if(this.options.onResponse)try{return await this.options.onResponse(c,a)}catch(p){this.options.logLevel!=="none"&&this.options.logger.warn("Response interceptor failed:",p)}return c}try{let u=await m.blob(),c=v(u);if(this.options.onResponse)try{return await this.options.onResponse(c,a)}catch(p){this.options.logLevel!=="none"&&this.options.logger.warn("Response interceptor failed:",p)}return c}catch(u){let c=q(u);if(this.options.onResponse)try{return await this.options.onResponse(c,a)}catch(p){this.options.logLevel!=="none"&&this.options.logger.warn("Response interceptor failed:",p)}return c}}async buildHeaders(t){let r={...this.options.customHeaders,...t};if(!(typeof globalThis=="object"&&"window"in globalThis)&&this.options.userAgent&&(r["User-Agent"]=this.options.userAgent),this.options.tokenProvider)try{let s=await this.options.tokenProvider();s&&(r.Authorization=`Bearer ${s}`)}catch(s){this.options.logLevel!=="none"&&this.options.logger.warn("Token provider failed:",s)}return r}hasContentTypeHeader(t){return Object.keys(t).some(r=>r.toLowerCase()==="content-type")}isJsonContentType(t){let r=t.toLowerCase();return r.includes("application/json")||r.includes("application/vnd.api+json")||r.includes("application/hal+json")||r.includes("application/problem+json")||r.includes("text/json")||/^application\/.*\+json/i.test(t)}async handleResponse(t,r){if(!t.ok){let a=await t.text();return pe(t,a)}if(t.status===204||t.status===205)return r?ce():de();let n=await t.text();if(!n.trim())return r?ce():de();let s=t.headers.get("content-type");return s&&!this.isJsonContentType(s)?q(new Error(`Expected JSON response but got ${s}`)):this.parseSuccessResponse(n)}parseSuccessResponse(t){try{let r=JSON.parse(t);return v(r)}catch(r){return q(r)}}shouldRetryResult(t){return this.options.retry?t.kind==="server-error"?this.options.retry.retryableStatusCodes.includes(t.status):t.kind==="client-error"?t.type==="HttpRequestFailed":!1:!1}logRequest(t,r,n,s){if(this.options.logLevel==="none")return;let a=`${this.options.baseUrl.replace(/\/$/,"")}/${r.replace(/^\//,"")}`;if(this.options.logLevel==="basic")this.options.logger.info(`${t} ${a}`);else if(this.options.logLevel==="detailed"){let l=this.sanitizeHeaders(s),d=this.sanitizeBody(n);this.options.logger.info(`Request: ${t} ${a}`,{headers:l,body:d})}}logResponse(t,r,n,s){if(this.options.logLevel==="none")return;let a=n>1?` (attempt ${n})`:"";if(this.options.logLevel==="basic")t==="SUCCESS"?this.options.logger.info(`${t} in ${r}ms${a}`):this.options.logger.error(`${t} in ${r}ms${a}`);else if(this.options.logLevel==="detailed")if(t==="SUCCESS"){let l=s.kind==="success"&&"data"in s?this.sanitizeResponseData(s.data):void 0;this.options.logger.info(`Response: ${t} in ${r}ms${a}`,{data:l})}else{let l=this.sanitizeError(s);this.options.logger.error(`Response: ${t} in ${r}ms${a}`,{error:l})}}logRetry(t,r){if(this.options.logLevel==="none")return;let n=r.kind==="server-error"?`HTTP ${r.status}`:r.kind==="client-error"?r.type:"Unknown error";this.options.logger.warn(`Retry attempt ${t} failed due to: ${n}`)}sanitizeHeaders(t){if(!t)return;let r={},n=["authorization","cookie","x-api-key","x-auth-token"];for(let[s,a]of Object.entries(t)){let l=s.toLowerCase();n.includes(l)?r[s]="[REDACTED]":r[s]=a}return r}sanitizeBody(t){if(t){if(t instanceof FormData)return"[FormData body]";if(typeof t=="string")return t.length>1e4?"[Large string body - truncated for logging]":t.length>1e3?`${t.substring(0,1e3)}... [truncated]`:t;if(typeof t=="number"||typeof t=="boolean")return t;try{if(this.isLargeObject(t))return"[Large object body - truncated for logging]";let r=JSON.stringify(t);return r.length>1e3?`${r.substring(0,1e3)}... [truncated]`:t}catch{return"[Unable to serialize body]"}}}isLargeObject(t){if(!t||typeof t!="object")return!1;try{let r=0,n=0,s=(a,l=0)=>{if(l>3||r>50)return!0;if(n=Math.max(n,l),Array.isArray(a)){if(a.length>100)return!0;for(let d=0;d<Math.min(a.length,10);d++)if(s(a[d],l+1))return!0}else if(a&&typeof a=="object"){let d=Object.keys(a);r+=d.length;for(let i of d.slice(0,10))if(s(a[i],l+1))return!0}return!1};return s(t)}catch{return!0}}sanitizeResponseData(t){if(t==null)return t;try{if(this.isLargeObject(t))return"[Large response data - truncated for logging]";let r=JSON.stringify(t);return r.length>1e3?`${r.substring(0,1e3)}... [truncated]`:t}catch{return"[Unable to serialize response data]"}}sanitizeError(t){return t.kind==="server-error"?{type:t.type,status:t.status,title:t.title,detail:t.detail,traceId:t.traceId}:t.kind==="client-error"?{type:t.type,message:t.message}:{message:"Unknown error type"}}};function Rt(e){if(typeof e!="string")return"UNKNOWN";switch(e.toUpperCase()){case"FORBIDDEN":return"FORBIDDEN";case"UNAUTHORIZED":return"UNAUTHORIZED";case"NOT_FOUND":return"NOT_FOUND";case"BAD_REQUEST":return"BAD_REQUEST";case"CONFLICT":return"CONFLICT";case"NOT_SUPPORTED":return"NOT_SUPPORTED";case"UPSTREAM_ERROR":return"UPSTREAM_ERROR";case"INTERNAL_ERROR":return"INTERNAL_ERROR";case"VALIDATION_ERROR":return"VALIDATION_ERROR";case"FILTER_REQUIRED":return"FILTER_REQUIRED";case"FILTER_MAX_SPAN_EXCEEDED":return"FILTER_MAX_SPAN_EXCEEDED";default:return"UNKNOWN"}}function gt(e){return e?{...e,code:Rt(e.code),traceId:typeof e.traceId=="string"?e.traceId:void 0,codes:Array.isArray(e.codes)?e.codes.filter(r=>typeof r=="string"):void 0,template:typeof e.template=="string"?e.template:void 0,templateArgs:typeof e.templateArgs=="object"&&e.templateArgs!==null?e.templateArgs:void 0,suggestions:Array.isArray(e.suggestions)?e.suggestions.filter(r=>typeof r=="string"):void 0}:void 0}function It(e){return e.map(t=>{let r=t.locations?.map(n=>({line:n.line,column:n.column}));return{message:t.message,locations:r,path:t.path,extensions:gt(t.extensions)}})}var W=class{constructor(t){this.http=t}async query(t,r,n){let s={query:t,variables:r},a=await this.http.post("graphql",s,n);if(!a.isSuccess)return a;let l=a.data;if(l.errors&&l.errors.length>0){let d=It(l.errors);return me(d)}return l.data?v(l.data):q(new Error("GraphQL response contained no data and no errors"))}};import{HttpTransportType as ft,HubConnectionBuilder as Ct,HubConnectionState as he,LogLevel as yt}from"@microsoft/signalr";var O={success:"ReceiveProposalProductSuccess",failed:"ReceiveProposalProductFailed",inProgress:"ReceiveProposalProductInProgress",revised:"ReceiveProposalProductRevised",purchasing:"ReceiveProposalProductPurchasing",purchased:"ReceiveProposalProductPurchased",purchaseFailed:"ReceiveProposalProductPurchaseFailed",coverage:"ReceiveProposalProductCoverage"},Et="/hubs/proposal-detail",Ae="Register",D=class{constructor(t){h(this,"hubUrl");h(this,"tokenProvider");h(this,"logLevel");h(this,"connection",null);h(this,"startPromise",null);h(this,"subscribers",new Map);this.hubUrl=new URL(Et,Pt(t.hubsBaseUrl)).toString(),this.tokenProvider=t.tokenProvider,this.logLevel=t.logLevel??yt.Warning}async subscribeProposalDetail(t,r){if(!t)throw new Error("subscribeProposalDetail: proposalId is required");let n=this.subscribers.get(t),s=n===void 0;n===void 0&&(n=new Set,this.subscribers.set(t,n)),n.add(r);try{let l=await this.ensureStarted();s&&await l.send(Ae,{proposalId:t})}catch(l){throw n.delete(r),n.size===0&&this.subscribers.delete(t),l}let a=!1;return()=>{if(a)return;a=!0;let l=this.subscribers.get(t);l&&(l.delete(r),l.size===0&&this.subscribers.delete(t),this.subscribers.size===0&&this.stop())}}async close(){this.subscribers.clear(),await this.stop()}async ensureStarted(){if(this.connection&&this.connection.state===he.Connected)return this.connection;if(this.startPromise)return this.startPromise;let t=this.buildConnection();this.connection=t,this.startPromise=(async()=>(await t.start(),t))();try{return await this.startPromise}catch(r){throw this.connection=null,r}finally{this.startPromise=null}}buildConnection(){let t=this.tokenProvider,r=new Ct().withUrl(this.hubUrl,{accessTokenFactory:t?()=>At(t):void 0,transport:ft.WebSockets,skipNegotiation:!0}).withAutomaticReconnect().configureLogging(this.logLevel).build();return this.registerHandlers(r),r.onreconnected(()=>{this.reRegisterAll(r)}),r}registerHandlers(t){let r=(n,s)=>{t.on(n,a=>{let l=this.subscribers.get(a.proposalId);if(l)for(let d of l)s(d)?.(a)})};r(O.success,n=>n.onProductSuccess),r(O.failed,n=>n.onProductFailed),r(O.inProgress,n=>n.onProductInProgress),r(O.revised,n=>n.onProductRevised),r(O.purchasing,n=>n.onProductPurchasing),r(O.purchased,n=>n.onProductPurchased),r(O.purchaseFailed,n=>n.onProductPurchaseFailed),r(O.coverage,n=>n.onProductCoverage)}async reRegisterAll(t){for(let r of this.subscribers.keys())await t.send(Ae,{proposalId:r})}async stop(){let t=this.connection;t&&(this.connection=null,!(t.state===he.Disconnected||t.state===he.Disconnecting)&&await t.stop())}};function Pt(e){return e.endsWith("/")?e:`${e}/`}async function At(e){return await e()??""}var Ge={};rt(Ge,{addressParameters:()=>A,agentBranches:()=>N,agentRoles:()=>T,agentSetupRequests:()=>oe,agentUsers:()=>I,agents:()=>y,b2c:()=>F,banks:()=>De,cases:()=>g,contactForm:()=>bt,coverageChoices:()=>_,coverageGroups:()=>U,customers:()=>Ue,endpoints:()=>o,filePolicyTransfers:()=>ve,files:()=>ie,financialInstitutions:()=>Fe,insuranceCompanies:()=>be,insuranceServices:()=>Te,languages:()=>ae,policies:()=>Le,policyTransfers:()=>_e,properties:()=>b,proposals:()=>qe,releaseNotes:()=>We,resourceKeys:()=>Oe,templates:()=>S,vehicleParameters:()=>Ne,vehicles:()=>Se,webhooks:()=>E});var bt={submit:"contact-form"},y={getCurrentAgent:"agents/me",updateCurrentAgent:"agents/me",reSyncCurrentAgentWithInsurance:"agents/me/re-sync",insuranceCompanies:{getMyInsuranceCompanies:"agents/me/insurance-companies",addInsuranceCompanyToAgent:"agents/me/insurance-companies",getBranches:{definition:"agents/me/insurance-companies/{AgentInsuranceCompanyId}/branches",render:e=>"agents/me/insurance-companies/{AgentInsuranceCompanyId}/branches".replace("{AgentInsuranceCompanyId}",encodeURIComponent(e))},getConnection:{definition:"agents/me/insurance-companies/{AgentInsuranceCompanyId}/connection",render:e=>"agents/me/insurance-companies/{AgentInsuranceCompanyId}/connection".replace("{AgentInsuranceCompanyId}",encodeURIComponent(e))},updateConnection:{definition:"agents/me/insurance-companies/{AgentInsuranceCompanyId}/connection",render:e=>"agents/me/insurance-companies/{AgentInsuranceCompanyId}/connection".replace("{AgentInsuranceCompanyId}",encodeURIComponent(e))},updateBranches:{definition:"agents/me/insurance-companies/{AgentInsuranceCompanyId}/branches",render:e=>"agents/me/insurance-companies/{AgentInsuranceCompanyId}/branches".replace("{AgentInsuranceCompanyId}",encodeURIComponent(e))},reSyncAgentInsuranceCompanyWithInsurance:{definition:"agents/me/insurance-companies/{AgentInsuranceCompanyId}/re-sync",render:e=>"agents/me/insurance-companies/{AgentInsuranceCompanyId}/re-sync".replace("{AgentInsuranceCompanyId}",encodeURIComponent(e))},remove:{definition:"agents/me/insurance-companies/{AgentInsuranceCompanyId}",render:e=>"agents/me/insurance-companies/{AgentInsuranceCompanyId}".replace("{AgentInsuranceCompanyId}",encodeURIComponent(e))}}},be={getInsuranceCompanies:"insurance-companies",getInsuranceCompanyProducts:{definition:"insurance-companies/{InsuranceCompanyId}/products",render:e=>"insurance-companies/{InsuranceCompanyId}/products".replace("{InsuranceCompanyId}",encodeURIComponent(e.toString()))},getAllProducts:"insurance-companies/products",connectionFields:{getAgentBasedConnectionFieldsByCompanyId:{definition:"insurance-companies/{InsuranceCompanyId}/connection-fields:agent-based",render:e=>"insurance-companies/{InsuranceCompanyId}/connection-fields:agent-based".replace("{InsuranceCompanyId}",encodeURIComponent(e.toString()))}}},Oe={getAll:"resource-keys"},Ue={createCustomer:"customers",getCurrentCustomer:"customers/me",externalLookup:"customers/external-lookup",setCustomerRepresentative:{definition:"customers/{CustomerId}/representative",render:e=>"customers/{CustomerId}/representative".replace("{CustomerId}",encodeURIComponent(e))},getCustomer:{definition:"customers/{CustomerId}",render:e=>"customers/{CustomerId}".replace("{CustomerId}",encodeURIComponent(e))},updateCustomer:{definition:"customers/{CustomerId}",render:e=>"customers/{CustomerId}".replace("{CustomerId}",encodeURIComponent(e))},deleteCustomer:{definition:"customers/{CustomerId}",render:e=>"customers/{CustomerId}".replace("{CustomerId}",encodeURIComponent(e))},getCustomerAssets:{definition:"customers/{CustomerId}/assets",render:e=>"customers/{CustomerId}/assets".replace("{CustomerId}",encodeURIComponent(e))},getHealthInfo:{definition:"customers/{CustomerId}/health-info",render:e=>"customers/{CustomerId}/health-info".replace("{CustomerId}",encodeURIComponent(e))},updateHealthInfo:{definition:"customers/{CustomerId}/health-info",render:e=>"customers/{CustomerId}/health-info".replace("{CustomerId}",encodeURIComponent(e))},emails:{addCustomerEmail:{definition:"customers/{CustomerId}/emails",render:e=>"customers/{CustomerId}/emails".replace("{CustomerId}",encodeURIComponent(e))},removeCustomerEmail:{definition:"customers/{CustomerId}/emails/{Email}",render:e=>"customers/{CustomerId}/emails/{Email}".replace("{CustomerId}",encodeURIComponent(e.customerId)).replace("{Email}",encodeURIComponent(e.email))},changePrimaryCustomerEmail:{definition:"customers/{CustomerId}/emails/{Email}/primary",render:e=>"customers/{CustomerId}/emails/{Email}/primary".replace("{CustomerId}",encodeURIComponent(e.customerId)).replace("{Email}",encodeURIComponent(e.email))},getCustomerEmails:{definition:"customers/{CustomerId}/emails",render:e=>"customers/{CustomerId}/emails".replace("{CustomerId}",encodeURIComponent(e))},getPrimaryCustomerEmail:{definition:"customers/{CustomerId}/emails/primary",render:e=>"customers/{CustomerId}/emails/primary".replace("{CustomerId}",encodeURIComponent(e))},setPrimaryCustomerEmail:{definition:"customers/{CustomerId}/emails/primary",render:e=>"customers/{CustomerId}/emails/primary".replace("{CustomerId}",encodeURIComponent(e))}},phoneNumbers:{addCustomerPhoneNumber:{definition:"customers/{CustomerId}/phone-numbers",render:e=>"customers/{CustomerId}/phone-numbers".replace("{CustomerId}",encodeURIComponent(e))},removeCustomerPhoneNumber:{definition:"customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}",render:e=>"customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}".replace("{CustomerId}",encodeURIComponent(e.customerId)).replace("{CountryCode}",encodeURIComponent(e.countryCode.toString())).replace("{PhoneNumber}",encodeURIComponent(e.phoneNumber))},changePrimaryCustomerPhoneNumber:{definition:"customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}/primary",render:e=>"customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}/primary".replace("{CustomerId}",encodeURIComponent(e.customerId)).replace("{CountryCode}",encodeURIComponent(e.countryCode.toString())).replace("{PhoneNumber}",encodeURIComponent(e.phoneNumber))},getCustomerPhoneNumbers:{definition:"customers/{CustomerId}/phone-numbers",render:e=>"customers/{CustomerId}/phone-numbers".replace("{CustomerId}",encodeURIComponent(e))},getPrimaryCustomerPhoneNumber:{definition:"customers/{CustomerId}/phone-numbers/primary",render:e=>"customers/{CustomerId}/phone-numbers/primary".replace("{CustomerId}",encodeURIComponent(e))},setPrimaryCustomerPhoneNumber:{definition:"customers/{CustomerId}/phone-numbers/primary",render:e=>"customers/{CustomerId}/phone-numbers/primary".replace("{CustomerId}",encodeURIComponent(e))}},contactFlows:{getCustomerContactFlows:{definition:"customers/{CustomerId}/contact-flows",render:(e,t)=>{let r="customers/{CustomerId}/contact-flows".replace("{CustomerId}",encodeURIComponent(e));return t?r+"?caseRef="+encodeURIComponent(t):r}},createContactFlow:{definition:"customers/{CustomerId}/contact-flows",render:e=>"customers/{CustomerId}/contact-flows".replace("{CustomerId}",encodeURIComponent(e))},endContactFlow:{definition:"customers/{CustomerId}/contact-flows/{ContactFlowId}/end",render:(e,t)=>"customers/{CustomerId}/contact-flows/{ContactFlowId}/end".replace("{CustomerId}",encodeURIComponent(e)).replace("{ContactFlowId}",encodeURIComponent(t))}},contacts:{getCustomerContacts:{definition:"customers/{CustomerId}/contacts",render:(e,t)=>{let r="customers/{CustomerId}/contacts".replace("{CustomerId}",encodeURIComponent(e));return t?r+"?caseRef="+encodeURIComponent(t):r}},create:{definition:"customers/{CustomerId}/contacts",render:e=>"customers/{CustomerId}/contacts".replace("{CustomerId}",encodeURIComponent(e))}},setCustomerBranch:{definition:"customers/{CustomerId}/branch",render:e=>"customers/{CustomerId}/branch".replace("{CustomerId}",encodeURIComponent(e))},addresses:{create:{definition:"customers/{CustomerId}/addresses",render:e=>"customers/{CustomerId}/addresses".replace("{CustomerId}",encodeURIComponent(e))},update:{definition:"customers/{CustomerId}/addresses/{AddressId}",render:(e,t)=>"customers/{CustomerId}/addresses/{AddressId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{AddressId}",encodeURIComponent(t))},getById:{definition:"customers/{CustomerId}/addresses/{AddressId}",render:(e,t)=>"customers/{CustomerId}/addresses/{AddressId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{AddressId}",encodeURIComponent(t))},getAll:{definition:"customers/{CustomerId}/addresses",render:e=>"customers/{CustomerId}/addresses".replace("{CustomerId}",encodeURIComponent(e))},delete:{definition:"customers/{CustomerId}/addresses/{AddressId}",render:(e,t)=>"customers/{CustomerId}/addresses/{AddressId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{AddressId}",encodeURIComponent(t))}},consents:{give:{definition:"customers/{CustomerId}/consents",render:e=>"customers/{CustomerId}/consents".replace("{CustomerId}",encodeURIComponent(e))},revoke:{definition:"customers/{CustomerId}/consents/{ConsentType}",render:(e,t)=>"customers/{CustomerId}/consents/{ConsentType}".replace("{CustomerId}",encodeURIComponent(e)).replace("{ConsentType}",encodeURIComponent(t))},getAll:{definition:"customers/{CustomerId}/consents",render:e=>"customers/{CustomerId}/consents".replace("{CustomerId}",encodeURIComponent(e))}}},A={queryCities:"address-parameters/cities",queryDistricts:{definition:"address-parameters/districts",render:e=>"address-parameters/districts?cityReference={cityReference}".replace("{cityReference}",e.cityReference)},queryTowns:{definition:"address-parameters/towns",render:e=>"address-parameters/towns?districtReference={districtReference}".replace("{districtReference}",e.districtReference)},queryNeighbourhoods:{definition:"address-parameters/neighbourhoods",render:e=>"address-parameters/neighbourhoods?townReference={townReference}".replace("{townReference}",e.townReference)},queryStreets:{definition:"address-parameters/streets",render:e=>"address-parameters/streets?neighbourhoodReference={neighbourhoodReference}".replace("{neighbourhoodReference}",e.neighbourhoodReference)},queryBuildings:{definition:"address-parameters/buildings",render:e=>"address-parameters/buildings?streetReference={streetReference}".replace("{streetReference}",e.streetReference)},queryApartments:{definition:"address-parameters/apartments",render:e=>"address-parameters/apartments?buildingReference={buildingReference}".replace("{buildingReference}",e.buildingReference)}},Ne={queryBrands:"vehicle-parameters/brands",queryModels:{definition:"vehicle-parameters/models",render:e=>"vehicle-parameters/models?brandReference={brandReference}&year={year}".replace("{brandReference}",encodeURIComponent(e.brandReference)).replace("{year}",encodeURIComponent(e.year.toString()))}},Se={getCurrentCustomerVehicles:"customers/me/vehicles",externalLookup:{definition:"customers/{CustomerId}/vehicles/external-lookup",render:e=>"customers/{CustomerId}/vehicles/external-lookup".replace("{CustomerId}",encodeURIComponent(e))},create:{definition:"customers/{CustomerId}/vehicles",render:e=>"customers/{CustomerId}/vehicles".replace("{CustomerId}",encodeURIComponent(e))},update:{definition:"customers/{CustomerId}/vehicles/{VehicleId}",render:(e,t)=>"customers/{CustomerId}/vehicles/{VehicleId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{VehicleId}",encodeURIComponent(t))},delete:{definition:"customers/{CustomerId}/vehicles/{VehicleId}",render:(e,t)=>"customers/{CustomerId}/vehicles/{VehicleId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{VehicleId}",encodeURIComponent(t))},get:{definition:"customers/{CustomerId}/vehicles/{VehicleId}",render:(e,t)=>"customers/{CustomerId}/vehicles/{VehicleId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{VehicleId}",encodeURIComponent(t))},getCustomerVehicles:{definition:"customers/{CustomerId}/vehicles",render:e=>"customers/{CustomerId}/vehicles".replace("{CustomerId}",encodeURIComponent(e))}},Te={queryVehicleByBrandCode:"insurance-services/query-vehicle-by-brand-code"},b={getPropertyAddressByPropertyNumber:"properties/query-address-by-property-number",queryPropertyByDaskOldPolicy:"properties/query-property-by-dask-old-policy",getCurrentCustomerProperties:"customers/me/properties",getAll:{definition:"customers/{CustomerId}/properties",render:e=>"customers/{CustomerId}/properties".replace("{CustomerId}",encodeURIComponent(e))},create:{definition:"customers/{CustomerId}/properties",render:e=>"customers/{CustomerId}/properties".replace("{CustomerId}",encodeURIComponent(e))},getById:{definition:"customers/{CustomerId}/properties/{PropertyId}",render:(e,t)=>"customers/{CustomerId}/properties/{PropertyId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{PropertyId}",encodeURIComponent(t))},update:{definition:"customers/{CustomerId}/properties/{PropertyId}",render:(e,t)=>"customers/{CustomerId}/properties/{PropertyId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{PropertyId}",encodeURIComponent(t))},delete:{definition:"customers/{CustomerId}/properties/{PropertyId}",render:(e,t)=>"customers/{CustomerId}/properties/{PropertyId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{PropertyId}",encodeURIComponent(t))}},qe={create:"proposals",getProposalById:{definition:"proposals/{ProposalId}",render:e=>"proposals/{ProposalId}".replace("{ProposalId}",encodeURIComponent(e))},getProposalSnapshot:{definition:"proposals/{ProposalId}/snapshot",render:e=>"proposals/{ProposalId}/snapshot".replace("{ProposalId}",encodeURIComponent(e))},getProposalCoverage:{definition:"proposals/{ProposalId}/coverage",render:e=>"proposals/{ProposalId}/coverage".replace("{ProposalId}",encodeURIComponent(e))},getProposalProductCoverage:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/coverage",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/coverage".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},retryFailedProposalProduct:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/retry",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/retry".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},getProposalProductPremiumDetail:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/premium-detail/{InstallmentNumber}",render:(e,t,r)=>"proposals/{ProposalId}/products/{ProposalProductId}/premium-detail/{InstallmentNumber}".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t)).replace("{InstallmentNumber}",encodeURIComponent(r.toString()))},purchaseProposalProductSync:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/purchase/sync",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/purchase/sync".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},purchaseProposalProductAsync:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/purchase/async",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/purchase/async".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},reviseProposal:{definition:"proposals/{ProposalId}/revise",render:e=>"proposals/{ProposalId}/revise".replace("{ProposalId}",encodeURIComponent(e))},reviseProposalProduct:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/revise",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/revise".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},fetchProposalProductDocument:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/document",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/document".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},fetchProposalInformationFormDocument:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/information-form",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/information-form".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},sendProposalProductDocument:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/document/send",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/document/send".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},sendProposalInformationFormDocument:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/information-form/send",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/information-form/send".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},generateCompareProposalProductsPdf:{definition:"proposals/{ProposalId}/products/compare-pdf",render:e=>"proposals/{ProposalId}/products/compare-pdf".replace("{ProposalId}",encodeURIComponent(e))},sendCompareProposalProductsPdf:{definition:"proposals/{ProposalId}/products/compare-pdf/send",render:e=>"proposals/{ProposalId}/products/compare-pdf/send".replace("{ProposalId}",encodeURIComponent(e))},setProposalRepresentative:{definition:"proposals/{ProposalId}/representative",render:e=>"proposals/{ProposalId}/representative".replace("{ProposalId}",encodeURIComponent(e))},setProposalBranch:{definition:"proposals/{ProposalId}/branch",render:e=>"proposals/{ProposalId}/branch".replace("{ProposalId}",encodeURIComponent(e))},generateCustomerProposalDocumentPdf:{definition:"proposals/{ProposalId}/customer-document-pdf",render:e=>"proposals/{ProposalId}/customer-document-pdf".replace("{ProposalId}",encodeURIComponent(e))},getProposalConversionTrend:{definition:"proposals/analytics/conversion-trend"}},Le={getPolicyDetail:{definition:"policies/{PolicyId}",render:e=>"policies/{PolicyId}".replace("{PolicyId}",encodeURIComponent(e))},fetchPolicyDocument:{definition:"policies/{PolicyId}/document",render:e=>"policies/{PolicyId}/document".replace("{PolicyId}",encodeURIComponent(e))},sendPolicyDocument:{definition:"policies/{PolicyId}/document/send",render:e=>"policies/{PolicyId}/document/send".replace("{PolicyId}",encodeURIComponent(e))},setPolicyRepresentative:{definition:"policies/{PolicyId}/representative",render:e=>"policies/{PolicyId}/representative".replace("{PolicyId}",encodeURIComponent(e))},setPolicyBranch:{definition:"policies/{PolicyId}/branch",render:e=>"policies/{PolicyId}/branch".replace("{PolicyId}",encodeURIComponent(e))},createManualPolicy:{definition:"policies/manual"},updateManualPolicy:{definition:"policies/manual/{PolicyId}",render:e=>"policies/manual/{PolicyId}".replace("{PolicyId}",encodeURIComponent(e))},getPolicyCountAndPremiumAnalytics:{definition:"policies/analytics/count-and-premium"},getPolicyRenewalAnalytics:{definition:"policies/analytics/renewal"},getPolicyDistributionByBranch:{definition:"policies/analytics/distribution-by-branch"},getRepresentativeEarningsAnalytics:{definition:"policies/analytics/representative-earnings"}},_e={create:"policy-transfers",getPolicyTransferDetail:{definition:"policy-transfers/{PolicyTransferId}",render:e=>"policy-transfers/{PolicyTransferId}".replace("{PolicyTransferId}",encodeURIComponent(e))},getPolicyTransferTriggerDetail:{definition:"policy-transfers/{PolicyTransferId}/triggers/{PolicyTransferTriggerId}",render:(e,t)=>"policy-transfers/{PolicyTransferId}/triggers/{PolicyTransferTriggerId}".replace("{PolicyTransferId}",encodeURIComponent(e)).replace("{PolicyTransferTriggerId}",encodeURIComponent(t))},triggerPolicyTransfer:{definition:"policy-transfers/{PolicyTransferId}/trigger",render:e=>"policy-transfers/{PolicyTransferId}/trigger".replace("{PolicyTransferId}",encodeURIComponent(e))}},ve={create:"file-policy-transfers",getFilePolicyTransferDetail:{definition:"file-policy-transfers/{FilePolicyTransferId}",render:e=>"file-policy-transfers/{FilePolicyTransferId}".replace("{FilePolicyTransferId}",encodeURIComponent(e))}},_={getKaskoCoverageChoices:{definition:"coverage-choices:kasko",render:e=>e!==void 0?"coverage-choices:kasko?vehicleUtilizationStyle={vehicleUtilizationStyle}".replace("{vehicleUtilizationStyle}",encodeURIComponent(e)):"coverage-choices:kasko"},getKonutCoverageChoices:{definition:"coverage-choices:konut",render:()=>"coverage-choices:konut"},getImmCoverageChoices:{definition:"coverage-choices:imm",render:()=>"coverage-choices:imm"},getTssCoverageChoices:{definition:"coverage-choices:tss",render:()=>"coverage-choices:tss"}},oe={complete:"agent-setup-requests/complete",create:"agent-setup-requests",getAll:"agent-setup-requests",enter:"agent-setup-requests/enter",getAgentSetupRequestById:{definition:"agent-setup-requests/{Id}",render:e=>"agent-setup-requests/{Id}".replace("{Id}",encodeURIComponent(e))},disableAgentSetupRequest:{definition:"agent-setup-requests/{Id}/disable",render:e=>"agent-setup-requests/{Id}/disable".replace("{Id}",encodeURIComponent(e))}},I={forgotPassword:"agent-users/forgot-password",resetPassword:"agent-users/reset-password",checkAgentUserForgotPasswordToken:"agent-users/check-forgot-password-token",me:"agent-users/me",meRobotCode:"agent-users/me/robot-code",invite:"agent-users/invite",updateMyUser:"agent-users/me",acceptInvite:"agent-users/accept-invite",updatePassword:"agent-users/me/password",reSendInvite:{definition:"agent-users/{AgentUserId}/re-send-invite",render:e=>"agent-users/{AgentUserId}/re-send-invite".replace("{AgentUserId}",encodeURIComponent(e))},deactivate:{definition:"agent-users/{AgentUserId}/deactivate",render:e=>"agent-users/{AgentUserId}/deactivate".replace("{AgentUserId}",encodeURIComponent(e))},activate:{definition:"agent-users/{AgentUserId}/activate",render:e=>"agent-users/{AgentUserId}/activate".replace("{AgentUserId}",encodeURIComponent(e))},delete:{definition:"agent-users/{UserId}",render:e=>"agent-users/{UserId}".replace("{UserId}",encodeURIComponent(e))},getById:{definition:"agent-users/{UserId}",render:e=>"agent-users/{UserId}".replace("{UserId}",encodeURIComponent(e))},checkAgentUserInviteCode:{definition:"agent-users/check-invite-code",render:e=>"agent-users/check-invite-code?code={code}".replace("{code}",encodeURIComponent(e))},update:{definition:"agent-users/{Id}",render:e=>"agent-users/{Id}".replace("{Id}",encodeURIComponent(e))},migrate:{definition:"agent-users/{AgentUserId}/migrate",render:e=>"agent-users/{AgentUserId}/migrate".replace("{AgentUserId}",encodeURIComponent(e))},migrateAll:"agent-users/migrate-all"},T={getAll:"agent-roles",create:"agent-roles",update:{definition:"agent-roles/{Id}",render:e=>"agent-roles/{Id}".replace("{Id}",encodeURIComponent(e))},delete:{definition:"agent-roles/{Id}",render:e=>"agent-roles/{Id}".replace("{Id}",encodeURIComponent(e))},getById:{definition:"agent-roles/{Id}",render:e=>"agent-roles/{Id}".replace("{Id}",encodeURIComponent(e))}},E={getAll:"webhooks",create:"webhooks",getById:{definition:"webhooks/{Id}",render:e=>"webhooks/{Id}".replace("{Id}",encodeURIComponent(e))},update:{definition:"webhooks/{Id}",render:e=>"webhooks/{Id}".replace("{Id}",encodeURIComponent(e))},delete:{definition:"webhooks/{Id}",render:e=>"webhooks/{Id}".replace("{Id}",encodeURIComponent(e))},deliveries:{getById:{definition:"webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}",render:(e,t)=>"webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}".replace("{WebhookId}",encodeURIComponent(e)).replace("{WebhookDeliveryId}",encodeURIComponent(t))},redeliver:{definition:"webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}/redeliver",render:(e,t)=>"webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}/redeliver".replace("{WebhookId}",encodeURIComponent(e)).replace("{WebhookDeliveryId}",encodeURIComponent(t))}}},g={createNewSaleOpportunity:"cases:new-sale-opportunity",createCrossSaleOpportunity:"cases:cross-sale-opportunity",createCancel:"cases:cancel",createEndorsement:"cases:endorsement",createComplaint:"cases:complaint",assignRepresentative:{definition:"cases/{Ref}/representative",render:e=>"cases/{Ref}/representative".replace("{Ref}",encodeURIComponent(e))},addNoteToCase:{definition:"cases/{Ref}/notes",render:e=>"cases/{Ref}/notes".replace("{Ref}",encodeURIComponent(e))},changeChannel:{definition:"cases/{Ref}/channel",render:e=>"cases/{Ref}/channel".replace("{Ref}",encodeURIComponent(e))},changeState:{definition:"cases/{Ref}/state",render:e=>"cases/{Ref}/state".replace("{Ref}",encodeURIComponent(e))},getActivities:{definition:"cases/{Ref}/activities",render:e=>"cases/{Ref}/activities".replace("{Ref}",encodeURIComponent(e))},getCaseByRef:{definition:"cases/{Ref}",render:e=>"cases/{Ref}".replace("{Ref}",encodeURIComponent(e))},getProposals:{definition:"cases/{Ref}/proposals",render:e=>"cases/{Ref}/proposals".replace("{Ref}",encodeURIComponent(e))},getPolicies:{definition:"cases/{Ref}/policies",render:e=>"cases/{Ref}/policies".replace("{Ref}",encodeURIComponent(e))},setAsset:{definition:"cases/{Ref}/asset",render:e=>"cases/{Ref}/asset".replace("{Ref}",encodeURIComponent(e))},setBranch:{definition:"cases/{Ref}/branch",render:e=>"cases/{Ref}/branch".replace("{Ref}",encodeURIComponent(e))},getSalesOpportunityFunnelAnalytics:{definition:"cases/analytics/sales-opportunity-funnel"},getOpenCaseBacklogPivotAnalytics:{definition:"cases/analytics/open-case-backlog-pivot"},getFailedCasesReasonDistribution:{definition:"cases/analytics/failed-cases-reason-distribution"},communicationAutomations:{getAll:"cases/communication-automations"},getPriorityTemplates:"cases/priority-templates"},U={getAll:"coverage-groups",create:"coverage-groups",update:{definition:"coverage-groups/{Id}",render:e=>"coverage-groups/{Id}".replace("{Id}",encodeURIComponent(e))},delete:{definition:"coverage-groups/{Id}",render:e=>"coverage-groups/{Id}".replace("{Id}",encodeURIComponent(e))},getById:{definition:"coverage-groups/{Id}",render:e=>"coverage-groups/{Id}".replace("{Id}",encodeURIComponent(e))}},We={getAll:"release-notes"},De={getAll:"banks",getBranches:{definition:"banks/{BankId}/branches",render:e=>"banks/{BankId}/branches".replace("{BankId}",encodeURIComponent(e))}},Fe={getAll:"financial-institutions"},N={getAll:"agent-branches",create:"agent-branches",getById:{definition:"agent-branches/{Id}",render:e=>"agent-branches/{Id}".replace("{Id}",encodeURIComponent(e))},update:{definition:"agent-branches/{Id}",render:e=>"agent-branches/{Id}".replace("{Id}",encodeURIComponent(e))},delete:{definition:"agent-branches/{Id}",render:e=>"agent-branches/{Id}".replace("{Id}",encodeURIComponent(e))}},ie={uploadPublicFile:"files/upload-public"},ae={getAll:"languages"},S={getDefinitions:"templates/definitions",getAll:"templates",getByKey:{definition:"templates/{Key}",render:e=>"templates/{Key}".replace("{Key}",encodeURIComponent(e))},update:{definition:"templates/{Key}",render:e=>"templates/{Key}".replace("{Key}",encodeURIComponent(e))},delete:{definition:"templates/{Key}",render:e=>"templates/{Key}".replace("{Key}",encodeURIComponent(e))}},F={configFields:{getAll:"b2c/config-fields",updateAll:"b2c/config-fields"}},o={customers:Ue,vehicles:Se,vehicleParameters:Ne,insuranceServices:Te,agents:y,insuranceCompanies:be,resourceKeys:Oe,releaseNotes:We,banks:De,financialInstitutions:Fe,policies:Le,policyTransfers:_e,filePolicyTransfers:ve,cases:g,coverageGroups:U,webhooks:E,agentBranches:N,files:ie,languages:ae,templates:S,b2c:F,proposals:qe};var G=class{constructor(t){this.http=t}async getCurrentAgent(t){return this.http.get(y.getCurrentAgent,t)}async updateCurrentAgent(t,r){return this.http.putNoContent(y.updateCurrentAgent,t,r)}async getAgentInsuranceCompaniesAsync(t){return this.http.get(y.insuranceCompanies.getMyInsuranceCompanies,t)}async getAgentInsuranceCompanyBranchesAsync(t,r){let n=y.insuranceCompanies.getBranches.render(t);return this.http.get(n,r)}async getAgentInsuranceCompanyConnectionAsync(t,r){let n=y.insuranceCompanies.getConnection.render(t);return this.http.get(n,r)}async addAgentInsuranceCompany(t,r){return this.http.postNoContent(y.insuranceCompanies.addInsuranceCompanyToAgent,t,r)}async removeAgentInsuranceCompany(t,r){let n=y.insuranceCompanies.remove.render(t);return this.http.deleteNoContent(n,r)}async updateAgentInsuranceCompanyConnection(t,r){let n=y.insuranceCompanies.updateConnection.render(t.agentInsuranceCompanyId);return this.http.putNoContent(n,t,r)}async updateAgentInsuranceCompanyBranches(t,r){let n=y.insuranceCompanies.updateBranches.render(t.agentInsuranceCompanyId);return this.http.putNoContent(n,t,r)}async reSyncAgentInsuranceCompanyWithInsurance(t,r){let n=y.insuranceCompanies.reSyncAgentInsuranceCompanyWithInsurance.render(t.agentInsuranceCompanyId);return this.http.postNoContent(n,t,r)}async getB2CConfigFields(t){return this.http.get(F.configFields.getAll,t)}async updateB2CConfigFields(t,r){return this.http.putNoContent(F.configFields.updateAll,t,r)}};var M=class{constructor(t){this.http=t}async createAgentBranch(t,r){return this.http.post(N.create,t,r)}async getAgentBranchById(t,r){let n=N.getById.render(t);return this.http.get(n,r)}async getAgentBranches(t){return this.http.get(N.getAll,t)}async updateAgentBranch(t,r){let n=N.update.render(t.id);return this.http.putNoContent(n,t,r)}async deleteAgentBranch(t,r){let n=N.delete.render(t.id);return this.http.deleteNoContent(n,r)}};var w=class{constructor(t){this.http=t}async createAgentRole(t,r){return this.http.postNoContent(T.create,t,r)}async getAgentRoleById(t,r){let n=T.getById.render(t);return this.http.get(n,r)}async getAgentRoles(t){return this.http.get(T.getAll,t)}async updateAgentRole(t,r){let n=T.update.render(t.id);return this.http.putNoContent(n,t,r)}async deleteAgentRole(t,r){let n=T.delete.render(t.id);return this.http.deleteNoContent(n,r)}};var B=class{constructor(t){this.http=t}async enterAgentSetupRequest(t,r){return this.http.post(oe.enter,t,r)}async completeAgentSetupRequest(t,r){return this.http.postNoContent(oe.complete,t,r)}};var Ot=(e=>(e.Unknown="UNKNOWN",e.Manual="MANUAL",e.Website="WEBSITE",e.GoogleAds="GOOGLE_ADS",e.CallCenter="CALL_CENTER",e.SocialMedia="SOCIAL_MEDIA",e.MobileApp="MOBILE_APP",e.OfflineProposalForm="OFFLINE_PROPOSAL_FORM",e.Field="FIELD",e.PrintMedia="PRINT_MEDIA",e.FairEvent="FAIR_EVENT",e.BusinessPartner="BUSINESS_PARTNER",e.Chatbot="CHATBOT",e))(Ot||{}),Ut=(e=>(e.Vehicle="VEHICLE",e.Property="PROPERTY",e))(Ut||{}),k=(e=>(e.Individual="INDIVIDUAL",e.Company="COMPANY",e.Foreign="FOREIGN",e))(k||{}),Nt=(e=>(e.Kasko="KASKO",e.Dask="DASK",e.Konut="KONUT",e.Trafik="TRAFIK",e.Tss="TSS",e.Imm="IMM",e.YesilKart="YESIL_KART",e.FerdiKaza="FERDI_KAZA",e.GrupHayat="GRUP_HAYAT",e.Saglik="SAGLIK",e.KartKimlikKoruma="KART_KIMLIK_KORUMA",e.UcuncuSahisMaliSorumluluk="UCUNCU_SAHIS_MALI_SORUMLULUK",e.IsyeriYangin="ISYERI_YANGIN",e.Seyahat="SEYAHAT",e.ElektronikCihaz="ELEKTRONIK_CIHAZ",e.Pet="PET",e.Bes="BES",e.InsaatAllRisk="INSAAT_ALL_RISK",e.LeasingAllRisk="LEASING_ALL_RISK",e.MontajAllRisk="MONTAJ_ALL_RISK",e.Nakliyat="NAKLIYAT",e.OzelGuvenlikMaliSorumluluk="OZEL_GUVENLIK_MALI_SORUMLULUK",e.AkilliTelefon="AKILLI_TELEFON",e.TehlikeliMaddelerMaliSorumluluk="TEHLIKELI_MADDELER_MALI_SORUMLULUK",e.YatGemiGezintiTeknesi="YAT_GEMI_GEZINTI_TEKNESI",e.Tarim="TARIM",e.MeslekiSorumluluk="MESLEKI_SORUMLULUK",e.Alacak="ALACAK",e.IsverenMaliMesuliyet="ISVEREN_MALI_MESULIYET",e.Muhendislik="MUHENDISLIK",e.HukuksalKoruma="HUKUKSAL_KORUMA",e.IlkAtesKonut="ILK_ATES_KONUT",e.Kefalet="KEFALET",e))(Nt||{}),St=(e=>(e.Unknown="UNKNOWN",e.TurkishLira="TURKISH_LIRA",e.UnitedStatesDollar="UNITED_STATES_DOLLAR",e.Euro="EURO",e))(St||{}),Tt=(e=>(e.Unknown="UNKNOWN",e.SyncCreditCard="SYNC_CREDIT_CARD",e.SyncOpenAccount="SYNC_OPEN_ACCOUNT",e.Async3dSecure="ASYNC_3D_SECURE",e.AsyncInsuranceCompanyRedirect="ASYNC_INSURANCE_COMPANY_REDIRECT",e.AsyncThirdParty3dSecure="ASYNC_THIRD_PARTY_3D_SECURE",e))(Tt||{}),qt=(e=>(e.Active="ACTIVE",e.EndOfLife="END_OF_LIFE",e.Cancelled="CANCELLED",e))(qt||{}),Lt=(e=>(e.WebService="WEB_SERVICE",e.Robot="ROBOT",e))(Lt||{}),_t=(e=>(e.Belirsiz="BELIRSIZ",e.AnlasmaliOzelServis="ANLASMALI_OZEL_SERVIS",e.AnlasmaliYetkiliServis="ANLASMALI_YETKILI_SERVIS",e.YetkiliServis="YETKILI_SERVIS",e.OzelServis="OZEL_SERVIS",e.SigortaliBelirler="SIGORTALI_BELIRLER",e))(_t||{}),vt=(e=>(e.Belirsiz="BELIRSIZ",e.OrijinalParca="ORIJINAL_PARCA",e.EsdegerParca="ESDEGER_PARCA",e))(vt||{}),Wt=(e=>(e.A="A",e.B="B",e.C="C",e.D="D",e.E="E",e.F="F",e.SegmenteSegment="SEGMENTE_SEGMENT",e))(Wt||{}),Dt=(e=>(e.Bilinmiyor="BILINMIYOR",e.DarKapsam="DAR_KAPSAM",e.StandartKapsam="STANDART_KAPSAM",e.GenisKapsam="GENIS_KAPSAM",e))(Dt||{}),Ft=(e=>(e.Bilinmiyor="BILINMIYOR",e.Yatarak="YATARAK",e.YatarakAyakta="YATARAK_AYAKTA",e))(Ft||{}),Gt=(e=>(e.Belirsiz="BELIRSIZ",e.Yok="YOK",e.AgacKutukleriveKereste="AGAC_KUTUKLERIVE_KERESTE",e.Akaryakit="AKARYAKIT",e.AyakkabiSaraciye="AYAKKABI_SARACIYE",e.BakkaliyeveSharkuteriUrunleri="BAKKALIYE_VE_SHARKUTERI_URUNLERI",e.BilumumKirtasiyeMalzemeleri="BILUMUM_KIRTASIYE_MALZEMELERI",e.DokmeSuveSut="DOKME_SU_VE_SUT",e.HaliveKilim="HALI_VE_KILIM",e.HamYariMamulveMamulKagit="HAM_YARI_MAMUL_VE_MAMUL_KAGIT",e.HazirBeton="HAZIR_BETON",e.HerNeviEvAletleri="HER_NEVI_EV_ALETLERI",e.HerTurluDokmeKomurvOdun="HER_TURLU_DOKME_KOMUR_V_ODUN",e.HububatveBakliyat="HUBUBAT_VE_BAKLIYAT",e.KabaInsaatMalzemeleri="KABA_INSAAT_MALZEMELERI",e.LastikKaucukUrunleri="LASTIK_KAUCUK_URUNLERI",e.LikidKimyeviMadde="LIKID_KIMYEVI_MADDE",e.LpgGazTupu="LPG_GAZ_TUPU",e.MakineAksamveYedekleri="MAKINE_AKSAM_VE_YEDEKLERI",e.MobilyaMalzemesi="MOBILYA_MALZEMESI",e.MuhtelifEvEsyasi="MUHTELIF_EV_ESYASI",e.OtoYedekParcalari="OTO_YEDEK_PARCALARI",e.PlastikMamulleri="PLASTIK_MAMULLERI",e.SentetikElyafUrunleri="SENTETIK_ELYAF_URUNLERI",e.SentetikPlastikBoyaUrunleri="SENTETIK_PLASTIK_BOYA_URUNLERI",e.TekstilUrunleri="TEKSTIL_URUNLERI",e.TemizlikMaddeleri="TEMIZLIK_MADDELERI",e.YasMeyveveSebze="YAS_MEYVE_VE_SEBZE",e))(Gt||{});function Mt(e){return typeof e=="object"&&e!==null&&"$type"in e&&typeof e.$type=="string"}function vn(...e){if(e.length===0)throw new Error("Cannot merge empty coverage array");let t=e.filter(i=>i!=null);if(t.length===0)throw new Error("No valid coverages to merge");let n=t[0].productBranch;for(let i of t)if(i.productBranch!==n)throw new Error(`All coverages must have the same productBranch. Expected: ${n}, but found: ${i.productBranch}`);let s=i=>{let m=i.filter(c=>c!=null);if(m.length===0)return;let u=m.filter(c=>c.$type!=="UNDEFINED");return u.length>0?u[u.length-1]:{$type:"UNDEFINED"}},a=i=>{let m=i.filter(u=>u!=null);return m.length>0?m[m.length-1]:void 0},l=new Set;for(let i of t)Object.keys(i).forEach(m=>{m!=="productBranch"&&l.add(m)});let d={productBranch:n};for(let i of l){let m=t.map(c=>c[i]),u=m.find(c=>c!=null);Mt(u)?d[i]=s(m):d[i]=a(m)}return d}var wt=(e=>(e.Succeeded="SUCCEEDED",e.Failed="TRIGGER_STATUS_FAILED",e))(wt||{}),Bt=(e=>(e.Unknown="UNKNOWN",e.CouldNotFetchPolicies="COULD_NOT_FETCH_POLICIES",e))(Bt||{}),kt=(e=>(e.Success="SUCCESS",e.Failed="TRANSFER_FAILED",e.Skipped="TRANSFER_SKIPPED",e))(kt||{}),Kt=(e=>(e.Unknown="UNKNOWN",e.AlreadyTransferred="SKIP_ALREADY_TRANSFERRED",e.PreviousVersionNotFound="PREVIOUS_VERSION_NOT_FOUND",e.ProductBranchNotSupported="PRODUCT_BRANCH_NOT_SUPPORTED",e.ProductNotSupported="PRODUCT_NOT_SUPPORTED",e))(Kt||{}),xt=(e=>(e.Unknown="UNKNOWN",e.InvalidCustomerIdentityNumber="INVALID_CUSTOMER_IDENTITY_NUMBER",e.InvalidCustomerCompanyTitle="INVALID_CUSTOMER_COMPANY_TITLE",e.InvalidCustomerTaxNumber="INVALID_CUSTOMER_TAX_NUMBER",e.InvalidCustomerType="INVALID_CUSTOMER_TYPE",e.InvalidVehicle="INVALID_VEHICLE",e.InvalidProperty="INVALID_PROPERTY",e.InvalidEndDate="INVALID_END_DATE",e.InvalidStartDate="INVALID_START_DATE",e.InvalidProposalNumber="INVALID_PROPOSAL_NUMBER",e.InvalidPremium="INVALID_PREMIUM",e.InvalidCommission="INVALID_COMMISSION",e.InvalidPaymentType="INVALID_PAYMENT_TYPE",e.InvalidInsuredCustomer="INVALID_INSURED_CUSTOMER",e.InvalidInsurerCustomer="INVALID_INSURER_CUSTOMER",e))(xt||{}),Ht=(e=>(e.Unknown="UNKNOWN",e.SteelReinforcedConcrete="STEEL_REINFORCED_CONCRETE",e.Other="OTHER",e))(Ht||{}),Vt=(e=>(e.Unknown="UNKNOWN",e.None="NONE",e.SlightlyDamaged="SLIGHTLY_DAMAGED",e.ModeratelyDamaged="MODERATELY_DAMAGED",e.SeverelyDamaged="SEVERELY_DAMAGED",e))(Vt||{}),$t=(e=>(e.Unknown="UNKNOWN",e.House="HOUSE",e.Business="BUSINESS",e.Other="OTHER",e))($t||{}),Qt=(e=>(e.Unknown="UNKNOWN",e.Proprietor="PROPRIETOR",e.Tenant="TENANT",e))(Qt||{}),Yt=(e=>(e.Unknown="UNKNOWN",e.SummerHouse="SUMMER_HOUSE",e.DetachedBuilding="DETACHED_BUILDING",e.Apartment="APARTMENT",e))(Yt||{}),jt=(e=>(e.Unknown="UNKNOWN",e.Basement="BASEMENT",e.GroundFloor="GROUND_FLOOR",e.AboveEntrance="ABOVE_ENTRANCE",e.MiddleFloor="MIDDLE_FLOOR",e.DetachedBuilding="DETACHED_BUILDING",e))(jt||{}),zt=(e=>(e.Bank="BANK",e.FinancialInstitution="FINANCIAL_INSTITUTION",e))(zt||{}),Zt=(e=>(e.Unknown="UNKNOWN",e.PrivateCar="PRIVATE_CAR",e.Taxi="TAXI",e.RouteBasedMinibus="ROUTE_BASED_MINIBUS",e.MediumBus="MEDIUM_BUS",e.LargeBus="LARGE_BUS",e.PickupTruck="PICKUP_TRUCK",e.PanelVan="PANEL_VAN",e.Truck="TRUCK",e.Tractor="TRACTOR",e.Motorcycle="MOTORCYCLE",e.RentalCar="RENTAL_CAR",e.ArmoredVehicle="ARMORED_VEHICLE",e.MinibusSharedTaxi="MINIBUS_SHARED_TAXI",e.Jeep="JEEP",e.JeepSAV="JEEP_SAV",e.JeepSUV="JEEP_SUV",e.Hearse="HEARSE",e.ChauffeuredRentalCar="CHAUFFEURED_RENTAL_CAR",e.OperationalRental="OPERATIONAL_RENTAL",e.PrivateMinibus="PRIVATE_MINIBUS",e.RouteMinibus="ROUTE_MINIBUS",e.ServiceMinibus="SERVICE_MINIBUS",e))(Zt||{}),Jt=(e=>(e.Gasoline="GASOLINE",e.Diesel="DIESEL",e.Lpg="LPG",e.Electric="ELECTRIC",e.LpgGasoline="LPG_GASOLINE",e.Hybrid="HYBRID",e))(Jt||{}),Xt=(e=>(e.Audio="audio",e.Display="display",e.Other="other",e))(Xt||{}),Wn=class Re{constructor(t){h(this,"_value");this._value=typeof t=="string"?new Date(t):t}static fromDate(t){return new Re(t)}static now(){return new Re(new Date)}toDate(){return this._value}toISOString(){return this._value.toISOString()}toJSON(){return this.toISOString()}toString(){return this.toISOString()}valueOf(){return this._value.valueOf()}},Dn=class ge{constructor(t){h(this,"_year");h(this,"_month");h(this,"_day");if(typeof t=="string"){let r=t.split("-").map(Number);this._year=r[0]??0,this._month=r[1]??1,this._day=r[2]??1}else this._year=t.getUTCFullYear(),this._month=t.getUTCMonth()+1,this._day=t.getUTCDate()}static fromDate(t){return new ge(t)}static today(){return new ge(new Date)}toDate(){return new Date(Date.UTC(this._year,this._month-1,this._day))}toString(){let t=this._year.toString().padStart(4,"0"),r=this._month.toString().padStart(2,"0"),n=this._day.toString().padStart(2,"0");return`${t}-${r}-${n}`}toJSON(){return this.toString()}valueOf(){return this.toDate().valueOf()}get year(){return this._year}get month(){return this._month}get day(){return this._day}},er=(e=>(e.Unknown="UNKNOWN",e.Male="MALE",e.Female="FEMALE",e.Other="OTHER",e))(er||{}),tr=(e=>(e.Unknown="UNKNOWN",e.PrimarySchool="PRIMARY_SCHOOL",e.MiddleSchool="MIDDLE_SCHOOL",e.HighSchool="HIGH_SCHOOL",e.University="UNIVERSITY",e.Postgraduate="POSTGRADUATE",e.Doctorate="DOCTORATE",e.Other="OTHER",e))(tr||{}),rr=(e=>(e.Unknown="UNKNOWN",e.Turk="TURK",e.Other="OTHER",e))(rr||{}),nr=(e=>(e.Unknown="UNKNOWN",e.Single="SINGLE",e.Married="MARRIED",e))(nr||{}),sr=(e=>(e.Unknown="UNKNOWN",e.Banker="BANKER",e.CorporateEmployee="CORPORATE_EMPLOYEE",e.LtdEmployee="LTD_EMPLOYEE",e.Police="POLICE",e.MilitaryPersonnel="MILITARY_PERSONNEL",e.RetiredSpouse="RETIRED_SPOUSE",e.Teacher="TEACHER",e.Doctor="DOCTOR",e.Pharmacist="PHARMACIST",e.Nurse="NURSE",e.HealthcareWorker="HEALTHCARE_WORKER",e.Lawyer="LAWYER",e.Judge="JUDGE",e.Prosecutor="PROSECUTOR",e.Freelancer="FREELANCER",e.Farmer="FARMER",e.Instructor="INSTRUCTOR",e.ReligiousOfficial="RELIGIOUS_OFFICIAL",e.AssociationManager="ASSOCIATION_MANAGER",e.Officer="OFFICER",e.Retired="RETIRED",e.Housewife="HOUSEWIFE",e))(sr||{}),or=(e=>(e.Active="ACTIVE",e.Succeeded="SUCCEEDED",e.Failed="FAILED",e))(or||{}),ir=(e=>(e.PhoneCall="PHONE_CALL",e))(ir||{}),ar=(e=>(e.Planned="PLANNED",e.Occurred="OCCURRED",e.NotOccurred="NOT_OCCURRED",e))(ar||{}),lr=(e=>(e.Other="OTHER",e.OrganTransplant="ORGAN_TRANSPLANT",e.BoneMarrowTransplant="BONE_MARROW_TRANSPLANT",e.HeartSurgery="HEART_SURGERY",e.BrainSurgery="BRAIN_SURGERY",e))(lr||{}),ur=(e=>(e.Other="OTHER",e.KidneyFailure="KIDNEY_FAILURE",e.Cancer="CANCER",e.LiverDisease="LIVER_DISEASE",e.HeartFailure="HEART_FAILURE",e.HeartRhythmAndConductionDisorders="HEART_RHYTHM_AND_CONDUCTION_DISORDERS",e.ImmuneSystemDisorders="IMMUNE_SYSTEM_DISORDERS",e))(ur||{}),pr=(e=>(e.KVKK="KVKK",e.ETK="ETK",e))(pr||{}),cr=(e=>(e.Manual="MANUAL",e.Web="WEB",e.Chatbot="CHATBOT",e.Sms="SMS",e.Email="EMAIL",e.External="EXTERNAL",e))(cr||{}),dr=(e=>(e.Given="GIVEN",e.Revoked="REVOKED",e))(dr||{}),mr=(e=>(e.SaleOpportunity="SALE_OPPORTUNITY",e.Endorsement="ENDORSEMENT",e.Cancel="CANCEL",e.Complaint="COMPLAINT",e))(mr||{}),hr=(e=>(e.Fail="FAIL",e.Open="OPEN",e.InProgress="IN_PROGRESS",e.Success="SUCCESS",e))(hr||{}),Rr=(e=>(e.FailNoResponse="FAIL_NO_RESPONSE",e.FailInvalidCase="FAIL_INVALID_CASE",e.FailCustomerWithdrawn="FAIL_CUSTOMER_WITHDRAWN",e.FailPaymentError="FAIL_PAYMENT_ERROR",e.FailDeclinedCardInformation="FAIL_DECLINED_CARD_INFORMATION",e.FailForeignUser="FAIL_FOREIGN_USER",e.FailTakenElsewhere="FAIL_TAKEN_ELSEWHERE",e.FailPriceTooHigh="FAIL_PRICE_TOO_HIGH",e.FailAssetAcquisition="FAIL_ASSET_ACQUISITION",e.FailAssetSold="FAIL_ASSET_SOLD",e.FailUnresolved="FAIL_UNRESOLVED",e.FailReferredToLegal="FAIL_REFERRED_TO_LEGAL",e.FailCustomerUnsatisfied="FAIL_CUSTOMER_UNSATISFIED",e.FailMissingDocuments="FAIL_MISSING_DOCUMENTS",e.FailInsurerDenied="FAIL_INSURER_DENIED",e.FailConditionsNotMet="FAIL_CONDITIONS_NOT_MET",e.OpenInitial="OPEN_INITIAL",e.OpenCollectingInformation="OPEN_COLLECTING_INFORMATION",e.OpenDelayed="OPEN_DELAYED",e.OpenWaiting="OPEN_WAITING",e.InProgressUnderAnalysis="IN_PROGRESS_UNDER_ANALYSIS",e.InProgressProposalPrepared="IN_PROGRESS_PROPOSAL_PREPARED",e.InProgressAwaitingApproval="IN_PROGRESS_AWAITING_APPROVAL",e.InProgressToBeRecontacted="IN_PROGRESS_TO_BE_RECONTACTED",e.SuccessCompleted="SUCCESS_COMPLETED",e))(Rr||{}),gr=(e=>(e.Open="OPEN",e.Delayed="DELAYED",e.Success="SUCCESS",e.Fail="FAIL",e))(gr||{}),Ir=(e=>(e.NewSale="NEW_SALE",e.CrossSale="CROSS_SALE",e.Renewal="RENEWAL",e))(Ir||{}),fr=(e=>(e.OnlineCancellationRefund="ONLINE_CANCELLATION_REFUND",e.MebCancellation="MEB_CANCELLATION",e.PartialCancellation="PARTIAL_CANCELLATION",e.CancellationFromSale="CANCELLATION_FROM_SALE",e.CancellationDueToCollection="CANCELLATION_DUE_TO_COLLECTION",e.CancellationDueToDamage="CANCELLATION_DUE_TO_DAMAGE",e))(fr||{}),Cr=(e=>(e.ConsultantError="CONSULTANT_ERROR",e.PolicyOperations="POLICY_OPERATIONS",e.Collection="COLLECTION",e.DueToFrequentCalls="DUE_TO_FREQUENT_CALLS",e.Fraud="FRAUD",e.Damage="DAMAGE",e.ErroneousTransaction="ERRONEOUS_TRANSACTION",e.DelayInOperations="DELAY_IN_OPERATIONS",e.OnlineTransactionErrors="ONLINE_TRANSACTION_ERRORS",e.DelayInCancellationPeriod="DELAY_IN_CANCELLATION_PERIOD",e.NonReceiptOfPolicyOrEndorsement="NON_RECEIPT_OF_POLICY_OR_ENDORSEMENT",e.NonProductionOfPolicyOrEndorsement="NON_PRODUCTION_OF_POLICY_OR_ENDORSEMENT",e.DelayInEndorsementOperations="DELAY_IN_ENDORSEMENT_OPERATIONS",e.ErroneousPremiumCollection="ERRONEOUS_PREMIUM_COLLECTION",e.NonDeliveryOfRefundReceipt="NON_DELIVERY_OF_REFUND_RECEIPT",e.NonRefundOfPremium="NON_REFUND_OF_PREMIUM",e.StaffAttitude="STAFF_ATTITUDE",e.InsufficientOrErroneousInformation="INSUFFICIENT_OR_ERRONEOUS_INFORMATION",e.NoTimelyResponse="NO_TIMELY_RESPONSE",e))(Cr||{}),yr=(e=>(e.VehicleChange="VEHICLE_CHANGE",e.ValueIncrease="VALUE_INCREASE",e.NoClaimBonusTransfer="NO_CLAIM_BONUS_TRANSFER",e.CoverageChange="COVERAGE_CHANGE",e.UsageTypeChange="USAGE_TYPE_CHANGE",e.TransferRequest="TRANSFER_REQUEST",e.LicensePlateChange="LICENSE_PLATE_CHANGE",e.BrandModelChange="BRAND_MODEL_CHANGE",e.EngineChassisNumberChange="ENGINE_CHASSIS_NUMBER_CHANGE",e.ContactAddressChange="CONTACT_ADDRESS_CHANGE",e.Other="OTHER",e.PledgeeCorrectionAddition="PLEDGEE_CORRECTION_ADDITION",e))(yr||{}),Er=(e=>(e.Created="CREATED",e.Updated="UPDATED",e.StateChanged="STATE_CHANGED",e.ChannelChanged="CHANNEL_CHANGED",e.RepresentativeAssigned="REPRESENTATIVE_ASSIGNED",e.NoteAdded="NOTE_ADDED",e.AssetSet="ASSET_SET",e.PolicyAdded="POLICY_ADDED",e.ProposalAdded="PROPOSAL_ADDED",e.PolicyEndDateSet="POLICY_END_DATE_SET",e.CustomerUpdated="CUSTOMER_UPDATED",e.AssetUpdated="ASSET_UPDATED",e.PriorityAssessed="PRIORITY_ASSESSED",e.ProposalProductPurchaseAttempted="PROPOSAL_PRODUCT_PURCHASE_ATTEMPTED",e))(Er||{}),Pr=(e=>(e.None="NONE",e.Desktop="DESKTOP",e.Server="SERVER",e))(Pr||{}),Ar=(e=>(e.None="NONE",e.Random="RANDOM",e.RoundRobin="ROUND_ROBIN",e.BranchImportanceBalance="BRANCH_IMPORTANCE_BALANCE",e))(Ar||{}),br=(e=>(e.Pending="PENDING",e.Failed="FAILED",e.Succeed="SUCCEED",e))(br||{}),Or=(e=>(e.WebService="WEB_SERVICE",e.Robot="ROBOT",e))(Or||{}),Ur=(e=>(e.Default="Default",e.Teknomart="Teknomart",e.ArtiKurumsal="ArtiKurumsal",e.Verimor="Verimor",e))(Ur||{}),Nr=(e=>(e.None="None",e.AloTech="AloTech",e))(Nr||{}),Sr=(e=>(e.Pending="PENDING",e.Active="ACTIVE",e.Inactive="INACTIVE",e))(Sr||{}),Tr=(e=>(e[e.Object=1]="Object",e[e.Array=2]="Array",e[e.Text=3]="Text",e[e.Number=4]="Number",e[e.Boolean=5]="Boolean",e[e.File=6]="File",e[e.Color=7]="Color",e[e.ProductBranch=8]="ProductBranch",e[e.Icon=9]="Icon",e[e.InsuranceCompany=10]="InsuranceCompany",e[e.MultiLineText=11]="MultiLineText",e[e.InsuranceProduct=12]="InsuranceProduct",e))(Tr||{}),qr=(e=>(e.ProposalPremiumReceived="proposal_premium.received",e.ProposalPremiumPurchasing="proposal_premium.purchasing",e.ProposalPremiumPurchased="proposal_premium.purchased",e.ProposalPremiumPurchaseFailed="proposal_premium.purchase_failed",e.PolicyCreated="policy.created",e.PolicyUpdated="policy.updated",e))(qr||{}),Lr=(e=>(e.Waiting="WAITING",e.Active="ACTIVE",e.Purchasing="PURCHASING",e.Purchased="PURCHASED",e.Failed="FAILED",e))(Lr||{}),_r=(e=>(e.Waiting="WAITING",e.Failed="FAILED",e.Active="ACTIVE",e.Purchasing="PURCHASING",e.Purchased="PURCHASED",e))(_r||{}),vr=(e=>(e.ASC="ASC",e.DESC="DESC",e))(vr||{}),Fn="$search";function f(e,t=" "){let r=[],n=new Map;for(let a of e){let l=a.indexOf(".");if(l!==-1){let d=a.slice(0,l),i=a.slice(l+1);n.has(d)||n.set(d,[]),n.get(d).push(i)}else r.push(a)}let s=[...r];for(let[a,l]of n)s.push(`${a} { ${l.join(" ")} }`);return s.join(`
|
|
1
|
+
var fe=Object.defineProperty;var tt=(e,t,r)=>t in e?fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var rt=(e,t)=>{for(var r in t)fe(e,r,{get:t[r],enumerable:!0})};var h=(e,t,r)=>tt(e,typeof t!="symbol"?t+"":t,r);var Ce={name:"@insurup/sdk",version:"0.1.25",description:"Type-safe TypeScript SDK for the InsurUp insurance platform with GraphQL support. Tree-shakeable, works everywhere.",keywords:["insurup","insurance","sdk","typescript","api-client","graphql","policy","claims","coverage","vehicle-insurance","property-insurance"],author:"InsurUp Team",license:"MIT",homepage:"https://github.com/InsurUp/ts-toolkit#readme",repository:{type:"git",url:"git+https://github.com/InsurUp/ts-toolkit.git"},bugs:{url:"https://github.com/InsurUp/ts-toolkit/issues"},engines:{node:">=18"},type:"module",sideEffects:!1,main:"./dist/index.cjs",module:"./dist/index.js",types:"./dist/index.d.ts",files:["dist"],exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.js",require:"./dist/index.cjs",default:"./dist/index.js"},"./browser":{types:"./dist/index.d.ts",import:"./dist/index.browser.js",default:"./dist/index.browser.js"}},scripts:{build:"tsup && tsc -p tsconfig.build.json","check-types":"tsc --noEmit",dev:"tsup --watch",docs:"typedoc",lint:"eslint src test --max-warnings 0",test:"vitest run","test:unit":"vitest run test/unit","test:integration":"vitest run test/integration","test:watch":"vitest","test:coverage":"vitest run --coverage","test:coverage:unit":"vitest run test/unit --coverage","test:coverage:integration":"vitest run test/integration --coverage"},publishConfig:{access:"public"},devDependencies:{"@eslint/js":"^10.0.1","@vitest/coverage-v8":"^4.1.6",eslint:"^10.4.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.5",msw:"^2.14.6",prettier:"^3.8.3",tsup:"^8.5.1",typedoc:"^0.28.19",typescript:"^6.0.3","typescript-eslint":"^8.59.3",vitest:"^4.1.6"},dependencies:{"@insurup/contracts":"workspace:*","@microsoft/signalr":"^10.0.0"}};var st=Ce.version;var te=(i=>(i.Unknown="Unknown",i.JsonSerialization="JsonSerialization",i.JsonDeserialization="JsonDeserialization",i.NullResponse="NullResponse",i.Timeout="Timeout",i.HttpRequestFailed="HttpRequestFailed",i.UnexpectedNoContent="UnexpectedNoContent",i.GraphQLError="GraphQLError",i))(te||{}),ue=(R=>(R.Unknown="Unknown",R.AccessDenied="AccessDenied",R.BusinessValidation="BusinessValidation",R.FeatureNotSupported="FeatureNotSupported",R.InputValidation="InputValidation",R.ResourceDuplicate="ResourceDuplicate",R.ResourceInvalidState="ResourceInvalidState",R.ResourceNotFound="ResourceNotFound",R.EndpointNotFound="EndpointNotFound",R.UnsupportedMediaType="UnsupportedMediaType",R.MethodNotAllowed="MethodNotAllowed",R.Unauthorized="Unauthorized",R.Upstream="Upstream",R))(ue||{}),re=(p=>(p.Forbidden="FORBIDDEN",p.Unauthorized="UNAUTHORIZED",p.NotFound="NOT_FOUND",p.BadRequest="BAD_REQUEST",p.Conflict="CONFLICT",p.NotSupported="NOT_SUPPORTED",p.UpstreamError="UPSTREAM_ERROR",p.InternalError="INTERNAL_ERROR",p.ValidationError="VALIDATION_ERROR",p.FilterRequired="FILTER_REQUIRED",p.FilterMaxSpanExceeded="FILTER_MAX_SPAN_EXCEEDED",p.Unknown="UNKNOWN",p))(re||{});var ot={"https://api.insurup.com/problems/access-denied":"AccessDenied","https://api.insurup.com/problems/business-validation":"BusinessValidation","https://api.insurup.com/problems/feature-not-supported":"FeatureNotSupported","https://api.insurup.com/problems/input-validation":"InputValidation","https://api.insurup.com/problems/resource-duplicate":"ResourceDuplicate","https://api.insurup.com/problems/resource-invalid-state":"ResourceInvalidState","https://api.insurup.com/problems/resource-not-found":"ResourceNotFound","https://api.insurup.com/problems/endpoint-not-found":"EndpointNotFound","https://api.insurup.com/problems/unauthorized":"Unauthorized","https://api.insurup.com/problems/upstream-service":"Upstream","https://api.insurup.com/problems/unsupported-media-type":"UnsupportedMediaType","https://api.insurup.com/problems/method-not-allowed":"MethodNotAllowed"};function it(e){let t=e.toLowerCase().trim();return ot[t]??"Unknown"}function at(e){return!e||!Array.isArray(e)?[]:e.filter(t=>t!=null).map(t=>({propertyName:t.propertyName??"",errorMessage:t.errorMessage??"",attemptedValue:t.attemptedValue??null}))}function pe(e,t){let r={};try{if(t.trim()){let a=JSON.parse(t);typeof a=="object"&&a!==null&&(r=a)}}catch{}let n=r.type??"https://api.insurup.com/problems/unknown",s=it(n);return{kind:"server-error",isSuccess:!1,message:r.detail??(e.statusText||"Unknown server error"),type:s,typeString:n,title:r.title??`HTTP ${e.status}`,detail:r.detail??(e.statusText||"Unknown server error"),instance:r.instance??"",status:r.status??e.status,codes:r.codes??[],traceId:r.traceId??void 0,template:r.template??"",templateArgs:r.templateArgs??{},suggestions:r.suggestions??[],validationErrors:at(r.validationErrors)}}function ne(e){if(e instanceof Error){if(e.name==="AbortError"||e.message.includes("timeout"))return{kind:"client-error",isSuccess:!1,message:"Request timed out",type:"Timeout",error:e};let t=e.message.toLowerCase();return e.name==="TypeError"||t.includes("fetch")||t.includes("network")||t.includes("failed")||t.includes("econn")||t.includes("enotfound")?{kind:"client-error",isSuccess:!1,message:"HTTP request failed",type:"HttpRequestFailed",error:e}:{kind:"client-error",isSuccess:!1,message:"HTTP request failed",type:"HttpRequestFailed",error:e}}return{kind:"client-error",isSuccess:!1,message:"Unknown error occurred",type:"Unknown",error:e}}function ye(e){return{kind:"client-error",isSuccess:!1,message:e instanceof Error?e.message:"Failed to serialize request to JSON",type:"JsonSerialization",error:e}}function q(e){return{kind:"client-error",isSuccess:!1,message:"Failed to parse response JSON",type:"JsonDeserialization",error:e}}function ce(){return{kind:"client-error",isSuccess:!1,message:"Expected response data but received no content",type:"UnexpectedNoContent"}}function lt(e){return e instanceof P?e.error:{kind:"client-error",isSuccess:!1,message:e.message,type:"Unknown"}}var P=class extends Error{constructor(r){super(r.message);h(this,"error");this.name="InsurUpError",this.error=r}};function v(e){return{kind:"success",isSuccess:!0,message:"Success",data:e}}function de(){return{kind:"success",isSuccess:!0,message:"Success"}}function ut(e){if(e.isSuccess)return e.data;throw new P(e)}function pt(e){if(!e.isSuccess)throw new P(e)}function ct(e){if(e.isSuccess)return e.data;throw new P(e)}function dt(e){if(!e.isSuccess)throw new P(e)}function me(e){return{kind:"graphql-error",isSuccess:!1,message:e[0]?.message??"Unknown GraphQL error",errors:e}}var mt={retries:3,factor:2,minTimeout:1e3,maxTimeout:1e4,randomize:!0,backoffStrategy:"exponential",retryableStatusCodes:[408,429,500,502,503,504],onFailedAttempt:()=>{}},ht={info:(e,t)=>{t!==void 0?console.info(e,t):console.info(e)},warn:(e,t)=>{t!==void 0?console.warn(e,t):console.warn(e)},error:(e,t)=>{t!==void 0?console.error(e,t):console.error(e)}},L={baseUrl:"https://api.insurup.com/api/",customHeaders:{},userAgent:"@insurup/sdk",timeoutMs:3e4,logLevel:"none",logger:ht,retry:void 0,tokenProvider:void 0,onRequest:void 0,onResponse:void 0};function Ee(e){return{baseUrl:e?.baseUrl??L.baseUrl,customHeaders:{...L.customHeaders,...e?.customHeaders},userAgent:e?.userAgent??L.userAgent,timeoutMs:e?.timeoutMs??L.timeoutMs,logLevel:e?.logLevel??L.logLevel,logger:e?.logger??L.logger,retry:e?.retry?{...mt,...e.retry}:void 0,tokenProvider:e?.tokenProvider,onRequest:e?.onRequest,onResponse:e?.onResponse}}async function Pe(e,t){let{retries:r,factor:n,minTimeout:s,maxTimeout:a,randomize:l,backoffStrategy:d,onFailedAttempt:i}=t,m=1;for(;;)try{return await e(m)}catch(u){if(m>r)throw u;let p;switch(d){case"linear":p=s*m;break;case"constant":p=s;break;default:p=s*Math.pow(n,m-1)}l&&(p*=1+Math.random()),p=Math.min(p,a),i&&i({attemptNumber:m,retriesLeft:r-m+1,name:u instanceof Error?u.name:"Error",message:u instanceof Error?u.message:String(u),error:u instanceof Error?u:new Error(String(u))}),await new Promise(R=>setTimeout(R,p)),m++}}var se=class{constructor(t){h(this,"options");this.options=Ee(t)}async sendInternal(t,r,n,s,a=!0){let l=Date.now(),i={url:`${this.options.baseUrl.replace(/\/$/,"")}/${r.replace(/^\//,"")}`,method:t,headers:{...this.options.customHeaders,...s?.headers},body:n};if(this.options.onRequest)try{i=await this.options.onRequest(i)}catch(u){this.options.logLevel!=="none"&&this.options.logger.warn("Request interceptor failed:",u)}this.logRequest(t,r,n,s?.headers);let m=async u=>{try{let c=await this.sendSingleRequest(i.method,r,i.body,{headers:i.headers,signal:s?.signal,timeoutMs:s?.timeoutMs},a);if(c.kind==="success")return c;if(this.shouldRetryResult(c)){let p=new Error(c.message);throw p.result=c,p.attemptNumber=u,p}return c}catch(c){let p=ne(c);if(p.type==="Timeout")return p;if(p.type==="HttpRequestFailed"&&this.options.retry){let R=new Error(p.message);throw R.result=p,R.attemptNumber=u,R}return p}};try{let u;this.options.retry?u=await Pe(m,{...this.options.retry,onFailedAttempt:p=>{let R=p.error;R.result&&this.logRetry(p.attemptNumber,R.result),this.options.retry?.onFailedAttempt&&this.options.retry.onFailedAttempt(p)}}):u=await m(1);let c=Date.now()-l;if(this.logResponse("SUCCESS",c,1,u),this.options.onResponse)try{return await this.options.onResponse(u,i)}catch(p){this.options.logLevel!=="none"&&this.options.logger.warn("Response interceptor failed:",p)}return u}catch(u){let c=Date.now()-l,p=u;if(p.result){if(this.logResponse("ERROR",c,p.attemptNumber||1,p.result),this.options.onResponse)try{return await this.options.onResponse(p.result,i)}catch(le){this.options.logLevel!=="none"&&this.options.logger.warn("Response interceptor failed:",le)}return p.result}let R=ne(u);if(this.logResponse("ERROR",c,1,R),this.options.onResponse)try{return await this.options.onResponse(R,i)}catch(le){this.options.logLevel!=="none"&&this.options.logger.warn("Response interceptor failed:",le)}return R}}async sendSingleRequest(t,r,n,s,a=!0){let l=`${this.options.baseUrl.replace(/\/$/,"")}/${r.replace(/^\//,"")}`,d=await this.buildHeaders(s?.headers),i=null;if(n)if(n instanceof FormData)i=n;else try{i=JSON.stringify(n),this.hasContentTypeHeader(d)||(d["Content-Type"]="application/json")}catch(R){return ye(R)}let m=new AbortController,u=setTimeout(()=>m.abort(),s?.timeoutMs??this.options.timeoutMs),c;if(s?.signal)if(s.signal.aborted)m.abort();else{let R=()=>m.abort();s.signal.addEventListener("abort",R,{once:!0}),c=()=>s.signal.removeEventListener("abort",R)}let p;try{p=await fetch(l,{method:t,headers:d,body:i,signal:m.signal})}finally{clearTimeout(u),c?.()}return await this.handleResponse(p,a)}async get(t,r){return this.sendInternal("GET",t,null,r,!0)}async post(t,r,n){return this.sendInternal("POST",t,r,n,!0)}async postNoContent(t,r,n){return this.sendInternal("POST",t,r,n,!1)}async put(t,r,n){return this.sendInternal("PUT",t,r,n,!0)}async putNoContent(t,r,n){return this.sendInternal("PUT",t,r,n,!1)}async patch(t,r,n){return this.sendInternal("PATCH",t,r,n,!0)}async patchNoContent(t,r,n){return this.sendInternal("PATCH",t,r,n,!1)}async delete(t,r){return this.sendInternal("DELETE",t,null,r,!0)}async deleteNoContent(t,r){return this.sendInternal("DELETE",t,null,r,!1)}async getBlob(t,r){let n=`${this.options.baseUrl.replace(/\/$/,"")}/${t.replace(/^\//,"")}`,s=await this.buildHeaders(r?.headers),a={url:n,method:"GET",headers:s};if(this.options.onRequest)try{a=await this.options.onRequest(a)}catch(u){this.options.logLevel!=="none"&&this.options.logger.warn("Request interceptor failed:",u)}this.logRequest("GET",t,void 0,r?.headers);let l=new AbortController,d=setTimeout(()=>l.abort(),r?.timeoutMs??this.options.timeoutMs),i;if(r?.signal)if(r.signal.aborted)l.abort();else{let u=()=>l.abort();r.signal.addEventListener("abort",u,{once:!0}),i=()=>r.signal.removeEventListener("abort",u)}let m;try{m=await fetch(n,{method:"GET",headers:a.headers,signal:l.signal})}catch(u){let c=ne(u);if(this.options.onResponse)try{return await this.options.onResponse(c,a)}catch(p){this.options.logLevel!=="none"&&this.options.logger.warn("Response interceptor failed:",p)}return c}finally{clearTimeout(d),i?.()}if(!m.ok){let u=await m.text(),c=pe(m,u);if(this.options.onResponse)try{return await this.options.onResponse(c,a)}catch(p){this.options.logLevel!=="none"&&this.options.logger.warn("Response interceptor failed:",p)}return c}try{let u=await m.blob(),c=v(u);if(this.options.onResponse)try{return await this.options.onResponse(c,a)}catch(p){this.options.logLevel!=="none"&&this.options.logger.warn("Response interceptor failed:",p)}return c}catch(u){let c=q(u);if(this.options.onResponse)try{return await this.options.onResponse(c,a)}catch(p){this.options.logLevel!=="none"&&this.options.logger.warn("Response interceptor failed:",p)}return c}}async buildHeaders(t){let r={...this.options.customHeaders,...t};if(!(typeof globalThis=="object"&&"window"in globalThis)&&this.options.userAgent&&(r["User-Agent"]=this.options.userAgent),this.options.tokenProvider)try{let s=await this.options.tokenProvider();s&&(r.Authorization=`Bearer ${s}`)}catch(s){this.options.logLevel!=="none"&&this.options.logger.warn("Token provider failed:",s)}return r}hasContentTypeHeader(t){return Object.keys(t).some(r=>r.toLowerCase()==="content-type")}isJsonContentType(t){let r=t.toLowerCase();return r.includes("application/json")||r.includes("application/vnd.api+json")||r.includes("application/hal+json")||r.includes("application/problem+json")||r.includes("text/json")||/^application\/.*\+json/i.test(t)}async handleResponse(t,r){if(!t.ok){let a=await t.text();return pe(t,a)}if(t.status===204||t.status===205)return r?ce():de();let n=await t.text();if(!n.trim())return r?ce():de();let s=t.headers.get("content-type");return s&&!this.isJsonContentType(s)?q(new Error(`Expected JSON response but got ${s}`)):this.parseSuccessResponse(n)}parseSuccessResponse(t){try{let r=JSON.parse(t);return v(r)}catch(r){return q(r)}}shouldRetryResult(t){return this.options.retry?t.kind==="server-error"?this.options.retry.retryableStatusCodes.includes(t.status):t.kind==="client-error"?t.type==="HttpRequestFailed":!1:!1}logRequest(t,r,n,s){if(this.options.logLevel==="none")return;let a=`${this.options.baseUrl.replace(/\/$/,"")}/${r.replace(/^\//,"")}`;if(this.options.logLevel==="basic")this.options.logger.info(`${t} ${a}`);else if(this.options.logLevel==="detailed"){let l=this.sanitizeHeaders(s),d=this.sanitizeBody(n);this.options.logger.info(`Request: ${t} ${a}`,{headers:l,body:d})}}logResponse(t,r,n,s){if(this.options.logLevel==="none")return;let a=n>1?` (attempt ${n})`:"";if(this.options.logLevel==="basic")t==="SUCCESS"?this.options.logger.info(`${t} in ${r}ms${a}`):this.options.logger.error(`${t} in ${r}ms${a}`);else if(this.options.logLevel==="detailed")if(t==="SUCCESS"){let l=s.kind==="success"&&"data"in s?this.sanitizeResponseData(s.data):void 0;this.options.logger.info(`Response: ${t} in ${r}ms${a}`,{data:l})}else{let l=this.sanitizeError(s);this.options.logger.error(`Response: ${t} in ${r}ms${a}`,{error:l})}}logRetry(t,r){if(this.options.logLevel==="none")return;let n=r.kind==="server-error"?`HTTP ${r.status}`:r.kind==="client-error"?r.type:"Unknown error";this.options.logger.warn(`Retry attempt ${t} failed due to: ${n}`)}sanitizeHeaders(t){if(!t)return;let r={},n=["authorization","cookie","x-api-key","x-auth-token"];for(let[s,a]of Object.entries(t)){let l=s.toLowerCase();n.includes(l)?r[s]="[REDACTED]":r[s]=a}return r}sanitizeBody(t){if(t){if(t instanceof FormData)return"[FormData body]";if(typeof t=="string")return t.length>1e4?"[Large string body - truncated for logging]":t.length>1e3?`${t.substring(0,1e3)}... [truncated]`:t;if(typeof t=="number"||typeof t=="boolean")return t;try{if(this.isLargeObject(t))return"[Large object body - truncated for logging]";let r=JSON.stringify(t);return r.length>1e3?`${r.substring(0,1e3)}... [truncated]`:t}catch{return"[Unable to serialize body]"}}}isLargeObject(t){if(!t||typeof t!="object")return!1;try{let r=0,n=0,s=(a,l=0)=>{if(l>3||r>50)return!0;if(n=Math.max(n,l),Array.isArray(a)){if(a.length>100)return!0;for(let d=0;d<Math.min(a.length,10);d++)if(s(a[d],l+1))return!0}else if(a&&typeof a=="object"){let d=Object.keys(a);r+=d.length;for(let i of d.slice(0,10))if(s(a[i],l+1))return!0}return!1};return s(t)}catch{return!0}}sanitizeResponseData(t){if(t==null)return t;try{if(this.isLargeObject(t))return"[Large response data - truncated for logging]";let r=JSON.stringify(t);return r.length>1e3?`${r.substring(0,1e3)}... [truncated]`:t}catch{return"[Unable to serialize response data]"}}sanitizeError(t){return t.kind==="server-error"?{type:t.type,status:t.status,title:t.title,detail:t.detail,traceId:t.traceId}:t.kind==="client-error"?{type:t.type,message:t.message}:{message:"Unknown error type"}}};function Rt(e){if(typeof e!="string")return"UNKNOWN";switch(e.toUpperCase()){case"FORBIDDEN":return"FORBIDDEN";case"UNAUTHORIZED":return"UNAUTHORIZED";case"NOT_FOUND":return"NOT_FOUND";case"BAD_REQUEST":return"BAD_REQUEST";case"CONFLICT":return"CONFLICT";case"NOT_SUPPORTED":return"NOT_SUPPORTED";case"UPSTREAM_ERROR":return"UPSTREAM_ERROR";case"INTERNAL_ERROR":return"INTERNAL_ERROR";case"VALIDATION_ERROR":return"VALIDATION_ERROR";case"FILTER_REQUIRED":return"FILTER_REQUIRED";case"FILTER_MAX_SPAN_EXCEEDED":return"FILTER_MAX_SPAN_EXCEEDED";default:return"UNKNOWN"}}function gt(e){return e?{...e,code:Rt(e.code),traceId:typeof e.traceId=="string"?e.traceId:void 0,codes:Array.isArray(e.codes)?e.codes.filter(r=>typeof r=="string"):void 0,template:typeof e.template=="string"?e.template:void 0,templateArgs:typeof e.templateArgs=="object"&&e.templateArgs!==null?e.templateArgs:void 0,suggestions:Array.isArray(e.suggestions)?e.suggestions.filter(r=>typeof r=="string"):void 0}:void 0}function It(e){return e.map(t=>{let r=t.locations?.map(n=>({line:n.line,column:n.column}));return{message:t.message,locations:r,path:t.path,extensions:gt(t.extensions)}})}var W=class{constructor(t){this.http=t}async query(t,r,n){let s={query:t,variables:r},a=await this.http.post("graphql",s,n);if(!a.isSuccess)return a;let l=a.data;if(l.errors&&l.errors.length>0){let d=It(l.errors);return me(d)}return l.data?v(l.data):q(new Error("GraphQL response contained no data and no errors"))}};import{HttpTransportType as ft,HubConnectionBuilder as Ct,HubConnectionState as he,LogLevel as yt}from"@microsoft/signalr";var O={success:"ReceiveProposalProductSuccess",failed:"ReceiveProposalProductFailed",inProgress:"ReceiveProposalProductInProgress",revised:"ReceiveProposalProductRevised",purchasing:"ReceiveProposalProductPurchasing",purchased:"ReceiveProposalProductPurchased",purchaseFailed:"ReceiveProposalProductPurchaseFailed",coverage:"ReceiveProposalProductCoverage"},Et="/hubs/proposal-detail",Ae="Register",D=class{constructor(t){h(this,"hubUrl");h(this,"tokenProvider");h(this,"logLevel");h(this,"connection",null);h(this,"startPromise",null);h(this,"subscribers",new Map);this.hubUrl=new URL(Et,Pt(t.hubsBaseUrl)).toString(),this.tokenProvider=t.tokenProvider,this.logLevel=t.logLevel??yt.Warning}async subscribeProposalDetail(t,r){if(!t)throw new Error("subscribeProposalDetail: proposalId is required");let n=this.subscribers.get(t),s=n===void 0;n===void 0&&(n=new Set,this.subscribers.set(t,n)),n.add(r);try{let l=await this.ensureStarted();s&&await l.send(Ae,{proposalId:t})}catch(l){throw n.delete(r),n.size===0&&this.subscribers.delete(t),l}let a=!1;return()=>{if(a)return;a=!0;let l=this.subscribers.get(t);l&&(l.delete(r),l.size===0&&this.subscribers.delete(t),this.subscribers.size===0&&this.stop())}}async close(){this.subscribers.clear(),await this.stop()}async ensureStarted(){if(this.connection&&this.connection.state===he.Connected)return this.connection;if(this.startPromise)return this.startPromise;let t=this.buildConnection();this.connection=t,this.startPromise=(async()=>(await t.start(),t))();try{return await this.startPromise}catch(r){throw this.connection=null,r}finally{this.startPromise=null}}buildConnection(){let t=this.tokenProvider,r=new Ct().withUrl(this.hubUrl,{accessTokenFactory:t?()=>At(t):void 0,transport:ft.WebSockets,skipNegotiation:!0}).withAutomaticReconnect().configureLogging(this.logLevel).build();return this.registerHandlers(r),r.onreconnected(()=>{this.reRegisterAll(r)}),r}registerHandlers(t){let r=(n,s)=>{t.on(n,a=>{let l=this.subscribers.get(a.proposalId);if(l)for(let d of l)s(d)?.(a)})};r(O.success,n=>n.onProductSuccess),r(O.failed,n=>n.onProductFailed),r(O.inProgress,n=>n.onProductInProgress),r(O.revised,n=>n.onProductRevised),r(O.purchasing,n=>n.onProductPurchasing),r(O.purchased,n=>n.onProductPurchased),r(O.purchaseFailed,n=>n.onProductPurchaseFailed),r(O.coverage,n=>n.onProductCoverage)}async reRegisterAll(t){for(let r of this.subscribers.keys())await t.send(Ae,{proposalId:r})}async stop(){let t=this.connection;t&&(this.connection=null,!(t.state===he.Disconnected||t.state===he.Disconnecting)&&await t.stop())}};function Pt(e){return e.endsWith("/")?e:`${e}/`}async function At(e){return await e()??""}var Ge={};rt(Ge,{addressParameters:()=>A,agentBranches:()=>N,agentRoles:()=>T,agentSetupRequests:()=>oe,agentUsers:()=>I,agents:()=>y,b2c:()=>F,banks:()=>De,cases:()=>g,contactForm:()=>bt,coverageChoices:()=>_,coverageGroups:()=>U,customers:()=>Ue,endpoints:()=>o,filePolicyTransfers:()=>ve,files:()=>ie,financialInstitutions:()=>Fe,insuranceCompanies:()=>be,insuranceServices:()=>Te,languages:()=>ae,policies:()=>Le,policyTransfers:()=>_e,properties:()=>b,proposals:()=>qe,releaseNotes:()=>We,resourceKeys:()=>Oe,templates:()=>S,vehicleParameters:()=>Ne,vehicles:()=>Se,webhooks:()=>E});var bt={submit:"contact-form"},y={getCurrentAgent:"agents/me",updateCurrentAgent:"agents/me",reSyncCurrentAgentWithInsurance:"agents/me/re-sync",insuranceCompanies:{getMyInsuranceCompanies:"agents/me/insurance-companies",addInsuranceCompanyToAgent:"agents/me/insurance-companies",getBranches:{definition:"agents/me/insurance-companies/{AgentInsuranceCompanyId}/branches",render:e=>"agents/me/insurance-companies/{AgentInsuranceCompanyId}/branches".replace("{AgentInsuranceCompanyId}",encodeURIComponent(e))},getConnection:{definition:"agents/me/insurance-companies/{AgentInsuranceCompanyId}/connection",render:e=>"agents/me/insurance-companies/{AgentInsuranceCompanyId}/connection".replace("{AgentInsuranceCompanyId}",encodeURIComponent(e))},updateConnection:{definition:"agents/me/insurance-companies/{AgentInsuranceCompanyId}/connection",render:e=>"agents/me/insurance-companies/{AgentInsuranceCompanyId}/connection".replace("{AgentInsuranceCompanyId}",encodeURIComponent(e))},updateBranches:{definition:"agents/me/insurance-companies/{AgentInsuranceCompanyId}/branches",render:e=>"agents/me/insurance-companies/{AgentInsuranceCompanyId}/branches".replace("{AgentInsuranceCompanyId}",encodeURIComponent(e))},reSyncAgentInsuranceCompanyWithInsurance:{definition:"agents/me/insurance-companies/{AgentInsuranceCompanyId}/re-sync",render:e=>"agents/me/insurance-companies/{AgentInsuranceCompanyId}/re-sync".replace("{AgentInsuranceCompanyId}",encodeURIComponent(e))},remove:{definition:"agents/me/insurance-companies/{AgentInsuranceCompanyId}",render:e=>"agents/me/insurance-companies/{AgentInsuranceCompanyId}".replace("{AgentInsuranceCompanyId}",encodeURIComponent(e))}}},be={getInsuranceCompanies:"insurance-companies",getInsuranceCompanyProducts:{definition:"insurance-companies/{InsuranceCompanyId}/products",render:e=>"insurance-companies/{InsuranceCompanyId}/products".replace("{InsuranceCompanyId}",encodeURIComponent(e.toString()))},getAllProducts:"insurance-companies/products",connectionFields:{getAgentBasedConnectionFieldsByCompanyId:{definition:"insurance-companies/{InsuranceCompanyId}/connection-fields:agent-based",render:e=>"insurance-companies/{InsuranceCompanyId}/connection-fields:agent-based".replace("{InsuranceCompanyId}",encodeURIComponent(e.toString()))}}},Oe={getAll:"resource-keys"},Ue={createCustomer:"customers",getCurrentCustomer:"customers/me",externalLookup:"customers/external-lookup",setCustomerRepresentative:{definition:"customers/{CustomerId}/representative",render:e=>"customers/{CustomerId}/representative".replace("{CustomerId}",encodeURIComponent(e))},getCustomer:{definition:"customers/{CustomerId}",render:e=>"customers/{CustomerId}".replace("{CustomerId}",encodeURIComponent(e))},updateCustomer:{definition:"customers/{CustomerId}",render:e=>"customers/{CustomerId}".replace("{CustomerId}",encodeURIComponent(e))},deleteCustomer:{definition:"customers/{CustomerId}",render:e=>"customers/{CustomerId}".replace("{CustomerId}",encodeURIComponent(e))},getCustomerAssets:{definition:"customers/{CustomerId}/assets",render:e=>"customers/{CustomerId}/assets".replace("{CustomerId}",encodeURIComponent(e))},getHealthInfo:{definition:"customers/{CustomerId}/health-info",render:e=>"customers/{CustomerId}/health-info".replace("{CustomerId}",encodeURIComponent(e))},updateHealthInfo:{definition:"customers/{CustomerId}/health-info",render:e=>"customers/{CustomerId}/health-info".replace("{CustomerId}",encodeURIComponent(e))},emails:{addCustomerEmail:{definition:"customers/{CustomerId}/emails",render:e=>"customers/{CustomerId}/emails".replace("{CustomerId}",encodeURIComponent(e))},removeCustomerEmail:{definition:"customers/{CustomerId}/emails/{Email}",render:e=>"customers/{CustomerId}/emails/{Email}".replace("{CustomerId}",encodeURIComponent(e.customerId)).replace("{Email}",encodeURIComponent(e.email))},changePrimaryCustomerEmail:{definition:"customers/{CustomerId}/emails/{Email}/primary",render:e=>"customers/{CustomerId}/emails/{Email}/primary".replace("{CustomerId}",encodeURIComponent(e.customerId)).replace("{Email}",encodeURIComponent(e.email))},getCustomerEmails:{definition:"customers/{CustomerId}/emails",render:e=>"customers/{CustomerId}/emails".replace("{CustomerId}",encodeURIComponent(e))},getPrimaryCustomerEmail:{definition:"customers/{CustomerId}/emails/primary",render:e=>"customers/{CustomerId}/emails/primary".replace("{CustomerId}",encodeURIComponent(e))},setPrimaryCustomerEmail:{definition:"customers/{CustomerId}/emails/primary",render:e=>"customers/{CustomerId}/emails/primary".replace("{CustomerId}",encodeURIComponent(e))}},phoneNumbers:{addCustomerPhoneNumber:{definition:"customers/{CustomerId}/phone-numbers",render:e=>"customers/{CustomerId}/phone-numbers".replace("{CustomerId}",encodeURIComponent(e))},removeCustomerPhoneNumber:{definition:"customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}",render:e=>"customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}".replace("{CustomerId}",encodeURIComponent(e.customerId)).replace("{CountryCode}",encodeURIComponent(e.countryCode.toString())).replace("{PhoneNumber}",encodeURIComponent(e.phoneNumber))},changePrimaryCustomerPhoneNumber:{definition:"customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}/primary",render:e=>"customers/{CustomerId}/phone-numbers/{CountryCode}-{PhoneNumber}/primary".replace("{CustomerId}",encodeURIComponent(e.customerId)).replace("{CountryCode}",encodeURIComponent(e.countryCode.toString())).replace("{PhoneNumber}",encodeURIComponent(e.phoneNumber))},getCustomerPhoneNumbers:{definition:"customers/{CustomerId}/phone-numbers",render:e=>"customers/{CustomerId}/phone-numbers".replace("{CustomerId}",encodeURIComponent(e))},getPrimaryCustomerPhoneNumber:{definition:"customers/{CustomerId}/phone-numbers/primary",render:e=>"customers/{CustomerId}/phone-numbers/primary".replace("{CustomerId}",encodeURIComponent(e))},setPrimaryCustomerPhoneNumber:{definition:"customers/{CustomerId}/phone-numbers/primary",render:e=>"customers/{CustomerId}/phone-numbers/primary".replace("{CustomerId}",encodeURIComponent(e))}},contactFlows:{getCustomerContactFlows:{definition:"customers/{CustomerId}/contact-flows",render:(e,t)=>{let r="customers/{CustomerId}/contact-flows".replace("{CustomerId}",encodeURIComponent(e));return t?r+"?caseRef="+encodeURIComponent(t):r}},createContactFlow:{definition:"customers/{CustomerId}/contact-flows",render:e=>"customers/{CustomerId}/contact-flows".replace("{CustomerId}",encodeURIComponent(e))},endContactFlow:{definition:"customers/{CustomerId}/contact-flows/{ContactFlowId}/end",render:(e,t)=>"customers/{CustomerId}/contact-flows/{ContactFlowId}/end".replace("{CustomerId}",encodeURIComponent(e)).replace("{ContactFlowId}",encodeURIComponent(t))}},contacts:{getCustomerContacts:{definition:"customers/{CustomerId}/contacts",render:(e,t)=>{let r="customers/{CustomerId}/contacts".replace("{CustomerId}",encodeURIComponent(e));return t?r+"?caseRef="+encodeURIComponent(t):r}},create:{definition:"customers/{CustomerId}/contacts",render:e=>"customers/{CustomerId}/contacts".replace("{CustomerId}",encodeURIComponent(e))}},setCustomerBranch:{definition:"customers/{CustomerId}/branch",render:e=>"customers/{CustomerId}/branch".replace("{CustomerId}",encodeURIComponent(e))},addresses:{create:{definition:"customers/{CustomerId}/addresses",render:e=>"customers/{CustomerId}/addresses".replace("{CustomerId}",encodeURIComponent(e))},update:{definition:"customers/{CustomerId}/addresses/{AddressId}",render:(e,t)=>"customers/{CustomerId}/addresses/{AddressId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{AddressId}",encodeURIComponent(t))},getById:{definition:"customers/{CustomerId}/addresses/{AddressId}",render:(e,t)=>"customers/{CustomerId}/addresses/{AddressId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{AddressId}",encodeURIComponent(t))},getAll:{definition:"customers/{CustomerId}/addresses",render:e=>"customers/{CustomerId}/addresses".replace("{CustomerId}",encodeURIComponent(e))},delete:{definition:"customers/{CustomerId}/addresses/{AddressId}",render:(e,t)=>"customers/{CustomerId}/addresses/{AddressId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{AddressId}",encodeURIComponent(t))}},consents:{give:{definition:"customers/{CustomerId}/consents",render:e=>"customers/{CustomerId}/consents".replace("{CustomerId}",encodeURIComponent(e))},revoke:{definition:"customers/{CustomerId}/consents/{ConsentType}",render:(e,t)=>"customers/{CustomerId}/consents/{ConsentType}".replace("{CustomerId}",encodeURIComponent(e)).replace("{ConsentType}",encodeURIComponent(t))},getAll:{definition:"customers/{CustomerId}/consents",render:e=>"customers/{CustomerId}/consents".replace("{CustomerId}",encodeURIComponent(e))}}},A={queryCities:"address-parameters/cities",queryDistricts:{definition:"address-parameters/districts",render:e=>"address-parameters/districts?cityReference={cityReference}".replace("{cityReference}",e.cityReference)},queryTowns:{definition:"address-parameters/towns",render:e=>"address-parameters/towns?districtReference={districtReference}".replace("{districtReference}",e.districtReference)},queryNeighbourhoods:{definition:"address-parameters/neighbourhoods",render:e=>"address-parameters/neighbourhoods?townReference={townReference}".replace("{townReference}",e.townReference)},queryStreets:{definition:"address-parameters/streets",render:e=>"address-parameters/streets?neighbourhoodReference={neighbourhoodReference}".replace("{neighbourhoodReference}",e.neighbourhoodReference)},queryBuildings:{definition:"address-parameters/buildings",render:e=>"address-parameters/buildings?streetReference={streetReference}".replace("{streetReference}",e.streetReference)},queryApartments:{definition:"address-parameters/apartments",render:e=>"address-parameters/apartments?buildingReference={buildingReference}".replace("{buildingReference}",e.buildingReference)}},Ne={queryBrands:"vehicle-parameters/brands",queryModels:{definition:"vehicle-parameters/models",render:e=>"vehicle-parameters/models?brandReference={brandReference}&year={year}".replace("{brandReference}",encodeURIComponent(e.brandReference)).replace("{year}",encodeURIComponent(e.year.toString()))}},Se={getCurrentCustomerVehicles:"customers/me/vehicles",externalLookup:{definition:"customers/{CustomerId}/vehicles/external-lookup",render:e=>"customers/{CustomerId}/vehicles/external-lookup".replace("{CustomerId}",encodeURIComponent(e))},create:{definition:"customers/{CustomerId}/vehicles",render:e=>"customers/{CustomerId}/vehicles".replace("{CustomerId}",encodeURIComponent(e))},update:{definition:"customers/{CustomerId}/vehicles/{VehicleId}",render:(e,t)=>"customers/{CustomerId}/vehicles/{VehicleId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{VehicleId}",encodeURIComponent(t))},delete:{definition:"customers/{CustomerId}/vehicles/{VehicleId}",render:(e,t)=>"customers/{CustomerId}/vehicles/{VehicleId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{VehicleId}",encodeURIComponent(t))},get:{definition:"customers/{CustomerId}/vehicles/{VehicleId}",render:(e,t)=>"customers/{CustomerId}/vehicles/{VehicleId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{VehicleId}",encodeURIComponent(t))},getCustomerVehicles:{definition:"customers/{CustomerId}/vehicles",render:e=>"customers/{CustomerId}/vehicles".replace("{CustomerId}",encodeURIComponent(e))}},Te={queryVehicleByBrandCode:"insurance-services/query-vehicle-by-brand-code"},b={getPropertyAddressByPropertyNumber:"properties/query-address-by-property-number",queryPropertyByDaskOldPolicy:"properties/query-property-by-dask-old-policy",getCurrentCustomerProperties:"customers/me/properties",getAll:{definition:"customers/{CustomerId}/properties",render:e=>"customers/{CustomerId}/properties".replace("{CustomerId}",encodeURIComponent(e))},create:{definition:"customers/{CustomerId}/properties",render:e=>"customers/{CustomerId}/properties".replace("{CustomerId}",encodeURIComponent(e))},getById:{definition:"customers/{CustomerId}/properties/{PropertyId}",render:(e,t)=>"customers/{CustomerId}/properties/{PropertyId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{PropertyId}",encodeURIComponent(t))},update:{definition:"customers/{CustomerId}/properties/{PropertyId}",render:(e,t)=>"customers/{CustomerId}/properties/{PropertyId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{PropertyId}",encodeURIComponent(t))},delete:{definition:"customers/{CustomerId}/properties/{PropertyId}",render:(e,t)=>"customers/{CustomerId}/properties/{PropertyId}".replace("{CustomerId}",encodeURIComponent(e)).replace("{PropertyId}",encodeURIComponent(t))}},qe={create:"proposals",getProposalById:{definition:"proposals/{ProposalId}",render:e=>"proposals/{ProposalId}".replace("{ProposalId}",encodeURIComponent(e))},getProposalSnapshot:{definition:"proposals/{ProposalId}/snapshot",render:e=>"proposals/{ProposalId}/snapshot".replace("{ProposalId}",encodeURIComponent(e))},getProposalCoverage:{definition:"proposals/{ProposalId}/coverage",render:e=>"proposals/{ProposalId}/coverage".replace("{ProposalId}",encodeURIComponent(e))},getProposalProductCoverage:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/coverage",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/coverage".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},retryFailedProposalProduct:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/retry",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/retry".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},getProposalProductPremiumDetail:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/premium-detail/{InstallmentNumber}",render:(e,t,r)=>"proposals/{ProposalId}/products/{ProposalProductId}/premium-detail/{InstallmentNumber}".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t)).replace("{InstallmentNumber}",encodeURIComponent(r.toString()))},purchaseProposalProductSync:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/purchase/sync",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/purchase/sync".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},purchaseProposalProductAsync:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/purchase/async",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/purchase/async".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},reviseProposal:{definition:"proposals/{ProposalId}/revise",render:e=>"proposals/{ProposalId}/revise".replace("{ProposalId}",encodeURIComponent(e))},reviseProposalProduct:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/revise",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/revise".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},fetchProposalProductDocument:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/document",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/document".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},fetchProposalInformationFormDocument:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/information-form",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/information-form".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},sendProposalProductDocument:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/document/send",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/document/send".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},sendProposalInformationFormDocument:{definition:"proposals/{ProposalId}/products/{ProposalProductId}/information-form/send",render:(e,t)=>"proposals/{ProposalId}/products/{ProposalProductId}/information-form/send".replace("{ProposalId}",encodeURIComponent(e)).replace("{ProposalProductId}",encodeURIComponent(t))},generateCompareProposalProductsPdf:{definition:"proposals/{ProposalId}/products/compare-pdf",render:e=>"proposals/{ProposalId}/products/compare-pdf".replace("{ProposalId}",encodeURIComponent(e))},sendCompareProposalProductsPdf:{definition:"proposals/{ProposalId}/products/compare-pdf/send",render:e=>"proposals/{ProposalId}/products/compare-pdf/send".replace("{ProposalId}",encodeURIComponent(e))},setProposalRepresentative:{definition:"proposals/{ProposalId}/representative",render:e=>"proposals/{ProposalId}/representative".replace("{ProposalId}",encodeURIComponent(e))},setProposalBranch:{definition:"proposals/{ProposalId}/branch",render:e=>"proposals/{ProposalId}/branch".replace("{ProposalId}",encodeURIComponent(e))},generateCustomerProposalDocumentPdf:{definition:"proposals/{ProposalId}/customer-document-pdf",render:e=>"proposals/{ProposalId}/customer-document-pdf".replace("{ProposalId}",encodeURIComponent(e))},getProposalConversionTrend:{definition:"proposals/analytics/conversion-trend"}},Le={getPolicyDetail:{definition:"policies/{PolicyId}",render:e=>"policies/{PolicyId}".replace("{PolicyId}",encodeURIComponent(e))},fetchPolicyDocument:{definition:"policies/{PolicyId}/document",render:e=>"policies/{PolicyId}/document".replace("{PolicyId}",encodeURIComponent(e))},sendPolicyDocument:{definition:"policies/{PolicyId}/document/send",render:e=>"policies/{PolicyId}/document/send".replace("{PolicyId}",encodeURIComponent(e))},setPolicyRepresentative:{definition:"policies/{PolicyId}/representative",render:e=>"policies/{PolicyId}/representative".replace("{PolicyId}",encodeURIComponent(e))},setPolicyBranch:{definition:"policies/{PolicyId}/branch",render:e=>"policies/{PolicyId}/branch".replace("{PolicyId}",encodeURIComponent(e))},createManualPolicy:{definition:"policies/manual"},updateManualPolicy:{definition:"policies/manual/{PolicyId}",render:e=>"policies/manual/{PolicyId}".replace("{PolicyId}",encodeURIComponent(e))},getPolicyCountAndPremiumAnalytics:{definition:"policies/analytics/count-and-premium"},getPolicyRenewalAnalytics:{definition:"policies/analytics/renewal"},getPolicyDistributionByBranch:{definition:"policies/analytics/distribution-by-branch"},getRepresentativeEarningsAnalytics:{definition:"policies/analytics/representative-earnings"}},_e={create:"policy-transfers",getPolicyTransferDetail:{definition:"policy-transfers/{PolicyTransferId}",render:e=>"policy-transfers/{PolicyTransferId}".replace("{PolicyTransferId}",encodeURIComponent(e))},getPolicyTransferTriggerDetail:{definition:"policy-transfers/{PolicyTransferId}/triggers/{PolicyTransferTriggerId}",render:(e,t)=>"policy-transfers/{PolicyTransferId}/triggers/{PolicyTransferTriggerId}".replace("{PolicyTransferId}",encodeURIComponent(e)).replace("{PolicyTransferTriggerId}",encodeURIComponent(t))},triggerPolicyTransfer:{definition:"policy-transfers/{PolicyTransferId}/trigger",render:e=>"policy-transfers/{PolicyTransferId}/trigger".replace("{PolicyTransferId}",encodeURIComponent(e))}},ve={create:"file-policy-transfers",getFilePolicyTransferDetail:{definition:"file-policy-transfers/{FilePolicyTransferId}",render:e=>"file-policy-transfers/{FilePolicyTransferId}".replace("{FilePolicyTransferId}",encodeURIComponent(e))}},_={getKaskoCoverageChoices:{definition:"coverage-choices:kasko",render:e=>e!==void 0?"coverage-choices:kasko?vehicleUtilizationStyle={vehicleUtilizationStyle}".replace("{vehicleUtilizationStyle}",encodeURIComponent(e)):"coverage-choices:kasko"},getKonutCoverageChoices:{definition:"coverage-choices:konut",render:()=>"coverage-choices:konut"},getImmCoverageChoices:{definition:"coverage-choices:imm",render:()=>"coverage-choices:imm"},getTssCoverageChoices:{definition:"coverage-choices:tss",render:()=>"coverage-choices:tss"}},oe={complete:"agent-setup-requests/complete",create:"agent-setup-requests",getAll:"agent-setup-requests",enter:"agent-setup-requests/enter",getAgentSetupRequestById:{definition:"agent-setup-requests/{Id}",render:e=>"agent-setup-requests/{Id}".replace("{Id}",encodeURIComponent(e))},disableAgentSetupRequest:{definition:"agent-setup-requests/{Id}/disable",render:e=>"agent-setup-requests/{Id}/disable".replace("{Id}",encodeURIComponent(e))}},I={forgotPassword:"agent-users/forgot-password",resetPassword:"agent-users/reset-password",checkAgentUserForgotPasswordToken:"agent-users/check-forgot-password-token",me:"agent-users/me",meRobotCode:"agent-users/me/robot-code",invite:"agent-users/invite",updateMyUser:"agent-users/me",acceptInvite:"agent-users/accept-invite",updatePassword:"agent-users/me/password",reSendInvite:{definition:"agent-users/{AgentUserId}/re-send-invite",render:e=>"agent-users/{AgentUserId}/re-send-invite".replace("{AgentUserId}",encodeURIComponent(e))},deactivate:{definition:"agent-users/{AgentUserId}/deactivate",render:e=>"agent-users/{AgentUserId}/deactivate".replace("{AgentUserId}",encodeURIComponent(e))},activate:{definition:"agent-users/{AgentUserId}/activate",render:e=>"agent-users/{AgentUserId}/activate".replace("{AgentUserId}",encodeURIComponent(e))},delete:{definition:"agent-users/{UserId}",render:e=>"agent-users/{UserId}".replace("{UserId}",encodeURIComponent(e))},getById:{definition:"agent-users/{UserId}",render:e=>"agent-users/{UserId}".replace("{UserId}",encodeURIComponent(e))},checkAgentUserInviteCode:{definition:"agent-users/check-invite-code",render:e=>"agent-users/check-invite-code?code={code}".replace("{code}",encodeURIComponent(e))},update:{definition:"agent-users/{Id}",render:e=>"agent-users/{Id}".replace("{Id}",encodeURIComponent(e))},migrate:{definition:"agent-users/{AgentUserId}/migrate",render:e=>"agent-users/{AgentUserId}/migrate".replace("{AgentUserId}",encodeURIComponent(e))},migrateAll:"agent-users/migrate-all"},T={getAll:"agent-roles",create:"agent-roles",update:{definition:"agent-roles/{Id}",render:e=>"agent-roles/{Id}".replace("{Id}",encodeURIComponent(e))},delete:{definition:"agent-roles/{Id}",render:e=>"agent-roles/{Id}".replace("{Id}",encodeURIComponent(e))},getById:{definition:"agent-roles/{Id}",render:e=>"agent-roles/{Id}".replace("{Id}",encodeURIComponent(e))}},E={getAll:"webhooks",create:"webhooks",getById:{definition:"webhooks/{Id}",render:e=>"webhooks/{Id}".replace("{Id}",encodeURIComponent(e))},update:{definition:"webhooks/{Id}",render:e=>"webhooks/{Id}".replace("{Id}",encodeURIComponent(e))},delete:{definition:"webhooks/{Id}",render:e=>"webhooks/{Id}".replace("{Id}",encodeURIComponent(e))},deliveries:{getById:{definition:"webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}",render:(e,t)=>"webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}".replace("{WebhookId}",encodeURIComponent(e)).replace("{WebhookDeliveryId}",encodeURIComponent(t))},redeliver:{definition:"webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}/redeliver",render:(e,t)=>"webhooks/{WebhookId}/deliveries/{WebhookDeliveryId}/redeliver".replace("{WebhookId}",encodeURIComponent(e)).replace("{WebhookDeliveryId}",encodeURIComponent(t))}}},g={createNewSaleOpportunity:"cases:new-sale-opportunity",createCrossSaleOpportunity:"cases:cross-sale-opportunity",createCancel:"cases:cancel",createEndorsement:"cases:endorsement",createComplaint:"cases:complaint",assignRepresentative:{definition:"cases/{Ref}/representative",render:e=>"cases/{Ref}/representative".replace("{Ref}",encodeURIComponent(e))},addNoteToCase:{definition:"cases/{Ref}/notes",render:e=>"cases/{Ref}/notes".replace("{Ref}",encodeURIComponent(e))},changeChannel:{definition:"cases/{Ref}/channel",render:e=>"cases/{Ref}/channel".replace("{Ref}",encodeURIComponent(e))},changeState:{definition:"cases/{Ref}/state",render:e=>"cases/{Ref}/state".replace("{Ref}",encodeURIComponent(e))},getActivities:{definition:"cases/{Ref}/activities",render:e=>"cases/{Ref}/activities".replace("{Ref}",encodeURIComponent(e))},getCaseByRef:{definition:"cases/{Ref}",render:e=>"cases/{Ref}".replace("{Ref}",encodeURIComponent(e))},getProposals:{definition:"cases/{Ref}/proposals",render:e=>"cases/{Ref}/proposals".replace("{Ref}",encodeURIComponent(e))},getPolicies:{definition:"cases/{Ref}/policies",render:e=>"cases/{Ref}/policies".replace("{Ref}",encodeURIComponent(e))},setAsset:{definition:"cases/{Ref}/asset",render:e=>"cases/{Ref}/asset".replace("{Ref}",encodeURIComponent(e))},setBranch:{definition:"cases/{Ref}/branch",render:e=>"cases/{Ref}/branch".replace("{Ref}",encodeURIComponent(e))},getSalesOpportunityFunnelAnalytics:{definition:"cases/analytics/sales-opportunity-funnel"},getOpenCaseBacklogPivotAnalytics:{definition:"cases/analytics/open-case-backlog-pivot"},getFailedCasesReasonDistribution:{definition:"cases/analytics/failed-cases-reason-distribution"},communicationAutomations:{getAll:"cases/communication-automations"},getPriorityTemplates:"cases/priority-templates"},U={getAll:"coverage-groups",create:"coverage-groups",update:{definition:"coverage-groups/{Id}",render:e=>"coverage-groups/{Id}".replace("{Id}",encodeURIComponent(e))},delete:{definition:"coverage-groups/{Id}",render:e=>"coverage-groups/{Id}".replace("{Id}",encodeURIComponent(e))},getById:{definition:"coverage-groups/{Id}",render:e=>"coverage-groups/{Id}".replace("{Id}",encodeURIComponent(e))}},We={getAll:"release-notes"},De={getAll:"banks",getBranches:{definition:"banks/{BankId}/branches",render:e=>"banks/{BankId}/branches".replace("{BankId}",encodeURIComponent(e))}},Fe={getAll:"financial-institutions"},N={getAll:"agent-branches",create:"agent-branches",getById:{definition:"agent-branches/{Id}",render:e=>"agent-branches/{Id}".replace("{Id}",encodeURIComponent(e))},update:{definition:"agent-branches/{Id}",render:e=>"agent-branches/{Id}".replace("{Id}",encodeURIComponent(e))},delete:{definition:"agent-branches/{Id}",render:e=>"agent-branches/{Id}".replace("{Id}",encodeURIComponent(e))}},ie={uploadPublicFile:"files/upload-public"},ae={getAll:"languages"},S={getDefinitions:"templates/definitions",getAll:"templates",getByKey:{definition:"templates/{Key}",render:e=>"templates/{Key}".replace("{Key}",encodeURIComponent(e))},update:{definition:"templates/{Key}",render:e=>"templates/{Key}".replace("{Key}",encodeURIComponent(e))},delete:{definition:"templates/{Key}",render:e=>"templates/{Key}".replace("{Key}",encodeURIComponent(e))}},F={configFields:{getAll:"b2c/config-fields",updateAll:"b2c/config-fields"}},o={customers:Ue,vehicles:Se,vehicleParameters:Ne,insuranceServices:Te,agents:y,insuranceCompanies:be,resourceKeys:Oe,releaseNotes:We,banks:De,financialInstitutions:Fe,policies:Le,policyTransfers:_e,filePolicyTransfers:ve,cases:g,coverageGroups:U,webhooks:E,agentBranches:N,files:ie,languages:ae,templates:S,b2c:F,proposals:qe};var G=class{constructor(t){this.http=t}async getCurrentAgent(t){return this.http.get(y.getCurrentAgent,t)}async updateCurrentAgent(t,r){return this.http.putNoContent(y.updateCurrentAgent,t,r)}async getAgentInsuranceCompaniesAsync(t){return this.http.get(y.insuranceCompanies.getMyInsuranceCompanies,t)}async getAgentInsuranceCompanyBranchesAsync(t,r){let n=y.insuranceCompanies.getBranches.render(t);return this.http.get(n,r)}async getAgentInsuranceCompanyConnectionAsync(t,r){let n=y.insuranceCompanies.getConnection.render(t);return this.http.get(n,r)}async addAgentInsuranceCompany(t,r){return this.http.postNoContent(y.insuranceCompanies.addInsuranceCompanyToAgent,t,r)}async removeAgentInsuranceCompany(t,r){let n=y.insuranceCompanies.remove.render(t);return this.http.deleteNoContent(n,r)}async updateAgentInsuranceCompanyConnection(t,r){let n=y.insuranceCompanies.updateConnection.render(t.agentInsuranceCompanyId);return this.http.putNoContent(n,t,r)}async updateAgentInsuranceCompanyBranches(t,r){let n=y.insuranceCompanies.updateBranches.render(t.agentInsuranceCompanyId);return this.http.putNoContent(n,t,r)}async reSyncAgentInsuranceCompanyWithInsurance(t,r){let n=y.insuranceCompanies.reSyncAgentInsuranceCompanyWithInsurance.render(t.agentInsuranceCompanyId);return this.http.postNoContent(n,t,r)}async getB2CConfigFields(t){return this.http.get(F.configFields.getAll,t)}async updateB2CConfigFields(t,r){return this.http.putNoContent(F.configFields.updateAll,t,r)}};var M=class{constructor(t){this.http=t}async createAgentBranch(t,r){return this.http.post(N.create,t,r)}async getAgentBranchById(t,r){let n=N.getById.render(t);return this.http.get(n,r)}async getAgentBranches(t){return this.http.get(N.getAll,t)}async updateAgentBranch(t,r){let n=N.update.render(t.id);return this.http.putNoContent(n,t,r)}async deleteAgentBranch(t,r){let n=N.delete.render(t.id);return this.http.deleteNoContent(n,r)}};var w=class{constructor(t){this.http=t}async createAgentRole(t,r){return this.http.postNoContent(T.create,t,r)}async getAgentRoleById(t,r){let n=T.getById.render(t);return this.http.get(n,r)}async getAgentRoles(t){return this.http.get(T.getAll,t)}async updateAgentRole(t,r){let n=T.update.render(t.id);return this.http.putNoContent(n,t,r)}async deleteAgentRole(t,r){let n=T.delete.render(t.id);return this.http.deleteNoContent(n,r)}};var B=class{constructor(t){this.http=t}async enterAgentSetupRequest(t,r){return this.http.post(oe.enter,t,r)}async completeAgentSetupRequest(t,r){return this.http.postNoContent(oe.complete,t,r)}};var Ot=(e=>(e.Unknown="UNKNOWN",e.Manual="MANUAL",e.Website="WEBSITE",e.GoogleAds="GOOGLE_ADS",e.CallCenter="CALL_CENTER",e.SocialMedia="SOCIAL_MEDIA",e.MobileApp="MOBILE_APP",e.OfflineProposalForm="OFFLINE_PROPOSAL_FORM",e.Field="FIELD",e.PrintMedia="PRINT_MEDIA",e.FairEvent="FAIR_EVENT",e.BusinessPartner="BUSINESS_PARTNER",e.Chatbot="CHATBOT",e))(Ot||{}),Ut=(e=>(e.Vehicle="VEHICLE",e.Property="PROPERTY",e))(Ut||{}),k=(e=>(e.Individual="INDIVIDUAL",e.Company="COMPANY",e.Foreign="FOREIGN",e))(k||{}),Nt=(e=>(e.Kasko="KASKO",e.Dask="DASK",e.Konut="KONUT",e.Trafik="TRAFIK",e.Tss="TSS",e.Imm="IMM",e.YesilKart="YESIL_KART",e.FerdiKaza="FERDI_KAZA",e.GrupHayat="GRUP_HAYAT",e.Saglik="SAGLIK",e.KartKimlikKoruma="KART_KIMLIK_KORUMA",e.UcuncuSahisMaliSorumluluk="UCUNCU_SAHIS_MALI_SORUMLULUK",e.IsyeriYangin="ISYERI_YANGIN",e.Seyahat="SEYAHAT",e.ElektronikCihaz="ELEKTRONIK_CIHAZ",e.Pet="PET",e.Bes="BES",e.InsaatAllRisk="INSAAT_ALL_RISK",e.LeasingAllRisk="LEASING_ALL_RISK",e.MontajAllRisk="MONTAJ_ALL_RISK",e.Nakliyat="NAKLIYAT",e.OzelGuvenlikMaliSorumluluk="OZEL_GUVENLIK_MALI_SORUMLULUK",e.AkilliTelefon="AKILLI_TELEFON",e.TehlikeliMaddelerMaliSorumluluk="TEHLIKELI_MADDELER_MALI_SORUMLULUK",e.YatGemiGezintiTeknesi="YAT_GEMI_GEZINTI_TEKNESI",e.Tarim="TARIM",e.MeslekiSorumluluk="MESLEKI_SORUMLULUK",e.Alacak="ALACAK",e.IsverenMaliMesuliyet="ISVEREN_MALI_MESULIYET",e.Muhendislik="MUHENDISLIK",e.HukuksalKoruma="HUKUKSAL_KORUMA",e.IlkAtesKonut="ILK_ATES_KONUT",e.Kefalet="KEFALET",e))(Nt||{}),St=(e=>(e.Unknown="UNKNOWN",e.TurkishLira="TURKISH_LIRA",e.UnitedStatesDollar="UNITED_STATES_DOLLAR",e.Euro="EURO",e))(St||{}),Tt=(e=>(e.Unknown="UNKNOWN",e.SyncCreditCard="SYNC_CREDIT_CARD",e.SyncOpenAccount="SYNC_OPEN_ACCOUNT",e.Async3dSecure="ASYNC_3D_SECURE",e.AsyncInsuranceCompanyRedirect="ASYNC_INSURANCE_COMPANY_REDIRECT",e.AsyncThirdParty3dSecure="ASYNC_THIRD_PARTY_3D_SECURE",e))(Tt||{}),qt=(e=>(e.Active="ACTIVE",e.EndOfLife="END_OF_LIFE",e.Cancelled="CANCELLED",e))(qt||{}),Lt=(e=>(e.WebService="WEB_SERVICE",e.Robot="ROBOT",e))(Lt||{}),_t=(e=>(e.Belirsiz="BELIRSIZ",e.AnlasmaliOzelServis="ANLASMALI_OZEL_SERVIS",e.AnlasmaliYetkiliServis="ANLASMALI_YETKILI_SERVIS",e.YetkiliServis="YETKILI_SERVIS",e.OzelServis="OZEL_SERVIS",e.SigortaliBelirler="SIGORTALI_BELIRLER",e))(_t||{}),vt=(e=>(e.Belirsiz="BELIRSIZ",e.OrijinalParca="ORIJINAL_PARCA",e.EsdegerParca="ESDEGER_PARCA",e))(vt||{}),Wt=(e=>(e.A="A",e.B="B",e.C="C",e.D="D",e.E="E",e.F="F",e.SegmenteSegment="SEGMENTE_SEGMENT",e))(Wt||{}),Dt=(e=>(e.Bilinmiyor="BILINMIYOR",e.DarKapsam="DAR_KAPSAM",e.StandartKapsam="STANDART_KAPSAM",e.GenisKapsam="GENIS_KAPSAM",e))(Dt||{}),Ft=(e=>(e.Bilinmiyor="BILINMIYOR",e.Yatarak="YATARAK",e.YatarakAyakta="YATARAK_AYAKTA",e))(Ft||{}),Gt=(e=>(e.Belirsiz="BELIRSIZ",e.Yok="YOK",e.AgacKutukleriveKereste="AGAC_KUTUKLERIVE_KERESTE",e.Akaryakit="AKARYAKIT",e.AyakkabiSaraciye="AYAKKABI_SARACIYE",e.BakkaliyeveSharkuteriUrunleri="BAKKALIYE_VE_SHARKUTERI_URUNLERI",e.BilumumKirtasiyeMalzemeleri="BILUMUM_KIRTASIYE_MALZEMELERI",e.DokmeSuveSut="DOKME_SU_VE_SUT",e.HaliveKilim="HALI_VE_KILIM",e.HamYariMamulveMamulKagit="HAM_YARI_MAMUL_VE_MAMUL_KAGIT",e.HazirBeton="HAZIR_BETON",e.HerNeviEvAletleri="HER_NEVI_EV_ALETLERI",e.HerTurluDokmeKomurvOdun="HER_TURLU_DOKME_KOMUR_V_ODUN",e.HububatveBakliyat="HUBUBAT_VE_BAKLIYAT",e.KabaInsaatMalzemeleri="KABA_INSAAT_MALZEMELERI",e.LastikKaucukUrunleri="LASTIK_KAUCUK_URUNLERI",e.LikidKimyeviMadde="LIKID_KIMYEVI_MADDE",e.LpgGazTupu="LPG_GAZ_TUPU",e.MakineAksamveYedekleri="MAKINE_AKSAM_VE_YEDEKLERI",e.MobilyaMalzemesi="MOBILYA_MALZEMESI",e.MuhtelifEvEsyasi="MUHTELIF_EV_ESYASI",e.OtoYedekParcalari="OTO_YEDEK_PARCALARI",e.PlastikMamulleri="PLASTIK_MAMULLERI",e.SentetikElyafUrunleri="SENTETIK_ELYAF_URUNLERI",e.SentetikPlastikBoyaUrunleri="SENTETIK_PLASTIK_BOYA_URUNLERI",e.TekstilUrunleri="TEKSTIL_URUNLERI",e.TemizlikMaddeleri="TEMIZLIK_MADDELERI",e.YasMeyveveSebze="YAS_MEYVE_VE_SEBZE",e))(Gt||{});function Mt(e){return typeof e=="object"&&e!==null&&"$type"in e&&typeof e.$type=="string"}function vn(...e){if(e.length===0)throw new Error("Cannot merge empty coverage array");let t=e.filter(i=>i!=null);if(t.length===0)throw new Error("No valid coverages to merge");let n=t[0].productBranch;for(let i of t)if(i.productBranch!==n)throw new Error(`All coverages must have the same productBranch. Expected: ${n}, but found: ${i.productBranch}`);let s=i=>{let m=i.filter(c=>c!=null);if(m.length===0)return;let u=m.filter(c=>c.$type!=="UNDEFINED");return u.length>0?u[u.length-1]:{$type:"UNDEFINED"}},a=i=>{let m=i.filter(u=>u!=null);return m.length>0?m[m.length-1]:void 0},l=new Set;for(let i of t)Object.keys(i).forEach(m=>{m!=="productBranch"&&l.add(m)});let d={productBranch:n};for(let i of l){let m=t.map(c=>c[i]),u=m.find(c=>c!=null);Mt(u)?d[i]=s(m):d[i]=a(m)}return d}var wt=(e=>(e.Succeeded="SUCCEEDED",e.Failed="TRIGGER_STATUS_FAILED",e))(wt||{}),Bt=(e=>(e.Unknown="UNKNOWN",e.CouldNotFetchPolicies="COULD_NOT_FETCH_POLICIES",e))(Bt||{}),kt=(e=>(e.Success="SUCCESS",e.Failed="TRANSFER_FAILED",e.Skipped="TRANSFER_SKIPPED",e))(kt||{}),Kt=(e=>(e.Unknown="UNKNOWN",e.AlreadyTransferred="SKIP_ALREADY_TRANSFERRED",e.PreviousVersionNotFound="PREVIOUS_VERSION_NOT_FOUND",e.ProductBranchNotSupported="PRODUCT_BRANCH_NOT_SUPPORTED",e.ProductNotSupported="PRODUCT_NOT_SUPPORTED",e))(Kt||{}),xt=(e=>(e.Unknown="UNKNOWN",e.InvalidCustomerIdentityNumber="INVALID_CUSTOMER_IDENTITY_NUMBER",e.InvalidCustomerCompanyTitle="INVALID_CUSTOMER_COMPANY_TITLE",e.InvalidCustomerTaxNumber="INVALID_CUSTOMER_TAX_NUMBER",e.InvalidCustomerType="INVALID_CUSTOMER_TYPE",e.InvalidVehicle="INVALID_VEHICLE",e.InvalidProperty="INVALID_PROPERTY",e.InvalidEndDate="INVALID_END_DATE",e.InvalidStartDate="INVALID_START_DATE",e.InvalidProposalNumber="INVALID_PROPOSAL_NUMBER",e.InvalidPremium="INVALID_PREMIUM",e.InvalidCommission="INVALID_COMMISSION",e.InvalidPaymentType="INVALID_PAYMENT_TYPE",e.InvalidInsuredCustomer="INVALID_INSURED_CUSTOMER",e.InvalidInsurerCustomer="INVALID_INSURER_CUSTOMER",e))(xt||{}),Ht=(e=>(e.Unknown="UNKNOWN",e.SteelReinforcedConcrete="STEEL_REINFORCED_CONCRETE",e.Other="OTHER",e))(Ht||{}),Vt=(e=>(e.Unknown="UNKNOWN",e.None="NONE",e.SlightlyDamaged="SLIGHTLY_DAMAGED",e.ModeratelyDamaged="MODERATELY_DAMAGED",e.SeverelyDamaged="SEVERELY_DAMAGED",e))(Vt||{}),$t=(e=>(e.Unknown="UNKNOWN",e.House="HOUSE",e.Business="BUSINESS",e.Other="OTHER",e))($t||{}),Qt=(e=>(e.Unknown="UNKNOWN",e.Proprietor="PROPRIETOR",e.Tenant="TENANT",e))(Qt||{}),Yt=(e=>(e.Unknown="UNKNOWN",e.SummerHouse="SUMMER_HOUSE",e.DetachedBuilding="DETACHED_BUILDING",e.Apartment="APARTMENT",e))(Yt||{}),jt=(e=>(e.Unknown="UNKNOWN",e.Basement="BASEMENT",e.GroundFloor="GROUND_FLOOR",e.AboveEntrance="ABOVE_ENTRANCE",e.MiddleFloor="MIDDLE_FLOOR",e.DetachedBuilding="DETACHED_BUILDING",e))(jt||{}),zt=(e=>(e.Bank="BANK",e.FinancialInstitution="FINANCIAL_INSTITUTION",e))(zt||{}),Zt=(e=>(e.Unknown="UNKNOWN",e.PrivateCar="PRIVATE_CAR",e.Taxi="TAXI",e.RouteBasedMinibus="ROUTE_BASED_MINIBUS",e.MediumBus="MEDIUM_BUS",e.LargeBus="LARGE_BUS",e.PickupTruck="PICKUP_TRUCK",e.PanelVan="PANEL_VAN",e.Truck="TRUCK",e.Tractor="TRACTOR",e.Motorcycle="MOTORCYCLE",e.RentalCar="RENTAL_CAR",e.ArmoredVehicle="ARMORED_VEHICLE",e.MinibusSharedTaxi="MINIBUS_SHARED_TAXI",e.Jeep="JEEP",e.JeepSAV="JEEP_SAV",e.JeepSUV="JEEP_SUV",e.Hearse="HEARSE",e.ChauffeuredRentalCar="CHAUFFEURED_RENTAL_CAR",e.OperationalRental="OPERATIONAL_RENTAL",e.PrivateMinibus="PRIVATE_MINIBUS",e.RouteMinibus="ROUTE_MINIBUS",e.ServiceMinibus="SERVICE_MINIBUS",e))(Zt||{}),Jt=(e=>(e.Gasoline="GASOLINE",e.Diesel="DIESEL",e.Lpg="LPG",e.Electric="ELECTRIC",e.LpgGasoline="LPG_GASOLINE",e.Hybrid="HYBRID",e))(Jt||{}),Xt=(e=>(e.Audio="audio",e.Display="display",e.Other="other",e))(Xt||{}),Wn=class Re{constructor(t){h(this,"_value");this._value=typeof t=="string"?new Date(t):t}static fromDate(t){return new Re(t)}static now(){return new Re(new Date)}toDate(){return this._value}toISOString(){return this._value.toISOString()}toJSON(){return this.toISOString()}toString(){return this.toISOString()}valueOf(){return this._value.valueOf()}},Dn=class ge{constructor(t){h(this,"_year");h(this,"_month");h(this,"_day");if(typeof t=="string"){let r=t.split("-").map(Number);this._year=r[0]??0,this._month=r[1]??1,this._day=r[2]??1}else this._year=t.getUTCFullYear(),this._month=t.getUTCMonth()+1,this._day=t.getUTCDate()}static fromDate(t){return new ge(t)}static today(){return new ge(new Date)}toDate(){return new Date(Date.UTC(this._year,this._month-1,this._day))}toString(){let t=this._year.toString().padStart(4,"0"),r=this._month.toString().padStart(2,"0"),n=this._day.toString().padStart(2,"0");return`${t}-${r}-${n}`}toJSON(){return this.toString()}valueOf(){return this.toDate().valueOf()}get year(){return this._year}get month(){return this._month}get day(){return this._day}},er=(e=>(e.Unknown="UNKNOWN",e.Male="MALE",e.Female="FEMALE",e.Other="OTHER",e))(er||{}),tr=(e=>(e.Unknown="UNKNOWN",e.PrimarySchool="PRIMARY_SCHOOL",e.MiddleSchool="MIDDLE_SCHOOL",e.HighSchool="HIGH_SCHOOL",e.University="UNIVERSITY",e.Postgraduate="POSTGRADUATE",e.Doctorate="DOCTORATE",e.Other="OTHER",e))(tr||{}),rr=(e=>(e.Unknown="UNKNOWN",e.Turk="TURK",e.Other="OTHER",e))(rr||{}),nr=(e=>(e.Unknown="UNKNOWN",e.Single="SINGLE",e.Married="MARRIED",e))(nr||{}),sr=(e=>(e.Unknown="UNKNOWN",e.Banker="BANKER",e.CorporateEmployee="CORPORATE_EMPLOYEE",e.LtdEmployee="LTD_EMPLOYEE",e.Police="POLICE",e.MilitaryPersonnel="MILITARY_PERSONNEL",e.RetiredSpouse="RETIRED_SPOUSE",e.Teacher="TEACHER",e.Doctor="DOCTOR",e.Pharmacist="PHARMACIST",e.Nurse="NURSE",e.HealthcareWorker="HEALTHCARE_WORKER",e.Lawyer="LAWYER",e.Judge="JUDGE",e.Prosecutor="PROSECUTOR",e.Freelancer="FREELANCER",e.Farmer="FARMER",e.Instructor="INSTRUCTOR",e.ReligiousOfficial="RELIGIOUS_OFFICIAL",e.AssociationManager="ASSOCIATION_MANAGER",e.Officer="OFFICER",e.Retired="RETIRED",e.Housewife="HOUSEWIFE",e))(sr||{}),or=(e=>(e.Active="ACTIVE",e.Succeeded="SUCCEEDED",e.Failed="FAILED",e))(or||{}),ir=(e=>(e.PhoneCall="PHONE_CALL",e))(ir||{}),ar=(e=>(e.Planned="PLANNED",e.Occurred="OCCURRED",e.NotOccurred="NOT_OCCURRED",e))(ar||{}),lr=(e=>(e.Other="OTHER",e.OrganTransplant="ORGAN_TRANSPLANT",e.BoneMarrowTransplant="BONE_MARROW_TRANSPLANT",e.HeartSurgery="HEART_SURGERY",e.BrainSurgery="BRAIN_SURGERY",e))(lr||{}),ur=(e=>(e.Other="OTHER",e.KidneyFailure="KIDNEY_FAILURE",e.Cancer="CANCER",e.LiverDisease="LIVER_DISEASE",e.HeartFailure="HEART_FAILURE",e.HeartRhythmAndConductionDisorders="HEART_RHYTHM_AND_CONDUCTION_DISORDERS",e.ImmuneSystemDisorders="IMMUNE_SYSTEM_DISORDERS",e))(ur||{}),pr=(e=>(e.KVKK="KVKK",e.ETK="ETK",e))(pr||{}),cr=(e=>(e.Manual="MANUAL",e.Web="WEB",e.Chatbot="CHATBOT",e.Sms="SMS",e.Email="EMAIL",e.External="EXTERNAL",e))(cr||{}),dr=(e=>(e.Given="GIVEN",e.Revoked="REVOKED",e))(dr||{}),mr=(e=>(e.SaleOpportunity="SALE_OPPORTUNITY",e.Endorsement="ENDORSEMENT",e.Cancel="CANCEL",e.Complaint="COMPLAINT",e))(mr||{}),hr=(e=>(e.Fail="FAIL",e.Open="OPEN",e.InProgress="IN_PROGRESS",e.Success="SUCCESS",e))(hr||{}),Rr=(e=>(e.FailNoResponse="FAIL_NO_RESPONSE",e.FailInvalidCase="FAIL_INVALID_CASE",e.FailCustomerWithdrawn="FAIL_CUSTOMER_WITHDRAWN",e.FailPaymentError="FAIL_PAYMENT_ERROR",e.FailDeclinedCardInformation="FAIL_DECLINED_CARD_INFORMATION",e.FailForeignUser="FAIL_FOREIGN_USER",e.FailTakenElsewhere="FAIL_TAKEN_ELSEWHERE",e.FailPriceTooHigh="FAIL_PRICE_TOO_HIGH",e.FailAssetAcquisition="FAIL_ASSET_ACQUISITION",e.FailAssetSold="FAIL_ASSET_SOLD",e.FailUnresolved="FAIL_UNRESOLVED",e.FailReferredToLegal="FAIL_REFERRED_TO_LEGAL",e.FailCustomerUnsatisfied="FAIL_CUSTOMER_UNSATISFIED",e.FailMissingDocuments="FAIL_MISSING_DOCUMENTS",e.FailInsurerDenied="FAIL_INSURER_DENIED",e.FailConditionsNotMet="FAIL_CONDITIONS_NOT_MET",e.OpenInitial="OPEN_INITIAL",e.OpenCollectingInformation="OPEN_COLLECTING_INFORMATION",e.OpenDelayed="OPEN_DELAYED",e.OpenWaiting="OPEN_WAITING",e.InProgressUnderAnalysis="IN_PROGRESS_UNDER_ANALYSIS",e.InProgressProposalPrepared="IN_PROGRESS_PROPOSAL_PREPARED",e.InProgressAwaitingApproval="IN_PROGRESS_AWAITING_APPROVAL",e.InProgressToBeRecontacted="IN_PROGRESS_TO_BE_RECONTACTED",e.SuccessCompleted="SUCCESS_COMPLETED",e))(Rr||{}),gr=(e=>(e.Open="OPEN",e.Delayed="DELAYED",e.Success="SUCCESS",e.Fail="FAIL",e))(gr||{}),Ir=(e=>(e.NewSale="NEW_SALE",e.CrossSale="CROSS_SALE",e.Renewal="RENEWAL",e))(Ir||{}),fr=(e=>(e.OnlineCancellationRefund="ONLINE_CANCELLATION_REFUND",e.MebCancellation="MEB_CANCELLATION",e.PartialCancellation="PARTIAL_CANCELLATION",e.CancellationFromSale="CANCELLATION_FROM_SALE",e.CancellationDueToCollection="CANCELLATION_DUE_TO_COLLECTION",e.CancellationDueToDamage="CANCELLATION_DUE_TO_DAMAGE",e))(fr||{}),Cr=(e=>(e.ConsultantError="CONSULTANT_ERROR",e.PolicyOperations="POLICY_OPERATIONS",e.Collection="COLLECTION",e.DueToFrequentCalls="DUE_TO_FREQUENT_CALLS",e.Fraud="FRAUD",e.Damage="DAMAGE",e.ErroneousTransaction="ERRONEOUS_TRANSACTION",e.DelayInOperations="DELAY_IN_OPERATIONS",e.OnlineTransactionErrors="ONLINE_TRANSACTION_ERRORS",e.DelayInCancellationPeriod="DELAY_IN_CANCELLATION_PERIOD",e.NonReceiptOfPolicyOrEndorsement="NON_RECEIPT_OF_POLICY_OR_ENDORSEMENT",e.NonProductionOfPolicyOrEndorsement="NON_PRODUCTION_OF_POLICY_OR_ENDORSEMENT",e.DelayInEndorsementOperations="DELAY_IN_ENDORSEMENT_OPERATIONS",e.ErroneousPremiumCollection="ERRONEOUS_PREMIUM_COLLECTION",e.NonDeliveryOfRefundReceipt="NON_DELIVERY_OF_REFUND_RECEIPT",e.NonRefundOfPremium="NON_REFUND_OF_PREMIUM",e.StaffAttitude="STAFF_ATTITUDE",e.InsufficientOrErroneousInformation="INSUFFICIENT_OR_ERRONEOUS_INFORMATION",e.NoTimelyResponse="NO_TIMELY_RESPONSE",e))(Cr||{}),yr=(e=>(e.VehicleChange="VEHICLE_CHANGE",e.ValueIncrease="VALUE_INCREASE",e.NoClaimBonusTransfer="NO_CLAIM_BONUS_TRANSFER",e.CoverageChange="COVERAGE_CHANGE",e.UsageTypeChange="USAGE_TYPE_CHANGE",e.TransferRequest="TRANSFER_REQUEST",e.LicensePlateChange="LICENSE_PLATE_CHANGE",e.BrandModelChange="BRAND_MODEL_CHANGE",e.EngineChassisNumberChange="ENGINE_CHASSIS_NUMBER_CHANGE",e.ContactAddressChange="CONTACT_ADDRESS_CHANGE",e.Other="OTHER",e.PledgeeCorrectionAddition="PLEDGEE_CORRECTION_ADDITION",e))(yr||{}),Er=(e=>(e.Created="CREATED",e.Updated="UPDATED",e.StateChanged="STATE_CHANGED",e.ChannelChanged="CHANNEL_CHANGED",e.RepresentativeAssigned="REPRESENTATIVE_ASSIGNED",e.NoteAdded="NOTE_ADDED",e.AssetSet="ASSET_SET",e.PolicyAdded="POLICY_ADDED",e.ProposalAdded="PROPOSAL_ADDED",e.PolicyEndDateSet="POLICY_END_DATE_SET",e.CustomerUpdated="CUSTOMER_UPDATED",e.AssetUpdated="ASSET_UPDATED",e.PriorityAssessed="PRIORITY_ASSESSED",e.ProposalProductPurchaseAttempted="PROPOSAL_PRODUCT_PURCHASE_ATTEMPTED",e))(Er||{}),Pr=(e=>(e.None="NONE",e.Desktop="DESKTOP",e.Server="SERVER",e))(Pr||{}),Ar=(e=>(e.None="NONE",e.Random="RANDOM",e.RoundRobin="ROUND_ROBIN",e.BranchImportanceBalance="BRANCH_IMPORTANCE_BALANCE",e))(Ar||{}),br=(e=>(e.Pending="PENDING",e.Failed="FAILED",e.Succeed="SUCCEED",e))(br||{}),Or=(e=>(e.WebService="WEB_SERVICE",e.Robot="ROBOT",e))(Or||{}),Ur=(e=>(e.Default="Default",e.Teknomart="Teknomart",e.ArtiKurumsal="ArtiKurumsal",e.Verimor="Verimor",e))(Ur||{}),Nr=(e=>(e.None="None",e.AloTech="AloTech",e))(Nr||{}),Sr=(e=>(e.Pending="PENDING",e.Active="ACTIVE",e.Inactive="INACTIVE",e))(Sr||{}),Tr=(e=>(e[e.Object=1]="Object",e[e.Array=2]="Array",e[e.Text=3]="Text",e[e.Number=4]="Number",e[e.Boolean=5]="Boolean",e[e.File=6]="File",e[e.Color=7]="Color",e[e.ProductBranch=8]="ProductBranch",e[e.Icon=9]="Icon",e[e.InsuranceCompany=10]="InsuranceCompany",e[e.MultiLineText=11]="MultiLineText",e[e.InsuranceProduct=12]="InsuranceProduct",e))(Tr||{}),qr=(e=>(e.ProposalPremiumReceived="proposal_premium.received",e.ProposalPremiumPurchasing="proposal_premium.purchasing",e.ProposalPremiumPurchased="proposal_premium.purchased",e.ProposalPremiumPurchaseFailed="proposal_premium.purchase_failed",e.PolicyCreated="policy.created",e.PolicyUpdated="policy.updated",e))(qr||{}),Lr=(e=>(e.Waiting="WAITING",e.Active="ACTIVE",e.Purchasing="PURCHASING",e.Purchased="PURCHASED",e.Failed="FAILED",e))(Lr||{}),_r=(e=>(e.Waiting="WAITING",e.Failed="FAILED",e.Active="ACTIVE",e.Purchasing="PURCHASING",e.Purchased="PURCHASED",e))(_r||{}),vr=(e=>(e.ASC="ASC",e.DESC="DESC",e))(vr||{}),Fn="$search";function f(e,t=" "){let r=[],n=new Map;for(let a of e){let l=a.indexOf(".");if(l!==-1){let d=a.slice(0,l),i=a.slice(l+1);n.has(d)||n.set(d,[]),n.get(d).push(i)}else r.push(a)}let s=[...r];for(let[a,l]of n)s.push(`${a} { ${l.join(" ")} }`);return s.join(`
|
|
2
2
|
${t}`)}var Me=["agentBranchId","id","name","identityNumber","taxNumber","type","primaryEmail","primaryPhoneNumber","primaryPhoneNumberCountryCode","cityText","cityValue","districtText","districtValue","createdAt","birthDate","gender","educationStatus","nationality","maritalStatus","job","passportNumber","searchScore","agentBranch.id","agentBranch.name","agentBranch.parentId","agentBranch.parentName","consents.consentType","consents.isActive"],Wr=(e=>(e.None="NONE",e.AdminPanel="ADMIN_PANEL",e.Agent="AGENT",e.Customer="CUSTOMER",e))(Wr||{}),Dr=(e=>(e.Initial="INITIAL",e.Cancellation="CANCELLATION",e.Update="UPDATE",e))(Dr||{}),we=["agentBranchId","id","insurerCustomerId","insuredCustomerId","installmentNumber","productBranch","netPremium","grossPremium","commission","paymentType","currency","insuranceCompanyProposalNumber","insuranceCompanyPolicyNumber","createdAt","startDate","endDate","arrangementDate","insuredCustomerName","insuredCustomerIdentityNumber","insuredCustomerTaxNumber","insuredCustomerType","insuredCustomerCityText","insuredCustomerCityValue","insuredCustomerDistrictText","insuredCustomerDistrictValue","insuredCustomerBirthDate","insurerCustomerName","insurerCustomerIdentityNumber","insurerCustomerTaxNumber","insurerCustomerCityText","insurerCustomerCityValue","insurerCustomerDistrictText","insurerCustomerDistrictValue","insurerCustomerBirthDate","vehiclePlateCode","vehiclePlateCity","vehicleDocumentSerialCode","vehicleDocumentSerialNumber","vehicleModelBrandText","vehicleModelBrandValue","vehicleModelTypeText","vehicleModelTypeValue","vehicleModelYear","vehicleFuelType","productId","productName","insuranceCompanyId","insuranceCompanyName","insuranceCompanyLogo","state","propertyNumber","daskOldPolicyNumber","daskPolicyNumber","vehicleId","propertyId","channel","campaign","agentBranch.id","agentBranch.name","agentBranch.parentId","agentBranch.parentName","createdBy.id","createdBy.name","createdBy.email","createdBy.userType","representedBy.id","representedBy.name","representedBy.email","representedBy.userType"],Be=["agentBranchId","id","productBranch","state","insurerCustomerId","insuredCustomerId","productsCount","succeedProductsCount","createdAt","successRate","insuredCustomerName","insuredCustomerIdentityNumber","insuredCustomerTaxNumber","insuredCustomerType","lowestPremium","highestPremium","channel","insuredCustomerCityText","insuredCustomerCityValue","insuredCustomerDistrictText","insuredCustomerDistrictValue","insuredCustomerPhoneNumber","insuredCustomerPhoneNumberCountryCode","insuredCustomerEmail","vehiclePlateCode","vehiclePlateCity","vehicleDocumentSerialCode","vehicleDocumentSerialNumber","vehicleModelBrandText","vehicleModelBrandValue","vehicleModelTypeText","vehicleModelTypeValue","vehicleModelYear","vehicleFuelType","utilizationStyle","insuredCustomerBirthDate","vehicleId","propertyId","agentBranch.id","agentBranch.name","agentBranch.parentId","agentBranch.parentName","agentUserCreatedBy.id","agentUserCreatedBy.name","agentUserCreatedBy.email","agentUserCreatedBy.userType"],ke=["agentBranchId","id","ref","type","status","cancelSubType","saleOpportunitySubType","endorsementSubType","complaintSubType","mainState","subState","productBranch","channel","createdAt","createdByName","createdById","createdByEmail","createdByType","representedByName","representedById","representedByEmail","representedByType","policyEndDate","assetType","assetId","sourceCaseId","policyCount","proposalCount","lastProposalDate","lastPolicyDate","lastUpdateDate","lastUpdatedByName","lastUpdatedById","lastUpdatedByEmail","lastUpdatedByType","priorityScore","customerId","customerName","customerType","customerIdentity","customerCityText","customerCityValue","customerDistrictText","customerDistrictValue","customerPrimaryPhoneNumber","customerPrimaryPhoneCountryCode","customerPrimaryEmail","customerBirthDate","customerPassportNumber","customerJob","vehiclePlateCode","vehiclePlateCity","vehicleModelBrandText","vehicleModelBrandValue","vehicleModelTypeText","vehicleModelTypeValue","vehicleModelYear","vehicleUtilizationStyle","vehicleEngineNumber","vehicleChassisNumber","vehicleRegistrationDate","vehicleFuelType","vehicleSeatNumber","vehicleDocumentSerialCode","vehicleDocumentSerialNumber","propertyNumber","propertySquareMeter","propertyConstructionYear","propertyDamageStatus","propertyFloorNumber","propertyStructure","propertyUtilizationStyle","propertyOwnershipType","propertyDaskPolicyNumber","advertisingSource","advertisingCampaign","searchScore","agentBranch.id","agentBranch.name","agentBranch.parentId","agentBranch.parentName","priorityRuleHits.label","priorityRuleHits.description","priorityRuleHits.ruleName","priorityRuleHits.score"],Ke=["id","email","firstName","lastName","name","phoneNumber","phoneNumberCountryCode","state","createdAt","lastLoginAt","roles.id","roles.name","roles.isAdmin","branches.id","branches.name","branches.parentId","branches.parentName","branches.level","branches.hierarchy"],xe=["id","startDate","endDate","insuranceCompanyCount","policyTransferTriggerCount","policyCount"],Fr=(e=>(e.InsuranceCompany="INSURANCE_COMPANY",e.Polisoft="POLISOFT",e.Bentas="BENTAS",e))(Fr||{}),He=["id","insuranceCompanyId","insuranceCompanyName","insuranceCompanyLogo","fileName","fileUrl","createdAt","totalPolicyCount","completedPolicyCount","failedPolicyCount","createdBy.id","createdBy.name","createdBy.email","createdBy.userType"],Gr=(e=>(e.Pending="PENDING",e.Success="SUCCESS",e.Failed="FAILED",e))(Gr||{}),Ve=["id","webhookId","webhookName","event","state","responseStatusCode","createdAt","completedAt","retryCount"],Mr={consentType:{type:"enum",values:["KVKK","ETK"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},isActive:{type:"boolean",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq"]}},wr={agentBranchId:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},id:{type:"string",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},name:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},identityNumber:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},taxNumber:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},type:{type:"enum",values:["INDIVIDUAL","COMPANY","FOREIGN"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},primaryEmail:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},primaryPhoneNumber:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},primaryPhoneNumberCountryCode:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},cityText:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},cityValue:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},districtText:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},districtValue:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},createdAt:{type:"DateTime",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},birthDate:{type:"DateOnly",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},gender:{type:"enum",values:["UNKNOWN","MALE","FEMALE","OTHER"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},educationStatus:{type:"enum",values:["UNKNOWN","PRIMARY_SCHOOL","MIDDLE_SCHOOL","HIGH_SCHOOL","UNIVERSITY","POSTGRADUATE","DOCTORATE","OTHER"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},nationality:{type:"enum",values:["UNKNOWN","TURK","OTHER"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},maritalStatus:{type:"enum",values:["UNKNOWN","SINGLE","MARRIED"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},job:{type:"enum",values:["UNKNOWN","BANKER","CORPORATE_EMPLOYEE","LTD_EMPLOYEE","POLICE","MILITARY_PERSONNEL","RETIRED_SPOUSE","TEACHER","DOCTOR","PHARMACIST","NURSE","HEALTHCARE_WORKER","LAWYER","JUDGE","PROSECUTOR","FREELANCER","FARMER","INSTRUCTOR","RELIGIOUS_OFFICIAL","ASSOCIATION_MANAGER","OFFICER","RETIRED","HOUSEWIFE"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},passportNumber:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},searchScore:{type:"number",nullable:!0,filterable:!1,searchable:!1}},Br={agentBranchId:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},id:{type:"string",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},ref:{type:"string",nullable:!1,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},type:{type:"enum",values:["SALE_OPPORTUNITY","ENDORSEMENT","CANCEL","COMPLAINT"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},status:{type:"enum",values:["OPEN","DELAYED","SUCCESS","FAIL"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},cancelSubType:{type:"enum",values:["ONLINE_CANCELLATION_REFUND","MEB_CANCELLATION","PARTIAL_CANCELLATION","CANCELLATION_FROM_SALE","CANCELLATION_DUE_TO_COLLECTION","CANCELLATION_DUE_TO_DAMAGE"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},saleOpportunitySubType:{type:"enum",values:["NEW_SALE","CROSS_SALE","RENEWAL"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},endorsementSubType:{type:"enum",values:["VEHICLE_CHANGE","VALUE_INCREASE","NO_CLAIM_BONUS_TRANSFER","COVERAGE_CHANGE","USAGE_TYPE_CHANGE","TRANSFER_REQUEST","LICENSE_PLATE_CHANGE","BRAND_MODEL_CHANGE","ENGINE_CHASSIS_NUMBER_CHANGE","CONTACT_ADDRESS_CHANGE","OTHER","PLEDGEE_CORRECTION_ADDITION"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},complaintSubType:{type:"enum",values:["CONSULTANT_ERROR","POLICY_OPERATIONS","COLLECTION","DUE_TO_FREQUENT_CALLS","FRAUD","DAMAGE","ERRONEOUS_TRANSACTION","DELAY_IN_OPERATIONS","ONLINE_TRANSACTION_ERRORS","DELAY_IN_CANCELLATION_PERIOD","NON_RECEIPT_OF_POLICY_OR_ENDORSEMENT","NON_PRODUCTION_OF_POLICY_OR_ENDORSEMENT","DELAY_IN_ENDORSEMENT_OPERATIONS","ERRONEOUS_PREMIUM_COLLECTION","NON_DELIVERY_OF_REFUND_RECEIPT","NON_REFUND_OF_PREMIUM","STAFF_ATTITUDE","INSUFFICIENT_OR_ERRONEOUS_INFORMATION","NO_TIMELY_RESPONSE"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},mainState:{type:"enum",values:["FAIL","OPEN","IN_PROGRESS","SUCCESS"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},subState:{type:"enum",values:["FAIL_NO_RESPONSE","FAIL_INVALID_CASE","FAIL_CUSTOMER_WITHDRAWN","FAIL_PAYMENT_ERROR","FAIL_DECLINED_CARD_INFORMATION","FAIL_FOREIGN_USER","FAIL_TAKEN_ELSEWHERE","FAIL_PRICE_TOO_HIGH","FAIL_ASSET_ACQUISITION","FAIL_ASSET_SOLD","FAIL_UNRESOLVED","FAIL_REFERRED_TO_LEGAL","FAIL_CUSTOMER_UNSATISFIED","FAIL_MISSING_DOCUMENTS","FAIL_INSURER_DENIED","FAIL_CONDITIONS_NOT_MET","OPEN_INITIAL","OPEN_COLLECTING_INFORMATION","OPEN_DELAYED","OPEN_WAITING","IN_PROGRESS_UNDER_ANALYSIS","IN_PROGRESS_PROPOSAL_PREPARED","IN_PROGRESS_AWAITING_APPROVAL","IN_PROGRESS_TO_BE_RECONTACTED","SUCCESS_COMPLETED"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},productBranch:{type:"enum",values:["KASKO","DASK","KONUT","TRAFIK","TSS","IMM","YESIL_KART","FERDI_KAZA","GRUP_HAYAT","SAGLIK","KART_KIMLIK_KORUMA","UCUNCU_SAHIS_MALI_SORUMLULUK","ISYERI_YANGIN","SEYAHAT","ELEKTRONIK_CIHAZ","PET","BES","INSAAT_ALL_RISK","LEASING_ALL_RISK","MONTAJ_ALL_RISK","NAKLIYAT","OZEL_GUVENLIK_MALI_SORUMLULUK","AKILLI_TELEFON","TEHLIKELI_MADDELER_MALI_SORUMLULUK","YAT_GEMI_GEZINTI_TEKNESI","TARIM","MESLEKI_SORUMLULUK","ALACAK","ISVEREN_MALI_MESULIYET","MUHENDISLIK","HUKUKSAL_KORUMA","ILK_ATES_KONUT","KEFALET"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},channel:{type:"enum",values:["UNKNOWN","MANUAL","WEBSITE","GOOGLE_ADS","CALL_CENTER","SOCIAL_MEDIA","MOBILE_APP","OFFLINE_PROPOSAL_FORM","FIELD","PRINT_MEDIA","FAIR_EVENT","BUSINESS_PARTNER","CHATBOT"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},createdAt:{type:"DateTime",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},createdByName:{type:"string",nullable:!1,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},createdById:{type:"string",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},createdByEmail:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},createdByType:{type:"enum",values:["NONE","ADMIN_PANEL","AGENT","CUSTOMER"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},representedByName:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},representedById:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},representedByEmail:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},representedByType:{type:"enum",values:["NONE","ADMIN_PANEL","AGENT","CUSTOMER"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},policyEndDate:{type:"DateOnly",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},assetType:{type:"enum",values:["VEHICLE","PROPERTY"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},assetId:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},sourceCaseId:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},policyCount:{type:"number",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},proposalCount:{type:"number",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},lastProposalDate:{type:"DateTime",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},lastPolicyDate:{type:"DateTime",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},lastUpdateDate:{type:"DateTime",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},lastUpdatedByName:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},lastUpdatedById:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},lastUpdatedByEmail:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},lastUpdatedByType:{type:"enum",values:["NONE","ADMIN_PANEL","AGENT","CUSTOMER"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},priorityScore:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},customerId:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},customerName:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},customerType:{type:"enum",values:["INDIVIDUAL","COMPANY","FOREIGN"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},customerIdentity:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},customerCityText:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},customerCityValue:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},customerDistrictText:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},customerDistrictValue:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},customerPrimaryPhoneNumber:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},customerPrimaryPhoneCountryCode:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},customerPrimaryEmail:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},customerBirthDate:{type:"DateOnly",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},customerPassportNumber:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},customerJob:{type:"enum",values:["UNKNOWN","BANKER","CORPORATE_EMPLOYEE","LTD_EMPLOYEE","POLICE","MILITARY_PERSONNEL","RETIRED_SPOUSE","TEACHER","DOCTOR","PHARMACIST","NURSE","HEALTHCARE_WORKER","LAWYER","JUDGE","PROSECUTOR","FREELANCER","FARMER","INSTRUCTOR","RELIGIOUS_OFFICIAL","ASSOCIATION_MANAGER","OFFICER","RETIRED","HOUSEWIFE"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},vehiclePlateCode:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehiclePlateCity:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},vehicleModelBrandText:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehicleModelBrandValue:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},vehicleModelTypeText:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehicleModelTypeValue:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},vehicleModelYear:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},vehicleUtilizationStyle:{type:"enum",values:["UNKNOWN","PRIVATE_CAR","TAXI","ROUTE_BASED_MINIBUS","MEDIUM_BUS","LARGE_BUS","PICKUP_TRUCK","PANEL_VAN","TRUCK","TRACTOR","MOTORCYCLE","RENTAL_CAR","ARMORED_VEHICLE","MINIBUS_SHARED_TAXI","JEEP","JEEP_SAV","JEEP_SUV","HEARSE","CHAUFFEURED_RENTAL_CAR","OPERATIONAL_RENTAL","PRIVATE_MINIBUS","ROUTE_MINIBUS","SERVICE_MINIBUS"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},vehicleEngineNumber:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehicleChassisNumber:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehicleRegistrationDate:{type:"DateOnly",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},vehicleFuelType:{type:"enum",values:["GASOLINE","DIESEL","LPG","ELECTRIC","LPG_GASOLINE","HYBRID"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},vehicleSeatNumber:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},vehicleDocumentSerialCode:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehicleDocumentSerialNumber:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},propertyNumber:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},propertySquareMeter:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},propertyConstructionYear:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},propertyDamageStatus:{type:"enum",values:["UNKNOWN","NONE","SLIGHTLY_DAMAGED","MODERATELY_DAMAGED","SEVERELY_DAMAGED"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},propertyFloorNumber:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},propertyStructure:{type:"enum",values:["UNKNOWN","STEEL_REINFORCED_CONCRETE","OTHER"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},propertyUtilizationStyle:{type:"enum",values:["UNKNOWN","HOUSE","BUSINESS","OTHER"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},propertyOwnershipType:{type:"enum",values:["UNKNOWN","PROPRIETOR","TENANT"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},propertyDaskPolicyNumber:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},advertisingSource:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},advertisingCampaign:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},searchScore:{type:"number",nullable:!0,filterable:!1,searchable:!1}},kr={agentBranchId:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},id:{type:"string",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},insurerCustomerId:{type:"string",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},insuredCustomerId:{type:"string",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},installmentNumber:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},productBranch:{type:"enum",values:["KASKO","DASK","KONUT","TRAFIK","TSS","IMM","YESIL_KART","FERDI_KAZA","GRUP_HAYAT","SAGLIK","KART_KIMLIK_KORUMA","UCUNCU_SAHIS_MALI_SORUMLULUK","ISYERI_YANGIN","SEYAHAT","ELEKTRONIK_CIHAZ","PET","BES","INSAAT_ALL_RISK","LEASING_ALL_RISK","MONTAJ_ALL_RISK","NAKLIYAT","OZEL_GUVENLIK_MALI_SORUMLULUK","AKILLI_TELEFON","TEHLIKELI_MADDELER_MALI_SORUMLULUK","YAT_GEMI_GEZINTI_TEKNESI","TARIM","MESLEKI_SORUMLULUK","ALACAK","ISVEREN_MALI_MESULIYET","MUHENDISLIK","HUKUKSAL_KORUMA","ILK_ATES_KONUT","KEFALET"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},netPremium:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},grossPremium:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},commission:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},paymentType:{type:"enum",values:["UNKNOWN","SYNC_CREDIT_CARD","SYNC_OPEN_ACCOUNT","ASYNC_3D_SECURE","ASYNC_INSURANCE_COMPANY_REDIRECT","ASYNC_THIRD_PARTY_3D_SECURE"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},currency:{type:"enum",values:["UNKNOWN","TURKISH_LIRA","UNITED_STATES_DOLLAR","EURO"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},insuranceCompanyProposalNumber:{type:"string",nullable:!1,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},insuranceCompanyPolicyNumber:{type:"string",nullable:!1,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},createdAt:{type:"DateTime",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},startDate:{type:"DateOnly",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},endDate:{type:"DateOnly",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},arrangementDate:{type:"DateOnly",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},insuredCustomerName:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},insuredCustomerIdentityNumber:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},insuredCustomerTaxNumber:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},insuredCustomerType:{type:"enum",values:["INDIVIDUAL","COMPANY","FOREIGN"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},insuredCustomerCityText:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},insuredCustomerCityValue:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},insuredCustomerDistrictText:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},insuredCustomerDistrictValue:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},insuredCustomerBirthDate:{type:"DateOnly",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},insurerCustomerName:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},insurerCustomerIdentityNumber:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},insurerCustomerTaxNumber:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},insurerCustomerCityText:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},insurerCustomerCityValue:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},insurerCustomerDistrictText:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},insurerCustomerDistrictValue:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},insurerCustomerBirthDate:{type:"DateOnly",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},vehiclePlateCode:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehiclePlateCity:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},vehicleDocumentSerialCode:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehicleDocumentSerialNumber:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehicleModelBrandText:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehicleModelBrandValue:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},vehicleModelTypeText:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehicleModelTypeValue:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},vehicleModelYear:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},vehicleFuelType:{type:"enum",values:["GASOLINE","DIESEL","LPG","ELECTRIC","LPG_GASOLINE","HYBRID"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},productId:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},productName:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},insuranceCompanyId:{type:"number",nullable:!1,filterable:!1,searchable:!1},insuranceCompanyName:{type:"string",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},insuranceCompanyLogo:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},state:{type:"enum",values:["ACTIVE","END_OF_LIFE","CANCELLED"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},propertyNumber:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},daskOldPolicyNumber:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},daskPolicyNumber:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehicleId:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},propertyId:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},channel:{type:"enum",values:["UNKNOWN","MANUAL","WEBSITE","GOOGLE_ADS","CALL_CENTER","SOCIAL_MEDIA","MOBILE_APP","OFFLINE_PROPOSAL_FORM","FIELD","PRINT_MEDIA","FAIR_EVENT","BUSINESS_PARTNER","CHATBOT"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},campaign:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]}},Kr={agentBranchId:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},id:{type:"string",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},productBranch:{type:"enum",values:["KASKO","DASK","KONUT","TRAFIK","TSS","IMM","YESIL_KART","FERDI_KAZA","GRUP_HAYAT","SAGLIK","KART_KIMLIK_KORUMA","UCUNCU_SAHIS_MALI_SORUMLULUK","ISYERI_YANGIN","SEYAHAT","ELEKTRONIK_CIHAZ","PET","BES","INSAAT_ALL_RISK","LEASING_ALL_RISK","MONTAJ_ALL_RISK","NAKLIYAT","OZEL_GUVENLIK_MALI_SORUMLULUK","AKILLI_TELEFON","TEHLIKELI_MADDELER_MALI_SORUMLULUK","YAT_GEMI_GEZINTI_TEKNESI","TARIM","MESLEKI_SORUMLULUK","ALACAK","ISVEREN_MALI_MESULIYET","MUHENDISLIK","HUKUKSAL_KORUMA","ILK_ATES_KONUT","KEFALET"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},state:{type:"enum",values:["WAITING","ACTIVE","PURCHASING","PURCHASED","FAILED"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},insurerCustomerId:{type:"string",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},insuredCustomerId:{type:"string",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},productsCount:{type:"number",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},succeedProductsCount:{type:"number",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},createdAt:{type:"DateTime",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},successRate:{type:"number",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},insuredCustomerName:{type:"string",nullable:!1,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},insuredCustomerIdentityNumber:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},insuredCustomerTaxNumber:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},insuredCustomerType:{type:"enum",values:["INDIVIDUAL","COMPANY","FOREIGN"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},lowestPremium:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},highestPremium:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},channel:{type:"enum",values:["UNKNOWN","MANUAL","WEBSITE","GOOGLE_ADS","CALL_CENTER","SOCIAL_MEDIA","MOBILE_APP","OFFLINE_PROPOSAL_FORM","FIELD","PRINT_MEDIA","FAIR_EVENT","BUSINESS_PARTNER","CHATBOT"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},insuredCustomerCityText:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},insuredCustomerCityValue:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},insuredCustomerDistrictText:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},insuredCustomerDistrictValue:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},insuredCustomerPhoneNumber:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},insuredCustomerPhoneNumberCountryCode:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},insuredCustomerEmail:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehiclePlateCode:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehiclePlateCity:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},vehicleDocumentSerialCode:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehicleDocumentSerialNumber:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehicleModelBrandText:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehicleModelBrandValue:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},vehicleModelTypeText:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},vehicleModelTypeValue:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},vehicleModelYear:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},vehicleFuelType:{type:"enum",values:["GASOLINE","DIESEL","LPG","ELECTRIC","LPG_GASOLINE","HYBRID"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},utilizationStyle:{type:"enum",values:["UNKNOWN","PRIVATE_CAR","TAXI","ROUTE_BASED_MINIBUS","MEDIUM_BUS","LARGE_BUS","PICKUP_TRUCK","PANEL_VAN","TRUCK","TRACTOR","MOTORCYCLE","RENTAL_CAR","ARMORED_VEHICLE","MINIBUS_SHARED_TAXI","JEEP","JEEP_SAV","JEEP_SUV","HEARSE","CHAUFFEURED_RENTAL_CAR","OPERATIONAL_RENTAL","PRIVATE_MINIBUS","ROUTE_MINIBUS","SERVICE_MINIBUS"],nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},insuredCustomerBirthDate:{type:"DateOnly",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},vehicleId:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},propertyId:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]}},xr={id:{type:"string",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},email:{type:"string",nullable:!1,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},firstName:{type:"string",nullable:!1,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},lastName:{type:"string",nullable:!1,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},name:{type:"string",nullable:!1,filterable:!1,searchable:!1},phoneNumber:{type:"string",nullable:!0,filterable:!1,searchable:!1},phoneNumberCountryCode:{type:"number",nullable:!0,filterable:!1,searchable:!1},state:{type:"enum",values:["PENDING","ACTIVE","INACTIVE"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},createdAt:{type:"DateTime",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},lastLoginAt:{type:"DateTime",nullable:!0,filterable:!1,searchable:!1}},Hr={id:{type:"string",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},webhookId:{type:"string",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},webhookName:{type:"string",nullable:!0,filterable:!1,searchable:!1},event:{type:"enum",values:["proposal_premium.received","proposal_premium.purchasing","proposal_premium.purchased","proposal_premium.purchase_failed","policy.created","policy.updated"],nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin"]},state:{type:"enum",values:["PENDING","SUCCESS","FAILED"],nullable:!1,filterable:!1,searchable:!1},responseStatusCode:{type:"number",nullable:!0,filterable:!1,searchable:!1},createdAt:{type:"DateTime",nullable:!1,filterable:!1,searchable:!1},completedAt:{type:"DateTime",nullable:!0,filterable:!1,searchable:!1},retryCount:{type:"number",nullable:!1,filterable:!1,searchable:!1}},Vr={id:{type:"string",nullable:!1,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},startDate:{type:"DateTime",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"],searchOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},endDate:{type:"DateTime",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"],searchOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},insuranceCompanyCount:{type:"number",nullable:!1,filterable:!1,searchable:!1},policyTransferTriggerCount:{type:"number",nullable:!1,filterable:!1,searchable:!1},policyCount:{type:"number",nullable:!1,filterable:!1,searchable:!1}},$r={id:{type:"string",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},insuranceCompanyId:{type:"number",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},insuranceCompanyName:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},insuranceCompanyLogo:{type:"string",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]},fileName:{type:"string",nullable:!0,filterable:!0,searchable:!0,filterOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"],searchOperators:["eq","neq","in","nin","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith","textSearch","wildcard","autocomplete"]},fileUrl:{type:"string",nullable:!0,filterable:!1,searchable:!1},createdAt:{type:"DateTime",nullable:!1,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},totalPolicyCount:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]},completedPolicyCount:{type:"number",nullable:!0,filterable:!1,searchable:!1},failedPolicyCount:{type:"number",nullable:!0,filterable:!0,searchable:!1,filterOperators:["eq","neq","in","nin","gt","ngt","gte","ngte","lt","nlt","lte","nlte"]}},Qr={QueryAgentUserResult:xr,QueryCaseModel:Br,QueryCustomerConsentModel:Mr,QueryCustomerModel:wr,QueryFilePolicyTransfersResult:$r,QueryPoliciesResult:kr,QueryPolicyTransfersResult:Vr,QueryProposalsResult:Kr,QueryWebhookDeliveryResult:Hr};function Gn(e){return Qr[e]}var Yr=new Set(["eq","neq","textSearch","wildcard","autocomplete","contains","notContains","startsWith","notStartsWith","endsWith","notEndsWith"]),jr=new Set(["in","nin"]),$e=new Set(["and","or"]);function Qe(e){return e==null||typeof e!="object"?e:Ye(e)}function Ye(e){if(e===null||typeof e!="object")return e;let t={};for(let[r,n]of Object.entries(e))$e.has(r)&&Array.isArray(n)?t[r]=n.map(Ye):n!==null&&typeof n=="object"&&!Array.isArray(n)?t[r]=je(n):t[r]=n;return t}function je(e){let t={};for(let[r,n]of Object.entries(e))Yr.has(r)&&typeof n=="string"?t[r]={value:n}:jr.has(r)&&Array.isArray(n)?t[r]={values:n}:$e.has(r)&&Array.isArray(n)?t[r]=n.map(s=>je(s)):t[r]=n;return t}var Ze=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),zr=e=>Ze(e)&&e.$search===!0,Zr=({$search:e,...t})=>t,ze=e=>Object.keys(e).length>0;function Je(e){if(e==null)return{filter:void 0,search:void 0};let{filter:t,search:r}=Xe(e);return{filter:t,search:r}}function Xe(e){let t={},r={};for(let[n,s]of Object.entries(e))if((n==="and"||n==="or")&&Array.isArray(s)){let a=[],l=[];for(let d of s){if(!Ze(d)){a.push(d);continue}let i=Xe(d);i.filter&&a.push(i.filter),i.search&&l.push(i.search)}a.length>0&&(t[n]=a),l.length>0&&(r[n]=l)}else zr(s)?r[n]=Zr(s):t[n]=s;return{filter:ze(t)?t:void 0,search:ze(r)?r:void 0}}function C(e){let{filter:t,search:r}=Je(e),n={};return t!==void 0&&(n.filter=t),r!==void 0&&(n.search=Qe(r)),n}var K=class{constructor(t,r){this.http=t;this.graphql=r}async getMyAgentUser(t){return this.http.get(I.me,t)}async updateMyAgentUser(t,r){return this.http.putNoContent(I.updateMyUser,t,r)}async inviteAgentUser(t,r){return this.http.postNoContent(I.invite,t,r)}async activateAgentUser(t,r){let n=I.activate.render(t);return this.http.postNoContent(n,void 0,r)}async deactivateAgentUser(t,r){let n=I.deactivate.render(t);return this.http.postNoContent(n,void 0,r)}async checkAgentUserInviteCode(t,r){let n=I.checkAgentUserInviteCode.render(t);return this.http.get(n,r)}async deleteAgentUser(t,r){let n=I.delete.render(t);return this.http.deleteNoContent(n,r)}async getAgentUserById(t,r){let n=I.getById.render(t);return this.http.get(n,r)}async reSendInviteAgentUser(t,r){let n=I.reSendInvite.render(t);return this.http.postNoContent(n,void 0,r)}async acceptAgentUserInvite(t,r){return this.http.postNoContent(I.acceptInvite,t,r)}async updateAgentUser(t,r){let n=I.update.render(t.id);return this.http.putNoContent(n,t,r)}async updateAgentUserPassword(t,r){return this.http.putNoContent(I.updatePassword,t,r)}async getMyAgentUserRobotCode(t){return this.http.get(I.meRobotCode,t)}async migrateAgentUser(t,r){let n=I.migrate.render(t);return this.http.postNoContent(n,void 0,r)}async migrateAllAgentUsers(t){return this.http.post(I.migrateAll,void 0,t)}async getAgentUsers(t,r){if(!this.graphql)throw new Error("GraphQL transport is not available. Ensure the client is properly initialized.");let n=t?.select??Ke,s=f(n),l=`
|
|
3
3
|
query GetAgentUsers(
|
|
4
4
|
$first: Int
|