@integrahub/vergefy-client 0.23.0 → 0.25.0

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 (380) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/AILAIKTenantModelKeysApi.d.ts +129 -0
  3. package/dist/apis/AILAIKTenantModelKeysApi.js +311 -0
  4. package/dist/apis/APIAASAssociationApi.d.ts +2 -0
  5. package/dist/apis/APIAASAssociationApi.js +4 -2
  6. package/dist/apis/APIAAUSTAutomationWorkflowSandboxApi.d.ts +4 -4
  7. package/dist/apis/APIAAUSTAutomationWorkflowSandboxApi.js +4 -4
  8. package/dist/apis/APIAAUWEXAutomationWorkflowStepExecutionApi.d.ts +2 -2
  9. package/dist/apis/APIAAUWEXAutomationWorkflowStepExecutionApi.js +2 -2
  10. package/dist/apis/APIAAUWFAutomationWorkflowApi.d.ts +24 -24
  11. package/dist/apis/APIAAUWFAutomationWorkflowApi.js +24 -24
  12. package/dist/apis/APIAAUWIAutomationWorkflowInstanceApi.d.ts +10 -10
  13. package/dist/apis/APIAAUWIAutomationWorkflowInstanceApi.js +10 -10
  14. package/dist/apis/APIAAUWSEAutomationWorkflowStepEdgeApi.d.ts +2 -2
  15. package/dist/apis/APIAAUWSEAutomationWorkflowStepEdgeApi.js +2 -2
  16. package/dist/apis/APIACFCustomFieldOptionApi.d.ts +4 -4
  17. package/dist/apis/APIACFCustomFieldOptionApi.js +4 -4
  18. package/dist/apis/APIACTContentApi.d.ts +8 -8
  19. package/dist/apis/APIACTContentApi.js +8 -8
  20. package/dist/apis/APIADIDataImporterApi.d.ts +80 -80
  21. package/dist/apis/APIADIDataImporterApi.js +80 -80
  22. package/dist/apis/APIADODocumentApi.d.ts +8 -8
  23. package/dist/apis/APIADODocumentApi.js +8 -8
  24. package/dist/apis/APIAGRGoodsReceiptApi.d.ts +1 -10
  25. package/dist/apis/APIAGRGoodsReceiptApi.js +1 -11
  26. package/dist/apis/APIAPRFProductFeatureApi.d.ts +4 -4
  27. package/dist/apis/APIAPRFProductFeatureApi.js +4 -4
  28. package/dist/apis/APIAPRPProductPriceApi.d.ts +12 -12
  29. package/dist/apis/APIAPRPProductPriceApi.js +12 -12
  30. package/dist/apis/APIARQRequirementApi.d.ts +42 -42
  31. package/dist/apis/APIARQRequirementApi.js +42 -42
  32. package/dist/apis/APIARSGReorderSuggestionApi.d.ts +61 -0
  33. package/dist/apis/APIARSGReorderSuggestionApi.js +158 -0
  34. package/dist/apis/APIASPLSupplierPriceListApi.d.ts +137 -0
  35. package/dist/apis/APIASPLSupplierPriceListApi.js +394 -0
  36. package/dist/apis/APIASPOSupplierPurchaseOrderApi.d.ts +329 -0
  37. package/dist/apis/APIASPOSupplierPurchaseOrderApi.js +912 -0
  38. package/dist/apis/APIASPRSupplierPurchaseOrderApprovalRuleApi.d.ts +131 -0
  39. package/dist/apis/APIASPRSupplierPurchaseOrderApprovalRuleApi.js +369 -0
  40. package/dist/apis/APIATKTaskApi.d.ts +124 -124
  41. package/dist/apis/APIATKTaskApi.js +124 -124
  42. package/dist/apis/APIIntegrationConfigurationApi.d.ts +21 -0
  43. package/dist/apis/APIIntegrationConfigurationApi.js +60 -0
  44. package/dist/apis/APPPCRCRMApi.d.ts +12 -12
  45. package/dist/apis/APPPCRCRMApi.js +12 -12
  46. package/dist/apis/APPPCRCRMSalesBoardApi.d.ts +16 -16
  47. package/dist/apis/APPPCRCRMSalesBoardApi.js +16 -16
  48. package/dist/apis/APPPCRCRMSupportTicketApi.d.ts +16 -16
  49. package/dist/apis/APPPCRCRMSupportTicketApi.js +16 -16
  50. package/dist/apis/APPPCRDCRMDealApi.d.ts +16 -16
  51. package/dist/apis/APPPCRDCRMDealApi.js +16 -16
  52. package/dist/apis/APPPCRLCRMLeadApi.d.ts +8 -8
  53. package/dist/apis/APPPCRLCRMLeadApi.js +8 -8
  54. package/dist/apis/APPPCRPCRMPipelineApi.d.ts +12 -12
  55. package/dist/apis/APPPCRPCRMPipelineApi.js +12 -12
  56. package/dist/apis/APPPCRTCRMTaskApi.d.ts +36 -36
  57. package/dist/apis/APPPCRTCRMTaskApi.js +36 -36
  58. package/dist/apis/APPPFMAFormActionApi.d.ts +8 -8
  59. package/dist/apis/APPPFMAFormActionApi.js +8 -8
  60. package/dist/apis/APPPFMCFormConfigurationApi.d.ts +8 -8
  61. package/dist/apis/APPPFMCFormConfigurationApi.js +8 -8
  62. package/dist/apis/APPPFMGFormGroupApi.d.ts +8 -8
  63. package/dist/apis/APPPFMGFormGroupApi.js +8 -8
  64. package/dist/apis/APPPFMSFormSessionApi.d.ts +8 -8
  65. package/dist/apis/APPPFMSFormSessionApi.js +8 -8
  66. package/dist/apis/APPPFTPFormTemplateApi.d.ts +8 -8
  67. package/dist/apis/APPPFTPFormTemplateApi.js +8 -8
  68. package/dist/apis/APPPHRAWHRApprovalWorkflowApi.d.ts +1 -0
  69. package/dist/apis/APPPHRAWHRApprovalWorkflowApi.js +3 -0
  70. package/dist/apis/APPPINAIInsuranceAIApi.d.ts +158 -0
  71. package/dist/apis/APPPINAIInsuranceAIApi.js +446 -0
  72. package/dist/apis/APPPINPInsurancePolicyApi.d.ts +8 -6
  73. package/dist/apis/APPPINPInsurancePolicyApi.js +12 -6
  74. package/dist/apis/APPPMECMailEngineCampaignApi.d.ts +8 -8
  75. package/dist/apis/APPPMECMailEngineCampaignApi.js +8 -8
  76. package/dist/apis/APPPMEGMailEngineSegmentApi.d.ts +32 -32
  77. package/dist/apis/APPPMEGMailEngineSegmentApi.js +32 -32
  78. package/dist/apis/APPPMEOMailEngineComplianceApi.d.ts +12 -12
  79. package/dist/apis/APPPMEOMailEngineComplianceApi.js +12 -12
  80. package/dist/apis/APPPMESMailEngineSubscriptionApi.d.ts +28 -28
  81. package/dist/apis/APPPMESMailEngineSubscriptionApi.js +28 -28
  82. package/dist/apis/APPPMETMailEngineTemplateApi.d.ts +12 -12
  83. package/dist/apis/APPPMETMailEngineTemplateApi.js +12 -12
  84. package/dist/apis/APPPMTMailTrustApi.d.ts +65 -66
  85. package/dist/apis/APPPMTMailTrustApi.js +64 -67
  86. package/dist/apis/APPPPMCPMSSystemConfigurationApi.d.ts +4 -4
  87. package/dist/apis/APPPPMCPMSSystemConfigurationApi.js +4 -4
  88. package/dist/apis/APPPPMPMSApi.d.ts +48 -48
  89. package/dist/apis/APPPPMPMSApi.js +48 -48
  90. package/dist/apis/PLATFORMLPOPlatformOrderApi.d.ts +10 -10
  91. package/dist/apis/PLATFORMLPOPlatformOrderApi.js +10 -10
  92. package/dist/apis/PLATFORMLPSPlatformServiceApi.d.ts +1 -0
  93. package/dist/apis/PLATFORMLPSPlatformServiceApi.js +2 -1
  94. package/dist/apis/PLATFORMLTNPTenantPrincipalMetricsApi.d.ts +63 -0
  95. package/dist/apis/PLATFORMLTNPTenantPrincipalMetricsApi.js +164 -0
  96. package/dist/apis/PLATFORMLTNPTenantPrincipalsApi.d.ts +450 -0
  97. package/dist/apis/PLATFORMLTNPTenantPrincipalsApi.js +1245 -0
  98. package/dist/apis/index.d.ts +8 -0
  99. package/dist/apis/index.js +8 -0
  100. package/dist/esm/apis/AILAIKTenantModelKeysApi.js +307 -0
  101. package/dist/esm/apis/APIAASAssociationApi.js +4 -2
  102. package/dist/esm/apis/APIAAUSTAutomationWorkflowSandboxApi.js +4 -4
  103. package/dist/esm/apis/APIAAUWEXAutomationWorkflowStepExecutionApi.js +2 -2
  104. package/dist/esm/apis/APIAAUWFAutomationWorkflowApi.js +24 -24
  105. package/dist/esm/apis/APIAAUWIAutomationWorkflowInstanceApi.js +10 -10
  106. package/dist/esm/apis/APIAAUWSEAutomationWorkflowStepEdgeApi.js +2 -2
  107. package/dist/esm/apis/APIACFCustomFieldOptionApi.js +4 -4
  108. package/dist/esm/apis/APIACTContentApi.js +8 -8
  109. package/dist/esm/apis/APIADIDataImporterApi.js +80 -80
  110. package/dist/esm/apis/APIADODocumentApi.js +8 -8
  111. package/dist/esm/apis/APIAGRGoodsReceiptApi.js +0 -10
  112. package/dist/esm/apis/APIAPRFProductFeatureApi.js +4 -4
  113. package/dist/esm/apis/APIAPRPProductPriceApi.js +12 -12
  114. package/dist/esm/apis/APIARQRequirementApi.js +42 -42
  115. package/dist/esm/apis/APIARSGReorderSuggestionApi.js +154 -0
  116. package/dist/esm/apis/APIASPLSupplierPriceListApi.js +390 -0
  117. package/dist/esm/apis/APIASPOSupplierPurchaseOrderApi.js +908 -0
  118. package/dist/esm/apis/APIASPRSupplierPurchaseOrderApprovalRuleApi.js +365 -0
  119. package/dist/esm/apis/APIATKTaskApi.js +124 -124
  120. package/dist/esm/apis/APIIntegrationConfigurationApi.js +60 -0
  121. package/dist/esm/apis/APPPCRCRMApi.js +12 -12
  122. package/dist/esm/apis/APPPCRCRMSalesBoardApi.js +16 -16
  123. package/dist/esm/apis/APPPCRCRMSupportTicketApi.js +16 -16
  124. package/dist/esm/apis/APPPCRDCRMDealApi.js +16 -16
  125. package/dist/esm/apis/APPPCRLCRMLeadApi.js +8 -8
  126. package/dist/esm/apis/APPPCRPCRMPipelineApi.js +12 -12
  127. package/dist/esm/apis/APPPCRTCRMTaskApi.js +36 -36
  128. package/dist/esm/apis/APPPFMAFormActionApi.js +8 -8
  129. package/dist/esm/apis/APPPFMCFormConfigurationApi.js +8 -8
  130. package/dist/esm/apis/APPPFMGFormGroupApi.js +8 -8
  131. package/dist/esm/apis/APPPFMSFormSessionApi.js +8 -8
  132. package/dist/esm/apis/APPPFTPFormTemplateApi.js +8 -8
  133. package/dist/esm/apis/APPPHRAWHRApprovalWorkflowApi.js +3 -0
  134. package/dist/esm/apis/APPPINAIInsuranceAIApi.js +442 -0
  135. package/dist/esm/apis/APPPINPInsurancePolicyApi.js +12 -6
  136. package/dist/esm/apis/APPPMECMailEngineCampaignApi.js +8 -8
  137. package/dist/esm/apis/APPPMEGMailEngineSegmentApi.js +32 -32
  138. package/dist/esm/apis/APPPMEOMailEngineComplianceApi.js +12 -12
  139. package/dist/esm/apis/APPPMESMailEngineSubscriptionApi.js +28 -28
  140. package/dist/esm/apis/APPPMETMailEngineTemplateApi.js +12 -12
  141. package/dist/esm/apis/APPPMTMailTrustApi.js +64 -67
  142. package/dist/esm/apis/APPPPMCPMSSystemConfigurationApi.js +4 -4
  143. package/dist/esm/apis/APPPPMPMSApi.js +48 -48
  144. package/dist/esm/apis/PLATFORMLPOPlatformOrderApi.js +10 -10
  145. package/dist/esm/apis/PLATFORMLPSPlatformServiceApi.js +2 -1
  146. package/dist/esm/apis/PLATFORMLTNPTenantPrincipalMetricsApi.js +160 -0
  147. package/dist/esm/apis/PLATFORMLTNPTenantPrincipalsApi.js +1241 -0
  148. package/dist/esm/apis/index.js +8 -0
  149. package/dist/esm/ext/telemetry.js +1 -1
  150. package/dist/esm/models/AgentApprovalActionDTO.js +47 -0
  151. package/dist/esm/models/AgentCostSummaryDTO.js +49 -0
  152. package/dist/esm/models/AgentPrincipalCredentialsDTO.js +46 -0
  153. package/dist/esm/models/AgentTokenDTO.js +45 -0
  154. package/dist/esm/models/AgentTokenRequestDTO.js +45 -0
  155. package/dist/esm/models/AssociationDTO.js +4 -2
  156. package/dist/esm/models/ConnectorListingDTO.js +161 -0
  157. package/dist/esm/models/CreateAgentPrincipalDTO.js +57 -0
  158. package/dist/esm/models/DataResponseDTOAgentPrincipalCredentialsDTO.js +42 -0
  159. package/dist/esm/models/DataResponseDTOAgentTokenDTO.js +42 -0
  160. package/dist/esm/models/DataResponseDTOInsuranceAiRequestDTO.js +42 -0
  161. package/dist/esm/models/DataResponseDTOListAgentApprovalActionDTO.js +42 -0
  162. package/dist/esm/models/DataResponseDTOListAgentCostSummaryDTO.js +42 -0
  163. package/dist/esm/models/DataResponseDTOListConnectorListingDTO.js +42 -0
  164. package/dist/esm/models/DataResponseDTOListInsuranceAiRequestDTO.js +42 -0
  165. package/dist/esm/models/DataResponseDTOListMcpClientFamilyDTO.js +42 -0
  166. package/dist/esm/models/DataResponseDTOListPrincipalAuditEventDTO.js +42 -0
  167. package/dist/esm/models/DataResponseDTOListReorderSuggestionDTO.js +42 -0
  168. package/dist/esm/models/DataResponseDTOListSupplierPurchaseOrderDTO.js +42 -0
  169. package/dist/esm/models/DataResponseDTOListTenantModelKeyDTO.js +42 -0
  170. package/dist/esm/models/DataResponseDTOPrincipalApprovalRequestDTO.js +42 -0
  171. package/dist/esm/models/DataResponseDTOPrincipalDTO.js +42 -0
  172. package/dist/esm/models/DataResponseDTOPrincipalPolicyDTO.js +42 -0
  173. package/dist/esm/models/DataResponseDTOPrincipalWorkShareDTO.js +42 -0
  174. package/dist/esm/models/DataResponseDTOSupplierPriceDTO.js +42 -0
  175. package/dist/esm/models/DataResponseDTOSupplierPriceListDTO.js +42 -0
  176. package/dist/esm/models/DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO.js +42 -0
  177. package/dist/esm/models/DataResponseDTOSupplierPurchaseOrderBillMatchDTO.js +42 -0
  178. package/dist/esm/models/DataResponseDTOSupplierPurchaseOrderDTO.js +42 -0
  179. package/dist/esm/models/DataResponseDTOSupplierPurchaseOrderMatchDTO.js +42 -0
  180. package/dist/esm/models/DataResponseDTOTenantModelKeyCredentialDTO.js +42 -0
  181. package/dist/esm/models/DataResponseDTOTenantModelKeyDTO.js +42 -0
  182. package/dist/esm/models/DeveloperApiKeyDTO.js +2 -0
  183. package/dist/esm/models/GoodsReceiptLineDTO.js +2 -0
  184. package/dist/esm/models/InsuranceAiRequestDTO.js +100 -0
  185. package/dist/esm/models/InsuranceClaimCreateDTO.js +3 -1
  186. package/dist/esm/models/MailSubscription.js +2 -0
  187. package/dist/esm/models/McpClientFamilyDTO.js +43 -0
  188. package/dist/esm/models/PagePrincipalApprovalRequestDTO.js +64 -0
  189. package/dist/esm/models/PagePrincipalDTO.js +64 -0
  190. package/dist/esm/models/PageSupplierPriceListDTO.js +64 -0
  191. package/dist/esm/models/PageSupplierPurchaseOrderApprovalRuleDTO.js +64 -0
  192. package/dist/esm/models/PageSupplierPurchaseOrderDTO.js +64 -0
  193. package/dist/esm/models/PlatformServiceDTO.js +2 -1
  194. package/dist/esm/models/PrincipalAgentWorkDTO.js +45 -0
  195. package/dist/esm/models/PrincipalApprovalDecisionDTO.js +43 -0
  196. package/dist/esm/models/PrincipalApprovalRequestDTO.js +92 -0
  197. package/dist/esm/models/PrincipalAuditEventDTO.js +85 -0
  198. package/dist/esm/models/PrincipalDTO.js +112 -0
  199. package/dist/esm/models/PrincipalModuleWorkShareDTO.js +47 -0
  200. package/dist/esm/models/PrincipalPolicyDTO.js +43 -0
  201. package/dist/esm/models/PrincipalUpdateDTO.js +57 -0
  202. package/dist/esm/models/PrincipalWorkShareDTO.js +59 -0
  203. package/dist/esm/models/PurchaseBillCreateDTO.js +2 -0
  204. package/dist/esm/models/PurchaseBillDTO.js +2 -0
  205. package/dist/esm/models/PurchaseBillLineCreateDTO.js +2 -0
  206. package/dist/esm/models/PurchaseBillLineDTO.js +2 -0
  207. package/dist/esm/models/ReorderSuggestionDTO.js +63 -0
  208. package/dist/esm/models/ReorderSuggestionDraftDTO.js +44 -0
  209. package/dist/esm/models/ReorderSuggestionSelectionDTO.js +43 -0
  210. package/dist/esm/models/SupplierPriceDTO.js +61 -0
  211. package/dist/esm/models/SupplierPriceListDTO.js +97 -0
  212. package/dist/esm/models/SupplierPriceListLineDTO.js +88 -0
  213. package/dist/esm/models/SupplierPurchaseOrderApprovalRuleDTO.js +86 -0
  214. package/dist/esm/models/SupplierPurchaseOrderBillLineMatchDTO.js +65 -0
  215. package/dist/esm/models/SupplierPurchaseOrderBillMatchDTO.js +67 -0
  216. package/dist/esm/models/SupplierPurchaseOrderDTO.js +153 -0
  217. package/dist/esm/models/SupplierPurchaseOrderLineDTO.js +107 -0
  218. package/dist/esm/models/SupplierPurchaseOrderLineMatchDTO.js +74 -0
  219. package/dist/esm/models/SupplierPurchaseOrderMatchDTO.js +73 -0
  220. package/dist/esm/models/SupplierPurchaseOrderRejectionDTO.js +43 -0
  221. package/dist/esm/models/TenantModelKeyCredentialDTO.js +54 -0
  222. package/dist/esm/models/TenantModelKeyDTO.js +58 -0
  223. package/dist/esm/models/TenantModelKeyUpsertDTO.js +45 -0
  224. package/dist/esm/models/TransferPrincipalSponsorDTO.js +43 -0
  225. package/dist/esm/models/index.js +65 -0
  226. package/dist/ext/telemetry.d.ts +1 -1
  227. package/dist/ext/telemetry.js +1 -1
  228. package/dist/models/AgentApprovalActionDTO.d.ts +50 -0
  229. package/dist/models/AgentApprovalActionDTO.js +54 -0
  230. package/dist/models/AgentCostSummaryDTO.d.ts +56 -0
  231. package/dist/models/AgentCostSummaryDTO.js +56 -0
  232. package/dist/models/AgentPrincipalCredentialsDTO.d.ts +45 -0
  233. package/dist/models/AgentPrincipalCredentialsDTO.js +53 -0
  234. package/dist/models/AgentTokenDTO.d.ts +44 -0
  235. package/dist/models/AgentTokenDTO.js +52 -0
  236. package/dist/models/AgentTokenRequestDTO.d.ts +38 -0
  237. package/dist/models/AgentTokenRequestDTO.js +52 -0
  238. package/dist/models/AssociationDTO.d.ts +2 -0
  239. package/dist/models/AssociationDTO.js +4 -2
  240. package/dist/models/ConnectorListingDTO.d.ts +175 -0
  241. package/dist/models/ConnectorListingDTO.js +169 -0
  242. package/dist/models/CreateAgentPrincipalDTO.d.ts +59 -0
  243. package/dist/models/CreateAgentPrincipalDTO.js +65 -0
  244. package/dist/models/DataResponseDTOAgentPrincipalCredentialsDTO.d.ts +33 -0
  245. package/dist/models/DataResponseDTOAgentPrincipalCredentialsDTO.js +49 -0
  246. package/dist/models/DataResponseDTOAgentTokenDTO.d.ts +33 -0
  247. package/dist/models/DataResponseDTOAgentTokenDTO.js +49 -0
  248. package/dist/models/DataResponseDTOInsuranceAiRequestDTO.d.ts +33 -0
  249. package/dist/models/DataResponseDTOInsuranceAiRequestDTO.js +49 -0
  250. package/dist/models/DataResponseDTOListAgentApprovalActionDTO.d.ts +33 -0
  251. package/dist/models/DataResponseDTOListAgentApprovalActionDTO.js +49 -0
  252. package/dist/models/DataResponseDTOListAgentCostSummaryDTO.d.ts +33 -0
  253. package/dist/models/DataResponseDTOListAgentCostSummaryDTO.js +49 -0
  254. package/dist/models/DataResponseDTOListConnectorListingDTO.d.ts +33 -0
  255. package/dist/models/DataResponseDTOListConnectorListingDTO.js +49 -0
  256. package/dist/models/DataResponseDTOListInsuranceAiRequestDTO.d.ts +33 -0
  257. package/dist/models/DataResponseDTOListInsuranceAiRequestDTO.js +49 -0
  258. package/dist/models/DataResponseDTOListMcpClientFamilyDTO.d.ts +33 -0
  259. package/dist/models/DataResponseDTOListMcpClientFamilyDTO.js +49 -0
  260. package/dist/models/DataResponseDTOListPrincipalAuditEventDTO.d.ts +33 -0
  261. package/dist/models/DataResponseDTOListPrincipalAuditEventDTO.js +49 -0
  262. package/dist/models/DataResponseDTOListReorderSuggestionDTO.d.ts +33 -0
  263. package/dist/models/DataResponseDTOListReorderSuggestionDTO.js +49 -0
  264. package/dist/models/DataResponseDTOListSupplierPurchaseOrderDTO.d.ts +33 -0
  265. package/dist/models/DataResponseDTOListSupplierPurchaseOrderDTO.js +49 -0
  266. package/dist/models/DataResponseDTOListTenantModelKeyDTO.d.ts +33 -0
  267. package/dist/models/DataResponseDTOListTenantModelKeyDTO.js +49 -0
  268. package/dist/models/DataResponseDTOPrincipalApprovalRequestDTO.d.ts +33 -0
  269. package/dist/models/DataResponseDTOPrincipalApprovalRequestDTO.js +49 -0
  270. package/dist/models/DataResponseDTOPrincipalDTO.d.ts +33 -0
  271. package/dist/models/DataResponseDTOPrincipalDTO.js +49 -0
  272. package/dist/models/DataResponseDTOPrincipalPolicyDTO.d.ts +33 -0
  273. package/dist/models/DataResponseDTOPrincipalPolicyDTO.js +49 -0
  274. package/dist/models/DataResponseDTOPrincipalWorkShareDTO.d.ts +33 -0
  275. package/dist/models/DataResponseDTOPrincipalWorkShareDTO.js +49 -0
  276. package/dist/models/DataResponseDTOSupplierPriceDTO.d.ts +33 -0
  277. package/dist/models/DataResponseDTOSupplierPriceDTO.js +49 -0
  278. package/dist/models/DataResponseDTOSupplierPriceListDTO.d.ts +33 -0
  279. package/dist/models/DataResponseDTOSupplierPriceListDTO.js +49 -0
  280. package/dist/models/DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO.d.ts +33 -0
  281. package/dist/models/DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO.js +49 -0
  282. package/dist/models/DataResponseDTOSupplierPurchaseOrderBillMatchDTO.d.ts +33 -0
  283. package/dist/models/DataResponseDTOSupplierPurchaseOrderBillMatchDTO.js +49 -0
  284. package/dist/models/DataResponseDTOSupplierPurchaseOrderDTO.d.ts +33 -0
  285. package/dist/models/DataResponseDTOSupplierPurchaseOrderDTO.js +49 -0
  286. package/dist/models/DataResponseDTOSupplierPurchaseOrderMatchDTO.d.ts +33 -0
  287. package/dist/models/DataResponseDTOSupplierPurchaseOrderMatchDTO.js +49 -0
  288. package/dist/models/DataResponseDTOTenantModelKeyCredentialDTO.d.ts +33 -0
  289. package/dist/models/DataResponseDTOTenantModelKeyCredentialDTO.js +49 -0
  290. package/dist/models/DataResponseDTOTenantModelKeyDTO.d.ts +33 -0
  291. package/dist/models/DataResponseDTOTenantModelKeyDTO.js +49 -0
  292. package/dist/models/DeveloperApiKeyDTO.d.ts +6 -0
  293. package/dist/models/DeveloperApiKeyDTO.js +2 -0
  294. package/dist/models/GoodsReceiptLineDTO.d.ts +7 -1
  295. package/dist/models/GoodsReceiptLineDTO.js +2 -0
  296. package/dist/models/InsuranceAiRequestDTO.d.ts +188 -0
  297. package/dist/models/InsuranceAiRequestDTO.js +108 -0
  298. package/dist/models/InsuranceClaimCreateDTO.d.ts +1 -1
  299. package/dist/models/InsuranceClaimCreateDTO.js +3 -1
  300. package/dist/models/MailSubscription.d.ts +6 -0
  301. package/dist/models/MailSubscription.js +2 -0
  302. package/dist/models/McpClientFamilyDTO.d.ts +38 -0
  303. package/dist/models/McpClientFamilyDTO.js +50 -0
  304. package/dist/models/PagePrincipalApprovalRequestDTO.d.ts +95 -0
  305. package/dist/models/PagePrincipalApprovalRequestDTO.js +71 -0
  306. package/dist/models/PagePrincipalDTO.d.ts +95 -0
  307. package/dist/models/PagePrincipalDTO.js +71 -0
  308. package/dist/models/PageSupplierPriceListDTO.d.ts +95 -0
  309. package/dist/models/PageSupplierPriceListDTO.js +71 -0
  310. package/dist/models/PageSupplierPurchaseOrderApprovalRuleDTO.d.ts +95 -0
  311. package/dist/models/PageSupplierPurchaseOrderApprovalRuleDTO.js +71 -0
  312. package/dist/models/PageSupplierPurchaseOrderDTO.d.ts +95 -0
  313. package/dist/models/PageSupplierPurchaseOrderDTO.js +71 -0
  314. package/dist/models/PlatformServiceDTO.d.ts +1 -0
  315. package/dist/models/PlatformServiceDTO.js +2 -1
  316. package/dist/models/PrincipalAgentWorkDTO.d.ts +44 -0
  317. package/dist/models/PrincipalAgentWorkDTO.js +52 -0
  318. package/dist/models/PrincipalApprovalDecisionDTO.d.ts +32 -0
  319. package/dist/models/PrincipalApprovalDecisionDTO.js +50 -0
  320. package/dist/models/PrincipalApprovalRequestDTO.d.ts +164 -0
  321. package/dist/models/PrincipalApprovalRequestDTO.js +100 -0
  322. package/dist/models/PrincipalAuditEventDTO.d.ts +134 -0
  323. package/dist/models/PrincipalAuditEventDTO.js +93 -0
  324. package/dist/models/PrincipalDTO.d.ts +172 -0
  325. package/dist/models/PrincipalDTO.js +120 -0
  326. package/dist/models/PrincipalModuleWorkShareDTO.d.ts +50 -0
  327. package/dist/models/PrincipalModuleWorkShareDTO.js +54 -0
  328. package/dist/models/PrincipalPolicyDTO.d.ts +38 -0
  329. package/dist/models/PrincipalPolicyDTO.js +50 -0
  330. package/dist/models/PrincipalUpdateDTO.d.ts +59 -0
  331. package/dist/models/PrincipalUpdateDTO.js +65 -0
  332. package/dist/models/PrincipalWorkShareDTO.d.ts +82 -0
  333. package/dist/models/PrincipalWorkShareDTO.js +66 -0
  334. package/dist/models/PurchaseBillCreateDTO.d.ts +6 -0
  335. package/dist/models/PurchaseBillCreateDTO.js +2 -0
  336. package/dist/models/PurchaseBillDTO.d.ts +6 -0
  337. package/dist/models/PurchaseBillDTO.js +2 -0
  338. package/dist/models/PurchaseBillLineCreateDTO.d.ts +6 -0
  339. package/dist/models/PurchaseBillLineCreateDTO.js +2 -0
  340. package/dist/models/PurchaseBillLineDTO.d.ts +6 -0
  341. package/dist/models/PurchaseBillLineDTO.js +2 -0
  342. package/dist/models/ReorderSuggestionDTO.d.ts +98 -0
  343. package/dist/models/ReorderSuggestionDTO.js +70 -0
  344. package/dist/models/ReorderSuggestionDraftDTO.d.ts +33 -0
  345. package/dist/models/ReorderSuggestionDraftDTO.js +51 -0
  346. package/dist/models/ReorderSuggestionSelectionDTO.d.ts +38 -0
  347. package/dist/models/ReorderSuggestionSelectionDTO.js +50 -0
  348. package/dist/models/SupplierPriceDTO.d.ts +92 -0
  349. package/dist/models/SupplierPriceDTO.js +68 -0
  350. package/dist/models/SupplierPriceListDTO.d.ts +153 -0
  351. package/dist/models/SupplierPriceListDTO.js +105 -0
  352. package/dist/models/SupplierPriceListLineDTO.d.ts +140 -0
  353. package/dist/models/SupplierPriceListLineDTO.js +96 -0
  354. package/dist/models/SupplierPurchaseOrderApprovalRuleDTO.d.ts +134 -0
  355. package/dist/models/SupplierPurchaseOrderApprovalRuleDTO.js +94 -0
  356. package/dist/models/SupplierPurchaseOrderBillLineMatchDTO.d.ts +85 -0
  357. package/dist/models/SupplierPurchaseOrderBillLineMatchDTO.js +73 -0
  358. package/dist/models/SupplierPurchaseOrderBillMatchDTO.d.ts +76 -0
  359. package/dist/models/SupplierPurchaseOrderBillMatchDTO.js +75 -0
  360. package/dist/models/SupplierPurchaseOrderDTO.d.ts +289 -0
  361. package/dist/models/SupplierPurchaseOrderDTO.js +161 -0
  362. package/dist/models/SupplierPurchaseOrderLineDTO.d.ts +184 -0
  363. package/dist/models/SupplierPurchaseOrderLineDTO.js +115 -0
  364. package/dist/models/SupplierPurchaseOrderLineMatchDTO.d.ts +99 -0
  365. package/dist/models/SupplierPurchaseOrderLineMatchDTO.js +82 -0
  366. package/dist/models/SupplierPurchaseOrderMatchDTO.d.ts +94 -0
  367. package/dist/models/SupplierPurchaseOrderMatchDTO.js +81 -0
  368. package/dist/models/SupplierPurchaseOrderRejectionDTO.d.ts +32 -0
  369. package/dist/models/SupplierPurchaseOrderRejectionDTO.js +50 -0
  370. package/dist/models/TenantModelKeyCredentialDTO.d.ts +58 -0
  371. package/dist/models/TenantModelKeyCredentialDTO.js +62 -0
  372. package/dist/models/TenantModelKeyDTO.d.ts +70 -0
  373. package/dist/models/TenantModelKeyDTO.js +66 -0
  374. package/dist/models/TenantModelKeyUpsertDTO.d.ts +38 -0
  375. package/dist/models/TenantModelKeyUpsertDTO.js +52 -0
  376. package/dist/models/TransferPrincipalSponsorDTO.d.ts +32 -0
  377. package/dist/models/TransferPrincipalSponsorDTO.js +50 -0
  378. package/dist/models/index.d.ts +65 -0
  379. package/dist/models/index.js +65 -0
  380. package/package.json +1 -1
