@squonk/data-manager-client 6.7.0 → 6.7.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/api/accounting/accounting.cjs +23 -41
- package/dist/api/accounting/accounting.cjs.map +1 -1
- package/dist/api/accounting/accounting.d.cts.map +1 -1
- package/dist/api/accounting/accounting.d.ts.map +1 -1
- package/dist/api/accounting/accounting.fetch.cjs +23 -41
- package/dist/api/accounting/accounting.fetch.cjs.map +1 -1
- package/dist/api/accounting/accounting.fetch.d.cts.map +1 -1
- package/dist/api/accounting/accounting.fetch.d.ts.map +1 -1
- package/dist/api/accounting/accounting.fetch.js +23 -41
- package/dist/api/accounting/accounting.fetch.js.map +1 -1
- package/dist/api/accounting/accounting.js +23 -41
- package/dist/api/accounting/accounting.js.map +1 -1
- package/dist/api/admin/admin.cjs +186 -289
- package/dist/api/admin/admin.cjs.map +1 -1
- package/dist/api/admin/admin.d.cts +147 -225
- package/dist/api/admin/admin.d.cts.map +1 -1
- package/dist/api/admin/admin.d.ts +147 -225
- package/dist/api/admin/admin.d.ts.map +1 -1
- package/dist/api/admin/admin.fetch.cjs +186 -313
- package/dist/api/admin/admin.fetch.cjs.map +1 -1
- package/dist/api/admin/admin.fetch.d.cts +147 -225
- package/dist/api/admin/admin.fetch.d.cts.map +1 -1
- package/dist/api/admin/admin.fetch.d.ts +147 -225
- package/dist/api/admin/admin.fetch.d.ts.map +1 -1
- package/dist/api/admin/admin.fetch.js +180 -291
- package/dist/api/admin/admin.fetch.js.map +1 -1
- package/dist/api/admin/admin.js +180 -267
- package/dist/api/admin/admin.js.map +1 -1
- package/dist/api/api-schemas/accountServerGetNamespaceResponse.d.cts +1 -1
- package/dist/api/api-schemas/accountServerGetNamespaceResponse.d.ts +1 -1
- package/dist/api/api-schemas/accountServerGetRegistrationResponse.d.cts +1 -1
- package/dist/api/api-schemas/accountServerGetRegistrationResponse.d.ts +1 -1
- package/dist/api/api-schemas/adminJobManifestLoadPutResponse.d.cts +1 -1
- package/dist/api/api-schemas/adminJobManifestLoadPutResponse.d.ts +1 -1
- package/dist/api/api-schemas/apiLogDetailMethod.cjs.map +1 -1
- package/dist/api/api-schemas/apiLogDetailMethod.d.cts +1 -1
- package/dist/api/api-schemas/apiLogDetailMethod.d.ts +1 -1
- package/dist/api/api-schemas/apiLogDetailMethod.js.map +1 -1
- package/dist/api/api-schemas/applicationGetResponseCostUnit.cjs.map +1 -1
- package/dist/api/api-schemas/applicationGetResponseCostUnit.d.cts +1 -1
- package/dist/api/api-schemas/applicationGetResponseCostUnit.d.ts +1 -1
- package/dist/api/api-schemas/applicationGetResponseCostUnit.js.map +1 -1
- package/dist/api/api-schemas/applicationImageVariant.d.cts +1 -1
- package/dist/api/api-schemas/applicationImageVariant.d.ts +1 -1
- package/dist/api/api-schemas/applicationSummary.d.cts +1 -1
- package/dist/api/api-schemas/applicationSummary.d.ts +1 -1
- package/dist/api/api-schemas/asAdditionalDataProcessingCharge.d.cts +1 -1
- package/dist/api/api-schemas/asAdditionalDataProcessingCharge.d.ts +1 -1
- package/dist/api/api-schemas/datasetDigestGetResponse.d.cts +1 -1
- package/dist/api/api-schemas/datasetDigestGetResponse.d.ts +1 -1
- package/dist/api/api-schemas/datasetMetaGetResponse.d.cts +1 -1
- package/dist/api/api-schemas/datasetMetaGetResponse.d.ts +1 -1
- package/dist/api/api-schemas/datasetMetaPostBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/datasetMetaPostBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/datasetPostBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/datasetPostBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/datasetPutBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/datasetPutBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/datasetPutPostResponse.d.cts +1 -1
- package/dist/api/api-schemas/datasetPutPostResponse.d.ts +1 -1
- package/dist/api/api-schemas/datasetSchemaGetResponseType.cjs.map +1 -1
- package/dist/api/api-schemas/datasetSchemaGetResponseType.d.cts +1 -1
- package/dist/api/api-schemas/datasetSchemaGetResponseType.d.ts +1 -1
- package/dist/api/api-schemas/datasetSchemaGetResponseType.js.map +1 -1
- package/dist/api/api-schemas/datasetVersionDetailLabels.d.cts +1 -1
- package/dist/api/api-schemas/datasetVersionDetailLabels.d.ts +1 -1
- package/dist/api/api-schemas/datasetVersionDetailProcessingStage.cjs.map +1 -1
- package/dist/api/api-schemas/datasetVersionDetailProcessingStage.d.cts +1 -1
- package/dist/api/api-schemas/datasetVersionDetailProcessingStage.d.ts +1 -1
- package/dist/api/api-schemas/datasetVersionDetailProcessingStage.js.map +1 -1
- package/dist/api/api-schemas/datasetVersionMetaPostBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/datasetVersionMetaPostBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/datasetVersionProjectFile.d.cts +1 -1
- package/dist/api/api-schemas/datasetVersionProjectFile.d.ts +1 -1
- package/dist/api/api-schemas/datasetVersionSummaryLabels.d.cts +1 -1
- package/dist/api/api-schemas/datasetVersionSummaryLabels.d.ts +1 -1
- package/dist/api/api-schemas/datasetVersionSummaryProcessingStage.cjs.map +1 -1
- package/dist/api/api-schemas/datasetVersionSummaryProcessingStage.d.cts +1 -1
- package/dist/api/api-schemas/datasetVersionSummaryProcessingStage.d.ts +1 -1
- package/dist/api/api-schemas/datasetVersionSummaryProcessingStage.js.map +1 -1
- package/dist/api/api-schemas/dmError.d.cts +1 -1
- package/dist/api/api-schemas/dmError.d.ts +1 -1
- package/dist/api/api-schemas/exchangeRateDetail.d.cts +1 -1
- package/dist/api/api-schemas/exchangeRateDetail.d.ts +1 -1
- package/dist/api/api-schemas/exchangeRatePutBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/exchangeRatePutBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/filePostBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/filePostBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/filePostResponse.d.cts +1 -1
- package/dist/api/api-schemas/filePostResponse.d.ts +1 -1
- package/dist/api/api-schemas/fileStat.d.cts +1 -1
- package/dist/api/api-schemas/fileStat.d.ts +1 -1
- package/dist/api/api-schemas/inputHandlerDetail.d.cts +1 -1
- package/dist/api/api-schemas/inputHandlerDetail.d.ts +1 -1
- package/dist/api/api-schemas/instanceDryRunPostResponse.d.cts +1 -1
- package/dist/api/api-schemas/instanceDryRunPostResponse.d.ts +1 -1
- package/dist/api/api-schemas/instanceGetResponseApplicationType.cjs.map +1 -1
- package/dist/api/api-schemas/instanceGetResponseApplicationType.d.cts +1 -1
- package/dist/api/api-schemas/instanceGetResponseApplicationType.d.ts +1 -1
- package/dist/api/api-schemas/instanceGetResponseApplicationType.js.map +1 -1
- package/dist/api/api-schemas/instanceGetResponseJobImageType.cjs.map +1 -1
- package/dist/api/api-schemas/instanceGetResponseJobImageType.d.cts +1 -1
- package/dist/api/api-schemas/instanceGetResponseJobImageType.d.ts +1 -1
- package/dist/api/api-schemas/instanceGetResponseJobImageType.js.map +1 -1
- package/dist/api/api-schemas/instanceGetResponseOutputs.d.cts +1 -1
- package/dist/api/api-schemas/instanceGetResponseOutputs.d.ts +1 -1
- package/dist/api/api-schemas/instanceGetResponsePhase.cjs.map +1 -1
- package/dist/api/api-schemas/instanceGetResponsePhase.d.cts +1 -1
- package/dist/api/api-schemas/instanceGetResponsePhase.d.ts +1 -1
- package/dist/api/api-schemas/instanceGetResponsePhase.js.map +1 -1
- package/dist/api/api-schemas/instancePostBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/instancePostBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/instancePostResponse.d.cts +1 -1
- package/dist/api/api-schemas/instancePostResponse.d.ts +1 -1
- package/dist/api/api-schemas/instanceSummaryApplicationType.cjs.map +1 -1
- package/dist/api/api-schemas/instanceSummaryApplicationType.d.cts +1 -1
- package/dist/api/api-schemas/instanceSummaryApplicationType.d.ts +1 -1
- package/dist/api/api-schemas/instanceSummaryApplicationType.js.map +1 -1
- package/dist/api/api-schemas/instanceSummaryJobImageType.cjs.map +1 -1
- package/dist/api/api-schemas/instanceSummaryJobImageType.d.cts +1 -1
- package/dist/api/api-schemas/instanceSummaryJobImageType.d.ts +1 -1
- package/dist/api/api-schemas/instanceSummaryJobImageType.js.map +1 -1
- package/dist/api/api-schemas/instanceSummaryOutputs.d.cts +1 -1
- package/dist/api/api-schemas/instanceSummaryOutputs.d.ts +1 -1
- package/dist/api/api-schemas/instanceSummaryPhase.cjs.map +1 -1
- package/dist/api/api-schemas/instanceSummaryPhase.d.cts +1 -1
- package/dist/api/api-schemas/instanceSummaryPhase.d.ts +1 -1
- package/dist/api/api-schemas/instanceSummaryPhase.js.map +1 -1
- package/dist/api/api-schemas/instanceTaskPurpose.cjs.map +1 -1
- package/dist/api/api-schemas/instanceTaskPurpose.d.cts +1 -1
- package/dist/api/api-schemas/instanceTaskPurpose.d.ts +1 -1
- package/dist/api/api-schemas/instanceTaskPurpose.js.map +1 -1
- package/dist/api/api-schemas/inventoryDatasetDetail.d.cts +1 -1
- package/dist/api/api-schemas/inventoryDatasetDetail.d.ts +1 -1
- package/dist/api/api-schemas/inventoryProjectDetail.d.cts +1 -1
- package/dist/api/api-schemas/inventoryProjectDetail.d.ts +1 -1
- package/dist/api/api-schemas/jobApplication.d.cts +1 -1
- package/dist/api/api-schemas/jobApplication.d.ts +1 -1
- package/dist/api/api-schemas/jobExchangeRateSummary.d.cts +1 -1
- package/dist/api/api-schemas/jobExchangeRateSummary.d.ts +1 -1
- package/dist/api/api-schemas/jobGetResponseImageType.cjs.map +1 -1
- package/dist/api/api-schemas/jobGetResponseImageType.d.cts +1 -1
- package/dist/api/api-schemas/jobGetResponseImageType.d.ts +1 -1
- package/dist/api/api-schemas/jobGetResponseImageType.js.map +1 -1
- package/dist/api/api-schemas/jobManifestDetail.d.cts +1 -1
- package/dist/api/api-schemas/jobManifestDetail.d.ts +1 -1
- package/dist/api/api-schemas/jobManifestPutBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/jobManifestPutBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/jobOrderDetail.d.cts +1 -1
- package/dist/api/api-schemas/jobOrderDetail.d.ts +1 -1
- package/dist/api/api-schemas/jobReplacement.d.cts +1 -1
- package/dist/api/api-schemas/jobReplacement.d.ts +1 -1
- package/dist/api/api-schemas/jobSummaryImageType.cjs.map +1 -1
- package/dist/api/api-schemas/jobSummaryImageType.d.cts +1 -1
- package/dist/api/api-schemas/jobSummaryImageType.d.ts +1 -1
- package/dist/api/api-schemas/jobSummaryImageType.js.map +1 -1
- package/dist/api/api-schemas/jobVariablesInputs.d.cts +1 -1
- package/dist/api/api-schemas/jobVariablesInputs.d.ts +1 -1
- package/dist/api/api-schemas/jobVariablesOptions.d.cts +1 -1
- package/dist/api/api-schemas/jobVariablesOptions.d.ts +1 -1
- package/dist/api/api-schemas/jobVariablesOutputs.d.cts +1 -1
- package/dist/api/api-schemas/jobVariablesOutputs.d.ts +1 -1
- package/dist/api/api-schemas/modeGetResponse.d.cts +1 -1
- package/dist/api/api-schemas/modeGetResponse.d.ts +1 -1
- package/dist/api/api-schemas/projectFileDetailProcessingStage.cjs.map +1 -1
- package/dist/api/api-schemas/projectFileDetailProcessingStage.d.cts +1 -1
- package/dist/api/api-schemas/projectFileDetailProcessingStage.d.ts +1 -1
- package/dist/api/api-schemas/projectFileDetailProcessingStage.js.map +1 -1
- package/dist/api/api-schemas/projectFilePutBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/projectFilePutBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/projectPatchBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/projectPatchBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/projectPostBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/projectPostBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/projectPostResponse.d.cts +1 -1
- package/dist/api/api-schemas/projectPostResponse.d.ts +1 -1
- package/dist/api/api-schemas/qActiveDaysParameter.d.cts +1 -1
- package/dist/api/api-schemas/qActiveDaysParameter.d.ts +1 -1
- package/dist/api/api-schemas/qApplicationIdParameter.d.cts +1 -1
- package/dist/api/api-schemas/qApplicationIdParameter.d.ts +1 -1
- package/dist/api/api-schemas/qCurrentParameter.d.cts +1 -1
- package/dist/api/api-schemas/qCurrentParameter.d.ts +1 -1
- package/dist/api/api-schemas/qDatasetMimeTypeParameter.d.cts +1 -1
- package/dist/api/api-schemas/qDatasetMimeTypeParameter.d.ts +1 -1
- package/dist/api/api-schemas/qDoNotImpersonateParameter.d.cts +1 -1
- package/dist/api/api-schemas/qDoNotImpersonateParameter.d.ts +1 -1
- package/dist/api/api-schemas/qDstFileParameter.d.cts +1 -1
- package/dist/api/api-schemas/qDstFileParameter.d.ts +1 -1
- package/dist/api/api-schemas/qEditorsParameter.d.cts +1 -1
- package/dist/api/api-schemas/qEditorsParameter.d.ts +1 -1
- package/dist/api/api-schemas/qEventLimitParameter.d.cts +1 -1
- package/dist/api/api-schemas/qEventLimitParameter.d.ts +1 -1
- package/dist/api/api-schemas/qEventPriorOrdinalParameter.d.cts +1 -1
- package/dist/api/api-schemas/qEventPriorOrdinalParameter.d.ts +1 -1
- package/dist/api/api-schemas/qExcludeDoneParameter.d.cts +1 -1
- package/dist/api/api-schemas/qExcludeDoneParameter.d.ts +1 -1
- package/dist/api/api-schemas/qExcludePurposeParameter.d.cts +1 -1
- package/dist/api/api-schemas/qExcludePurposeParameter.d.ts +1 -1
- package/dist/api/api-schemas/qExcludeRemovalParameter.d.cts +1 -1
- package/dist/api/api-schemas/qExcludeRemovalParameter.d.ts +1 -1
- package/dist/api/api-schemas/qFileDstPathParameter.d.cts +1 -1
- package/dist/api/api-schemas/qFileDstPathParameter.d.ts +1 -1
- package/dist/api/api-schemas/qFileParameter.d.cts +1 -1
- package/dist/api/api-schemas/qFileParameter.d.ts +1 -1
- package/dist/api/api-schemas/qFilePathParameter.d.cts +1 -1
- package/dist/api/api-schemas/qFilePathParameter.d.ts +1 -1
- package/dist/api/api-schemas/qFileProjectIdParameter.d.cts +1 -1
- package/dist/api/api-schemas/qFileProjectIdParameter.d.ts +1 -1
- package/dist/api/api-schemas/qFileSrcPathParameter.d.cts +1 -1
- package/dist/api/api-schemas/qFileSrcPathParameter.d.ts +1 -1
- package/dist/api/api-schemas/qFromParameter.d.cts +1 -1
- package/dist/api/api-schemas/qFromParameter.d.ts +1 -1
- package/dist/api/api-schemas/qIdleDaysParameter.d.cts +1 -1
- package/dist/api/api-schemas/qIdleDaysParameter.d.ts +1 -1
- package/dist/api/api-schemas/qIncludeAcknowledgedParameter.d.cts +1 -1
- package/dist/api/api-schemas/qIncludeAcknowledgedParameter.d.ts +1 -1
- package/dist/api/api-schemas/qIncludeDeletedParameter.d.cts +1 -1
- package/dist/api/api-schemas/qIncludeDeletedParameter.d.ts +1 -1
- package/dist/api/api-schemas/qIncludeHiddenParameter.d.cts +1 -1
- package/dist/api/api-schemas/qIncludeHiddenParameter.d.ts +1 -1
- package/dist/api/api-schemas/qInstanceArchiveParameter.d.cts +1 -1
- package/dist/api/api-schemas/qInstanceArchiveParameter.d.ts +1 -1
- package/dist/api/api-schemas/qInstanceCallbackContextParameter.d.cts +1 -1
- package/dist/api/api-schemas/qInstanceCallbackContextParameter.d.ts +1 -1
- package/dist/api/api-schemas/qJobCollectionParameter.d.cts +1 -1
- package/dist/api/api-schemas/qJobCollectionParameter.d.ts +1 -1
- package/dist/api/api-schemas/qJobIdParameter.d.cts +1 -1
- package/dist/api/api-schemas/qJobIdParameter.d.ts +1 -1
- package/dist/api/api-schemas/qJobJobParameter.d.cts +1 -1
- package/dist/api/api-schemas/qJobJobParameter.d.ts +1 -1
- package/dist/api/api-schemas/qJobVersionParameter.d.cts +1 -1
- package/dist/api/api-schemas/qJobVersionParameter.d.ts +1 -1
- package/dist/api/api-schemas/qKeepProjectFilesParameter.d.cts +1 -1
- package/dist/api/api-schemas/qKeepProjectFilesParameter.d.ts +1 -1
- package/dist/api/api-schemas/qLabelsParameter.d.cts +1 -1
- package/dist/api/api-schemas/qLabelsParameter.d.ts +1 -1
- package/dist/api/api-schemas/qOnlyUndefinedParameter.d.cts +1 -1
- package/dist/api/api-schemas/qOnlyUndefinedParameter.d.ts +1 -1
- package/dist/api/api-schemas/qOrgIdParameter.d.cts +1 -1
- package/dist/api/api-schemas/qOrgIdParameter.d.ts +1 -1
- package/dist/api/api-schemas/qOwnersParameter.d.cts +1 -1
- package/dist/api/api-schemas/qOwnersParameter.d.ts +1 -1
- package/dist/api/api-schemas/qProjectIdParameter.d.cts +1 -1
- package/dist/api/api-schemas/qProjectIdParameter.d.ts +1 -1
- package/dist/api/api-schemas/qProjectNameParameter.d.cts +1 -1
- package/dist/api/api-schemas/qProjectNameParameter.d.ts +1 -1
- package/dist/api/api-schemas/qPurgeParameter.d.cts +1 -1
- package/dist/api/api-schemas/qPurgeParameter.d.ts +1 -1
- package/dist/api/api-schemas/qPurposeParameter.cjs.map +1 -1
- package/dist/api/api-schemas/qPurposeParameter.d.cts +1 -1
- package/dist/api/api-schemas/qPurposeParameter.d.ts +1 -1
- package/dist/api/api-schemas/qPurposeParameter.js.map +1 -1
- package/dist/api/api-schemas/qTokenParameter.d.cts +1 -1
- package/dist/api/api-schemas/qTokenParameter.d.ts +1 -1
- package/dist/api/api-schemas/qUnitIdParameter.d.cts +1 -1
- package/dist/api/api-schemas/qUnitIdParameter.d.ts +1 -1
- package/dist/api/api-schemas/qUntilParameter.d.cts +1 -1
- package/dist/api/api-schemas/qUntilParameter.d.ts +1 -1
- package/dist/api/api-schemas/qUsernameParameter.d.cts +1 -1
- package/dist/api/api-schemas/qUsernameParameter.d.ts +1 -1
- package/dist/api/api-schemas/qUsernamesParameter.d.cts +1 -1
- package/dist/api/api-schemas/qUsernamesParameter.d.ts +1 -1
- package/dist/api/api-schemas/qWorkflowIdParameter.d.cts +1 -1
- package/dist/api/api-schemas/qWorkflowIdParameter.d.ts +1 -1
- package/dist/api/api-schemas/runningWorkflowGetResponseStatus.cjs.map +1 -1
- package/dist/api/api-schemas/runningWorkflowGetResponseStatus.d.cts +1 -1
- package/dist/api/api-schemas/runningWorkflowGetResponseStatus.d.ts +1 -1
- package/dist/api/api-schemas/runningWorkflowGetResponseStatus.js.map +1 -1
- package/dist/api/api-schemas/runningWorkflowGetResponseVariables.d.cts +1 -1
- package/dist/api/api-schemas/runningWorkflowGetResponseVariables.d.ts +1 -1
- package/dist/api/api-schemas/runningWorkflowProject.d.cts +1 -1
- package/dist/api/api-schemas/runningWorkflowProject.d.ts +1 -1
- package/dist/api/api-schemas/runningWorkflowStepStatus.cjs.map +1 -1
- package/dist/api/api-schemas/runningWorkflowStepStatus.d.cts +1 -1
- package/dist/api/api-schemas/runningWorkflowStepStatus.d.ts +1 -1
- package/dist/api/api-schemas/runningWorkflowStepStatus.js.map +1 -1
- package/dist/api/api-schemas/runningWorkflowStepVariables.d.cts +1 -1
- package/dist/api/api-schemas/runningWorkflowStepVariables.d.ts +1 -1
- package/dist/api/api-schemas/runningWorkflowSummaryStatus.cjs.map +1 -1
- package/dist/api/api-schemas/runningWorkflowSummaryStatus.d.cts +1 -1
- package/dist/api/api-schemas/runningWorkflowSummaryStatus.d.ts +1 -1
- package/dist/api/api-schemas/runningWorkflowSummaryStatus.js.map +1 -1
- package/dist/api/api-schemas/runningWorkflowWorkflow.d.cts +1 -1
- package/dist/api/api-schemas/runningWorkflowWorkflow.d.ts +1 -1
- package/dist/api/api-schemas/serviceErrorSummarySeverity.cjs.map +1 -1
- package/dist/api/api-schemas/serviceErrorSummarySeverity.d.cts +1 -1
- package/dist/api/api-schemas/serviceErrorSummarySeverity.d.ts +1 -1
- package/dist/api/api-schemas/serviceErrorSummarySeverity.js.map +1 -1
- package/dist/api/api-schemas/taskEventLevel.cjs.map +1 -1
- package/dist/api/api-schemas/taskEventLevel.d.cts +1 -1
- package/dist/api/api-schemas/taskEventLevel.d.ts +1 -1
- package/dist/api/api-schemas/taskEventLevel.js.map +1 -1
- package/dist/api/api-schemas/taskGetResponsePurpose.cjs.map +1 -1
- package/dist/api/api-schemas/taskGetResponsePurpose.d.cts +1 -1
- package/dist/api/api-schemas/taskGetResponsePurpose.d.ts +1 -1
- package/dist/api/api-schemas/taskGetResponsePurpose.js.map +1 -1
- package/dist/api/api-schemas/taskIdentity.d.cts +1 -1
- package/dist/api/api-schemas/taskIdentity.d.ts +1 -1
- package/dist/api/api-schemas/taskStateState.cjs.map +1 -1
- package/dist/api/api-schemas/taskStateState.d.cts +1 -1
- package/dist/api/api-schemas/taskStateState.d.ts +1 -1
- package/dist/api/api-schemas/taskStateState.js.map +1 -1
- package/dist/api/api-schemas/taskSummaryProcessingStage.cjs.map +1 -1
- package/dist/api/api-schemas/taskSummaryProcessingStage.d.cts +1 -1
- package/dist/api/api-schemas/taskSummaryProcessingStage.d.ts +1 -1
- package/dist/api/api-schemas/taskSummaryProcessingStage.js.map +1 -1
- package/dist/api/api-schemas/typeSummaryFormatterOptionsType.cjs.map +1 -1
- package/dist/api/api-schemas/typeSummaryFormatterOptionsType.d.cts +1 -1
- package/dist/api/api-schemas/typeSummaryFormatterOptionsType.d.ts +1 -1
- package/dist/api/api-schemas/typeSummaryFormatterOptionsType.js.map +1 -1
- package/dist/api/api-schemas/userAccountPatchBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/userAccountPatchBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/userActivityDetailPeriod.d.cts +1 -1
- package/dist/api/api-schemas/userActivityDetailPeriod.d.ts +1 -1
- package/dist/api/api-schemas/userApiTokenGetResponse.d.cts +1 -1
- package/dist/api/api-schemas/userApiTokenGetResponse.d.ts +1 -1
- package/dist/api/api-schemas/userDetail.d.cts +1 -1
- package/dist/api/api-schemas/userDetail.d.ts +1 -1
- package/dist/api/api-schemas/userPatchBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/userPatchBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/userSummary.d.cts +1 -1
- package/dist/api/api-schemas/userSummary.d.ts +1 -1
- package/dist/api/api-schemas/versionGetResponse.d.cts +1 -1
- package/dist/api/api-schemas/versionGetResponse.d.ts +1 -1
- package/dist/api/api-schemas/workflowDefinitionGetResponse.d.cts +1 -1
- package/dist/api/api-schemas/workflowDefinitionGetResponse.d.ts +1 -1
- package/dist/api/api-schemas/workflowGetResponseScope.cjs.map +1 -1
- package/dist/api/api-schemas/workflowGetResponseScope.d.cts +1 -1
- package/dist/api/api-schemas/workflowGetResponseScope.d.ts +1 -1
- package/dist/api/api-schemas/workflowGetResponseScope.js.map +1 -1
- package/dist/api/api-schemas/workflowGetResponseVariables.d.cts +1 -1
- package/dist/api/api-schemas/workflowGetResponseVariables.d.ts +1 -1
- package/dist/api/api-schemas/workflowPatchBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/workflowPatchBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/workflowPatchResponse.d.cts +1 -1
- package/dist/api/api-schemas/workflowPatchResponse.d.ts +1 -1
- package/dist/api/api-schemas/workflowPostBodyBodyScope.cjs.map +1 -1
- package/dist/api/api-schemas/workflowPostBodyBodyScope.d.cts +1 -1
- package/dist/api/api-schemas/workflowPostBodyBodyScope.d.ts +1 -1
- package/dist/api/api-schemas/workflowPostBodyBodyScope.js.map +1 -1
- package/dist/api/api-schemas/workflowPostResponse.d.cts +1 -1
- package/dist/api/api-schemas/workflowPostResponse.d.ts +1 -1
- package/dist/api/api-schemas/workflowRunPostBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/workflowRunPostBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/workflowRunPostResponse.d.cts +1 -1
- package/dist/api/api-schemas/workflowRunPostResponse.d.ts +1 -1
- package/dist/api/api-schemas/workflowStepSummarySpecification.d.cts +1 -1
- package/dist/api/api-schemas/workflowStepSummarySpecification.d.ts +1 -1
- package/dist/api/api-schemas/workflowSummaryScope.cjs.map +1 -1
- package/dist/api/api-schemas/workflowSummaryScope.d.cts +1 -1
- package/dist/api/api-schemas/workflowSummaryScope.d.ts +1 -1
- package/dist/api/api-schemas/workflowSummaryScope.js.map +1 -1
- package/dist/api/api-schemas/workflowVersionPutBodyBody.d.cts +1 -1
- package/dist/api/api-schemas/workflowVersionPutBodyBody.d.ts +1 -1
- package/dist/api/api-schemas/workflowVersionPutResponse.d.cts +1 -1
- package/dist/api/api-schemas/workflowVersionPutResponse.d.ts +1 -1
- package/dist/api/application/application.cjs +17 -17
- package/dist/api/application/application.cjs.map +1 -1
- package/dist/api/application/application.d.cts.map +1 -1
- package/dist/api/application/application.d.ts.map +1 -1
- package/dist/api/application/application.fetch.cjs +17 -17
- package/dist/api/application/application.fetch.cjs.map +1 -1
- package/dist/api/application/application.fetch.d.cts.map +1 -1
- package/dist/api/application/application.fetch.d.ts.map +1 -1
- package/dist/api/application/application.fetch.js +17 -17
- package/dist/api/application/application.fetch.js.map +1 -1
- package/dist/api/application/application.js +17 -17
- package/dist/api/application/application.js.map +1 -1
- package/dist/api/configuration/configuration.cjs +17 -17
- package/dist/api/configuration/configuration.cjs.map +1 -1
- package/dist/api/configuration/configuration.d.cts.map +1 -1
- package/dist/api/configuration/configuration.d.ts.map +1 -1
- package/dist/api/configuration/configuration.fetch.cjs +17 -17
- package/dist/api/configuration/configuration.fetch.cjs.map +1 -1
- package/dist/api/configuration/configuration.fetch.d.cts.map +1 -1
- package/dist/api/configuration/configuration.fetch.d.ts.map +1 -1
- package/dist/api/configuration/configuration.fetch.js +17 -17
- package/dist/api/configuration/configuration.fetch.js.map +1 -1
- package/dist/api/configuration/configuration.js +17 -17
- package/dist/api/configuration/configuration.js.map +1 -1
- package/dist/api/dataset/dataset.cjs +126 -197
- package/dist/api/dataset/dataset.cjs.map +1 -1
- package/dist/api/dataset/dataset.d.cts +110 -142
- package/dist/api/dataset/dataset.d.cts.map +1 -1
- package/dist/api/dataset/dataset.d.ts +110 -142
- package/dist/api/dataset/dataset.d.ts.map +1 -1
- package/dist/api/dataset/dataset.fetch.cjs +126 -212
- package/dist/api/dataset/dataset.fetch.cjs.map +1 -1
- package/dist/api/dataset/dataset.fetch.d.cts +110 -142
- package/dist/api/dataset/dataset.fetch.d.cts.map +1 -1
- package/dist/api/dataset/dataset.fetch.d.ts +110 -142
- package/dist/api/dataset/dataset.fetch.d.ts.map +1 -1
- package/dist/api/dataset/dataset.fetch.js +123 -199
- package/dist/api/dataset/dataset.fetch.js.map +1 -1
- package/dist/api/dataset/dataset.js +123 -184
- package/dist/api/dataset/dataset.js.map +1 -1
- package/dist/api/digest/digest.cjs +15 -9
- package/dist/api/digest/digest.cjs.map +1 -1
- package/dist/api/digest/digest.d.cts.map +1 -1
- package/dist/api/digest/digest.d.ts.map +1 -1
- package/dist/api/digest/digest.fetch.cjs +15 -9
- package/dist/api/digest/digest.fetch.cjs.map +1 -1
- package/dist/api/digest/digest.fetch.d.cts.map +1 -1
- package/dist/api/digest/digest.fetch.d.ts.map +1 -1
- package/dist/api/digest/digest.fetch.js +15 -9
- package/dist/api/digest/digest.fetch.js.map +1 -1
- package/dist/api/digest/digest.js +15 -9
- package/dist/api/digest/digest.js.map +1 -1
- package/dist/api/file-and-path/file-and-path.cjs +189 -287
- package/dist/api/file-and-path/file-and-path.cjs.map +1 -1
- package/dist/api/file-and-path/file-and-path.d.cts +152 -226
- package/dist/api/file-and-path/file-and-path.d.cts.map +1 -1
- package/dist/api/file-and-path/file-and-path.d.ts +152 -226
- package/dist/api/file-and-path/file-and-path.d.ts.map +1 -1
- package/dist/api/file-and-path/file-and-path.fetch.cjs +189 -311
- package/dist/api/file-and-path/file-and-path.fetch.cjs.map +1 -1
- package/dist/api/file-and-path/file-and-path.fetch.d.cts +152 -226
- package/dist/api/file-and-path/file-and-path.fetch.d.cts.map +1 -1
- package/dist/api/file-and-path/file-and-path.fetch.d.ts +152 -226
- package/dist/api/file-and-path/file-and-path.fetch.d.ts.map +1 -1
- package/dist/api/file-and-path/file-and-path.fetch.js +183 -289
- package/dist/api/file-and-path/file-and-path.fetch.js.map +1 -1
- package/dist/api/file-and-path/file-and-path.js +183 -265
- package/dist/api/file-and-path/file-and-path.js.map +1 -1
- package/dist/api/instance/instance.cjs +122 -179
- package/dist/api/instance/instance.cjs.map +1 -1
- package/dist/api/instance/instance.d.cts +102 -142
- package/dist/api/instance/instance.d.cts.map +1 -1
- package/dist/api/instance/instance.d.ts +102 -142
- package/dist/api/instance/instance.d.ts.map +1 -1
- package/dist/api/instance/instance.fetch.cjs +122 -194
- package/dist/api/instance/instance.fetch.cjs.map +1 -1
- package/dist/api/instance/instance.fetch.d.cts +102 -142
- package/dist/api/instance/instance.fetch.d.cts.map +1 -1
- package/dist/api/instance/instance.fetch.d.ts +102 -142
- package/dist/api/instance/instance.fetch.d.ts.map +1 -1
- package/dist/api/instance/instance.fetch.js +119 -181
- package/dist/api/instance/instance.fetch.js.map +1 -1
- package/dist/api/instance/instance.js +119 -166
- package/dist/api/instance/instance.js.map +1 -1
- package/dist/api/inventory/inventory.cjs +15 -9
- package/dist/api/inventory/inventory.cjs.map +1 -1
- package/dist/api/inventory/inventory.d.cts.map +1 -1
- package/dist/api/inventory/inventory.d.ts.map +1 -1
- package/dist/api/inventory/inventory.fetch.cjs +15 -9
- package/dist/api/inventory/inventory.fetch.cjs.map +1 -1
- package/dist/api/inventory/inventory.fetch.d.cts.map +1 -1
- package/dist/api/inventory/inventory.fetch.d.ts.map +1 -1
- package/dist/api/inventory/inventory.fetch.js +15 -9
- package/dist/api/inventory/inventory.fetch.js.map +1 -1
- package/dist/api/inventory/inventory.js +15 -9
- package/dist/api/inventory/inventory.js.map +1 -1
- package/dist/api/job/job.cjs +44 -75
- package/dist/api/job/job.cjs.map +1 -1
- package/dist/api/job/job.d.cts +25 -30
- package/dist/api/job/job.d.cts.map +1 -1
- package/dist/api/job/job.d.ts +25 -30
- package/dist/api/job/job.d.ts.map +1 -1
- package/dist/api/job/job.fetch.cjs +44 -78
- package/dist/api/job/job.fetch.cjs.map +1 -1
- package/dist/api/job/job.fetch.d.cts +25 -30
- package/dist/api/job/job.fetch.d.cts.map +1 -1
- package/dist/api/job/job.fetch.d.ts +25 -30
- package/dist/api/job/job.fetch.d.ts.map +1 -1
- package/dist/api/job/job.fetch.js +45 -77
- package/dist/api/job/job.fetch.js.map +1 -1
- package/dist/api/job/job.js +45 -74
- package/dist/api/job/job.js.map +1 -1
- package/dist/api/metadata/metadata.cjs +59 -86
- package/dist/api/metadata/metadata.cjs.map +1 -1
- package/dist/api/metadata/metadata.d.cts +52 -58
- package/dist/api/metadata/metadata.d.cts.map +1 -1
- package/dist/api/metadata/metadata.d.ts +52 -58
- package/dist/api/metadata/metadata.d.ts.map +1 -1
- package/dist/api/metadata/metadata.fetch.cjs +59 -92
- package/dist/api/metadata/metadata.fetch.cjs.map +1 -1
- package/dist/api/metadata/metadata.fetch.d.cts +50 -56
- package/dist/api/metadata/metadata.fetch.d.cts.map +1 -1
- package/dist/api/metadata/metadata.fetch.d.ts +50 -56
- package/dist/api/metadata/metadata.fetch.d.ts.map +1 -1
- package/dist/api/metadata/metadata.fetch.js +59 -88
- package/dist/api/metadata/metadata.fetch.js.map +1 -1
- package/dist/api/metadata/metadata.js +59 -82
- package/dist/api/metadata/metadata.js.map +1 -1
- package/dist/api/project/project.cjs +206 -317
- package/dist/api/project/project.cjs.map +1 -1
- package/dist/api/project/project.d.cts +194 -254
- package/dist/api/project/project.d.cts.map +1 -1
- package/dist/api/project/project.d.ts +194 -254
- package/dist/api/project/project.d.ts.map +1 -1
- package/dist/api/project/project.fetch.cjs +206 -344
- package/dist/api/project/project.fetch.cjs.map +1 -1
- package/dist/api/project/project.fetch.d.cts +194 -254
- package/dist/api/project/project.fetch.d.cts.map +1 -1
- package/dist/api/project/project.fetch.d.ts +194 -254
- package/dist/api/project/project.fetch.d.ts.map +1 -1
- package/dist/api/project/project.fetch.js +199 -319
- package/dist/api/project/project.fetch.js.map +1 -1
- package/dist/api/project/project.js +199 -292
- package/dist/api/project/project.js.map +1 -1
- package/dist/api/task/task.cjs +38 -49
- package/dist/api/task/task.cjs.map +1 -1
- package/dist/api/task/task.d.cts +20 -30
- package/dist/api/task/task.d.cts.map +1 -1
- package/dist/api/task/task.d.ts +20 -30
- package/dist/api/task/task.d.ts.map +1 -1
- package/dist/api/task/task.fetch.cjs +38 -52
- package/dist/api/task/task.fetch.cjs.map +1 -1
- package/dist/api/task/task.fetch.d.cts +20 -30
- package/dist/api/task/task.fetch.d.cts.map +1 -1
- package/dist/api/task/task.fetch.d.ts +20 -30
- package/dist/api/task/task.fetch.d.ts.map +1 -1
- package/dist/api/task/task.fetch.js +39 -51
- package/dist/api/task/task.fetch.js.map +1 -1
- package/dist/api/task/task.js +39 -48
- package/dist/api/task/task.js.map +1 -1
- package/dist/api/type/type.cjs +15 -9
- package/dist/api/type/type.cjs.map +1 -1
- package/dist/api/type/type.d.cts.map +1 -1
- package/dist/api/type/type.d.ts.map +1 -1
- package/dist/api/type/type.fetch.cjs +15 -9
- package/dist/api/type/type.fetch.cjs.map +1 -1
- package/dist/api/type/type.fetch.d.cts.map +1 -1
- package/dist/api/type/type.fetch.d.ts.map +1 -1
- package/dist/api/type/type.fetch.js +15 -9
- package/dist/api/type/type.fetch.js.map +1 -1
- package/dist/api/type/type.js +15 -9
- package/dist/api/type/type.js.map +1 -1
- package/dist/api/user/user.cjs +42 -65
- package/dist/api/user/user.cjs.map +1 -1
- package/dist/api/user/user.d.cts +21 -30
- package/dist/api/user/user.d.cts.map +1 -1
- package/dist/api/user/user.d.ts +21 -30
- package/dist/api/user/user.d.ts.map +1 -1
- package/dist/api/user/user.fetch.cjs +42 -68
- package/dist/api/user/user.fetch.cjs.map +1 -1
- package/dist/api/user/user.fetch.d.cts +21 -30
- package/dist/api/user/user.fetch.d.cts.map +1 -1
- package/dist/api/user/user.fetch.d.ts +21 -30
- package/dist/api/user/user.fetch.d.ts.map +1 -1
- package/dist/api/user/user.fetch.js +43 -67
- package/dist/api/user/user.fetch.js.map +1 -1
- package/dist/api/user/user.js +43 -64
- package/dist/api/user/user.js.map +1 -1
- package/dist/api/workflow/workflow.cjs +172 -278
- package/dist/api/workflow/workflow.cjs.map +1 -1
- package/dist/api/workflow/workflow.d.cts +144 -198
- package/dist/api/workflow/workflow.d.cts.map +1 -1
- package/dist/api/workflow/workflow.d.ts +144 -198
- package/dist/api/workflow/workflow.d.ts.map +1 -1
- package/dist/api/workflow/workflow.fetch.cjs +172 -299
- package/dist/api/workflow/workflow.fetch.cjs.map +1 -1
- package/dist/api/workflow/workflow.fetch.d.cts +144 -198
- package/dist/api/workflow/workflow.fetch.d.cts.map +1 -1
- package/dist/api/workflow/workflow.fetch.d.ts +144 -198
- package/dist/api/workflow/workflow.fetch.d.ts.map +1 -1
- package/dist/api/workflow/workflow.fetch.js +167 -280
- package/dist/api/workflow/workflow.fetch.js.map +1 -1
- package/dist/api/workflow/workflow.js +167 -259
- package/dist/api/workflow/workflow.js.map +1 -1
- package/morph-query-keys.ts +2 -1
- package/orval.config.ts +9 -15
- package/package.json +4 -2
- package/pnpm-workspace.yaml +1 -0
- package/src/api/accounting/accounting.fetch.ts +26 -11
- package/src/api/accounting/accounting.ts +26 -11
- package/src/api/admin/admin.fetch.ts +409 -935
- package/src/api/admin/admin.ts +429 -955
- package/src/api/api-schemas/accountServerGetNamespaceResponse.fetch.ts +1 -1
- package/src/api/api-schemas/accountServerGetNamespaceResponse.ts +1 -1
- package/src/api/api-schemas/accountServerGetRegistrationResponse.fetch.ts +1 -1
- package/src/api/api-schemas/accountServerGetRegistrationResponse.ts +1 -1
- package/src/api/api-schemas/adminDeleteJobManifestParams.fetch.ts +1 -1
- package/src/api/api-schemas/adminDeleteJobManifestParams.ts +1 -1
- package/src/api/api-schemas/adminGetServiceErrorsParams.fetch.ts +1 -1
- package/src/api/api-schemas/adminGetServiceErrorsParams.ts +1 -1
- package/src/api/api-schemas/adminGetUsersParams.fetch.ts +1 -1
- package/src/api/api-schemas/adminGetUsersParams.ts +1 -1
- package/src/api/api-schemas/adminJobManifestGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/adminJobManifestGetResponse.ts +1 -1
- package/src/api/api-schemas/adminJobManifestLoadPutResponse.fetch.ts +1 -1
- package/src/api/api-schemas/adminJobManifestLoadPutResponse.ts +1 -1
- package/src/api/api-schemas/adminUserPutResponse.fetch.ts +1 -1
- package/src/api/api-schemas/adminUserPutResponse.ts +1 -1
- package/src/api/api-schemas/adminUsersGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/adminUsersGetResponse.ts +1 -1
- package/src/api/api-schemas/apiLogDetail.fetch.ts +1 -1
- package/src/api/api-schemas/apiLogDetail.ts +1 -1
- package/src/api/api-schemas/apiLogDetailMethod.fetch.ts +1 -1
- package/src/api/api-schemas/apiLogDetailMethod.ts +1 -1
- package/src/api/api-schemas/applicationGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/applicationGetResponse.ts +1 -1
- package/src/api/api-schemas/applicationGetResponseCostUnit.fetch.ts +1 -1
- package/src/api/api-schemas/applicationGetResponseCostUnit.ts +1 -1
- package/src/api/api-schemas/applicationImageVariant.fetch.ts +1 -1
- package/src/api/api-schemas/applicationImageVariant.ts +1 -1
- package/src/api/api-schemas/applicationImageVariants.fetch.ts +1 -1
- package/src/api/api-schemas/applicationImageVariants.ts +1 -1
- package/src/api/api-schemas/applicationSummary.fetch.ts +1 -1
- package/src/api/api-schemas/applicationSummary.ts +1 -1
- package/src/api/api-schemas/applicationsGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/applicationsGetResponse.ts +1 -1
- package/src/api/api-schemas/asAdditionalDataProcessingCharge.fetch.ts +1 -1
- package/src/api/api-schemas/asAdditionalDataProcessingCharge.ts +1 -1
- package/src/api/api-schemas/createPathParams.fetch.ts +1 -1
- package/src/api/api-schemas/createPathParams.ts +1 -1
- package/src/api/api-schemas/datasetDetail.fetch.ts +1 -1
- package/src/api/api-schemas/datasetDetail.ts +1 -1
- package/src/api/api-schemas/datasetDigestGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/datasetDigestGetResponse.ts +1 -1
- package/src/api/api-schemas/datasetMetaGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/datasetMetaGetResponse.ts +1 -1
- package/src/api/api-schemas/datasetMetaPostBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/datasetMetaPostBodyBody.ts +1 -1
- package/src/api/api-schemas/datasetPostBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/datasetPostBodyBody.ts +1 -1
- package/src/api/api-schemas/datasetPutBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/datasetPutBodyBody.ts +1 -1
- package/src/api/api-schemas/datasetPutPostResponse.fetch.ts +1 -1
- package/src/api/api-schemas/datasetPutPostResponse.ts +1 -1
- package/src/api/api-schemas/datasetSchemaGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/datasetSchemaGetResponse.ts +1 -1
- package/src/api/api-schemas/datasetSchemaGetResponseType.fetch.ts +1 -1
- package/src/api/api-schemas/datasetSchemaGetResponseType.ts +1 -1
- package/src/api/api-schemas/datasetSummary.fetch.ts +1 -1
- package/src/api/api-schemas/datasetSummary.ts +1 -1
- package/src/api/api-schemas/datasetVersionDeleteResponse.fetch.ts +1 -1
- package/src/api/api-schemas/datasetVersionDeleteResponse.ts +1 -1
- package/src/api/api-schemas/datasetVersionDetail.fetch.ts +1 -1
- package/src/api/api-schemas/datasetVersionDetail.ts +1 -1
- package/src/api/api-schemas/datasetVersionDetailLabels.fetch.ts +1 -1
- package/src/api/api-schemas/datasetVersionDetailLabels.ts +1 -1
- package/src/api/api-schemas/datasetVersionDetailProcessingStage.fetch.ts +1 -1
- package/src/api/api-schemas/datasetVersionDetailProcessingStage.ts +1 -1
- package/src/api/api-schemas/datasetVersionMetaPostBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/datasetVersionMetaPostBodyBody.ts +1 -1
- package/src/api/api-schemas/datasetVersionProjectFile.fetch.ts +1 -1
- package/src/api/api-schemas/datasetVersionProjectFile.ts +1 -1
- package/src/api/api-schemas/datasetVersionSummary.fetch.ts +1 -1
- package/src/api/api-schemas/datasetVersionSummary.ts +1 -1
- package/src/api/api-schemas/datasetVersionSummaryLabels.fetch.ts +1 -1
- package/src/api/api-schemas/datasetVersionSummaryLabels.ts +1 -1
- package/src/api/api-schemas/datasetVersionSummaryProcessingStage.fetch.ts +1 -1
- package/src/api/api-schemas/datasetVersionSummaryProcessingStage.ts +1 -1
- package/src/api/api-schemas/datasetVersionsGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/datasetVersionsGetResponse.ts +1 -1
- package/src/api/api-schemas/datasetsGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/datasetsGetResponse.ts +1 -1
- package/src/api/api-schemas/deleteDatasetParams.fetch.ts +1 -1
- package/src/api/api-schemas/deleteDatasetParams.ts +1 -1
- package/src/api/api-schemas/deletePathParams.fetch.ts +1 -1
- package/src/api/api-schemas/deletePathParams.ts +1 -1
- package/src/api/api-schemas/deleteUnmanagedFileParams.fetch.ts +1 -1
- package/src/api/api-schemas/deleteUnmanagedFileParams.ts +1 -1
- package/src/api/api-schemas/dmError.fetch.ts +1 -1
- package/src/api/api-schemas/dmError.ts +1 -1
- package/src/api/api-schemas/exchangeRateDetail.fetch.ts +1 -1
- package/src/api/api-schemas/exchangeRateDetail.ts +1 -1
- package/src/api/api-schemas/exchangeRatePutBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/exchangeRatePutBodyBody.ts +1 -1
- package/src/api/api-schemas/filePathFile.fetch.ts +1 -1
- package/src/api/api-schemas/filePathFile.ts +1 -1
- package/src/api/api-schemas/filePostBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/filePostBodyBody.ts +1 -1
- package/src/api/api-schemas/filePostResponse.fetch.ts +1 -1
- package/src/api/api-schemas/filePostResponse.ts +1 -1
- package/src/api/api-schemas/fileStat.fetch.ts +1 -1
- package/src/api/api-schemas/fileStat.ts +1 -1
- package/src/api/api-schemas/filesGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/filesGetResponse.ts +1 -1
- package/src/api/api-schemas/getAllExchangeRatesResponse.fetch.ts +1 -1
- package/src/api/api-schemas/getAllExchangeRatesResponse.ts +1 -1
- package/src/api/api-schemas/getAllJobExchangeRatesParams.fetch.ts +1 -1
- package/src/api/api-schemas/getAllJobExchangeRatesParams.ts +1 -1
- package/src/api/api-schemas/getDatasetsParams.fetch.ts +1 -1
- package/src/api/api-schemas/getDatasetsParams.ts +1 -1
- package/src/api/api-schemas/getExchangeRatesResponse.fetch.ts +1 -1
- package/src/api/api-schemas/getExchangeRatesResponse.ts +1 -1
- package/src/api/api-schemas/getFilesParams.fetch.ts +1 -1
- package/src/api/api-schemas/getFilesParams.ts +1 -1
- package/src/api/api-schemas/getInstancesParams.fetch.ts +1 -1
- package/src/api/api-schemas/getInstancesParams.ts +1 -1
- package/src/api/api-schemas/getJobByVersionParams.fetch.ts +1 -1
- package/src/api/api-schemas/getJobByVersionParams.ts +1 -1
- package/src/api/api-schemas/getJobExchangeRatesParams.fetch.ts +1 -1
- package/src/api/api-schemas/getJobExchangeRatesParams.ts +1 -1
- package/src/api/api-schemas/getJobParams.fetch.ts +1 -1
- package/src/api/api-schemas/getJobParams.ts +1 -1
- package/src/api/api-schemas/getJobsParams.fetch.ts +1 -1
- package/src/api/api-schemas/getJobsParams.ts +1 -1
- package/src/api/api-schemas/getProjectFileParams.fetch.ts +1 -1
- package/src/api/api-schemas/getProjectFileParams.ts +1 -1
- package/src/api/api-schemas/getProjectFileWithTokenParams.fetch.ts +1 -1
- package/src/api/api-schemas/getProjectFileWithTokenParams.ts +1 -1
- package/src/api/api-schemas/getProjectsParams.fetch.ts +1 -1
- package/src/api/api-schemas/getProjectsParams.ts +1 -1
- package/src/api/api-schemas/getRunningWorkflowsParams.fetch.ts +1 -1
- package/src/api/api-schemas/getRunningWorkflowsParams.ts +1 -1
- package/src/api/api-schemas/getTaskParams.fetch.ts +1 -1
- package/src/api/api-schemas/getTaskParams.ts +1 -1
- package/src/api/api-schemas/getTasksParams.fetch.ts +1 -1
- package/src/api/api-schemas/getTasksParams.ts +1 -1
- package/src/api/api-schemas/getUserAccountParams.fetch.ts +1 -1
- package/src/api/api-schemas/getUserAccountParams.ts +1 -1
- package/src/api/api-schemas/getUserApiLogParams.fetch.ts +1 -1
- package/src/api/api-schemas/getUserApiLogParams.ts +1 -1
- package/src/api/api-schemas/getUserInventoryParams.fetch.ts +1 -1
- package/src/api/api-schemas/getUserInventoryParams.ts +1 -1
- package/src/api/api-schemas/getVersionsParams.fetch.ts +1 -1
- package/src/api/api-schemas/getVersionsParams.ts +1 -1
- package/src/api/api-schemas/index.ts +1 -1
- package/src/api/api-schemas/inputHandlerDetail.fetch.ts +1 -1
- package/src/api/api-schemas/inputHandlerDetail.ts +1 -1
- package/src/api/api-schemas/inputHandlerGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/inputHandlerGetResponse.ts +1 -1
- package/src/api/api-schemas/instanceDeleteResponse.fetch.ts +1 -1
- package/src/api/api-schemas/instanceDeleteResponse.ts +1 -1
- package/src/api/api-schemas/instanceDryRunPostResponse.fetch.ts +1 -1
- package/src/api/api-schemas/instanceDryRunPostResponse.ts +1 -1
- package/src/api/api-schemas/instanceGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/instanceGetResponse.ts +1 -1
- package/src/api/api-schemas/instanceGetResponseApplicationType.fetch.ts +1 -1
- package/src/api/api-schemas/instanceGetResponseApplicationType.ts +1 -1
- package/src/api/api-schemas/instanceGetResponseJobImageType.fetch.ts +1 -1
- package/src/api/api-schemas/instanceGetResponseJobImageType.ts +1 -1
- package/src/api/api-schemas/instanceGetResponseOutputs.fetch.ts +1 -1
- package/src/api/api-schemas/instanceGetResponseOutputs.ts +1 -1
- package/src/api/api-schemas/instanceGetResponsePhase.fetch.ts +1 -1
- package/src/api/api-schemas/instanceGetResponsePhase.ts +1 -1
- package/src/api/api-schemas/instancePostBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/instancePostBodyBody.ts +1 -1
- package/src/api/api-schemas/instancePostResponse.fetch.ts +1 -1
- package/src/api/api-schemas/instancePostResponse.ts +1 -1
- package/src/api/api-schemas/instanceSummary.fetch.ts +1 -1
- package/src/api/api-schemas/instanceSummary.ts +1 -1
- package/src/api/api-schemas/instanceSummaryApplicationType.fetch.ts +1 -1
- package/src/api/api-schemas/instanceSummaryApplicationType.ts +1 -1
- package/src/api/api-schemas/instanceSummaryJobImageType.fetch.ts +1 -1
- package/src/api/api-schemas/instanceSummaryJobImageType.ts +1 -1
- package/src/api/api-schemas/instanceSummaryOutputs.fetch.ts +1 -1
- package/src/api/api-schemas/instanceSummaryOutputs.ts +1 -1
- package/src/api/api-schemas/instanceSummaryPhase.fetch.ts +1 -1
- package/src/api/api-schemas/instanceSummaryPhase.ts +1 -1
- package/src/api/api-schemas/instanceTask.fetch.ts +1 -1
- package/src/api/api-schemas/instanceTask.ts +1 -1
- package/src/api/api-schemas/instanceTaskPurpose.fetch.ts +1 -1
- package/src/api/api-schemas/instanceTaskPurpose.ts +1 -1
- package/src/api/api-schemas/instancesGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/instancesGetResponse.ts +1 -1
- package/src/api/api-schemas/inventoryDatasetDetail.fetch.ts +1 -1
- package/src/api/api-schemas/inventoryDatasetDetail.ts +1 -1
- package/src/api/api-schemas/inventoryProjectDetail.fetch.ts +1 -1
- package/src/api/api-schemas/inventoryProjectDetail.ts +1 -1
- package/src/api/api-schemas/inventoryUserDetail.fetch.ts +1 -1
- package/src/api/api-schemas/inventoryUserDetail.ts +1 -1
- package/src/api/api-schemas/inventoryUserDetailDatasets.fetch.ts +1 -1
- package/src/api/api-schemas/inventoryUserDetailDatasets.ts +1 -1
- package/src/api/api-schemas/inventoryUserDetailProjects.fetch.ts +1 -1
- package/src/api/api-schemas/inventoryUserDetailProjects.ts +1 -1
- package/src/api/api-schemas/inventoryUserGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/inventoryUserGetResponse.ts +1 -1
- package/src/api/api-schemas/jobApplication.fetch.ts +1 -1
- package/src/api/api-schemas/jobApplication.ts +1 -1
- package/src/api/api-schemas/jobExchangeRateSummary.fetch.ts +1 -1
- package/src/api/api-schemas/jobExchangeRateSummary.ts +1 -1
- package/src/api/api-schemas/jobGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/jobGetResponse.ts +1 -1
- package/src/api/api-schemas/jobGetResponseImageType.fetch.ts +1 -1
- package/src/api/api-schemas/jobGetResponseImageType.ts +1 -1
- package/src/api/api-schemas/jobManifestDetail.fetch.ts +1 -1
- package/src/api/api-schemas/jobManifestDetail.ts +1 -1
- package/src/api/api-schemas/jobManifestPutBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/jobManifestPutBodyBody.ts +1 -1
- package/src/api/api-schemas/jobOrderDetail.fetch.ts +1 -1
- package/src/api/api-schemas/jobOrderDetail.ts +1 -1
- package/src/api/api-schemas/jobReplacement.fetch.ts +1 -1
- package/src/api/api-schemas/jobReplacement.ts +1 -1
- package/src/api/api-schemas/jobReplacements.fetch.ts +1 -1
- package/src/api/api-schemas/jobReplacements.ts +1 -1
- package/src/api/api-schemas/jobSummary.fetch.ts +1 -1
- package/src/api/api-schemas/jobSummary.ts +1 -1
- package/src/api/api-schemas/jobSummaryImageType.fetch.ts +1 -1
- package/src/api/api-schemas/jobSummaryImageType.ts +1 -1
- package/src/api/api-schemas/jobVariables.fetch.ts +1 -1
- package/src/api/api-schemas/jobVariables.ts +1 -1
- package/src/api/api-schemas/jobVariablesInputs.fetch.ts +1 -1
- package/src/api/api-schemas/jobVariablesInputs.ts +1 -1
- package/src/api/api-schemas/jobVariablesOptions.fetch.ts +1 -1
- package/src/api/api-schemas/jobVariablesOptions.ts +1 -1
- package/src/api/api-schemas/jobVariablesOutputs.fetch.ts +1 -1
- package/src/api/api-schemas/jobVariablesOutputs.ts +1 -1
- package/src/api/api-schemas/jobsGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/jobsGetResponse.ts +1 -1
- package/src/api/api-schemas/modeGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/modeGetResponse.ts +1 -1
- package/src/api/api-schemas/moveFileInProjectParams.fetch.ts +1 -1
- package/src/api/api-schemas/moveFileInProjectParams.ts +1 -1
- package/src/api/api-schemas/movePathParams.fetch.ts +1 -1
- package/src/api/api-schemas/movePathParams.ts +1 -1
- package/src/api/api-schemas/patchInstanceParams.fetch.ts +1 -1
- package/src/api/api-schemas/patchInstanceParams.ts +1 -1
- package/src/api/api-schemas/projectDeleteResponse.fetch.ts +1 -1
- package/src/api/api-schemas/projectDeleteResponse.ts +1 -1
- package/src/api/api-schemas/projectDetail.fetch.ts +1 -1
- package/src/api/api-schemas/projectDetail.ts +1 -1
- package/src/api/api-schemas/projectFileDetail.fetch.ts +1 -1
- package/src/api/api-schemas/projectFileDetail.ts +1 -1
- package/src/api/api-schemas/projectFileDetailProcessingStage.fetch.ts +1 -1
- package/src/api/api-schemas/projectFileDetailProcessingStage.ts +1 -1
- package/src/api/api-schemas/projectFilePutBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/projectFilePutBodyBody.ts +1 -1
- package/src/api/api-schemas/projectGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/projectGetResponse.ts +1 -1
- package/src/api/api-schemas/projectPatchBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/projectPatchBodyBody.ts +1 -1
- package/src/api/api-schemas/projectPostBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/projectPostBodyBody.ts +1 -1
- package/src/api/api-schemas/projectPostResponse.fetch.ts +1 -1
- package/src/api/api-schemas/projectPostResponse.ts +1 -1
- package/src/api/api-schemas/projectsGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/projectsGetResponse.ts +1 -1
- package/src/api/api-schemas/qActiveDaysParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qActiveDaysParameter.ts +1 -1
- package/src/api/api-schemas/qApplicationIdParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qApplicationIdParameter.ts +1 -1
- package/src/api/api-schemas/qCurrentParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qCurrentParameter.ts +1 -1
- package/src/api/api-schemas/qDatasetMimeTypeParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qDatasetMimeTypeParameter.ts +1 -1
- package/src/api/api-schemas/qDoNotImpersonateParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qDoNotImpersonateParameter.ts +1 -1
- package/src/api/api-schemas/qDstFileParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qDstFileParameter.ts +1 -1
- package/src/api/api-schemas/qEditorsParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qEditorsParameter.ts +1 -1
- package/src/api/api-schemas/qEventLimitParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qEventLimitParameter.ts +1 -1
- package/src/api/api-schemas/qEventPriorOrdinalParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qEventPriorOrdinalParameter.ts +1 -1
- package/src/api/api-schemas/qExcludeDoneParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qExcludeDoneParameter.ts +1 -1
- package/src/api/api-schemas/qExcludePurposeParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qExcludePurposeParameter.ts +1 -1
- package/src/api/api-schemas/qExcludeRemovalParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qExcludeRemovalParameter.ts +1 -1
- package/src/api/api-schemas/qFileDstPathParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qFileDstPathParameter.ts +1 -1
- package/src/api/api-schemas/qFileParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qFileParameter.ts +1 -1
- package/src/api/api-schemas/qFilePathParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qFilePathParameter.ts +1 -1
- package/src/api/api-schemas/qFileProjectIdParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qFileProjectIdParameter.ts +1 -1
- package/src/api/api-schemas/qFileSrcPathParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qFileSrcPathParameter.ts +1 -1
- package/src/api/api-schemas/qFromParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qFromParameter.ts +1 -1
- package/src/api/api-schemas/qIdleDaysParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qIdleDaysParameter.ts +1 -1
- package/src/api/api-schemas/qIncludeAcknowledgedParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qIncludeAcknowledgedParameter.ts +1 -1
- package/src/api/api-schemas/qIncludeDeletedParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qIncludeDeletedParameter.ts +1 -1
- package/src/api/api-schemas/qIncludeHiddenParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qIncludeHiddenParameter.ts +1 -1
- package/src/api/api-schemas/qInstanceArchiveParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qInstanceArchiveParameter.ts +1 -1
- package/src/api/api-schemas/qInstanceCallbackContextParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qInstanceCallbackContextParameter.ts +1 -1
- package/src/api/api-schemas/qJobCollectionParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qJobCollectionParameter.ts +1 -1
- package/src/api/api-schemas/qJobIdParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qJobIdParameter.ts +1 -1
- package/src/api/api-schemas/qJobJobParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qJobJobParameter.ts +1 -1
- package/src/api/api-schemas/qJobVersionParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qJobVersionParameter.ts +1 -1
- package/src/api/api-schemas/qKeepProjectFilesParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qKeepProjectFilesParameter.ts +1 -1
- package/src/api/api-schemas/qLabelsParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qLabelsParameter.ts +1 -1
- package/src/api/api-schemas/qOnlyUndefinedParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qOnlyUndefinedParameter.ts +1 -1
- package/src/api/api-schemas/qOrgIdParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qOrgIdParameter.ts +1 -1
- package/src/api/api-schemas/qOwnersParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qOwnersParameter.ts +1 -1
- package/src/api/api-schemas/qProjectIdParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qProjectIdParameter.ts +1 -1
- package/src/api/api-schemas/qProjectNameParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qProjectNameParameter.ts +1 -1
- package/src/api/api-schemas/qPurgeParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qPurgeParameter.ts +1 -1
- package/src/api/api-schemas/qPurposeParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qPurposeParameter.ts +1 -1
- package/src/api/api-schemas/qTokenParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qTokenParameter.ts +1 -1
- package/src/api/api-schemas/qUnitIdParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qUnitIdParameter.ts +1 -1
- package/src/api/api-schemas/qUntilParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qUntilParameter.ts +1 -1
- package/src/api/api-schemas/qUsernameParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qUsernameParameter.ts +1 -1
- package/src/api/api-schemas/qUsernamesParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qUsernamesParameter.ts +1 -1
- package/src/api/api-schemas/qWorkflowIdParameter.fetch.ts +1 -1
- package/src/api/api-schemas/qWorkflowIdParameter.ts +1 -1
- package/src/api/api-schemas/runningWorkflowGetAllResponse.fetch.ts +1 -1
- package/src/api/api-schemas/runningWorkflowGetAllResponse.ts +1 -1
- package/src/api/api-schemas/runningWorkflowGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/runningWorkflowGetResponse.ts +1 -1
- package/src/api/api-schemas/runningWorkflowGetResponseStatus.fetch.ts +1 -1
- package/src/api/api-schemas/runningWorkflowGetResponseStatus.ts +1 -1
- package/src/api/api-schemas/runningWorkflowGetResponseVariables.fetch.ts +1 -1
- package/src/api/api-schemas/runningWorkflowGetResponseVariables.ts +1 -1
- package/src/api/api-schemas/runningWorkflowProject.fetch.ts +1 -1
- package/src/api/api-schemas/runningWorkflowProject.ts +1 -1
- package/src/api/api-schemas/runningWorkflowStep.fetch.ts +1 -1
- package/src/api/api-schemas/runningWorkflowStep.ts +1 -1
- package/src/api/api-schemas/runningWorkflowStepStatus.fetch.ts +1 -1
- package/src/api/api-schemas/runningWorkflowStepStatus.ts +1 -1
- package/src/api/api-schemas/runningWorkflowStepVariables.fetch.ts +1 -1
- package/src/api/api-schemas/runningWorkflowStepVariables.ts +1 -1
- package/src/api/api-schemas/runningWorkflowStepsGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/runningWorkflowStepsGetResponse.ts +1 -1
- package/src/api/api-schemas/runningWorkflowSummary.fetch.ts +1 -1
- package/src/api/api-schemas/runningWorkflowSummary.ts +1 -1
- package/src/api/api-schemas/runningWorkflowSummaryStatus.fetch.ts +1 -1
- package/src/api/api-schemas/runningWorkflowSummaryStatus.ts +1 -1
- package/src/api/api-schemas/runningWorkflowWorkflow.fetch.ts +1 -1
- package/src/api/api-schemas/runningWorkflowWorkflow.ts +1 -1
- package/src/api/api-schemas/serviceErrorSummary.fetch.ts +1 -1
- package/src/api/api-schemas/serviceErrorSummary.ts +1 -1
- package/src/api/api-schemas/serviceErrorSummarySeverity.fetch.ts +1 -1
- package/src/api/api-schemas/serviceErrorSummarySeverity.ts +1 -1
- package/src/api/api-schemas/serviceErrorsGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/serviceErrorsGetResponse.ts +1 -1
- package/src/api/api-schemas/taskEvent.fetch.ts +1 -1
- package/src/api/api-schemas/taskEvent.ts +1 -1
- package/src/api/api-schemas/taskEventLevel.fetch.ts +1 -1
- package/src/api/api-schemas/taskEventLevel.ts +1 -1
- package/src/api/api-schemas/taskGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/taskGetResponse.ts +1 -1
- package/src/api/api-schemas/taskGetResponsePurpose.fetch.ts +1 -1
- package/src/api/api-schemas/taskGetResponsePurpose.ts +1 -1
- package/src/api/api-schemas/taskIdentity.fetch.ts +1 -1
- package/src/api/api-schemas/taskIdentity.ts +1 -1
- package/src/api/api-schemas/taskState.fetch.ts +1 -1
- package/src/api/api-schemas/taskState.ts +1 -1
- package/src/api/api-schemas/taskStateState.fetch.ts +1 -1
- package/src/api/api-schemas/taskStateState.ts +1 -1
- package/src/api/api-schemas/taskSummary.fetch.ts +1 -1
- package/src/api/api-schemas/taskSummary.ts +1 -1
- package/src/api/api-schemas/taskSummaryProcessingStage.fetch.ts +1 -1
- package/src/api/api-schemas/taskSummaryProcessingStage.ts +1 -1
- package/src/api/api-schemas/tasksGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/tasksGetResponse.ts +1 -1
- package/src/api/api-schemas/typeSummary.fetch.ts +1 -1
- package/src/api/api-schemas/typeSummary.ts +1 -1
- package/src/api/api-schemas/typeSummaryFormatterOptions.fetch.ts +1 -1
- package/src/api/api-schemas/typeSummaryFormatterOptions.ts +1 -1
- package/src/api/api-schemas/typeSummaryFormatterOptionsType.fetch.ts +1 -1
- package/src/api/api-schemas/typeSummaryFormatterOptionsType.ts +1 -1
- package/src/api/api-schemas/typesGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/typesGetResponse.ts +1 -1
- package/src/api/api-schemas/userAccountDetail.fetch.ts +1 -1
- package/src/api/api-schemas/userAccountDetail.ts +1 -1
- package/src/api/api-schemas/userAccountGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/userAccountGetResponse.ts +1 -1
- package/src/api/api-schemas/userAccountPatchBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/userAccountPatchBodyBody.ts +1 -1
- package/src/api/api-schemas/userActivityDetail.fetch.ts +1 -1
- package/src/api/api-schemas/userActivityDetail.ts +1 -1
- package/src/api/api-schemas/userActivityDetailPeriod.fetch.ts +1 -1
- package/src/api/api-schemas/userActivityDetailPeriod.ts +1 -1
- package/src/api/api-schemas/userApiLogGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/userApiLogGetResponse.ts +1 -1
- package/src/api/api-schemas/userApiTokenGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/userApiTokenGetResponse.ts +1 -1
- package/src/api/api-schemas/userDetail.fetch.ts +1 -1
- package/src/api/api-schemas/userDetail.ts +1 -1
- package/src/api/api-schemas/userPatchBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/userPatchBodyBody.ts +1 -1
- package/src/api/api-schemas/userSummary.fetch.ts +1 -1
- package/src/api/api-schemas/userSummary.ts +1 -1
- package/src/api/api-schemas/usersGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/usersGetResponse.ts +1 -1
- package/src/api/api-schemas/versionGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/versionGetResponse.ts +1 -1
- package/src/api/api-schemas/workflowDefinitionGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/workflowDefinitionGetResponse.ts +1 -1
- package/src/api/api-schemas/workflowGetAllResponse.fetch.ts +1 -1
- package/src/api/api-schemas/workflowGetAllResponse.ts +1 -1
- package/src/api/api-schemas/workflowGetResponse.fetch.ts +1 -1
- package/src/api/api-schemas/workflowGetResponse.ts +1 -1
- package/src/api/api-schemas/workflowGetResponseScope.fetch.ts +1 -1
- package/src/api/api-schemas/workflowGetResponseScope.ts +1 -1
- package/src/api/api-schemas/workflowGetResponseVariables.fetch.ts +1 -1
- package/src/api/api-schemas/workflowGetResponseVariables.ts +1 -1
- package/src/api/api-schemas/workflowPatchBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/workflowPatchBodyBody.ts +1 -1
- package/src/api/api-schemas/workflowPatchResponse.fetch.ts +1 -1
- package/src/api/api-schemas/workflowPatchResponse.ts +1 -1
- package/src/api/api-schemas/workflowPostBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/workflowPostBodyBody.ts +1 -1
- package/src/api/api-schemas/workflowPostBodyBodyScope.fetch.ts +1 -1
- package/src/api/api-schemas/workflowPostBodyBodyScope.ts +1 -1
- package/src/api/api-schemas/workflowPostResponse.fetch.ts +1 -1
- package/src/api/api-schemas/workflowPostResponse.ts +1 -1
- package/src/api/api-schemas/workflowRunPostBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/workflowRunPostBodyBody.ts +1 -1
- package/src/api/api-schemas/workflowRunPostResponse.fetch.ts +1 -1
- package/src/api/api-schemas/workflowRunPostResponse.ts +1 -1
- package/src/api/api-schemas/workflowStepSummary.fetch.ts +1 -1
- package/src/api/api-schemas/workflowStepSummary.ts +1 -1
- package/src/api/api-schemas/workflowStepSummarySpecification.fetch.ts +1 -1
- package/src/api/api-schemas/workflowStepSummarySpecification.ts +1 -1
- package/src/api/api-schemas/workflowSummary.fetch.ts +1 -1
- package/src/api/api-schemas/workflowSummary.ts +1 -1
- package/src/api/api-schemas/workflowSummaryScope.fetch.ts +1 -1
- package/src/api/api-schemas/workflowSummaryScope.ts +1 -1
- package/src/api/api-schemas/workflowVersionPutBodyBody.fetch.ts +1 -1
- package/src/api/api-schemas/workflowVersionPutBodyBody.ts +1 -1
- package/src/api/api-schemas/workflowVersionPutResponse.fetch.ts +1 -1
- package/src/api/api-schemas/workflowVersionPutResponse.ts +1 -1
- package/src/api/application/application.fetch.ts +20 -5
- package/src/api/application/application.ts +20 -5
- package/src/api/configuration/configuration.fetch.ts +20 -5
- package/src/api/configuration/configuration.ts +20 -5
- package/src/api/dataset/dataset.fetch.ts +269 -615
- package/src/api/dataset/dataset.ts +269 -615
- package/src/api/digest/digest.fetch.ts +18 -3
- package/src/api/digest/digest.ts +18 -3
- package/src/api/file-and-path/file-and-path.fetch.ts +420 -876
- package/src/api/file-and-path/file-and-path.ts +420 -876
- package/src/api/instance/instance.fetch.ts +266 -569
- package/src/api/instance/instance.ts +266 -569
- package/src/api/inventory/inventory.fetch.ts +18 -3
- package/src/api/inventory/inventory.ts +18 -3
- package/src/api/job/job.fetch.ts +79 -132
- package/src/api/job/job.ts +79 -132
- package/src/api/metadata/metadata.fetch.ts +122 -282
- package/src/api/metadata/metadata.ts +122 -285
- package/src/api/project/project.fetch.ts +467 -1095
- package/src/api/project/project.ts +506 -1134
- package/src/api/task/task.fetch.ts +72 -112
- package/src/api/task/task.ts +72 -112
- package/src/api/type/type.fetch.ts +18 -3
- package/src/api/type/type.ts +18 -3
- package/src/api/user/user.fetch.ts +78 -118
- package/src/api/user/user.ts +78 -118
- package/src/api/workflow/workflow.fetch.ts +496 -958
- package/src/api/workflow/workflow.ts +477 -939
|
@@ -3,7 +3,7 @@ const require_custom_axios = require("../../custom-axios.cjs");
|
|
|
3
3
|
let _tanstack_react_query = require("@tanstack/react-query");
|
|
4
4
|
//#region src/api/inventory/inventory.ts
|
|
5
5
|
/**
|
|
6
|
-
* Generated by orval v8.
|
|
6
|
+
* Generated by orval v8.22.0 🍺
|
|
7
7
|
* Do not edit manually.
|
|
8
8
|
* Dataset Manager API
|
|
9
9
|
* The Dataset Manager API service.
|
|
@@ -12,6 +12,18 @@ let _tanstack_react_query = require("@tanstack/react-query");
|
|
|
12
12
|
*
|
|
13
13
|
* OpenAPI spec version: 6.7
|
|
14
14
|
*/
|
|
15
|
+
const withQueryKey = (query, queryKey) => {
|
|
16
|
+
const result = { queryKey };
|
|
17
|
+
for (const key of Object.keys(query)) {
|
|
18
|
+
if (key === "queryKey") continue;
|
|
19
|
+
Object.defineProperty(result, key, {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
get: () => query[key]
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
15
27
|
/**
|
|
16
28
|
* Returns an inventory of users, which includes Projects membership and Datasets they own. An Account Server **Unit** or **Organisation** must be provided (but not both).
|
|
17
29
|
*
|
|
@@ -49,10 +61,7 @@ const getGetUserInventoryQueryOptions = (params, options) => {
|
|
|
49
61
|
*/
|
|
50
62
|
function useGetUserInventory(params, options, queryClient) {
|
|
51
63
|
const queryOptions = getGetUserInventoryQueryOptions(params, options);
|
|
52
|
-
return
|
|
53
|
-
...(0, _tanstack_react_query.useQuery)(queryOptions, queryClient),
|
|
54
|
-
queryKey: queryOptions.queryKey
|
|
55
|
-
};
|
|
64
|
+
return withQueryKey((0, _tanstack_react_query.useQuery)(queryOptions, queryClient), queryOptions.queryKey);
|
|
56
65
|
}
|
|
57
66
|
/**
|
|
58
67
|
* @summary Get User Inventory
|
|
@@ -76,10 +85,7 @@ const getGetUserInventorySuspenseQueryOptions = (params, options) => {
|
|
|
76
85
|
*/
|
|
77
86
|
function useGetUserInventorySuspense(params, options, queryClient) {
|
|
78
87
|
const queryOptions = getGetUserInventorySuspenseQueryOptions(params, options);
|
|
79
|
-
return
|
|
80
|
-
...(0, _tanstack_react_query.useSuspenseQuery)(queryOptions, queryClient),
|
|
81
|
-
queryKey: queryOptions.queryKey
|
|
82
|
-
};
|
|
88
|
+
return withQueryKey((0, _tanstack_react_query.useSuspenseQuery)(queryOptions, queryClient), queryOptions.queryKey);
|
|
83
89
|
}
|
|
84
90
|
//#endregion
|
|
85
91
|
exports.getGetUserInventoryQueryKey = getGetUserInventoryQueryKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.cjs","names":["customInstance"],"sources":["../../../src/api/inventory/inventory.ts"],"sourcesContent":["/**\n * Generated by orval v8.16.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n *\n * A service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications**, **Jobs**, and **Workflows** using **Projects** and **Files**.\n *\n * OpenAPI spec version: 6.7\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { DmError, GetUserInventoryParams, InventoryUserGetResponse } from \"../api-schemas\";\n\nimport { customInstance } from \"../../custom-axios\";\nimport type { ErrorType } from \"../../custom-axios\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Returns an inventory of users, which includes Projects membership and Datasets they own. An Account Server **Unit** or **Organisation** must be provided (but not both).\n *\n * The caller must also be a member of the provided Unit or Organisation, i.e. you can only query User inventory if you are a member of the corresponding Account Server Unit or Organisation.\n * @summary Get User Inventory\n */\nexport const getUserInventory = (\n params?: GetUserInventoryParams,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<InventoryUserGetResponse>(\n { url: `/inventory/user`, method: \"GET\", params, signal },\n options,\n );\n};\n\nexport const getGetUserInventoryQueryKey = (params?: GetUserInventoryParams) => {\n return [\"data-manager\", \"inventory\", \"user\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetUserInventoryQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>\n getUserInventory(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserInventoryQueryResult = NonNullable<Awaited<ReturnType<typeof getUserInventory>>>;\nexport type GetUserInventoryQueryError = ErrorType<void | DmError>;\n\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params: undefined | GetUserInventoryParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n Awaited<ReturnType<typeof getUserInventory>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n Awaited<ReturnType<typeof getUserInventory>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get User Inventory\n */\n\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserInventoryQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return { ...query, queryKey: queryOptions.queryKey };\n}\n\n/**\n * @summary Get User Inventory\n */\nexport const invalidateGetUserInventory = async (\n queryClient: QueryClient,\n params?: GetUserInventoryParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetUserInventoryQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetUserInventorySuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>\n getUserInventory(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserInventorySuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getUserInventory>>\n>;\nexport type GetUserInventorySuspenseQueryError = ErrorType<void | DmError>;\n\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params: undefined | GetUserInventoryParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get User Inventory\n */\n\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserInventorySuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return { ...query, queryKey: queryOptions.queryKey };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuCA,MAAa,oBACX,QACA,SACA,WACG;CACH,OAAOA,qBAAAA,eACL;EAAE,KAAK;EAAmB,QAAQ;EAAO;EAAQ;CAAO,GACxD,OACF;AACF;AAEA,MAAa,+BAA+B,WAAoC;CAC9E,OAAO;EAAC;EAAgB;EAAa;EAAQ,GAAI,SAAS,CAAC,MAAM,IAAI,CAAC;CAAE;AAC1E;AAEA,MAAa,mCAIX,QACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,4BAA4B,MAAM;CAE7E,MAAM,WAAwE,EAAE,aAC9E,iBAAiB,QAAQ,gBAAgB,MAAM;CAEjD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AA0DA,SAAgB,oBAId,QACA,SAIA,aACgF;CAChF,MAAM,eAAe,gCAAgC,QAAQ,OAAO;CAMpE,OAAO;EAAE,IAAA,GAAA,sBAAA,SAAA,CAJc,cAAc,WAIrB;EAAG,UAAU,aAAa;CAAS;AACrD;;;;AAKA,MAAa,6BAA6B,OACxC,aACA,QACA,YACyB;CACzB,MAAM,YAAY,kBAAkB,EAAE,UAAU,4BAA4B,MAAM,EAAE,GAAG,OAAO;CAE9F,OAAO;AACT;AAEA,MAAa,2CAIX,QACA,YAMG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,4BAA4B,MAAM;CAE7E,MAAM,WAAwE,EAAE,aAC9E,iBAAiB,QAAQ,gBAAgB,MAAM;CAEjD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AAkDA,SAAgB,4BAId,QACA,SAMA,aACwF;CACxF,MAAM,eAAe,wCAAwC,QAAQ,OAAO;CAO5E,OAAO;EAAE,IAAA,GAAA,sBAAA,iBAAA,CALsB,cAAc,WAK7B;EAAG,UAAU,aAAa;CAAS;AACrD"}
|
|
1
|
+
{"version":3,"file":"inventory.cjs","names":["customInstance"],"sources":["../../../src/api/inventory/inventory.ts"],"sourcesContent":["/**\n * Generated by orval v8.22.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n *\n * A service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications**, **Jobs**, and **Workflows** using **Projects** and **Files**.\n *\n * OpenAPI spec version: 6.7\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { DmError, GetUserInventoryParams, InventoryUserGetResponse } from \"../api-schemas\";\n\nimport { customInstance } from \"../../custom-axios\";\nimport type { ErrorType } from \"../../custom-axios\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === \"queryKey\") continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\n/**\n * Returns an inventory of users, which includes Projects membership and Datasets they own. An Account Server **Unit** or **Organisation** must be provided (but not both).\n *\n * The caller must also be a member of the provided Unit or Organisation, i.e. you can only query User inventory if you are a member of the corresponding Account Server Unit or Organisation.\n * @summary Get User Inventory\n */\nexport const getUserInventory = (\n params?: GetUserInventoryParams,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<InventoryUserGetResponse>(\n { url: `/inventory/user`, method: \"GET\", params, signal },\n options,\n );\n};\n\nexport const getGetUserInventoryQueryKey = (params?: GetUserInventoryParams) => {\n return [\"data-manager\", \"inventory\", \"user\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetUserInventoryQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>\n getUserInventory(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserInventoryQueryResult = NonNullable<Awaited<ReturnType<typeof getUserInventory>>>;\nexport type GetUserInventoryQueryError = ErrorType<void | DmError>;\n\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params: undefined | GetUserInventoryParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n Awaited<ReturnType<typeof getUserInventory>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n Awaited<ReturnType<typeof getUserInventory>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get User Inventory\n */\n\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserInventoryQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Get User Inventory\n */\nexport const invalidateGetUserInventory = async (\n queryClient: QueryClient,\n params?: GetUserInventoryParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetUserInventoryQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetUserInventorySuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>\n getUserInventory(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserInventorySuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getUserInventory>>\n>;\nexport type GetUserInventorySuspenseQueryError = ErrorType<void | DmError>;\n\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params: undefined | GetUserInventoryParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get User Inventory\n */\n\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserInventorySuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n"],"mappings":";;;;;;;;;;;;;;AAiCA,MAAM,gBAAqC,OAAU,aAAqC;CACxF,MAAM,SAAS,EAAE,SAAS;CAC1B,KAAK,MAAM,OAAO,OAAO,KAAK,KAAK,GAAG;EAGpC,IAAI,QAAQ,YAAY;EACxB,OAAO,eAAe,QAAQ,KAAK;GACjC,YAAY;GACZ,cAAc;GACd,WAAY,MAAkC;EAChD,CAAC;CACH;CACA,OAAO;AACT;;;;;;;AAQA,MAAa,oBACX,QACA,SACA,WACG;CACH,OAAOA,qBAAAA,eACL;EAAE,KAAK;EAAmB,QAAQ;EAAO;EAAQ;CAAO,GACxD,OACF;AACF;AAEA,MAAa,+BAA+B,WAAoC;CAC9E,OAAO;EAAC;EAAgB;EAAa;EAAQ,GAAI,SAAS,CAAC,MAAM,IAAI,CAAC;CAAE;AAC1E;AAEA,MAAa,mCAIX,QACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,4BAA4B,MAAM;CAE7E,MAAM,WAAwE,EAAE,aAC9E,iBAAiB,QAAQ,gBAAgB,MAAM;CAEjD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AA0DA,SAAgB,oBAId,QACA,SAIA,aACgF;CAChF,MAAM,eAAe,gCAAgC,QAAQ,OAAO;CAMpE,OAAO,cAAA,GAAA,sBAAA,SAAA,CAJgB,cAAc,WAIb,GAAG,aAAa,QAAQ;AAClD;;;;AAKA,MAAa,6BAA6B,OACxC,aACA,QACA,YACyB;CACzB,MAAM,YAAY,kBAAkB,EAAE,UAAU,4BAA4B,MAAM,EAAE,GAAG,OAAO;CAE9F,OAAO;AACT;AAEA,MAAa,2CAIX,QACA,YAMG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,4BAA4B,MAAM;CAE7E,MAAM,WAAwE,EAAE,aAC9E,iBAAiB,QAAQ,gBAAgB,MAAM;CAEjD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AAkDA,SAAgB,4BAId,QACA,SAMA,aACwF;CACxF,MAAM,eAAe,wCAAwC,QAAQ,OAAO;CAO5E,OAAO,cAAA,GAAA,sBAAA,iBAAA,CALwB,cAAc,WAKrB,GAAG,aAAa,QAAQ;AAClD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.d.cts","names":[],"sources":["../../../src/api/inventory/inventory.ts"],"mappings":";;;;;;;KA+BK,eAAA,eAA8B,IAAA,uBAA2B,UAAU,CAAC,CAAA;;;AAFrB;;;;
|
|
1
|
+
{"version":3,"file":"inventory.d.cts","names":[],"sources":["../../../src/api/inventory/inventory.ts"],"mappings":";;;;;;;KA+BK,eAAA,eAA8B,IAAA,uBAA2B,UAAU,CAAC,CAAA;;;AAFrB;;;;cAyBvC,gBAAA,GACX,MAAA,GAAS,sBAAA,EACT,OAAA,GAAU,eAAA,QAAuB,cAAA,GACjC,MAAA,GAAS,WAAA,KAAW,OAAA,CAAA,wBAAA;AAAA,cAQT,2BAAA,GAA+B,MAAA,GAAS,sBAAA,uDAAsB,sBAAA;AAAA,cAI9D,+BAAA,WACH,OAAA,CAAQ,UAAA,QAAkB,gBAAA,aACzB,SAAA,QAAiB,OAAA,GAE1B,MAAA,GAA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AA,EAAO,MAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.d.ts","names":[],"sources":["../../../src/api/inventory/inventory.ts"],"mappings":";;;;;;;KA+BK,eAAA,eAA8B,IAAA,uBAA2B,UAAU,CAAC,CAAA;;;AAFrB;;;;
|
|
1
|
+
{"version":3,"file":"inventory.d.ts","names":[],"sources":["../../../src/api/inventory/inventory.ts"],"mappings":";;;;;;;KA+BK,eAAA,eAA8B,IAAA,uBAA2B,UAAU,CAAC,CAAA;;;AAFrB;;;;cAyBvC,gBAAA,GACX,MAAA,GAAS,sBAAA,EACT,OAAA,GAAU,eAAA,QAAuB,cAAA,GACjC,MAAA,GAAS,WAAA,KAAW,OAAA,CAAA,wBAAA;AAAA,cAQT,2BAAA,GAA+B,MAAA,GAAS,sBAAA,uDAAsB,sBAAA;AAAA,cAI9D,+BAAA,WACH,OAAA,CAAQ,UAAA,QAAkB,gBAAA,aACzB,SAAA,QAAiB,OAAA,GAE1B,MAAA,GAAS,sBAAA,EACT,OAAA;EACE,KAAA,GAAQ,OAAA,CAAQ,eAAA,CAAgB,OAAA,CAAQ,UAAA,QAAkB,gBAAA,IAAoB,MAAA,EAAQ,KAAA;EACtF,OAAA,GAAU,eAAA,QAAuB,cAAA;AAAA,MAUc,eAAA,CAC/C,OAAA,CAAQ,UAAA,QAAkB,gBAAA,IAC1B,MAAA,EACA,KAAA;EACI,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAU,KAAA,EAAO,MAAA;AAAA;AAAA,KAG/B,2BAAA,GAA8B,WAAA,CAAY,OAAA,CAAQ,UAAA,QAAkB,gBAAA;AAAA,KACpE,0BAAA,GAA6B,SAAS,QAAQ,OAAA;AAAA,iBAE1C,mBAAA,SACN,OAAA,CAAQ,UAAA,QAAkB,gBAAA,aACzB,SAAA,QAAiB,OAAA,GAE1B,MAAA,cAAoB,sBAAA,EACpB,OAAA;EACE,KAAA,EAAO,OAAA,CAAQ,eAAA,CAAgB,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,CACN,uBAAA,CAAwB,OAAA,CAAQ,UAAA,QAAkB,gBAAA,IAAoB,MAAA,EAAQ,KAAA;EAEhF,OAAA,GAAU,eAAA,QAAuB,cAAA;AAAA,GAEnC,WAAA,GAAc,WAAA,GACb,sBAAA,CAAuB,KAAA,EAAO,MAAA;EAAY,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAU,KAAA,EAAO,MAAA;AAAA;AAAA,iBAChE,2BAAA,SACN,OAAA,CAAQ,UAAA,QAAkB,gBAAA,aACzB,SAAA,QAAiB,OAAA,GAE1B,MAAA,GAAS,sBAAA,EACT,OAAA;EACE,KAAA,GAAQ,OAAA,CACN,uBAAA,CAAwB,OAAA,CAAQ,UAAA,QAAkB,gBAAA,IAAoB,MAAA,EAAQ,KAAA;EAEhF,OAAA,GAAU,eAAA,QAAuB,cAAA;AAAA,GAEnC,WAAA,GAAc,WAAA,GACb,sBAAA,CAAuB,KAAA,EAAO,MAAA;EAAY,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAU,KAAA,EAAO,MAAA;AAAA"}
|
|
@@ -3,7 +3,7 @@ const require_custom_fetch = require("../../custom-fetch.cjs");
|
|
|
3
3
|
let _tanstack_react_query = require("@tanstack/react-query");
|
|
4
4
|
//#region src/api/inventory/inventory.fetch.ts
|
|
5
5
|
/**
|
|
6
|
-
* Generated by orval v8.
|
|
6
|
+
* Generated by orval v8.22.0 🍺
|
|
7
7
|
* Do not edit manually.
|
|
8
8
|
* Dataset Manager API
|
|
9
9
|
* The Dataset Manager API service.
|
|
@@ -12,6 +12,18 @@ let _tanstack_react_query = require("@tanstack/react-query");
|
|
|
12
12
|
*
|
|
13
13
|
* OpenAPI spec version: 6.7
|
|
14
14
|
*/
|
|
15
|
+
const withQueryKey = (query, queryKey) => {
|
|
16
|
+
const result = { queryKey };
|
|
17
|
+
for (const key of Object.keys(query)) {
|
|
18
|
+
if (key === "queryKey") continue;
|
|
19
|
+
Object.defineProperty(result, key, {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
get: () => query[key]
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
15
27
|
const getGetUserInventoryUrl = (params) => {
|
|
16
28
|
const normalizedParams = new URLSearchParams();
|
|
17
29
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -58,10 +70,7 @@ const getGetUserInventoryQueryOptions = (params, options) => {
|
|
|
58
70
|
*/
|
|
59
71
|
function useGetUserInventory(params, options, queryClient) {
|
|
60
72
|
const queryOptions = getGetUserInventoryQueryOptions(params, options);
|
|
61
|
-
return
|
|
62
|
-
...(0, _tanstack_react_query.useQuery)(queryOptions, queryClient),
|
|
63
|
-
queryKey: queryOptions.queryKey
|
|
64
|
-
};
|
|
73
|
+
return withQueryKey((0, _tanstack_react_query.useQuery)(queryOptions, queryClient), queryOptions.queryKey);
|
|
65
74
|
}
|
|
66
75
|
/**
|
|
67
76
|
* @summary Get User Inventory
|
|
@@ -88,10 +97,7 @@ const getGetUserInventorySuspenseQueryOptions = (params, options) => {
|
|
|
88
97
|
*/
|
|
89
98
|
function useGetUserInventorySuspense(params, options, queryClient) {
|
|
90
99
|
const queryOptions = getGetUserInventorySuspenseQueryOptions(params, options);
|
|
91
|
-
return
|
|
92
|
-
...(0, _tanstack_react_query.useSuspenseQuery)(queryOptions, queryClient),
|
|
93
|
-
queryKey: queryOptions.queryKey
|
|
94
|
-
};
|
|
100
|
+
return withQueryKey((0, _tanstack_react_query.useSuspenseQuery)(queryOptions, queryClient), queryOptions.queryKey);
|
|
95
101
|
}
|
|
96
102
|
//#endregion
|
|
97
103
|
exports.getGetUserInventoryQueryKey = getGetUserInventoryQueryKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.fetch.cjs","names":["customFetch"],"sources":["../../../src/api/inventory/inventory.fetch.ts"],"sourcesContent":["/**\n * Generated by orval v8.16.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n *\n * A service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications**, **Jobs**, and **Workflows** using **Projects** and **Files**.\n *\n * OpenAPI spec version: 6.7\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { DmError, GetUserInventoryParams, InventoryUserGetResponse } from \"../api-schemas\";\n\nimport { customFetch } from \"../../custom-fetch\";\nimport type { ErrorType } from \"../../custom-fetch\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nexport type getUserInventoryResponse200 = { data: InventoryUserGetResponse; status: 200 };\n\nexport type getUserInventoryResponse401 = { data: void; status: 401 };\n\nexport type getUserInventoryResponse403 = { data: DmError; status: 403 };\n\nexport type getUserInventoryResponseSuccess = getUserInventoryResponse200 & { headers: Headers };\nexport type getUserInventoryResponseError = (\n | getUserInventoryResponse401\n | getUserInventoryResponse403\n) & { headers: Headers };\n\nexport type getUserInventoryResponse =\n | getUserInventoryResponseSuccess\n | getUserInventoryResponseError;\n\nexport const getGetUserInventoryUrl = (params?: GetUserInventoryParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/inventory/user?${stringifiedParams}` : `/inventory/user`;\n};\n\n/**\n * Returns an inventory of users, which includes Projects membership and Datasets they own. An Account Server **Unit** or **Organisation** must be provided (but not both).\n *\n * The caller must also be a member of the provided Unit or Organisation, i.e. you can only query User inventory if you are a member of the corresponding Account Server Unit or Organisation.\n * @summary Get User Inventory\n */\nexport const getUserInventory = async (\n params?: GetUserInventoryParams,\n options?: RequestInit,\n): Promise<getUserInventoryResponse> => {\n return customFetch<getUserInventoryResponse>(getGetUserInventoryUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetUserInventoryQueryKey = (params?: GetUserInventoryParams) => {\n return [\"data-manager\", \"inventory\", \"user\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetUserInventoryQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>\n getUserInventory(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserInventoryQueryResult = NonNullable<Awaited<ReturnType<typeof getUserInventory>>>;\nexport type GetUserInventoryQueryError = ErrorType<void | DmError>;\n\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params: undefined | GetUserInventoryParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n Awaited<ReturnType<typeof getUserInventory>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n Awaited<ReturnType<typeof getUserInventory>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get User Inventory\n */\n\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserInventoryQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return { ...query, queryKey: queryOptions.queryKey };\n}\n\n/**\n * @summary Get User Inventory\n */\nexport const invalidateGetUserInventory = async (\n queryClient: QueryClient,\n params?: GetUserInventoryParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetUserInventoryQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetUserInventorySuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>\n getUserInventory(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserInventorySuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getUserInventory>>\n>;\nexport type GetUserInventorySuspenseQueryError = ErrorType<void | DmError>;\n\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params: undefined | GetUserInventoryParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get User Inventory\n */\n\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserInventorySuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return { ...query, queryKey: queryOptions.queryKey };\n}\n"],"mappings":";;;;;;;;;;;;;;AAiDA,MAAa,0BAA0B,WAAoC;CACzE,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EACrD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,mBAAmB,sBAAsB;AACjF;;;;;;;AAQA,MAAa,mBAAmB,OAC9B,QACA,YACsC;CACtC,OAAOA,qBAAAA,YAAsC,uBAAuB,MAAM,GAAG;EAC3E,GAAG;EACH,QAAQ;CACV,CAAC;AACH;AAEA,MAAa,+BAA+B,WAAoC;CAC9E,OAAO;EAAC;EAAgB;EAAa;EAAQ,GAAI,SAAS,CAAC,MAAM,IAAI,CAAC;CAAE;AAC1E;AAEA,MAAa,mCAIX,QACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,4BAA4B,MAAM;CAE7E,MAAM,WAAwE,EAAE,aAC9E,iBAAiB,QAAQ;EAAE;EAAQ,GAAG;CAAe,CAAC;CAExD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AA0DA,SAAgB,oBAId,QACA,SAIA,aACgF;CAChF,MAAM,eAAe,gCAAgC,QAAQ,OAAO;CAMpE,OAAO;EAAE,IAAA,GAAA,sBAAA,SAAA,CAJc,cAAc,WAIrB;EAAG,UAAU,aAAa;CAAS;AACrD;;;;AAKA,MAAa,6BAA6B,OACxC,aACA,QACA,YACyB;CACzB,MAAM,YAAY,kBAAkB,EAAE,UAAU,4BAA4B,MAAM,EAAE,GAAG,OAAO;CAE9F,OAAO;AACT;AAEA,MAAa,2CAIX,QACA,YAMG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,4BAA4B,MAAM;CAE7E,MAAM,WAAwE,EAAE,aAC9E,iBAAiB,QAAQ;EAAE;EAAQ,GAAG;CAAe,CAAC;CAExD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AAkDA,SAAgB,4BAId,QACA,SAMA,aACwF;CACxF,MAAM,eAAe,wCAAwC,QAAQ,OAAO;CAO5E,OAAO;EAAE,IAAA,GAAA,sBAAA,iBAAA,CALsB,cAAc,WAK7B;EAAG,UAAU,aAAa;CAAS;AACrD"}
|
|
1
|
+
{"version":3,"file":"inventory.fetch.cjs","names":["customFetch"],"sources":["../../../src/api/inventory/inventory.fetch.ts"],"sourcesContent":["/**\n * Generated by orval v8.22.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n *\n * A service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications**, **Jobs**, and **Workflows** using **Projects** and **Files**.\n *\n * OpenAPI spec version: 6.7\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { DmError, GetUserInventoryParams, InventoryUserGetResponse } from \"../api-schemas\";\n\nimport { customFetch } from \"../../custom-fetch\";\nimport type { ErrorType } from \"../../custom-fetch\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === \"queryKey\") continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\nexport type getUserInventoryResponse200 = { data: InventoryUserGetResponse; status: 200 };\n\nexport type getUserInventoryResponse401 = { data: void; status: 401 };\n\nexport type getUserInventoryResponse403 = { data: DmError; status: 403 };\n\nexport type getUserInventoryResponseSuccess = getUserInventoryResponse200 & { headers: Headers };\nexport type getUserInventoryResponseError = (\n | getUserInventoryResponse401\n | getUserInventoryResponse403\n) & { headers: Headers };\n\nexport type getUserInventoryResponse =\n | getUserInventoryResponseSuccess\n | getUserInventoryResponseError;\n\nexport const getGetUserInventoryUrl = (params?: GetUserInventoryParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/inventory/user?${stringifiedParams}` : `/inventory/user`;\n};\n\n/**\n * Returns an inventory of users, which includes Projects membership and Datasets they own. An Account Server **Unit** or **Organisation** must be provided (but not both).\n *\n * The caller must also be a member of the provided Unit or Organisation, i.e. you can only query User inventory if you are a member of the corresponding Account Server Unit or Organisation.\n * @summary Get User Inventory\n */\nexport const getUserInventory = async (\n params?: GetUserInventoryParams,\n options?: RequestInit,\n): Promise<getUserInventoryResponse> => {\n return customFetch<getUserInventoryResponse>(getGetUserInventoryUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetUserInventoryQueryKey = (params?: GetUserInventoryParams) => {\n return [\"data-manager\", \"inventory\", \"user\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetUserInventoryQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>\n getUserInventory(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserInventoryQueryResult = NonNullable<Awaited<ReturnType<typeof getUserInventory>>>;\nexport type GetUserInventoryQueryError = ErrorType<void | DmError>;\n\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params: undefined | GetUserInventoryParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n Awaited<ReturnType<typeof getUserInventory>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n Awaited<ReturnType<typeof getUserInventory>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get User Inventory\n */\n\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserInventoryQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Get User Inventory\n */\nexport const invalidateGetUserInventory = async (\n queryClient: QueryClient,\n params?: GetUserInventoryParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetUserInventoryQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetUserInventorySuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>\n getUserInventory(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserInventorySuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getUserInventory>>\n>;\nexport type GetUserInventorySuspenseQueryError = ErrorType<void | DmError>;\n\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params: undefined | GetUserInventoryParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get User Inventory\n */\n\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserInventorySuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n"],"mappings":";;;;;;;;;;;;;;AAiCA,MAAM,gBAAqC,OAAU,aAAqC;CACxF,MAAM,SAAS,EAAE,SAAS;CAC1B,KAAK,MAAM,OAAO,OAAO,KAAK,KAAK,GAAG;EAGpC,IAAI,QAAQ,YAAY;EACxB,OAAO,eAAe,QAAQ,KAAK;GACjC,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AMG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,4BAA4B,MAAM;CAE7E,MAAM,WAAwE,EAAE,aAC9E,iBAAiB,QAAQ;EAAE;EAAQ,GAAG;CAAe,CAAC;CAExD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AAkDA,SAAgB,4BAId,QACA,SAMA,aACwF;CACxF,MAAM,eAAe,wCAAwC,QAAQ,OAAO;CAO5E,OAAO,cAAA,GAAA,sBAAA,iBAAA,CALwB,cAAc,WAKrB,GAAG,aAAa,QAAQ;AAClD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.fetch.d.cts","names":[],"sources":["../../../src/api/inventory/inventory.fetch.ts"],"mappings":";;;;;;;KA+BK,eAAA,eAA8B,IAAA,uBAA2B,UAAU,CAAC,CAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"inventory.fetch.d.cts","names":[],"sources":["../../../src/api/inventory/inventory.fetch.ts"],"mappings":";;;;;;;KA+BK,eAAA,eAA8B,IAAA,uBAA2B,UAAU,CAAC,CAAA;AAAA,KAiB7D,2BAAA;EAAgC,IAAA,EAAM,wBAAwB;EAAE,MAAA;AAAA;AAAA,KAEhE,2BAAA;EAAgC,IAAA;EAAY,MAAM;AAAA;AAAA,KAElD,2BAAA;EAAgC,IAAA,EAAM,OAAO;EAAE,MAAA;AAAA;AAAA,KAE/C,+BAAA,GAAkC,2BAAA;EAAgC,OAAA,EAAS,OAAO;AAAA;AAAA,KAClF,6BAAA,IACR,2BAAA,GACA,2BAAA;EACE,OAAA,EAAS,OAAA;AAAA;AAAA,KAEH,wBAAA,GACR,+BAAA,GACA,6BAA6B;AAAA,cAEpB,sBAAA,GAA0B,MAA+B,GAAtB,sBAAsB;AAhBY;AAElF;;;;AAA8D;AAFoB,cAoCrE,gBAAA,GACX,MAAA,GAAS,sBAAA,EACT,OAAA,GAAU,WAAA,K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,MAAA,EAAQ,KAAA;EAEhF,OAAA,GAAU,eAAA,QAAuB,WAAA;AAAA,GAEnC,WAAA,GAAc,WAAA,GACb,sBAAA,CAAuB,KAAA,EAAO,MAAA;EAAY,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAU,KAAA,EAAO,MAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.fetch.d.ts","names":[],"sources":["../../../src/api/inventory/inventory.fetch.ts"],"mappings":";;;;;;;KA+BK,eAAA,eAA8B,IAAA,uBAA2B,UAAU,CAAC,CAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"inventory.fetch.d.ts","names":[],"sources":["../../../src/api/inventory/inventory.fetch.ts"],"mappings":";;;;;;;KA+BK,eAAA,eAA8B,IAAA,uBAA2B,UAAU,CAAC,CAAA;AAAA,KAiB7D,2BAAA;EAAgC,IAAA,EAAM,wBAAwB;EAAE,MAAA;AAAA;AAAA,KAEhE,2BAAA;EAAgC,IAAA;EAAY,MAAM;AAAA;AAAA,KAElD,2BAAA;EAAgC,IAAA,EAAM,OAAO;EAAE,MAAA;AAAA;AAAA,KAE/C,+BAAA,GAAkC,2BAAA;EAAgC,OAAA,EAAS,OAAO;AAAA;AAAA,KAClF,6BAAA,IACR,2BAAA,GACA,2BAAA;EACE,OAAA,EAAS,OAAA;AAAA;AAAA,KAEH,wBAAA,GACR,+BAAA,GACA,6BAA6B;AAAA,cAEpB,sBAAA,GAA0B,MAA+B,GAAtB,sBAAsB;AAhBY;AAElF;;;;AAA8D;AAFoB,cAoCrE,gBAAA,GACX,MAAA,GAAS,sBAAA,EACT,OAAA,GAAU,WAAA,KACT,OAAA,CAAQ,wBAAA;AAAA,cAOE,2BAAA,GAA+B,MAAA,GAAS,sBAAA,uDAAsB,sBAAA;AAAA,cAI9D,+BAAA,WACH,OAAA,CAAQ,UAAA,QAAkB,gBAAA,aACzB,SAAA,QAAiB,OAAA,GAE1B,MAAA,GAAS,sBAAA,EACT,OAA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 -2,7 +2,7 @@ import { customFetch } from "../../custom-fetch.js";
|
|
|
2
2
|
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
3
3
|
//#region src/api/inventory/inventory.fetch.ts
|
|
4
4
|
/**
|
|
5
|
-
* Generated by orval v8.
|
|
5
|
+
* Generated by orval v8.22.0 🍺
|
|
6
6
|
* Do not edit manually.
|
|
7
7
|
* Dataset Manager API
|
|
8
8
|
* The Dataset Manager API service.
|
|
@@ -11,6 +11,18 @@ import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
|
11
11
|
*
|
|
12
12
|
* OpenAPI spec version: 6.7
|
|
13
13
|
*/
|
|
14
|
+
const withQueryKey = (query, queryKey) => {
|
|
15
|
+
const result = { queryKey };
|
|
16
|
+
for (const key of Object.keys(query)) {
|
|
17
|
+
if (key === "queryKey") continue;
|
|
18
|
+
Object.defineProperty(result, key, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
configurable: true,
|
|
21
|
+
get: () => query[key]
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
14
26
|
const getGetUserInventoryUrl = (params) => {
|
|
15
27
|
const normalizedParams = new URLSearchParams();
|
|
16
28
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -57,10 +69,7 @@ const getGetUserInventoryQueryOptions = (params, options) => {
|
|
|
57
69
|
*/
|
|
58
70
|
function useGetUserInventory(params, options, queryClient) {
|
|
59
71
|
const queryOptions = getGetUserInventoryQueryOptions(params, options);
|
|
60
|
-
return
|
|
61
|
-
...useQuery(queryOptions, queryClient),
|
|
62
|
-
queryKey: queryOptions.queryKey
|
|
63
|
-
};
|
|
72
|
+
return withQueryKey(useQuery(queryOptions, queryClient), queryOptions.queryKey);
|
|
64
73
|
}
|
|
65
74
|
/**
|
|
66
75
|
* @summary Get User Inventory
|
|
@@ -87,10 +96,7 @@ const getGetUserInventorySuspenseQueryOptions = (params, options) => {
|
|
|
87
96
|
*/
|
|
88
97
|
function useGetUserInventorySuspense(params, options, queryClient) {
|
|
89
98
|
const queryOptions = getGetUserInventorySuspenseQueryOptions(params, options);
|
|
90
|
-
return
|
|
91
|
-
...useSuspenseQuery(queryOptions, queryClient),
|
|
92
|
-
queryKey: queryOptions.queryKey
|
|
93
|
-
};
|
|
99
|
+
return withQueryKey(useSuspenseQuery(queryOptions, queryClient), queryOptions.queryKey);
|
|
94
100
|
}
|
|
95
101
|
//#endregion
|
|
96
102
|
export { getGetUserInventoryQueryKey, getGetUserInventoryQueryOptions, getGetUserInventorySuspenseQueryOptions, getGetUserInventoryUrl, getUserInventory, invalidateGetUserInventory, useGetUserInventory, useGetUserInventorySuspense };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.fetch.js","names":[],"sources":["../../../src/api/inventory/inventory.fetch.ts"],"sourcesContent":["/**\n * Generated by orval v8.16.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n *\n * A service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications**, **Jobs**, and **Workflows** using **Projects** and **Files**.\n *\n * OpenAPI spec version: 6.7\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { DmError, GetUserInventoryParams, InventoryUserGetResponse } from \"../api-schemas\";\n\nimport { customFetch } from \"../../custom-fetch\";\nimport type { ErrorType } from \"../../custom-fetch\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nexport type getUserInventoryResponse200 = { data: InventoryUserGetResponse; status: 200 };\n\nexport type getUserInventoryResponse401 = { data: void; status: 401 };\n\nexport type getUserInventoryResponse403 = { data: DmError; status: 403 };\n\nexport type getUserInventoryResponseSuccess = getUserInventoryResponse200 & { headers: Headers };\nexport type getUserInventoryResponseError = (\n | getUserInventoryResponse401\n | getUserInventoryResponse403\n) & { headers: Headers };\n\nexport type getUserInventoryResponse =\n | getUserInventoryResponseSuccess\n | getUserInventoryResponseError;\n\nexport const getGetUserInventoryUrl = (params?: GetUserInventoryParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/inventory/user?${stringifiedParams}` : `/inventory/user`;\n};\n\n/**\n * Returns an inventory of users, which includes Projects membership and Datasets they own. An Account Server **Unit** or **Organisation** must be provided (but not both).\n *\n * The caller must also be a member of the provided Unit or Organisation, i.e. you can only query User inventory if you are a member of the corresponding Account Server Unit or Organisation.\n * @summary Get User Inventory\n */\nexport const getUserInventory = async (\n params?: GetUserInventoryParams,\n options?: RequestInit,\n): Promise<getUserInventoryResponse> => {\n return customFetch<getUserInventoryResponse>(getGetUserInventoryUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetUserInventoryQueryKey = (params?: GetUserInventoryParams) => {\n return [\"data-manager\", \"inventory\", \"user\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetUserInventoryQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>\n getUserInventory(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserInventoryQueryResult = NonNullable<Awaited<ReturnType<typeof getUserInventory>>>;\nexport type GetUserInventoryQueryError = ErrorType<void | DmError>;\n\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params: undefined | GetUserInventoryParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n Awaited<ReturnType<typeof getUserInventory>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n Awaited<ReturnType<typeof getUserInventory>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get User Inventory\n */\n\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserInventoryQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return { ...query, queryKey: queryOptions.queryKey };\n}\n\n/**\n * @summary Get User Inventory\n */\nexport const invalidateGetUserInventory = async (\n queryClient: QueryClient,\n params?: GetUserInventoryParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetUserInventoryQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetUserInventorySuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>\n getUserInventory(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserInventorySuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getUserInventory>>\n>;\nexport type GetUserInventorySuspenseQueryError = ErrorType<void | DmError>;\n\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params: undefined | GetUserInventoryParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get User Inventory\n */\n\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserInventorySuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return { ...query, queryKey: queryOptions.queryKey };\n}\n"],"mappings":";;;;;;;;;;;;;AAiDA,MAAa,0BAA0B,WAAoC;CACzE,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EACrD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,mBAAmB,sBAAsB;AACjF;;;;;;;AAQA,MAAa,mBAAmB,OAC9B,QACA,YACsC;CACtC,OAAO,YAAsC,uBAAuB,MAAM,GAAG;EAC3E,GAAG;EACH,QAAQ;CACV,CAAC;AACH;AAEA,MAAa,+BAA+B,WAAoC;CAC9E,OAAO;EAAC;EAAgB;EAAa;EAAQ,GAAI,SAAS,CAAC,MAAM,IAAI,CAAC;CAAE;AAC1E;AAEA,MAAa,mCAIX,QACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,4BAA4B,MAAM;CAE7E,MAAM,WAAwE,EAAE,aAC9E,iBAAiB,QAAQ;EAAE;EAAQ,GAAG;CAAe,CAAC;CAExD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AA0DA,SAAgB,oBAId,QACA,SAIA,aACgF;CAChF,MAAM,eAAe,gCAAgC,QAAQ,OAAO;CAMpE,OAAO;EAAE,GAJK,SAAS,cAAc,WAIrB;EAAG,UAAU,aAAa;CAAS;AACrD;;;;AAKA,MAAa,6BAA6B,OACxC,aACA,QACA,YACyB;CACzB,MAAM,YAAY,kBAAkB,EAAE,UAAU,4BAA4B,MAAM,EAAE,GAAG,OAAO;CAE9F,OAAO;AACT;AAEA,MAAa,2CAIX,QACA,YAMG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,4BAA4B,MAAM;CAE7E,MAAM,WAAwE,EAAE,aAC9E,iBAAiB,QAAQ;EAAE;EAAQ,GAAG;CAAe,CAAC;CAExD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AAkDA,SAAgB,4BAId,QACA,SAMA,aACwF;CACxF,MAAM,eAAe,wCAAwC,QAAQ,OAAO;CAO5E,OAAO;EAAE,GALK,iBAAiB,cAAc,WAK7B;EAAG,UAAU,aAAa;CAAS;AACrD"}
|
|
1
|
+
{"version":3,"file":"inventory.fetch.js","names":[],"sources":["../../../src/api/inventory/inventory.fetch.ts"],"sourcesContent":["/**\n * Generated by orval v8.22.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n *\n * A service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications**, **Jobs**, and **Workflows** using **Projects** and **Files**.\n *\n * OpenAPI spec version: 6.7\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { DmError, GetUserInventoryParams, InventoryUserGetResponse } from \"../api-schemas\";\n\nimport { customFetch } from \"../../custom-fetch\";\nimport type { ErrorType } from \"../../custom-fetch\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === \"queryKey\") continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\nexport type getUserInventoryResponse200 = { data: InventoryUserGetResponse; status: 200 };\n\nexport type getUserInventoryResponse401 = { data: void; status: 401 };\n\nexport type getUserInventoryResponse403 = { data: DmError; status: 403 };\n\nexport type getUserInventoryResponseSuccess = getUserInventoryResponse200 & { headers: Headers };\nexport type getUserInventoryResponseError = (\n | getUserInventoryResponse401\n | getUserInventoryResponse403\n) & { headers: Headers };\n\nexport type getUserInventoryResponse =\n | getUserInventoryResponseSuccess\n | getUserInventoryResponseError;\n\nexport const getGetUserInventoryUrl = (params?: GetUserInventoryParams) => {\n const normalizedParams = new URLSearchParams();\n\n Object.entries(params || {}).forEach(([key, value]) => {\n if (value !== undefined) {\n normalizedParams.append(key, value === null ? \"null\" : String(value));\n }\n });\n\n const stringifiedParams = normalizedParams.toString();\n\n return stringifiedParams.length > 0 ? `/inventory/user?${stringifiedParams}` : `/inventory/user`;\n};\n\n/**\n * Returns an inventory of users, which includes Projects membership and Datasets they own. An Account Server **Unit** or **Organisation** must be provided (but not both).\n *\n * The caller must also be a member of the provided Unit or Organisation, i.e. you can only query User inventory if you are a member of the corresponding Account Server Unit or Organisation.\n * @summary Get User Inventory\n */\nexport const getUserInventory = async (\n params?: GetUserInventoryParams,\n options?: RequestInit,\n): Promise<getUserInventoryResponse> => {\n return customFetch<getUserInventoryResponse>(getGetUserInventoryUrl(params), {\n ...options,\n method: \"GET\",\n });\n};\n\nexport const getGetUserInventoryQueryKey = (params?: GetUserInventoryParams) => {\n return [\"data-manager\", \"inventory\", \"user\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetUserInventoryQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>\n getUserInventory(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserInventoryQueryResult = NonNullable<Awaited<ReturnType<typeof getUserInventory>>>;\nexport type GetUserInventoryQueryError = ErrorType<void | DmError>;\n\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params: undefined | GetUserInventoryParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n Awaited<ReturnType<typeof getUserInventory>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n Awaited<ReturnType<typeof getUserInventory>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get User Inventory\n */\n\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserInventoryQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Get User Inventory\n */\nexport const invalidateGetUserInventory = async (\n queryClient: QueryClient,\n params?: GetUserInventoryParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetUserInventoryQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetUserInventorySuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>\n getUserInventory(params, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserInventorySuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getUserInventory>>\n>;\nexport type GetUserInventorySuspenseQueryError = ErrorType<void | DmError>;\n\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params: undefined | GetUserInventoryParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get User Inventory\n */\n\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserInventorySuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n"],"mappings":";;;;;;;;;;;;;AAiCA,MAAM,gBAAqC,OAAU,aAAqC;CACxF,MAAM,SAAS,EAAE,SAAS;CAC1B,KAAK,MAAM,OAAO,OAAO,KAAK,KAAK,GAAG;EAGpC,IAAI,QAAQ,YAAY;EACxB,OAAO,eAAe,QAAQ,KAAK;GACjC,YAAY;GACZ,cAAc;GACd,WAAY,MAAkC;EAChD,CAAC;CACH;CACA,OAAO;AACT;AAkBA,MAAa,0BAA0B,WAAoC;CACzE,MAAM,mBAAmB,IAAI,gBAAgB;CAE7C,OAAO,QAAQ,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,WAAW;EACrD,IAAI,UAAU,KAAA,GACZ,iBAAiB,OAAO,KAAK,UAAU,OAAO,SAAS,OAAO,KAAK,CAAC;CAExE,CAAC;CAED,MAAM,oBAAoB,iBAAiB,SAAS;CAEpD,OAAO,kBAAkB,SAAS,IAAI,mBAAmB,sBAAsB;AACjF;;;;;;;AAQA,MAAa,mBAAmB,OAC9B,QACA,YACsC;CACtC,OAAO,YAAsC,uBAAuB,MAAM,GAAG;EAC3E,GAAG;EACH,QAAQ;CACV,CAAC;AACH;AAEA,MAAa,+BAA+B,WAAoC;CAC9E,OAAO;EAAC;EAAgB;EAAa;EAAQ,GAAI,SAAS,CAAC,MAAM,IAAI,CAAC;CAAE;AAC1E;AAEA,MAAa,mCAIX,QACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,4BAA4B,MAAM;CAE7E,MAAM,WAAwE,EAAE,aAC9E,iBAAiB,QAAQ;EAAE;EAAQ,GAAG;CAAe,CAAC;CAExD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AA0DA,SAAgB,oBAId,QACA,SAIA,aACgF;CAChF,MAAM,eAAe,gCAAgC,QAAQ,OAAO;CAMpE,OAAO,aAJO,SAAS,cAAc,WAIb,GAAG,aAAa,QAAQ;AAClD;;;;AAKA,MAAa,6BAA6B,OACxC,aACA,QACA,YACyB;CACzB,MAAM,YAAY,kBAAkB,EAAE,UAAU,4BAA4B,MAAM,EAAE,GAAG,OAAO;CAE9F,OAAO;AACT;AAEA,MAAa,2CAIX,QACA,YAMG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,4BAA4B,MAAM;CAE7E,MAAM,WAAwE,EAAE,aAC9E,iBAAiB,QAAQ;EAAE;EAAQ,GAAG;CAAe,CAAC;CAExD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AAkDA,SAAgB,4BAId,QACA,SAMA,aACwF;CACxF,MAAM,eAAe,wCAAwC,QAAQ,OAAO;CAO5E,OAAO,aALO,iBAAiB,cAAc,WAKrB,GAAG,aAAa,QAAQ;AAClD"}
|
|
@@ -2,7 +2,7 @@ import { customInstance } from "../../custom-axios.js";
|
|
|
2
2
|
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
3
3
|
//#region src/api/inventory/inventory.ts
|
|
4
4
|
/**
|
|
5
|
-
* Generated by orval v8.
|
|
5
|
+
* Generated by orval v8.22.0 🍺
|
|
6
6
|
* Do not edit manually.
|
|
7
7
|
* Dataset Manager API
|
|
8
8
|
* The Dataset Manager API service.
|
|
@@ -11,6 +11,18 @@ import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
|
11
11
|
*
|
|
12
12
|
* OpenAPI spec version: 6.7
|
|
13
13
|
*/
|
|
14
|
+
const withQueryKey = (query, queryKey) => {
|
|
15
|
+
const result = { queryKey };
|
|
16
|
+
for (const key of Object.keys(query)) {
|
|
17
|
+
if (key === "queryKey") continue;
|
|
18
|
+
Object.defineProperty(result, key, {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
configurable: true,
|
|
21
|
+
get: () => query[key]
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return result;
|
|
25
|
+
};
|
|
14
26
|
/**
|
|
15
27
|
* Returns an inventory of users, which includes Projects membership and Datasets they own. An Account Server **Unit** or **Organisation** must be provided (but not both).
|
|
16
28
|
*
|
|
@@ -48,10 +60,7 @@ const getGetUserInventoryQueryOptions = (params, options) => {
|
|
|
48
60
|
*/
|
|
49
61
|
function useGetUserInventory(params, options, queryClient) {
|
|
50
62
|
const queryOptions = getGetUserInventoryQueryOptions(params, options);
|
|
51
|
-
return
|
|
52
|
-
...useQuery(queryOptions, queryClient),
|
|
53
|
-
queryKey: queryOptions.queryKey
|
|
54
|
-
};
|
|
63
|
+
return withQueryKey(useQuery(queryOptions, queryClient), queryOptions.queryKey);
|
|
55
64
|
}
|
|
56
65
|
/**
|
|
57
66
|
* @summary Get User Inventory
|
|
@@ -75,10 +84,7 @@ const getGetUserInventorySuspenseQueryOptions = (params, options) => {
|
|
|
75
84
|
*/
|
|
76
85
|
function useGetUserInventorySuspense(params, options, queryClient) {
|
|
77
86
|
const queryOptions = getGetUserInventorySuspenseQueryOptions(params, options);
|
|
78
|
-
return
|
|
79
|
-
...useSuspenseQuery(queryOptions, queryClient),
|
|
80
|
-
queryKey: queryOptions.queryKey
|
|
81
|
-
};
|
|
87
|
+
return withQueryKey(useSuspenseQuery(queryOptions, queryClient), queryOptions.queryKey);
|
|
82
88
|
}
|
|
83
89
|
//#endregion
|
|
84
90
|
export { getGetUserInventoryQueryKey, getGetUserInventoryQueryOptions, getGetUserInventorySuspenseQueryOptions, getUserInventory, invalidateGetUserInventory, useGetUserInventory, useGetUserInventorySuspense };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.js","names":[],"sources":["../../../src/api/inventory/inventory.ts"],"sourcesContent":["/**\n * Generated by orval v8.16.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n *\n * A service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications**, **Jobs**, and **Workflows** using **Projects** and **Files**.\n *\n * OpenAPI spec version: 6.7\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { DmError, GetUserInventoryParams, InventoryUserGetResponse } from \"../api-schemas\";\n\nimport { customInstance } from \"../../custom-axios\";\nimport type { ErrorType } from \"../../custom-axios\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Returns an inventory of users, which includes Projects membership and Datasets they own. An Account Server **Unit** or **Organisation** must be provided (but not both).\n *\n * The caller must also be a member of the provided Unit or Organisation, i.e. you can only query User inventory if you are a member of the corresponding Account Server Unit or Organisation.\n * @summary Get User Inventory\n */\nexport const getUserInventory = (\n params?: GetUserInventoryParams,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<InventoryUserGetResponse>(\n { url: `/inventory/user`, method: \"GET\", params, signal },\n options,\n );\n};\n\nexport const getGetUserInventoryQueryKey = (params?: GetUserInventoryParams) => {\n return [\"data-manager\", \"inventory\", \"user\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetUserInventoryQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>\n getUserInventory(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserInventoryQueryResult = NonNullable<Awaited<ReturnType<typeof getUserInventory>>>;\nexport type GetUserInventoryQueryError = ErrorType<void | DmError>;\n\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params: undefined | GetUserInventoryParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n Awaited<ReturnType<typeof getUserInventory>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n Awaited<ReturnType<typeof getUserInventory>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get User Inventory\n */\n\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserInventoryQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return { ...query, queryKey: queryOptions.queryKey };\n}\n\n/**\n * @summary Get User Inventory\n */\nexport const invalidateGetUserInventory = async (\n queryClient: QueryClient,\n params?: GetUserInventoryParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetUserInventoryQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetUserInventorySuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>\n getUserInventory(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserInventorySuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getUserInventory>>\n>;\nexport type GetUserInventorySuspenseQueryError = ErrorType<void | DmError>;\n\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params: undefined | GetUserInventoryParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get User Inventory\n */\n\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserInventorySuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return { ...query, queryKey: queryOptions.queryKey };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAuCA,MAAa,oBACX,QACA,SACA,WACG;CACH,OAAO,eACL;EAAE,KAAK;EAAmB,QAAQ;EAAO;EAAQ;CAAO,GACxD,OACF;AACF;AAEA,MAAa,+BAA+B,WAAoC;CAC9E,OAAO;EAAC;EAAgB;EAAa;EAAQ,GAAI,SAAS,CAAC,MAAM,IAAI,CAAC;CAAE;AAC1E;AAEA,MAAa,mCAIX,QACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,4BAA4B,MAAM;CAE7E,MAAM,WAAwE,EAAE,aAC9E,iBAAiB,QAAQ,gBAAgB,MAAM;CAEjD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AA0DA,SAAgB,oBAId,QACA,SAIA,aACgF;CAChF,MAAM,eAAe,gCAAgC,QAAQ,OAAO;CAMpE,OAAO;EAAE,GAJK,SAAS,cAAc,WAIrB;EAAG,UAAU,aAAa;CAAS;AACrD;;;;AAKA,MAAa,6BAA6B,OACxC,aACA,QACA,YACyB;CACzB,MAAM,YAAY,kBAAkB,EAAE,UAAU,4BAA4B,MAAM,EAAE,GAAG,OAAO;CAE9F,OAAO;AACT;AAEA,MAAa,2CAIX,QACA,YAMG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;CAErE,MAAM,WAAW,cAAc,YAAY,4BAA4B,MAAM;CAE7E,MAAM,WAAwE,EAAE,aAC9E,iBAAiB,QAAQ,gBAAgB,MAAM;CAEjD,OAAO;EAAE;EAAU;EAAS,GAAG;CAAa;AAK9C;;;;AAkDA,SAAgB,4BAId,QACA,SAMA,aACwF;CACxF,MAAM,eAAe,wCAAwC,QAAQ,OAAO;CAO5E,OAAO;EAAE,GALK,iBAAiB,cAAc,WAK7B;EAAG,UAAU,aAAa;CAAS;AACrD"}
|
|
1
|
+
{"version":3,"file":"inventory.js","names":[],"sources":["../../../src/api/inventory/inventory.ts"],"sourcesContent":["/**\n * Generated by orval v8.22.0 🍺\n * Do not edit manually.\n * Dataset Manager API\n * The Dataset Manager API service.\n *\n * A service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications**, **Jobs**, and **Workflows** using **Projects** and **Files**.\n *\n * OpenAPI spec version: 6.7\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { DmError, GetUserInventoryParams, InventoryUserGetResponse } from \"../api-schemas\";\n\nimport { customInstance } from \"../../custom-axios\";\nimport type { ErrorType } from \"../../custom-axios\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\nconst withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKey: K } => {\n const result = { queryKey } as T & { queryKey: K };\n for (const key of Object.keys(query)) {\n // The explicit queryKey always wins, matching the previous\n // `{ ...query, queryKey }` spread where it was set last.\n if (key === \"queryKey\") continue;\n Object.defineProperty(result, key, {\n enumerable: true,\n configurable: true,\n get: () => (query as Record<string, unknown>)[key],\n });\n }\n return result;\n};\n\n/**\n * Returns an inventory of users, which includes Projects membership and Datasets they own. An Account Server **Unit** or **Organisation** must be provided (but not both).\n *\n * The caller must also be a member of the provided Unit or Organisation, i.e. you can only query User inventory if you are a member of the corresponding Account Server Unit or Organisation.\n * @summary Get User Inventory\n */\nexport const getUserInventory = (\n params?: GetUserInventoryParams,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<InventoryUserGetResponse>(\n { url: `/inventory/user`, method: \"GET\", params, signal },\n options,\n );\n};\n\nexport const getGetUserInventoryQueryKey = (params?: GetUserInventoryParams) => {\n return [\"data-manager\", \"inventory\", \"user\", ...(params ? [params] : [])] as const;\n};\n\nexport const getGetUserInventoryQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>\n getUserInventory(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserInventoryQueryResult = NonNullable<Awaited<ReturnType<typeof getUserInventory>>>;\nexport type GetUserInventoryQueryError = ErrorType<void | DmError>;\n\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params: undefined | GetUserInventoryParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n Awaited<ReturnType<typeof getUserInventory>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n Awaited<ReturnType<typeof getUserInventory>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get User Inventory\n */\n\nexport function useGetUserInventory<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserInventoryQueryOptions(params, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n\n/**\n * @summary Get User Inventory\n */\nexport const invalidateGetUserInventory = async (\n queryClient: QueryClient,\n params?: GetUserInventoryParams,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetUserInventoryQueryKey(params) }, options);\n\n return queryClient;\n};\n\nexport const getGetUserInventorySuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserInventoryQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getUserInventory>>> = ({ signal }) =>\n getUserInventory(params, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getUserInventory>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetUserInventorySuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getUserInventory>>\n>;\nexport type GetUserInventorySuspenseQueryError = ErrorType<void | DmError>;\n\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params: undefined | GetUserInventoryParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Get User Inventory\n */\n\nexport function useGetUserInventorySuspense<\n TData = Awaited<ReturnType<typeof getUserInventory>>,\n TError = ErrorType<void | DmError>,\n>(\n params?: GetUserInventoryParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getUserInventory>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = getGetUserInventorySuspenseQueryOptions(params, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n return withQueryKey(query, queryOptions.queryKey);\n}\n"],"mappings":";;;;;;;;;;;;;AAiCA,MAAM,gBAAqC,OAAU,aAAqC;CACxF,MAAM,SAAS,EAAE,SAAS;CAC1B,KAAK,MAAM,OAAO,OAAO,KAAK,KAAK,GAAG;EAGpC,IAAI,QAAQ,YAAY;EACxB,OAAO,eAAe,QAAQ,KAAK;GACjC,YAAY;GACZ,cAAc;GACd,WAAY,MAAkC;EAChD,CAAC;CACH;CACA,OAAO;AACT;;;;;;;AAQA,MAAa,oBACX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