@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.
- package/README.md +2 -2
- package/dist/apis/APIAASAssociationApi.d.ts +2 -0
- package/dist/apis/APIAASAssociationApi.js +4 -2
- package/dist/apis/APIAGRGoodsReceiptApi.d.ts +1 -10
- package/dist/apis/APIAGRGoodsReceiptApi.js +1 -11
- package/dist/apis/APIAISIntegrationShippingApi.d.ts +8 -8
- package/dist/apis/APIAISIntegrationShippingApi.js +10 -10
- package/dist/apis/APIAIVInventoryApi.d.ts +8 -8
- package/dist/apis/APIAIVInventoryApi.js +10 -10
- package/dist/apis/APIARSGReorderSuggestionApi.d.ts +61 -0
- package/dist/apis/APIARSGReorderSuggestionApi.js +158 -0
- package/dist/apis/APIASPLSupplierPriceListApi.d.ts +137 -0
- package/dist/apis/APIASPLSupplierPriceListApi.js +394 -0
- package/dist/apis/APIASPOSupplierPurchaseOrderApi.d.ts +255 -0
- package/dist/apis/APIASPOSupplierPurchaseOrderApi.js +711 -0
- package/dist/apis/APIASPRSupplierPurchaseOrderApprovalRuleApi.d.ts +131 -0
- package/dist/apis/APIASPRSupplierPurchaseOrderApprovalRuleApi.js +369 -0
- package/dist/apis/APPPAFAAffiliateAccountApi.d.ts +0 -22
- package/dist/apis/APPPAFAAffiliateAccountApi.js +0 -66
- package/dist/apis/APPPHRAWHRApprovalWorkflowApi.d.ts +1 -0
- package/dist/apis/APPPHRAWHRApprovalWorkflowApi.js +3 -0
- package/dist/apis/APPPMTMailTrustApi.d.ts +1 -2
- package/dist/apis/APPPMTMailTrustApi.js +0 -3
- package/dist/apis/APPPPMRPMSStockRFIDApi.d.ts +16 -16
- package/dist/apis/APPPPMRPMSStockRFIDApi.js +9 -9
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +4 -0
- package/dist/esm/apis/APIAASAssociationApi.js +4 -2
- package/dist/esm/apis/APIAGRGoodsReceiptApi.js +0 -10
- package/dist/esm/apis/APIAISIntegrationShippingApi.js +10 -10
- package/dist/esm/apis/APIAIVInventoryApi.js +10 -10
- package/dist/esm/apis/APIARSGReorderSuggestionApi.js +154 -0
- package/dist/esm/apis/APIASPLSupplierPriceListApi.js +390 -0
- package/dist/esm/apis/APIASPOSupplierPurchaseOrderApi.js +707 -0
- package/dist/esm/apis/APIASPRSupplierPurchaseOrderApprovalRuleApi.js +365 -0
- package/dist/esm/apis/APPPAFAAffiliateAccountApi.js +0 -66
- package/dist/esm/apis/APPPHRAWHRApprovalWorkflowApi.js +3 -0
- package/dist/esm/apis/APPPMTMailTrustApi.js +0 -3
- package/dist/esm/apis/APPPPMRPMSStockRFIDApi.js +9 -9
- package/dist/esm/apis/index.js +4 -0
- package/dist/esm/ext/telemetry.js +1 -1
- package/dist/esm/models/AddressValidationResultDTO.js +3 -3
- package/dist/esm/models/AffiliateAccountDTO.js +0 -2
- package/dist/esm/models/AgentTemplateWorkflowDTO.js +3 -3
- package/dist/esm/models/AgentWorkflowDTO.js +6 -6
- package/dist/esm/models/AgentWorkflowInstanceDTO.js +68 -0
- package/dist/esm/models/AgentWorkflowTemplateDTO.js +74 -0
- package/dist/esm/models/AssociationDTO.js +4 -2
- package/dist/esm/models/DataResponseDTOInventoryArticleChannelStockDTO.js +42 -0
- package/dist/esm/models/DataResponseDTOListReorderSuggestionDTO.js +42 -0
- package/dist/esm/models/DataResponseDTOListSupplierPurchaseOrderDTO.js +42 -0
- package/dist/esm/models/DataResponseDTOSupplierPriceDTO.js +42 -0
- package/dist/esm/models/{DataResponseDTOArticleChannelStockDTO.js → DataResponseDTOSupplierPriceListDTO.js} +11 -11
- package/dist/esm/models/DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO.js +42 -0
- package/dist/esm/models/DataResponseDTOSupplierPurchaseOrderDTO.js +42 -0
- package/dist/esm/models/DocumentDTO.js +3 -0
- package/dist/esm/models/EmailIntegrationAttachmentDTO.js +51 -0
- package/dist/esm/models/EmailMessageDTO.js +3 -3
- package/dist/esm/models/EmailSendRequestDTO.js +3 -3
- package/dist/esm/models/GoodsReceiptLineDTO.js +2 -0
- package/dist/esm/models/HrResumeLanguageDTO.js +43 -0
- package/dist/esm/models/HrResumeParseDTO.js +3 -3
- package/dist/esm/models/InventoryArticleChannelStockDTO.js +94 -0
- package/dist/esm/models/LanguageDTO.js +53 -4
- package/dist/esm/models/PageSupplierPriceListDTO.js +64 -0
- package/dist/esm/models/PageSupplierPurchaseOrderApprovalRuleDTO.js +64 -0
- package/dist/esm/models/PageSupplierPurchaseOrderDTO.js +64 -0
- package/dist/esm/models/{BulkOperationResultPmsRFIDTagDTO.js → PmsRFIDTagBulkOperationResultPmsRFIDTagDTO.js} +8 -8
- package/dist/esm/models/PmsRFIDTagBulkOperationResultUUID.js +51 -0
- package/dist/esm/models/RateRequestDTO.js +5 -5
- package/dist/esm/models/ReorderSuggestionDTO.js +63 -0
- package/dist/esm/models/ReorderSuggestionDraftDTO.js +44 -0
- package/dist/esm/models/ReorderSuggestionSelectionDTO.js +43 -0
- package/dist/esm/models/ReturnLabelRequestDTO.js +5 -5
- package/dist/esm/models/ShipmentDTO.js +63 -24
- package/dist/esm/models/ShipmentRequestDTO.js +7 -7
- package/dist/esm/models/ShipmentResultDTO.js +3 -3
- package/dist/esm/models/ShippingIntegrationAddressDTO.js +61 -0
- package/dist/esm/models/ShippingIntegrationShipmentDTO.js +70 -0
- package/dist/esm/models/SubscriptionEntitlementDTO.js +3 -0
- package/dist/esm/models/SupplierPriceDTO.js +61 -0
- package/dist/esm/models/SupplierPriceListDTO.js +97 -0
- package/dist/esm/models/SupplierPriceListLineDTO.js +88 -0
- package/dist/esm/models/SupplierPurchaseOrderApprovalRuleDTO.js +86 -0
- package/dist/esm/models/SupplierPurchaseOrderDTO.js +142 -0
- package/dist/esm/models/SupplierPurchaseOrderLineDTO.js +98 -0
- package/dist/esm/models/SupplierPurchaseOrderRejectionDTO.js +43 -0
- package/dist/esm/models/index.js +29 -2
- package/dist/ext/telemetry.d.ts +1 -1
- package/dist/ext/telemetry.js +1 -1
- package/dist/models/AIDecisionAuditLogCreateDTO.d.ts +1 -1
- package/dist/models/AIFileProcessingJobCreateApiDTO.d.ts +1 -1
- package/dist/models/AIFileProcessingResultWriteApiDTO.d.ts +1 -1
- package/dist/models/AddressValidationResultDTO.d.ts +3 -3
- package/dist/models/AddressValidationResultDTO.js +3 -3
- package/dist/models/AffiliateAccountDTO.d.ts +0 -6
- package/dist/models/AffiliateAccountDTO.js +0 -2
- package/dist/models/AgentFeedbackRequestDTO.d.ts +1 -1
- package/dist/models/AgentGoalCreateDTO.d.ts +1 -1
- package/dist/models/AgentGoalUpdateDTO.d.ts +1 -1
- package/dist/models/AgentHierarchyCreateDTO.d.ts +1 -1
- package/dist/models/AgentHierarchyUpdateDTO.d.ts +1 -1
- package/dist/models/AgentTemplateWorkflowDTO.d.ts +3 -3
- package/dist/models/AgentTemplateWorkflowDTO.js +3 -3
- package/dist/models/AgentWorkflowDTO.d.ts +6 -6
- package/dist/models/AgentWorkflowDTO.js +6 -6
- package/dist/models/AgentWorkflowEventCreateDTO.d.ts +1 -1
- package/dist/models/AgentWorkflowInstanceDTO.d.ts +111 -0
- package/dist/models/AgentWorkflowInstanceDTO.js +75 -0
- package/dist/models/AgentWorkflowSearchDTO.d.ts +1 -1
- package/dist/models/AgentWorkflowTemplateDTO.d.ts +129 -0
- package/dist/models/AgentWorkflowTemplateDTO.js +81 -0
- package/dist/models/AssociationDTO.d.ts +2 -0
- package/dist/models/AssociationDTO.js +4 -2
- package/dist/models/BookingAvailabilityWindowDTO.d.ts +1 -1
- package/dist/models/BookingCreateDTO.d.ts +1 -1
- package/dist/models/BookingHostCreateDTO.d.ts +1 -1
- package/dist/models/BookingHostUpdateDTO.d.ts +1 -1
- package/dist/models/BookingReminderCreateDTO.d.ts +1 -1
- package/dist/models/BookingUpdateDTO.d.ts +1 -1
- package/dist/models/CheckoutSessionRequestDTO.d.ts +1 -1
- package/dist/models/ClosedLoopProposalDecisionRequestDTO.d.ts +1 -1
- package/dist/models/DataResponseDTOInventoryArticleChannelStockDTO.d.ts +33 -0
- package/dist/models/DataResponseDTOInventoryArticleChannelStockDTO.js +49 -0
- package/dist/models/DataResponseDTOListReorderSuggestionDTO.d.ts +33 -0
- package/dist/models/DataResponseDTOListReorderSuggestionDTO.js +49 -0
- package/dist/models/DataResponseDTOListSupplierPurchaseOrderDTO.d.ts +33 -0
- package/dist/models/DataResponseDTOListSupplierPurchaseOrderDTO.js +49 -0
- package/dist/models/{DataResponseDTOArticleChannelStockDTO.d.ts → DataResponseDTOSupplierPriceDTO.d.ts} +12 -12
- package/dist/models/DataResponseDTOSupplierPriceDTO.js +49 -0
- package/dist/models/DataResponseDTOSupplierPriceListDTO.d.ts +33 -0
- package/dist/models/{DataResponseDTOArticleChannelStockDTO.js → DataResponseDTOSupplierPriceListDTO.js} +16 -16
- package/dist/models/DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO.d.ts +33 -0
- package/dist/models/DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO.js +49 -0
- package/dist/models/DataResponseDTOSupplierPurchaseOrderDTO.d.ts +33 -0
- package/dist/models/DataResponseDTOSupplierPurchaseOrderDTO.js +49 -0
- package/dist/models/DocumentDTO.d.ts +7 -0
- package/dist/models/DocumentDTO.js +3 -0
- package/dist/models/EmailIntegrationAttachmentDTO.d.ts +62 -0
- package/dist/models/EmailIntegrationAttachmentDTO.js +58 -0
- package/dist/models/EmailListRequestDTO.d.ts +1 -1
- package/dist/models/EmailMessageDTO.d.ts +3 -3
- package/dist/models/EmailMessageDTO.js +3 -3
- package/dist/models/EmailSendRequestDTO.d.ts +4 -4
- package/dist/models/EmailSendRequestDTO.js +3 -3
- package/dist/models/FileOCRTextDTO.d.ts +1 -1
- package/dist/models/FleetAlertRuleCreateDTO.d.ts +1 -1
- package/dist/models/FleetAlertRuleUpdateDTO.d.ts +1 -1
- package/dist/models/FleetDeviceCommandCreateDTO.d.ts +1 -1
- package/dist/models/FleetDeviceCreateDTO.d.ts +1 -1
- package/dist/models/FleetDeviceGroupCreateDTO.d.ts +1 -1
- package/dist/models/FleetDeviceGroupUpdateDTO.d.ts +1 -1
- package/dist/models/FleetDeviceTemplateCreateDTO.d.ts +1 -1
- package/dist/models/FleetDeviceTemplateUpdateDTO.d.ts +1 -1
- package/dist/models/FleetDeviceUpdateDTO.d.ts +1 -1
- package/dist/models/FleetGeofenceCreateDTO.d.ts +1 -1
- package/dist/models/FleetGeofenceUpdateDTO.d.ts +1 -1
- package/dist/models/FleetMaintenanceRecordCreateDTO.d.ts +1 -1
- package/dist/models/FleetMaintenanceRecordUpdateDTO.d.ts +1 -1
- package/dist/models/FleetTelemetryCreateDTO.d.ts +1 -1
- package/dist/models/FormConfigurationDTO.d.ts +1 -1
- package/dist/models/FormCustomFieldGroupCreateDTO.d.ts +1 -1
- package/dist/models/FormCustomFieldGroupUpdateDTO.d.ts +1 -1
- package/dist/models/GoodsReceiptLineDTO.d.ts +7 -1
- package/dist/models/GoodsReceiptLineDTO.js +2 -0
- package/dist/models/HrApprovalDecisionDTO.d.ts +1 -1
- package/dist/models/HrApprovalWorkflowCreateDTO.d.ts +1 -1
- package/dist/models/HrCertificationCreateDTO.d.ts +1 -1
- package/dist/models/HrCertificationUpdateDTO.d.ts +1 -1
- package/dist/models/HrEmployeeCreateApiDTO.d.ts +1 -1
- package/dist/models/HrEmployeeSearchDTO.d.ts +1 -1
- package/dist/models/HrEmployeeUpdateApiDTO.d.ts +1 -1
- package/dist/models/HrResumeLanguageDTO.d.ts +38 -0
- package/dist/models/HrResumeLanguageDTO.js +50 -0
- package/dist/models/HrResumeParseDTO.d.ts +3 -3
- package/dist/models/HrResumeParseDTO.js +3 -3
- package/dist/models/HrResumeParseRequestDTO.d.ts +1 -1
- package/dist/models/HrTrainingEnrollmentCreateDTO.d.ts +1 -1
- package/dist/models/HrTrainingProgramCreateDTO.d.ts +1 -1
- package/dist/models/HrTrainingProgramUpdateDTO.d.ts +1 -1
- package/dist/models/IntegrationConfigurationCreateDTO.d.ts +1 -1
- package/dist/models/IntegrationConfigurationUpdateDTO.d.ts +1 -1
- package/dist/models/InventoryArticleChannelStockDTO.d.ts +151 -0
- package/dist/models/InventoryArticleChannelStockDTO.js +102 -0
- package/dist/models/LanguageDTO.d.ts +117 -2
- package/dist/models/LanguageDTO.js +54 -4
- package/dist/models/LeadSource.d.ts +1 -1
- package/dist/models/ManufacturingProcessProfileCreateDTO.d.ts +1 -1
- package/dist/models/ManufacturingProcessProfileUpdateDTO.d.ts +1 -1
- package/dist/models/ManufacturingWorkOrderCreateDTO.d.ts +1 -1
- package/dist/models/ManufacturingWorkOrderMaterialCreateDTO.d.ts +1 -1
- package/dist/models/ManufacturingWorkOrderMaterialUpdateDTO.d.ts +1 -1
- package/dist/models/ManufacturingWorkOrderUpdateDTO.d.ts +1 -1
- package/dist/models/PageSupplierPriceListDTO.d.ts +95 -0
- package/dist/models/PageSupplierPriceListDTO.js +71 -0
- package/dist/models/PageSupplierPurchaseOrderApprovalRuleDTO.d.ts +95 -0
- package/dist/models/PageSupplierPurchaseOrderApprovalRuleDTO.js +71 -0
- package/dist/models/PageSupplierPurchaseOrderDTO.d.ts +95 -0
- package/dist/models/PageSupplierPurchaseOrderDTO.js +71 -0
- package/dist/models/PaymentCustomerRequestDTO.d.ts +1 -1
- package/dist/models/PaymentIntentRequestDTO.d.ts +1 -1
- package/dist/models/PermissionDTO.d.ts +1 -1
- package/dist/models/PlatformBillingDTO.d.ts +1 -1
- package/dist/models/PlatformServiceDTO.d.ts +1 -1
- package/dist/models/PlatformSubscriptionCancellationDTO.d.ts +1 -1
- package/dist/models/{BulkOperationResultPmsRFIDTagDTO.d.ts → PmsRFIDTagBulkOperationResultPmsRFIDTagDTO.d.ts} +14 -14
- package/dist/models/{BulkOperationResultPmsRFIDTagDTO.js → PmsRFIDTagBulkOperationResultPmsRFIDTagDTO.js} +13 -13
- package/dist/models/PmsRFIDTagBulkOperationResultUUID.d.ts +62 -0
- package/dist/models/PmsRFIDTagBulkOperationResultUUID.js +58 -0
- package/dist/models/RateRequestDTO.d.ts +5 -5
- package/dist/models/RateRequestDTO.js +5 -5
- package/dist/models/RefundRequestDTO.d.ts +1 -1
- package/dist/models/ReorderSuggestionDTO.d.ts +98 -0
- package/dist/models/ReorderSuggestionDTO.js +70 -0
- package/dist/models/ReorderSuggestionDraftDTO.d.ts +33 -0
- package/dist/models/ReorderSuggestionDraftDTO.js +51 -0
- package/dist/models/ReorderSuggestionSelectionDTO.d.ts +38 -0
- package/dist/models/ReorderSuggestionSelectionDTO.js +50 -0
- package/dist/models/ReturnLabelRequestDTO.d.ts +5 -5
- package/dist/models/ReturnLabelRequestDTO.js +5 -5
- package/dist/models/ShipmentDTO.d.ts +97 -20
- package/dist/models/ShipmentDTO.js +64 -24
- package/dist/models/ShipmentRequestDTO.d.ts +7 -7
- package/dist/models/ShipmentRequestDTO.js +7 -7
- package/dist/models/ShipmentResultDTO.d.ts +3 -3
- package/dist/models/ShipmentResultDTO.js +3 -3
- package/dist/models/ShippingIntegrationAddressDTO.d.ts +92 -0
- package/dist/models/ShippingIntegrationAddressDTO.js +68 -0
- package/dist/models/ShippingIntegrationShipmentDTO.d.ts +113 -0
- package/dist/models/ShippingIntegrationShipmentDTO.js +77 -0
- package/dist/models/ShopifyEntitySyncStatusDTO.d.ts +1 -1
- package/dist/models/SignInRequestDTO.d.ts +1 -1
- package/dist/models/SignUpPlatformRequestDTO.d.ts +1 -1
- package/dist/models/SmsSendRequestDTO.d.ts +1 -1
- package/dist/models/SubscriptionEntitlementDTO.d.ts +7 -0
- package/dist/models/SubscriptionEntitlementDTO.js +3 -0
- package/dist/models/SupplierPriceDTO.d.ts +92 -0
- package/dist/models/SupplierPriceDTO.js +68 -0
- package/dist/models/SupplierPriceListDTO.d.ts +153 -0
- package/dist/models/SupplierPriceListDTO.js +105 -0
- package/dist/models/SupplierPriceListLineDTO.d.ts +140 -0
- package/dist/models/SupplierPriceListLineDTO.js +96 -0
- package/dist/models/SupplierPurchaseOrderApprovalRuleDTO.d.ts +134 -0
- package/dist/models/SupplierPurchaseOrderApprovalRuleDTO.js +94 -0
- package/dist/models/SupplierPurchaseOrderDTO.d.ts +269 -0
- package/dist/models/SupplierPurchaseOrderDTO.js +150 -0
- package/dist/models/SupplierPurchaseOrderLineDTO.d.ts +170 -0
- package/dist/models/SupplierPurchaseOrderLineDTO.js +106 -0
- package/dist/models/SupplierPurchaseOrderRejectionDTO.d.ts +32 -0
- package/dist/models/SupplierPurchaseOrderRejectionDTO.js +50 -0
- package/dist/models/TemplatedEmailRequestDTO.d.ts +1 -1
- package/dist/models/TenantDTO.d.ts +1 -1
- package/dist/models/WorkflowExecutionRequestDTO.d.ts +1 -1
- package/dist/models/index.d.ts +29 -2
- package/dist/models/index.js +29 -2
- package/package.json +1 -1
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vergefy API
|
|
3
|
+
* <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2026-05-30
|
|
6
|
+
* Contact: support@integrahub.co
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import { type DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO } from '../models/DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO';
|
|
14
|
+
import { type PageSupplierPurchaseOrderApprovalRuleDTO } from '../models/PageSupplierPurchaseOrderApprovalRuleDTO';
|
|
15
|
+
import { type SupplierPurchaseOrderApprovalRuleDTO } from '../models/SupplierPurchaseOrderApprovalRuleDTO';
|
|
16
|
+
export interface ASPR001Request {
|
|
17
|
+
id: string;
|
|
18
|
+
xAppAccountId: string;
|
|
19
|
+
acceptLanguage?: string;
|
|
20
|
+
vergefyVersion?: string;
|
|
21
|
+
acceptTimezone?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ASPR002Request {
|
|
24
|
+
xAppAccountId: string;
|
|
25
|
+
supplierId?: string;
|
|
26
|
+
currencyCode?: string;
|
|
27
|
+
tenantWide?: boolean;
|
|
28
|
+
page?: number;
|
|
29
|
+
size?: number;
|
|
30
|
+
sort?: Array<string>;
|
|
31
|
+
acceptLanguage?: string;
|
|
32
|
+
vergefyVersion?: string;
|
|
33
|
+
acceptTimezone?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface ASPR100Request {
|
|
36
|
+
xAppAccountId: string;
|
|
37
|
+
supplierPurchaseOrderApprovalRuleDTO: SupplierPurchaseOrderApprovalRuleDTO;
|
|
38
|
+
acceptLanguage?: string;
|
|
39
|
+
vergefyVersion?: string;
|
|
40
|
+
acceptTimezone?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ASPR101Request {
|
|
43
|
+
id: string;
|
|
44
|
+
xAppAccountId: string;
|
|
45
|
+
supplierPurchaseOrderApprovalRuleDTO: SupplierPurchaseOrderApprovalRuleDTO;
|
|
46
|
+
acceptLanguage?: string;
|
|
47
|
+
vergefyVersion?: string;
|
|
48
|
+
acceptTimezone?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface ASPR102Request {
|
|
51
|
+
id: string;
|
|
52
|
+
xAppAccountId: string;
|
|
53
|
+
acceptLanguage?: string;
|
|
54
|
+
vergefyVersion?: string;
|
|
55
|
+
acceptTimezone?: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
export declare class APIASPRSupplierPurchaseOrderApprovalRuleApi extends runtime.BaseAPI {
|
|
61
|
+
/**
|
|
62
|
+
* Creates request options for aSPR001 without sending the request
|
|
63
|
+
*/
|
|
64
|
+
aSPR001RequestOpts(requestParameters: ASPR001Request): Promise<runtime.RequestOpts>;
|
|
65
|
+
/**
|
|
66
|
+
* Retrieves an approval rule by id
|
|
67
|
+
* ASPR001 - Get Supplier Purchase Order Approval Rule
|
|
68
|
+
*/
|
|
69
|
+
aSPR001Raw(requestParameters: ASPR001Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO>>;
|
|
70
|
+
/**
|
|
71
|
+
* Retrieves an approval rule by id
|
|
72
|
+
* ASPR001 - Get Supplier Purchase Order Approval Rule
|
|
73
|
+
*/
|
|
74
|
+
aSPR001(requestParameters: ASPR001Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO>;
|
|
75
|
+
/**
|
|
76
|
+
* Creates request options for aSPR002 without sending the request
|
|
77
|
+
*/
|
|
78
|
+
aSPR002RequestOpts(requestParameters: ASPR002Request): Promise<runtime.RequestOpts>;
|
|
79
|
+
/**
|
|
80
|
+
* Filtered, paginated search over approval rules (supplier, currency, and whether a rule is tenant-wide)
|
|
81
|
+
* ASPR002 - Search Supplier Purchase Order Approval Rules
|
|
82
|
+
*/
|
|
83
|
+
aSPR002Raw(requestParameters: ASPR002Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PageSupplierPurchaseOrderApprovalRuleDTO>>;
|
|
84
|
+
/**
|
|
85
|
+
* Filtered, paginated search over approval rules (supplier, currency, and whether a rule is tenant-wide)
|
|
86
|
+
* ASPR002 - Search Supplier Purchase Order Approval Rules
|
|
87
|
+
*/
|
|
88
|
+
aSPR002(requestParameters: ASPR002Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PageSupplierPurchaseOrderApprovalRuleDTO>;
|
|
89
|
+
/**
|
|
90
|
+
* Creates request options for aSPR100 without sending the request
|
|
91
|
+
*/
|
|
92
|
+
aSPR100RequestOpts(requestParameters: ASPR100Request): Promise<runtime.RequestOpts>;
|
|
93
|
+
/**
|
|
94
|
+
* Creates the rule for one currency, tenant-wide when supplierId is omitted or for one supplier, whose rule overrides the tenant-wide one. An order whose total is at or under the threshold is approved when submitted
|
|
95
|
+
* ASPR100 - Create Supplier Purchase Order Approval Rule
|
|
96
|
+
*/
|
|
97
|
+
aSPR100Raw(requestParameters: ASPR100Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO>>;
|
|
98
|
+
/**
|
|
99
|
+
* Creates the rule for one currency, tenant-wide when supplierId is omitted or for one supplier, whose rule overrides the tenant-wide one. An order whose total is at or under the threshold is approved when submitted
|
|
100
|
+
* ASPR100 - Create Supplier Purchase Order Approval Rule
|
|
101
|
+
*/
|
|
102
|
+
aSPR100(requestParameters: ASPR100Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO>;
|
|
103
|
+
/**
|
|
104
|
+
* Creates request options for aSPR101 without sending the request
|
|
105
|
+
*/
|
|
106
|
+
aSPR101RequestOpts(requestParameters: ASPR101Request): Promise<runtime.RequestOpts>;
|
|
107
|
+
/**
|
|
108
|
+
* Replaces a rule\'s supplier, currency and threshold. Orders already waiting for approval are not decided again
|
|
109
|
+
* ASPR101 - Update Supplier Purchase Order Approval Rule
|
|
110
|
+
*/
|
|
111
|
+
aSPR101Raw(requestParameters: ASPR101Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO>>;
|
|
112
|
+
/**
|
|
113
|
+
* Replaces a rule\'s supplier, currency and threshold. Orders already waiting for approval are not decided again
|
|
114
|
+
* ASPR101 - Update Supplier Purchase Order Approval Rule
|
|
115
|
+
*/
|
|
116
|
+
aSPR101(requestParameters: ASPR101Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO>;
|
|
117
|
+
/**
|
|
118
|
+
* Creates request options for aSPR102 without sending the request
|
|
119
|
+
*/
|
|
120
|
+
aSPR102RequestOpts(requestParameters: ASPR102Request): Promise<runtime.RequestOpts>;
|
|
121
|
+
/**
|
|
122
|
+
* Deletes a rule. A supplier\'s orders then follow the tenant-wide rule, and orders in a currency with no rule wait for a person
|
|
123
|
+
* ASPR102 - Delete Supplier Purchase Order Approval Rule
|
|
124
|
+
*/
|
|
125
|
+
aSPR102Raw(requestParameters: ASPR102Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
126
|
+
/**
|
|
127
|
+
* Deletes a rule. A supplier\'s orders then follow the tenant-wide rule, and orders in a currency with no rule wait for a person
|
|
128
|
+
* ASPR102 - Delete Supplier Purchase Order Approval Rule
|
|
129
|
+
*/
|
|
130
|
+
aSPR102(requestParameters: ASPR102Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
131
|
+
}
|
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Vergefy API
|
|
6
|
+
* <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2026-05-30
|
|
9
|
+
* Contact: support@integrahub.co
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.APIASPRSupplierPurchaseOrderApprovalRuleApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO_1 = require("../models/DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO");
|
|
28
|
+
const PageSupplierPurchaseOrderApprovalRuleDTO_1 = require("../models/PageSupplierPurchaseOrderApprovalRuleDTO");
|
|
29
|
+
const SupplierPurchaseOrderApprovalRuleDTO_1 = require("../models/SupplierPurchaseOrderApprovalRuleDTO");
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
class APIASPRSupplierPurchaseOrderApprovalRuleApi extends runtime.BaseAPI {
|
|
34
|
+
/**
|
|
35
|
+
* Creates request options for aSPR001 without sending the request
|
|
36
|
+
*/
|
|
37
|
+
aSPR001RequestOpts(requestParameters) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
if (requestParameters['id'] == null) {
|
|
40
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPR001().');
|
|
41
|
+
}
|
|
42
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
43
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPR001().');
|
|
44
|
+
}
|
|
45
|
+
const queryParameters = {};
|
|
46
|
+
const headerParameters = {};
|
|
47
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
48
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
49
|
+
}
|
|
50
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
51
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
52
|
+
}
|
|
53
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
54
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
55
|
+
}
|
|
56
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
57
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
58
|
+
}
|
|
59
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
60
|
+
const token = this.configuration.accessToken;
|
|
61
|
+
const tokenString = yield token("BearerAuth", []);
|
|
62
|
+
if (tokenString) {
|
|
63
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
let urlPath = `/api/supplier-purchase-order-approval-rules/{id}`;
|
|
67
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
68
|
+
return {
|
|
69
|
+
path: urlPath,
|
|
70
|
+
method: 'GET',
|
|
71
|
+
headers: headerParameters,
|
|
72
|
+
query: queryParameters,
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Retrieves an approval rule by id
|
|
78
|
+
* ASPR001 - Get Supplier Purchase Order Approval Rule
|
|
79
|
+
*/
|
|
80
|
+
aSPR001Raw(requestParameters, initOverrides) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
const requestOptions = yield this.aSPR001RequestOpts(requestParameters);
|
|
83
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
84
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO_1.DataResponseDTOSupplierPurchaseOrderApprovalRuleDTOFromJSON)(jsonValue));
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Retrieves an approval rule by id
|
|
89
|
+
* ASPR001 - Get Supplier Purchase Order Approval Rule
|
|
90
|
+
*/
|
|
91
|
+
aSPR001(requestParameters, initOverrides) {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
const response = yield this.aSPR001Raw(requestParameters, initOverrides);
|
|
94
|
+
return yield response.value();
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Creates request options for aSPR002 without sending the request
|
|
99
|
+
*/
|
|
100
|
+
aSPR002RequestOpts(requestParameters) {
|
|
101
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
102
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
103
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPR002().');
|
|
104
|
+
}
|
|
105
|
+
const queryParameters = {};
|
|
106
|
+
if (requestParameters['supplierId'] != null) {
|
|
107
|
+
queryParameters['supplierId'] = requestParameters['supplierId'];
|
|
108
|
+
}
|
|
109
|
+
if (requestParameters['currencyCode'] != null) {
|
|
110
|
+
queryParameters['currencyCode'] = requestParameters['currencyCode'];
|
|
111
|
+
}
|
|
112
|
+
if (requestParameters['tenantWide'] != null) {
|
|
113
|
+
queryParameters['tenantWide'] = requestParameters['tenantWide'];
|
|
114
|
+
}
|
|
115
|
+
if (requestParameters['page'] != null) {
|
|
116
|
+
queryParameters['page'] = requestParameters['page'];
|
|
117
|
+
}
|
|
118
|
+
if (requestParameters['size'] != null) {
|
|
119
|
+
queryParameters['size'] = requestParameters['size'];
|
|
120
|
+
}
|
|
121
|
+
if (requestParameters['sort'] != null) {
|
|
122
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
123
|
+
}
|
|
124
|
+
const headerParameters = {};
|
|
125
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
126
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
127
|
+
}
|
|
128
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
129
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
130
|
+
}
|
|
131
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
132
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
133
|
+
}
|
|
134
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
135
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
136
|
+
}
|
|
137
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
138
|
+
const token = this.configuration.accessToken;
|
|
139
|
+
const tokenString = yield token("BearerAuth", []);
|
|
140
|
+
if (tokenString) {
|
|
141
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
let urlPath = `/api/supplier-purchase-order-approval-rules`;
|
|
145
|
+
return {
|
|
146
|
+
path: urlPath,
|
|
147
|
+
method: 'GET',
|
|
148
|
+
headers: headerParameters,
|
|
149
|
+
query: queryParameters,
|
|
150
|
+
};
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Filtered, paginated search over approval rules (supplier, currency, and whether a rule is tenant-wide)
|
|
155
|
+
* ASPR002 - Search Supplier Purchase Order Approval Rules
|
|
156
|
+
*/
|
|
157
|
+
aSPR002Raw(requestParameters, initOverrides) {
|
|
158
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
159
|
+
const requestOptions = yield this.aSPR002RequestOpts(requestParameters);
|
|
160
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
161
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, PageSupplierPurchaseOrderApprovalRuleDTO_1.PageSupplierPurchaseOrderApprovalRuleDTOFromJSON)(jsonValue));
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Filtered, paginated search over approval rules (supplier, currency, and whether a rule is tenant-wide)
|
|
166
|
+
* ASPR002 - Search Supplier Purchase Order Approval Rules
|
|
167
|
+
*/
|
|
168
|
+
aSPR002(requestParameters, initOverrides) {
|
|
169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
170
|
+
const response = yield this.aSPR002Raw(requestParameters, initOverrides);
|
|
171
|
+
return yield response.value();
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Creates request options for aSPR100 without sending the request
|
|
176
|
+
*/
|
|
177
|
+
aSPR100RequestOpts(requestParameters) {
|
|
178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
179
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
180
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPR100().');
|
|
181
|
+
}
|
|
182
|
+
if (requestParameters['supplierPurchaseOrderApprovalRuleDTO'] == null) {
|
|
183
|
+
throw new runtime.RequiredError('supplierPurchaseOrderApprovalRuleDTO', 'Required parameter "supplierPurchaseOrderApprovalRuleDTO" was null or undefined when calling aSPR100().');
|
|
184
|
+
}
|
|
185
|
+
const queryParameters = {};
|
|
186
|
+
const headerParameters = {};
|
|
187
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
188
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
189
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
190
|
+
}
|
|
191
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
192
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
193
|
+
}
|
|
194
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
195
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
196
|
+
}
|
|
197
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
198
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
199
|
+
}
|
|
200
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
201
|
+
const token = this.configuration.accessToken;
|
|
202
|
+
const tokenString = yield token("BearerAuth", []);
|
|
203
|
+
if (tokenString) {
|
|
204
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
let urlPath = `/api/supplier-purchase-order-approval-rules`;
|
|
208
|
+
return {
|
|
209
|
+
path: urlPath,
|
|
210
|
+
method: 'POST',
|
|
211
|
+
headers: headerParameters,
|
|
212
|
+
query: queryParameters,
|
|
213
|
+
body: (0, SupplierPurchaseOrderApprovalRuleDTO_1.SupplierPurchaseOrderApprovalRuleDTOToJSON)(requestParameters['supplierPurchaseOrderApprovalRuleDTO']),
|
|
214
|
+
};
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Creates the rule for one currency, tenant-wide when supplierId is omitted or for one supplier, whose rule overrides the tenant-wide one. An order whose total is at or under the threshold is approved when submitted
|
|
219
|
+
* ASPR100 - Create Supplier Purchase Order Approval Rule
|
|
220
|
+
*/
|
|
221
|
+
aSPR100Raw(requestParameters, initOverrides) {
|
|
222
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
223
|
+
const requestOptions = yield this.aSPR100RequestOpts(requestParameters);
|
|
224
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
225
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO_1.DataResponseDTOSupplierPurchaseOrderApprovalRuleDTOFromJSON)(jsonValue));
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Creates the rule for one currency, tenant-wide when supplierId is omitted or for one supplier, whose rule overrides the tenant-wide one. An order whose total is at or under the threshold is approved when submitted
|
|
230
|
+
* ASPR100 - Create Supplier Purchase Order Approval Rule
|
|
231
|
+
*/
|
|
232
|
+
aSPR100(requestParameters, initOverrides) {
|
|
233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
+
const response = yield this.aSPR100Raw(requestParameters, initOverrides);
|
|
235
|
+
return yield response.value();
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Creates request options for aSPR101 without sending the request
|
|
240
|
+
*/
|
|
241
|
+
aSPR101RequestOpts(requestParameters) {
|
|
242
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
243
|
+
if (requestParameters['id'] == null) {
|
|
244
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPR101().');
|
|
245
|
+
}
|
|
246
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
247
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPR101().');
|
|
248
|
+
}
|
|
249
|
+
if (requestParameters['supplierPurchaseOrderApprovalRuleDTO'] == null) {
|
|
250
|
+
throw new runtime.RequiredError('supplierPurchaseOrderApprovalRuleDTO', 'Required parameter "supplierPurchaseOrderApprovalRuleDTO" was null or undefined when calling aSPR101().');
|
|
251
|
+
}
|
|
252
|
+
const queryParameters = {};
|
|
253
|
+
const headerParameters = {};
|
|
254
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
255
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
256
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
257
|
+
}
|
|
258
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
259
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
260
|
+
}
|
|
261
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
262
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
263
|
+
}
|
|
264
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
265
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
266
|
+
}
|
|
267
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
268
|
+
const token = this.configuration.accessToken;
|
|
269
|
+
const tokenString = yield token("BearerAuth", []);
|
|
270
|
+
if (tokenString) {
|
|
271
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
let urlPath = `/api/supplier-purchase-order-approval-rules/{id}`;
|
|
275
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
276
|
+
return {
|
|
277
|
+
path: urlPath,
|
|
278
|
+
method: 'PUT',
|
|
279
|
+
headers: headerParameters,
|
|
280
|
+
query: queryParameters,
|
|
281
|
+
body: (0, SupplierPurchaseOrderApprovalRuleDTO_1.SupplierPurchaseOrderApprovalRuleDTOToJSON)(requestParameters['supplierPurchaseOrderApprovalRuleDTO']),
|
|
282
|
+
};
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Replaces a rule\'s supplier, currency and threshold. Orders already waiting for approval are not decided again
|
|
287
|
+
* ASPR101 - Update Supplier Purchase Order Approval Rule
|
|
288
|
+
*/
|
|
289
|
+
aSPR101Raw(requestParameters, initOverrides) {
|
|
290
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
291
|
+
const requestOptions = yield this.aSPR101RequestOpts(requestParameters);
|
|
292
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
293
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOSupplierPurchaseOrderApprovalRuleDTO_1.DataResponseDTOSupplierPurchaseOrderApprovalRuleDTOFromJSON)(jsonValue));
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Replaces a rule\'s supplier, currency and threshold. Orders already waiting for approval are not decided again
|
|
298
|
+
* ASPR101 - Update Supplier Purchase Order Approval Rule
|
|
299
|
+
*/
|
|
300
|
+
aSPR101(requestParameters, initOverrides) {
|
|
301
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
302
|
+
const response = yield this.aSPR101Raw(requestParameters, initOverrides);
|
|
303
|
+
return yield response.value();
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Creates request options for aSPR102 without sending the request
|
|
308
|
+
*/
|
|
309
|
+
aSPR102RequestOpts(requestParameters) {
|
|
310
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
311
|
+
if (requestParameters['id'] == null) {
|
|
312
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling aSPR102().');
|
|
313
|
+
}
|
|
314
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
315
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aSPR102().');
|
|
316
|
+
}
|
|
317
|
+
const queryParameters = {};
|
|
318
|
+
const headerParameters = {};
|
|
319
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
320
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
321
|
+
}
|
|
322
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
323
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
324
|
+
}
|
|
325
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
326
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
327
|
+
}
|
|
328
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
329
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
330
|
+
}
|
|
331
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
332
|
+
const token = this.configuration.accessToken;
|
|
333
|
+
const tokenString = yield token("BearerAuth", []);
|
|
334
|
+
if (tokenString) {
|
|
335
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
let urlPath = `/api/supplier-purchase-order-approval-rules/{id}`;
|
|
339
|
+
urlPath = urlPath.replace('{id}', encodeURIComponent(String(requestParameters['id'])));
|
|
340
|
+
return {
|
|
341
|
+
path: urlPath,
|
|
342
|
+
method: 'DELETE',
|
|
343
|
+
headers: headerParameters,
|
|
344
|
+
query: queryParameters,
|
|
345
|
+
};
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Deletes a rule. A supplier\'s orders then follow the tenant-wide rule, and orders in a currency with no rule wait for a person
|
|
350
|
+
* ASPR102 - Delete Supplier Purchase Order Approval Rule
|
|
351
|
+
*/
|
|
352
|
+
aSPR102Raw(requestParameters, initOverrides) {
|
|
353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
354
|
+
const requestOptions = yield this.aSPR102RequestOpts(requestParameters);
|
|
355
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
356
|
+
return new runtime.VoidApiResponse(response);
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Deletes a rule. A supplier\'s orders then follow the tenant-wide rule, and orders in a currency with no rule wait for a person
|
|
361
|
+
* ASPR102 - Delete Supplier Purchase Order Approval Rule
|
|
362
|
+
*/
|
|
363
|
+
aSPR102(requestParameters, initOverrides) {
|
|
364
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
365
|
+
yield this.aSPR102Raw(requestParameters, initOverrides);
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
exports.APIASPRSupplierPurchaseOrderApprovalRuleApi = APIASPRSupplierPurchaseOrderApprovalRuleApi;
|
|
@@ -28,7 +28,6 @@ export interface PAFA002Request {
|
|
|
28
28
|
parentAffiliateAccountId?: string;
|
|
29
29
|
platformAccountId?: string;
|
|
30
30
|
contactId?: string;
|
|
31
|
-
userReferenceId?: string;
|
|
32
31
|
status?: PAFA002StatusEnum;
|
|
33
32
|
affiliateCode?: string;
|
|
34
33
|
email?: string;
|
|
@@ -48,13 +47,6 @@ export interface PAFA003Request {
|
|
|
48
47
|
vergefyVersion?: string;
|
|
49
48
|
acceptTimezone?: string;
|
|
50
49
|
}
|
|
51
|
-
export interface PAFA004Request {
|
|
52
|
-
userReferenceId: string;
|
|
53
|
-
xAppAccountId: string;
|
|
54
|
-
acceptLanguage?: string;
|
|
55
|
-
vergefyVersion?: string;
|
|
56
|
-
acceptTimezone?: string;
|
|
57
|
-
}
|
|
58
50
|
export interface PAFA005Request {
|
|
59
51
|
parentId: string;
|
|
60
52
|
xAppAccountId: string;
|
|
@@ -166,20 +158,6 @@ export declare class APPPAFAAffiliateAccountApi extends runtime.BaseAPI {
|
|
|
166
158
|
* PAFA003 - Get Affiliate Account by Code
|
|
167
159
|
*/
|
|
168
160
|
pAFA003(requestParameters: PAFA003Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOAffiliateAccountDTO>;
|
|
169
|
-
/**
|
|
170
|
-
* Creates request options for pAFA004 without sending the request
|
|
171
|
-
*/
|
|
172
|
-
pAFA004RequestOpts(requestParameters: PAFA004Request): Promise<runtime.RequestOpts>;
|
|
173
|
-
/**
|
|
174
|
-
* Lists affiliate accounts belonging to a given user reference ID.
|
|
175
|
-
* PAFA004 - List Affiliate Accounts by User Reference
|
|
176
|
-
*/
|
|
177
|
-
pAFA004Raw(requestParameters: PAFA004Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOListAffiliateAccountDTO>>;
|
|
178
|
-
/**
|
|
179
|
-
* Lists affiliate accounts belonging to a given user reference ID.
|
|
180
|
-
* PAFA004 - List Affiliate Accounts by User Reference
|
|
181
|
-
*/
|
|
182
|
-
pAFA004(requestParameters: PAFA004Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOListAffiliateAccountDTO>;
|
|
183
161
|
/**
|
|
184
162
|
* Creates request options for pAFA005 without sending the request
|
|
185
163
|
*/
|
|
@@ -119,9 +119,6 @@ class APPPAFAAffiliateAccountApi extends runtime.BaseAPI {
|
|
|
119
119
|
if (requestParameters['contactId'] != null) {
|
|
120
120
|
queryParameters['contactId'] = requestParameters['contactId'];
|
|
121
121
|
}
|
|
122
|
-
if (requestParameters['userReferenceId'] != null) {
|
|
123
|
-
queryParameters['userReferenceId'] = requestParameters['userReferenceId'];
|
|
124
|
-
}
|
|
125
122
|
if (requestParameters['status'] != null) {
|
|
126
123
|
queryParameters['status'] = requestParameters['status'];
|
|
127
124
|
}
|
|
@@ -259,69 +256,6 @@ class APPPAFAAffiliateAccountApi extends runtime.BaseAPI {
|
|
|
259
256
|
return yield response.value();
|
|
260
257
|
});
|
|
261
258
|
}
|
|
262
|
-
/**
|
|
263
|
-
* Creates request options for pAFA004 without sending the request
|
|
264
|
-
*/
|
|
265
|
-
pAFA004RequestOpts(requestParameters) {
|
|
266
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
267
|
-
if (requestParameters['userReferenceId'] == null) {
|
|
268
|
-
throw new runtime.RequiredError('userReferenceId', 'Required parameter "userReferenceId" was null or undefined when calling pAFA004().');
|
|
269
|
-
}
|
|
270
|
-
if (requestParameters['xAppAccountId'] == null) {
|
|
271
|
-
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling pAFA004().');
|
|
272
|
-
}
|
|
273
|
-
const queryParameters = {};
|
|
274
|
-
const headerParameters = {};
|
|
275
|
-
if (requestParameters['acceptLanguage'] != null) {
|
|
276
|
-
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
277
|
-
}
|
|
278
|
-
if (requestParameters['xAppAccountId'] != null) {
|
|
279
|
-
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
280
|
-
}
|
|
281
|
-
if (requestParameters['vergefyVersion'] != null) {
|
|
282
|
-
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
283
|
-
}
|
|
284
|
-
if (requestParameters['acceptTimezone'] != null) {
|
|
285
|
-
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
286
|
-
}
|
|
287
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
288
|
-
const token = this.configuration.accessToken;
|
|
289
|
-
const tokenString = yield token("BearerAuth", []);
|
|
290
|
-
if (tokenString) {
|
|
291
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
let urlPath = `/app/affiliate/accounts/by-user/{userReferenceId}`;
|
|
295
|
-
urlPath = urlPath.replace('{userReferenceId}', encodeURIComponent(String(requestParameters['userReferenceId'])));
|
|
296
|
-
return {
|
|
297
|
-
path: urlPath,
|
|
298
|
-
method: 'GET',
|
|
299
|
-
headers: headerParameters,
|
|
300
|
-
query: queryParameters,
|
|
301
|
-
};
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* Lists affiliate accounts belonging to a given user reference ID.
|
|
306
|
-
* PAFA004 - List Affiliate Accounts by User Reference
|
|
307
|
-
*/
|
|
308
|
-
pAFA004Raw(requestParameters, initOverrides) {
|
|
309
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
310
|
-
const requestOptions = yield this.pAFA004RequestOpts(requestParameters);
|
|
311
|
-
const response = yield this.request(requestOptions, initOverrides);
|
|
312
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOListAffiliateAccountDTO_1.DataResponseDTOListAffiliateAccountDTOFromJSON)(jsonValue));
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
/**
|
|
316
|
-
* Lists affiliate accounts belonging to a given user reference ID.
|
|
317
|
-
* PAFA004 - List Affiliate Accounts by User Reference
|
|
318
|
-
*/
|
|
319
|
-
pAFA004(requestParameters, initOverrides) {
|
|
320
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
321
|
-
const response = yield this.pAFA004Raw(requestParameters, initOverrides);
|
|
322
|
-
return yield response.value();
|
|
323
|
-
});
|
|
324
|
-
}
|
|
325
259
|
/**
|
|
326
260
|
* Creates request options for pAFA005 without sending the request
|
|
327
261
|
*/
|
|
@@ -131,6 +131,9 @@ class APPPHRAWHRApprovalWorkflowApi extends runtime.BaseAPI {
|
|
|
131
131
|
if (requestParameters['size'] != null) {
|
|
132
132
|
queryParameters['size'] = requestParameters['size'];
|
|
133
133
|
}
|
|
134
|
+
if (requestParameters['sort'] != null) {
|
|
135
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
136
|
+
}
|
|
134
137
|
const headerParameters = {};
|
|
135
138
|
if (requestParameters['acceptLanguage'] != null) {
|
|
136
139
|
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|