@@ -0,0 +1,131 @@
1
+ /**
2
+ * Vergefy API
3
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
4
+ *
5
+ * The version of the OpenAPI document: 2026-05-30
6
+ * Contact: support@integrahub.co
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import { type DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO } from '../models/DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO';
14
+ import { type PageSupplierPurchaseOrderApprovalRuleDTO } from '../models/PageSupplierPurchaseOrderApprovalRuleDTO';
15
+ import { type SupplierPurchaseOrderApprovalRuleDTO } from '../models/SupplierPurchaseOrderApprovalRuleDTO';
16
+ export interface ASPR001Request {
17
+ id: string;
18
+ xAppAccountId: string;
19
+ acceptLanguage?: string;
20
+ vergefyVersion?: string;
21
+ acceptTimezone?: string;
22
+ }
23
+ export interface ASPR002Request {
24
+ xAppAccountId: string;
25
+ supplierId?: string;
26
+ currencyCode?: string;
27
+ tenantWide?: boolean;
28
+ page?: number;
29
+ size?: number;
30
+ sort?: Array<string>;
31
+ acceptLanguage?: string;
32
+ vergefyVersion?: string;
33
+ acceptTimezone?: string;
34
+ }
35
+ export interface ASPR100Request {
36
+ xAppAccountId: string;
37
+ supplierPurchaseOrderApprovalRuleDTO: SupplierPurchaseOrderApprovalRuleDTO;
38
+ acceptLanguage?: string;
39
+ vergefyVersion?: string;
40
+ acceptTimezone?: string;
41
+ }
42
+ export interface ASPR101Request {
43
+ id: string;
44
+ xAppAccountId: string;
45
+ supplierPurchaseOrderApprovalRuleDTO: SupplierPurchaseOrderApprovalRuleDTO;
46
+ acceptLanguage?: string;
47
+ vergefyVersion?: string;
48
+ acceptTimezone?: string;
49
+ }
50
+ export interface ASPR102Request {
51
+ id: string;
52
+ xAppAccountId: string;
53
+ acceptLanguage?: string;
54
+ vergefyVersion?: string;
55
+ acceptTimezone?: string;
56
+ }
57
+ /**
58
+ *
59
+ */
60
+ export declare class APIASPRSupplierPurchaseOrderApprovalRuleApi extends runtime.BaseAPI {
61
+ /**
62
+ * Creates request options for aSPR001 without sending the request
63
+ */
64
+ aSPR001RequestOpts(requestParameters: ASPR001Request): Promise<runtime.RequestOpts>;
65
+ /**
66
+ * Retrieves an approval rule by id
67
+ * ASPR001 - Get Supplier Purchase Order Approval Rule
68
+ */
69
+ aSPR001Raw(requestParameters: ASPR001Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO>>;
70
+ /**
71
+ * Retrieves an approval rule by id
72
+ * ASPR001 - Get Supplier Purchase Order Approval Rule
73
+ */
74
+ aSPR001(requestParameters: ASPR001Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO>;
75
+ /**
76
+ * Creates request options for aSPR002 without sending the request
77
+ */
78
+ aSPR002RequestOpts(requestParameters: ASPR002Request): Promise<runtime.RequestOpts>;
79
+ /**
80
+ * Filtered, paginated search over approval rules (supplier, currency, and whether a rule is tenant-wide)
81
+ * ASPR002 - Search Supplier Purchase Order Approval Rules
82
+ */
83
+ aSPR002Raw(requestParameters: ASPR002Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageSupplierPurchaseOrderApprovalRuleDTO>>;
84
+ /**
85
+ * Filtered, paginated search over approval rules (supplier, currency, and whether a rule is tenant-wide)
86
+ * ASPR002 - Search Supplier Purchase Order Approval Rules
87
+ */
88
+ aSPR002(requestParameters: ASPR002Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageSupplierPurchaseOrderApprovalRuleDTO>;
89
+ /**
90
+ * Creates request options for aSPR100 without sending the request
91
+ */
92
+ aSPR100RequestOpts(requestParameters: ASPR100Request): Promise<runtime.RequestOpts>;
93
+ /**
94
+ * Creates the rule for one currency, tenant-wide when supplierId is omitted or for one supplier, whose rule overrides the tenant-wide one. An order whose total is at or under the threshold is approved when submitted
95
+ * ASPR100 - Create Supplier Purchase Order Approval Rule
96
+ */
97
+ aSPR100Raw(requestParameters: ASPR100Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO>>;
98
+ /**
99
+ * Creates the rule for one currency, tenant-wide when supplierId is omitted or for one supplier, whose rule overrides the tenant-wide one. An order whose total is at or under the threshold is approved when submitted
100
+ * ASPR100 - Create Supplier Purchase Order Approval Rule
101
+ */
102
+ aSPR100(requestParameters: ASPR100Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO>;
103
+ /**
104
+ * Creates request options for aSPR101 without sending the request
105
+ */
106
+ aSPR101RequestOpts(requestParameters: ASPR101Request): Promise<runtime.RequestOpts>;
107
+ /**
108
+ * Replaces a rule\'s supplier, currency and threshold. Orders already waiting for approval are not decided again
109
+ * ASPR101 - Update Supplier Purchase Order Approval Rule
110
+ */
111
+ aSPR101Raw(requestParameters: ASPR101Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO>>;
112
+ /**
113
+ * Replaces a rule\'s supplier, currency and threshold. Orders already waiting for approval are not decided again
114
+ * ASPR101 - Update Supplier Purchase Order Approval Rule
115
+ */
116
+ aSPR101(requestParameters: ASPR101Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO>;
117
+ /**
118
+ * Creates request options for aSPR102 without sending the request
119
+ */
120
+ aSPR102RequestOpts(requestParameters: ASPR102Request): Promise<runtime.RequestOpts>;
121
+ /**
122
+ * Deletes a rule. A supplier\'s orders then follow the tenant-wide rule, and orders in a currency with no rule wait for a person
123
+ * ASPR102 - Delete Supplier Purchase Order Approval Rule
124
+ */
125
+ aSPR102Raw(requestParameters: ASPR102Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
126
+ /**
127
+ * Deletes a rule. A supplier\'s orders then follow the tenant-wide rule, and orders in a currency with no rule wait for a person
128
+ * ASPR102 - Delete Supplier Purchase Order Approval Rule
129
+ */
130
+ aSPR102(requestParameters: ASPR102Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
131
+ }
@@ -0,0 +1,369 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Vergefy API
6
+ * <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
7
+ *
8
+ * The version of the OpenAPI document: 2026-05-30
9
+ * Contact: support@integrahub.co
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.APIASPRSupplierPurchaseOrderApprovalRuleApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO_1 = require("../models/DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO");
28
+ const PageSupplierPurchaseOrderApprovalRuleDTO_1 = require("../models/PageSupplierPurchaseOrderApprovalRuleDTO");
29
+ const SupplierPurchaseOrderApprovalRuleDTO_1 = require("../models/SupplierPurchaseOrderApprovalRuleDTO");
30
+ /**
31
+ *
32
+ */
33
+ class APIASPRSupplierPurchaseOrderApprovalRuleApi extends runtime.BaseAPI {
34
+ /**
35
+ * Creates request options for aSPR001 without sending the request
36
+ */
37
+ aSPR001RequestOpts(requestParameters) {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ if (requestParameters['id'] == null) {
40
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPR001().');
41
+ }
42
+ if (requestParameters['xAppAccountId'] == null) {
43
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPR001().');
44
+ }
45
+ const queryParameters = {};
46
+ const headerParameters = {};
47
+ if (requestParameters['acceptLanguage'] != null) {
48
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
49
+ }
50
+ if (requestParameters['xAppAccountId'] != null) {
51
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
52
+ }
53
+ if (requestParameters['vergefyVersion'] != null) {
54
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
55
+ }
56
+ if (requestParameters['acceptTimezone'] != null) {
57
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
58
+ }
59
+ if (this.configuration && this.configuration.accessToken) {
60
+ const token = this.configuration.accessToken;
61
+ const tokenString = yield token("BearerAuth", []);
62
+ if (tokenString) {
63
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
64
+ }
65
+ }
66
+ let urlPath = `/api/supplier-purchase-order-approval-rules/{id}`;
67
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
68
+ return {
69
+ path: urlPath,
70
+ method: 'GET',
71
+ headers: headerParameters,
72
+ query: queryParameters,
73
+ };
74
+ });
75
+ }
76
+ /**
77
+ * Retrieves an approval rule by id
78
+ * ASPR001 - Get Supplier Purchase Order Approval Rule
79
+ */
80
+ aSPR001Raw(requestParameters, initOverrides) {
81
+ return __awaiter(this, void 0, void 0, function* () {
82
+ const requestOptions = yield this.aSPR001RequestOpts(requestParameters);
83
+ const response = yield this.request(requestOptions, initOverrides);
84
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO_1.DataResponseDTOSupplierPurchaseOrderApprovalRuleDTOFromJSON)(jsonValue));
85
+ });
86
+ }
87
+ /**
88
+ * Retrieves an approval rule by id
89
+ * ASPR001 - Get Supplier Purchase Order Approval Rule
90
+ */
91
+ aSPR001(requestParameters, initOverrides) {
92
+ return __awaiter(this, void 0, void 0, function* () {
93
+ const response = yield this.aSPR001Raw(requestParameters, initOverrides);
94
+ return yield response.value();
95
+ });
96
+ }
97
+ /**
98
+ * Creates request options for aSPR002 without sending the request
99
+ */
100
+ aSPR002RequestOpts(requestParameters) {
101
+ return __awaiter(this, void 0, void 0, function* () {
102
+ if (requestParameters['xAppAccountId'] == null) {
103
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPR002().');
104
+ }
105
+ const queryParameters = {};
106
+ if (requestParameters['supplierId'] != null) {
107
+ queryParameters['supplierId'] = requestParameters['supplierId'];
108
+ }
109
+ if (requestParameters['currencyCode'] != null) {
110
+ queryParameters['currencyCode'] = requestParameters['currencyCode'];
111
+ }
112
+ if (requestParameters['tenantWide'] != null) {
113
+ queryParameters['tenantWide'] = requestParameters['tenantWide'];
114
+ }
115
+ if (requestParameters['page'] != null) {
116
+ queryParameters['page'] = requestParameters['page'];
117
+ }
118
+ if (requestParameters['size'] != null) {
119
+ queryParameters['size'] = requestParameters['size'];
120
+ }
121
+ if (requestParameters['sort'] != null) {
122
+ queryParameters['sort'] = requestParameters['sort'];
123
+ }
124
+ const headerParameters = {};
125
+ if (requestParameters['acceptLanguage'] != null) {
126
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
127
+ }
128
+ if (requestParameters['xAppAccountId'] != null) {
129
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
130
+ }
131
+ if (requestParameters['vergefyVersion'] != null) {
132
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
133
+ }
134
+ if (requestParameters['acceptTimezone'] != null) {
135
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
136
+ }
137
+ if (this.configuration && this.configuration.accessToken) {
138
+ const token = this.configuration.accessToken;
139
+ const tokenString = yield token("BearerAuth", []);
140
+ if (tokenString) {
141
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
142
+ }
143
+ }
144
+ let urlPath = `/api/supplier-purchase-order-approval-rules`;
145
+ return {
146
+ path: urlPath,
147
+ method: 'GET',
148
+ headers: headerParameters,
149
+ query: queryParameters,
150
+ };
151
+ });
152
+ }
153
+ /**
154
+ * Filtered, paginated search over approval rules (supplier, currency, and whether a rule is tenant-wide)
155
+ * ASPR002 - Search Supplier Purchase Order Approval Rules
156
+ */
157
+ aSPR002Raw(requestParameters, initOverrides) {
158
+ return __awaiter(this, void 0, void 0, function* () {
159
+ const requestOptions = yield this.aSPR002RequestOpts(requestParameters);
160
+ const response = yield this.request(requestOptions, initOverrides);
161
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, PageSupplierPurchaseOrderApprovalRuleDTO_1.PageSupplierPurchaseOrderApprovalRuleDTOFromJSON)(jsonValue));
162
+ });
163
+ }
164
+ /**
165
+ * Filtered, paginated search over approval rules (supplier, currency, and whether a rule is tenant-wide)
166
+ * ASPR002 - Search Supplier Purchase Order Approval Rules
167
+ */
168
+ aSPR002(requestParameters, initOverrides) {
169
+ return __awaiter(this, void 0, void 0, function* () {
170
+ const response = yield this.aSPR002Raw(requestParameters, initOverrides);
171
+ return yield response.value();
172
+ });
173
+ }
174
+ /**
175
+ * Creates request options for aSPR100 without sending the request
176
+ */
177
+ aSPR100RequestOpts(requestParameters) {
178
+ return __awaiter(this, void 0, void 0, function* () {
179
+ if (requestParameters['xAppAccountId'] == null) {
180
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPR100().');
181
+ }
182
+ if (requestParameters['supplierPurchaseOrderApprovalRuleDTO'] == null) {
183
+ throw new runtime.RequiredError('supplierPurchaseOrderApprovalRuleDTO', 'Required parameter "supplierPurchaseOrderApprovalRuleDTO" was null or undefined when calling aSPR100().');
184
+ }
185
+ const queryParameters = {};
186
+ const headerParameters = {};
187
+ headerParameters['Content-Type'] = 'application/json';
188
+ if (requestParameters['acceptLanguage'] != null) {
189
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
190
+ }
191
+ if (requestParameters['xAppAccountId'] != null) {
192
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
193
+ }
194
+ if (requestParameters['vergefyVersion'] != null) {
195
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
196
+ }
197
+ if (requestParameters['acceptTimezone'] != null) {
198
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
199
+ }
200
+ if (this.configuration && this.configuration.accessToken) {
201
+ const token = this.configuration.accessToken;
202
+ const tokenString = yield token("BearerAuth", []);
203
+ if (tokenString) {
204
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
205
+ }
206
+ }
207
+ let urlPath = `/api/supplier-purchase-order-approval-rules`;
208
+ return {
209
+ path: urlPath,
210
+ method: 'POST',
211
+ headers: headerParameters,
212
+ query: queryParameters,
213
+ body: (0, SupplierPurchaseOrderApprovalRuleDTO_1.SupplierPurchaseOrderApprovalRuleDTOToJSON)(requestParameters['supplierPurchaseOrderApprovalRuleDTO']),
214
+ };
215
+ });
216
+ }
217
+ /**
218
+ * Creates the rule for one currency, tenant-wide when supplierId is omitted or for one supplier, whose rule overrides the tenant-wide one. An order whose total is at or under the threshold is approved when submitted
219
+ * ASPR100 - Create Supplier Purchase Order Approval Rule
220
+ */
221
+ aSPR100Raw(requestParameters, initOverrides) {
222
+ return __awaiter(this, void 0, void 0, function* () {
223
+ const requestOptions = yield this.aSPR100RequestOpts(requestParameters);
224
+ const response = yield this.request(requestOptions, initOverrides);
225
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO_1.DataResponseDTOSupplierPurchaseOrderApprovalRuleDTOFromJSON)(jsonValue));
226
+ });
227
+ }
228
+ /**
229
+ * Creates the rule for one currency, tenant-wide when supplierId is omitted or for one supplier, whose rule overrides the tenant-wide one. An order whose total is at or under the threshold is approved when submitted
230
+ * ASPR100 - Create Supplier Purchase Order Approval Rule
231
+ */
232
+ aSPR100(requestParameters, initOverrides) {
233
+ return __awaiter(this, void 0, void 0, function* () {
234
+ const response = yield this.aSPR100Raw(requestParameters, initOverrides);
235
+ return yield response.value();
236
+ });
237
+ }
238
+ /**
239
+ * Creates request options for aSPR101 without sending the request
240
+ */
241
+ aSPR101RequestOpts(requestParameters) {
242
+ return __awaiter(this, void 0, void 0, function* () {
243
+ if (requestParameters['id'] == null) {
244
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPR101().');
245
+ }
246
+ if (requestParameters['xAppAccountId'] == null) {
247
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPR101().');
248
+ }
249
+ if (requestParameters['supplierPurchaseOrderApprovalRuleDTO'] == null) {
250
+ throw new runtime.RequiredError('supplierPurchaseOrderApprovalRuleDTO', 'Required parameter "supplierPurchaseOrderApprovalRuleDTO" was null or undefined when calling aSPR101().');
251
+ }
252
+ const queryParameters = {};
253
+ const headerParameters = {};
254
+ headerParameters['Content-Type'] = 'application/json';
255
+ if (requestParameters['acceptLanguage'] != null) {
256
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
257
+ }
258
+ if (requestParameters['xAppAccountId'] != null) {
259
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
260
+ }
261
+ if (requestParameters['vergefyVersion'] != null) {
262
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
263
+ }
264
+ if (requestParameters['acceptTimezone'] != null) {
265
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
266
+ }
267
+ if (this.configuration && this.configuration.accessToken) {
268
+ const token = this.configuration.accessToken;
269
+ const tokenString = yield token("BearerAuth", []);
270
+ if (tokenString) {
271
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
272
+ }
273
+ }
274
+ let urlPath = `/api/supplier-purchase-order-approval-rules/{id}`;
275
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
276
+ return {
277
+ path: urlPath,
278
+ method: 'PUT',
279
+ headers: headerParameters,
280
+ query: queryParameters,
281
+ body: (0, SupplierPurchaseOrderApprovalRuleDTO_1.SupplierPurchaseOrderApprovalRuleDTOToJSON)(requestParameters['supplierPurchaseOrderApprovalRuleDTO']),
282
+ };
283
+ });
284
+ }
285
+ /**
286
+ * Replaces a rule\'s supplier, currency and threshold. Orders already waiting for approval are not decided again
287
+ * ASPR101 - Update Supplier Purchase Order Approval Rule
288
+ */
289
+ aSPR101Raw(requestParameters, initOverrides) {
290
+ return __awaiter(this, void 0, void 0, function* () {
291
+ const requestOptions = yield this.aSPR101RequestOpts(requestParameters);
292
+ const response = yield this.request(requestOptions, initOverrides);
293
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO_1.DataResponseDTOSupplierPurchaseOrderApprovalRuleDTOFromJSON)(jsonValue));
294
+ });
295
+ }
296
+ /**
297
+ * Replaces a rule\'s supplier, currency and threshold. Orders already waiting for approval are not decided again
298
+ * ASPR101 - Update Supplier Purchase Order Approval Rule
299
+ */
300
+ aSPR101(requestParameters, initOverrides) {
301
+ return __awaiter(this, void 0, void 0, function* () {
302
+ const response = yield this.aSPR101Raw(requestParameters, initOverrides);
303
+ return yield response.value();
304
+ });
305
+ }
306
+ /**
307
+ * Creates request options for aSPR102 without sending the request
308
+ */
309
+ aSPR102RequestOpts(requestParameters) {
310
+ return __awaiter(this, void 0, void 0, function* () {
311
+ if (requestParameters['id'] == null) {
312
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPR102().');
313
+ }
314
+ if (requestParameters['xAppAccountId'] == null) {
315
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPR102().');
316
+ }
317
+ const queryParameters = {};
318
+ const headerParameters = {};
319
+ if (requestParameters['acceptLanguage'] != null) {
320
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
321
+ }
322
+ if (requestParameters['xAppAccountId'] != null) {
323
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
324
+ }
325
+ if (requestParameters['vergefyVersion'] != null) {
326
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
327
+ }
328
+ if (requestParameters['acceptTimezone'] != null) {
329
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
330
+ }
331
+ if (this.configuration && this.configuration.accessToken) {
332
+ const token = this.configuration.accessToken;
333
+ const tokenString = yield token("BearerAuth", []);
334
+ if (tokenString) {
335
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
336
+ }
337
+ }
338
+ let urlPath = `/api/supplier-purchase-order-approval-rules/{id}`;
339
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
340
+ return {
341
+ path: urlPath,
342
+ method: 'DELETE',
343
+ headers: headerParameters,
344
+ query: queryParameters,
345
+ };
346
+ });
347
+ }
348
+ /**
349
+ * Deletes a rule. A supplier\'s orders then follow the tenant-wide rule, and orders in a currency with no rule wait for a person
350
+ * ASPR102 - Delete Supplier Purchase Order Approval Rule
351
+ */
352
+ aSPR102Raw(requestParameters, initOverrides) {
353
+ return __awaiter(this, void 0, void 0, function* () {
354
+ const requestOptions = yield this.aSPR102RequestOpts(requestParameters);
355
+ const response = yield this.request(requestOptions, initOverrides);
356
+ return new runtime.VoidApiResponse(response);
357
+ });
358
+ }
359
+ /**
360
+ * Deletes a rule. A supplier\'s orders then follow the tenant-wide rule, and orders in a currency with no rule wait for a person
361
+ * ASPR102 - Delete Supplier Purchase Order Approval Rule
362
+ */
363
+ aSPR102(requestParameters, initOverrides) {
364
+ return __awaiter(this, void 0, void 0, function* () {
365
+ yield this.aSPR102Raw(requestParameters, initOverrides);
366
+ });
367
+ }
368
+ }
369
+ exports.APIASPRSupplierPurchaseOrderApprovalRuleApi = APIASPRSupplierPurchaseOrderApprovalRuleApi;