@nomalism-com/api 0.18.5 → 0.18.7

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.
Files changed (129) hide show
  1. package/dist/index.min.js +1 -1
  2. package/dist/modules/document/materialEntrance.d.ts +1 -1
  3. package/package.json +11 -8
  4. package/dist/index.js +0 -460
  5. package/dist/modules/document/inventario.js +0 -60
  6. package/dist/modules/document/materialEntrance.js +0 -107
  7. package/dist/modules/document/order.js +0 -169
  8. package/dist/modules/document/propostaSheets.js +0 -148
  9. package/dist/modules/document/purchase.js +0 -100
  10. package/dist/modules/document/quebra.js +0 -100
  11. package/dist/modules/document/returnToProvider.js +0 -88
  12. package/dist/modules/document/transformado.js +0 -61
  13. package/dist/modules/document/upfrontReturn.js +0 -61
  14. package/dist/modules/documentManagement/multimedia.js +0 -82
  15. package/dist/modules/integration/emailLog.js +0 -75
  16. package/dist/modules/integration/emailTemplate.js +0 -112
  17. package/dist/modules/integration/emailTemplateAttachment.js +0 -73
  18. package/dist/modules/integration/errorHandler.js +0 -60
  19. package/dist/modules/integration/field.js +0 -102
  20. package/dist/modules/integration/fieldGroup.js +0 -131
  21. package/dist/modules/integration/file.js +0 -89
  22. package/dist/modules/integration/googleFilePermission.js +0 -100
  23. package/dist/modules/integration/googleSheets.js +0 -101
  24. package/dist/modules/integration/history.js +0 -66
  25. package/dist/modules/integration/observation.js +0 -102
  26. package/dist/modules/integration/observationType.js +0 -115
  27. package/dist/modules/integration/projectInfo.js +0 -60
  28. package/dist/modules/integration/settings.js +0 -115
  29. package/dist/modules/print/npc.js +0 -74
  30. package/dist/modules/print/printer.js +0 -87
  31. package/dist/modules/print/schedulePrintJob.js +0 -98
  32. package/dist/modules/stock/attribute.js +0 -160
  33. package/dist/modules/stock/attributeValue.js +0 -156
  34. package/dist/modules/stock/color.js +0 -155
  35. package/dist/modules/stock/composition.js +0 -141
  36. package/dist/modules/stock/compositionMaterial.js +0 -156
  37. package/dist/modules/stock/location.js +0 -156
  38. package/dist/modules/stock/maintenance.js +0 -156
  39. package/dist/modules/stock/maintenanceAssoc.js +0 -141
  40. package/dist/modules/stock/maintenancePreset.js +0 -126
  41. package/dist/modules/stock/maintenancePresetAssoc.js +0 -99
  42. package/dist/modules/stock/maintenanceType.js +0 -156
  43. package/dist/modules/stock/primaryColor.js +0 -156
  44. package/dist/modules/stock/prison.js +0 -128
  45. package/dist/modules/stock/product.js +0 -291
  46. package/dist/modules/stock/productAttribute.js +0 -141
  47. package/dist/modules/stock/productCategory.js +0 -156
  48. package/dist/modules/stock/productColor.js +0 -141
  49. package/dist/modules/stock/productImage.js +0 -145
  50. package/dist/modules/stock/productName.js +0 -156
  51. package/dist/modules/stock/productNamePreset.js +0 -156
  52. package/dist/modules/stock/productPart.js +0 -155
  53. package/dist/modules/stock/productSubCategory.js +0 -155
  54. package/dist/modules/stock/productUse.js +0 -156
  55. package/dist/modules/stock/productUseAssoc.js +0 -140
  56. package/dist/modules/stock/promotion.js +0 -176
  57. package/dist/modules/stock/promotionAssoc.js +0 -141
  58. package/dist/modules/stock/queryList.js +0 -158
  59. package/dist/modules/stock/queryParameter.js +0 -129
  60. package/dist/modules/stock/returnReason.js +0 -100
  61. package/dist/modules/stock/savedEmPicking.js +0 -74
  62. package/dist/modules/stock/savedProviderProposal.js +0 -100
  63. package/dist/modules/stock/schedule.js +0 -64
  64. package/dist/modules/stock/similarProduct.js +0 -141
  65. package/dist/modules/stock/stockMovement.js +0 -103
  66. package/dist/modules/stock/typeOfInventory.js +0 -156
  67. package/dist/modules/stock/typeOfLocation.js +0 -156
  68. package/dist/modules/stock/unitOfMeasure.js +0 -156
  69. package/dist/modules/stock/vatTax.js +0 -156
  70. package/dist/modules/stock/vatTaxZone.js +0 -156
  71. package/dist/modules/supply/cabide.js +0 -177
  72. package/dist/modules/supply/cabideProduct.js +0 -166
  73. package/dist/modules/supply/clientCurrentAccount.js +0 -132
  74. package/dist/modules/supply/documentHeader.js +0 -476
  75. package/dist/modules/supply/documentLine.js +0 -173
  76. package/dist/modules/supply/documentLineAssoc.js +0 -99
  77. package/dist/modules/supply/documentLineFolder.js +0 -100
  78. package/dist/modules/supply/documentLineNote.js +0 -87
  79. package/dist/modules/supply/documentSet.js +0 -126
  80. package/dist/modules/supply/documentType.js +0 -130
  81. package/dist/modules/supply/externalDocumentHeader.js +0 -151
  82. package/dist/modules/supply/externalDocumentType.js +0 -74
  83. package/dist/modules/supply/moloniRequest.js +0 -60
  84. package/dist/modules/supply/orderManagement.js +0 -91
  85. package/dist/modules/supply/payment.js +0 -262
  86. package/dist/modules/supply/preSale.js +0 -152
  87. package/dist/modules/supply/preSaleProduct.js +0 -74
  88. package/dist/modules/supply/providerCurrentAccount.js +0 -63
  89. package/dist/modules/supply/startDocumentHeaderLastUpdate.js +0 -61
  90. package/dist/modules/supply/vatValidation.js +0 -65
  91. package/dist/modules/supply/workflow.js +0 -113
  92. package/dist/modules/tickets/channel.js +0 -126
  93. package/dist/modules/tickets/clt.js +0 -126
  94. package/dist/modules/tickets/language.js +0 -126
  95. package/dist/modules/tickets/tickets.js +0 -100
  96. package/dist/modules/user/bankData.js +0 -141
  97. package/dist/modules/user/clientType.js +0 -141
  98. package/dist/modules/user/clients.js +0 -169
  99. package/dist/modules/user/commissioner.js +0 -156
  100. package/dist/modules/user/country.js +0 -156
  101. package/dist/modules/user/deliveryMethods.js +0 -128
  102. package/dist/modules/user/favorites.js +0 -100
  103. package/dist/modules/user/groupPermission.js +0 -102
  104. package/dist/modules/user/language.js +0 -141
  105. package/dist/modules/user/logout.js +0 -60
  106. package/dist/modules/user/maturityDates.js +0 -128
  107. package/dist/modules/user/password.js +0 -72
  108. package/dist/modules/user/paymentCondition.js +0 -141
  109. package/dist/modules/user/paymentMethods.js +0 -128
  110. package/dist/modules/user/permission.js +0 -102
  111. package/dist/modules/user/persona.js +0 -130
  112. package/dist/modules/user/provider.js +0 -184
  113. package/dist/modules/user/providerType.js +0 -141
  114. package/dist/modules/user/purchaseCondition.js +0 -141
  115. package/dist/modules/user/reasonForExemption.js +0 -141
  116. package/dist/modules/user/refreshToken.js +0 -61
  117. package/dist/modules/user/segmentsArea.js +0 -141
  118. package/dist/modules/user/sessions.js +0 -61
  119. package/dist/modules/user/shippings.js +0 -141
  120. package/dist/modules/user/socialMedia.js +0 -141
  121. package/dist/modules/user/storeOperator.js +0 -169
  122. package/dist/modules/user/swift.js +0 -141
  123. package/dist/modules/user/tenant.js +0 -100
  124. package/dist/modules/user/user.js +0 -167
  125. package/dist/modules/user/userPermission.js +0 -89
  126. package/dist/modules/user/userPositions.js +0 -141
  127. package/dist/modules/user/vehicles.js +0 -100
  128. package/dist/modules/user/zipCode.js +0 -73
  129. package/dist/modules/view/eventHistory.js +0 -61
