@integrahub/vergefy-client 0.22.0 → 0.24.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 (256) hide show
  1. package/README.md +2 -2
  2. package/dist/apis/APIAASAssociationApi.d.ts +2 -0
  3. package/dist/apis/APIAASAssociationApi.js +4 -2
  4. package/dist/apis/APIAGRGoodsReceiptApi.d.ts +1 -10
  5. package/dist/apis/APIAGRGoodsReceiptApi.js +1 -11
  6. package/dist/apis/APIAISIntegrationShippingApi.d.ts +8 -8
  7. package/dist/apis/APIAISIntegrationShippingApi.js +10 -10
  8. package/dist/apis/APIAIVInventoryApi.d.ts +8 -8
  9. package/dist/apis/APIAIVInventoryApi.js +10 -10
  10. package/dist/apis/APIARSGReorderSuggestionApi.d.ts +61 -0
  11. package/dist/apis/APIARSGReorderSuggestionApi.js +158 -0
  12. package/dist/apis/APIASPLSupplierPriceListApi.d.ts +137 -0
  13. package/dist/apis/APIASPLSupplierPriceListApi.js +394 -0
  14. package/dist/apis/APIASPOSupplierPurchaseOrderApi.d.ts +255 -0
  15. package/dist/apis/APIASPOSupplierPurchaseOrderApi.js +711 -0
  16. package/dist/apis/APIASPRSupplierPurchaseOrderApprovalRuleApi.d.ts +131 -0
  17. package/dist/apis/APIASPRSupplierPurchaseOrderApprovalRuleApi.js +369 -0
  18. package/dist/apis/APPPAFAAffiliateAccountApi.d.ts +0 -22
  19. package/dist/apis/APPPAFAAffiliateAccountApi.js +0 -66
  20. package/dist/apis/APPPHRAWHRApprovalWorkflowApi.d.ts +1 -0
  21. package/dist/apis/APPPHRAWHRApprovalWorkflowApi.js +3 -0
  22. package/dist/apis/APPPMTMailTrustApi.d.ts +1 -2
  23. package/dist/apis/APPPMTMailTrustApi.js +0 -3
  24. package/dist/apis/APPPPMRPMSStockRFIDApi.d.ts +16 -16
  25. package/dist/apis/APPPPMRPMSStockRFIDApi.js +9 -9
  26. package/dist/apis/index.d.ts +4 -0
  27. package/dist/apis/index.js +4 -0
  28. package/dist/esm/apis/APIAASAssociationApi.js +4 -2
  29. package/dist/esm/apis/APIAGRGoodsReceiptApi.js +0 -10
  30. package/dist/esm/apis/APIAISIntegrationShippingApi.js +10 -10
  31. package/dist/esm/apis/APIAIVInventoryApi.js +10 -10
  32. package/dist/esm/apis/APIARSGReorderSuggestionApi.js +154 -0
  33. package/dist/esm/apis/APIASPLSupplierPriceListApi.js +390 -0
  34. package/dist/esm/apis/APIASPOSupplierPurchaseOrderApi.js +707 -0
  35. package/dist/esm/apis/APIASPRSupplierPurchaseOrderApprovalRuleApi.js +365 -0
  36. package/dist/esm/apis/APPPAFAAffiliateAccountApi.js +0 -66
  37. package/dist/esm/apis/APPPHRAWHRApprovalWorkflowApi.js +3 -0
  38. package/dist/esm/apis/APPPMTMailTrustApi.js +0 -3
  39. package/dist/esm/apis/APPPPMRPMSStockRFIDApi.js +9 -9
  40. package/dist/esm/apis/index.js +4 -0
  41. package/dist/esm/ext/telemetry.js +1 -1
  42. package/dist/esm/models/AddressValidationResultDTO.js +3 -3
  43. package/dist/esm/models/AffiliateAccountDTO.js +0 -2
  44. package/dist/esm/models/AgentTemplateWorkflowDTO.js +3 -3
  45. package/dist/esm/models/AgentWorkflowDTO.js +6 -6
  46. package/dist/esm/models/AgentWorkflowInstanceDTO.js +68 -0
  47. package/dist/esm/models/AgentWorkflowTemplateDTO.js +74 -0
  48. package/dist/esm/models/AssociationDTO.js +4 -2
  49. package/dist/esm/models/DataResponseDTOInventoryArticleChannelStockDTO.js +42 -0
  50. package/dist/esm/models/DataResponseDTOListReorderSuggestionDTO.js +42 -0
  51. package/dist/esm/models/DataResponseDTOListSupplierPurchaseOrderDTO.js +42 -0
  52. package/dist/esm/models/DataResponseDTOSupplierPriceDTO.js +42 -0
  53. package/dist/esm/models/{DataResponseDTOArticleChannelStockDTO.js → DataResponseDTOSupplierPriceListDTO.js} +11 -11
  54. package/dist/esm/models/DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO.js +42 -0
  55. package/dist/esm/models/DataResponseDTOSupplierPurchaseOrderDTO.js +42 -0
  56. package/dist/esm/models/DocumentDTO.js +3 -0
  57. package/dist/esm/models/EmailIntegrationAttachmentDTO.js +51 -0
  58. package/dist/esm/models/EmailMessageDTO.js +3 -3
  59. package/dist/esm/models/EmailSendRequestDTO.js +3 -3
  60. package/dist/esm/models/GoodsReceiptLineDTO.js +2 -0
  61. package/dist/esm/models/HrResumeLanguageDTO.js +43 -0
  62. package/dist/esm/models/HrResumeParseDTO.js +3 -3
  63. package/dist/esm/models/InventoryArticleChannelStockDTO.js +94 -0
  64. package/dist/esm/models/LanguageDTO.js +53 -4
  65. package/dist/esm/models/PageSupplierPriceListDTO.js +64 -0
  66. package/dist/esm/models/PageSupplierPurchaseOrderApprovalRuleDTO.js +64 -0
  67. package/dist/esm/models/PageSupplierPurchaseOrderDTO.js +64 -0
  68. package/dist/esm/models/{BulkOperationResultPmsRFIDTagDTO.js → PmsRFIDTagBulkOperationResultPmsRFIDTagDTO.js} +8 -8
  69. package/dist/esm/models/PmsRFIDTagBulkOperationResultUUID.js +51 -0
  70. package/dist/esm/models/RateRequestDTO.js +5 -5
  71. package/dist/esm/models/ReorderSuggestionDTO.js +63 -0
  72. package/dist/esm/models/ReorderSuggestionDraftDTO.js +44 -0
  73. package/dist/esm/models/ReorderSuggestionSelectionDTO.js +43 -0
  74. package/dist/esm/models/ReturnLabelRequestDTO.js +5 -5
  75. package/dist/esm/models/ShipmentDTO.js +63 -24
  76. package/dist/esm/models/ShipmentRequestDTO.js +7 -7
  77. package/dist/esm/models/ShipmentResultDTO.js +3 -3
  78. package/dist/esm/models/ShippingIntegrationAddressDTO.js +61 -0
  79. package/dist/esm/models/ShippingIntegrationShipmentDTO.js +70 -0
  80. package/dist/esm/models/SubscriptionEntitlementDTO.js +3 -0
  81. package/dist/esm/models/SupplierPriceDTO.js +61 -0
  82. package/dist/esm/models/SupplierPriceListDTO.js +97 -0
  83. package/dist/esm/models/SupplierPriceListLineDTO.js +88 -0
  84. package/dist/esm/models/SupplierPurchaseOrderApprovalRuleDTO.js +86 -0
  85. package/dist/esm/models/SupplierPurchaseOrderDTO.js +142 -0
  86. package/dist/esm/models/SupplierPurchaseOrderLineDTO.js +98 -0
  87. package/dist/esm/models/SupplierPurchaseOrderRejectionDTO.js +43 -0
  88. package/dist/esm/models/index.js +29 -2
  89. package/dist/ext/telemetry.d.ts +1 -1
  90. package/dist/ext/telemetry.js +1 -1
  91. package/dist/models/AIDecisionAuditLogCreateDTO.d.ts +1 -1
  92. package/dist/models/AIFileProcessingJobCreateApiDTO.d.ts +1 -1
  93. package/dist/models/AIFileProcessingResultWriteApiDTO.d.ts +1 -1
  94. package/dist/models/AddressValidationResultDTO.d.ts +3 -3
  95. package/dist/models/AddressValidationResultDTO.js +3 -3
  96. package/dist/models/AffiliateAccountDTO.d.ts +0 -6
  97. package/dist/models/AffiliateAccountDTO.js +0 -2
  98. package/dist/models/AgentFeedbackRequestDTO.d.ts +1 -1
  99. package/dist/models/AgentGoalCreateDTO.d.ts +1 -1
  100. package/dist/models/AgentGoalUpdateDTO.d.ts +1 -1
  101. package/dist/models/AgentHierarchyCreateDTO.d.ts +1 -1
  102. package/dist/models/AgentHierarchyUpdateDTO.d.ts +1 -1
  103. package/dist/models/AgentTemplateWorkflowDTO.d.ts +3 -3
  104. package/dist/models/AgentTemplateWorkflowDTO.js +3 -3
  105. package/dist/models/AgentWorkflowDTO.d.ts +6 -6
  106. package/dist/models/AgentWorkflowDTO.js +6 -6
  107. package/dist/models/AgentWorkflowEventCreateDTO.d.ts +1 -1
  108. package/dist/models/AgentWorkflowInstanceDTO.d.ts +111 -0
  109. package/dist/models/AgentWorkflowInstanceDTO.js +75 -0
  110. package/dist/models/AgentWorkflowSearchDTO.d.ts +1 -1
  111. package/dist/models/AgentWorkflowTemplateDTO.d.ts +129 -0
  112. package/dist/models/AgentWorkflowTemplateDTO.js +81 -0
  113. package/dist/models/AssociationDTO.d.ts +2 -0
  114. package/dist/models/AssociationDTO.js +4 -2
  115. package/dist/models/BookingAvailabilityWindowDTO.d.ts +1 -1
  116. package/dist/models/BookingCreateDTO.d.ts +1 -1
  117. package/dist/models/BookingHostCreateDTO.d.ts +1 -1
  118. package/dist/models/BookingHostUpdateDTO.d.ts +1 -1
  119. package/dist/models/BookingReminderCreateDTO.d.ts +1 -1
  120. package/dist/models/BookingUpdateDTO.d.ts +1 -1
  121. package/dist/models/CheckoutSessionRequestDTO.d.ts +1 -1
  122. package/dist/models/ClosedLoopProposalDecisionRequestDTO.d.ts +1 -1
  123. package/dist/models/DataResponseDTOInventoryArticleChannelStockDTO.d.ts +33 -0
  124. package/dist/models/DataResponseDTOInventoryArticleChannelStockDTO.js +49 -0
  125. package/dist/models/DataResponseDTOListReorderSuggestionDTO.d.ts +33 -0
  126. package/dist/models/DataResponseDTOListReorderSuggestionDTO.js +49 -0
  127. package/dist/models/DataResponseDTOListSupplierPurchaseOrderDTO.d.ts +33 -0
  128. package/dist/models/DataResponseDTOListSupplierPurchaseOrderDTO.js +49 -0
  129. package/dist/models/{DataResponseDTOArticleChannelStockDTO.d.ts → DataResponseDTOSupplierPriceDTO.d.ts} +12 -12
  130. package/dist/models/DataResponseDTOSupplierPriceDTO.js +49 -0
  131. package/dist/models/DataResponseDTOSupplierPriceListDTO.d.ts +33 -0
  132. package/dist/models/{DataResponseDTOArticleChannelStockDTO.js → DataResponseDTOSupplierPriceListDTO.js} +16 -16
  133. package/dist/models/DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO.d.ts +33 -0
  134. package/dist/models/DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO.js +49 -0
  135. package/dist/models/DataResponseDTOSupplierPurchaseOrderDTO.d.ts +33 -0
  136. package/dist/models/DataResponseDTOSupplierPurchaseOrderDTO.js +49 -0
  137. package/dist/models/DocumentDTO.d.ts +7 -0
  138. package/dist/models/DocumentDTO.js +3 -0
  139. package/dist/models/EmailIntegrationAttachmentDTO.d.ts +62 -0
  140. package/dist/models/EmailIntegrationAttachmentDTO.js +58 -0
  141. package/dist/models/EmailListRequestDTO.d.ts +1 -1
  142. package/dist/models/EmailMessageDTO.d.ts +3 -3
  143. package/dist/models/EmailMessageDTO.js +3 -3
  144. package/dist/models/EmailSendRequestDTO.d.ts +4 -4
  145. package/dist/models/EmailSendRequestDTO.js +3 -3
  146. package/dist/models/FileOCRTextDTO.d.ts +1 -1
  147. package/dist/models/FleetAlertRuleCreateDTO.d.ts +1 -1
  148. package/dist/models/FleetAlertRuleUpdateDTO.d.ts +1 -1
  149. package/dist/models/FleetDeviceCommandCreateDTO.d.ts +1 -1
  150. package/dist/models/FleetDeviceCreateDTO.d.ts +1 -1
  151. package/dist/models/FleetDeviceGroupCreateDTO.d.ts +1 -1
  152. package/dist/models/FleetDeviceGroupUpdateDTO.d.ts +1 -1
  153. package/dist/models/FleetDeviceTemplateCreateDTO.d.ts +1 -1
  154. package/dist/models/FleetDeviceTemplateUpdateDTO.d.ts +1 -1
  155. package/dist/models/FleetDeviceUpdateDTO.d.ts +1 -1
  156. package/dist/models/FleetGeofenceCreateDTO.d.ts +1 -1
  157. package/dist/models/FleetGeofenceUpdateDTO.d.ts +1 -1
  158. package/dist/models/FleetMaintenanceRecordCreateDTO.d.ts +1 -1
  159. package/dist/models/FleetMaintenanceRecordUpdateDTO.d.ts +1 -1
  160. package/dist/models/FleetTelemetryCreateDTO.d.ts +1 -1
  161. package/dist/models/FormConfigurationDTO.d.ts +1 -1
  162. package/dist/models/FormCustomFieldGroupCreateDTO.d.ts +1 -1
  163. package/dist/models/FormCustomFieldGroupUpdateDTO.d.ts +1 -1
  164. package/dist/models/GoodsReceiptLineDTO.d.ts +7 -1
  165. package/dist/models/GoodsReceiptLineDTO.js +2 -0
  166. package/dist/models/HrApprovalDecisionDTO.d.ts +1 -1
  167. package/dist/models/HrApprovalWorkflowCreateDTO.d.ts +1 -1
  168. package/dist/models/HrCertificationCreateDTO.d.ts +1 -1
  169. package/dist/models/HrCertificationUpdateDTO.d.ts +1 -1
  170. package/dist/models/HrEmployeeCreateApiDTO.d.ts +1 -1
  171. package/dist/models/HrEmployeeSearchDTO.d.ts +1 -1
  172. package/dist/models/HrEmployeeUpdateApiDTO.d.ts +1 -1
  173. package/dist/models/HrResumeLanguageDTO.d.ts +38 -0
  174. package/dist/models/HrResumeLanguageDTO.js +50 -0
  175. package/dist/models/HrResumeParseDTO.d.ts +3 -3
  176. package/dist/models/HrResumeParseDTO.js +3 -3
  177. package/dist/models/HrResumeParseRequestDTO.d.ts +1 -1
  178. package/dist/models/HrTrainingEnrollmentCreateDTO.d.ts +1 -1
  179. package/dist/models/HrTrainingProgramCreateDTO.d.ts +1 -1
  180. package/dist/models/HrTrainingProgramUpdateDTO.d.ts +1 -1
  181. package/dist/models/IntegrationConfigurationCreateDTO.d.ts +1 -1
  182. package/dist/models/IntegrationConfigurationUpdateDTO.d.ts +1 -1
  183. package/dist/models/InventoryArticleChannelStockDTO.d.ts +151 -0
  184. package/dist/models/InventoryArticleChannelStockDTO.js +102 -0
  185. package/dist/models/LanguageDTO.d.ts +117 -2
  186. package/dist/models/LanguageDTO.js +54 -4
  187. package/dist/models/LeadSource.d.ts +1 -1
  188. package/dist/models/ManufacturingProcessProfileCreateDTO.d.ts +1 -1
  189. package/dist/models/ManufacturingProcessProfileUpdateDTO.d.ts +1 -1
  190. package/dist/models/ManufacturingWorkOrderCreateDTO.d.ts +1 -1
  191. package/dist/models/ManufacturingWorkOrderMaterialCreateDTO.d.ts +1 -1
  192. package/dist/models/ManufacturingWorkOrderMaterialUpdateDTO.d.ts +1 -1
  193. package/dist/models/ManufacturingWorkOrderUpdateDTO.d.ts +1 -1
  194. package/dist/models/PageSupplierPriceListDTO.d.ts +95 -0
  195. package/dist/models/PageSupplierPriceListDTO.js +71 -0
  196. package/dist/models/PageSupplierPurchaseOrderApprovalRuleDTO.d.ts +95 -0
  197. package/dist/models/PageSupplierPurchaseOrderApprovalRuleDTO.js +71 -0
  198. package/dist/models/PageSupplierPurchaseOrderDTO.d.ts +95 -0
  199. package/dist/models/PageSupplierPurchaseOrderDTO.js +71 -0
  200. package/dist/models/PaymentCustomerRequestDTO.d.ts +1 -1
  201. package/dist/models/PaymentIntentRequestDTO.d.ts +1 -1
  202. package/dist/models/PermissionDTO.d.ts +1 -1
  203. package/dist/models/PlatformBillingDTO.d.ts +1 -1
  204. package/dist/models/PlatformServiceDTO.d.ts +1 -1
  205. package/dist/models/PlatformSubscriptionCancellationDTO.d.ts +1 -1
  206. package/dist/models/{BulkOperationResultPmsRFIDTagDTO.d.ts → PmsRFIDTagBulkOperationResultPmsRFIDTagDTO.d.ts} +14 -14
  207. package/dist/models/{BulkOperationResultPmsRFIDTagDTO.js → PmsRFIDTagBulkOperationResultPmsRFIDTagDTO.js} +13 -13
  208. package/dist/models/PmsRFIDTagBulkOperationResultUUID.d.ts +62 -0
  209. package/dist/models/PmsRFIDTagBulkOperationResultUUID.js +58 -0
  210. package/dist/models/RateRequestDTO.d.ts +5 -5
  211. package/dist/models/RateRequestDTO.js +5 -5
  212. package/dist/models/RefundRequestDTO.d.ts +1 -1
  213. package/dist/models/ReorderSuggestionDTO.d.ts +98 -0
  214. package/dist/models/ReorderSuggestionDTO.js +70 -0
  215. package/dist/models/ReorderSuggestionDraftDTO.d.ts +33 -0
  216. package/dist/models/ReorderSuggestionDraftDTO.js +51 -0
  217. package/dist/models/ReorderSuggestionSelectionDTO.d.ts +38 -0
  218. package/dist/models/ReorderSuggestionSelectionDTO.js +50 -0
  219. package/dist/models/ReturnLabelRequestDTO.d.ts +5 -5
  220. package/dist/models/ReturnLabelRequestDTO.js +5 -5
  221. package/dist/models/ShipmentDTO.d.ts +97 -20
  222. package/dist/models/ShipmentDTO.js +64 -24
  223. package/dist/models/ShipmentRequestDTO.d.ts +7 -7
  224. package/dist/models/ShipmentRequestDTO.js +7 -7
  225. package/dist/models/ShipmentResultDTO.d.ts +3 -3
  226. package/dist/models/ShipmentResultDTO.js +3 -3
  227. package/dist/models/ShippingIntegrationAddressDTO.d.ts +92 -0
  228. package/dist/models/ShippingIntegrationAddressDTO.js +68 -0
  229. package/dist/models/ShippingIntegrationShipmentDTO.d.ts +113 -0
  230. package/dist/models/ShippingIntegrationShipmentDTO.js +77 -0
  231. package/dist/models/ShopifyEntitySyncStatusDTO.d.ts +1 -1
  232. package/dist/models/SignInRequestDTO.d.ts +1 -1
  233. package/dist/models/SignUpPlatformRequestDTO.d.ts +1 -1
  234. package/dist/models/SmsSendRequestDTO.d.ts +1 -1
  235. package/dist/models/SubscriptionEntitlementDTO.d.ts +7 -0
  236. package/dist/models/SubscriptionEntitlementDTO.js +3 -0
  237. package/dist/models/SupplierPriceDTO.d.ts +92 -0
  238. package/dist/models/SupplierPriceDTO.js +68 -0
  239. package/dist/models/SupplierPriceListDTO.d.ts +153 -0
  240. package/dist/models/SupplierPriceListDTO.js +105 -0
  241. package/dist/models/SupplierPriceListLineDTO.d.ts +140 -0
  242. package/dist/models/SupplierPriceListLineDTO.js +96 -0
  243. package/dist/models/SupplierPurchaseOrderApprovalRuleDTO.d.ts +134 -0
  244. package/dist/models/SupplierPurchaseOrderApprovalRuleDTO.js +94 -0
  245. package/dist/models/SupplierPurchaseOrderDTO.d.ts +269 -0
  246. package/dist/models/SupplierPurchaseOrderDTO.js +150 -0
  247. package/dist/models/SupplierPurchaseOrderLineDTO.d.ts +170 -0
  248. package/dist/models/SupplierPurchaseOrderLineDTO.js +106 -0
  249. package/dist/models/SupplierPurchaseOrderRejectionDTO.d.ts +32 -0
  250. package/dist/models/SupplierPurchaseOrderRejectionDTO.js +50 -0
  251. package/dist/models/TemplatedEmailRequestDTO.d.ts +1 -1
  252. package/dist/models/TenantDTO.d.ts +1 -1
  253. package/dist/models/WorkflowExecutionRequestDTO.d.ts +1 -1
  254. package/dist/models/index.d.ts +29 -2
  255. package/dist/models/index.js +29 -2
  256. package/package.json +1 -1
