nordlet 0.2.0 → 0.2.2
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/dist/Client.d.ts +15 -0
- package/dist/Client.js +60 -40
- package/dist/api/resources/account/client/requests/PostV1AccountCompaniesCreateRequest.d.ts +1 -0
- package/dist/api/resources/account/client/requests/PostV1AccountCompaniesUpdateRequest.d.ts +1 -0
- package/dist/api/resources/account/types/PostV1AccountCompaniesProfileResponse.d.ts +1 -0
- package/dist/api/resources/account/types/PostV1AccountCompaniesUpdateResponse.d.ts +1 -0
- package/dist/api/resources/account/types/PostV1AccountMeResponse.d.ts +15 -0
- package/dist/api/resources/account/types/PostV1AccountMeResponse.js +8 -0
- package/dist/api/resources/bank/client/Client.d.ts +279 -0
- package/dist/api/resources/bank/client/Client.js +1080 -45
- package/dist/api/resources/bank/client/requests/PostV1BankDirectDebitsExportRequest.d.ts +12 -0
- package/dist/api/resources/bank/client/requests/PostV1BankDirectDebitsExportRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsAccountsLinkRequest.d.ts +18 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsAccountsLinkRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsBanksListRequest.d.ts +7 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsBanksListRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsCompleteRequest.d.ts +11 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsCompleteRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsDeleteRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsDeleteRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsGetRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsGetRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsListRequest.d.ts +46 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsListRequest.js +31 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsStartRequest.d.ts +22 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsConnectionsStartRequest.js +11 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsSyncRequest.d.ts +12 -0
- package/dist/api/resources/bank/client/requests/PostV1BankFeedsSyncRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesCancelRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesCancelRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesCreateRequest.d.ts +31 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesCreateRequest.js +15 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesGetRequest.d.ts +9 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesGetRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesListRequest.d.ts +46 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesListRequest.js +31 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesUpdateRequest.d.ts +12 -0
- package/dist/api/resources/bank/client/requests/PostV1BankMandatesUpdateRequest.js +3 -0
- package/dist/api/resources/bank/client/requests/index.d.ts +14 -0
- package/dist/api/resources/bank/client/requests/index.js +9 -1
- package/dist/api/resources/bank/types/PostV1BankDirectDebitsExportResponse.d.ts +7 -0
- package/dist/api/resources/bank/types/PostV1BankDirectDebitsExportResponse.js +3 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsAccountsLinkResponse.d.ts +12 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsAccountsLinkResponse.js +3 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsBanksListResponse.d.ts +26 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsBanksListResponse.js +20 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsCompleteResponse.d.ts +45 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsCompleteResponse.js +18 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsDeleteResponse.d.ts +3 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsDeleteResponse.js +3 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsGetResponse.d.ts +45 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsGetResponse.js +18 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsListResponse.d.ts +40 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsListResponse.js +24 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsStartResponse.d.ts +6 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsConnectionsStartResponse.js +3 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsSyncResponse.d.ts +16 -0
- package/dist/api/resources/bank/types/PostV1BankFeedsSyncResponse.js +3 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesCancelResponse.d.ts +36 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesCancelResponse.js +20 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesCreateResponse.d.ts +36 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesCreateResponse.js +20 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesGetResponse.d.ts +36 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesGetResponse.js +20 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesListResponse.d.ts +47 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesListResponse.js +26 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesUpdateResponse.d.ts +36 -0
- package/dist/api/resources/bank/types/PostV1BankMandatesUpdateResponse.js +20 -0
- package/dist/api/resources/bank/types/index.d.ts +14 -0
- package/dist/api/resources/bank/types/index.js +14 -0
- package/dist/api/resources/billing/client/Client.d.ts +110 -0
- package/dist/api/resources/billing/client/Client.js +418 -0
- package/dist/api/resources/billing/client/index.d.ts +1 -0
- package/dist/api/resources/billing/client/index.js +17 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingAccountGetRequest.d.ts +5 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingAccountGetRequest.js +3 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingAccountSetPlanRequest.d.ts +17 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingAccountSetPlanRequest.js +12 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingTopupCreateRequest.d.ts +18 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingTopupCreateRequest.js +12 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingTransactionsListRequest.d.ts +7 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingTransactionsListRequest.js +3 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingUsageListRequest.d.ts +11 -0
- package/dist/api/resources/billing/client/requests/PostV1BillingUsageListRequest.js +3 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +5 -0
- package/dist/api/resources/billing/client/requests/index.js +7 -0
- package/dist/api/resources/billing/exports.d.ts +2 -0
- package/dist/api/resources/billing/exports.js +21 -0
- package/dist/api/resources/billing/index.d.ts +2 -0
- package/dist/api/resources/billing/index.js +18 -0
- package/dist/api/resources/billing/types/PostV1BillingAccountGetResponse.d.ts +50 -0
- package/dist/api/resources/billing/types/PostV1BillingAccountGetResponse.js +17 -0
- package/dist/api/resources/billing/types/PostV1BillingAccountSetPlanResponse.d.ts +50 -0
- package/dist/api/resources/billing/types/PostV1BillingAccountSetPlanResponse.js +17 -0
- package/dist/api/resources/billing/types/PostV1BillingTopupCreateResponse.d.ts +4 -0
- package/dist/api/resources/billing/types/PostV1BillingTopupCreateResponse.js +3 -0
- package/dist/api/resources/billing/types/PostV1BillingTransactionsListResponse.d.ts +28 -0
- package/dist/api/resources/billing/types/PostV1BillingTransactionsListResponse.js +20 -0
- package/dist/api/resources/billing/types/PostV1BillingUsageListResponse.d.ts +23 -0
- package/dist/api/resources/billing/types/PostV1BillingUsageListResponse.js +19 -0
- package/dist/api/resources/billing/types/index.d.ts +5 -0
- package/dist/api/resources/billing/types/index.js +21 -0
- package/dist/api/resources/capture/client/Client.d.ts +136 -0
- package/dist/api/resources/capture/client/Client.js +498 -0
- package/dist/api/resources/capture/client/index.d.ts +1 -0
- package/dist/api/resources/capture/client/index.js +17 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsConfirmRequest.d.ts +47 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsConfirmRequest.js +3 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsDeleteRequest.d.ts +9 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsDeleteRequest.js +3 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsExtractRequest.d.ts +9 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsExtractRequest.js +3 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsGetRequest.d.ts +9 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsGetRequest.js +3 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsListRequest.d.ts +46 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsListRequest.js +31 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsUploadRequest.d.ts +14 -0
- package/dist/api/resources/capture/client/requests/PostV1CaptureDocumentsUploadRequest.js +3 -0
- package/dist/api/resources/capture/client/requests/index.d.ts +6 -0
- package/dist/api/resources/capture/client/requests/index.js +5 -0
- package/dist/api/resources/capture/exports.d.ts +2 -0
- package/dist/api/resources/capture/exports.js +21 -0
- package/dist/api/resources/capture/index.d.ts +2 -0
- package/dist/api/resources/capture/index.js +18 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsConfirmResponse.d.ts +128 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsConfirmResponse.js +32 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsDeleteResponse.d.ts +3 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsDeleteResponse.js +3 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsExtractResponse.d.ts +61 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsExtractResponse.js +13 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsGetResponse.d.ts +61 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsGetResponse.js +13 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsListResponse.d.ts +71 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsListResponse.js +19 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsUploadResponse.d.ts +61 -0
- package/dist/api/resources/capture/types/PostV1CaptureDocumentsUploadResponse.js +13 -0
- package/dist/api/resources/capture/types/index.d.ts +6 -0
- package/dist/api/resources/capture/types/index.js +22 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsCreateRequest.d.ts +7 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsCreateRequest.js +5 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsUpdateRequest.d.ts +7 -0
- package/dist/api/resources/catalog/client/requests/PostV1CatalogItemsUpdateRequest.js +5 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsCreateResponse.d.ts +7 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsCreateResponse.js +5 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsGetResponse.d.ts +7 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsGetResponse.js +5 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsListResponse.d.ts +7 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsListResponse.js +5 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsUpdateResponse.d.ts +7 -0
- package/dist/api/resources/catalog/types/PostV1CatalogItemsUpdateResponse.js +5 -0
- package/dist/api/resources/consolidation/client/Client.d.ts +111 -0
- package/dist/api/resources/consolidation/client/Client.js +381 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyCandidatesRequest.d.ts +9 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyCandidatesRequest.js +3 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksListRequest.d.ts +9 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksListRequest.js +3 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksRemoveRequest.d.ts +11 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksRemoveRequest.js +3 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksSetRequest.d.ts +13 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyLinksSetRequest.js +3 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyReportRequest.d.ts +13 -0
- package/dist/api/resources/consolidation/client/requests/PostV1ConsolidationIntercompanyReportRequest.js +3 -0
- package/dist/api/resources/consolidation/client/requests/index.d.ts +5 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyCandidatesResponse.d.ts +26 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyCandidatesResponse.js +17 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksListResponse.d.ts +18 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksListResponse.js +3 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksRemoveResponse.d.ts +3 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksRemoveResponse.js +3 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksSetResponse.d.ts +7 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyLinksSetResponse.js +3 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyReportResponse.d.ts +104 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationIntercompanyReportResponse.js +55 -0
- package/dist/api/resources/consolidation/types/PostV1ConsolidationReportResponse.d.ts +63 -0
- package/dist/api/resources/consolidation/types/index.d.ts +5 -0
- package/dist/api/resources/consolidation/types/index.js +5 -0
- package/dist/api/resources/declarations/client/Client.d.ts +25 -0
- package/dist/api/resources/declarations/client/Client.js +79 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsPlJpkV7MGenerateRequest.d.ts +16 -0
- package/dist/api/resources/declarations/client/requests/PostV1DeclarationsPlJpkV7MGenerateRequest.js +3 -0
- package/dist/api/resources/declarations/client/requests/index.d.ts +1 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsPlJpkV7MGenerateResponse.d.ts +24 -0
- package/dist/api/resources/declarations/types/PostV1DeclarationsPlJpkV7MGenerateResponse.js +3 -0
- package/dist/api/resources/declarations/types/index.d.ts +1 -0
- package/dist/api/resources/declarations/types/index.js +1 -0
- package/dist/api/resources/fleet/client/Client.d.ts +175 -0
- package/dist/api/resources/fleet/client/Client.js +645 -0
- package/dist/api/resources/fleet/client/index.d.ts +1 -0
- package/dist/api/resources/fleet/client/index.js +17 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsCreateRequest.d.ts +17 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsCreateRequest.js +3 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsEndRequest.d.ts +11 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsEndRequest.js +3 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsListRequest.d.ts +46 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetAssignmentsListRequest.js +31 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetNaturaPreviewRequest.d.ts +11 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetNaturaPreviewRequest.js +3 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesCreateRequest.d.ts +33 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesCreateRequest.js +15 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesGetRequest.d.ts +9 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesGetRequest.js +3 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesListRequest.d.ts +46 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesListRequest.js +31 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesUpdateRequest.d.ts +39 -0
- package/dist/api/resources/fleet/client/requests/PostV1FleetVehiclesUpdateRequest.js +20 -0
- package/dist/api/resources/fleet/client/requests/index.d.ts +8 -0
- package/dist/api/resources/fleet/client/requests/index.js +11 -0
- package/dist/api/resources/fleet/exports.d.ts +2 -0
- package/dist/api/resources/fleet/exports.js +21 -0
- package/dist/api/resources/fleet/index.d.ts +2 -0
- package/dist/api/resources/fleet/index.js +18 -0
- package/dist/api/resources/fleet/types/PostV1FleetAssignmentsCreateResponse.d.ts +13 -0
- package/dist/api/resources/fleet/types/PostV1FleetAssignmentsCreateResponse.js +3 -0
- package/dist/api/resources/fleet/types/PostV1FleetAssignmentsEndResponse.d.ts +13 -0
- package/dist/api/resources/fleet/types/PostV1FleetAssignmentsEndResponse.js +3 -0
- package/dist/api/resources/fleet/types/PostV1FleetAssignmentsListResponse.d.ts +24 -0
- package/dist/api/resources/fleet/types/PostV1FleetAssignmentsListResponse.js +3 -0
- package/dist/api/resources/fleet/types/PostV1FleetNaturaPreviewResponse.d.ts +21 -0
- package/dist/api/resources/fleet/types/PostV1FleetNaturaPreviewResponse.js +3 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesCreateResponse.d.ts +34 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesCreateResponse.js +12 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesGetResponse.d.ts +34 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesGetResponse.js +12 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesListResponse.d.ts +45 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesListResponse.js +18 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesUpdateResponse.d.ts +34 -0
- package/dist/api/resources/fleet/types/PostV1FleetVehiclesUpdateResponse.js +12 -0
- package/dist/api/resources/fleet/types/index.d.ts +8 -0
- package/dist/api/resources/fleet/types/index.js +24 -0
- package/dist/api/resources/index.d.ts +15 -0
- package/dist/api/resources/index.js +16 -1
- package/dist/api/resources/inventory/client/Client.d.ts +214 -0
- package/dist/api/resources/inventory/client/Client.js +808 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsCreateRequest.d.ts +23 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsCreateRequest.js +11 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsGetRequest.d.ts +9 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsGetRequest.js +3 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsListRequest.d.ts +46 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLandedCostsListRequest.js +31 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsGetRequest.d.ts +9 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsGetRequest.js +3 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsListRequest.d.ts +46 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsListRequest.js +31 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsUpdateRequest.d.ts +11 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryLotsUpdateRequest.js +3 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesCheckRequest.d.ts +5 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesCheckRequest.js +3 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesCreateRequest.d.ts +15 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesCreateRequest.js +3 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesDeleteRequest.d.ts +9 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesDeleteRequest.js +3 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesListRequest.d.ts +46 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesListRequest.js +31 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesUpdateRequest.d.ts +13 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryReorderRulesUpdateRequest.js +3 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryStockReceiveRequest.d.ts +2 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryStockTakeRequest.d.ts +2 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryStockTransferRequest.d.ts +1 -0
- package/dist/api/resources/inventory/client/requests/PostV1InventoryStockWriteOffRequest.d.ts +1 -0
- package/dist/api/resources/inventory/client/requests/index.d.ts +11 -0
- package/dist/api/resources/inventory/client/requests/index.js +9 -1
- package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsCreateResponse.d.ts +26 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsCreateResponse.js +11 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsGetResponse.d.ts +26 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsGetResponse.js +11 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsListResponse.d.ts +28 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLandedCostsListResponse.js +17 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLotsGetResponse.d.ts +38 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLotsGetResponse.js +17 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLotsListResponse.d.ts +20 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLotsListResponse.js +3 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLotsUpdateResponse.d.ts +9 -0
- package/dist/api/resources/inventory/types/PostV1InventoryLotsUpdateResponse.js +3 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesCheckResponse.d.ts +18 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesCheckResponse.js +3 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesCreateResponse.d.ts +11 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesCreateResponse.js +3 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesDeleteResponse.d.ts +3 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesDeleteResponse.js +3 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesListResponse.d.ts +22 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesListResponse.js +3 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesUpdateResponse.d.ts +11 -0
- package/dist/api/resources/inventory/types/PostV1InventoryReorderRulesUpdateResponse.js +3 -0
- package/dist/api/resources/inventory/types/PostV1InventoryStockMovementsListResponse.d.ts +1 -0
- package/dist/api/resources/inventory/types/index.d.ts +11 -0
- package/dist/api/resources/inventory/types/index.js +11 -0
- package/dist/api/resources/ledger/client/requests/PostV1LedgerJournalTransactionsCreateRequest.d.ts +1 -0
- package/dist/api/resources/ledger/client/requests/PostV1LedgerPostingRulesUpdateRequest.d.ts +2 -0
- package/dist/api/resources/ledger/client/requests/PostV1LedgerPostingRulesUpdateRequest.js +2 -0
- package/dist/api/resources/ledger/types/PostV1LedgerJournalTransactionsGetResponse.d.ts +1 -0
- package/dist/api/resources/migration/client/Client.d.ts +57 -0
- package/dist/api/resources/migration/client/Client.js +203 -0
- package/dist/api/resources/migration/client/index.d.ts +1 -0
- package/dist/api/resources/migration/client/index.js +17 -0
- package/dist/api/resources/migration/client/requests/PostV1MigrationBooksImportRequest.d.ts +196 -0
- package/dist/api/resources/migration/client/requests/PostV1MigrationBooksImportRequest.js +40 -0
- package/dist/api/resources/migration/client/requests/PostV1MigrationBooksValidateRequest.d.ts +196 -0
- package/dist/api/resources/migration/client/requests/PostV1MigrationBooksValidateRequest.js +40 -0
- package/dist/api/resources/migration/client/requests/index.d.ts +2 -0
- package/dist/api/resources/migration/client/requests/index.js +7 -0
- package/dist/api/resources/migration/exports.d.ts +2 -0
- package/dist/api/resources/migration/exports.js +21 -0
- package/dist/api/resources/migration/index.d.ts +2 -0
- package/dist/api/resources/migration/index.js +18 -0
- package/dist/api/resources/migration/types/PostV1MigrationBooksImportResponse.d.ts +71 -0
- package/dist/api/resources/migration/types/PostV1MigrationBooksImportResponse.js +3 -0
- package/dist/api/resources/migration/types/PostV1MigrationBooksValidateResponse.d.ts +71 -0
- package/dist/api/resources/migration/types/PostV1MigrationBooksValidateResponse.js +3 -0
- package/dist/api/resources/migration/types/index.d.ts +2 -0
- package/dist/api/resources/migration/types/index.js +18 -0
- package/dist/api/resources/partners/client/Client.d.ts +39 -0
- package/dist/api/resources/partners/client/Client.js +147 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersVatReviewsListRequest.d.ts +46 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersVatReviewsListRequest.js +31 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersVatReviewsResolveRequest.d.ts +20 -0
- package/dist/api/resources/partners/client/requests/PostV1PartnersVatReviewsResolveRequest.js +12 -0
- package/dist/api/resources/partners/client/requests/index.d.ts +2 -0
- package/dist/api/resources/partners/client/requests/index.js +5 -1
- package/dist/api/resources/partners/types/PostV1PartnersVatReviewsListResponse.d.ts +52 -0
- package/dist/api/resources/partners/types/PostV1PartnersVatReviewsListResponse.js +29 -0
- package/dist/api/resources/partners/types/PostV1PartnersVatReviewsResolveResponse.d.ts +41 -0
- package/dist/api/resources/partners/types/PostV1PartnersVatReviewsResolveResponse.js +23 -0
- package/dist/api/resources/partners/types/index.d.ts +2 -0
- package/dist/api/resources/partners/types/index.js +2 -0
- package/dist/api/resources/payroll/client/requests/PostV1PayrollRunsCreateRequest.d.ts +1 -0
- package/dist/api/resources/payroll/types/PostV1PayrollRunsCreateResponse.d.ts +1 -0
- package/dist/api/resources/payroll/types/PostV1PayrollRunsGetResponse.d.ts +1 -0
- package/dist/api/resources/production/client/Client.d.ts +285 -0
- package/dist/api/resources/production/client/Client.js +1077 -36
- package/dist/api/resources/production/client/requests/PostV1ProductionBomsCreateRequest.d.ts +2 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCancelRequest.d.ts +9 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCancelRequest.js +3 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCompleteRequest.d.ts +14 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCompleteRequest.js +3 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCreateRequest.d.ts +22 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceCreateRequest.js +11 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceListRequest.d.ts +46 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionMaintenanceListRequest.js +31 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionOrdersCompleteRequest.d.ts +1 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionOrdersCreateRequest.d.ts +1 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionOrdersRecordOperationRequest.d.ts +11 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionOrdersRecordOperationRequest.js +3 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksAddRequest.d.ts +12 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksAddRequest.js +3 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksListRequest.d.ts +46 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksListRequest.js +31 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksRecordRequest.d.ts +19 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionQualityChecksRecordRequest.js +11 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsCreateRequest.d.ts +32 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsCreateRequest.js +3 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsGetRequest.d.ts +9 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsGetRequest.js +3 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsListRequest.d.ts +46 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionRoutingsListRequest.js +31 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersCreateRequest.d.ts +15 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersCreateRequest.js +3 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersListRequest.d.ts +46 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersListRequest.js +31 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersUpdateRequest.d.ts +16 -0
- package/dist/api/resources/production/client/requests/PostV1ProductionWorkCentersUpdateRequest.js +3 -0
- package/dist/api/resources/production/client/requests/index.d.ts +14 -0
- package/dist/api/resources/production/client/requests/index.js +13 -1
- package/dist/api/resources/production/types/PostV1ProductionBomsCreateResponse.d.ts +2 -0
- package/dist/api/resources/production/types/PostV1ProductionBomsGetResponse.d.ts +2 -0
- package/dist/api/resources/production/types/PostV1ProductionBomsListResponse.d.ts +1 -0
- package/dist/api/resources/production/types/PostV1ProductionMaintenanceCancelResponse.d.ts +26 -0
- package/dist/api/resources/production/types/PostV1ProductionMaintenanceCancelResponse.js +16 -0
- package/dist/api/resources/production/types/PostV1ProductionMaintenanceCompleteResponse.d.ts +26 -0
- package/dist/api/resources/production/types/PostV1ProductionMaintenanceCompleteResponse.js +16 -0
- package/dist/api/resources/production/types/PostV1ProductionMaintenanceCreateResponse.d.ts +26 -0
- package/dist/api/resources/production/types/PostV1ProductionMaintenanceCreateResponse.js +16 -0
- package/dist/api/resources/production/types/PostV1ProductionMaintenanceListResponse.d.ts +37 -0
- package/dist/api/resources/production/types/PostV1ProductionMaintenanceListResponse.js +22 -0
- package/dist/api/resources/production/types/PostV1ProductionOrdersCompleteResponse.d.ts +5 -0
- package/dist/api/resources/production/types/PostV1ProductionOrdersCreateResponse.d.ts +43 -0
- package/dist/api/resources/production/types/PostV1ProductionOrdersCreateResponse.js +11 -0
- package/dist/api/resources/production/types/PostV1ProductionOrdersGetResponse.d.ts +43 -0
- package/dist/api/resources/production/types/PostV1ProductionOrdersGetResponse.js +11 -0
- package/dist/api/resources/production/types/PostV1ProductionOrdersListResponse.d.ts +5 -0
- package/dist/api/resources/production/types/PostV1ProductionOrdersRecordOperationResponse.d.ts +11 -0
- package/dist/api/resources/production/types/PostV1ProductionOrdersRecordOperationResponse.js +3 -0
- package/dist/api/resources/production/types/PostV1ProductionQualityChecksAddResponse.d.ts +19 -0
- package/dist/api/resources/production/types/PostV1ProductionQualityChecksAddResponse.js +12 -0
- package/dist/api/resources/production/types/PostV1ProductionQualityChecksListResponse.d.ts +30 -0
- package/dist/api/resources/production/types/PostV1ProductionQualityChecksListResponse.js +18 -0
- package/dist/api/resources/production/types/PostV1ProductionQualityChecksRecordResponse.d.ts +19 -0
- package/dist/api/resources/production/types/PostV1ProductionQualityChecksRecordResponse.js +12 -0
- package/dist/api/resources/production/types/PostV1ProductionRoutingsCreateResponse.d.ts +24 -0
- package/dist/api/resources/production/types/PostV1ProductionRoutingsCreateResponse.js +3 -0
- package/dist/api/resources/production/types/PostV1ProductionRoutingsGetResponse.d.ts +24 -0
- package/dist/api/resources/production/types/PostV1ProductionRoutingsGetResponse.js +3 -0
- package/dist/api/resources/production/types/PostV1ProductionRoutingsListResponse.d.ts +19 -0
- package/dist/api/resources/production/types/PostV1ProductionRoutingsListResponse.js +3 -0
- package/dist/api/resources/production/types/PostV1ProductionWorkCentersCreateResponse.d.ts +12 -0
- package/dist/api/resources/production/types/PostV1ProductionWorkCentersCreateResponse.js +3 -0
- package/dist/api/resources/production/types/PostV1ProductionWorkCentersListResponse.d.ts +23 -0
- package/dist/api/resources/production/types/PostV1ProductionWorkCentersListResponse.js +3 -0
- package/dist/api/resources/production/types/PostV1ProductionWorkCentersUpdateResponse.d.ts +12 -0
- package/dist/api/resources/production/types/PostV1ProductionWorkCentersUpdateResponse.js +3 -0
- package/dist/api/resources/production/types/index.d.ts +14 -0
- package/dist/api/resources/production/types/index.js +14 -0
- package/dist/api/resources/projects/client/Client.d.ts +210 -0
- package/dist/api/resources/projects/client/Client.js +785 -0
- package/dist/api/resources/projects/client/index.d.ts +1 -0
- package/dist/api/resources/projects/client/index.js +17 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsCreateRequest.d.ts +13 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsCreateRequest.js +3 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsGetRequest.d.ts +9 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsGetRequest.js +3 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsListRequest.d.ts +46 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsListRequest.js +31 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsReportRequest.d.ts +9 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsReportRequest.js +3 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesBillRequest.d.ts +27 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesBillRequest.js +11 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesCreateRequest.d.ts +17 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesCreateRequest.js +3 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesDeleteRequest.d.ts +9 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesDeleteRequest.js +3 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesListRequest.d.ts +46 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesListRequest.js +31 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesUpdateRequest.d.ts +14 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsTimeEntriesUpdateRequest.js +3 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsUpdateRequest.d.ts +21 -0
- package/dist/api/resources/projects/client/requests/PostV1ProjectsUpdateRequest.js +12 -0
- package/dist/api/resources/projects/client/requests/index.d.ts +10 -0
- package/dist/api/resources/projects/client/requests/index.js +11 -0
- package/dist/api/resources/projects/exports.d.ts +2 -0
- package/dist/api/resources/projects/exports.js +21 -0
- package/dist/api/resources/projects/index.d.ts +2 -0
- package/dist/api/resources/projects/index.js +18 -0
- package/dist/api/resources/projects/types/PostV1ProjectsCreateResponse.d.ts +18 -0
- package/dist/api/resources/projects/types/PostV1ProjectsCreateResponse.js +12 -0
- package/dist/api/resources/projects/types/PostV1ProjectsGetResponse.d.ts +18 -0
- package/dist/api/resources/projects/types/PostV1ProjectsGetResponse.js +12 -0
- package/dist/api/resources/projects/types/PostV1ProjectsListResponse.d.ts +29 -0
- package/dist/api/resources/projects/types/PostV1ProjectsListResponse.js +18 -0
- package/dist/api/resources/projects/types/PostV1ProjectsReportResponse.d.ts +30 -0
- package/dist/api/resources/projects/types/PostV1ProjectsReportResponse.js +18 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesBillResponse.d.ts +8 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesBillResponse.js +3 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesCreateResponse.d.ts +13 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesCreateResponse.js +3 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesDeleteResponse.d.ts +3 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesDeleteResponse.js +3 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesListResponse.d.ts +24 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesListResponse.js +3 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesUpdateResponse.d.ts +13 -0
- package/dist/api/resources/projects/types/PostV1ProjectsTimeEntriesUpdateResponse.js +3 -0
- package/dist/api/resources/projects/types/PostV1ProjectsUpdateResponse.d.ts +18 -0
- package/dist/api/resources/projects/types/PostV1ProjectsUpdateResponse.js +12 -0
- package/dist/api/resources/projects/types/index.d.ts +10 -0
- package/dist/api/resources/projects/types/index.js +26 -0
- package/dist/api/resources/purchases/client/Client.d.ts +283 -0
- package/dist/api/resources/purchases/client/Client.js +1039 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesInvoicesCreateRequest.d.ts +2 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesInvoicesMatchRequest.d.ts +10 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesInvoicesMatchRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesInvoicesUpdateRequest.d.ts +2 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersApproveRequest.d.ts +10 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersApproveRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCancelRequest.d.ts +10 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCancelRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCloseRequest.d.ts +10 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCloseRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCreateRequest.d.ts +39 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersCreateRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersDeleteRequest.d.ts +9 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersDeleteRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersGetRequest.d.ts +9 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersGetRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersListRequest.d.ts +46 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersListRequest.js +31 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersRejectRequest.d.ts +10 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersRejectRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersSubmitRequest.d.ts +10 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersSubmitRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersUpdateRequest.d.ts +37 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesOrdersUpdateRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsCreateRequest.d.ts +29 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsCreateRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsGetRequest.d.ts +9 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsGetRequest.js +3 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsListRequest.d.ts +46 -0
- package/dist/api/resources/purchases/client/requests/PostV1PurchasesReceiptsListRequest.js +31 -0
- package/dist/api/resources/purchases/client/requests/index.d.ts +14 -0
- package/dist/api/resources/purchases/client/requests/index.js +5 -1
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesCreateResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesGetResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesListResponse.d.ts +1 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesMatchResponse.d.ts +38 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesMatchResponse.js +25 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesRegisterResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesInvoicesUpdateResponse.d.ts +2 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersApproveResponse.d.ts +54 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersApproveResponse.js +16 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCancelResponse.d.ts +54 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCancelResponse.js +16 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCloseResponse.d.ts +54 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCloseResponse.js +16 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCreateResponse.d.ts +54 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersCreateResponse.js +16 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersDeleteResponse.d.ts +3 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersDeleteResponse.js +3 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersGetResponse.d.ts +54 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersGetResponse.js +16 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersListResponse.d.ts +41 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersListResponse.js +22 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersRejectResponse.d.ts +54 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersRejectResponse.js +16 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersSubmitResponse.d.ts +54 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersSubmitResponse.js +16 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersUpdateResponse.d.ts +54 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesOrdersUpdateResponse.js +16 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsCreateResponse.d.ts +23 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsCreateResponse.js +3 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsGetResponse.d.ts +23 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsGetResponse.js +3 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsListResponse.d.ts +20 -0
- package/dist/api/resources/purchases/types/PostV1PurchasesReceiptsListResponse.js +3 -0
- package/dist/api/resources/purchases/types/index.d.ts +14 -0
- package/dist/api/resources/purchases/types/index.js +14 -0
- package/dist/api/resources/reference/client/Client.d.ts +40 -0
- package/dist/api/resources/reference/client/Client.js +148 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceEuVatRatesImportsListRequest.d.ts +7 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceEuVatRatesImportsListRequest.js +3 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceEuVatRatesSyncRequest.d.ts +5 -0
- package/dist/api/resources/reference/client/requests/PostV1ReferenceEuVatRatesSyncRequest.js +3 -0
- package/dist/api/resources/reference/client/requests/index.d.ts +2 -0
- package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesImportsListResponse.d.ts +34 -0
- package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesImportsListResponse.js +23 -0
- package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesSyncResponse.d.ts +16 -0
- package/dist/api/resources/reference/types/PostV1ReferenceEuVatRatesSyncResponse.js +12 -0
- package/dist/api/resources/reference/types/index.d.ts +2 -0
- package/dist/api/resources/reference/types/index.js +2 -0
- package/dist/api/resources/sales/client/Client.d.ts +44 -0
- package/dist/api/resources/sales/client/Client.js +152 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesCreateRequest.d.ts +1 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesEinvoiceSendRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesEinvoiceSendRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesEinvoiceXmlRequest.d.ts +9 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesEinvoiceXmlRequest.js +3 -0
- package/dist/api/resources/sales/client/requests/PostV1SalesInvoicesUpdateRequest.d.ts +1 -0
- package/dist/api/resources/sales/client/requests/index.d.ts +2 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesApplyAdvanceResponse.d.ts +52 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesCreateResponse.d.ts +52 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesEinvoiceSendResponse.d.ts +8 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesEinvoiceSendResponse.js +3 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesEinvoiceXmlResponse.d.ts +8 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesEinvoiceXmlResponse.js +3 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesGetResponse.d.ts +52 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesIssueResponse.d.ts +52 -0
- package/dist/api/resources/sales/types/PostV1SalesInvoicesUpdateResponse.d.ts +52 -0
- package/dist/api/resources/sales/types/index.d.ts +2 -0
- package/dist/api/resources/sales/types/index.js +2 -0
- package/package.json +1 -1
|
@@ -48,7 +48,7 @@ class ProductionClient {
|
|
|
48
48
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
51
|
-
* @param {NordletApi.
|
|
51
|
+
* @param {NordletApi.PostV1ProductionWorkCentersCreateRequest} request
|
|
52
52
|
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
53
|
*
|
|
54
54
|
* @throws {@link NordletApi.BadRequestError}
|
|
@@ -61,26 +61,247 @@ class ProductionClient {
|
|
|
61
61
|
* @throws {@link NordletApi.InternalServerError}
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
|
-
* await client.production.
|
|
64
|
+
* await client.production.postV1ProductionWorkCentersCreate({
|
|
65
|
+
* code: "code",
|
|
66
|
+
* name: "name"
|
|
67
|
+
* })
|
|
68
|
+
*/
|
|
69
|
+
postV1ProductionWorkCentersCreate(request, requestOptions) {
|
|
70
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionWorkCentersCreate(request, requestOptions));
|
|
71
|
+
}
|
|
72
|
+
async __postV1ProductionWorkCentersCreate(request, requestOptions) {
|
|
73
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
74
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
75
|
+
const _response = await core.fetcher({
|
|
76
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
77
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
78
|
+
environments.NordletApiEnvironment.Production, "v1/production/work-centers/create"),
|
|
79
|
+
method: "POST",
|
|
80
|
+
headers: _headers,
|
|
81
|
+
contentType: "application/json",
|
|
82
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
83
|
+
requestType: "json",
|
|
84
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
85
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
86
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
87
|
+
abortSignal: requestOptions?.abortSignal,
|
|
88
|
+
fetchFn: this._options?.fetch,
|
|
89
|
+
logging: this._options.logging,
|
|
90
|
+
});
|
|
91
|
+
if (_response.ok) {
|
|
92
|
+
return {
|
|
93
|
+
data: _response.body,
|
|
94
|
+
rawResponse: _response.rawResponse,
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
if (_response.error.reason === "status-code") {
|
|
98
|
+
switch (_response.error.statusCode) {
|
|
99
|
+
case 400:
|
|
100
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
101
|
+
case 401:
|
|
102
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
103
|
+
case 403:
|
|
104
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
105
|
+
case 404:
|
|
106
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
107
|
+
case 409:
|
|
108
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
109
|
+
case 422:
|
|
110
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
111
|
+
case 429:
|
|
112
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
113
|
+
case 500:
|
|
114
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
115
|
+
default:
|
|
116
|
+
throw new errors.NordletApiError({
|
|
117
|
+
statusCode: _response.error.statusCode,
|
|
118
|
+
body: _response.error.body,
|
|
119
|
+
rawResponse: _response.rawResponse,
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/work-centers/create");
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* @param {NordletApi.PostV1ProductionWorkCentersUpdateRequest} request
|
|
127
|
+
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
130
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
131
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
132
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
133
|
+
* @throws {@link NordletApi.ConflictError}
|
|
134
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
135
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
136
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* await client.production.postV1ProductionWorkCentersUpdate({
|
|
140
|
+
* id: "id"
|
|
141
|
+
* })
|
|
142
|
+
*/
|
|
143
|
+
postV1ProductionWorkCentersUpdate(request, requestOptions) {
|
|
144
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionWorkCentersUpdate(request, requestOptions));
|
|
145
|
+
}
|
|
146
|
+
async __postV1ProductionWorkCentersUpdate(request, requestOptions) {
|
|
147
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
148
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
149
|
+
const _response = await core.fetcher({
|
|
150
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
151
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
152
|
+
environments.NordletApiEnvironment.Production, "v1/production/work-centers/update"),
|
|
153
|
+
method: "POST",
|
|
154
|
+
headers: _headers,
|
|
155
|
+
contentType: "application/json",
|
|
156
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
157
|
+
requestType: "json",
|
|
158
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
159
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
160
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
161
|
+
abortSignal: requestOptions?.abortSignal,
|
|
162
|
+
fetchFn: this._options?.fetch,
|
|
163
|
+
logging: this._options.logging,
|
|
164
|
+
});
|
|
165
|
+
if (_response.ok) {
|
|
166
|
+
return {
|
|
167
|
+
data: _response.body,
|
|
168
|
+
rawResponse: _response.rawResponse,
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
if (_response.error.reason === "status-code") {
|
|
172
|
+
switch (_response.error.statusCode) {
|
|
173
|
+
case 400:
|
|
174
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
175
|
+
case 401:
|
|
176
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
177
|
+
case 403:
|
|
178
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
179
|
+
case 404:
|
|
180
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
181
|
+
case 409:
|
|
182
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
183
|
+
case 422:
|
|
184
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
185
|
+
case 429:
|
|
186
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
187
|
+
case 500:
|
|
188
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
189
|
+
default:
|
|
190
|
+
throw new errors.NordletApiError({
|
|
191
|
+
statusCode: _response.error.statusCode,
|
|
192
|
+
body: _response.error.body,
|
|
193
|
+
rawResponse: _response.rawResponse,
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/work-centers/update");
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* @param {NordletApi.PostV1ProductionWorkCentersListRequest} request
|
|
201
|
+
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
202
|
+
*
|
|
203
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
204
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
205
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
206
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
207
|
+
* @throws {@link NordletApi.ConflictError}
|
|
208
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
209
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
210
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* await client.production.postV1ProductionWorkCentersList()
|
|
214
|
+
*/
|
|
215
|
+
postV1ProductionWorkCentersList(request = {}, requestOptions) {
|
|
216
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionWorkCentersList(request, requestOptions));
|
|
217
|
+
}
|
|
218
|
+
async __postV1ProductionWorkCentersList(request = {}, requestOptions) {
|
|
219
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
220
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
221
|
+
const _response = await core.fetcher({
|
|
222
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
223
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
224
|
+
environments.NordletApiEnvironment.Production, "v1/production/work-centers/list"),
|
|
225
|
+
method: "POST",
|
|
226
|
+
headers: _headers,
|
|
227
|
+
contentType: "application/json",
|
|
228
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
229
|
+
requestType: "json",
|
|
230
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
231
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
232
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
233
|
+
abortSignal: requestOptions?.abortSignal,
|
|
234
|
+
fetchFn: this._options?.fetch,
|
|
235
|
+
logging: this._options.logging,
|
|
236
|
+
});
|
|
237
|
+
if (_response.ok) {
|
|
238
|
+
return {
|
|
239
|
+
data: _response.body,
|
|
240
|
+
rawResponse: _response.rawResponse,
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
if (_response.error.reason === "status-code") {
|
|
244
|
+
switch (_response.error.statusCode) {
|
|
245
|
+
case 400:
|
|
246
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
247
|
+
case 401:
|
|
248
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
249
|
+
case 403:
|
|
250
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
251
|
+
case 404:
|
|
252
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
253
|
+
case 409:
|
|
254
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
255
|
+
case 422:
|
|
256
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
257
|
+
case 429:
|
|
258
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
259
|
+
case 500:
|
|
260
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
261
|
+
default:
|
|
262
|
+
throw new errors.NordletApiError({
|
|
263
|
+
statusCode: _response.error.statusCode,
|
|
264
|
+
body: _response.error.body,
|
|
265
|
+
rawResponse: _response.rawResponse,
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/work-centers/list");
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* @param {NordletApi.PostV1ProductionRoutingsCreateRequest} request
|
|
273
|
+
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
274
|
+
*
|
|
275
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
276
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
277
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
278
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
279
|
+
* @throws {@link NordletApi.ConflictError}
|
|
280
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
281
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
282
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
283
|
+
*
|
|
284
|
+
* @example
|
|
285
|
+
* await client.production.postV1ProductionRoutingsCreate({
|
|
65
286
|
* code: "code",
|
|
66
287
|
* name: "name",
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
288
|
+
* operations: [{
|
|
289
|
+
* sequence: 1000000,
|
|
290
|
+
* name: "name",
|
|
291
|
+
* workCenterId: "workCenterId"
|
|
71
292
|
* }]
|
|
72
293
|
* })
|
|
73
294
|
*/
|
|
74
|
-
|
|
75
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
295
|
+
postV1ProductionRoutingsCreate(request, requestOptions) {
|
|
296
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionRoutingsCreate(request, requestOptions));
|
|
76
297
|
}
|
|
77
|
-
async
|
|
298
|
+
async __postV1ProductionRoutingsCreate(request, requestOptions) {
|
|
78
299
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
79
300
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
80
301
|
const _response = await core.fetcher({
|
|
81
302
|
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
82
303
|
(await core.Supplier.get(this._options.environment)) ??
|
|
83
|
-
environments.NordletApiEnvironment.Production, "v1/production/
|
|
304
|
+
environments.NordletApiEnvironment.Production, "v1/production/routings/create"),
|
|
84
305
|
method: "POST",
|
|
85
306
|
headers: _headers,
|
|
86
307
|
contentType: "application/json",
|
|
@@ -125,10 +346,10 @@ class ProductionClient {
|
|
|
125
346
|
});
|
|
126
347
|
}
|
|
127
348
|
}
|
|
128
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/
|
|
349
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/routings/create");
|
|
129
350
|
}
|
|
130
351
|
/**
|
|
131
|
-
* @param {NordletApi.
|
|
352
|
+
* @param {NordletApi.PostV1ProductionRoutingsGetRequest} request
|
|
132
353
|
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
133
354
|
*
|
|
134
355
|
* @throws {@link NordletApi.BadRequestError}
|
|
@@ -141,20 +362,20 @@ class ProductionClient {
|
|
|
141
362
|
* @throws {@link NordletApi.InternalServerError}
|
|
142
363
|
*
|
|
143
364
|
* @example
|
|
144
|
-
* await client.production.
|
|
365
|
+
* await client.production.postV1ProductionRoutingsGet({
|
|
145
366
|
* id: "id"
|
|
146
367
|
* })
|
|
147
368
|
*/
|
|
148
|
-
|
|
149
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
369
|
+
postV1ProductionRoutingsGet(request, requestOptions) {
|
|
370
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionRoutingsGet(request, requestOptions));
|
|
150
371
|
}
|
|
151
|
-
async
|
|
372
|
+
async __postV1ProductionRoutingsGet(request, requestOptions) {
|
|
152
373
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
153
374
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
154
375
|
const _response = await core.fetcher({
|
|
155
376
|
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
156
377
|
(await core.Supplier.get(this._options.environment)) ??
|
|
157
|
-
environments.NordletApiEnvironment.Production, "v1/production/
|
|
378
|
+
environments.NordletApiEnvironment.Production, "v1/production/routings/get"),
|
|
158
379
|
method: "POST",
|
|
159
380
|
headers: _headers,
|
|
160
381
|
contentType: "application/json",
|
|
@@ -199,10 +420,10 @@ class ProductionClient {
|
|
|
199
420
|
});
|
|
200
421
|
}
|
|
201
422
|
}
|
|
202
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/
|
|
423
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/routings/get");
|
|
203
424
|
}
|
|
204
425
|
/**
|
|
205
|
-
* @param {NordletApi.
|
|
426
|
+
* @param {NordletApi.PostV1ProductionRoutingsListRequest} request
|
|
206
427
|
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
207
428
|
*
|
|
208
429
|
* @throws {@link NordletApi.BadRequestError}
|
|
@@ -215,18 +436,18 @@ class ProductionClient {
|
|
|
215
436
|
* @throws {@link NordletApi.InternalServerError}
|
|
216
437
|
*
|
|
217
438
|
* @example
|
|
218
|
-
* await client.production.
|
|
439
|
+
* await client.production.postV1ProductionRoutingsList()
|
|
219
440
|
*/
|
|
220
|
-
|
|
221
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
441
|
+
postV1ProductionRoutingsList(request = {}, requestOptions) {
|
|
442
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionRoutingsList(request, requestOptions));
|
|
222
443
|
}
|
|
223
|
-
async
|
|
444
|
+
async __postV1ProductionRoutingsList(request = {}, requestOptions) {
|
|
224
445
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
225
446
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
226
447
|
const _response = await core.fetcher({
|
|
227
448
|
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
228
449
|
(await core.Supplier.get(this._options.environment)) ??
|
|
229
|
-
environments.NordletApiEnvironment.Production, "v1/production/
|
|
450
|
+
environments.NordletApiEnvironment.Production, "v1/production/routings/list"),
|
|
230
451
|
method: "POST",
|
|
231
452
|
headers: _headers,
|
|
232
453
|
contentType: "application/json",
|
|
@@ -271,10 +492,10 @@ class ProductionClient {
|
|
|
271
492
|
});
|
|
272
493
|
}
|
|
273
494
|
}
|
|
274
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/
|
|
495
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/routings/list");
|
|
275
496
|
}
|
|
276
497
|
/**
|
|
277
|
-
* @param {NordletApi.
|
|
498
|
+
* @param {NordletApi.PostV1ProductionMaintenanceCreateRequest} request
|
|
278
499
|
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
279
500
|
*
|
|
280
501
|
* @throws {@link NordletApi.BadRequestError}
|
|
@@ -287,23 +508,22 @@ class ProductionClient {
|
|
|
287
508
|
* @throws {@link NordletApi.InternalServerError}
|
|
288
509
|
*
|
|
289
510
|
* @example
|
|
290
|
-
* await client.production.
|
|
291
|
-
*
|
|
292
|
-
*
|
|
293
|
-
*
|
|
294
|
-
* date: "date"
|
|
511
|
+
* await client.production.postV1ProductionMaintenanceCreate({
|
|
512
|
+
* workCenterId: "workCenterId",
|
|
513
|
+
* type: "preventive",
|
|
514
|
+
* plannedDate: "plannedDate"
|
|
295
515
|
* })
|
|
296
516
|
*/
|
|
297
|
-
|
|
298
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
517
|
+
postV1ProductionMaintenanceCreate(request, requestOptions) {
|
|
518
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionMaintenanceCreate(request, requestOptions));
|
|
299
519
|
}
|
|
300
|
-
async
|
|
520
|
+
async __postV1ProductionMaintenanceCreate(request, requestOptions) {
|
|
301
521
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
302
522
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
303
523
|
const _response = await core.fetcher({
|
|
304
524
|
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
305
525
|
(await core.Supplier.get(this._options.environment)) ??
|
|
306
|
-
environments.NordletApiEnvironment.Production, "v1/production/
|
|
526
|
+
environments.NordletApiEnvironment.Production, "v1/production/maintenance/create"),
|
|
307
527
|
method: "POST",
|
|
308
528
|
headers: _headers,
|
|
309
529
|
contentType: "application/json",
|
|
@@ -348,7 +568,828 @@ class ProductionClient {
|
|
|
348
568
|
});
|
|
349
569
|
}
|
|
350
570
|
}
|
|
351
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/
|
|
571
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/maintenance/create");
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* @param {NordletApi.PostV1ProductionMaintenanceCompleteRequest} request
|
|
575
|
+
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
576
|
+
*
|
|
577
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
578
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
579
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
580
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
581
|
+
* @throws {@link NordletApi.ConflictError}
|
|
582
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
583
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
584
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
585
|
+
*
|
|
586
|
+
* @example
|
|
587
|
+
* await client.production.postV1ProductionMaintenanceComplete({
|
|
588
|
+
* id: "id",
|
|
589
|
+
* completedDate: "completedDate"
|
|
590
|
+
* })
|
|
591
|
+
*/
|
|
592
|
+
postV1ProductionMaintenanceComplete(request, requestOptions) {
|
|
593
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionMaintenanceComplete(request, requestOptions));
|
|
594
|
+
}
|
|
595
|
+
async __postV1ProductionMaintenanceComplete(request, requestOptions) {
|
|
596
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
597
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
598
|
+
const _response = await core.fetcher({
|
|
599
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
600
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
601
|
+
environments.NordletApiEnvironment.Production, "v1/production/maintenance/complete"),
|
|
602
|
+
method: "POST",
|
|
603
|
+
headers: _headers,
|
|
604
|
+
contentType: "application/json",
|
|
605
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
606
|
+
requestType: "json",
|
|
607
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
608
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
609
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
610
|
+
abortSignal: requestOptions?.abortSignal,
|
|
611
|
+
fetchFn: this._options?.fetch,
|
|
612
|
+
logging: this._options.logging,
|
|
613
|
+
});
|
|
614
|
+
if (_response.ok) {
|
|
615
|
+
return {
|
|
616
|
+
data: _response.body,
|
|
617
|
+
rawResponse: _response.rawResponse,
|
|
618
|
+
};
|
|
619
|
+
}
|
|
620
|
+
if (_response.error.reason === "status-code") {
|
|
621
|
+
switch (_response.error.statusCode) {
|
|
622
|
+
case 400:
|
|
623
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
624
|
+
case 401:
|
|
625
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
626
|
+
case 403:
|
|
627
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
628
|
+
case 404:
|
|
629
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
630
|
+
case 409:
|
|
631
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
632
|
+
case 422:
|
|
633
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
634
|
+
case 429:
|
|
635
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
636
|
+
case 500:
|
|
637
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
638
|
+
default:
|
|
639
|
+
throw new errors.NordletApiError({
|
|
640
|
+
statusCode: _response.error.statusCode,
|
|
641
|
+
body: _response.error.body,
|
|
642
|
+
rawResponse: _response.rawResponse,
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/maintenance/complete");
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* @param {NordletApi.PostV1ProductionMaintenanceCancelRequest} request
|
|
650
|
+
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
651
|
+
*
|
|
652
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
653
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
654
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
655
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
656
|
+
* @throws {@link NordletApi.ConflictError}
|
|
657
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
658
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
659
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
660
|
+
*
|
|
661
|
+
* @example
|
|
662
|
+
* await client.production.postV1ProductionMaintenanceCancel({
|
|
663
|
+
* id: "id"
|
|
664
|
+
* })
|
|
665
|
+
*/
|
|
666
|
+
postV1ProductionMaintenanceCancel(request, requestOptions) {
|
|
667
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionMaintenanceCancel(request, requestOptions));
|
|
668
|
+
}
|
|
669
|
+
async __postV1ProductionMaintenanceCancel(request, requestOptions) {
|
|
670
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
671
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
672
|
+
const _response = await core.fetcher({
|
|
673
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
674
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
675
|
+
environments.NordletApiEnvironment.Production, "v1/production/maintenance/cancel"),
|
|
676
|
+
method: "POST",
|
|
677
|
+
headers: _headers,
|
|
678
|
+
contentType: "application/json",
|
|
679
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
680
|
+
requestType: "json",
|
|
681
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
682
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
683
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
684
|
+
abortSignal: requestOptions?.abortSignal,
|
|
685
|
+
fetchFn: this._options?.fetch,
|
|
686
|
+
logging: this._options.logging,
|
|
687
|
+
});
|
|
688
|
+
if (_response.ok) {
|
|
689
|
+
return {
|
|
690
|
+
data: _response.body,
|
|
691
|
+
rawResponse: _response.rawResponse,
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
if (_response.error.reason === "status-code") {
|
|
695
|
+
switch (_response.error.statusCode) {
|
|
696
|
+
case 400:
|
|
697
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
698
|
+
case 401:
|
|
699
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
700
|
+
case 403:
|
|
701
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
702
|
+
case 404:
|
|
703
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
704
|
+
case 409:
|
|
705
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
706
|
+
case 422:
|
|
707
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
708
|
+
case 429:
|
|
709
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
710
|
+
case 500:
|
|
711
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
712
|
+
default:
|
|
713
|
+
throw new errors.NordletApiError({
|
|
714
|
+
statusCode: _response.error.statusCode,
|
|
715
|
+
body: _response.error.body,
|
|
716
|
+
rawResponse: _response.rawResponse,
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/maintenance/cancel");
|
|
721
|
+
}
|
|
722
|
+
/**
|
|
723
|
+
* @param {NordletApi.PostV1ProductionMaintenanceListRequest} request
|
|
724
|
+
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
725
|
+
*
|
|
726
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
727
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
728
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
729
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
730
|
+
* @throws {@link NordletApi.ConflictError}
|
|
731
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
732
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
733
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
734
|
+
*
|
|
735
|
+
* @example
|
|
736
|
+
* await client.production.postV1ProductionMaintenanceList()
|
|
737
|
+
*/
|
|
738
|
+
postV1ProductionMaintenanceList(request = {}, requestOptions) {
|
|
739
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionMaintenanceList(request, requestOptions));
|
|
740
|
+
}
|
|
741
|
+
async __postV1ProductionMaintenanceList(request = {}, requestOptions) {
|
|
742
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
743
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
744
|
+
const _response = await core.fetcher({
|
|
745
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
746
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
747
|
+
environments.NordletApiEnvironment.Production, "v1/production/maintenance/list"),
|
|
748
|
+
method: "POST",
|
|
749
|
+
headers: _headers,
|
|
750
|
+
contentType: "application/json",
|
|
751
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
752
|
+
requestType: "json",
|
|
753
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
754
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
755
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
756
|
+
abortSignal: requestOptions?.abortSignal,
|
|
757
|
+
fetchFn: this._options?.fetch,
|
|
758
|
+
logging: this._options.logging,
|
|
759
|
+
});
|
|
760
|
+
if (_response.ok) {
|
|
761
|
+
return {
|
|
762
|
+
data: _response.body,
|
|
763
|
+
rawResponse: _response.rawResponse,
|
|
764
|
+
};
|
|
765
|
+
}
|
|
766
|
+
if (_response.error.reason === "status-code") {
|
|
767
|
+
switch (_response.error.statusCode) {
|
|
768
|
+
case 400:
|
|
769
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
770
|
+
case 401:
|
|
771
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
772
|
+
case 403:
|
|
773
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
774
|
+
case 404:
|
|
775
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
776
|
+
case 409:
|
|
777
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
778
|
+
case 422:
|
|
779
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
780
|
+
case 429:
|
|
781
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
782
|
+
case 500:
|
|
783
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
784
|
+
default:
|
|
785
|
+
throw new errors.NordletApiError({
|
|
786
|
+
statusCode: _response.error.statusCode,
|
|
787
|
+
body: _response.error.body,
|
|
788
|
+
rawResponse: _response.rawResponse,
|
|
789
|
+
});
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/maintenance/list");
|
|
793
|
+
}
|
|
794
|
+
/**
|
|
795
|
+
* @param {NordletApi.PostV1ProductionBomsCreateRequest} request
|
|
796
|
+
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
797
|
+
*
|
|
798
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
799
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
800
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
801
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
802
|
+
* @throws {@link NordletApi.ConflictError}
|
|
803
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
804
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
805
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
806
|
+
*
|
|
807
|
+
* @example
|
|
808
|
+
* await client.production.postV1ProductionBomsCreate({
|
|
809
|
+
* code: "code",
|
|
810
|
+
* name: "name",
|
|
811
|
+
* finishedItemId: "finishedItemId",
|
|
812
|
+
* lines: [{
|
|
813
|
+
* componentItemId: "componentItemId",
|
|
814
|
+
* quantity: "quantity"
|
|
815
|
+
* }]
|
|
816
|
+
* })
|
|
817
|
+
*/
|
|
818
|
+
postV1ProductionBomsCreate(request, requestOptions) {
|
|
819
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionBomsCreate(request, requestOptions));
|
|
820
|
+
}
|
|
821
|
+
async __postV1ProductionBomsCreate(request, requestOptions) {
|
|
822
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
823
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
824
|
+
const _response = await core.fetcher({
|
|
825
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
826
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
827
|
+
environments.NordletApiEnvironment.Production, "v1/production/boms/create"),
|
|
828
|
+
method: "POST",
|
|
829
|
+
headers: _headers,
|
|
830
|
+
contentType: "application/json",
|
|
831
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
832
|
+
requestType: "json",
|
|
833
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
834
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
835
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
836
|
+
abortSignal: requestOptions?.abortSignal,
|
|
837
|
+
fetchFn: this._options?.fetch,
|
|
838
|
+
logging: this._options.logging,
|
|
839
|
+
});
|
|
840
|
+
if (_response.ok) {
|
|
841
|
+
return {
|
|
842
|
+
data: _response.body,
|
|
843
|
+
rawResponse: _response.rawResponse,
|
|
844
|
+
};
|
|
845
|
+
}
|
|
846
|
+
if (_response.error.reason === "status-code") {
|
|
847
|
+
switch (_response.error.statusCode) {
|
|
848
|
+
case 400:
|
|
849
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
850
|
+
case 401:
|
|
851
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
852
|
+
case 403:
|
|
853
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
854
|
+
case 404:
|
|
855
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
856
|
+
case 409:
|
|
857
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
858
|
+
case 422:
|
|
859
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
860
|
+
case 429:
|
|
861
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
862
|
+
case 500:
|
|
863
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
864
|
+
default:
|
|
865
|
+
throw new errors.NordletApiError({
|
|
866
|
+
statusCode: _response.error.statusCode,
|
|
867
|
+
body: _response.error.body,
|
|
868
|
+
rawResponse: _response.rawResponse,
|
|
869
|
+
});
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/boms/create");
|
|
873
|
+
}
|
|
874
|
+
/**
|
|
875
|
+
* @param {NordletApi.PostV1ProductionBomsGetRequest} request
|
|
876
|
+
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
877
|
+
*
|
|
878
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
879
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
880
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
881
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
882
|
+
* @throws {@link NordletApi.ConflictError}
|
|
883
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
884
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
885
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
886
|
+
*
|
|
887
|
+
* @example
|
|
888
|
+
* await client.production.postV1ProductionBomsGet({
|
|
889
|
+
* id: "id"
|
|
890
|
+
* })
|
|
891
|
+
*/
|
|
892
|
+
postV1ProductionBomsGet(request, requestOptions) {
|
|
893
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionBomsGet(request, requestOptions));
|
|
894
|
+
}
|
|
895
|
+
async __postV1ProductionBomsGet(request, requestOptions) {
|
|
896
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
897
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
898
|
+
const _response = await core.fetcher({
|
|
899
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
900
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
901
|
+
environments.NordletApiEnvironment.Production, "v1/production/boms/get"),
|
|
902
|
+
method: "POST",
|
|
903
|
+
headers: _headers,
|
|
904
|
+
contentType: "application/json",
|
|
905
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
906
|
+
requestType: "json",
|
|
907
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
908
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
909
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
910
|
+
abortSignal: requestOptions?.abortSignal,
|
|
911
|
+
fetchFn: this._options?.fetch,
|
|
912
|
+
logging: this._options.logging,
|
|
913
|
+
});
|
|
914
|
+
if (_response.ok) {
|
|
915
|
+
return {
|
|
916
|
+
data: _response.body,
|
|
917
|
+
rawResponse: _response.rawResponse,
|
|
918
|
+
};
|
|
919
|
+
}
|
|
920
|
+
if (_response.error.reason === "status-code") {
|
|
921
|
+
switch (_response.error.statusCode) {
|
|
922
|
+
case 400:
|
|
923
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
924
|
+
case 401:
|
|
925
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
926
|
+
case 403:
|
|
927
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
928
|
+
case 404:
|
|
929
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
930
|
+
case 409:
|
|
931
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
932
|
+
case 422:
|
|
933
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
934
|
+
case 429:
|
|
935
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
936
|
+
case 500:
|
|
937
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
938
|
+
default:
|
|
939
|
+
throw new errors.NordletApiError({
|
|
940
|
+
statusCode: _response.error.statusCode,
|
|
941
|
+
body: _response.error.body,
|
|
942
|
+
rawResponse: _response.rawResponse,
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/boms/get");
|
|
947
|
+
}
|
|
948
|
+
/**
|
|
949
|
+
* @param {NordletApi.PostV1ProductionBomsListRequest} request
|
|
950
|
+
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
951
|
+
*
|
|
952
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
953
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
954
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
955
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
956
|
+
* @throws {@link NordletApi.ConflictError}
|
|
957
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
958
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
959
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
960
|
+
*
|
|
961
|
+
* @example
|
|
962
|
+
* await client.production.postV1ProductionBomsList()
|
|
963
|
+
*/
|
|
964
|
+
postV1ProductionBomsList(request = {}, requestOptions) {
|
|
965
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionBomsList(request, requestOptions));
|
|
966
|
+
}
|
|
967
|
+
async __postV1ProductionBomsList(request = {}, requestOptions) {
|
|
968
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
969
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
970
|
+
const _response = await core.fetcher({
|
|
971
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
972
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
973
|
+
environments.NordletApiEnvironment.Production, "v1/production/boms/list"),
|
|
974
|
+
method: "POST",
|
|
975
|
+
headers: _headers,
|
|
976
|
+
contentType: "application/json",
|
|
977
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
978
|
+
requestType: "json",
|
|
979
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
980
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
981
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
982
|
+
abortSignal: requestOptions?.abortSignal,
|
|
983
|
+
fetchFn: this._options?.fetch,
|
|
984
|
+
logging: this._options.logging,
|
|
985
|
+
});
|
|
986
|
+
if (_response.ok) {
|
|
987
|
+
return {
|
|
988
|
+
data: _response.body,
|
|
989
|
+
rawResponse: _response.rawResponse,
|
|
990
|
+
};
|
|
991
|
+
}
|
|
992
|
+
if (_response.error.reason === "status-code") {
|
|
993
|
+
switch (_response.error.statusCode) {
|
|
994
|
+
case 400:
|
|
995
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
996
|
+
case 401:
|
|
997
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
998
|
+
case 403:
|
|
999
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1000
|
+
case 404:
|
|
1001
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1002
|
+
case 409:
|
|
1003
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1004
|
+
case 422:
|
|
1005
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1006
|
+
case 429:
|
|
1007
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1008
|
+
case 500:
|
|
1009
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1010
|
+
default:
|
|
1011
|
+
throw new errors.NordletApiError({
|
|
1012
|
+
statusCode: _response.error.statusCode,
|
|
1013
|
+
body: _response.error.body,
|
|
1014
|
+
rawResponse: _response.rawResponse,
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/boms/list");
|
|
1019
|
+
}
|
|
1020
|
+
/**
|
|
1021
|
+
* @param {NordletApi.PostV1ProductionOrdersCreateRequest} request
|
|
1022
|
+
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1023
|
+
*
|
|
1024
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1025
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1026
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1027
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1028
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1029
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1030
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1031
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1032
|
+
*
|
|
1033
|
+
* @example
|
|
1034
|
+
* await client.production.postV1ProductionOrdersCreate({
|
|
1035
|
+
* bomId: "bomId",
|
|
1036
|
+
* warehouseId: "warehouseId",
|
|
1037
|
+
* quantity: "quantity",
|
|
1038
|
+
* date: "date"
|
|
1039
|
+
* })
|
|
1040
|
+
*/
|
|
1041
|
+
postV1ProductionOrdersCreate(request, requestOptions) {
|
|
1042
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionOrdersCreate(request, requestOptions));
|
|
1043
|
+
}
|
|
1044
|
+
async __postV1ProductionOrdersCreate(request, requestOptions) {
|
|
1045
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1046
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1047
|
+
const _response = await core.fetcher({
|
|
1048
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1049
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1050
|
+
environments.NordletApiEnvironment.Production, "v1/production/orders/create"),
|
|
1051
|
+
method: "POST",
|
|
1052
|
+
headers: _headers,
|
|
1053
|
+
contentType: "application/json",
|
|
1054
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1055
|
+
requestType: "json",
|
|
1056
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1057
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1058
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1059
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1060
|
+
fetchFn: this._options?.fetch,
|
|
1061
|
+
logging: this._options.logging,
|
|
1062
|
+
});
|
|
1063
|
+
if (_response.ok) {
|
|
1064
|
+
return {
|
|
1065
|
+
data: _response.body,
|
|
1066
|
+
rawResponse: _response.rawResponse,
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1069
|
+
if (_response.error.reason === "status-code") {
|
|
1070
|
+
switch (_response.error.statusCode) {
|
|
1071
|
+
case 400:
|
|
1072
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1073
|
+
case 401:
|
|
1074
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1075
|
+
case 403:
|
|
1076
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1077
|
+
case 404:
|
|
1078
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1079
|
+
case 409:
|
|
1080
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1081
|
+
case 422:
|
|
1082
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1083
|
+
case 429:
|
|
1084
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1085
|
+
case 500:
|
|
1086
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1087
|
+
default:
|
|
1088
|
+
throw new errors.NordletApiError({
|
|
1089
|
+
statusCode: _response.error.statusCode,
|
|
1090
|
+
body: _response.error.body,
|
|
1091
|
+
rawResponse: _response.rawResponse,
|
|
1092
|
+
});
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/orders/create");
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* @param {NordletApi.PostV1ProductionOrdersRecordOperationRequest} request
|
|
1099
|
+
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1100
|
+
*
|
|
1101
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1102
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1103
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1104
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1105
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1106
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1107
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1108
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1109
|
+
*
|
|
1110
|
+
* @example
|
|
1111
|
+
* await client.production.postV1ProductionOrdersRecordOperation({
|
|
1112
|
+
* id: "id",
|
|
1113
|
+
* actualMinutes: "actualMinutes"
|
|
1114
|
+
* })
|
|
1115
|
+
*/
|
|
1116
|
+
postV1ProductionOrdersRecordOperation(request, requestOptions) {
|
|
1117
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionOrdersRecordOperation(request, requestOptions));
|
|
1118
|
+
}
|
|
1119
|
+
async __postV1ProductionOrdersRecordOperation(request, requestOptions) {
|
|
1120
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1121
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1122
|
+
const _response = await core.fetcher({
|
|
1123
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1124
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1125
|
+
environments.NordletApiEnvironment.Production, "v1/production/orders/record-operation"),
|
|
1126
|
+
method: "POST",
|
|
1127
|
+
headers: _headers,
|
|
1128
|
+
contentType: "application/json",
|
|
1129
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1130
|
+
requestType: "json",
|
|
1131
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1132
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1133
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1134
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1135
|
+
fetchFn: this._options?.fetch,
|
|
1136
|
+
logging: this._options.logging,
|
|
1137
|
+
});
|
|
1138
|
+
if (_response.ok) {
|
|
1139
|
+
return {
|
|
1140
|
+
data: _response.body,
|
|
1141
|
+
rawResponse: _response.rawResponse,
|
|
1142
|
+
};
|
|
1143
|
+
}
|
|
1144
|
+
if (_response.error.reason === "status-code") {
|
|
1145
|
+
switch (_response.error.statusCode) {
|
|
1146
|
+
case 400:
|
|
1147
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1148
|
+
case 401:
|
|
1149
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1150
|
+
case 403:
|
|
1151
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1152
|
+
case 404:
|
|
1153
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1154
|
+
case 409:
|
|
1155
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1156
|
+
case 422:
|
|
1157
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1158
|
+
case 429:
|
|
1159
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1160
|
+
case 500:
|
|
1161
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1162
|
+
default:
|
|
1163
|
+
throw new errors.NordletApiError({
|
|
1164
|
+
statusCode: _response.error.statusCode,
|
|
1165
|
+
body: _response.error.body,
|
|
1166
|
+
rawResponse: _response.rawResponse,
|
|
1167
|
+
});
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/orders/record-operation");
|
|
1171
|
+
}
|
|
1172
|
+
/**
|
|
1173
|
+
* @param {NordletApi.PostV1ProductionQualityChecksAddRequest} request
|
|
1174
|
+
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1175
|
+
*
|
|
1176
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1177
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1178
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1179
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1180
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1181
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1182
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1183
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1184
|
+
*
|
|
1185
|
+
* @example
|
|
1186
|
+
* await client.production.postV1ProductionQualityChecksAdd({
|
|
1187
|
+
* orderId: "orderId",
|
|
1188
|
+
* name: "name"
|
|
1189
|
+
* })
|
|
1190
|
+
*/
|
|
1191
|
+
postV1ProductionQualityChecksAdd(request, requestOptions) {
|
|
1192
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionQualityChecksAdd(request, requestOptions));
|
|
1193
|
+
}
|
|
1194
|
+
async __postV1ProductionQualityChecksAdd(request, requestOptions) {
|
|
1195
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1196
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1197
|
+
const _response = await core.fetcher({
|
|
1198
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1199
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1200
|
+
environments.NordletApiEnvironment.Production, "v1/production/quality-checks/add"),
|
|
1201
|
+
method: "POST",
|
|
1202
|
+
headers: _headers,
|
|
1203
|
+
contentType: "application/json",
|
|
1204
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1205
|
+
requestType: "json",
|
|
1206
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1207
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1208
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1209
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1210
|
+
fetchFn: this._options?.fetch,
|
|
1211
|
+
logging: this._options.logging,
|
|
1212
|
+
});
|
|
1213
|
+
if (_response.ok) {
|
|
1214
|
+
return {
|
|
1215
|
+
data: _response.body,
|
|
1216
|
+
rawResponse: _response.rawResponse,
|
|
1217
|
+
};
|
|
1218
|
+
}
|
|
1219
|
+
if (_response.error.reason === "status-code") {
|
|
1220
|
+
switch (_response.error.statusCode) {
|
|
1221
|
+
case 400:
|
|
1222
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1223
|
+
case 401:
|
|
1224
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1225
|
+
case 403:
|
|
1226
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1227
|
+
case 404:
|
|
1228
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1229
|
+
case 409:
|
|
1230
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1231
|
+
case 422:
|
|
1232
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1233
|
+
case 429:
|
|
1234
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1235
|
+
case 500:
|
|
1236
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1237
|
+
default:
|
|
1238
|
+
throw new errors.NordletApiError({
|
|
1239
|
+
statusCode: _response.error.statusCode,
|
|
1240
|
+
body: _response.error.body,
|
|
1241
|
+
rawResponse: _response.rawResponse,
|
|
1242
|
+
});
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/quality-checks/add");
|
|
1246
|
+
}
|
|
1247
|
+
/**
|
|
1248
|
+
* @param {NordletApi.PostV1ProductionQualityChecksRecordRequest} request
|
|
1249
|
+
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1250
|
+
*
|
|
1251
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1252
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1253
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1254
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1255
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1256
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1257
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1258
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1259
|
+
*
|
|
1260
|
+
* @example
|
|
1261
|
+
* await client.production.postV1ProductionQualityChecksRecord({
|
|
1262
|
+
* id: "id",
|
|
1263
|
+
* result: "passed"
|
|
1264
|
+
* })
|
|
1265
|
+
*/
|
|
1266
|
+
postV1ProductionQualityChecksRecord(request, requestOptions) {
|
|
1267
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionQualityChecksRecord(request, requestOptions));
|
|
1268
|
+
}
|
|
1269
|
+
async __postV1ProductionQualityChecksRecord(request, requestOptions) {
|
|
1270
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1271
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1272
|
+
const _response = await core.fetcher({
|
|
1273
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1274
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1275
|
+
environments.NordletApiEnvironment.Production, "v1/production/quality-checks/record"),
|
|
1276
|
+
method: "POST",
|
|
1277
|
+
headers: _headers,
|
|
1278
|
+
contentType: "application/json",
|
|
1279
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1280
|
+
requestType: "json",
|
|
1281
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1282
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1283
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1284
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1285
|
+
fetchFn: this._options?.fetch,
|
|
1286
|
+
logging: this._options.logging,
|
|
1287
|
+
});
|
|
1288
|
+
if (_response.ok) {
|
|
1289
|
+
return {
|
|
1290
|
+
data: _response.body,
|
|
1291
|
+
rawResponse: _response.rawResponse,
|
|
1292
|
+
};
|
|
1293
|
+
}
|
|
1294
|
+
if (_response.error.reason === "status-code") {
|
|
1295
|
+
switch (_response.error.statusCode) {
|
|
1296
|
+
case 400:
|
|
1297
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1298
|
+
case 401:
|
|
1299
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1300
|
+
case 403:
|
|
1301
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1302
|
+
case 404:
|
|
1303
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1304
|
+
case 409:
|
|
1305
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1306
|
+
case 422:
|
|
1307
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1308
|
+
case 429:
|
|
1309
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1310
|
+
case 500:
|
|
1311
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1312
|
+
default:
|
|
1313
|
+
throw new errors.NordletApiError({
|
|
1314
|
+
statusCode: _response.error.statusCode,
|
|
1315
|
+
body: _response.error.body,
|
|
1316
|
+
rawResponse: _response.rawResponse,
|
|
1317
|
+
});
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/quality-checks/record");
|
|
1321
|
+
}
|
|
1322
|
+
/**
|
|
1323
|
+
* @param {NordletApi.PostV1ProductionQualityChecksListRequest} request
|
|
1324
|
+
* @param {ProductionClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1325
|
+
*
|
|
1326
|
+
* @throws {@link NordletApi.BadRequestError}
|
|
1327
|
+
* @throws {@link NordletApi.UnauthorizedError}
|
|
1328
|
+
* @throws {@link NordletApi.ForbiddenError}
|
|
1329
|
+
* @throws {@link NordletApi.NotFoundError}
|
|
1330
|
+
* @throws {@link NordletApi.ConflictError}
|
|
1331
|
+
* @throws {@link NordletApi.UnprocessableEntityError}
|
|
1332
|
+
* @throws {@link NordletApi.TooManyRequestsError}
|
|
1333
|
+
* @throws {@link NordletApi.InternalServerError}
|
|
1334
|
+
*
|
|
1335
|
+
* @example
|
|
1336
|
+
* await client.production.postV1ProductionQualityChecksList()
|
|
1337
|
+
*/
|
|
1338
|
+
postV1ProductionQualityChecksList(request = {}, requestOptions) {
|
|
1339
|
+
return core.HttpResponsePromise.fromPromise(this.__postV1ProductionQualityChecksList(request, requestOptions));
|
|
1340
|
+
}
|
|
1341
|
+
async __postV1ProductionQualityChecksList(request = {}, requestOptions) {
|
|
1342
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
1343
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
1344
|
+
const _response = await core.fetcher({
|
|
1345
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
1346
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
1347
|
+
environments.NordletApiEnvironment.Production, "v1/production/quality-checks/list"),
|
|
1348
|
+
method: "POST",
|
|
1349
|
+
headers: _headers,
|
|
1350
|
+
contentType: "application/json",
|
|
1351
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
1352
|
+
requestType: "json",
|
|
1353
|
+
body: (0, requestBody_js_1.mergeAdditionalBodyParameters)(request, requestOptions?.additionalBodyParameters),
|
|
1354
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
1355
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
1356
|
+
abortSignal: requestOptions?.abortSignal,
|
|
1357
|
+
fetchFn: this._options?.fetch,
|
|
1358
|
+
logging: this._options.logging,
|
|
1359
|
+
});
|
|
1360
|
+
if (_response.ok) {
|
|
1361
|
+
return {
|
|
1362
|
+
data: _response.body,
|
|
1363
|
+
rawResponse: _response.rawResponse,
|
|
1364
|
+
};
|
|
1365
|
+
}
|
|
1366
|
+
if (_response.error.reason === "status-code") {
|
|
1367
|
+
switch (_response.error.statusCode) {
|
|
1368
|
+
case 400:
|
|
1369
|
+
throw new NordletApi.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1370
|
+
case 401:
|
|
1371
|
+
throw new NordletApi.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1372
|
+
case 403:
|
|
1373
|
+
throw new NordletApi.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
1374
|
+
case 404:
|
|
1375
|
+
throw new NordletApi.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1376
|
+
case 409:
|
|
1377
|
+
throw new NordletApi.ConflictError(_response.error.body, _response.rawResponse);
|
|
1378
|
+
case 422:
|
|
1379
|
+
throw new NordletApi.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1380
|
+
case 429:
|
|
1381
|
+
throw new NordletApi.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1382
|
+
case 500:
|
|
1383
|
+
throw new NordletApi.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1384
|
+
default:
|
|
1385
|
+
throw new errors.NordletApiError({
|
|
1386
|
+
statusCode: _response.error.statusCode,
|
|
1387
|
+
body: _response.error.body,
|
|
1388
|
+
rawResponse: _response.rawResponse,
|
|
1389
|
+
});
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/v1/production/quality-checks/list");
|
|
352
1393
|
}
|
|
353
1394
|
/**
|
|
354
1395
|
* @param {NordletApi.PostV1ProductionOrdersCompleteRequest} request
|