package/dist/index.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(r,t,o,s){s===void 0&&(s=o);var u=Object.getOwnPropertyDescriptor(t,o);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(r,s,u)}:function(r,t,o,s){s===void 0&&(s=o),r[s]=t[o]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),__importStar=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&__createBinding(t,r,o);return __setModuleDefault(t,r),t},__importDefault=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.Providers=exports.PromotionAssoc=exports.Promotion=exports.ProductName=exports.ProductUseAssoc=exports.ProductUse=exports.ProductSubCategory=exports.ProductPart=exports.ProductImage=exports.ProductColor=exports.ProductCategory=exports.ProductAttribute=exports.Product=exports.PrimaryColor=exports.Permissions=exports.Password=exports.PaymentConditions=exports.ObservationType=exports.Observation=exports.Multimedia=exports.MaintenancePresetAssoc=exports.MaintenancePreset=exports.MaintenanceType=exports.MaintenanceAssoc=exports.Maintenance=exports.Logout=exports.Location=exports.Language=exports.History=exports.GroupPermissions=exports.GoogleSheets=exports.File=exports.FieldGroup=exports.Field=exports.Favorites=exports.DocumentType=exports.DocumentLineFolder=exports.DocumentLineAssoc=exports.DocumentLine=exports.DocumentHeader=exports.Country=exports.CompositionMaterial=exports.Composition=exports.Commissioner=exports.Color=exports.ClientType=exports.Client=exports.BankData=exports.AttributeValue=exports.Attribute=void 0,exports.GoogleFilePermission=exports.Schedule=exports.PropostaSheets=exports.ReturnReason=exports.QueryParameter=exports.QueryList=exports.SchedulePrintJob=exports.Printer=exports.Npc=exports.OrderManagement=exports.CabideProduct=exports.Cabide=exports.PreSaleProduct=exports.PreSale=exports.Tenant=exports.ZipCode=exports.StockMovement=exports.ProductNamePreset=exports.VatValidation=exports.MoloniRequest=exports.ProviderCurrentAccount=exports.ClientCurrentAccount=exports.ExternalDocumentHeader=exports.Payment=exports.DocumentSet=exports.ExternalDocumentType=exports.Vehicles=exports.PaymentMethods=exports.MaturityDates=exports.DeliveryMethods=exports.Workflow=exports.VatTaxZone=exports.VatTax=exports.Users=exports.UserPositions=exports.UserPermissions=exports.UnitOfMeasure=exports.TypeOfLocation=exports.TypeOfInventory=exports.Swift=exports.StoreOperator=exports.SocialMedia=exports.SimilarProduct=exports.Shippings=exports.Sessions=exports.SegmentsArea=exports.RefreshToken=exports.ReasonForExemption=exports.PurchaseConditions=exports.ProviderType=void 0,exports.API=exports.shared=exports.SavedProviderProposal=exports.DocumentLineNote=exports.EmailLog=exports.ReturnToProvider=exports.Inventario=exports.Quebra=exports.Prison=exports.EmailTemplateAttachment=exports.EmailTemplate=exports.SavedEmPicking=exports.UpfrontReturn=exports.Transformado=exports.MaterialEntrance=exports.Purchase=exports.Order=exports.ProjectInfo=exports.Persona=exports.ErrorHandler=exports.StartDocumentHeaderLastUpdate=exports.Clt=exports.TicketsLanguage=exports.Channel=exports.Tickets=exports.Settings=void 0;var types_1=require("@nomalism-com/types");Object.defineProperty(exports,"shared",{enumerable:!0,get:function(){return types_1.shared}});var axios_1=__importDefault(require("axios")),attribute_1=__importDefault(require("./modules/stock/attribute")),attributeValue_1=__importDefault(require("./modules/stock/attributeValue")),bankData_1=__importDefault(require("./modules/user/bankData")),clients_1=__importDefault(require("./modules/user/clients")),clientType_1=__importDefault(require("./modules/user/clientType")),color_1=__importDefault(require("./modules/stock/color")),commissioner_1=__importDefault(require("./modules/user/commissioner")),composition_1=__importDefault(require("./modules/stock/composition")),compositionMaterial_1=__importDefault(require("./modules/stock/compositionMaterial")),country_1=__importDefault(require("./modules/user/country")),documentHeader_1=__importDefault(require("./modules/supply/documentHeader")),documentLine_1=__importDefault(require("./modules/supply/documentLine")),documentLineAssoc_1=__importDefault(require("./modules/supply/documentLineAssoc")),documentLineFolder_1=__importDefault(require("./modules/supply/documentLineFolder")),documentType_1=__importDefault(require("./modules/supply/documentType")),favorites_1=__importDefault(require("./modules/user/favorites")),field_1=__importDefault(require("./modules/integration/field")),fieldGroup_1=__importDefault(require("./modules/integration/fieldGroup")),file_1=__importDefault(require("./modules/integration/file")),googleSheets_1=__importDefault(require("./modules/integration/googleSheets")),groupPermission_1=__importDefault(require("./modules/user/groupPermission")),history_1=__importDefault(require("./modules/integration/history")),language_1=__importDefault(require("./modules/user/language")),location_1=__importDefault(require("./modules/stock/location")),logout_1=__importDefault(require("./modules/user/logout")),maintenance_1=__importDefault(require("./modules/stock/maintenance")),maintenanceAssoc_1=__importDefault(require("./modules/stock/maintenanceAssoc")),maintenanceType_1=__importDefault(require("./modules/stock/maintenanceType")),maintenancePreset_1=__importDefault(require("./modules/stock/maintenancePreset")),maintenancePresetAssoc_1=__importDefault(require("./modules/stock/maintenancePresetAssoc")),multimedia_1=__importDefault(require("./modules/documentManagement/multimedia")),observation_1=__importDefault(require("./modules/integration/observation")),observationType_1=__importDefault(require("./modules/integration/observationType")),paymentCondition_1=__importDefault(require("./modules/user/paymentCondition")),password_1=__importDefault(require("./modules/user/password")),permission_1=__importDefault(require("./modules/user/permission")),primaryColor_1=__importDefault(require("./modules/stock/primaryColor")),product_1=__importDefault(require("./modules/stock/product")),productAttribute_1=__importDefault(require("./modules/stock/productAttribute")),productCategory_1=__importDefault(require("./modules/stock/productCategory")),productColor_1=__importDefault(require("./modules/stock/productColor")),productImage_1=__importDefault(require("./modules/stock/productImage")),productPart_1=__importDefault(require("./modules/stock/productPart")),productSubCategory_1=__importDefault(require("./modules/stock/productSubCategory")),productUse_1=__importDefault(require("./modules/stock/productUse")),productUseAssoc_1=__importDefault(require("./modules/stock/productUseAssoc")),productName_1=__importDefault(require("./modules/stock/productName")),promotion_1=__importDefault(require("./modules/stock/promotion")),promotionAssoc_1=__importDefault(require("./modules/stock/promotionAssoc")),provider_1=__importDefault(require("./modules/user/provider")),providerType_1=__importDefault(require("./modules/user/providerType")),purchaseCondition_1=__importDefault(require("./modules/user/purchaseCondition")),reasonForExemption_1=__importDefault(require("./modules/user/reasonForExemption")),refreshToken_1=__importDefault(require("./modules/user/refreshToken")),segmentsArea_1=__importDefault(require("./modules/user/segmentsArea")),sessions_1=__importDefault(require("./modules/user/sessions")),shippings_1=__importDefault(require("./modules/user/shippings")),similarProduct_1=__importDefault(require("./modules/stock/similarProduct")),socialMedia_1=__importDefault(require("./modules/user/socialMedia")),storeOperator_1=__importDefault(require("./modules/user/storeOperator")),swift_1=__importDefault(require("./modules/user/swift")),typeOfInventory_1=__importDefault(require("./modules/stock/typeOfInventory")),typeOfLocation_1=__importDefault(require("./modules/stock/typeOfLocation")),unitOfMeasure_1=__importDefault(require("./modules/stock/unitOfMeasure")),userPermission_1=__importDefault(require("./modules/user/userPermission")),userPositions_1=__importDefault(require("./modules/user/userPositions")),user_1=__importDefault(require("./modules/user/user")),vatTax_1=__importDefault(require("./modules/stock/vatTax")),vatTaxZone_1=__importDefault(require("./modules/stock/vatTaxZone")),workflow_1=__importDefault(require("./modules/supply/workflow")),deliveryMethods_1=__importDefault(require("./modules/user/deliveryMethods")),maturityDates_1=__importDefault(require("./modules/user/maturityDates")),paymentMethods_1=__importDefault(require("./modules/user/paymentMethods")),vehicles_1=__importDefault(require("./modules/user/vehicles")),externalDocumentType_1=__importDefault(require("./modules/supply/externalDocumentType")),documentSet_1=__importDefault(require("./modules/supply/documentSet")),payment_1=__importDefault(require("./modules/supply/payment")),externalDocumentHeader_1=__importDefault(require("./modules/supply/externalDocumentHeader")),clientCurrentAccount_1=__importDefault(require("./modules/supply/clientCurrentAccount")),providerCurrentAccount_1=__importDefault(require("./modules/supply/providerCurrentAccount")),moloniRequest_1=__importDefault(require("./modules/supply/moloniRequest")),vatValidation_1=__importDefault(require("./modules/supply/vatValidation")),productNamePreset_1=__importDefault(require("./modules/stock/productNamePreset")),stockMovement_1=__importDefault(require("./modules/stock/stockMovement")),zipCode_1=__importDefault(require("./modules/user/zipCode")),tenant_1=__importDefault(require("./modules/user/tenant")),preSale_1=__importDefault(require("./modules/supply/preSale")),preSaleProduct_1=__importDefault(require("./modules/supply/preSaleProduct")),cabide_1=__importDefault(require("./modules/supply/cabide")),cabideProduct_1=__importDefault(require("./modules/supply/cabideProduct")),orderManagement_1=__importDefault(require("./modules/supply/orderManagement")),npc_1=__importDefault(require("./modules/print/npc")),printer_1=__importDefault(require("./modules/print/printer")),schedulePrintJob_1=__importDefault(require("./modules/print/schedulePrintJob")),queryList_1=__importDefault(require("./modules/stock/queryList")),queryParameter_1=__importDefault(require("./modules/stock/queryParameter")),returnReason_1=__importDefault(require("./modules/stock/returnReason")),propostaSheets_1=__importDefault(require("./modules/document/propostaSheets")),schedule_1=__importDefault(require("./modules/stock/schedule")),googleFilePermission_1=__importDefault(require("./modules/integration/googleFilePermission")),settings_1=__importDefault(require("./modules/integration/settings")),tickets_1=__importDefault(require("./modules/tickets/tickets")),channel_1=__importDefault(require("./modules/tickets/channel")),language_2=__importDefault(require("./modules/tickets/language")),clt_1=__importDefault(require("./modules/tickets/clt")),startDocumentHeaderLastUpdate_1=__importDefault(require("./modules/supply/startDocumentHeaderLastUpdate")),errorHandler_1=__importDefault(require("./modules/integration/errorHandler")),persona_1=__importDefault(require("./modules/user/persona")),projectInfo_1=__importDefault(require("./modules/integration/projectInfo")),order_1=__importDefault(require("./modules/document/order")),purchase_1=__importDefault(require("./modules/document/purchase")),materialEntrance_1=__importDefault(require("./modules/document/materialEntrance")),transformado_1=__importDefault(require("./modules/document/transformado")),upfrontReturn_1=__importDefault(require("./modules/document/upfrontReturn")),savedEmPicking_1=__importDefault(require("./modules/stock/savedEmPicking")),emailTemplate_1=__importDefault(require("./modules/integration/emailTemplate")),emailTemplateAttachment_1=__importDefault(require("./modules/integration/emailTemplateAttachment")),prison_1=__importDefault(require("./modules/stock/prison")),quebra_1=__importDefault(require("./modules/document/quebra")),inventario_1=__importDefault(require("./modules/document/inventario")),returnToProvider_1=__importDefault(require("./modules/document/returnToProvider")),emailLog_1=__importDefault(require("./modules/integration/emailLog")),documentLineNote_1=__importDefault(require("./modules/supply/documentLineNote")),savedProviderProposal_1=__importDefault(require("./modules/stock/savedProviderProposal"));exports.Attribute=__importStar(require("./modules/stock/attribute")),exports.AttributeValue=__importStar(require("./modules/stock/attributeValue")),exports.BankData=__importStar(require("./modules/user/bankData")),exports.Client=__importStar(require("./modules/user/clients")),exports.ClientType=__importStar(require("./modules/user/clientType")),exports.Color=__importStar(require("./modules/stock/color")),exports.Commissioner=__importStar(require("./modules/user/commissioner")),exports.Composition=__importStar(require("./modules/stock/composition")),exports.CompositionMaterial=__importStar(require("./modules/stock/compositionMaterial")),exports.Country=__importStar(require("./modules/user/country")),exports.DocumentHeader=__importStar(require("./modules/supply/documentHeader")),exports.DocumentLine=__importStar(require("./modules/supply/documentLine")),exports.DocumentLineAssoc=__importStar(require("./modules/supply/documentLineAssoc")),exports.DocumentLineFolder=__importStar(require("./modules/supply/documentLineFolder")),exports.DocumentType=__importStar(require("./modules/supply/documentType")),exports.Favorites=__importStar(require("./modules/user/favorites")),exports.Field=__importStar(require("./modules/integration/field")),exports.FieldGroup=__importStar(require("./modules/integration/fieldGroup")),exports.File=__importStar(require("./modules/integration/file")),exports.GoogleSheets=__importStar(require("./modules/integration/googleSheets")),exports.GroupPermissions=__importStar(require("./modules/user/groupPermission")),exports.History=__importStar(require("./modules/integration/history")),exports.Language=__importStar(require("./modules/user/language")),exports.Location=__importStar(require("./modules/stock/location")),exports.Logout=__importStar(require("./modules/user/logout")),exports.Maintenance=__importStar(require("./modules/stock/maintenance")),exports.MaintenanceAssoc=__importStar(require("./modules/stock/maintenanceAssoc")),exports.MaintenanceType=__importStar(require("./modules/stock/maintenanceType")),exports.MaintenancePreset=__importStar(require("./modules/stock/maintenancePreset")),exports.MaintenancePresetAssoc=__importStar(require("./modules/stock/maintenancePresetAssoc")),exports.Multimedia=__importStar(require("./modules/documentManagement/multimedia")),exports.Observation=__importStar(require("./modules/integration/observation")),exports.ObservationType=__importStar(require("./modules/integration/observationType")),exports.PaymentConditions=__importStar(require("./modules/user/paymentCondition")),exports.Password=__importStar(require("./modules/user/password")),exports.Permissions=__importStar(require("./modules/user/permission")),exports.PrimaryColor=__importStar(require("./modules/stock/primaryColor")),exports.Product=__importStar(require("./modules/stock/product")),exports.ProductAttribute=__importStar(require("./modules/stock/productAttribute")),exports.ProductCategory=__importStar(require("./modules/stock/productCategory")),exports.ProductColor=__importStar(require("./modules/stock/productColor")),exports.ProductImage=__importStar(require("./modules/stock/productImage")),exports.ProductPart=__importStar(require("./modules/stock/productPart")),exports.ProductSubCategory=__importStar(require("./modules/stock/productSubCategory")),exports.ProductUse=__importStar(require("./modules/stock/productUse")),exports.ProductUseAssoc=__importStar(require("./modules/stock/productUseAssoc")),exports.ProductName=__importStar(require("./modules/stock/productName")),exports.Promotion=__importStar(require("./modules/stock/promotion")),exports.PromotionAssoc=__importStar(require("./modules/stock/promotionAssoc")),exports.Providers=__importStar(require("./modules/user/provider")),exports.ProviderType=__importStar(require("./modules/user/providerType")),exports.PurchaseConditions=__importStar(require("./modules/user/purchaseCondition")),exports.ReasonForExemption=__importStar(require("./modules/user/reasonForExemption")),exports.RefreshToken=__importStar(require("./modules/user/refreshToken")),exports.SegmentsArea=__importStar(require("./modules/user/segmentsArea")),exports.Sessions=__importStar(require("./modules/user/sessions")),exports.Shippings=__importStar(require("./modules/user/shippings")),exports.SimilarProduct=__importStar(require("./modules/stock/similarProduct")),exports.SocialMedia=__importStar(require("./modules/user/socialMedia")),exports.StoreOperator=__importStar(require("./modules/user/storeOperator")),exports.Swift=__importStar(require("./modules/user/swift")),exports.TypeOfInventory=__importStar(require("./modules/stock/typeOfInventory")),exports.TypeOfLocation=__importStar(require("./modules/stock/typeOfLocation")),exports.UnitOfMeasure=__importStar(require("./modules/stock/unitOfMeasure")),exports.UserPermissions=__importStar(require("./modules/user/userPermission")),exports.UserPositions=__importStar(require("./modules/user/userPositions")),exports.Users=__importStar(require("./modules/user/user")),exports.VatTax=__importStar(require("./modules/stock/vatTax")),exports.VatTaxZone=__importStar(require("./modules/stock/vatTaxZone")),exports.Workflow=__importStar(require("./modules/supply/workflow")),exports.DeliveryMethods=__importStar(require("./modules/user/deliveryMethods")),exports.MaturityDates=__importStar(require("./modules/user/maturityDates")),exports.PaymentMethods=__importStar(require("./modules/user/paymentMethods")),exports.Vehicles=__importStar(require("./modules/user/vehicles")),exports.ExternalDocumentType=__importStar(require("./modules/supply/externalDocumentType")),exports.DocumentSet=__importStar(require("./modules/supply/documentSet")),exports.Payment=__importStar(require("./modules/supply/payment")),exports.ExternalDocumentHeader=__importStar(require("./modules/supply/externalDocumentHeader")),exports.ClientCurrentAccount=__importStar(require("./modules/supply/clientCurrentAccount")),exports.ProviderCurrentAccount=__importStar(require("./modules/supply/providerCurrentAccount")),exports.MoloniRequest=__importStar(require("./modules/supply/moloniRequest")),exports.VatValidation=__importStar(require("./modules/supply/vatValidation")),exports.ProductNamePreset=__importStar(require("./modules/stock/productNamePreset")),exports.StockMovement=__importStar(require("./modules/stock/stockMovement")),exports.ZipCode=__importStar(require("./modules/user/zipCode")),exports.Tenant=__importStar(require("./modules/user/tenant")),exports.PreSale=__importStar(require("./modules/supply/preSale")),exports.PreSaleProduct=__importStar(require("./modules/supply/preSaleProduct")),exports.Cabide=__importStar(require("./modules/supply/cabide")),exports.CabideProduct=__importStar(require("./modules/supply/cabideProduct")),exports.OrderManagement=__importStar(require("./modules/supply/orderManagement")),exports.Npc=__importStar(require("./modules/print/npc")),exports.Printer=__importStar(require("./modules/print/printer")),exports.SchedulePrintJob=__importStar(require("./modules/print/schedulePrintJob")),exports.QueryList=__importStar(require("./modules/stock/queryList")),exports.QueryParameter=__importStar(require("./modules/stock/queryParameter")),exports.ReturnReason=__importStar(require("./modules/stock/returnReason")),exports.PropostaSheets=__importStar(require("./modules/document/propostaSheets")),exports.Schedule=__importStar(require("./modules/stock/schedule")),exports.GoogleFilePermission=__importStar(require("./modules/integration/googleFilePermission")),exports.Settings=__importStar(require("./modules/integration/settings")),exports.Tickets=__importStar(require("./modules/tickets/tickets")),exports.Channel=__importStar(require("./modules/tickets/channel")),exports.TicketsLanguage=__importStar(require("./modules/tickets/language")),exports.Clt=__importStar(require("./modules/tickets/clt")),exports.StartDocumentHeaderLastUpdate=__importStar(require("./modules/supply/startDocumentHeaderLastUpdate")),exports.ErrorHandler=__importStar(require("./modules/integration/errorHandler")),exports.Persona=__importStar(require("./modules/user/persona")),exports.ProjectInfo=__importStar(require("./modules/integration/projectInfo")),exports.Order=__importStar(require("./modules/document/order")),exports.Purchase=__importStar(require("./modules/document/purchase")),exports.MaterialEntrance=__importStar(require("./modules/document/materialEntrance")),exports.Transformado=__importStar(require("./modules/document/transformado")),exports.UpfrontReturn=__importStar(require("./modules/document/upfrontReturn")),exports.SavedEmPicking=__importStar(require("./modules/stock/savedEmPicking")),exports.EmailTemplate=__importStar(require("./modules/integration/emailTemplate")),exports.EmailTemplateAttachment=__importStar(require("./modules/integration/emailTemplateAttachment")),exports.Prison=__importStar(require("./modules/stock/prison")),exports.Quebra=__importStar(require("./modules/document/quebra")),exports.Inventario=__importStar(require("./modules/document/inventario")),exports.ReturnToProvider=__importStar(require("./modules/document/returnToProvider")),exports.EmailLog=__importStar(require("./modules/integration/emailLog")),exports.DocumentLineNote=__importStar(require("./modules/supply/documentLineNote")),exports.SavedProviderProposal=__importStar(require("./modules/stock/savedProviderProposal"));var serviceEnum=["stock","users","integration","documents","view","print","tickets","stockworker"],API=function(){function r(t){var o=t.processEnvironment,s=t.services,u=t.gatewayUrl,d=t.apikey,l=this;this.processEnvironment=o||"localhost",this.defaultHeaders=d?{apikey:d}:void 0,this.client=axios_1.default.create({baseURL:u,headers:this.defaultHeaders});var i=function(a){var n=s[a],c=o==="localhost"?"/":"".concat(a,"/").concat(d?"apikey/":"auth/"),p=o==="localhost"?"/":"".concat(a,"/public/");return{authPath:"".concat(n).concat(c),publicPath:"".concat(n).concat(p)}};this.services={stock:i("stock"),users:i("users"),integration:i("integration"),documents:i("documents"),view:i("view"),print:i("print"),tickets:i("tickets"),stockworker:i("stockworker")};var e=function(a,n){return{api:l.client,route:"".concat(l.services[a].authPath).concat(n,"/"),publicRoute:"".concat(l.services[a].publicPath).concat(n,"/")}};this.Attribute=new attribute_1.default(e("stock","attribute")),this.AttributeValue=new attributeValue_1.default(e("stock","attribute_value")),this.BankData=new bankData_1.default(e("users","bank_data")),this.Client=new clients_1.default(e("users","client")),this.ClientType=new clientType_1.default(e("users","client_type")),this.Color=new color_1.default(e("stock","color")),this.Commissioner=new commissioner_1.default(e("users","commissioner")),this.Composition=new composition_1.default(e("stock","composition")),this.CompositionMaterial=new compositionMaterial_1.default(e("stock","composition_material")),this.Country=new country_1.default(e("users","country")),this.DocumentHeader=new documentHeader_1.default(e("stock","document_header")),this.DocumentLine=new documentLine_1.default(e("stock","document_line")),this.DocumentLineAssoc=new documentLineAssoc_1.default(e("stock","document_line_assoc")),this.DocumentLineFolder=new documentLineFolder_1.default(e("stock","document_line_folder")),this.DocumentType=new documentType_1.default(e("stock","document_type")),this.Favorites=new favorites_1.default(e("users","favorite")),this.Field=new field_1.default(e("integration","field")),this.FieldGroup=new fieldGroup_1.default(e("integration","field_group")),this.File=new file_1.default(e("integration","file")),this.GoogleSheets=new googleSheets_1.default(e("integration","google")),this.GroupPermissions=new groupPermission_1.default(e("users","group_permission")),this.History=new history_1.default(e("integration","history")),this.Language=new language_1.default(e("users","language")),this.Location=new location_1.default(e("stock","location")),this.Logout=new logout_1.default(e("users","logout")),this.Maintenance=new maintenance_1.default(e("stock","maintenance")),this.MaintenanceAssoc=new maintenanceAssoc_1.default(e("stock","maintenance_assoc")),this.MaintenanceType=new maintenanceType_1.default(e("stock","maintenance_type")),this.MaintenancePreset=new maintenancePreset_1.default(e("stock","maintenance_preset")),this.MaintenancePresetAssoc=new maintenancePresetAssoc_1.default(e("stock","maintenance_preset_assoc")),this.Multimedia=new multimedia_1.default(e("documents","multimedia")),this.Observation=new observation_1.default(e("integration","observation")),this.ObservationType=new observationType_1.default(e("integration","observation_type")),this.PaymentConditions=new paymentCondition_1.default(e("users","payment_condition")),this.Password=new password_1.default(e("users","password")),this.Permissions=new permission_1.default(e("users","permission")),this.PrimaryColor=new primaryColor_1.default(e("stock","primary_color")),this.Product=new product_1.default(e("stock","product")),this.ProductAttribute=new productAttribute_1.default(e("stock","product_attribute")),this.ProductCategory=new productCategory_1.default(e("stock","product_category")),this.ProductColor=new productColor_1.default(e("stock","product_color")),this.ProductImage=new productImage_1.default(e("stock","product_image")),this.ProductPart=new productPart_1.default(e("stock","product_part")),this.ProductSubCategory=new productSubCategory_1.default(e("stock","product_sub_category")),this.ProductUse=new productUse_1.default(e("stock","product_use")),this.ProductUseAssoc=new productUseAssoc_1.default(e("stock","product_use_assoc")),this.ProductName=new productName_1.default(e("stock","product_name")),this.Promotion=new promotion_1.default(e("stock","promotion")),this.PromotionAssoc=new promotionAssoc_1.default(e("stock","promotion_assoc")),this.Providers=new provider_1.default(e("users","provider")),this.ProviderType=new providerType_1.default(e("users","provider_type")),this.PurchaseConditions=new purchaseCondition_1.default(e("users","purchase_condition")),this.ReasonForExemption=new reasonForExemption_1.default(e("users","reason_for_exemption")),this.RefreshToken=new refreshToken_1.default(e("users","refresh-token")),this.SegmentsArea=new segmentsArea_1.default(e("users","segments_area")),this.Sessions=new sessions_1.default(e("users","sessions")),this.Shippings=new shippings_1.default(e("users","shipping")),this.SimilarProduct=new similarProduct_1.default(e("stock","similar_product")),this.SocialMedia=new socialMedia_1.default(e("users","social_media")),this.StoreOperator=new storeOperator_1.default(e("users","store_operator")),this.Swift=new swift_1.default(e("users","swift")),this.TypeOfInventory=new typeOfInventory_1.default(e("stock","type_of_inventory")),this.TypeOfLocation=new typeOfLocation_1.default(e("stock","type_of_location")),this.UnitOfMeasure=new unitOfMeasure_1.default(e("stock","unit_of_measure")),this.UserPermissions=new userPermission_1.default(e("users","user_permission")),this.UserPositions=new userPositions_1.default(e("users","user_position")),this.Users=new user_1.default(e("users","users")),this.VatTax=new vatTax_1.default(e("stock","vat_tax")),this.VatTaxZone=new vatTaxZone_1.default(e("stock","vat_tax_zone")),this.Workflow=new workflow_1.default(e("stock","workflow")),this.DeliveryMethods=new deliveryMethods_1.default(e("users","delivery_methods")),this.MaturityDates=new maturityDates_1.default(e("users","maturity_dates")),this.PaymentMethods=new paymentMethods_1.default(e("users","payment_methods")),this.Vehicles=new vehicles_1.default(e("users","vehicles")),this.ExternalDocumentType=new externalDocumentType_1.default(e("stock","external_document_type")),this.DocumentSet=new documentSet_1.default(e("stock","document_set")),this.Payment=new payment_1.default(e("stock","payment")),this.ExternalDocumentHeader=new externalDocumentHeader_1.default(e("stock","external_document_header")),this.ClientCurrentAccount=new clientCurrentAccount_1.default(e("stock","client_current_account")),this.ProviderCurrentAccount=new providerCurrentAccount_1.default(e("stock","provider_current_account")),this.MoloniRequest=new moloniRequest_1.default(e("stock","moloni_request")),this.VatValidation=new vatValidation_1.default(e("stock","vat_validation")),this.ProductNamePreset=new productNamePreset_1.default(e("stock","product_name_preset")),this.StockMovement=new stockMovement_1.default(e("stock","stock_movement")),this.ZipCode=new zipCode_1.default(e("users","zip_code")),this.Tenant=new tenant_1.default(e("users","tenant")),this.PreSale=new preSale_1.default(e("stock","pre_sale")),this.PreSaleProduct=new preSaleProduct_1.default(e("stock","pre_sale_product")),this.Cabide=new cabide_1.default(e("stock","cabide")),this.CabideProduct=new cabideProduct_1.default(e("stock","cabide_product")),this.OrderManagement=new orderManagement_1.default(e("stock","order_management")),this.Npc=new npc_1.default(e("print","npc")),this.Printer=new printer_1.default(e("print","printer")),this.SchedulePrintJob=new schedulePrintJob_1.default(e("print","schedule_print_job")),this.QueryList=new queryList_1.default(e("stock","query")),this.QueryParameter=new queryParameter_1.default(e("stock","query_parameter")),this.ReturnReason=new returnReason_1.default(e("stock","return_reason")),this.PropostaSheets=new propostaSheets_1.default(e("stock","proposta_sheets")),this.Schedule=new schedule_1.default(e("stock","schedule")),this.GoogleFilePermission=new googleFilePermission_1.default(e("integration","google_file_permission")),this.Settings=new settings_1.default(e("integration","settings")),this.Tickets=new tickets_1.default(e("tickets","tickets")),this.Channel=new channel_1.default(e("tickets","channel")),this.TicketsLanguage=new language_2.default(e("tickets","tickets_language")),this.Clt=new clt_1.default(e("tickets","clt")),this.StartDocumentHeaderLastUpdate=new startDocumentHeaderLastUpdate_1.default(e("stock","start_document_header_last_update")),this.ErrorHandler=new errorHandler_1.default(e("integration","error_handler")),this.Persona=new persona_1.default(e("users","persona")),this.ProjectInfo=new projectInfo_1.default(e("integration","project_info")),this.Order=new order_1.default(e("stock","order")),this.Purchase=new purchase_1.default(e("stock","purchase")),this.MaterialEntrance=new materialEntrance_1.default(e("stock","material_entrance")),this.Transformado=new transformado_1.default(e("stock","transformado")),this.UpfrontReturn=new upfrontReturn_1.default(e("stock","upfront_return")),this.SavedEmPicking=new savedEmPicking_1.default(e("stock","saved_em_picking")),this.EmailTemplate=new emailTemplate_1.default(e("integration","email_template")),this.EmailTemplateAttachment=new emailTemplateAttachment_1.default(e("integration","email_template_attachment")),this.Prison=new prison_1.default(e("stock","prison")),this.Quebra=new quebra_1.default(e("stock","quebra")),this.Inventario=new inventario_1.default(e("stock","inventario")),this.ReturnToProvider=new returnToProvider_1.default(e("stock","return_to_provider")),this.EmailLog=new emailLog_1.default(e("integration","email_log")),this.DocumentLineNote=new documentLineNote_1.default(e("stock","document_line_note")),this.SavedProviderProposal=new savedProviderProposal_1.default(e("stock","saved_provider_proposal"))}return r}();exports.API=API;
1
+ import{Attribute as t,DocumentLine as e,DocumentType as n,Field as i,FieldGroup as r,History as o,Product as u,ProductImage as c,StockMovement as a,Cabide as s,QueryList as h,QueryParameter as d,PropostaSheets as p,Schedule as f,Order as l,MaterialEntrance as v,Prison as b}from"@nomalism-com/types";export{shared}from"@nomalism-com/types";import y from"axios";var w=function(){return w=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},w.apply(this,arguments)};function _(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}function m(t,e,n,i){return new(n||(n=Promise))((function(r,o){function u(t){try{a(i.next(t))}catch(t){o(t)}}function c(t){try{a(i.throw(t))}catch(t){o(t)}}function a(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,c)}a((i=i.apply(t,e||[])).next())}))}function g(t,e){var n,i,r,o,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(c){return function(a){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(u=0)),u;)try{if(n=1,i&&(r=2&c[0]?i.return:c[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,c[1])).done)return r;switch(i=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,i=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(r=u.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){u=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){u.label=c[1];break}if(6===c[0]&&u.label<r[1]){u.label=r[1],r=c;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(c);break}r[2]&&u.ops.pop(),u.trys.pop();continue}c=e.call(t,u)}catch(t){c=[6,t],i=0}finally{n=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}}"function"==typeof SuppressedError&&SuppressedError;var O=t.AttributeDatatypeEnum,R=t.attributeDatatypes,P=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),I=Object.freeze({__proto__:null,AttributeDatatypeEnum:O,attributeDatatypes:R,default:P}),B=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),k=Object.freeze({__proto__:null,default:B}),j=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),z=Object.freeze({__proto__:null,default:j}),S=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByQuery=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"query"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),M=Object.freeze({__proto__:null,default:S}),E=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),C=Object.freeze({__proto__:null,default:E}),T=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t}(),L=Object.freeze({__proto__:null,default:T}),x=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),D=Object.freeze({__proto__:null,default:x}),U=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),A=Object.freeze({__proto__:null,default:U}),F=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),H=Object.freeze({__proto__:null,default:F}),V=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByAlpha2=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"alpha2"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),N=Object.freeze({__proto__:null,default:V}),q=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findStart=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"/start/").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByDocumentLineState=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_document_line_state"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByBasicSearch=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"basic_search"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByType=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_type"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByCommissionerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_commissioner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findClientUnpaidCredit=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"unpaid_credit"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findClientUnpaidDebit=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"unpaid_debit"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findUnpaidCommissions=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"unpaid_commissions"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.createFromHeader=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"from_header"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.createProductionOrder=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"production_order"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.getActions=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"get_actions/").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMaterialEntranceProviders=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"material_entrance_providers"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findProviderInvoice=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"provider_invoice"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.createProviderFinancialCreditNote=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"provider_financial_credit_note"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.createProviderServiceInvoice=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"provider_service_invoice"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.findProviderReturn=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"provider_return"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.createProviderCreditNoteFromReturn=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"provider_credit_note_from_return"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.transferClientOwnership=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"transfer_client_ownership"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.updateManyWithPersona=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"update_many_with_persona"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.sendClientNotification=function(t,e){var n=t.id;return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route).concat(n,"/send_client_notification"),e)];case 1:return t.sent(),[2]}}))}))},t.prototype.markUnsentClientNotification=function(t){var e=t.id;return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route).concat(e,"/mark_unsent_client_notification"))];case 1:return t.sent(),[2]}}))}))},t.prototype.documentPdf=function(t){var e=t.id;return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route,"document_pdf/").concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.documentPdfStream=function(t,e){var n=t.id;return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"document_pdf/").concat(n),{params:e,responseType:"arraybuffer"})];case 1:return[2,t.sent().data]}}))}))},t.prototype.getDocumentPdfUrl=function(t,e){var n=t.id,i=new URLSearchParams;return(null==e?void 0:e.token)&&i.set("token",e.token),"".concat(this.route,"document_pdf/").concat(n,"?").concat(i.toString())},t.prototype.documentList=function(t){var e=t.id;return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route,"document_list/").concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.createProviderProposal=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"provider_proposal"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Q=Object.freeze({__proto__:null,default:q}),G=e.IMetadataPlugins,W=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByState=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"find_by_state"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.updateIndexes=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"update_indexes"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.updateData=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"update_data"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.updateMany=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"update_many"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteMany=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route),{data:t})];case 1:return e.sent(),[2]}}))}))},t.prototype.printLabelToPdfUrl=function(t,e){var n=t.document_line_ids,i=new URLSearchParams;return i.set("token",e),"".concat(this.route,"print_label_pdf/").concat(n,"?").concat(i.toString())},t}(),Z=Object.freeze({__proto__:null,IMetadataPlugins:G,default:W}),J=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteInventoryLosses=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route,"inventory_loss"),{data:t})];case 1:return e.sent(),[2]}}))}))},t}(),K=Object.freeze({__proto__:null,default:J}),X=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Y=Object.freeze({__proto__:null,default:X}),$=n.DocumentTypeUserTypeEnum,tt=n.documentTypeUserTypes,et=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findDetailed=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"detailed"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),nt=Object.freeze({__proto__:null,DocumentTypeUserTypeEnum:$,default:et,documentTypeUserTypes:tt}),it=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByUrl=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.list=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"list"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),rt=Object.freeze({__proto__:null,default:it}),ot=i.dataTypes,ut=i.IDataTypeEnum,ct=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t}(),at=Object.freeze({__proto__:null,IDataTypeEnum:ut,dataTypes:ot,default:ct}),st=r.IEntity,ht=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByEntity=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"find_by_entity"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findDetailed=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),dt=Object.freeze({__proto__:null,IEntityType:st,default:ht}),pt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ft=Object.freeze({__proto__:null,default:pt}),lt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.clone=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.get("".concat(this.route,"clone/").concat(t.id),{params:e})];case 1:return[2,n.sent().data]}}))}))},t.prototype.export=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"export"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.getData=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return n.sent(),[2]}}))}))},t}(),vt=Object.freeze({__proto__:null,default:lt}),bt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),yt=Object.freeze({__proto__:null,default:bt}),wt=o.IEntity,_t=o.ActionType,mt=o.Origin,gt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByEntityAndId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),Ot=Object.freeze({__proto__:null,IActionType:_t,IEntityType:wt,IOrigin:mt,default:gt}),Rt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Pt=Object.freeze({__proto__:null,default:Rt}),It=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Bt=Object.freeze({__proto__:null,default:It}),kt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.logout=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route))];case 1:return t.sent(),[2]}}))}))},t}(),jt=Object.freeze({__proto__:null,default:kt}),zt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),St=Object.freeze({__proto__:null,default:zt}),Mt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Et=Object.freeze({__proto__:null,default:Mt}),Ct=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Tt=Object.freeze({__proto__:null,default:Ct}),Lt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.apply=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route,"apply/").concat(t.id),e)];case 1:return n.sent(),[2]}}))}))},t}(),xt=Object.freeze({__proto__:null,default:Lt}),Dt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t}(),Ut=Object.freeze({__proto__:null,default:Dt}),At=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute,r=t.defaultHeaders;this.api=e,this.route=n,this.publicRoute=i,this.defaultHeaders=r||{}}return t.prototype.getUrl=function(t,e){void 0===e&&(e=!1);var n=new URLSearchParams;return e&&n.set("download",e.toString()),"".concat(this.publicRoute).concat(t,"?").concat(n.toString())},t.prototype.create=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.post("".concat(this.route,"upload"),t,{headers:w(w(w({},e||{}),this.defaultHeaders),{"content-type":"multipart/form-data"})})];case 1:return[2,n.sent().data]}}))}))},t}(),Ft=Object.freeze({__proto__:null,default:At}),Ht=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwner=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Vt=Object.freeze({__proto__:null,default:Ht}),Nt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),qt=Object.freeze({__proto__:null,default:Nt}),Qt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Gt=Object.freeze({__proto__:null,default:Qt}),Wt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.forgotPassword=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.publicRoute,"forgot"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.resetPassword=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.publicRoute,"reset"),t)];case 1:return e.sent(),[2]}}))}))},t}(),Zt=Object.freeze({__proto__:null,default:Wt}),Jt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Kt=Object.freeze({__proto__:null,default:Jt}),Xt=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Yt=Object.freeze({__proto__:null,default:Xt}),$t=u.ProductTypeEnum,te=u.productTypes,ee=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByRef=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_ref"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.validateByRef=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"validate_by_ref"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByProductType=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_product_type"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.googleSheetsFieldsByRef=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"google_sheets_fields_by_ref/").concat(t.reference))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findOrCreateProductionProduct=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"production"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.basicSearch=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"basic_search"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.bulkUpdate=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"bulk"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.duplicateProduct=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.post("".concat(this.route).concat(t.id,"duplicate_product"),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.printLabelToPdfUrl=function(t,e){var n=t.id,i=new URLSearchParams;return i.set("token",e),"".concat(this.publicRoute,"print_label_pdf/").concat(n,"?").concat(i.toString())},t.prototype.updateGoogleSheetsLinesProduct=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"update_google_sheets_lines_product"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),ne=Object.freeze({__proto__:null,ProductTypeEnum:$t,default:ee,productTypes:te}),ie=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),re=Object.freeze({__proto__:null,default:ie}),oe=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ue=Object.freeze({__proto__:null,default:oe}),ce=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ae=Object.freeze({__proto__:null,default:ce}),se=c.ImageTypeEnum,he=c.imageTypes,de=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),pe=Object.freeze({__proto__:null,ImageTypeEnum:se,default:de,imageTypes:he}),fe=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t}(),le=Object.freeze({__proto__:null,default:fe}),ve=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t}(),be=Object.freeze({__proto__:null,default:ve}),ye=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),we=Object.freeze({__proto__:null,default:ye}),_e=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t}(),me=Object.freeze({__proto__:null,default:_e}),ge=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Oe=Object.freeze({__proto__:null,default:ge}),Re=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.getBestDiscount=function(t,e,n,i){var r=t.filter((function(t){return!t.exclusive_to_location_id||t.exclusive_to_location_id===n})).filter((function(t){return!t.exclusive_to_client_id||t.exclusive_to_client_id===i})).reduce((function(t,e){return e.discount>t?e.discount:t}),0),o=e||0;return r>o?r:o},t}(),Pe=Object.freeze({__proto__:null,default:Re}),Ie=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Be=Object.freeze({__proto__:null,default:Ie}),ke=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByQuery=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"query"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinifiedManufacturer=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified_manufacturer"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),je=Object.freeze({__proto__:null,default:ke}),ze=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Se=Object.freeze({__proto__:null,default:ze}),Me=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Ee=Object.freeze({__proto__:null,default:Me}),Ce=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Te=Object.freeze({__proto__:null,default:Ce}),Le=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.publicRoute),t)];case 1:return[2,e.sent().data]}}))}))},t}(),xe=Object.freeze({__proto__:null,default:Le}),De=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Ue=Object.freeze({__proto__:null,default:De}),Ae=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.publicRoute),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Fe=Object.freeze({__proto__:null,default:Ae}),He=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Ve=Object.freeze({__proto__:null,default:He}),Ne=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),qe=Object.freeze({__proto__:null,default:Ne}),Qe=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Ge=Object.freeze({__proto__:null,default:Qe}),We=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.checkPin=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"pin"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Ze=Object.freeze({__proto__:null,default:We}),Je=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Ke=Object.freeze({__proto__:null,default:Je}),Xe=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Ye=Object.freeze({__proto__:null,default:Xe}),$e=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),tn=Object.freeze({__proto__:null,default:$e}),en=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),nn=Object.freeze({__proto__:null,default:en}),rn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),on=Object.freeze({__proto__:null,default:rn}),un=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),cn=Object.freeze({__proto__:null,default:un}),an=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findProvidersWithClientId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"/providers"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findFromClientOrProviderId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"/from_client_or_provider_id"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),sn=Object.freeze({__proto__:null,default:an}),hn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),dn=Object.freeze({__proto__:null,default:hn}),pn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),fn=Object.freeze({__proto__:null,default:pn}),ln=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),vn=Object.freeze({__proto__:null,default:ln}),bn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),yn=Object.freeze({__proto__:null,default:bn}),wn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),_n=Object.freeze({__proto__:null,default:wn}),mn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),gn=Object.freeze({__proto__:null,default:mn}),On=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Rn=Object.freeze({__proto__:null,default:On}),Pn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),In=Object.freeze({__proto__:null,default:Pn}),Bn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),kn=Object.freeze({__proto__:null,default:Bn}),jn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteBatch=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route,"delete_batch").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findCurrentAccountByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"current_account"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findSettledMaterialEntrance=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"settled_material_entrance"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findSettledMaterialEntranceProviders=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"settled_material_entrance_providers"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.createProvidersPayments=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"provider"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.findPaymentsNotExported=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"not_exported"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findPaymentBatches=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"batches"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.updateDownloadedBatchNumber=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route,"downloaded_batch_number").concat(t))];case 1:return e.sent(),[2]}}))}))},t.prototype.exportCurrentAccount=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.publicRoute,"export_current_account"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findSettledMaterialEntranceByDate=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"settled_material_entrance_by_date"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.exportPayments=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"export_payments"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.getExportCurrentAccountUrl=function(t){var e=t.owner_id,n=t.start_date,i=t.end_date,r=t.output,o=t.token,u=new URLSearchParams;return u.set("owner_id",e),u.set("output",r),n&&u.set("start_date",n.toISOString()),i&&u.set("end_date",i.toISOString()),u.set("token",o),"".concat(this.publicRoute,"export_current_account?").concat(u.toString())},t}(),zn=Object.freeze({__proto__:null,default:jn}),Sn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.sendEmailDocument=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"sendEmail"),t)];case 1:return e.sent(),[2]}}))}))},t}(),Mn=Object.freeze({__proto__:null,default:Sn}),En=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findFaturaPorPagar=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"fatura_por_pagar"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.pagarFatura=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"pagar_fatura"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.findFaturaParaDevolver=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"fatura_para_devolver"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.devolver=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"devolver"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.findByBasicSearch=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"basic_search"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),Cn=Object.freeze({__proto__:null,default:En}),Tn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),Ln=Object.freeze({__proto__:null,default:Tn}),xn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return e.sent(),[2]}}))}))},t}(),Dn=Object.freeze({__proto__:null,default:xn}),Un=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByLatest=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:{nif:t}})];case 1:return[2,e.sent().data]}}))}))},t}(),An=Object.freeze({__proto__:null,default:Un}),Fn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Hn=Object.freeze({__proto__:null,default:Fn}),Vn=a.ExportFormatEnum,Nn=a.exportFormats,qn=a.ExportVersionEnum,Qn=a.exportVersions,Gn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByProvider=function(t){var e=t.id;return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route).concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.exportCsv=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"csv"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.getStockCsvUrl=function(t){var e=t.date,n=t.version,i=t.format,r=t.token,o=new URLSearchParams;return o.set("date",e.toISOString()),o.set("version",n),o.set("format",i),o.set("token",r),"".concat(this.publicRoute,"csv?").concat(o.toString())},t}(),Wn=Object.freeze({__proto__:null,ExportFormatEnum:Vn,ExportVersionEnum:qn,default:Gn,exportFormats:Nn,exportVersions:Qn}),Zn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.findByPostalCode=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),Jn=Object.freeze({__proto__:null,default:Zn}),Kn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t}(),Xn=Object.freeze({__proto__:null,default:Kn}),Yn=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_user/").concat(t.created_by))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPending=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"pending"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.updatePreSaleQuantity=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id,"/quantity"),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.removeProduct=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route,"product/").concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.importToClientProposal=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"client_proposal"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),$n=Object.freeze({__proto__:null,default:Yn}),ti=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ei=Object.freeze({__proto__:null,default:ti}),ni=s.cabideTypes,ii=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByBasicSearch=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"basic_search"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findPaginated=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"paginated"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByIdProvider=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"'/id_provider/").concat(t.id_provider))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findCabideProviders=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"cabide_providers"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.printLabelToPdfUrl=function(t,e){var n=t.id,i=new URLSearchParams;return i.set("token",e),"".concat(this.publicRoute,"print_label_pdf/").concat(n,"?").concat(i.toString())},t}(),ri=Object.freeze({__proto__:null,cabidesTypesEnum:ni,default:ii}),oi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.createProductByCabideProductId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"product"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.findById=function(t){var e=t.id;return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route).concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findByOwner=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerPaginated=function(t){var e=t.owner_id,n=_(t,["owner_id"]);return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route).concat(e,"/paginated"),{params:n})];case 1:return[2,t.sent().data]}}))}))},t.prototype.findProductByCabideProductId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"product/").concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),ui=Object.freeze({__proto__:null,default:oi}),ci=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findProviders=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"providers"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findProviderProducts=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"provider_products"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findProductHistory=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"product_history"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),ai=Object.freeze({__proto__:null,default:ci}),si=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t}(),hi=Object.freeze({__proto__:null,default:si}),di=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t}(),pi=Object.freeze({__proto__:null,default:di}),fi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.dispatchSchedulePrintJob=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"dispatch_schedule_print_job"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwner=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),li=Object.freeze({__proto__:null,default:fi}),vi=h.executeOutput,bi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.execute=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"execute"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.getQueryExecuteUrl=function(t){var e=t.query_id,n=t.output,i=t.token,r=_(t,["query_id","output","token"]),o=new URLSearchParams;return o.set("query_id",e),o.set("output",n),i&&o.set("token",i),Object.entries(r).forEach((function(t){var e=t[0],n=t[1];null!=n&&o.set(e,n.toString())})),"".concat(this.route,"execute?").concat(o.toString())},t}(),yi=Object.freeze({__proto__:null,default:bi,executeOutput:vi}),wi=d.QueryParameterDatatypeEnum,_i=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),mi=Object.freeze({__proto__:null,QueryParameterDatatypeEnum:wi,default:_i}),gi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Oi=Object.freeze({__proto__:null,default:gi}),Ri=p.IConflictEnum,Pi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.isProcessing=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"is_processing"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.importFromSheet=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"import_from_sheet"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.createSheetFromDocument=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"create_sheet_from_document"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.cloneSheetsToNewDocument=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"clone_sheet_to_new_document"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.conflictAccept=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"conflict_accept"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.conflictDelete=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route,"conflict_delete"),{data:t})];case 1:return e.sent(),[2]}}))}))},t.prototype.conflictFindByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"conflict_find_by_owner_id"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),Ii=Object.freeze({__proto__:null,IConflictEnum:Ri,default:Pi}),Bi=f.ScheduleTypeEnum,ki=f.scheduleTypes,ji=f.ScheduleTypeLabel,zi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.runImmediately=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route).concat(t.scheduleType))];case 1:return[2,e.sent().data]}}))}))},t}(),Si=Object.freeze({__proto__:null,ScheduleTypeEnum:Bi,ScheduleTypeLabel:ji,default:zi,scheduleTypes:ki}),Mi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Ei=Object.freeze({__proto__:null,default:Mi}),Ci=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByKey=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.publicRoute,"by_key"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t}(),Ti=Object.freeze({__proto__:null,default:Ci}),Li=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findToday=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"find_today"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.update=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.put("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.undoLastCall=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.put("".concat(this.route,"undo_last_call"))];case 1:return[2,t.sent().data]}}))}))},t}(),xi=Object.freeze({__proto__:null,default:Li}),Di=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t))];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.post("".concat(this.route).concat(t),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t))];case 1:return e.sent(),[2]}}))}))},t}(),Ui=Object.freeze({__proto__:null,default:Di}),Ai=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t))];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.post("".concat(this.route).concat(t),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t))];case 1:return e.sent(),[2]}}))}))},t}(),Fi=Object.freeze({__proto__:null,default:Ai}),Hi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findMinified=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"minified"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t))];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.post("".concat(this.route).concat(t),e)];case 1:return n.sent(),[2]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t))];case 1:return e.sent(),[2]}}))}))},t}(),Vi=Object.freeze({__proto__:null,default:Hi}),Ni=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),qi=Object.freeze({__proto__:null,default:Ni}),Qi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return e.sent(),[2]}}))}))},t}(),Gi=Object.freeze({__proto__:null,default:Qi}),Wi=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByOwnerId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"by_owner"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.findByBasic=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"basic_search"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t}(),Zi=Object.freeze({__proto__:null,default:Wi}),Ji=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.sendEmail=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"sendEmail"),t)];case 1:return e.sent(),[2]}}))}))},t}(),Ki=Object.freeze({__proto__:null,default:Ji}),Xi=l.ConferirEncomendaClienteOptionsEnum,Yi=l.conferirEncomendaClienteOptions,$i=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.unsetCativado=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"unset_cativado"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findStockToOrder=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"check_lines_to_order"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findProvidersWithStockToOrder=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"stock_order_provider"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.undoEncomendaVA=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id,"/undo_encomenda_va"))];case 1:return e.sent(),[2]}}))}))},t.prototype.setProvider=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"set_provider"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.unsetProvider=function(t){var e=t.id;return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route).concat(e,"/unset_provider"))];case 1:return t.sent(),[2]}}))}))},t.prototype.undoEncomendaStock=function(t){var e=t.id;return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.post("".concat(this.route).concat(e,"/undo_encomenda_stock"))];case 1:return t.sent(),[2]}}))}))},t.prototype.undoProviderOrder=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"undo_provider_order"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.conferirEncomendaCliente=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"check_client_order"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),tr=Object.freeze({__proto__:null,ConferirEncomendaClienteOptionsEnum:Xi,conferirEncomendaClienteOptions:Yi,default:$i}),er=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.purchaseFromProvider=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"purchase_from_provider"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.findUnpaidMaterialEntrance=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"unpaid_material_entrance"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findUnpaidMaterialEntranceProviders=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"unpaid_material_entrance_providers"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t}(),nr=Object.freeze({__proto__:null,default:er}),ir=v.ICreateMaterialEntranceClientOrderOptionEnum,rr=v.createMaterialEntranceClientOrderOptions,or=v.ICreateMaterialEntranceStockOptionEnum,ur=v.createMaterialEntranceStockOptions,cr=v.ICreateMaterialEntranceStockWithoutOrderOptionEnum,ar=v.createMaterialEntranceStockWithoutOrderOptions,sr=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findUnfinishedPickings=function(t){var e=t.id;return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"unfinished_pickings/").concat(e))];case 1:return[2,t.sent().data]}}))}))},t.prototype.finalizarEntradaMaterial=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"finalize_material_entrance"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.undoEntradaMaterial=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"undo_material_entrance"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.printLabelToPdfUrl=function(t,e,n){var i=t.document_line_id,r=t.product_id,o=e.quantity,u=e.pc_document_number,c=e.prison,a=e.note,s=new URLSearchParams;return s.set("quantity",o.toString()),u&&s.set("pc_document_number",u.toString()),a&&s.set("note",a.toString()),s.set("prison",c.toString()),s.set("token",n),"".concat(this.publicRoute,"print_label_pdf/").concat(r,"/").concat(i,"?").concat(s.toString())},t}(),hr=Object.freeze({__proto__:null,ICreateMaterialEntranceClientOrderOptionEnum:ir,ICreateMaterialEntranceStockOptionEnum:or,ICreateMaterialEntranceStockWithoutOrderOptionEnum:cr,createMaterialEntranceClientOrderOptions:rr,createMaterialEntranceStockOptions:ur,createMaterialEntranceStockWithoutOrderOptions:ar,default:sr}),dr=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t}(),pr=Object.freeze({__proto__:null,default:dr}),fr=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.post("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t}(),lr=Object.freeze({__proto__:null,default:fr}),vr=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),br=Object.freeze({__proto__:null,default:vr}),yr=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t.prototype.send=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"send"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),wr=Object.freeze({__proto__:null,default:yr}),_r=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return e.sent(),[2]}}))}))},t}(),mr=Object.freeze({__proto__:null,default:_r}),gr=b.checkLineInPrisonOptions,Or=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.putLineInPrison=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"put_in_prison"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.removeLineFromPrison=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"remove_from_prison"),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.findLinesInPrison=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"in_prison"),{})];case 1:return[2,t.sent().data]}}))}))},t.prototype.findLinesInPrisonProviders=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"in_prison_providers"),{})];case 1:return[2,t.sent().data]}}))}))},t.prototype.checkLinesInPrison=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"check_in_prison"),t)];case 1:return e.sent(),[2]}}))}))},t.prototype.createLinesInPrison=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"create_lines"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Rr=Object.freeze({__proto__:null,checkLineInPrisonOptions:gr,default:Or}),Pr=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findInventoryLosses=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route))];case 1:return[2,t.sent().data]}}))}))},t.prototype.findInventoryLossesProviders=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"providers"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.createMany=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"create_many"),t)];case 1:return[2,e.sent().data]}}))}))},t}(),Ir=Object.freeze({__proto__:null,default:Pr}),Br=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.createInventory=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return e.sent(),[2]}}))}))},t}(),kr=Object.freeze({__proto__:null,default:Br}),jr=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findLinesToReturn=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route,"lines_to_return"),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findLinesToReturnProviders=function(){return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route,"lines_to_return_providers"))];case 1:return[2,t.sent().data]}}))}))},t.prototype.checkLinesToReturn=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route,"check_to_return"),t)];case 1:return e.sent(),[2]}}))}))},t}(),zr=Object.freeze({__proto__:null,default:jr}),Sr=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.find=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route),{params:t})];case 1:return[2,e.sent().data]}}))}))},t.prototype.findById=function(t){var e=t.id;return m(this,void 0,void 0,(function(){return g(this,(function(t){switch(t.label){case 0:return[4,this.api.get("".concat(this.route).concat(e))];case 1:return[2,t.sent().data]}}))}))},t}(),Mr=Object.freeze({__proto__:null,default:Sr}),Er=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Cr=Object.freeze({__proto__:null,default:Er}),Tr=function(){function t(t){var e=t.api,n=t.route,i=t.publicRoute;this.api=e,this.route=n,this.publicRoute=i}return t.prototype.findByProviderId=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.get("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t.prototype.create=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.post("".concat(this.route),t)];case 1:return[2,e.sent().data]}}))}))},t.prototype.update=function(t,e){return m(this,void 0,void 0,(function(){return g(this,(function(n){switch(n.label){case 0:return[4,this.api.put("".concat(this.route).concat(t.id),e)];case 1:return[2,n.sent().data]}}))}))},t.prototype.deleteOne=function(t){return m(this,void 0,void 0,(function(){return g(this,(function(e){switch(e.label){case 0:return[4,this.api.delete("".concat(this.route).concat(t.id))];case 1:return[2,e.sent().data]}}))}))},t}(),Lr=Object.freeze({__proto__:null,default:Tr}),xr=function(t){var e=t.processEnvironment,n=t.services,i=t.gatewayUrl,r=t.apikey,o=this;this.processEnvironment=e||"localhost",this.defaultHeaders=r?{apikey:r}:void 0,this.client=y.create({baseURL:i,headers:this.defaultHeaders});var u=function(t){var i=n[t],o="localhost"===e?"/":"".concat(t,"/").concat(r?"apikey/":"auth/"),u="localhost"===e?"/":"".concat(t,"/public/");return{authPath:"".concat(i).concat(o),publicPath:"".concat(i).concat(u)}};this.services={stock:u("stock"),users:u("users"),integration:u("integration"),documents:u("documents"),view:u("view"),print:u("print"),tickets:u("tickets"),stockworker:u("stockworker")};var c=function(t,e){return{api:o.client,route:"".concat(o.services[t].authPath).concat(e,"/"),publicRoute:"".concat(o.services[t].publicPath).concat(e,"/")}};this.Attribute=new P(c("stock","attribute")),this.AttributeValue=new B(c("stock","attribute_value")),this.BankData=new j(c("users","bank_data")),this.Client=new S(c("users","client")),this.ClientType=new E(c("users","client_type")),this.Color=new T(c("stock","color")),this.Commissioner=new x(c("users","commissioner")),this.Composition=new U(c("stock","composition")),this.CompositionMaterial=new F(c("stock","composition_material")),this.Country=new V(c("users","country")),this.DocumentHeader=new q(c("stock","document_header")),this.DocumentLine=new W(c("stock","document_line")),this.DocumentLineAssoc=new J(c("stock","document_line_assoc")),this.DocumentLineFolder=new X(c("stock","document_line_folder")),this.DocumentType=new et(c("stock","document_type")),this.Favorites=new it(c("users","favorite")),this.Field=new ct(c("integration","field")),this.FieldGroup=new ht(c("integration","field_group")),this.File=new pt(c("integration","file")),this.GoogleSheets=new lt(c("integration","google")),this.GroupPermissions=new bt(c("users","group_permission")),this.History=new gt(c("integration","history")),this.Language=new Rt(c("users","language")),this.Location=new It(c("stock","location")),this.Logout=new kt(c("users","logout")),this.Maintenance=new zt(c("stock","maintenance")),this.MaintenanceAssoc=new Mt(c("stock","maintenance_assoc")),this.MaintenanceType=new Ct(c("stock","maintenance_type")),this.MaintenancePreset=new Lt(c("stock","maintenance_preset")),this.MaintenancePresetAssoc=new Dt(c("stock","maintenance_preset_assoc")),this.Multimedia=new At(c("documents","multimedia")),this.Observation=new Ht(c("integration","observation")),this.ObservationType=new Nt(c("integration","observation_type")),this.PaymentConditions=new Qt(c("users","payment_condition")),this.Password=new Wt(c("users","password")),this.Permissions=new Jt(c("users","permission")),this.PrimaryColor=new Xt(c("stock","primary_color")),this.Product=new ee(c("stock","product")),this.ProductAttribute=new ie(c("stock","product_attribute")),this.ProductCategory=new oe(c("stock","product_category")),this.ProductColor=new ce(c("stock","product_color")),this.ProductImage=new de(c("stock","product_image")),this.ProductPart=new fe(c("stock","product_part")),this.ProductSubCategory=new ve(c("stock","product_sub_category")),this.ProductUse=new ye(c("stock","product_use")),this.ProductUseAssoc=new _e(c("stock","product_use_assoc")),this.ProductName=new ge(c("stock","product_name")),this.Promotion=new Re(c("stock","promotion")),this.PromotionAssoc=new Ie(c("stock","promotion_assoc")),this.Providers=new ke(c("users","provider")),this.ProviderType=new ze(c("users","provider_type")),this.PurchaseConditions=new Me(c("users","purchase_condition")),this.ReasonForExemption=new Ce(c("users","reason_for_exemption")),this.RefreshToken=new Le(c("users","refresh-token")),this.SegmentsArea=new De(c("users","segments_area")),this.Sessions=new Ae(c("users","sessions")),this.Shippings=new He(c("users","shipping")),this.SimilarProduct=new Ne(c("stock","similar_product")),this.SocialMedia=new Qe(c("users","social_media")),this.StoreOperator=new We(c("users","store_operator")),this.Swift=new Je(c("users","swift")),this.TypeOfInventory=new Xe(c("stock","type_of_inventory")),this.TypeOfLocation=new $e(c("stock","type_of_location")),this.UnitOfMeasure=new en(c("stock","unit_of_measure")),this.UserPermissions=new rn(c("users","user_permission")),this.UserPositions=new un(c("users","user_position")),this.Users=new an(c("users","users")),this.VatTax=new hn(c("stock","vat_tax")),this.VatTaxZone=new pn(c("stock","vat_tax_zone")),this.Workflow=new ln(c("stock","workflow")),this.DeliveryMethods=new bn(c("users","delivery_methods")),this.MaturityDates=new wn(c("users","maturity_dates")),this.PaymentMethods=new mn(c("users","payment_methods")),this.Vehicles=new On(c("users","vehicles")),this.ExternalDocumentType=new Pn(c("stock","external_document_type")),this.DocumentSet=new Bn(c("stock","document_set")),this.Payment=new jn(c("stock","payment")),this.ExternalDocumentHeader=new Sn(c("stock","external_document_header")),this.ClientCurrentAccount=new En(c("stock","client_current_account")),this.ProviderCurrentAccount=new Tn(c("stock","provider_current_account")),this.MoloniRequest=new xn(c("stock","moloni_request")),this.VatValidation=new Un(c("stock","vat_validation")),this.ProductNamePreset=new Fn(c("stock","product_name_preset")),this.StockMovement=new Gn(c("stock","stock_movement")),this.ZipCode=new Zn(c("users","zip_code")),this.Tenant=new Kn(c("users","tenant")),this.PreSale=new Yn(c("stock","pre_sale")),this.PreSaleProduct=new ti(c("stock","pre_sale_product")),this.Cabide=new ii(c("stock","cabide")),this.CabideProduct=new oi(c("stock","cabide_product")),this.OrderManagement=new ci(c("stock","order_management")),this.Npc=new si(c("print","npc")),this.Printer=new di(c("print","printer")),this.SchedulePrintJob=new fi(c("print","schedule_print_job")),this.QueryList=new bi(c("stock","query")),this.QueryParameter=new _i(c("stock","query_parameter")),this.ReturnReason=new gi(c("stock","return_reason")),this.PropostaSheets=new Pi(c("stock","proposta_sheets")),this.Schedule=new zi(c("stock","schedule")),this.GoogleFilePermission=new Mi(c("integration","google_file_permission")),this.Settings=new Ci(c("integration","settings")),this.Tickets=new Li(c("tickets","tickets")),this.Channel=new Di(c("tickets","channel")),this.TicketsLanguage=new Ai(c("tickets","tickets_language")),this.Clt=new Hi(c("tickets","clt")),this.StartDocumentHeaderLastUpdate=new Ni(c("stock","start_document_header_last_update")),this.ErrorHandler=new Qi(c("integration","error_handler")),this.Persona=new Wi(c("users","persona")),this.ProjectInfo=new Ji(c("integration","project_info")),this.Order=new $i(c("stock","order")),this.Purchase=new er(c("stock","purchase")),this.MaterialEntrance=new sr(c("stock","material_entrance")),this.Transformado=new dr(c("stock","transformado")),this.UpfrontReturn=new fr(c("stock","upfront_return")),this.SavedEmPicking=new vr(c("stock","saved_em_picking")),this.EmailTemplate=new yr(c("integration","email_template")),this.EmailTemplateAttachment=new _r(c("integration","email_template_attachment")),this.Prison=new Or(c("stock","prison")),this.Quebra=new Pr(c("stock","quebra")),this.Inventario=new Br(c("stock","inventario")),this.ReturnToProvider=new jr(c("stock","return_to_provider")),this.EmailLog=new Sr(c("integration","email_log")),this.DocumentLineNote=new Er(c("stock","document_line_note")),this.SavedProviderProposal=new Tr(c("stock","saved_provider_proposal"))};export{xr as API,I as Attribute,k as AttributeValue,z as BankData,ri as Cabide,ui as CabideProduct,Ui as Channel,M as Client,Cn as ClientCurrentAccount,C as ClientType,Vi as Clt,L as Color,D as Commissioner,A as Composition,H as CompositionMaterial,N as Country,yn as DeliveryMethods,Q as DocumentHeader,Z as DocumentLine,K as DocumentLineAssoc,Y as DocumentLineFolder,Cr as DocumentLineNote,kn as DocumentSet,nt as DocumentType,Mr as EmailLog,wr as EmailTemplate,mr as EmailTemplateAttachment,Gi as ErrorHandler,Mn as ExternalDocumentHeader,In as ExternalDocumentType,rt as Favorites,at as Field,dt as FieldGroup,ft as File,Ei as GoogleFilePermission,vt as GoogleSheets,yt as GroupPermissions,Ot as History,kr as Inventario,Pt as Language,Bt as Location,jt as Logout,St as Maintenance,Et as MaintenanceAssoc,xt as MaintenancePreset,Ut as MaintenancePresetAssoc,Tt as MaintenanceType,hr as MaterialEntrance,_n as MaturityDates,Dn as MoloniRequest,Ft as Multimedia,hi as Npc,Vt as Observation,qt as ObservationType,tr as Order,ai as OrderManagement,Zt as Password,zn as Payment,Gt as PaymentConditions,gn as PaymentMethods,Kt as Permissions,Zi as Persona,$n as PreSale,ei as PreSaleProduct,Yt as PrimaryColor,pi as Printer,Rr as Prison,ne as Product,re as ProductAttribute,ue as ProductCategory,ae as ProductColor,pe as ProductImage,Oe as ProductName,Hn as ProductNamePreset,le as ProductPart,be as ProductSubCategory,we as ProductUse,me as ProductUseAssoc,Ki as ProjectInfo,Pe as Promotion,Be as PromotionAssoc,Ii as PropostaSheets,Ln as ProviderCurrentAccount,Se as ProviderType,je as Providers,nr as Purchase,Ee as PurchaseConditions,Ir as Quebra,yi as QueryList,mi as QueryParameter,Te as ReasonForExemption,xe as RefreshToken,Oi as ReturnReason,zr as ReturnToProvider,br as SavedEmPicking,Lr as SavedProviderProposal,Si as Schedule,li as SchedulePrintJob,Ue as SegmentsArea,Fe as Sessions,Ti as Settings,Ve as Shippings,qe as SimilarProduct,Ge as SocialMedia,qi as StartDocumentHeaderLastUpdate,Wn as StockMovement,Ze as StoreOperator,Ke as Swift,Xn as Tenant,xi as Tickets,Fi as TicketsLanguage,pr as Transformado,Ye as TypeOfInventory,tn as TypeOfLocation,nn as UnitOfMeasure,lr as UpfrontReturn,on as UserPermissions,cn as UserPositions,sn as Users,dn as VatTax,fn as VatTaxZone,An as VatValidation,Rn as Vehicles,vn as Workflow,Jn as ZipCode};
@@ -31,5 +31,5 @@ export default class Repository implements Entity.IApi {
31
31
  findUnfinishedPickings({ id, }: shared.IFindByIdRequest): Promise<IUnfinishedPickingsResponse[]>;
32
32
  finalizarEntradaMaterial(data: IFinalizarEntradaDeMaterialRequest): Promise<IFinalizarEntradaDeMaterialResponse>;
33
33
  undoEntradaMaterial(data: IUndoEntradaDeMaterialRequest): Promise<void>;
34
- printLabelToPdfUrl({ document_line_id, product_id }: IPrintLabelParamsRequest, { quantity, pc_document_number, prison }: IPrintLabelQueryRequest, token: string): string;
34
+ printLabelToPdfUrl({ document_line_id, product_id }: IPrintLabelParamsRequest, { quantity, pc_document_number, prison, note }: IPrintLabelQueryRequest, token: string): string;
35
35
  }