@@ -0,0 +1,390 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Vergefy API
5
+ * <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>
6
+ *
7
+ * The version of the OpenAPI document: 2026-05-30
8
+ * Contact: support@integrahub.co
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { DataResponseDTOSupplierPriceDTOFromJSON, } from '../models/DataResponseDTOSupplierPriceDTO';
25
+ import { DataResponseDTOSupplierPriceListDTOFromJSON, } from '../models/DataResponseDTOSupplierPriceListDTO';
26
+ import { PageSupplierPriceListDTOFromJSON, } from '../models/PageSupplierPriceListDTO';
27
+ import { SupplierPriceListDTOToJSON, } from '../models/SupplierPriceListDTO';
28
+ /**
29
+ *
30
+ */
31
+ export class APIASPLSupplierPriceListApi extends runtime.BaseAPI {
32
+ /**
33
+ * Creates request options for aSPL001 without sending the request
34
+ */
35
+ aSPL001RequestOpts(requestParameters) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters['id'] == null) {
38
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPL001().');
39
+ }
40
+ if (requestParameters['xAppAccountId'] == null) {
41
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPL001().');
42
+ }
43
+ const queryParameters = {};
44
+ const headerParameters = {};
45
+ if (requestParameters['acceptLanguage'] != null) {
46
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
47
+ }
48
+ if (requestParameters['xAppAccountId'] != null) {
49
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
50
+ }
51
+ if (requestParameters['vergefyVersion'] != null) {
52
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
53
+ }
54
+ if (requestParameters['acceptTimezone'] != null) {
55
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
56
+ }
57
+ if (this.configuration && this.configuration.accessToken) {
58
+ const token = this.configuration.accessToken;
59
+ const tokenString = yield token("BearerAuth", []);
60
+ if (tokenString) {
61
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
62
+ }
63
+ }
64
+ let urlPath = `/api/supplier-price-lists/{id}`;
65
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
66
+ return {
67
+ path: urlPath,
68
+ method: 'GET',
69
+ headers: headerParameters,
70
+ query: queryParameters,
71
+ };
72
+ });
73
+ }
74
+ /**
75
+ * Retrieves a supplier price list with its lines by id
76
+ * ASPL001 - Get Supplier Price List
77
+ */
78
+ aSPL001Raw(requestParameters, initOverrides) {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ const requestOptions = yield this.aSPL001RequestOpts(requestParameters);
81
+ const response = yield this.request(requestOptions, initOverrides);
82
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOSupplierPriceListDTOFromJSON(jsonValue));
83
+ });
84
+ }
85
+ /**
86
+ * Retrieves a supplier price list with its lines by id
87
+ * ASPL001 - Get Supplier Price List
88
+ */
89
+ aSPL001(requestParameters, initOverrides) {
90
+ return __awaiter(this, void 0, void 0, function* () {
91
+ const response = yield this.aSPL001Raw(requestParameters, initOverrides);
92
+ return yield response.value();
93
+ });
94
+ }
95
+ /**
96
+ * Creates request options for aSPL002 without sending the request
97
+ */
98
+ aSPL002RequestOpts(requestParameters) {
99
+ return __awaiter(this, void 0, void 0, function* () {
100
+ if (requestParameters['xAppAccountId'] == null) {
101
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPL002().');
102
+ }
103
+ const queryParameters = {};
104
+ if (requestParameters['search'] != null) {
105
+ queryParameters['search'] = requestParameters['search'];
106
+ }
107
+ if (requestParameters['supplierId'] != null) {
108
+ queryParameters['supplierId'] = requestParameters['supplierId'];
109
+ }
110
+ if (requestParameters['currencyCode'] != null) {
111
+ queryParameters['currencyCode'] = requestParameters['currencyCode'];
112
+ }
113
+ if (requestParameters['validOn'] != null) {
114
+ queryParameters['validOn'] = requestParameters['validOn'];
115
+ }
116
+ if (requestParameters['page'] != null) {
117
+ queryParameters['page'] = requestParameters['page'];
118
+ }
119
+ if (requestParameters['size'] != null) {
120
+ queryParameters['size'] = requestParameters['size'];
121
+ }
122
+ if (requestParameters['sort'] != null) {
123
+ queryParameters['sort'] = requestParameters['sort'];
124
+ }
125
+ const headerParameters = {};
126
+ if (requestParameters['acceptLanguage'] != null) {
127
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
128
+ }
129
+ if (requestParameters['xAppAccountId'] != null) {
130
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
131
+ }
132
+ if (requestParameters['vergefyVersion'] != null) {
133
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
134
+ }
135
+ if (requestParameters['acceptTimezone'] != null) {
136
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
137
+ }
138
+ if (this.configuration && this.configuration.accessToken) {
139
+ const token = this.configuration.accessToken;
140
+ const tokenString = yield token("BearerAuth", []);
141
+ if (tokenString) {
142
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
143
+ }
144
+ }
145
+ let urlPath = `/api/supplier-price-lists`;
146
+ return {
147
+ path: urlPath,
148
+ method: 'GET',
149
+ headers: headerParameters,
150
+ query: queryParameters,
151
+ };
152
+ });
153
+ }
154
+ /**
155
+ * Filtered, paginated search over supplier price lists (supplier, currency, the day they apply on, name)
156
+ * ASPL002 - Search Supplier Price Lists
157
+ */
158
+ aSPL002Raw(requestParameters, initOverrides) {
159
+ return __awaiter(this, void 0, void 0, function* () {
160
+ const requestOptions = yield this.aSPL002RequestOpts(requestParameters);
161
+ const response = yield this.request(requestOptions, initOverrides);
162
+ return new runtime.JSONApiResponse(response, (jsonValue) => PageSupplierPriceListDTOFromJSON(jsonValue));
163
+ });
164
+ }
165
+ /**
166
+ * Filtered, paginated search over supplier price lists (supplier, currency, the day they apply on, name)
167
+ * ASPL002 - Search Supplier Price Lists
168
+ */
169
+ aSPL002(requestParameters, initOverrides) {
170
+ return __awaiter(this, void 0, void 0, function* () {
171
+ const response = yield this.aSPL002Raw(requestParameters, initOverrides);
172
+ return yield response.value();
173
+ });
174
+ }
175
+ /**
176
+ * Creates request options for aSPL003 without sending the request
177
+ */
178
+ aSPL003RequestOpts(requestParameters) {
179
+ return __awaiter(this, void 0, void 0, function* () {
180
+ if (requestParameters['supplierId'] == null) {
181
+ throw new runtime.RequiredError('supplierId', 'Required parameter "supplierId" was null or undefined when calling aSPL003().');
182
+ }
183
+ if (requestParameters['articleId'] == null) {
184
+ throw new runtime.RequiredError('articleId', 'Required parameter "articleId" was null or undefined when calling aSPL003().');
185
+ }
186
+ if (requestParameters['currencyCode'] == null) {
187
+ throw new runtime.RequiredError('currencyCode', 'Required parameter "currencyCode" was null or undefined when calling aSPL003().');
188
+ }
189
+ if (requestParameters['xAppAccountId'] == null) {
190
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPL003().');
191
+ }
192
+ const queryParameters = {};
193
+ if (requestParameters['supplierId'] != null) {
194
+ queryParameters['supplierId'] = requestParameters['supplierId'];
195
+ }
196
+ if (requestParameters['articleId'] != null) {
197
+ queryParameters['articleId'] = requestParameters['articleId'];
198
+ }
199
+ if (requestParameters['currencyCode'] != null) {
200
+ queryParameters['currencyCode'] = requestParameters['currencyCode'];
201
+ }
202
+ if (requestParameters['date'] != null) {
203
+ queryParameters['date'] = requestParameters['date'];
204
+ }
205
+ if (requestParameters['quantity'] != null) {
206
+ queryParameters['quantity'] = requestParameters['quantity'];
207
+ }
208
+ const headerParameters = {};
209
+ if (requestParameters['acceptLanguage'] != null) {
210
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
211
+ }
212
+ if (requestParameters['xAppAccountId'] != null) {
213
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
214
+ }
215
+ if (requestParameters['vergefyVersion'] != null) {
216
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
217
+ }
218
+ if (requestParameters['acceptTimezone'] != null) {
219
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
220
+ }
221
+ if (this.configuration && this.configuration.accessToken) {
222
+ const token = this.configuration.accessToken;
223
+ const tokenString = yield token("BearerAuth", []);
224
+ if (tokenString) {
225
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
226
+ }
227
+ }
228
+ let urlPath = `/api/supplier-price-lists/price`;
229
+ return {
230
+ path: urlPath,
231
+ method: 'GET',
232
+ headers: headerParameters,
233
+ query: queryParameters,
234
+ };
235
+ });
236
+ }
237
+ /**
238
+ * The unit cost and lead time a supplier\'s price lists give an article in a currency, on a date (today when omitted) and at a quantity (one when omitted). Of the lists valid on the date with a line for the article at or below the quantity, the one with the latest validFrom applies, and within it the highest quantity break. This is how a purchase-order line with no unit cost is priced
239
+ * ASPL003 - Get Supplier Price
240
+ */
241
+ aSPL003Raw(requestParameters, initOverrides) {
242
+ return __awaiter(this, void 0, void 0, function* () {
243
+ const requestOptions = yield this.aSPL003RequestOpts(requestParameters);
244
+ const response = yield this.request(requestOptions, initOverrides);
245
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOSupplierPriceDTOFromJSON(jsonValue));
246
+ });
247
+ }
248
+ /**
249
+ * The unit cost and lead time a supplier\'s price lists give an article in a currency, on a date (today when omitted) and at a quantity (one when omitted). Of the lists valid on the date with a line for the article at or below the quantity, the one with the latest validFrom applies, and within it the highest quantity break. This is how a purchase-order line with no unit cost is priced
250
+ * ASPL003 - Get Supplier Price
251
+ */
252
+ aSPL003(requestParameters, initOverrides) {
253
+ return __awaiter(this, void 0, void 0, function* () {
254
+ const response = yield this.aSPL003Raw(requestParameters, initOverrides);
255
+ return yield response.value();
256
+ });
257
+ }
258
+ /**
259
+ * Creates request options for aSPL100 without sending the request
260
+ */
261
+ aSPL100RequestOpts(requestParameters) {
262
+ return __awaiter(this, void 0, void 0, function* () {
263
+ if (requestParameters['xAppAccountId'] == null) {
264
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPL100().');
265
+ }
266
+ if (requestParameters['supplierPriceListDTO'] == null) {
267
+ throw new runtime.RequiredError('supplierPriceListDTO', 'Required parameter "supplierPriceListDTO" was null or undefined when calling aSPL100().');
268
+ }
269
+ const queryParameters = {};
270
+ const headerParameters = {};
271
+ headerParameters['Content-Type'] = 'application/json';
272
+ if (requestParameters['acceptLanguage'] != null) {
273
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
274
+ }
275
+ if (requestParameters['xAppAccountId'] != null) {
276
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
277
+ }
278
+ if (requestParameters['vergefyVersion'] != null) {
279
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
280
+ }
281
+ if (requestParameters['acceptTimezone'] != null) {
282
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
283
+ }
284
+ if (this.configuration && this.configuration.accessToken) {
285
+ const token = this.configuration.accessToken;
286
+ const tokenString = yield token("BearerAuth", []);
287
+ if (tokenString) {
288
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
289
+ }
290
+ }
291
+ let urlPath = `/api/supplier-price-lists`;
292
+ return {
293
+ path: urlPath,
294
+ method: 'POST',
295
+ headers: headerParameters,
296
+ query: queryParameters,
297
+ body: SupplierPriceListDTOToJSON(requestParameters['supplierPriceListDTO']),
298
+ };
299
+ });
300
+ }
301
+ /**
302
+ * Creates a price list for one supplier and currency, valid from validFrom to validTo (open-ended when omitted), with one line per article and quantity break
303
+ * ASPL100 - Create Supplier Price List
304
+ */
305
+ aSPL100Raw(requestParameters, initOverrides) {
306
+ return __awaiter(this, void 0, void 0, function* () {
307
+ const requestOptions = yield this.aSPL100RequestOpts(requestParameters);
308
+ const response = yield this.request(requestOptions, initOverrides);
309
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOSupplierPriceListDTOFromJSON(jsonValue));
310
+ });
311
+ }
312
+ /**
313
+ * Creates a price list for one supplier and currency, valid from validFrom to validTo (open-ended when omitted), with one line per article and quantity break
314
+ * ASPL100 - Create Supplier Price List
315
+ */
316
+ aSPL100(requestParameters, initOverrides) {
317
+ return __awaiter(this, void 0, void 0, function* () {
318
+ const response = yield this.aSPL100Raw(requestParameters, initOverrides);
319
+ return yield response.value();
320
+ });
321
+ }
322
+ /**
323
+ * Creates request options for aSPL101 without sending the request
324
+ */
325
+ aSPL101RequestOpts(requestParameters) {
326
+ return __awaiter(this, void 0, void 0, function* () {
327
+ if (requestParameters['id'] == null) {
328
+ throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPL101().');
329
+ }
330
+ if (requestParameters['xAppAccountId'] == null) {
331
+ throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPL101().');
332
+ }
333
+ if (requestParameters['supplierPriceListDTO'] == null) {
334
+ throw new runtime.RequiredError('supplierPriceListDTO', 'Required parameter "supplierPriceListDTO" was null or undefined when calling aSPL101().');
335
+ }
336
+ const queryParameters = {};
337
+ const headerParameters = {};
338
+ headerParameters['Content-Type'] = 'application/json';
339
+ if (requestParameters['acceptLanguage'] != null) {
340
+ headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
341
+ }
342
+ if (requestParameters['xAppAccountId'] != null) {
343
+ headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
344
+ }
345
+ if (requestParameters['vergefyVersion'] != null) {
346
+ headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
347
+ }
348
+ if (requestParameters['acceptTimezone'] != null) {
349
+ headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
350
+ }
351
+ if (this.configuration && this.configuration.accessToken) {
352
+ const token = this.configuration.accessToken;
353
+ const tokenString = yield token("BearerAuth", []);
354
+ if (tokenString) {
355
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
356
+ }
357
+ }
358
+ let urlPath = `/api/supplier-price-lists/{id}`;
359
+ urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
360
+ return {
361
+ path: urlPath,
362
+ method: 'PUT',
363
+ headers: headerParameters,
364
+ query: queryParameters,
365
+ body: SupplierPriceListDTOToJSON(requestParameters['supplierPriceListDTO']),
366
+ };
367
+ });
368
+ }
369
+ /**
370
+ * Replaces a price list\'s details and lines
371
+ * ASPL101 - Update Supplier Price List
372
+ */
373
+ aSPL101Raw(requestParameters, initOverrides) {
374
+ return __awaiter(this, void 0, void 0, function* () {
375
+ const requestOptions = yield this.aSPL101RequestOpts(requestParameters);
376
+ const response = yield this.request(requestOptions, initOverrides);
377
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOSupplierPriceListDTOFromJSON(jsonValue));
378
+ });
379
+ }
380
+ /**
381
+ * Replaces a price list\'s details and lines
382
+ * ASPL101 - Update Supplier Price List
383
+ */
384
+ aSPL101(requestParameters, initOverrides) {
385
+ return __awaiter(this, void 0, void 0, function* () {
386
+ const response = yield this.aSPL101Raw(requestParameters, initOverrides);
387
+ return yield response.value();
388
+ });
389
+ }
390
+ }