@placeshakr/config 10.19.0 → 10.19.6-alpha.2

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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function(e){e.CLIENT="client",e.SELLER="seller",e.PRO="pro",e.AGENT="agent",e.ADMIN="admin",e.OWNER="owner",e.SUPERADMIN="superadmin"}(exports.ROLE||(exports.ROLE={}));var e,t={credentials:{algolia:{},cloudinary:{},stripe:{}},isTest:!1,name:"production",security:{search:{scopeField:"searchable(scope)",visibleBy:"visibility",ownerField:"owner"},claims:{enterprise:"enterprise",role:"role",secureSearchApiKey:"searchKey"}},realtime:{default:"enterprises/{enterpriseId}/indexes/{indexName}",projects:"enterprises/{enterpriseId}/indexes/{indexName}/projects/{projectId}"},schema:{collections:{users:"users",enterprises:"enterprises",billing:"enterprises/{enterpriseId}/billing",clients:"enterprises/{enterpriseId}/clients",pros:"enterprises/{enterpriseId}/pros",agents:"enterprises/{enterpriseId}/agents",sellers:"enterprises/{enterpriseId}/sellers",projects:"enterprises/{enterpriseId}/projects",medias:"enterprises/{enterpriseId}/projects/{projectId}/medias",events:"enterprises/{enterpriseId}/projects/{projectId}/events",notes:"enterprises/{enterpriseId}/projects/{projectId}/notes",documents:"enterprises/{enterpriseId}/projects/{projectId}/documents",devis:"enterprises/{enterpriseId}/projects/{projectId}/devis",admins:"enterprises/{enterpriseId}/admins",plans:"enterprises/{enterpriseId}/projects/{projectId}/plans",taskGroups:"enterprises/{enterpriseId}/projects/{projectId}/taskGroups",tasks:"enterprises/{enterpriseId}/projects/{projectId}/tasks",externalPlans:"enterprises/{enterpriseId}/projects/{projectId}/externalPlans",payments:"enterprises/{enterpriseId}/projects/{projectId}/payments",downPayments:"enterprises/{enterpriseId}/projects/{projectId}/downPayments",providers:"enterprises/{enterpriseId}/providers",statuses:"enterprises/{enterpriseId}/statuses",orders:"enterprises/{enterpriseId}/projects/{projectId}/orders",bills:"enterprises/{enterpriseId}/projects/{projectId}/bills",counters:"counters",invoices:"enterprises/{enterpriseId}/invoices",materialsProvider:"enterprises/{enterpriseId}/materialsProvider",invitations:"enterprises/{enterpriseId}/invitations",devisTemplates:"enterprises/{enterpriseId}/devisTemplates",estimations:"enterprises/{enterpriseId}/estimations",userNotifications:"users/{userId}/profiles/{enterpriseId}/notifications",histories:"enterprises/{enterpriseId}/histories",receptionVouchers:"enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers",indexes:"enterprises/{enterpriseId}/indexes",notifications:"enterprises/{enterpriseId}/notifications",nomenclatures:"enterprises/{enterpriseId}/nomenclatures"},docs:{user:"users/{userId}",userProfile:"users/{userId}/profiles/{enterpriseId}",billing:"enterprises/{enterpriseId}/billing/{billingId}",client:"enterprises/{enterpriseId}/clients/{clientId}",enterprise:"enterprises/{enterpriseId}",global:"global/stats",pro:"enterprises/{enterpriseId}/pros/{proId}",agent:"enterprises/{enterpriseId}/agents/{agentId}",seller:"enterprises/{enterpriseId}/sellers/{sellerId}",project:"enterprises/{enterpriseId}/projects/{projectId}",medias:"enterprises/{enterpriseId}/projects/{projectId}/medias/{mediaId}",events:"enterprises/{enterpriseId}/projects/{projectId}/events/{eventId}",notes:"enterprises/{enterpriseId}/projects/{projectId}/notes/{noteId}",documents:"enterprises/{enterpriseId}/projects/{projectId}/documents/{documentId}",devis:"enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}",admin:"enterprises/{enterpriseId}/admins/{adminId}",plans:"enterprises/{enterpriseId}/projects/{projectId}/plans/{planId}",taskGroup:"enterprises/{enterpriseId}/projects/{projectId}/taskGroups/{taskGroupId}",task:"enterprises/{enterpriseId}/projects/{projectId}/tasks/{taskId}",externalPlans:"enterprises/{enterpriseId}/projects/{projectId}/externalPlans/{externalPlanId}",payments:"enterprises/{enterpriseId}/projects/{projectId}/payments/{paymentId}",downPayments:"enterprises/{enterpriseId}/projects/{projectId}/downPayments/{downPaymentId}",paymentMethods:"enterprises/{enterpriseId}/paymentMethods/{paymentMethodId}",provider:"enterprises/{enterpriseId}/providers/{providerId}",status:"enterprises/{enterpriseId}/statuses/{statusId}",orders:"enterprises/{enterpriseId}/projects/{projectId}/orders/{orderId}",bills:"enterprises/{enterpriseId}/projects/{projectId}/bills/{billId}",indexes:"enterprises/{enterpriseId}/projects/{projectId}/indexes/{indexId}",counter:"counters/{counterId}",invoice:"enterprises/{enterpriseId}/invoices/{invoiceId}",materialsProvider:"enterprises/{enterpriseId}/materialsProvider/{materialsProviderId}",invitation:"enterprises/{enterpriseId}/invitations/{invitationId}",devisTemplate:"enterprises/{enterpriseId}/devisTemplates/{devisTemplateId}",estimation:"enterprises/{enterpriseId}/estimations/{estimationId}",userNotification:"users/{userId}/profiles/{enterpriseId}/notifications/{notificationId}",history:"enterprises/{enterpriseId}/histories/{historyId}",receptionVouchers:"enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers/{receptionVoucherId}",notification:"enterprises/{enterpriseId}/notifications/{notificationId}",nomenclatures:"enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}"},indexes:{users:"users",enterprises:"enterprises",billing:"billing",clients:"clients",pros:"pros",agents:"agents",sellers:"sellers",projects:"projects",medias:"projects-medias",events:"projects-events",notes:"projects-notes",documents:"projects-documents",devis:"projects-devis",admins:"admins",plans:"projects-plans",taskGroups:"projects-taskGroups",tasks:"projects-tasks",externalPlans:"projects-externalPlans",payments:"projects-payments",downPayments:"projects-downPayments",providers:"providers",statuses:"statuses",materials:"materials",operations:"operations",operationsMaterials:"operations-materials",orders:"projects-orders",bills:"projects-bills",invoices:"invoices",materialsProvider:"materials-provider",devisTemplates:"devis-templates",estimations:"estimations",receptionVouchers:"projects-reception-vouchers",categories:"categories",operationsCatalogs:"operations-catalogs",nomenclatures:"nomenclatures",systemMaterials:"system-materials",systemOperations:"system-operations",systemOperationsMaterials:"system-operations-materials",systemMaterialsProvider:"system-materials-provider",systemStatus:"system-status",systemNomenclatures:"system-nomenclatures",systemCategories:"system-categories"}},search:{invoices:{attributesForFaceting:["searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},enterprises:{searchableAttributes:["commercialName","siren","siret"],attributesForFaceting:["searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},users:{searchableAttributes:["email","displayName","address","phone.mobile","jobTitle"],attributesForFaceting:["active","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},agents:{searchableAttributes:["email","displayName","address","phone.mobile","jobTitle"],attributesForFaceting:["active","isLeader","leader","searchable(userId)","has_leader","searchable(email)","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},pros:{searchableAttributes:["email","displayName","address","phone.mobile","jobTitle"],attributesForFaceting:["active","searchable(userId)","searchable(email)","searchable(specialities)","searchable(skills)","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},admins:{searchableAttributes:["email","displayName","address","phone.mobile","jobTitle"],attributesForFaceting:["active","searchable(email)","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},sellers:{searchableAttributes:["email","displayName","address","phone.mobile","jobTitle"],attributesForFaceting:["active","isLeader","leader","has_leader","searchable(userId)","searchable(email)","searchable(provider)","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},clients:{searchableAttributes:["email","displayName","address","phone.mobile"],attributesForFaceting:["active","userId","searchable(email)","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},providers:{searchableAttributes:["name","contact.name","contact.email","address","siret"],attributesForFaceting:["tva","commission.enterprise","commission.pro","commission.provider","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},statuses:{searchableAttributes:["name"],attributesForFaceting:["searchable(scope)","searchable(forDashboard)","searchable(default)","searchable(locked)"],ranking:["asc(order)","asc(createdAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},materials:{searchableAttributes:["name","unitPrice","provider"],attributesForFaceting:["unitPrice","searchable(scope)","searchable(provider)","searchable(category)"],ranking:["asc(name)"],maxValuesPerFacet:1e3,maxFacetHits:100},operations:{searchableAttributes:["name","unitPrice","objectID"],attributesForFaceting:["searchable(pieces)","searchable(surface)","type","unitPrice","searchable(scope)","catalogId"],maxValuesPerFacet:1e3,maxFacetHits:100},operationsMaterials:{searchableAttributes:["name","unitPrice","unit","externalId"],attributesForFaceting:["searchable(scope)","searchable(provider)","searchable(optId)"],ranking:["asc(order)"],maxValuesPerFacet:1e3,maxFacetHits:100},projects:{searchableAttributes:["name","address","description","price.total","client.displayName","client.email","client.address","client.phone.mobile","pro.displayName","pro.email","pro.phone.mobile","agents.displayName","agents.email","agents.phone.mobile","sellers.displayName","sellers.email","sellers.phone.mobile","provider.name","status"],attributesForFaceting:["parent.id","price.total","searchable(type)","searchable(status)","client.displayName","searchable(client.email)","agents.userId","searchable(agents.displayName)","searchable(agents.email)","searchable(pro.userId)","searchable(pro.displayName)","searchable(pro.email)","searchable(sellers.userId)","searchable(sellers.displayName)","searchable(sellers.email)","searchable(provider.id)","searchable(provider.name)","searchable(category)","searchable(agentManager)","searchable(sellerManager)","searchable(scope)"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},notes:{searchableAttributes:["title"],attributesForFaceting:["type","projectId","searchable(scope)"],ranking:["desc(createdAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},medias:{searchableAttributes:["name"],attributesForFaceting:["owner","searchable(tags)","projectId","searchable(scope)","createdDate"],ranking:["desc(createdAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},plans:{searchableAttributes:["name","description"],attributesForFaceting:["projectId","searchable(scope)","searchable(visibleByPro)"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},devis:{searchableAttributes:["name","status"],attributesForFaceting:["searchable(status)","projectId","searchable(scope)"],ranking:["desc(dateApproved)","desc(status)","desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},documents:{searchableAttributes:["title"],attributesForFaceting:["visibleBy","projectId","searchable(scope)"],ranking:["desc(createdAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},events:{searchableAttributes:["title","type"],attributesForFaceting:["type","start","end","owner","projectId","searchable(scope)"],ranking:["desc(start)"],maxValuesPerFacet:1e3,maxFacetHits:100},externalPlans:{searchableAttributes:["title","type"],attributesForFaceting:["type","projectId","searchable(scope)"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},payments:{searchableAttributes:["percent","devisId","projectId"],attributesForFaceting:["searchable(devisId)","searchable(projectId)","searchable(scope)"],ranking:["asc(date)"],maxValuesPerFacet:1e3,maxFacetHits:100},downPayments:{searchableAttributes:["percent","devisId","projectId","billId","locked"],attributesForFaceting:["searchable(billId)","searchable(locked)","searchable(devisId)","searchable(projectId)","searchable(scope)"],ranking:["asc(date)"],maxValuesPerFacet:1e3,maxFacetHits:100},tasks:{searchableAttributes:["title","description"],attributesForFaceting:["group","projectId","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},taskGroups:{searchableAttributes:["name"],attributesForFaceting:["projectId","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},orders:{searchableAttributes:["name","description","piece","surface"],attributesForFaceting:["searchable(piece)","searchable(surface)","projectId","devisId","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},bills:{searchableAttributes:["entity","type","status","subType","reference"],attributesForFaceting:["entity","projectId","searchable(type)","searchable(subType)","searchable(status)","searchable(scope)"],ranking:["desc(referenceNumber)"],maxValuesPerFacet:1e3,maxFacetHits:100},materialsProvider:{searchableAttributes:["name","status","identifier"],attributesForFaceting:["searchable(scope)","searchable(status)","searchable(identifier)","searchable(addMaterials)","searchable(editable)"],ranking:["desc(status)","desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},systemMaterials:{searchableAttributes:["name","unitPrice"],attributesForFaceting:["unitPrice","searchable(provider)","searchable(category)"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},systemOperations:{searchableAttributes:["name","unitPrice"],attributesForFaceting:["searchable(pieces)","searchable(surface)","type","unitPrice"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},systemOperationsMaterials:{searchableAttributes:["name","unitPrice","unit","externalId"],attributesForFaceting:["searchable(provider)","searchable(optId)"],ranking:["asc(order)"],maxValuesPerFacet:1e3,maxFacetHits:100},systemMaterialsProvider:{searchableAttributes:["name","status"],attributesForFaceting:["searchable(status)","searchable(identifier)","searchable(addMaterials)","searchable(editable)","searchable(type)"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},systemStatus:{searchableAttributes:["name","color"],attributesForFaceting:["searchable(forDashboard)","searchable(default)"],ranking:["asc(order)"],maxValuesPerFacet:1e3,maxFacetHits:100},systemNomenclatures:{searchableAttributes:["identifier","value"],attributesForFaceting:["searchable(identifier)","searchable(status)"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},billing:{attributesForFaceting:["searchable(scope)","customer","paid","searchable(status)"],maxValuesPerFacet:1e3,maxFacetHits:100},devisTemplates:{searchableAttributes:["name"],attributesForFaceting:["searchable(scope)","projectType","materialsProvider"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},estimations:{searchableAttributes:["name","address","type","typeProject","client.displayName","client.email","client.address","client.phone.mobile","sellers.displayName","sellers.email","sellers.phone.mobile","provider.name"],attributesForFaceting:["searchable(type)","searchable(typeProject)","searchable(scope)","searchable(owner.userId)"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},receptionVouchers:{searchableAttributes:["status"],attributesForFaceting:["projectId","searchable(status)","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},categories:{searchableAttributes:["name"],attributesForFaceting:["searchable(entity)","searchable(parent)","searchable(scope)","searchable(provider)"],ranking:["asc(name)"],maxValuesPerFacet:1e3,maxFacetHits:100},systemCategories:{searchableAttributes:["name"],attributesForFaceting:["searchable(entity)","searchable(parent)","searchable(provider)"],ranking:["asc(name)"],maxValuesPerFacet:1e3,maxFacetHits:100},operationsCatalogs:{searchableAttributes:["name"],attributesForFaceting:["searchable(scope)","searchable(status)"],ranking:["asc(name)"],maxValuesPerFacet:1e3,maxFacetHits:100},nomenclatures:{searchableAttributes:["value"],attributesForFaceting:["searchable(scope)","searchable(identifier)","searchable(status)"],ranking:["asc(value)"],maxValuesPerFacet:1e3,maxFacetHits:100}}};function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(this,arguments)}(e=exports.Environments||(exports.Environments={})).dev="development",e.production="production",e.staging="staging",e.test="test",e.emulator="emulator";var s,a,i,n,o,c,p,l,d,u,m,E,I,A,T,g,b,N,O,R,P,h,S,v,f,F,y,_,x,C,L,j,D,V,U,M,H,G,w,k,B,z,W,Y,K,J,X,Q,Z,q,$,ee,te=function(){return{create:function(e,t){return r({},null!=t&&t.createdAt||null!=t&&t.updatedAt?{}:{createdAt:Date.now()},null!=t&&t.updatedAt?{}:{updatedAt:Date.now()},{objectID:e,id:e},t)}}},re={profiles:te(),projects:te(),notes:te(),materials:te(),medias:te(),plans:te(),users:te(),payments:te(),status:te(),providers:te(),documents:te(),taskGroups:te(),tasks:te(),devis:te(),enterprises:te(),events:te(),orders:te(),bills:te(),billsIssued:te(),billsReceived:te(),externalPlans:te(),materialsProvider:te(),devisTemplate:te(),paymentMethods:te(),estimations:te(),invitations:te(),downPayment:te(),histories:te(),receptionVoucher:te(),nomenclatures:te()},se="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ae={generate:function(){var e=0,t=[];return function(){var r=(new Date).getTime(),s=r===e;e=r;var a,i=new Array(8);for(a=7;a>=0;a--)i[a]=se.charAt(r%62),r=Math.floor(r/62);if(0!==r)throw new Error("We should have converted the entire timestamp.");var n=i.join("");if(s){for(a=11;a>=0&&61===t[a];a--)t[a]=0;t[a]++}else for(a=0;a<12;a++)t[a]=Math.floor(62*Math.random());for(a=0;a<12;a++)n+=se.charAt(t[a]);if(20!==n.length)throw new Error("Length should be 20.");return n}}(),timestamp:function(){return function(e,t){for(var r=0,s=e.substring(0,8),a=0;a<8;a++)r=62*r+se.indexOf(s[a]);return t?new Date(r):r}}()},ie={standard:{id:"prod_KzmEyS3UQ5lbnz",tax_rates:["txr_1HPXZVLFzcsAA7x6w0zpHu01"],tariffs:{base:{id:"price_1KJmg4LFzcsAA7x6SMfj1iDu",price:69,usageType:"licensed",type:"base"}},prices:{monthly:"price_1KJmg4LFzcsAA7x6SMfj1iDu",additionalUser:"price_1KJmg4LFzcsAA7x6yzvGdoxe"},additionalUserPrice:10},plus:{id:"prod_KzmyY1ysEOeK93",tax_rates:["txr_1HPXZVLFzcsAA7x6w0zpHu01"],tariffs:{base:{id:"price_1KJnP0LFzcsAA7x6oDVeaPAv",price:159,usageType:"licensed",type:"base"}},prices:{monthly:"price_1KJnP0LFzcsAA7x6oDVeaPAv",additionalUser:"price_1KJnP0LFzcsAA7x6s3rO71QX"},additionalUserPrice:5},classic:{id:"prod_KzmO4rORyWl8cA",tax_rates:["txr_1HPXZVLFzcsAA7x6w0zpHu01"],tariffs:{base:{id:"price_1KJmpiLFzcsAA7x6rLA0GNZX",price:159,usageType:"licensed",type:"base"},additionalAdmin:{id:"price_1KJmpiLFzcsAA7x6VtCIuhqw",price:30,usageType:"metered",type:"extra_user"},additionalAgent:{id:"price_1KJmpiLFzcsAA7x6gFBgAXkr",price:20,usageType:"metered",type:"extra_user"},additionalPro:{id:"price_1KJmpiLFzcsAA7x6JxTnlLC8",price:10,usageType:"metered",type:"extra_user"},additionalSeller:{id:"price_1KJmpiLFzcsAA7x6XS9PBgQo",price:2,usageType:"metered",type:"extra_user"}},prices:{monthly:"price_1KJmpiLFzcsAA7x6rLA0GNZX",additionalUser:"price_1KJmpiLFzcsAA7x6VtCIuhqw"},additionalUserPrice:30}},ne={standard:{id:"prod_HsAwETfIUblsAT",tax_rates:["txr_1HIMA8LFzcsAA7x61nsqfrYU"],tariffs:{base:{id:"price_1HIQaILFzcsAA7x6NVk3cJu1",price:69,usageType:"licensed",type:"base"}},prices:{monthly:"price_1HIQaILFzcsAA7x6NVk3cJu1",additionalUser:"price_1HRQFTLFzcsAA7x6X9wS7JUr"},additionalUserPrice:10},plus:{id:"prod_HsB2YJPEZ9H98c",tax_rates:["txr_1HIMA8LFzcsAA7x61nsqfrYU"],tariffs:{base:{id:"price_1HIQg0LFzcsAA7x6X6lfFUdv",price:159,usageType:"licensed",type:"base"}},prices:{monthly:"price_1HIQg0LFzcsAA7x6X6lfFUdv",additionalUser:"price_1HRg1fLFzcsAA7x6QYbtnty6"},additionalUserPrice:5},classic:{id:"prod_KzmYFhrWXrzWdR",tax_rates:["txr_1HIMA8LFzcsAA7x61nsqfrYU"],tariffs:{base:{id:"price_1KJmzNLFzcsAA7x6I6gNlCpY",price:159,usageType:"licensed",type:"base"},additionalAdmin:{id:"price_1KJmzNLFzcsAA7x6Tl6D8Wus",price:30,usageType:"metered",type:"extra_user"},additionalAgent:{id:"price_1KJmzNLFzcsAA7x6DeUQScKY",price:20,usageType:"metered",type:"extra_user"},additionalPro:{id:"price_1KJmzNLFzcsAA7x695wsj6rA",price:10,usageType:"metered",type:"extra_user"},additionalSeller:{id:"price_1KJmzNLFzcsAA7x6gF62MX41",price:2,usageType:"metered",type:"extra_user"}},prices:{monthly:"price_1KJmzNLFzcsAA7x6I6gNlCpY",additionalUser:"price_1KJmzNLFzcsAA7x6Tl6D8Wus"},additionalUserPrice:30}};!function(e){e.CLIENT="client",e.SELLER="seller",e.PRO="pro",e.AGENT="agent",e.ADMIN="admin",e.OWNER="owner",e.SUPERADMIN="superadmin"}(s||(s={})),function(e){e.INTERNAL="internal",e.API="api",e.SYSTEM="system"}(a||(a={})),function(e){e.ONE_PIECE="ONE_PIECE",e.FULL="FULL",e.COMPOUND="COMPOUND",e.CHILD="CHILD"}(i||(i={})),function(e){e.TODO="TODO",e.INPROGRESS="INPROGRESS",e.DONE="DONE"}(n||(n={})),function(e){e.NOTE="NOTE",e.PROBLEM="PROBLEM",e.IMPORTANT="IMPORTANT",e.DELIVERY="DELIVERY"}(o||(o={})),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.INFO=1]="INFO",e[e.WARNING=2]="WARNING",e[e.DANGER=3]="DANGER",e[e.TOAST=4]="TOAST"}(c||(c={})),function(e){e.CREATED="CREATED",e.SENT="SENT",e.APPROVED="APPROVED",e.REFUSED="REFUSED",e.ABANDONED="ABANDONED"}(p||(p={})),function(e){e.DEVIS="DEVIS",e.SAV="SAV",e.TS="TS"}(l||(l={})),function(e){e[e.HOME=0]="HOME",e[e.GENERAL=1]="GENERAL",e[e.PRO=2]="PRO",e[e.CLIENT=3]="CLIENT"}(d||(d={})),function(e){e.DEVIS="DEVIS",e.DOCUMENT="DOCUMENT",e.CLIENT="CLIENT",e.OTHER="OTHER"}(u||(u={})),function(e){e.OTHER="AUTRE",e.VISIT="VISIT",e.DELIVERY="DELIVERY",e.CONSTRUCTION="CONSTRUCTION",e.SAV="SAV",e.TECHNICAL_STATEMENT="TECHNICAL_STATEMENT",e.TS_DESIGN="TS_DESIGN"}(m||(m={})),function(e){e.MAGICPLAN="MAGICPLAN",e.SKETCHUP="SKETCHUP"}(E||(E={})),function(e){e.PROVISIONAL="PROVISIONAL",e.CREATED="CREATED",e.SENT="SENT",e.WAITING="WAITING",e.BLOCKED="BLOCKED",e.PAID="PAID",e.CANCELED="CANCELED"}(I||(I={})),function(e){e.WAITING_AGENT_VALIDATION="WAITING_AGENT_VALIDATION",e.WAITING_ACCOUNT_VALIDATION="WAITING_ACCOUNT_VALIDATION",e.WAITING_FOR_ELEMENT="WAITING_FOR_ELEMENT",e.WAITING_FOR_PAYMENT="WAITING_FOR_PAYMENT",e.TO_PAY="TO_PAY",e.TRANSFER_TO_VALIDATE="TRANSFER_TO_VALIDATE",e.WITHOUT_INVOICE="WITHOUT_INVOICE",e.PAID="PAID",e.REFUSED="REFUSED",e.BLOCKED="BLOCKED"}(A||(A={})),function(e){e.WAITING_AGENT_VALIDATION="WAITING_AGENT_VALIDATION",e.WAITING_ACCOUNT_VALIDATION="WAITING_ACCOUNT_VALIDATION",e.ACCEPTED="ACCEPTED",e.REFUSED="REFUSED"}(T||(T={})),function(e){e.RECEIVED="RECEIVED",e.ISSUED="ISSUED"}(g||(g={})),function(e){e.PRO="PRO",e.MATERIAL_PROVIDER="MATERIAL_PROVIDER",e.SERVICE_PROVIDER="SERVICE_PROVIDER",e.PROVIDER="PROVIDER",e.OTHER="OTHER"}(b||(b={})),function(e){e.FACTURE="FACTURE",e.CREDIT_NOTE="CREDIT_NOTE"}(N||(N={})),function(e){e.CLIENT="CLIENT",e.PRO="PRO",e.PROVIDER="PROVIDER",e.MATERIAL_PROVIDER="MATERIAL_PROVIDER",e.SERVICE_PROVIDER="SERVICE_PROVIDER",e.OTHER="OTHER"}(O||(O={})),function(e){e.CUSTOM="CUSTOM",e.DOWN_PAYMENT="DOWN_PAYMENT",e.BALANCE="BALANCE",e.CREDIT_NOTE="CREDIT_NOTE"}(R||(R={})),function(e){e.ADVANCE="ADVANCE",e.HOURS="HOURS",e.DAYS="DAYS",e.PRODUCT="PRODUCT",e.SERVICE="SERVICE",e.PROVIDER_COMMISSION="PROVIDER_COMMISSION"}(P||(P={})),function(e){e.PERCENT="PERCENT",e.MONEY="MONEY"}(h||(h={})),function(e){e.CREDIT="CREDIT",e.DEBIT="DEBIT"}(S||(S={})),function(e){e.ONE_PIECE="ONE_PIECE",e.FULL="FULL",e.COMPOUND="COMPOUND",e.CHILD="CHILD"}(v||(v={})),function(e){e.UNSPECIFIED="UNSPECIFIED",e.BATHROOM="BATHROOM",e.KITCHEN="KITCHEN",e.LIVINGROOM="LIVINGROOM",e.BEDROOM="BEDROOM",e.TOILET="TOILET",e.OFFICE="OFFICE",e.APARTMENT="APARTMENT",e.HOUSE="HOUSE",e.ELECTRICITY="ELECTRICITY",e.PLUMBIG="PLUMBIG",e.FLOORING="FLOORING",e.WALL_COVERING="WALL_COVERING",e.STAIRS="STAIRS",e.OUTSIDE="OUTSIDE",e.COMMERCE="COMMERCE"}(f||(f={})),function(e){e[e.COMPLETED=0]="COMPLETED",e[e.OVERDUE=1]="OVERDUE",e[e.DUESOON=2]="DUESOON",e[e.INTIME=3]="INTIME"}(F||(F={})),function(e){e.KITCHEN="kitchen",e.BATHROOM="bathroom",e.GENERAL="general_renovation",e.GARDEN="garden",e.ATTICS="attics",e.POOL="swimming_pool"}(y||(y={})),function(e){e.ELECTRICITY="electricity",e.PLUMBIG="plumbing",e.CARPENTRY="carpentry",e.MASONRY="masonry",e.PAINTING="painting",e.GARDEN="garden",e.LOCKSMITH="locksmith",e.FRAME="frame",e.INSULATION="insulation"}(_||(_={})),function(e){e.CONTRACTOR="CONTRACTOR",e.EIRL="EIRL",e.SARL="SARL",e.EURL="EURL",e.SASU="SASU",e.SAS="SAS"}(x||(x={})),function(e){e.PROVIDER="provider",e.INTERNET="internet",e.YELLOW_PAGES="yellow-pages",e.RUMOR="rumor",e.PUBLICITY="publicity"}(C||(C={})),function(e){e.TODO="TODO",e.VALID="VALID",e.ORDERED="ORDERED",e.LATE="LATE",e.RECEIVED="RECEIVED",e.ONSITE="ONSITE"}(L||(L={})),function(e){e.MOBILE="mobile",e.WORK="work",e.LANDLINE="landline",e.OTHER="other"}(j||(j={})),function(e){e.NOTES="notes",e.EVENTS="events",e.DOCUMENTS="documents",e.DEVIS="devis"}(D||(D={})),function(e){e.UPON_RECEIPT="upon-receipt",e.MONTH_END="month-end",e.DAYS_10="10-days",e.DAYS_20="20-days",e.DAYS_30="30-days",e.DAYS_30_END_MONTH="30-days-end-month",e.DAYS_45="45-days",e.DAYS_60="60-days",e.DAYS_60_END_MONTH="60-days-end-month",e.DAYS_90="90-days",e.DAYS_90_END_MONTH="90-days-end-month",e.DAYS_120="120-days"}(V||(V={})),function(e){e.UNSPECIFIED="unspecified",e.CASH="cash",e.CHECK="check",e.BANK_TRANSFER="bank-transfer",e.BANK_CARD="bank-card",e.PAYPAL="paypal",e.SAMPLE="sample",e.BILL_EXCHANGE="bill-exchange",e.STATEMENT_EXCHANGE="statement-exchange",e.BILL_EXCHANGE_WITHOUT_ACCEPTANCE="bill-exchange-without-acceptance",e.PROMISSORY_NOTE="promissory-note"}(U||(U={})),function(e){e.NO_LATE_INTEREST="No-late-interest",e.PER_MONTH_1="1%-per-month",e.PER_MONTH_15="1.5%-per-month",e.PER_MONTH_2="2%-per-month",e.CURRENT_LEGAL_INTEREST_RATE="current-legal-interest-rate",e.SPECIFY="specify"}(M||(M={})),function(e){e.WEBSITE="WEBSITE",e.ARTICHO="ARTICHO"}(H||(H={})),function(e){e.KITCHEN="KITCHEN",e.BATHROOM="BATHROOM",e.ONE_PIECE="ONE_PIECE",e.HOUSE="HOUSE",e.APARTMENT="APARTMENT",e.COMMERCIAL_LOCAL="COMMERCIAL_LOCAL",e.WITHOUT_ESTIMATION="WITHOUT_ESTIMATION"}(G||(G={})),function(e){e.USER_INVITATION="user-invitation",e.DOCUMENTS="documents",e.NOTES="notes",e.EVENTS="events",e.DEVIS="devis",e.CLIENT_ESTIMATION_WEBSITE="client-estimation-website",e.CLIENT_ESTIMATION_ARTICHO="client-estimation-articho",e.ENTERPRISE_ESTIMATION="enterprise-estimation",e.RESET_PASSWORD="reset-password",e.WELCOME_TO_ENTERPRISE="welcome-to-enterprise",e.WELCOME_TO_NEW_ENTERPRISE="welcome-to-new-enterprise",e.NEW_ENTERPRISE="new-enterprise",e.USER_CONTACT="user-contact",e.PLAN="plan",e.BILL="bill"}(w||(w={})),function(e){e.PROVIDER="provider",e.PROFESSIONAL="professional",e.ENTERPRISE="enterprise"}(k||(k={})),function(e){e.PROVIDER="provider",e.ENTERPRISE="enterprise"}(B||(B={})),function(e){e.INCOMPLETE="incomplete",e.INCOMPLETE_EXPIRED="incomplete_expired",e.TRIALING="trialing",e.ACTIVE="active",e.PAST_DUE="past_due",e.CANCELED="canceled",e.UNPAID="unpaid"}(z||(z={})),function(e){e.STANDARD="standard",e.PLUS="plus",e.PREMIUM="premium"}(W||(W={})),function(e){e.WAITING="WAITING",e.APPROVED="APPROVED",e.REFUSED="REFUSED"}(Y||(Y={})),function(e){e.EDIT="EDIT",e.SEND_EMAIL="SEND_EMAIL",e.EDIT_STATUS="EDIT_STATUS",e.ASSIGN_AGENT="ASSIGN_AGENT",e.UNASSIGN_AGENT="UNASSIGN_AGENT",e.ASSIGN_PRO="ASSIGN_PRO",e.UNASSIGN_PRO="UNASSIGN_PRO",e.ASSIGN_SELLER="ASSIGN_SELLER",e.UNASSIGN_SELLER="UNASSIGN_SELLER",e.APPROVED_R_V="APPROVED_R_V"}(K||(K={})),function(e){e.PROJECT="PROJECT",e.NOTE="NOTE",e.RECEPTION_VOUCHER="RECEPTION_VOUCHER"}(J||(J={})),function(e){e.MATERIAL="MATERIAL",e.OPERATION="OPERATION"}(X||(X={})),function(e){e.OPERATIONS_SECTOR="OPERATIONS_SECTOR",e.OPERATIONS_PIECE="OPERATIONS_PIECE",e.OPERATIONS_LOT="OPERATIONS_LOT",e.EVENTS_TYPES="EVENTS_TYPES",e.PROJECTS_CATEGORY="PROJECTS_CATEGORY",e.TVA="TVA",e.SUPPLIERS="SUPPLIERS"}(Q||(Q={})),function(e){e.NOT_DEFINED="NOT_DEFINED",e.PERIMETER="PERIMETER",e.GROUND_CEILING_SURFACE="GROUND_CEILING_SURFACE",e.WALL_SURFACE="WALL_SURFACE"}(Z||(Z={})),function(e){e.BIGGER_THAN="BIGGER_THAN",e.LOWER_THAN="LOWER_THAN",e.EQUAL_TO="EQUAL_TO",e.BETWEEN="BETWEEN"}(q||(q={})),function(e){e.CLIENT="CLIENT",e.PRO="PRO",e.AGENT="AGENT",e.SELLER="SELLER",e.ENTERPRISE="ENTERPRISE"}($||($={})),function(e){e.accepted="accepted",e.prospected="prospected",e.rejected="rejected"}(ee||(ee={}));var oe={__proto__:null,get ROLE(){return s},get MaterialsProviderType(){return a},get ProjectType(){return i},get OperationStatusEnum(){return n},get NotesType(){return o},get NotificationType(){return c},get DevisStatusEnum(){return p},get DevisTypeEnum(){return l},get DevisViewMode(){return d},get DocumentsTypeEnum(){return u},get EventsTypeEnum(){return m},get ExternalPlanTypeEnum(){return E},get BillIssuedStatus(){return I},get BillReceivedStatus(){return A},get ReceptionVoucherStatus(){return T},get BillType(){return g},get BillReceivedEntity(){return b},get BillReceivedType(){return N},get BillIssuedEntity(){return O},get BillIssuedType(){return R},get BillElementType(){return P},get BillDiscountType(){return h},get PaymentType(){return S},get ProjectTypeEnum(){return v},get ProjectCategoriesEnum(){return f},get TaskStatus(){return F},get ProSpecialitiesEnum(){return y},get ProSkillsEnum(){return _},get CommercialStatusEnum(){return x},get Origin(){return C},get OrderMaterialStatus(){return L},get PhonesEnum(){return j},get SendgridTemplates(){return D},get TermsOfPayment(){return V},get PaymentChoice(){return U},get LateInterest(){return M},get EstimationOriginEnum(){return H},get EstimationTypeEnum(){return G},get EmailTemplate(){return w},get DevisPdfType(){return k},get DevisContractingEntity(){return B},get EnterpriseStatusEnum(){return z},get EnterpriseProductEnum(){return W},get EstimationStatusEnum(){return Y},get HistoryActionEnum(){return K},get HistoryEntityType(){return J},get CategoryEntityEnum(){return X},get NomenclaturesIdentifier(){return Q},get OperationQuantityEnum(){return Z},get OperationRulesEnum(){return q},get MaterialResponsible(){return $},get ProjectPriceTypeEnum(){return ee}};function ce(e){return e}exports.acls=["project.view","project.edit","project.create","project.delete","project.progress.edit","project.assign.pro","project.assign.agent","project.assign.client","project.assign.seller","project.unassign.pro","project.unassign.agent","project.unassign.client","project.unassign.seller","project.validate","project.status.edit","project.pro.prices.view","project.enterprise.prices.view","project.sync.agenda","project.estimation","project.devis.create","project.devis.edit","project.devis.delete","project.note.view","project.note.create","project.note.edit","project.note.delete","project.document.view","project.document.create","project.document.edit","project.document.delete","project.media.view","project.media.create","project.media.edit","project.media.delete","project.event.view","project.event.create","project.event.edit","devis.create","devis.view","devis.edit","devis.delete","devis.status.edit","devis.email.send","devis.validate","devis.from.template.create","configuration.view","configuration.status.view","configuration.status.create","configuration.status.edit","configuration.status.delete","configuration.provider.view","configuration.provider.edit","configuration.provider.delete","configuration.provider.create","configuration.material.provider.view","configuration.material.provider.edit","configuration.material.provider.delete","configuration.material.provider.create","configuration.material.view","configuration.material.edit","configuration.material.delete","configuration.material.create","configuration.operation.view","configuration.operation.edit","configuration.operation.delete","configuration.operation.create","configuration.devis.template.view","configuration.devis.template.edit","configuration.devis.template.delete","configuration.devis.template.create","configuration.team.view","configuration.pro.edit","configuration.pro.delete","configuration.pro.create","configuration.pro.view","configuration.agent.edit","configuration.agent.delete","configuration.agent.create","configuration.agent.view","configuration.admin.edit","configuration.admin.delete","configuration.admin.create","configuration.admin.view","configuration.enterprise.edit","configuration.enterprise.delete","configuration.enterprise.create","configuration.enterprise.view","configuration.enterprise.payment.method.add","configuration.enterprise.payment.method.delete","configuration.enterprise.payment.history.view"],exports.articho=oe,exports.createEvent=function(e,t,r){return{data:t,type:e,meta:r}},exports.flatten=function(e,t){var r=t||{},s=r.delimiter||".",a=r.maxDepth,i=r.transformKey||ce,n={};return function e(t,o,c){var p=c||1;Object.keys(t).forEach((function(c){var l,d=t[c],u=r.safe&&Array.isArray(d),m=Object.prototype.toString.call(d),E=(l=d)&&l.constructor&&"function"==typeof l.constructor.isBuffer&&l.constructor.isBuffer(l),I="[object Object]"===m||"[object Array]"===m,A=o?o+s+i(c):i(c);!u&&!E&&I&&Object.keys(d).length&&(!a||p<a)&&e(d,A,p+1),n[A]=d}))}(e,null,0),n},exports.getEnv=function(e){switch(e){case exports.Environments.dev:return r({},t,{isTest:!0,name:"development"});case exports.Environments.staging:return r({},t,{isTest:!1,name:"staging"});case exports.Environments.production:return t;case exports.Environments.test:return r({},t,{schema:r({},t.schema,{indexes:{users:"users",enterprises:"tests-enterprises",billing:"tests-billing",clients:"tests-clients",pros:"tests-pros",agents:"tests-agents",sellers:"tests-sellers",projects:"tests-projects",medias:"tests-projects-medias",events:"tests-projects-events",notes:"tests-projects-notes",documents:"tests-projects-documents",devis:"tests-projects-devis",admins:"tests-admins",plans:"tests-projects-plans",taskGroups:"tests-projects-task-groups",tasks:"tests-projects-tasks",externalPlans:"tests-projects-external-plans",payments:"tests-projects-payments",providers:"tests-providers",statuses:"tests-statuses",materials:"tests-materials",operations:"tests-operations",operationsMaterials:"test-operations-materials",orders:"tests-projects-orders",bills:"tests-projects-bills",invoices:"test-invoices",materialsProvider:"materials-provider",devisTemplates:"devis-templates",categories:"categories",estimations:"estimations",downPayments:"emulator-projects-down-payments",receptionVouchers:"emulator-projects-reception-vouchers",operationsCatalogs:"operations-catalogs",nomenclatures:"nomenclatures",systemMaterials:"system-materials",systemOperations:"system-operations",systemOperationsMaterials:"system-operations-materials",systemMaterialsProvider:"system-materials-provider",systemStatus:"test-system-status",systemNomenclatures:"test-system-nomenclatures",systemCategories:"system-categories"}}),isTest:!0,name:"test"});case exports.Environments.emulator:return r({},t,{schema:r({},t.schema,{indexes:{users:"users",enterprises:"emulator-enterprises",billing:"emulator-billing",clients:"emulator-clients",pros:"emulator-pros",agents:"emulator-agents",sellers:"emulator-sellers",projects:"emulator-projects",medias:"emulator-projects-medias",events:"emulator-projects-events",notes:"emulator-projects-notes",documents:"emulator-projects-documents",devis:"emulator-projects-devis",admins:"emulator-admins",plans:"emulator-projects-plans",taskGroups:"emulator-projects-task-groups",tasks:"emulator-projects-tasks",externalPlans:"emulator-projects-external-plans",payments:"emulator-projects-payments",providers:"emulator-providers",statuses:"emulator-statuses",materials:"emulator-materials",operations:"emulator-operations",operationsMaterials:"emulator-operations-materials",orders:"emulator-projects-orders",bills:"emulator-projects-bills",invoices:"emulator-invoices",materialsProvider:"materials-provider",devisTemplates:"devis-templates",categories:"categories",estimations:"estimations",downPayments:"emulator-projects-down-payments",receptionVouchers:"emulator-projects-reception-vouchers",operationsCatalogs:"operations-catalogs",nomenclatures:"nomenclatures",systemMaterials:"system-materials",systemOperations:"system-operations",systemOperationsMaterials:"system-operations-materials",systemMaterialsProvider:"system-materials-provider",systemStatus:"emulator-system-status",systemNomenclatures:"emulator-system-nomenclatures",systemCategories:"system-categories"}}),isTest:!0,name:"emulator"});default:return t}},exports.getPlatformConfiguration=function(e){return{standard:{id:(t="production"===e?ne:ie).standard.id,internal:"standard",product:{id:t.standard.id,name:"Standard",description:"Pour les entreprises unipersonnelles",type:"service",price:69,main:!0,active:!0,isPrivate:!0,rating:1,order:1,includes:{maxAdminUsers:null,maxAgentUsers:null,maxProUsers:null,maxSellerUsers:null,authorizationManagement:!0,dashboard:!0,accounting:!0,projectStorage:!0,customCatalog:!0,customConfig:!0,exportReports:!0,externalApiIntegration:!0,support:!0},plans:Object.values(t.standard.tariffs).map((function(e){return e.id})),tax_rates:t.standard.tax_rates},tariffs:t.standard.tariffs,additionalUser:t.standard.prices.additionalUser,additionalUserPrice:t.standard.additionalUserPrice},plus:{id:t.plus.id,internal:"plus",product:{id:t.plus.id,name:"Plus",description:"Idéal pour les agences et les entreprises de plus grande taille",type:"service",price:159,main:!0,active:!0,isPrivate:!0,rating:2,order:2,includes:{maxAdminUsers:null,maxAgentUsers:null,maxProUsers:null,maxSellerUsers:null,authorizationManagement:!0,dashboard:!0,accounting:!0,projectStorage:!0,customCatalog:!0,customConfig:!0,exportReports:!0,externalApiIntegration:!0,support:!0},plans:Object.values(t.plus.tariffs).map((function(e){return e.id})),tax_rates:t.plus.tax_rates},tariffs:t.plus.tariffs,additionalUser:t.plus.prices.additionalUser,additionalUserPrice:t.plus.additionalUserPrice},classic:{id:t.classic.id,internal:"classic",product:{id:t.classic.id,name:"Abonnement Articho",description:"",type:"service",price:159,main:!0,active:!0,rating:3,order:3,includes:{maxAdminUsers:1,maxAgentUsers:0,maxProUsers:0,maxSellerUsers:0,authorizationManagement:!0,dashboard:!0,accounting:!0,projectStorage:!0,customCatalog:!0,customConfig:!0,exportReports:!0,externalApiIntegration:!0,support:!0},plans:Object.values(t.classic.tariffs).map((function(e){return e.id})),tax_rates:t.classic.tax_rates},tariffs:t.classic.tariffs,additionalUser:t.classic.prices.additionalUser,additionalUserPrice:t.classic.additionalUserPrice}};var t},exports.helpers=re,exports.path=function(e,t){void 0===t&&(t={});var r,s=new RegExp(/\{(\w+)\}*/gm),a=e.toString();do{if(r=s.exec(a)){var i=r[0],n=r[1];if(!t.hasOwnProperty(n))throw new Error('Param "'+n+'" is missing from path params');a=a.split(i).join(String(t[n]))}}while(null!==r);return a},exports.reversePathName=function(e,t){var r=e.split("/"),s=Object.keys(t.schema.docs).filter((function(e){return t.schema.docs[e].split("/").length===r.length})),a=Object.values(t.schema.docs).filter((function(e){return e.split("/").length===r.length})).findIndex((function(t){return t.split("/").map((function(e,t){return/\{(\w+)\}/.test(e)?r[t]:e})).join("/")===e}));return a>-1?s[a]:null},exports.security=function(e){var t=[exports.ROLE.CLIENT,exports.ROLE.PRO,exports.ROLE.AGENT,exports.ROLE.ADMIN,exports.ROLE.SUPERADMIN],r=function(t){return!(!t||!t[e.security.claims.role])},s=function(e,r){var s=a(r);return t.indexOf(e)<t.indexOf(s)},a=function(t){return r(t)?t[e.security.claims.role]:null};return{is:function(t,s){return!!r(t)&&t[e.security.claims.role]===s},canActAs:s,getRole:a,getRoles:function(e){return t.filter((function(t){return s(t,e)}))}}},exports.uid=ae;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),function(e){e.CLIENT="client",e.SELLER="seller",e.PRO="pro",e.AGENT="agent",e.ADMIN="admin",e.OWNER="owner",e.SUPERADMIN="superadmin"}(exports.ROLE||(exports.ROLE={}));var e,t={credentials:{algolia:{},cloudinary:{},stripe:{}},isTest:!1,name:"production",security:{search:{scopeField:"searchable(scope)",visibleBy:"visibility",ownerField:"owner"},claims:{enterprise:"enterprise",role:"role",secureSearchApiKey:"searchKey"}},realtime:{default:"enterprises/{enterpriseId}/indexes/{indexName}",projects:"enterprises/{enterpriseId}/indexes/{indexName}/projects/{projectId}"},schema:{collections:{users:"users",enterprises:"enterprises",billing:"enterprises/{enterpriseId}/billing",clients:"enterprises/{enterpriseId}/clients",pros:"enterprises/{enterpriseId}/pros",agents:"enterprises/{enterpriseId}/agents",sellers:"enterprises/{enterpriseId}/sellers",projects:"enterprises/{enterpriseId}/projects",medias:"enterprises/{enterpriseId}/projects/{projectId}/medias",events:"enterprises/{enterpriseId}/projects/{projectId}/events",notes:"enterprises/{enterpriseId}/projects/{projectId}/notes",documents:"enterprises/{enterpriseId}/projects/{projectId}/documents",devis:"enterprises/{enterpriseId}/projects/{projectId}/devis",admins:"enterprises/{enterpriseId}/admins",plans:"enterprises/{enterpriseId}/projects/{projectId}/plans",taskGroups:"enterprises/{enterpriseId}/projects/{projectId}/taskGroups",tasks:"enterprises/{enterpriseId}/projects/{projectId}/tasks",externalPlans:"enterprises/{enterpriseId}/projects/{projectId}/externalPlans",payments:"enterprises/{enterpriseId}/projects/{projectId}/payments",downPayments:"enterprises/{enterpriseId}/projects/{projectId}/downPayments",providers:"enterprises/{enterpriseId}/providers",statuses:"enterprises/{enterpriseId}/statuses",orders:"enterprises/{enterpriseId}/projects/{projectId}/orders",bills:"enterprises/{enterpriseId}/projects/{projectId}/bills",counters:"counters",invoices:"enterprises/{enterpriseId}/invoices",materialsProvider:"enterprises/{enterpriseId}/materialsProvider",invitations:"enterprises/{enterpriseId}/invitations",devisTemplates:"enterprises/{enterpriseId}/devisTemplates",estimations:"enterprises/{enterpriseId}/estimations",userNotifications:"users/{userId}/profiles/{enterpriseId}/notifications",histories:"enterprises/{enterpriseId}/histories",receptionVouchers:"enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers",indexes:"enterprises/{enterpriseId}/indexes",notifications:"enterprises/{enterpriseId}/notifications",nomenclatures:"enterprises/{enterpriseId}/nomenclatures",operationsCatalogs:"enterprises/{enterpriseId}/operationsCatalogs",operationsGroups:"enterprises/{enterpriseId}/operationsGroups",devisVersions:"enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions"},docs:{user:"users/{userId}",userProfile:"users/{userId}/profiles/{enterpriseId}",billing:"enterprises/{enterpriseId}/billing/{billingId}",client:"enterprises/{enterpriseId}/clients/{clientId}",enterprise:"enterprises/{enterpriseId}",global:"global/stats",pro:"enterprises/{enterpriseId}/pros/{proId}",agent:"enterprises/{enterpriseId}/agents/{agentId}",seller:"enterprises/{enterpriseId}/sellers/{sellerId}",project:"enterprises/{enterpriseId}/projects/{projectId}",medias:"enterprises/{enterpriseId}/projects/{projectId}/medias/{mediaId}",events:"enterprises/{enterpriseId}/projects/{projectId}/events/{eventId}",notes:"enterprises/{enterpriseId}/projects/{projectId}/notes/{noteId}",documents:"enterprises/{enterpriseId}/projects/{projectId}/documents/{documentId}",devis:"enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}",admin:"enterprises/{enterpriseId}/admins/{adminId}",plans:"enterprises/{enterpriseId}/projects/{projectId}/plans/{planId}",taskGroup:"enterprises/{enterpriseId}/projects/{projectId}/taskGroups/{taskGroupId}",task:"enterprises/{enterpriseId}/projects/{projectId}/tasks/{taskId}",externalPlans:"enterprises/{enterpriseId}/projects/{projectId}/externalPlans/{externalPlanId}",payments:"enterprises/{enterpriseId}/projects/{projectId}/payments/{paymentId}",downPayments:"enterprises/{enterpriseId}/projects/{projectId}/downPayments/{downPaymentId}",paymentMethods:"enterprises/{enterpriseId}/paymentMethods/{paymentMethodId}",provider:"enterprises/{enterpriseId}/providers/{providerId}",status:"enterprises/{enterpriseId}/statuses/{statusId}",orders:"enterprises/{enterpriseId}/projects/{projectId}/orders/{orderId}",bills:"enterprises/{enterpriseId}/projects/{projectId}/bills/{billId}",indexes:"enterprises/{enterpriseId}/projects/{projectId}/indexes/{indexId}",counter:"counters/{counterId}",invoice:"enterprises/{enterpriseId}/invoices/{invoiceId}",materialsProvider:"enterprises/{enterpriseId}/materialsProvider/{materialsProviderId}",invitation:"enterprises/{enterpriseId}/invitations/{invitationId}",devisTemplate:"enterprises/{enterpriseId}/devisTemplates/{devisTemplateId}",estimation:"enterprises/{enterpriseId}/estimations/{estimationId}",userNotification:"users/{userId}/profiles/{enterpriseId}/notifications/{notificationId}",history:"enterprises/{enterpriseId}/histories/{historyId}",receptionVouchers:"enterprises/{enterpriseId}/projects/{projectId}/receptionVouchers/{receptionVoucherId}",notification:"enterprises/{enterpriseId}/notifications/{notificationId}",nomenclatures:"enterprises/{enterpriseId}/nomenclatures/{nomenclatureId}",operationsCatalogs:"enterprises/{enterpriseId}/operationsCatalogs/{operationsCatalogId}",operationsGroups:"enterprises/{enterpriseId}/operationsGroups/{operationsGroupId}",devisVersion:"enterprises/{enterpriseId}/projects/{projectId}/devis/{devisId}/versions/{versionId}"},indexes:{users:"users",enterprises:"enterprises",billing:"billing",clients:"clients",pros:"pros",agents:"agents",sellers:"sellers",projects:"projects",medias:"projects-medias",events:"projects-events",notes:"projects-notes",documents:"projects-documents",devis:"projects-devis",admins:"admins",plans:"projects-plans",taskGroups:"projects-taskGroups",tasks:"projects-tasks",externalPlans:"projects-externalPlans",payments:"projects-payments",downPayments:"projects-downPayments",providers:"providers",statuses:"statuses",materials:"materials",operations:"operations",operationsMaterials:"operations-materials",orders:"projects-orders",bills:"projects-bills",invoices:"invoices",materialsProvider:"materials-provider",devisTemplates:"devis-templates",estimations:"estimations",receptionVouchers:"projects-reception-vouchers",categories:"categories",operationsCatalogs:"operations-catalogs",nomenclatures:"nomenclatures",operationsGroups:"operations-groups",systemMaterials:"system-materials",systemOperations:"system-operations",systemOperationsMaterials:"system-operations-materials",systemMaterialsProvider:"system-materials-provider",systemStatus:"system-status",systemNomenclatures:"system-nomenclatures",systemCategories:"system-categories"}},search:{invoices:{attributesForFaceting:["searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},enterprises:{searchableAttributes:["commercialName","siren","siret"],attributesForFaceting:["searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},users:{searchableAttributes:["email","displayName","address","phone.mobile","jobTitle"],attributesForFaceting:["active","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},agents:{searchableAttributes:["email","displayName","address","phone.mobile","jobTitle"],attributesForFaceting:["active","isLeader","leader","searchable(userId)","has_leader","searchable(email)","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},pros:{searchableAttributes:["email","displayName","address","phone.mobile","jobTitle"],attributesForFaceting:["active","searchable(userId)","searchable(email)","searchable(specialities)","searchable(skills)","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},admins:{searchableAttributes:["email","displayName","address","phone.mobile","jobTitle"],attributesForFaceting:["active","searchable(email)","searchable(userId)","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},sellers:{searchableAttributes:["email","displayName","address","phone.mobile","jobTitle"],attributesForFaceting:["active","isLeader","leader","has_leader","searchable(userId)","searchable(email)","searchable(provider)","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},clients:{searchableAttributes:["email","displayName","address","phone.mobile"],attributesForFaceting:["active","userId","searchable(email)","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},providers:{searchableAttributes:["name","contact.name","contact.email","address","siret"],attributesForFaceting:["tva","commission.enterprise","commission.pro","commission.provider","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},statuses:{searchableAttributes:["name"],attributesForFaceting:["searchable(scope)","searchable(forDashboard)","searchable(default)","searchable(locked)"],ranking:["asc(order)","asc(createdAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},materials:{searchableAttributes:["name","unitPrice","provider"],attributesForFaceting:["unitPrice","searchable(scope)","searchable(provider)","searchable(category)","margin.id"],ranking:["asc(name)"],maxValuesPerFacet:1e3,maxFacetHits:100},operations:{searchableAttributes:["name","unitPrice","objectID"],attributesForFaceting:["searchable(lot)","unitPrice","searchable(scope)","catalogId"],maxValuesPerFacet:1e3,maxFacetHits:100},operationsMaterials:{searchableAttributes:["name","unitPrice","unit","externalId"],attributesForFaceting:["searchable(scope)","searchable(provider)","searchable(optId)"],ranking:["asc(order)"],maxValuesPerFacet:1e3,maxFacetHits:100},projects:{searchableAttributes:["name","address","description","price.total","client.displayName","client.email","client.address","client.phone.mobile","pro.displayName","pro.email","pro.phone.mobile","agents.displayName","agents.email","agents.phone.mobile","sellers.displayName","sellers.email","sellers.phone.mobile","provider.name","status"],attributesForFaceting:["parent.id","price.total","searchable(type)","searchable(status)","client.displayName","searchable(client.email)","agents.userId","searchable(agents.displayName)","searchable(agents.email)","searchable(pro.userId)","searchable(pro.displayName)","searchable(pro.email)","searchable(sellers.userId)","searchable(sellers.displayName)","searchable(sellers.email)","searchable(provider.id)","searchable(provider.name)","searchable(category)","searchable(agentManager)","searchable(sellerManager)","searchable(scope)"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},notes:{searchableAttributes:["title"],attributesForFaceting:["type","projectId","searchable(scope)"],ranking:["desc(createdAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},medias:{searchableAttributes:["name"],attributesForFaceting:["owner","searchable(tags)","projectId","searchable(scope)","createdDate"],ranking:["desc(createdAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},plans:{searchableAttributes:["name","description"],attributesForFaceting:["projectId","searchable(scope)","searchable(visibleByPro)"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},devis:{searchableAttributes:["name","status"],attributesForFaceting:["searchable(status)","operationsCatalog","projectId","searchable(scope)"],ranking:["desc(dateApproved)","desc(status)","desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},documents:{searchableAttributes:["title"],attributesForFaceting:["visibleBy","projectId","searchable(scope)"],ranking:["desc(createdAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},events:{searchableAttributes:["title","type"],attributesForFaceting:["type","start","end","owner","projectId","searchable(scope)"],ranking:["desc(start)"],maxValuesPerFacet:1e3,maxFacetHits:100},externalPlans:{searchableAttributes:["title","type"],attributesForFaceting:["type","projectId","searchable(scope)"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},payments:{searchableAttributes:["percent","devisId","projectId"],attributesForFaceting:["searchable(devisId)","searchable(projectId)","searchable(scope)"],ranking:["asc(date)"],maxValuesPerFacet:1e3,maxFacetHits:100},downPayments:{searchableAttributes:["percent","devisId","projectId","billId","locked"],attributesForFaceting:["searchable(billId)","searchable(locked)","searchable(devisId)","searchable(projectId)","searchable(scope)"],ranking:["asc(date)"],maxValuesPerFacet:1e3,maxFacetHits:100},tasks:{searchableAttributes:["title","description"],attributesForFaceting:["group","projectId","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},taskGroups:{searchableAttributes:["name"],attributesForFaceting:["projectId","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},orders:{searchableAttributes:["name","description","piece","surface"],attributesForFaceting:["searchable(piece)","searchable(surface)","projectId","devisId","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},bills:{searchableAttributes:["entity","type","status","subType","reference"],attributesForFaceting:["entity","projectId","searchable(type)","searchable(subType)","searchable(status)","searchable(scope)"],ranking:["desc(referenceNumber)"],maxValuesPerFacet:1e3,maxFacetHits:100},materialsProvider:{searchableAttributes:["name","status","identifier"],attributesForFaceting:["searchable(scope)","searchable(status)","searchable(identifier)","searchable(addMaterials)","searchable(editable)"],ranking:["desc(status)","desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},systemMaterials:{searchableAttributes:["name","unitPrice"],attributesForFaceting:["unitPrice","searchable(provider)","searchable(category)"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},systemOperations:{searchableAttributes:["name","unitPrice"],attributesForFaceting:["searchable(lot)"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},systemOperationsMaterials:{searchableAttributes:["name","unitPrice","unit","externalId"],attributesForFaceting:["searchable(provider)","searchable(optId)"],ranking:["asc(order)"],maxValuesPerFacet:1e3,maxFacetHits:100},systemMaterialsProvider:{searchableAttributes:["name","status"],attributesForFaceting:["searchable(status)","searchable(identifier)","searchable(addMaterials)","searchable(editable)","searchable(type)"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},systemStatus:{searchableAttributes:["name","color"],attributesForFaceting:["searchable(forDashboard)","searchable(default)"],ranking:["asc(order)"],maxValuesPerFacet:1e3,maxFacetHits:100},systemNomenclatures:{searchableAttributes:["identifier","value"],attributesForFaceting:["searchable(identifier)","searchable(status)"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},billing:{attributesForFaceting:["searchable(scope)","customer","paid","searchable(status)"],maxValuesPerFacet:1e3,maxFacetHits:100},devisTemplates:{searchableAttributes:["name"],attributesForFaceting:["searchable(scope)","materialsProvider"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},estimations:{searchableAttributes:["name","address","type","typeProject","client.displayName","client.email","client.address","client.phone.mobile","sellers.displayName","sellers.email","sellers.phone.mobile","provider.name"],attributesForFaceting:["searchable(type)","searchable(typeProject)","searchable(scope)","searchable(owner.userId)"],ranking:["desc(updatedAt)"],maxValuesPerFacet:1e3,maxFacetHits:100},receptionVouchers:{searchableAttributes:["status"],attributesForFaceting:["projectId","searchable(status)","searchable(scope)"],maxValuesPerFacet:1e3,maxFacetHits:100},categories:{searchableAttributes:["name"],attributesForFaceting:["searchable(entity)","searchable(parent)","searchable(scope)","searchable(provider)"],ranking:["asc(name)"],maxValuesPerFacet:1e3,maxFacetHits:100},systemCategories:{searchableAttributes:["name"],attributesForFaceting:["searchable(entity)","searchable(parent)","searchable(provider)"],ranking:["asc(name)"],maxValuesPerFacet:1e3,maxFacetHits:100},operationsCatalogs:{searchableAttributes:["name"],attributesForFaceting:["searchable(scope)","searchable(status)"],ranking:["asc(name)"],maxValuesPerFacet:1e3,maxFacetHits:100},nomenclatures:{searchableAttributes:["value"],attributesForFaceting:["searchable(scope)","searchable(identifier)","searchable(status)"],ranking:["asc(value)"],maxValuesPerFacet:1e3,maxFacetHits:100},operationsGroups:{searchableAttributes:["name"],attributesForFaceting:["searchable(scope)","searchable(status)","searchable(operationsCatalog)"],ranking:["asc(name)"],maxValuesPerFacet:1e3,maxFacetHits:100}}};function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(this,arguments)}(e=exports.Environments||(exports.Environments={})).dev="development",e.production="production",e.staging="staging",e.test="test",e.emulator="emulator";var s,a,i,n,o,c,p,l,d,u,E,m,I,T,A,N,O,g,b,R,P,S,h,v,F,_,y,C,D,f,L,j,x,M,V,G,H,U,w,k,B,W,Y,K,z,J,X,Q,q,Z,$,ee,te,re,se=function(){return{create:function(e,t){return r({},null!=t&&t.createdAt||null!=t&&t.updatedAt?{}:{createdAt:Date.now()},null!=t&&t.updatedAt?{}:{updatedAt:Date.now()},{objectID:e,id:e},t)}}},ae={profiles:se(),projects:se(),notes:se(),materials:se(),medias:se(),plans:se(),users:se(),payments:se(),status:se(),providers:se(),documents:se(),taskGroups:se(),tasks:se(),devis:se(),enterprises:se(),events:se(),orders:se(),bills:se(),billsIssued:se(),billsReceived:se(),externalPlans:se(),materialsProvider:se(),devisTemplate:se(),paymentMethods:se(),estimations:se(),invitations:se(),downPayment:se(),histories:se(),receptionVoucher:se(),nomenclatures:se(),operationsCatalog:se(),operationsGroups:se(),devisVersions:se()},ie="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ne={generate:function(){var e=0,t=[];return function(){var r=(new Date).getTime(),s=r===e;e=r;var a,i=new Array(8);for(a=7;a>=0;a--)i[a]=ie.charAt(r%62),r=Math.floor(r/62);if(0!==r)throw new Error("We should have converted the entire timestamp.");var n=i.join("");if(s){for(a=11;a>=0&&61===t[a];a--)t[a]=0;t[a]++}else for(a=0;a<12;a++)t[a]=Math.floor(62*Math.random());for(a=0;a<12;a++)n+=ie.charAt(t[a]);if(20!==n.length)throw new Error("Length should be 20.");return n}}(),timestamp:function(){return function(e,t){for(var r=0,s=e.substring(0,8),a=0;a<8;a++)r=62*r+ie.indexOf(s[a]);return t?new Date(r):r}}()},oe={classic:{id:"prod_KzmO4rORyWl8cA",tax_rates:["txr_1HPXZVLFzcsAA7x6w0zpHu01"],tariffs:{base:{id:"price_1KJmpiLFzcsAA7x6rLA0GNZX",price:159,usageType:"licensed",type:"base"},additionalAdmin:{id:"price_1KJmpiLFzcsAA7x6VtCIuhqw",price:30,usageType:"metered",type:"extra_user"},additionalAgent:{id:"price_1KJmpiLFzcsAA7x6gFBgAXkr",price:20,usageType:"metered",type:"extra_user"},additionalPro:{id:"price_1KJmpiLFzcsAA7x6JxTnlLC8",price:10,usageType:"metered",type:"extra_user"},additionalSeller:{id:"price_1KJmpiLFzcsAA7x6XS9PBgQo",price:2,usageType:"metered",type:"extra_user"}}}},ce={classic:{id:"prod_KzmYFhrWXrzWdR",tax_rates:["txr_1HIMA8LFzcsAA7x61nsqfrYU"],tariffs:{base:{id:"price_1KJmzNLFzcsAA7x6I6gNlCpY",price:159,usageType:"licensed",type:"base"},additionalAdmin:{id:"price_1KJmzNLFzcsAA7x6Tl6D8Wus",price:30,usageType:"metered",type:"extra_user"},additionalAgent:{id:"price_1KJmzNLFzcsAA7x6DeUQScKY",price:20,usageType:"metered",type:"extra_user"},additionalPro:{id:"price_1KJmzNLFzcsAA7x695wsj6rA",price:10,usageType:"metered",type:"extra_user"},additionalSeller:{id:"price_1KJmzNLFzcsAA7x6gF62MX41",price:2,usageType:"metered",type:"extra_user"}}}};!function(e){e.CLIENT="client",e.SELLER="seller",e.PRO="pro",e.AGENT="agent",e.ADMIN="admin",e.OWNER="owner",e.SUPERADMIN="superadmin"}(s||(s={})),function(e){e.CHANGE_STATUS="CHANGE_STATUS",e.SENT_TO_CLIENT="SENT_TO_CLIENT",e.EMAIL_EVENT="EMAIL_EVENT",e.NEW_VERSION="NEW_VERSION"}(a||(a={})),function(e){e.INTERNAL="internal",e.API="api",e.SYSTEM="system"}(i||(i={})),function(e){e.ONE_PIECE="ONE_PIECE",e.FULL="FULL",e.COMPOUND="COMPOUND",e.CHILD="CHILD"}(n||(n={})),function(e){e.TODO="TODO",e.INPROGRESS="INPROGRESS",e.DONE="DONE"}(o||(o={})),function(e){e.NOTE="NOTE",e.PROBLEM="PROBLEM",e.IMPORTANT="IMPORTANT",e.DELIVERY="DELIVERY"}(c||(c={})),function(e){e[e.SUCCESS=0]="SUCCESS",e[e.INFO=1]="INFO",e[e.WARNING=2]="WARNING",e[e.DANGER=3]="DANGER",e[e.TOAST=4]="TOAST"}(p||(p={})),function(e){e.CREATED="CREATED",e.SENT="SENT",e.APPROVED="APPROVED",e.REFUSED="REFUSED",e.ABANDONED="ABANDONED"}(l||(l={})),function(e){e.DEVIS="DEVIS",e.SAV="SAV",e.TS="TS"}(d||(d={})),function(e){e[e.HOME=0]="HOME",e[e.GENERAL=1]="GENERAL",e[e.PRO=2]="PRO",e[e.CLIENT=3]="CLIENT"}(u||(u={})),function(e){e.DEVIS="DEVIS",e.DOCUMENT="DOCUMENT",e.CLIENT="CLIENT",e.OTHER="OTHER"}(E||(E={})),function(e){e.OTHER="AUTRE",e.VISIT="VISIT",e.DELIVERY="DELIVERY",e.CONSTRUCTION="CONSTRUCTION",e.SAV="SAV",e.TECHNICAL_STATEMENT="TECHNICAL_STATEMENT",e.TS_DESIGN="TS_DESIGN"}(m||(m={})),function(e){e.MAGICPLAN="MAGICPLAN",e.SKETCHUP="SKETCHUP"}(I||(I={})),function(e){e.PROVISIONAL="PROVISIONAL",e.CREATED="CREATED",e.SENT="SENT",e.WAITING="WAITING",e.BLOCKED="BLOCKED",e.PAID="PAID",e.CANCELED="CANCELED"}(T||(T={})),function(e){e.WAITING_AGENT_VALIDATION="WAITING_AGENT_VALIDATION",e.WAITING_ACCOUNT_VALIDATION="WAITING_ACCOUNT_VALIDATION",e.WAITING_FOR_ELEMENT="WAITING_FOR_ELEMENT",e.WAITING_FOR_PAYMENT="WAITING_FOR_PAYMENT",e.TO_PAY="TO_PAY",e.TRANSFER_TO_VALIDATE="TRANSFER_TO_VALIDATE",e.WITHOUT_INVOICE="WITHOUT_INVOICE",e.PAID="PAID",e.REFUSED="REFUSED",e.BLOCKED="BLOCKED"}(A||(A={})),function(e){e.WAITING_AGENT_VALIDATION="WAITING_AGENT_VALIDATION",e.WAITING_ACCOUNT_VALIDATION="WAITING_ACCOUNT_VALIDATION",e.ACCEPTED="ACCEPTED",e.REFUSED="REFUSED"}(N||(N={})),function(e){e.RECEIVED="RECEIVED",e.ISSUED="ISSUED"}(O||(O={})),function(e){e.PRO="PRO",e.MATERIAL_PROVIDER="MATERIAL_PROVIDER",e.SERVICE_PROVIDER="SERVICE_PROVIDER",e.PROVIDER="PROVIDER",e.OTHER="OTHER"}(g||(g={})),function(e){e.FACTURE="FACTURE",e.CREDIT_NOTE="CREDIT_NOTE"}(b||(b={})),function(e){e.CLIENT="CLIENT",e.PRO="PRO",e.PROVIDER="PROVIDER",e.MATERIAL_PROVIDER="MATERIAL_PROVIDER",e.SERVICE_PROVIDER="SERVICE_PROVIDER",e.OTHER="OTHER"}(R||(R={})),function(e){e.CUSTOM="CUSTOM",e.DOWN_PAYMENT="DOWN_PAYMENT",e.BALANCE="BALANCE",e.CREDIT_NOTE="CREDIT_NOTE"}(P||(P={})),function(e){e.ADVANCE="ADVANCE",e.HOURS="HOURS",e.DAYS="DAYS",e.PRODUCT="PRODUCT",e.SERVICE="SERVICE",e.PROVIDER_COMMISSION="PROVIDER_COMMISSION"}(S||(S={})),function(e){e.PERCENT="PERCENT",e.MONEY="MONEY"}(h||(h={})),function(e){e.CREDIT="CREDIT",e.DEBIT="DEBIT"}(v||(v={})),function(e){e.ONE_PIECE="ONE_PIECE",e.FULL="FULL",e.COMPOUND="COMPOUND",e.CHILD="CHILD"}(F||(F={})),function(e){e.UNSPECIFIED="UNSPECIFIED",e.BATHROOM="BATHROOM",e.KITCHEN="KITCHEN",e.LIVINGROOM="LIVINGROOM",e.BEDROOM="BEDROOM",e.TOILET="TOILET",e.OFFICE="OFFICE",e.APARTMENT="APARTMENT",e.HOUSE="HOUSE",e.ELECTRICITY="ELECTRICITY",e.PLUMBIG="PLUMBIG",e.FLOORING="FLOORING",e.WALL_COVERING="WALL_COVERING",e.STAIRS="STAIRS",e.OUTSIDE="OUTSIDE",e.COMMERCE="COMMERCE"}(_||(_={})),function(e){e[e.COMPLETED=0]="COMPLETED",e[e.OVERDUE=1]="OVERDUE",e[e.DUESOON=2]="DUESOON",e[e.INTIME=3]="INTIME"}(y||(y={})),function(e){e.KITCHEN="kitchen",e.BATHROOM="bathroom",e.GENERAL="general_renovation",e.GARDEN="garden",e.ATTICS="attics",e.POOL="swimming_pool"}(C||(C={})),function(e){e.ELECTRICITY="electricity",e.PLUMBIG="plumbing",e.CARPENTRY="carpentry",e.MASONRY="masonry",e.PAINTING="painting",e.GARDEN="garden",e.LOCKSMITH="locksmith",e.FRAME="frame",e.INSULATION="insulation"}(D||(D={})),function(e){e.CONTRACTOR="CONTRACTOR",e.EIRL="EIRL",e.SARL="SARL",e.EURL="EURL",e.SASU="SASU",e.SAS="SAS"}(f||(f={})),function(e){e.PROVIDER="provider",e.INTERNET="internet",e.YELLOW_PAGES="yellow-pages",e.RUMOR="rumor",e.PUBLICITY="publicity"}(L||(L={})),function(e){e.TODO="TODO",e.VALID="VALID",e.ORDERED="ORDERED",e.LATE="LATE",e.RECEIVED="RECEIVED",e.ONSITE="ONSITE"}(j||(j={})),function(e){e.MOBILE="mobile",e.WORK="work",e.LANDLINE="landline",e.OTHER="other"}(x||(x={})),function(e){e.NOTES="notes",e.EVENTS="events",e.DOCUMENTS="documents",e.DEVIS="devis"}(M||(M={})),function(e){e.UPON_RECEIPT="upon-receipt",e.MONTH_END="month-end",e.DAYS_10="10-days",e.DAYS_20="20-days",e.DAYS_30="30-days",e.DAYS_30_END_MONTH="30-days-end-month",e.DAYS_45="45-days",e.DAYS_60="60-days",e.DAYS_60_END_MONTH="60-days-end-month",e.DAYS_90="90-days",e.DAYS_90_END_MONTH="90-days-end-month",e.DAYS_120="120-days"}(V||(V={})),function(e){e.UNSPECIFIED="unspecified",e.CASH="cash",e.CHECK="check",e.BANK_TRANSFER="bank-transfer",e.BANK_CARD="bank-card",e.PAYPAL="paypal",e.SAMPLE="sample",e.BILL_EXCHANGE="bill-exchange",e.STATEMENT_EXCHANGE="statement-exchange",e.BILL_EXCHANGE_WITHOUT_ACCEPTANCE="bill-exchange-without-acceptance",e.PROMISSORY_NOTE="promissory-note"}(G||(G={})),function(e){e.NO_LATE_INTEREST="No-late-interest",e.PER_MONTH_1="1%-per-month",e.PER_MONTH_15="1.5%-per-month",e.PER_MONTH_2="2%-per-month",e.CURRENT_LEGAL_INTEREST_RATE="current-legal-interest-rate",e.SPECIFY="specify"}(H||(H={})),function(e){e.WEBSITE="WEBSITE",e.ARTICHO="ARTICHO"}(U||(U={})),function(e){e.KITCHEN="KITCHEN",e.BATHROOM="BATHROOM",e.ONE_PIECE="ONE_PIECE",e.HOUSE="HOUSE",e.APARTMENT="APARTMENT",e.COMMERCIAL_LOCAL="COMMERCIAL_LOCAL",e.WITHOUT_ESTIMATION="WITHOUT_ESTIMATION"}(w||(w={})),function(e){e.USER_INVITATION="user-invitation",e.DOCUMENTS="documents",e.NOTES="notes",e.EVENTS="events",e.DEVIS="devis",e.CLIENT_ESTIMATION_WEBSITE="client-estimation-website",e.CLIENT_ESTIMATION_ARTICHO="client-estimation-articho",e.ENTERPRISE_ESTIMATION="enterprise-estimation",e.RESET_PASSWORD="reset-password",e.WELCOME_TO_ENTERPRISE="welcome-to-enterprise",e.WELCOME_TO_NEW_ENTERPRISE="welcome-to-new-enterprise",e.NEW_ENTERPRISE="new-enterprise",e.USER_CONTACT="user-contact",e.PLAN="plan",e.BILL="bill",e.MEDIAS="medias"}(k||(k={})),function(e){e.PROVIDER="provider",e.PROFESSIONAL="professional",e.ENTERPRISE="enterprise"}(B||(B={})),function(e){e.PROVIDER="provider",e.ENTERPRISE="enterprise"}(W||(W={})),function(e){e.INCOMPLETE="incomplete",e.INCOMPLETE_EXPIRED="incomplete_expired",e.TRIALING="trialing",e.ACTIVE="active",e.PAST_DUE="past_due",e.CANCELED="canceled",e.UNPAID="unpaid"}(Y||(Y={})),function(e){e.STANDARD="standard",e.PLUS="plus",e.PREMIUM="premium"}(K||(K={})),function(e){e.WAITING="WAITING",e.APPROVED="APPROVED",e.REFUSED="REFUSED"}(z||(z={})),function(e){e.EDIT="EDIT",e.SEND_EMAIL="SEND_EMAIL",e.EDIT_STATUS="EDIT_STATUS",e.ASSIGN_AGENT="ASSIGN_AGENT",e.UNASSIGN_AGENT="UNASSIGN_AGENT",e.ASSIGN_PRO="ASSIGN_PRO",e.UNASSIGN_PRO="UNASSIGN_PRO",e.ASSIGN_SELLER="ASSIGN_SELLER",e.UNASSIGN_SELLER="UNASSIGN_SELLER",e.APPROVED_R_V="APPROVED_R_V",e.DEVIS_APPROVED="DEVIS_APPROVED",e.DEVIS_SENT="DEVIS_SENT",e.DEVIS_SIGNED="DEVIS_SIGNED"}(J||(J={})),function(e){e.PROJECT="PROJECT",e.NOTE="NOTE",e.RECEPTION_VOUCHER="RECEPTION_VOUCHER"}(X||(X={})),function(e){e.MATERIAL="MATERIAL",e.OPERATION="OPERATION"}(Q||(Q={})),function(e){e.OPERATIONS_SECTOR="OPERATIONS_SECTOR",e.OPERATIONS_PIECE="OPERATIONS_PIECE",e.OPERATIONS_LOT="OPERATIONS_LOT",e.EVENTS_TYPES="EVENTS_TYPES",e.PROJECTS_CATEGORY="PROJECTS_CATEGORY",e.TVA="TVA",e.SUPPLIERS="SUPPLIERS",e.MARGINS="MARGINS",e.TERMS_OF_SALE="TERMS_OF_SALE",e.NOTES_MODELS="NOTES_MODELS",e.DEVIS_TYPES="DEVIS_TYPES",e.COMMENTS_MODELS="COMMENTS_MODELS",e.EMAILS_COMMENTS_MODELS="EMAILS_COMMENTS_MODELS",e.PAYMENT_PLANNING="PAYMENT_PLANNING"}(q||(q={})),function(e){e.NOT_DEFINED="NOT_DEFINED",e.PERIMETER="PERIMETER",e.GROUND_CEILING_SURFACE="GROUND_CEILING_SURFACE",e.WALL_SURFACE="WALL_SURFACE"}(Z||(Z={})),function(e){e.BIGGER_THAN="BIGGER_THAN",e.LOWER_THAN="LOWER_THAN",e.EQUAL_TO="EQUAL_TO",e.BETWEEN="BETWEEN"}($||($={})),function(e){e.CLIENT="CLIENT",e.PRO="PRO",e.AGENT="AGENT",e.SELLER="SELLER",e.ENTERPRISE="ENTERPRISE",e.PROVIDER="PROVIDER"}(ee||(ee={})),function(e){e.accepted="accepted",e.prospected="prospected",e.rejected="rejected"}(te||(te={})),function(e){e.PIECE="PIECE",e.LOT="LOT"}(re||(re={}));var pe={__proto__:null,get ROLE(){return s},get DevisHistoryType(){return a},get MaterialsProviderType(){return i},get ProjectType(){return n},get OperationStatusEnum(){return o},get NotesType(){return c},get NotificationType(){return p},get DevisStatusEnum(){return l},get DevisTypeEnum(){return d},get DevisViewMode(){return u},get DocumentsTypeEnum(){return E},get EventsTypeEnum(){return m},get ExternalPlanTypeEnum(){return I},get BillIssuedStatus(){return T},get BillReceivedStatus(){return A},get ReceptionVoucherStatus(){return N},get BillType(){return O},get BillReceivedEntity(){return g},get BillReceivedType(){return b},get BillIssuedEntity(){return R},get BillIssuedType(){return P},get BillElementType(){return S},get BillDiscountType(){return h},get PaymentType(){return v},get ProjectTypeEnum(){return F},get ProjectCategoriesEnum(){return _},get TaskStatus(){return y},get ProSpecialitiesEnum(){return C},get ProSkillsEnum(){return D},get CommercialStatusEnum(){return f},get Origin(){return L},get OrderMaterialStatus(){return j},get PhonesEnum(){return x},get SendgridTemplates(){return M},get TermsOfPayment(){return V},get PaymentChoice(){return G},get LateInterest(){return H},get EstimationOriginEnum(){return U},get EstimationTypeEnum(){return w},get EmailTemplate(){return k},get DevisPdfType(){return B},get DevisContractingEntity(){return W},get EnterpriseStatusEnum(){return Y},get EnterpriseProductEnum(){return K},get EstimationStatusEnum(){return z},get HistoryActionEnum(){return J},get HistoryEntityType(){return X},get CategoryEntityEnum(){return Q},get NomenclaturesIdentifier(){return q},get OperationQuantityEnum(){return Z},get OperationRulesEnum(){return $},get MaterialResponsible(){return ee},get ProjectPriceTypeEnum(){return te},get DevisFormatEnum(){return re}};function le(e){return e}exports.acls=["project.view","project.edit","project.create","project.delete","project.progress.edit","project.assign.pro","project.assign.agent","project.assign.client","project.assign.seller","project.unassign.pro","project.unassign.agent","project.unassign.client","project.unassign.seller","project.validate","project.status.edit","project.pro.prices.view","project.enterprise.prices.view","project.sync.agenda","project.estimation","project.devis.create","project.devis.edit","project.devis.delete","project.note.view","project.note.create","project.note.edit","project.note.delete","project.document.view","project.document.create","project.document.edit","project.document.delete","project.media.view","project.media.create","project.media.edit","project.media.delete","project.event.view","project.event.create","project.event.edit","devis.create","devis.view","devis.edit","devis.delete","devis.status.edit","devis.email.send","devis.validate","devis.from.template.create","configuration.view","configuration.status.view","configuration.status.create","configuration.status.edit","configuration.status.delete","configuration.provider.view","configuration.provider.edit","configuration.provider.delete","configuration.provider.create","configuration.material.provider.view","configuration.material.provider.edit","configuration.material.provider.delete","configuration.material.provider.create","configuration.material.view","configuration.material.edit","configuration.material.delete","configuration.material.create","configuration.operation.view","configuration.operation.edit","configuration.operation.delete","configuration.operation.create","configuration.devis.template.view","configuration.devis.template.edit","configuration.devis.template.delete","configuration.devis.template.create","configuration.team.view","configuration.pro.edit","configuration.pro.delete","configuration.pro.create","configuration.pro.view","configuration.agent.edit","configuration.agent.delete","configuration.agent.create","configuration.agent.view","configuration.admin.edit","configuration.admin.delete","configuration.admin.create","configuration.admin.view","configuration.enterprise.edit","configuration.enterprise.delete","configuration.enterprise.create","configuration.enterprise.view","configuration.enterprise.payment.method.add","configuration.enterprise.payment.method.delete","configuration.enterprise.payment.history.view"],exports.articho=pe,exports.createEvent=function(e,t,r){return{data:t,type:e,meta:r}},exports.flatten=function(e,t){var r=t||{},s=r.delimiter||".",a=r.maxDepth,i=r.transformKey||le,n={};return function e(t,o,c){var p=c||1;Object.keys(t).forEach((function(c){var l,d=t[c],u=r.safe&&Array.isArray(d),E=Object.prototype.toString.call(d),m=(l=d)&&l.constructor&&"function"==typeof l.constructor.isBuffer&&l.constructor.isBuffer(l),I="[object Object]"===E||"[object Array]"===E,T=o?o+s+i(c):i(c);!u&&!m&&I&&Object.keys(d).length&&(!a||p<a)&&e(d,T,p+1),n[T]=d}))}(e,null,0),n},exports.getEnv=function(e){switch(e){case exports.Environments.dev:return r({},t,{isTest:!0,name:"development"});case exports.Environments.staging:return r({},t,{isTest:!1,name:"staging"});case exports.Environments.production:return t;case exports.Environments.test:return r({},t,{schema:r({},t.schema,{indexes:{users:"users",enterprises:"tests-enterprises",billing:"tests-billing",clients:"tests-clients",pros:"tests-pros",agents:"tests-agents",sellers:"tests-sellers",projects:"tests-projects",medias:"tests-projects-medias",events:"tests-projects-events",notes:"tests-projects-notes",documents:"tests-projects-documents",devis:"tests-projects-devis",admins:"tests-admins",plans:"tests-projects-plans",taskGroups:"tests-projects-task-groups",tasks:"tests-projects-tasks",externalPlans:"tests-projects-external-plans",payments:"tests-projects-payments",providers:"tests-providers",statuses:"tests-statuses",materials:"tests-materials",operations:"tests-operations",operationsMaterials:"test-operations-materials",orders:"tests-projects-orders",bills:"tests-projects-bills",invoices:"test-invoices",materialsProvider:"materials-provider",devisTemplates:"devis-templates",categories:"categories",estimations:"estimations",downPayments:"emulator-projects-down-payments",receptionVouchers:"emulator-projects-reception-vouchers",operationsCatalogs:"operations-catalogs",nomenclatures:"nomenclatures",operationsGroups:"operations-groups",systemMaterials:"system-materials",systemOperations:"system-operations",systemOperationsMaterials:"system-operations-materials",systemMaterialsProvider:"system-materials-provider",systemStatus:"test-system-status",systemNomenclatures:"test-system-nomenclatures",systemCategories:"system-categories"}}),isTest:!0,name:"test"});case exports.Environments.emulator:return r({},t,{schema:r({},t.schema,{indexes:{users:"users",enterprises:"emulator-enterprises",billing:"emulator-billing",clients:"emulator-clients",pros:"emulator-pros",agents:"emulator-agents",sellers:"emulator-sellers",projects:"emulator-projects",medias:"emulator-projects-medias",events:"emulator-projects-events",notes:"emulator-projects-notes",documents:"emulator-projects-documents",devis:"emulator-projects-devis",admins:"emulator-admins",plans:"emulator-projects-plans",taskGroups:"emulator-projects-task-groups",tasks:"emulator-projects-tasks",externalPlans:"emulator-projects-external-plans",payments:"emulator-projects-payments",providers:"emulator-providers",statuses:"emulator-statuses",materials:"emulator-materials",operations:"emulator-operations",operationsMaterials:"emulator-operations-materials",orders:"emulator-projects-orders",bills:"emulator-projects-bills",invoices:"emulator-invoices",materialsProvider:"materials-provider",devisTemplates:"devis-templates",categories:"categories",estimations:"estimations",downPayments:"emulator-projects-down-payments",receptionVouchers:"emulator-projects-reception-vouchers",operationsCatalogs:"operations-catalogs",nomenclatures:"nomenclatures",operationsGroups:"operations-groups",systemMaterials:"system-materials",systemOperations:"system-operations",systemOperationsMaterials:"system-operations-materials",systemMaterialsProvider:"system-materials-provider",systemStatus:"emulator-system-status",systemNomenclatures:"emulator-system-nomenclatures",systemCategories:"system-categories"}}),isTest:!0,name:"emulator"});default:return t}},exports.getPlatformConfiguration=function(e){return{classic:{id:(t="production"===e?ce:oe).classic.id,internal:"classic",product:{id:t.classic.id,name:"Abonnement Articho",description:"",type:"service",price:159,main:!0,active:!0,isPrivate:!1,rating:3,order:3,includes:{maxAdminUsers:1,maxAgentUsers:0,maxProUsers:0,maxSellerUsers:0,authorizationManagement:!0,dashboard:!0,accounting:!0,projectStorage:!0,customCatalog:!0,customConfig:!0,exportReports:!0,externalApiIntegration:!0,support:!0},plans:Object.values(t.classic.tariffs).map((function(e){return e.id})),tax_rates:t.classic.tax_rates},tariffs:t.classic.tariffs}};var t},exports.helpers=ae,exports.path=function(e,t){void 0===t&&(t={});var r,s=new RegExp(/\{(\w+)\}*/gm),a=e.toString();do{if(r=s.exec(a)){var i=r[0],n=r[1];if(!t.hasOwnProperty(n))throw new Error('Param "'+n+'" is missing from path params');a=a.split(i).join(String(t[n]))}}while(null!==r);return a},exports.reversePathName=function(e,t){var r=e.split("/"),s=Object.keys(t.schema.docs).filter((function(e){return t.schema.docs[e].split("/").length===r.length})),a=Object.values(t.schema.docs).filter((function(e){return e.split("/").length===r.length})).findIndex((function(t){return t.split("/").map((function(e,t){return/\{(\w+)\}/.test(e)?r[t]:e})).join("/")===e}));return a>-1?s[a]:null},exports.security=function(e){var t=[exports.ROLE.CLIENT,exports.ROLE.PRO,exports.ROLE.AGENT,exports.ROLE.ADMIN,exports.ROLE.SUPERADMIN],r=function(t){return!(!t||!t[e.security.claims.role])},s=function(e,r){var s=a(r);return t.indexOf(e)<t.indexOf(s)},a=function(t){return r(t)?t[e.security.claims.role]:null};return{is:function(t,s){return!!r(t)&&t[e.security.claims.role]===s},canActAs:s,getRole:a,getRoles:function(e){return t.filter((function(t){return s(t,e)}))}}},exports.uid=ne;
2
2
  //# sourceMappingURL=config.cjs.production.min.js.map