@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,912 @@
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.ASPO002MatchStatusEnum = exports.ASPO002StatusEnum = exports.APIASPOSupplierPurchaseOrderApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const DataResponseDTOGoodsReceiptDTO_1 = require("../models/DataResponseDTOGoodsReceiptDTO");
28
+ const DataResponseDTOSupplierPurchaseOrderBillMatchDTO_1 = require("../models/DataResponseDTOSupplierPurchaseOrderBillMatchDTO");
29
+ const DataResponseDTOSupplierPurchaseOrderDTO_1 = require("../models/DataResponseDTOSupplierPurchaseOrderDTO");
30
+ const DataResponseDTOSupplierPurchaseOrderMatchDTO_1 = require("../models/DataResponseDTOSupplierPurchaseOrderMatchDTO");
31
+ const PageSupplierPurchaseOrderDTO_1 = require("../models/PageSupplierPurchaseOrderDTO");
32
+ const SupplierPurchaseOrderDTO_1 = require("../models/SupplierPurchaseOrderDTO");
33
+ const SupplierPurchaseOrderRejectionDTO_1 = require("../models/SupplierPurchaseOrderRejectionDTO");
34
+ /**
35
+ *
36
+ */
37
+ class APIASPOSupplierPurchaseOrderApi extends runtime.BaseAPI {
38
+ /**
39
+ * Creates request options for aSPO001 without sending the request
40
+ */
41
+ aSPO001RequestOpts(requestParameters) {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ if (requestParameters['id'] == null) {
44
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPO001().');
45
+ }
46
+ if (requestParameters['xAppAccountId'] == null) {
47
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPO001().');
48
+ }
49
+ const queryParameters = {};
50
+ const headerParameters = {};
51
+ if (requestParameters['acceptLanguage'] != null) {
52
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
53
+ }
54
+ if (requestParameters['xAppAccountId'] != null) {
55
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
56
+ }
57
+ if (requestParameters['vergefyVersion'] != null) {
58
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
59
+ }
60
+ if (requestParameters['acceptTimezone'] != null) {
61
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
62
+ }
63
+ if (this.configuration && this.configuration.accessToken) {
64
+ const token = this.configuration.accessToken;
65
+ const tokenString = yield token("BearerAuth", []);
66
+ if (tokenString) {
67
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
68
+ }
69
+ }
70
+ let urlPath = `/api/supplier-purchase-orders/{id}`;
71
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
72
+ return {
73
+ path: urlPath,
74
+ method: 'GET',
75
+ headers: headerParameters,
76
+ query: queryParameters,
77
+ };
78
+ });
79
+ }
80
+ /**
81
+ * Retrieves a supplier purchase order with its lines by id
82
+ * ASPO001 - Get Supplier Purchase Order
83
+ */
84
+ aSPO001Raw(requestParameters, initOverrides) {
85
+ return __awaiter(this, void 0, void 0, function* () {
86
+ const requestOptions = yield this.aSPO001RequestOpts(requestParameters);
87
+ const response = yield this.request(requestOptions, initOverrides);
88
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPurchaseOrderDTO_1.DataResponseDTOSupplierPurchaseOrderDTOFromJSON)(jsonValue));
89
+ });
90
+ }
91
+ /**
92
+ * Retrieves a supplier purchase order with its lines by id
93
+ * ASPO001 - Get Supplier Purchase Order
94
+ */
95
+ aSPO001(requestParameters, initOverrides) {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ const response = yield this.aSPO001Raw(requestParameters, initOverrides);
98
+ return yield response.value();
99
+ });
100
+ }
101
+ /**
102
+ * Creates request options for aSPO002 without sending the request
103
+ */
104
+ aSPO002RequestOpts(requestParameters) {
105
+ return __awaiter(this, void 0, void 0, function* () {
106
+ if (requestParameters['xAppAccountId'] == null) {
107
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPO002().');
108
+ }
109
+ const queryParameters = {};
110
+ if (requestParameters['search'] != null) {
111
+ queryParameters['search'] = requestParameters['search'];
112
+ }
113
+ if (requestParameters['status'] != null) {
114
+ queryParameters['status'] = requestParameters['status'];
115
+ }
116
+ if (requestParameters['supplierId'] != null) {
117
+ queryParameters['supplierId'] = requestParameters['supplierId'];
118
+ }
119
+ if (requestParameters['warehouseId'] != null) {
120
+ queryParameters['warehouseId'] = requestParameters['warehouseId'];
121
+ }
122
+ if (requestParameters['matchStatus'] != null) {
123
+ queryParameters['matchStatus'] = requestParameters['matchStatus'];
124
+ }
125
+ if (requestParameters['page'] != null) {
126
+ queryParameters['page'] = requestParameters['page'];
127
+ }
128
+ if (requestParameters['size'] != null) {
129
+ queryParameters['size'] = requestParameters['size'];
130
+ }
131
+ if (requestParameters['sort'] != null) {
132
+ queryParameters['sort'] = requestParameters['sort'];
133
+ }
134
+ const headerParameters = {};
135
+ if (requestParameters['acceptLanguage'] != null) {
136
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
137
+ }
138
+ if (requestParameters['xAppAccountId'] != null) {
139
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
140
+ }
141
+ if (requestParameters['vergefyVersion'] != null) {
142
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
143
+ }
144
+ if (requestParameters['acceptTimezone'] != null) {
145
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
146
+ }
147
+ if (this.configuration && this.configuration.accessToken) {
148
+ const token = this.configuration.accessToken;
149
+ const tokenString = yield token("BearerAuth", []);
150
+ if (tokenString) {
151
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
152
+ }
153
+ }
154
+ let urlPath = `/api/supplier-purchase-orders`;
155
+ return {
156
+ path: urlPath,
157
+ method: 'GET',
158
+ headers: headerParameters,
159
+ query: queryParameters,
160
+ };
161
+ });
162
+ }
163
+ /**
164
+ * Filtered, paginated search over supplier purchase orders (status, supplier, warehouse, order number, stored three-way match)
165
+ * ASPO002 - Search Supplier Purchase Orders
166
+ */
167
+ aSPO002Raw(requestParameters, initOverrides) {
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ const requestOptions = yield this.aSPO002RequestOpts(requestParameters);
170
+ const response = yield this.request(requestOptions, initOverrides);
171
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, PageSupplierPurchaseOrderDTO_1.PageSupplierPurchaseOrderDTOFromJSON)(jsonValue));
172
+ });
173
+ }
174
+ /**
175
+ * Filtered, paginated search over supplier purchase orders (status, supplier, warehouse, order number, stored three-way match)
176
+ * ASPO002 - Search Supplier Purchase Orders
177
+ */
178
+ aSPO002(requestParameters, initOverrides) {
179
+ return __awaiter(this, void 0, void 0, function* () {
180
+ const response = yield this.aSPO002Raw(requestParameters, initOverrides);
181
+ return yield response.value();
182
+ });
183
+ }
184
+ /**
185
+ * Creates request options for aSPO003 without sending the request
186
+ */
187
+ aSPO003RequestOpts(requestParameters) {
188
+ return __awaiter(this, void 0, void 0, function* () {
189
+ if (requestParameters['id'] == null) {
190
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPO003().');
191
+ }
192
+ if (requestParameters['xAppAccountId'] == null) {
193
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPO003().');
194
+ }
195
+ const queryParameters = {};
196
+ const headerParameters = {};
197
+ if (requestParameters['acceptLanguage'] != null) {
198
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
199
+ }
200
+ if (requestParameters['xAppAccountId'] != null) {
201
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
202
+ }
203
+ if (requestParameters['vergefyVersion'] != null) {
204
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
205
+ }
206
+ if (requestParameters['acceptTimezone'] != null) {
207
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
208
+ }
209
+ if (this.configuration && this.configuration.accessToken) {
210
+ const token = this.configuration.accessToken;
211
+ const tokenString = yield token("BearerAuth", []);
212
+ if (tokenString) {
213
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
214
+ }
215
+ }
216
+ let urlPath = `/api/supplier-purchase-orders/{id}/match`;
217
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
218
+ return {
219
+ path: urlPath,
220
+ method: 'GET',
221
+ headers: headerParameters,
222
+ query: queryParameters,
223
+ };
224
+ });
225
+ }
226
+ /**
227
+ * The three-way match of a supplier purchase order: each line\'s ordered, received and billed quantity, and its ordered unit cost against its billed unit price, over the order\'s received goods receipts and the purchase bills that name it and are not voided. Computed on request. The status is absent while no bill names the order
228
+ * ASPO003 - Get Supplier Purchase Order Match
229
+ */
230
+ aSPO003Raw(requestParameters, initOverrides) {
231
+ return __awaiter(this, void 0, void 0, function* () {
232
+ const requestOptions = yield this.aSPO003RequestOpts(requestParameters);
233
+ const response = yield this.request(requestOptions, initOverrides);
234
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPurchaseOrderMatchDTO_1.DataResponseDTOSupplierPurchaseOrderMatchDTOFromJSON)(jsonValue));
235
+ });
236
+ }
237
+ /**
238
+ * The three-way match of a supplier purchase order: each line\'s ordered, received and billed quantity, and its ordered unit cost against its billed unit price, over the order\'s received goods receipts and the purchase bills that name it and are not voided. Computed on request. The status is absent while no bill names the order
239
+ * ASPO003 - Get Supplier Purchase Order Match
240
+ */
241
+ aSPO003(requestParameters, initOverrides) {
242
+ return __awaiter(this, void 0, void 0, function* () {
243
+ const response = yield this.aSPO003Raw(requestParameters, initOverrides);
244
+ return yield response.value();
245
+ });
246
+ }
247
+ /**
248
+ * Creates request options for aSPO004 without sending the request
249
+ */
250
+ aSPO004RequestOpts(requestParameters) {
251
+ return __awaiter(this, void 0, void 0, function* () {
252
+ if (requestParameters['billId'] == null) {
253
+ throw new runtime.RequiredError('billId', 'Required parameter "billId" was null or undefined when calling aSPO004().');
254
+ }
255
+ if (requestParameters['xAppAccountId'] == null) {
256
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPO004().');
257
+ }
258
+ const queryParameters = {};
259
+ const headerParameters = {};
260
+ if (requestParameters['acceptLanguage'] != null) {
261
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
262
+ }
263
+ if (requestParameters['xAppAccountId'] != null) {
264
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
265
+ }
266
+ if (requestParameters['vergefyVersion'] != null) {
267
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
268
+ }
269
+ if (requestParameters['acceptTimezone'] != null) {
270
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
271
+ }
272
+ if (this.configuration && this.configuration.accessToken) {
273
+ const token = this.configuration.accessToken;
274
+ const tokenString = yield token("BearerAuth", []);
275
+ if (tokenString) {
276
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
277
+ }
278
+ }
279
+ let urlPath = `/api/supplier-purchase-orders/bills/{billId}/match`;
280
+ urlPath = urlPath.replace('{billId}', encodeURIComponent(String(requestParameters['billId'])));
281
+ return {
282
+ path: urlPath,
283
+ method: 'GET',
284
+ headers: headerParameters,
285
+ query: queryParameters,
286
+ };
287
+ });
288
+ }
289
+ /**
290
+ * The three-way match of one purchase bill against the supplier purchase order it names: each bill line against the order line it bills, and whether the bill bills more than was received, given what the order\'s other bills bill. A voided bill is compared as it stands but no longer counts towards its order\'s match. A bill that names no order has no status and the discrepancy NO_ORDER
291
+ * ASPO004 - Get Purchase Bill Match
292
+ */
293
+ aSPO004Raw(requestParameters, initOverrides) {
294
+ return __awaiter(this, void 0, void 0, function* () {
295
+ const requestOptions = yield this.aSPO004RequestOpts(requestParameters);
296
+ const response = yield this.request(requestOptions, initOverrides);
297
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPurchaseOrderBillMatchDTO_1.DataResponseDTOSupplierPurchaseOrderBillMatchDTOFromJSON)(jsonValue));
298
+ });
299
+ }
300
+ /**
301
+ * The three-way match of one purchase bill against the supplier purchase order it names: each bill line against the order line it bills, and whether the bill bills more than was received, given what the order\'s other bills bill. A voided bill is compared as it stands but no longer counts towards its order\'s match. A bill that names no order has no status and the discrepancy NO_ORDER
302
+ * ASPO004 - Get Purchase Bill Match
303
+ */
304
+ aSPO004(requestParameters, initOverrides) {
305
+ return __awaiter(this, void 0, void 0, function* () {
306
+ const response = yield this.aSPO004Raw(requestParameters, initOverrides);
307
+ return yield response.value();
308
+ });
309
+ }
310
+ /**
311
+ * Creates request options for aSPO100 without sending the request
312
+ */
313
+ aSPO100RequestOpts(requestParameters) {
314
+ return __awaiter(this, void 0, void 0, function* () {
315
+ if (requestParameters['xAppAccountId'] == null) {
316
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPO100().');
317
+ }
318
+ if (requestParameters['supplierPurchaseOrderDTO'] == null) {
319
+ throw new runtime.RequiredError('supplierPurchaseOrderDTO', 'Required parameter "supplierPurchaseOrderDTO" was null or undefined when calling aSPO100().');
320
+ }
321
+ const queryParameters = {};
322
+ const headerParameters = {};
323
+ headerParameters['Content-Type'] = 'application/json';
324
+ if (requestParameters['acceptLanguage'] != null) {
325
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
326
+ }
327
+ if (requestParameters['xAppAccountId'] != null) {
328
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
329
+ }
330
+ if (requestParameters['vergefyVersion'] != null) {
331
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
332
+ }
333
+ if (requestParameters['acceptTimezone'] != null) {
334
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
335
+ }
336
+ if (this.configuration && this.configuration.accessToken) {
337
+ const token = this.configuration.accessToken;
338
+ const tokenString = yield token("BearerAuth", []);
339
+ if (tokenString) {
340
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
341
+ }
342
+ }
343
+ let urlPath = `/api/supplier-purchase-orders`;
344
+ return {
345
+ path: urlPath,
346
+ method: 'POST',
347
+ headers: headerParameters,
348
+ query: queryParameters,
349
+ body: (0, SupplierPurchaseOrderDTO_1.SupplierPurchaseOrderDTOToJSON)(requestParameters['supplierPurchaseOrderDTO']),
350
+ };
351
+ });
352
+ }
353
+ /**
354
+ * Creates a DRAFT order with its lines, numbered PO-{year}-{sequence}. Totals are computed by the server
355
+ * ASPO100 - Create Supplier Purchase Order
356
+ */
357
+ aSPO100Raw(requestParameters, initOverrides) {
358
+ return __awaiter(this, void 0, void 0, function* () {
359
+ const requestOptions = yield this.aSPO100RequestOpts(requestParameters);
360
+ const response = yield this.request(requestOptions, initOverrides);
361
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPurchaseOrderDTO_1.DataResponseDTOSupplierPurchaseOrderDTOFromJSON)(jsonValue));
362
+ });
363
+ }
364
+ /**
365
+ * Creates a DRAFT order with its lines, numbered PO-{year}-{sequence}. Totals are computed by the server
366
+ * ASPO100 - Create Supplier Purchase Order
367
+ */
368
+ aSPO100(requestParameters, initOverrides) {
369
+ return __awaiter(this, void 0, void 0, function* () {
370
+ const response = yield this.aSPO100Raw(requestParameters, initOverrides);
371
+ return yield response.value();
372
+ });
373
+ }
374
+ /**
375
+ * Creates request options for aSPO101 without sending the request
376
+ */
377
+ aSPO101RequestOpts(requestParameters) {
378
+ return __awaiter(this, void 0, void 0, function* () {
379
+ if (requestParameters['id'] == null) {
380
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPO101().');
381
+ }
382
+ if (requestParameters['xAppAccountId'] == null) {
383
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPO101().');
384
+ }
385
+ if (requestParameters['supplierPurchaseOrderDTO'] == null) {
386
+ throw new runtime.RequiredError('supplierPurchaseOrderDTO', 'Required parameter "supplierPurchaseOrderDTO" was null or undefined when calling aSPO101().');
387
+ }
388
+ const queryParameters = {};
389
+ const headerParameters = {};
390
+ headerParameters['Content-Type'] = 'application/json';
391
+ if (requestParameters['acceptLanguage'] != null) {
392
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
393
+ }
394
+ if (requestParameters['xAppAccountId'] != null) {
395
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
396
+ }
397
+ if (requestParameters['vergefyVersion'] != null) {
398
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
399
+ }
400
+ if (requestParameters['acceptTimezone'] != null) {
401
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
402
+ }
403
+ if (this.configuration && this.configuration.accessToken) {
404
+ const token = this.configuration.accessToken;
405
+ const tokenString = yield token("BearerAuth", []);
406
+ if (tokenString) {
407
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
408
+ }
409
+ }
410
+ let urlPath = `/api/supplier-purchase-orders/{id}`;
411
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
412
+ return {
413
+ path: urlPath,
414
+ method: 'PUT',
415
+ headers: headerParameters,
416
+ query: queryParameters,
417
+ body: (0, SupplierPurchaseOrderDTO_1.SupplierPurchaseOrderDTOToJSON)(requestParameters['supplierPurchaseOrderDTO']),
418
+ };
419
+ });
420
+ }
421
+ /**
422
+ * Replaces a DRAFT order\'s details and lines. Refused once the order is submitted
423
+ * ASPO101 - Update Supplier Purchase Order
424
+ */
425
+ aSPO101Raw(requestParameters, initOverrides) {
426
+ return __awaiter(this, void 0, void 0, function* () {
427
+ const requestOptions = yield this.aSPO101RequestOpts(requestParameters);
428
+ const response = yield this.request(requestOptions, initOverrides);
429
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPurchaseOrderDTO_1.DataResponseDTOSupplierPurchaseOrderDTOFromJSON)(jsonValue));
430
+ });
431
+ }
432
+ /**
433
+ * Replaces a DRAFT order\'s details and lines. Refused once the order is submitted
434
+ * ASPO101 - Update Supplier Purchase Order
435
+ */
436
+ aSPO101(requestParameters, initOverrides) {
437
+ return __awaiter(this, void 0, void 0, function* () {
438
+ const response = yield this.aSPO101Raw(requestParameters, initOverrides);
439
+ return yield response.value();
440
+ });
441
+ }
442
+ /**
443
+ * Creates request options for aSPO102 without sending the request
444
+ */
445
+ aSPO102RequestOpts(requestParameters) {
446
+ return __awaiter(this, void 0, void 0, function* () {
447
+ if (requestParameters['id'] == null) {
448
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPO102().');
449
+ }
450
+ if (requestParameters['xAppAccountId'] == null) {
451
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPO102().');
452
+ }
453
+ const queryParameters = {};
454
+ const headerParameters = {};
455
+ if (requestParameters['acceptLanguage'] != null) {
456
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
457
+ }
458
+ if (requestParameters['xAppAccountId'] != null) {
459
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
460
+ }
461
+ if (requestParameters['vergefyVersion'] != null) {
462
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
463
+ }
464
+ if (requestParameters['acceptTimezone'] != null) {
465
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
466
+ }
467
+ if (this.configuration && this.configuration.accessToken) {
468
+ const token = this.configuration.accessToken;
469
+ const tokenString = yield token("BearerAuth", []);
470
+ if (tokenString) {
471
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
472
+ }
473
+ }
474
+ let urlPath = `/api/supplier-purchase-orders/{id}/submit`;
475
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
476
+ return {
477
+ path: urlPath,
478
+ method: 'POST',
479
+ headers: headerParameters,
480
+ query: queryParameters,
481
+ };
482
+ });
483
+ }
484
+ /**
485
+ * Submits a DRAFT order for approval: DRAFT -> SUBMITTED, and on to APPROVED in the same step when the approval rule for its supplier and currency (ASPR) covers its total. The order records who submitted it, and the rule that approved it
486
+ * ASPO102 - Submit Supplier Purchase Order
487
+ */
488
+ aSPO102Raw(requestParameters, initOverrides) {
489
+ return __awaiter(this, void 0, void 0, function* () {
490
+ const requestOptions = yield this.aSPO102RequestOpts(requestParameters);
491
+ const response = yield this.request(requestOptions, initOverrides);
492
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPurchaseOrderDTO_1.DataResponseDTOSupplierPurchaseOrderDTOFromJSON)(jsonValue));
493
+ });
494
+ }
495
+ /**
496
+ * Submits a DRAFT order for approval: DRAFT -> SUBMITTED, and on to APPROVED in the same step when the approval rule for its supplier and currency (ASPR) covers its total. The order records who submitted it, and the rule that approved it
497
+ * ASPO102 - Submit Supplier Purchase Order
498
+ */
499
+ aSPO102(requestParameters, initOverrides) {
500
+ return __awaiter(this, void 0, void 0, function* () {
501
+ const response = yield this.aSPO102Raw(requestParameters, initOverrides);
502
+ return yield response.value();
503
+ });
504
+ }
505
+ /**
506
+ * Creates request options for aSPO103 without sending the request
507
+ */
508
+ aSPO103RequestOpts(requestParameters) {
509
+ return __awaiter(this, void 0, void 0, function* () {
510
+ if (requestParameters['id'] == null) {
511
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPO103().');
512
+ }
513
+ if (requestParameters['xAppAccountId'] == null) {
514
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPO103().');
515
+ }
516
+ const queryParameters = {};
517
+ const headerParameters = {};
518
+ if (requestParameters['acceptLanguage'] != null) {
519
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
520
+ }
521
+ if (requestParameters['xAppAccountId'] != null) {
522
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
523
+ }
524
+ if (requestParameters['vergefyVersion'] != null) {
525
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
526
+ }
527
+ if (requestParameters['acceptTimezone'] != null) {
528
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
529
+ }
530
+ if (this.configuration && this.configuration.accessToken) {
531
+ const token = this.configuration.accessToken;
532
+ const tokenString = yield token("BearerAuth", []);
533
+ if (tokenString) {
534
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
535
+ }
536
+ }
537
+ let urlPath = `/api/supplier-purchase-orders/{id}/approve`;
538
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
539
+ return {
540
+ path: urlPath,
541
+ method: 'POST',
542
+ headers: headerParameters,
543
+ query: queryParameters,
544
+ };
545
+ });
546
+ }
547
+ /**
548
+ * Approves a SUBMITTED order and records the approver: SUBMITTED -> APPROVED. Needs the APPROVE permission, which a tenant user does not hold, and a person who neither created nor submitted the order
549
+ * ASPO103 - Approve Supplier Purchase Order
550
+ */
551
+ aSPO103Raw(requestParameters, initOverrides) {
552
+ return __awaiter(this, void 0, void 0, function* () {
553
+ const requestOptions = yield this.aSPO103RequestOpts(requestParameters);
554
+ const response = yield this.request(requestOptions, initOverrides);
555
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPurchaseOrderDTO_1.DataResponseDTOSupplierPurchaseOrderDTOFromJSON)(jsonValue));
556
+ });
557
+ }
558
+ /**
559
+ * Approves a SUBMITTED order and records the approver: SUBMITTED -> APPROVED. Needs the APPROVE permission, which a tenant user does not hold, and a person who neither created nor submitted the order
560
+ * ASPO103 - Approve Supplier Purchase Order
561
+ */
562
+ aSPO103(requestParameters, initOverrides) {
563
+ return __awaiter(this, void 0, void 0, function* () {
564
+ const response = yield this.aSPO103Raw(requestParameters, initOverrides);
565
+ return yield response.value();
566
+ });
567
+ }
568
+ /**
569
+ * Creates request options for aSPO104 without sending the request
570
+ */
571
+ aSPO104RequestOpts(requestParameters) {
572
+ return __awaiter(this, void 0, void 0, function* () {
573
+ if (requestParameters['id'] == null) {
574
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPO104().');
575
+ }
576
+ if (requestParameters['xAppAccountId'] == null) {
577
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPO104().');
578
+ }
579
+ const queryParameters = {};
580
+ const headerParameters = {};
581
+ if (requestParameters['acceptLanguage'] != null) {
582
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
583
+ }
584
+ if (requestParameters['xAppAccountId'] != null) {
585
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
586
+ }
587
+ if (requestParameters['vergefyVersion'] != null) {
588
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
589
+ }
590
+ if (requestParameters['acceptTimezone'] != null) {
591
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
592
+ }
593
+ if (this.configuration && this.configuration.accessToken) {
594
+ const token = this.configuration.accessToken;
595
+ const tokenString = yield token("BearerAuth", []);
596
+ if (tokenString) {
597
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
598
+ }
599
+ }
600
+ let urlPath = `/api/supplier-purchase-orders/{id}/cancel`;
601
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
602
+ return {
603
+ path: urlPath,
604
+ method: 'POST',
605
+ headers: headerParameters,
606
+ query: queryParameters,
607
+ };
608
+ });
609
+ }
610
+ /**
611
+ * Cancels an order that is not yet receiving: DRAFT, SUBMITTED, APPROVED or SENT
612
+ * ASPO104 - Cancel Supplier Purchase Order
613
+ */
614
+ aSPO104Raw(requestParameters, initOverrides) {
615
+ return __awaiter(this, void 0, void 0, function* () {
616
+ const requestOptions = yield this.aSPO104RequestOpts(requestParameters);
617
+ const response = yield this.request(requestOptions, initOverrides);
618
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPurchaseOrderDTO_1.DataResponseDTOSupplierPurchaseOrderDTOFromJSON)(jsonValue));
619
+ });
620
+ }
621
+ /**
622
+ * Cancels an order that is not yet receiving: DRAFT, SUBMITTED, APPROVED or SENT
623
+ * ASPO104 - Cancel Supplier Purchase Order
624
+ */
625
+ aSPO104(requestParameters, initOverrides) {
626
+ return __awaiter(this, void 0, void 0, function* () {
627
+ const response = yield this.aSPO104Raw(requestParameters, initOverrides);
628
+ return yield response.value();
629
+ });
630
+ }
631
+ /**
632
+ * Creates request options for aSPO105 without sending the request
633
+ */
634
+ aSPO105RequestOpts(requestParameters) {
635
+ return __awaiter(this, void 0, void 0, function* () {
636
+ if (requestParameters['id'] == null) {
637
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPO105().');
638
+ }
639
+ if (requestParameters['xAppAccountId'] == null) {
640
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPO105().');
641
+ }
642
+ const queryParameters = {};
643
+ if (requestParameters['warehouseId'] != null) {
644
+ queryParameters['warehouseId'] = requestParameters['warehouseId'];
645
+ }
646
+ const headerParameters = {};
647
+ if (requestParameters['acceptLanguage'] != null) {
648
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
649
+ }
650
+ if (requestParameters['xAppAccountId'] != null) {
651
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
652
+ }
653
+ if (requestParameters['vergefyVersion'] != null) {
654
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
655
+ }
656
+ if (requestParameters['acceptTimezone'] != null) {
657
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
658
+ }
659
+ if (this.configuration && this.configuration.accessToken) {
660
+ const token = this.configuration.accessToken;
661
+ const tokenString = yield token("BearerAuth", []);
662
+ if (tokenString) {
663
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
664
+ }
665
+ }
666
+ let urlPath = `/api/supplier-purchase-orders/{id}/goods-receipts`;
667
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
668
+ return {
669
+ path: urlPath,
670
+ method: 'POST',
671
+ headers: headerParameters,
672
+ query: queryParameters,
673
+ };
674
+ });
675
+ }
676
+ /**
677
+ * Drafts a goods receipt with one line per open order line, for what is still to arrive, each naming its order line. The warehouse is the one given, or else the order\'s. Receive the draft with AGR002
678
+ * ASPO105 - Draft Goods Receipt From Supplier Purchase Order
679
+ */
680
+ aSPO105Raw(requestParameters, initOverrides) {
681
+ return __awaiter(this, void 0, void 0, function* () {
682
+ const requestOptions = yield this.aSPO105RequestOpts(requestParameters);
683
+ const response = yield this.request(requestOptions, initOverrides);
684
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOGoodsReceiptDTO_1.DataResponseDTOGoodsReceiptDTOFromJSON)(jsonValue));
685
+ });
686
+ }
687
+ /**
688
+ * Drafts a goods receipt with one line per open order line, for what is still to arrive, each naming its order line. The warehouse is the one given, or else the order\'s. Receive the draft with AGR002
689
+ * ASPO105 - Draft Goods Receipt From Supplier Purchase Order
690
+ */
691
+ aSPO105(requestParameters, initOverrides) {
692
+ return __awaiter(this, void 0, void 0, function* () {
693
+ const response = yield this.aSPO105Raw(requestParameters, initOverrides);
694
+ return yield response.value();
695
+ });
696
+ }
697
+ /**
698
+ * Creates request options for aSPO106 without sending the request
699
+ */
700
+ aSPO106RequestOpts(requestParameters) {
701
+ return __awaiter(this, void 0, void 0, function* () {
702
+ if (requestParameters['id'] == null) {
703
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPO106().');
704
+ }
705
+ if (requestParameters['xAppAccountId'] == null) {
706
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPO106().');
707
+ }
708
+ const queryParameters = {};
709
+ const headerParameters = {};
710
+ if (requestParameters['acceptLanguage'] != null) {
711
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
712
+ }
713
+ if (requestParameters['xAppAccountId'] != null) {
714
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
715
+ }
716
+ if (requestParameters['vergefyVersion'] != null) {
717
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
718
+ }
719
+ if (requestParameters['acceptTimezone'] != null) {
720
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
721
+ }
722
+ if (this.configuration && this.configuration.accessToken) {
723
+ const token = this.configuration.accessToken;
724
+ const tokenString = yield token("BearerAuth", []);
725
+ if (tokenString) {
726
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
727
+ }
728
+ }
729
+ let urlPath = `/api/supplier-purchase-orders/{id}/send`;
730
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
731
+ return {
732
+ path: urlPath,
733
+ method: 'POST',
734
+ headers: headerParameters,
735
+ query: queryParameters,
736
+ };
737
+ });
738
+ }
739
+ /**
740
+ * Sends an APPROVED order to its supplier: APPROVED -> SENT. The order\'s PDF is stored as a document associated with it, and e-mailed to the supplier\'s contact once the send is saved
741
+ * ASPO106 - Send Supplier Purchase Order
742
+ */
743
+ aSPO106Raw(requestParameters, initOverrides) {
744
+ return __awaiter(this, void 0, void 0, function* () {
745
+ const requestOptions = yield this.aSPO106RequestOpts(requestParameters);
746
+ const response = yield this.request(requestOptions, initOverrides);
747
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPurchaseOrderDTO_1.DataResponseDTOSupplierPurchaseOrderDTOFromJSON)(jsonValue));
748
+ });
749
+ }
750
+ /**
751
+ * Sends an APPROVED order to its supplier: APPROVED -> SENT. The order\'s PDF is stored as a document associated with it, and e-mailed to the supplier\'s contact once the send is saved
752
+ * ASPO106 - Send Supplier Purchase Order
753
+ */
754
+ aSPO106(requestParameters, initOverrides) {
755
+ return __awaiter(this, void 0, void 0, function* () {
756
+ const response = yield this.aSPO106Raw(requestParameters, initOverrides);
757
+ return yield response.value();
758
+ });
759
+ }
760
+ /**
761
+ * Creates request options for aSPO107 without sending the request
762
+ */
763
+ aSPO107RequestOpts(requestParameters) {
764
+ return __awaiter(this, void 0, void 0, function* () {
765
+ if (requestParameters['id'] == null) {
766
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPO107().');
767
+ }
768
+ if (requestParameters['xAppAccountId'] == null) {
769
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPO107().');
770
+ }
771
+ if (requestParameters['supplierPurchaseOrderRejectionDTO'] == null) {
772
+ throw new runtime.RequiredError('supplierPurchaseOrderRejectionDTO', 'Required parameter "supplierPurchaseOrderRejectionDTO" was null or undefined when calling aSPO107().');
773
+ }
774
+ const queryParameters = {};
775
+ const headerParameters = {};
776
+ headerParameters['Content-Type'] = 'application/json';
777
+ if (requestParameters['acceptLanguage'] != null) {
778
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
779
+ }
780
+ if (requestParameters['xAppAccountId'] != null) {
781
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
782
+ }
783
+ if (requestParameters['vergefyVersion'] != null) {
784
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
785
+ }
786
+ if (requestParameters['acceptTimezone'] != null) {
787
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
788
+ }
789
+ if (this.configuration && this.configuration.accessToken) {
790
+ const token = this.configuration.accessToken;
791
+ const tokenString = yield token("BearerAuth", []);
792
+ if (tokenString) {
793
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
794
+ }
795
+ }
796
+ let urlPath = `/api/supplier-purchase-orders/{id}/reject`;
797
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
798
+ return {
799
+ path: urlPath,
800
+ method: 'POST',
801
+ headers: headerParameters,
802
+ query: queryParameters,
803
+ body: (0, SupplierPurchaseOrderRejectionDTO_1.SupplierPurchaseOrderRejectionDTOToJSON)(requestParameters['supplierPurchaseOrderRejectionDTO']),
804
+ };
805
+ });
806
+ }
807
+ /**
808
+ * Sends a SUBMITTED order back for changes with a reason: SUBMITTED -> DRAFT. The order records who rejected it, when and why, and keeps that when it is submitted again
809
+ * ASPO107 - Reject Supplier Purchase Order
810
+ */
811
+ aSPO107Raw(requestParameters, initOverrides) {
812
+ return __awaiter(this, void 0, void 0, function* () {
813
+ const requestOptions = yield this.aSPO107RequestOpts(requestParameters);
814
+ const response = yield this.request(requestOptions, initOverrides);
815
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPurchaseOrderDTO_1.DataResponseDTOSupplierPurchaseOrderDTOFromJSON)(jsonValue));
816
+ });
817
+ }
818
+ /**
819
+ * Sends a SUBMITTED order back for changes with a reason: SUBMITTED -> DRAFT. The order records who rejected it, when and why, and keeps that when it is submitted again
820
+ * ASPO107 - Reject Supplier Purchase Order
821
+ */
822
+ aSPO107(requestParameters, initOverrides) {
823
+ return __awaiter(this, void 0, void 0, function* () {
824
+ const response = yield this.aSPO107Raw(requestParameters, initOverrides);
825
+ return yield response.value();
826
+ });
827
+ }
828
+ /**
829
+ * Creates request options for aSPO108 without sending the request
830
+ */
831
+ aSPO108RequestOpts(requestParameters) {
832
+ return __awaiter(this, void 0, void 0, function* () {
833
+ if (requestParameters['id'] == null) {
834
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPO108().');
835
+ }
836
+ if (requestParameters['xAppAccountId'] == null) {
837
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPO108().');
838
+ }
839
+ const queryParameters = {};
840
+ const headerParameters = {};
841
+ if (requestParameters['acceptLanguage'] != null) {
842
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
843
+ }
844
+ if (requestParameters['xAppAccountId'] != null) {
845
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
846
+ }
847
+ if (requestParameters['vergefyVersion'] != null) {
848
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
849
+ }
850
+ if (requestParameters['acceptTimezone'] != null) {
851
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
852
+ }
853
+ if (this.configuration && this.configuration.accessToken) {
854
+ const token = this.configuration.accessToken;
855
+ const tokenString = yield token("BearerAuth", []);
856
+ if (tokenString) {
857
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
858
+ }
859
+ }
860
+ let urlPath = `/api/supplier-purchase-orders/{id}/close`;
861
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
862
+ return {
863
+ path: urlPath,
864
+ method: 'POST',
865
+ headers: headerParameters,
866
+ query: queryParameters,
867
+ };
868
+ });
869
+ }
870
+ /**
871
+ * Closes an order that has received goods and will receive no more: PARTIALLY_RECEIVED or RECEIVED -> CLOSED. A closed order takes no more goods, and a supplier bill may still name it. An order that has received nothing is cancelled (ASPO104) instead
872
+ * ASPO108 - Close Supplier Purchase Order
873
+ */
874
+ aSPO108Raw(requestParameters, initOverrides) {
875
+ return __awaiter(this, void 0, void 0, function* () {
876
+ const requestOptions = yield this.aSPO108RequestOpts(requestParameters);
877
+ const response = yield this.request(requestOptions, initOverrides);
878
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPurchaseOrderDTO_1.DataResponseDTOSupplierPurchaseOrderDTOFromJSON)(jsonValue));
879
+ });
880
+ }
881
+ /**
882
+ * Closes an order that has received goods and will receive no more: PARTIALLY_RECEIVED or RECEIVED -> CLOSED. A closed order takes no more goods, and a supplier bill may still name it. An order that has received nothing is cancelled (ASPO104) instead
883
+ * ASPO108 - Close Supplier Purchase Order
884
+ */
885
+ aSPO108(requestParameters, initOverrides) {
886
+ return __awaiter(this, void 0, void 0, function* () {
887
+ const response = yield this.aSPO108Raw(requestParameters, initOverrides);
888
+ return yield response.value();
889
+ });
890
+ }
891
+ }
892
+ exports.APIASPOSupplierPurchaseOrderApi = APIASPOSupplierPurchaseOrderApi;
893
+ /**
894
+ * @export
895
+ */
896
+ exports.ASPO002StatusEnum = {
897
+ Draft: 'DRAFT',
898
+ Submitted: 'SUBMITTED',
899
+ Approved: 'APPROVED',
900
+ Sent: 'SENT',
901
+ PartiallyReceived: 'PARTIALLY_RECEIVED',
902
+ Received: 'RECEIVED',
903
+ Closed: 'CLOSED',
904
+ Cancelled: 'CANCELLED'
905
+ };
906
+ /**
907
+ * @export
908
+ */
909
+ exports.ASPO002MatchStatusEnum = {
910
+ Matched: 'MATCHED',
911
+ Mismatch: 'MISMATCH'
912
+ };