@osdk/faux 0.1.0-beta.1
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/CHANGELOG.md +1047 -0
- package/build/browser/BaseError.js +21 -0
- package/build/browser/BaseError.js.map +1 -0
- package/build/browser/FauxFoundry/BaseOsdkObjectType.js +2 -0
- package/build/browser/FauxFoundry/BaseOsdkObjectType.js.map +1 -0
- package/build/browser/FauxFoundry/BaseServerObject.js +30 -0
- package/build/browser/FauxFoundry/BaseServerObject.js.map +1 -0
- package/build/browser/FauxFoundry/FauxActionImpl.js +2 -0
- package/build/browser/FauxFoundry/FauxActionImpl.js.map +1 -0
- package/build/browser/FauxFoundry/FauxAttachmentStore.js +60 -0
- package/build/browser/FauxFoundry/FauxAttachmentStore.js.map +1 -0
- package/build/browser/FauxFoundry/FauxDataStore.js +470 -0
- package/build/browser/FauxFoundry/FauxDataStore.js.map +1 -0
- package/build/browser/FauxFoundry/FauxDataStore.test.js +190 -0
- package/build/browser/FauxFoundry/FauxDataStore.test.js.map +1 -0
- package/build/browser/FauxFoundry/FauxDataStoreBatch.js +125 -0
- package/build/browser/FauxFoundry/FauxDataStoreBatch.js.map +1 -0
- package/build/browser/FauxFoundry/FauxFoundry.js +87 -0
- package/build/browser/FauxFoundry/FauxFoundry.js.map +1 -0
- package/build/browser/FauxFoundry/FauxOntology.js +228 -0
- package/build/browser/FauxFoundry/FauxOntology.js.map +1 -0
- package/build/browser/FauxFoundry/FauxQueryImpl.js +2 -0
- package/build/browser/FauxFoundry/FauxQueryImpl.js.map +1 -0
- package/build/browser/FauxFoundry/ObjectLocator.js +29 -0
- package/build/browser/FauxFoundry/ObjectLocator.js.map +1 -0
- package/build/browser/FauxFoundry/filterObjects.js +122 -0
- package/build/browser/FauxFoundry/filterObjects.js.map +1 -0
- package/build/browser/FauxFoundry/filterTimeSeriesData.js +70 -0
- package/build/browser/FauxFoundry/filterTimeSeriesData.js.map +1 -0
- package/build/browser/FauxFoundry/filterTimeSeriesData.test.js +116 -0
- package/build/browser/FauxFoundry/filterTimeSeriesData.test.js.map +1 -0
- package/build/browser/FauxFoundry/getObjectsFromSet.js +217 -0
- package/build/browser/FauxFoundry/getObjectsFromSet.js.map +1 -0
- package/build/browser/FauxFoundry/typeHelpers/ActionTypeBuilder.js +64 -0
- package/build/browser/FauxFoundry/typeHelpers/ActionTypeBuilder.js.map +1 -0
- package/build/browser/FauxFoundry/typeHelpers/JustProps.js +2 -0
- package/build/browser/FauxFoundry/typeHelpers/JustProps.js.map +1 -0
- package/build/browser/FauxFoundry/typeHelpers/TH_ActionDefinition.js +2 -0
- package/build/browser/FauxFoundry/typeHelpers/TH_ActionDefinition.js.map +1 -0
- package/build/browser/FauxFoundry/typeHelpers/TH_ActionParameterV2.js +25 -0
- package/build/browser/FauxFoundry/typeHelpers/TH_ActionParameterV2.js.map +1 -0
- package/build/browser/FauxFoundry/typeHelpers/TH_ActionTypeV2.js +35 -0
- package/build/browser/FauxFoundry/typeHelpers/TH_ActionTypeV2.js.map +1 -0
- package/build/browser/FauxFoundry/typeHelpers/TH_ApplyActionRequestV2.js +2 -0
- package/build/browser/FauxFoundry/typeHelpers/TH_ApplyActionRequestV2.js.map +1 -0
- package/build/browser/FauxFoundry/typeHelpers/TH_ObjectTypeFullMetadata.js +2 -0
- package/build/browser/FauxFoundry/typeHelpers/TH_ObjectTypeFullMetadata.js.map +1 -0
- package/build/browser/FauxFoundry/typeHelpers/ToObjectTypeDefinition.js +2 -0
- package/build/browser/FauxFoundry/typeHelpers/ToObjectTypeDefinition.js.map +1 -0
- package/build/browser/FauxFoundry/typeHelpers/index.js +20 -0
- package/build/browser/FauxFoundry/typeHelpers/index.js.map +1 -0
- package/build/browser/FauxFoundry/validateAction.js +245 -0
- package/build/browser/FauxFoundry/validateAction.js.map +1 -0
- package/build/browser/defaultOntologyForConjure.js +25 -0
- package/build/browser/defaultOntologyForConjure.js.map +1 -0
- package/build/browser/defaultOntologyMetadata.js +23 -0
- package/build/browser/defaultOntologyMetadata.js.map +1 -0
- package/build/browser/errors.js +134 -0
- package/build/browser/errors.js.map +1 -0
- package/build/browser/filterObjects.js +86 -0
- package/build/browser/filterObjects.js.map +1 -0
- package/build/browser/handlers/authHandlerMiddleware.js +41 -0
- package/build/browser/handlers/authHandlerMiddleware.js.map +1 -0
- package/build/browser/handlers/createActionHandlers.js +49 -0
- package/build/browser/handlers/createActionHandlers.js.map +1 -0
- package/build/browser/handlers/createAttachmentHandlers.js +88 -0
- package/build/browser/handlers/createAttachmentHandlers.js.map +1 -0
- package/build/browser/handlers/createFauxFoundryHandlers.js +29 -0
- package/build/browser/handlers/createFauxFoundryHandlers.js.map +1 -0
- package/build/browser/handlers/createLoadObjectsHandlers.js +91 -0
- package/build/browser/handlers/createLoadObjectsHandlers.js.map +1 -0
- package/build/browser/handlers/createMediaRefHandlers.js +70 -0
- package/build/browser/handlers/createMediaRefHandlers.js.map +1 -0
- package/build/browser/handlers/createMultipassServerHandlers.js +67 -0
- package/build/browser/handlers/createMultipassServerHandlers.js.map +1 -0
- package/build/browser/handlers/createObjectSetHandlers.js +50 -0
- package/build/browser/handlers/createObjectSetHandlers.js.map +1 -0
- package/build/browser/handlers/createOntologyHandlers.js +122 -0
- package/build/browser/handlers/createOntologyHandlers.js.map +1 -0
- package/build/browser/handlers/createQueryHandlers.js +38 -0
- package/build/browser/handlers/createQueryHandlers.js.map +1 -0
- package/build/browser/handlers/createTimeseriesAndGeotimeHandlers.js +95 -0
- package/build/browser/handlers/createTimeseriesAndGeotimeHandlers.js.map +1 -0
- package/build/browser/handlers/util/getPaginationParams.js +33 -0
- package/build/browser/handlers/util/getPaginationParams.js.map +1 -0
- package/build/browser/handlers/util/handleOpenApiCall.js +85 -0
- package/build/browser/handlers/util/handleOpenApiCall.js.map +1 -0
- package/build/browser/handlers/util/loadAll.js +24 -0
- package/build/browser/handlers/util/loadAll.js.map +1 -0
- package/build/browser/handlers/util/pageThroughResponseSearchParams.js +39 -0
- package/build/browser/handlers/util/pageThroughResponseSearchParams.js.map +1 -0
- package/build/browser/handlers/util/requireParam.js +29 -0
- package/build/browser/handlers/util/requireParam.js.map +1 -0
- package/build/browser/handlers/util/requireSearchParams.js +29 -0
- package/build/browser/handlers/util/requireSearchParams.js.map +1 -0
- package/build/browser/index.js +29 -0
- package/build/browser/index.js.map +1 -0
- package/build/browser/mock/OntologiesV2/ActionTypesV2.js +21 -0
- package/build/browser/mock/OntologiesV2/ActionTypesV2.js.map +1 -0
- package/build/browser/mock/OntologiesV2/Actions.js +21 -0
- package/build/browser/mock/OntologiesV2/Actions.js.map +1 -0
- package/build/browser/mock/OntologiesV2/AttachmentPropertiesV2.js +21 -0
- package/build/browser/mock/OntologiesV2/AttachmentPropertiesV2.js.map +1 -0
- package/build/browser/mock/OntologiesV2/Attachments.js +22 -0
- package/build/browser/mock/OntologiesV2/Attachments.js.map +1 -0
- package/build/browser/mock/OntologiesV2/LinkedObjectsV2.js +21 -0
- package/build/browser/mock/OntologiesV2/LinkedObjectsV2.js.map +1 -0
- package/build/browser/mock/OntologiesV2/MediaReferenceProperties.js +22 -0
- package/build/browser/mock/OntologiesV2/MediaReferenceProperties.js.map +1 -0
- package/build/browser/mock/OntologiesV2/ObjectTypesV2.js +24 -0
- package/build/browser/mock/OntologiesV2/ObjectTypesV2.js.map +1 -0
- package/build/browser/mock/OntologiesV2/OntologiesV2.js +27 -0
- package/build/browser/mock/OntologiesV2/OntologiesV2.js.map +1 -0
- package/build/browser/mock/OntologiesV2/OntologyInterfaces.js +21 -0
- package/build/browser/mock/OntologiesV2/OntologyInterfaces.js.map +1 -0
- package/build/browser/mock/OntologiesV2/OntologyObjectSets.js +22 -0
- package/build/browser/mock/OntologiesV2/OntologyObjectSets.js.map +1 -0
- package/build/browser/mock/OntologiesV2/OntologyObjectsV2.js +21 -0
- package/build/browser/mock/OntologiesV2/OntologyObjectsV2.js.map +1 -0
- package/build/browser/mock/OntologiesV2/Queries.js +20 -0
- package/build/browser/mock/OntologiesV2/Queries.js.map +1 -0
- package/build/browser/mock/OntologiesV2/QueryTypes.js +21 -0
- package/build/browser/mock/OntologiesV2/QueryTypes.js.map +1 -0
- package/build/browser/mock/OntologiesV2/TimeSeriesPropertiesV2.js +22 -0
- package/build/browser/mock/OntologiesV2/TimeSeriesPropertiesV2.js.map +1 -0
- package/build/browser/mock/OntologiesV2/TimeSeriesValueBankProperties.js +21 -0
- package/build/browser/mock/OntologiesV2/TimeSeriesValueBankProperties.js.map +1 -0
- package/build/browser/mock/OntologiesV2/index.js +32 -0
- package/build/browser/mock/OntologiesV2/index.js.map +1 -0
- package/build/browser/mock/index.js +18 -0
- package/build/browser/mock/index.js.map +1 -0
- package/build/browser/withoutRid.js +24 -0
- package/build/browser/withoutRid.js.map +1 -0
- package/build/cjs/index.cjs +2983 -0
- package/build/cjs/index.cjs.map +1 -0
- package/build/cjs/index.d.cts +562 -0
- package/build/esm/BaseError.js +21 -0
- package/build/esm/BaseError.js.map +1 -0
- package/build/esm/FauxFoundry/BaseOsdkObjectType.js +2 -0
- package/build/esm/FauxFoundry/BaseOsdkObjectType.js.map +1 -0
- package/build/esm/FauxFoundry/BaseServerObject.js +30 -0
- package/build/esm/FauxFoundry/BaseServerObject.js.map +1 -0
- package/build/esm/FauxFoundry/FauxActionImpl.js +2 -0
- package/build/esm/FauxFoundry/FauxActionImpl.js.map +1 -0
- package/build/esm/FauxFoundry/FauxAttachmentStore.js +60 -0
- package/build/esm/FauxFoundry/FauxAttachmentStore.js.map +1 -0
- package/build/esm/FauxFoundry/FauxDataStore.js +470 -0
- package/build/esm/FauxFoundry/FauxDataStore.js.map +1 -0
- package/build/esm/FauxFoundry/FauxDataStore.test.js +190 -0
- package/build/esm/FauxFoundry/FauxDataStore.test.js.map +1 -0
- package/build/esm/FauxFoundry/FauxDataStoreBatch.js +125 -0
- package/build/esm/FauxFoundry/FauxDataStoreBatch.js.map +1 -0
- package/build/esm/FauxFoundry/FauxFoundry.js +87 -0
- package/build/esm/FauxFoundry/FauxFoundry.js.map +1 -0
- package/build/esm/FauxFoundry/FauxOntology.js +228 -0
- package/build/esm/FauxFoundry/FauxOntology.js.map +1 -0
- package/build/esm/FauxFoundry/FauxQueryImpl.js +2 -0
- package/build/esm/FauxFoundry/FauxQueryImpl.js.map +1 -0
- package/build/esm/FauxFoundry/ObjectLocator.js +29 -0
- package/build/esm/FauxFoundry/ObjectLocator.js.map +1 -0
- package/build/esm/FauxFoundry/filterObjects.js +122 -0
- package/build/esm/FauxFoundry/filterObjects.js.map +1 -0
- package/build/esm/FauxFoundry/filterTimeSeriesData.js +70 -0
- package/build/esm/FauxFoundry/filterTimeSeriesData.js.map +1 -0
- package/build/esm/FauxFoundry/filterTimeSeriesData.test.js +116 -0
- package/build/esm/FauxFoundry/filterTimeSeriesData.test.js.map +1 -0
- package/build/esm/FauxFoundry/getObjectsFromSet.js +217 -0
- package/build/esm/FauxFoundry/getObjectsFromSet.js.map +1 -0
- package/build/esm/FauxFoundry/typeHelpers/ActionTypeBuilder.js +64 -0
- package/build/esm/FauxFoundry/typeHelpers/ActionTypeBuilder.js.map +1 -0
- package/build/esm/FauxFoundry/typeHelpers/JustProps.js +2 -0
- package/build/esm/FauxFoundry/typeHelpers/JustProps.js.map +1 -0
- package/build/esm/FauxFoundry/typeHelpers/TH_ActionDefinition.js +2 -0
- package/build/esm/FauxFoundry/typeHelpers/TH_ActionDefinition.js.map +1 -0
- package/build/esm/FauxFoundry/typeHelpers/TH_ActionParameterV2.js +25 -0
- package/build/esm/FauxFoundry/typeHelpers/TH_ActionParameterV2.js.map +1 -0
- package/build/esm/FauxFoundry/typeHelpers/TH_ActionTypeV2.js +35 -0
- package/build/esm/FauxFoundry/typeHelpers/TH_ActionTypeV2.js.map +1 -0
- package/build/esm/FauxFoundry/typeHelpers/TH_ApplyActionRequestV2.js +2 -0
- package/build/esm/FauxFoundry/typeHelpers/TH_ApplyActionRequestV2.js.map +1 -0
- package/build/esm/FauxFoundry/typeHelpers/TH_ObjectTypeFullMetadata.js +2 -0
- package/build/esm/FauxFoundry/typeHelpers/TH_ObjectTypeFullMetadata.js.map +1 -0
- package/build/esm/FauxFoundry/typeHelpers/ToObjectTypeDefinition.js +2 -0
- package/build/esm/FauxFoundry/typeHelpers/ToObjectTypeDefinition.js.map +1 -0
- package/build/esm/FauxFoundry/typeHelpers/index.js +20 -0
- package/build/esm/FauxFoundry/typeHelpers/index.js.map +1 -0
- package/build/esm/FauxFoundry/validateAction.js +245 -0
- package/build/esm/FauxFoundry/validateAction.js.map +1 -0
- package/build/esm/defaultOntologyForConjure.js +25 -0
- package/build/esm/defaultOntologyForConjure.js.map +1 -0
- package/build/esm/defaultOntologyMetadata.js +23 -0
- package/build/esm/defaultOntologyMetadata.js.map +1 -0
- package/build/esm/errors.js +134 -0
- package/build/esm/errors.js.map +1 -0
- package/build/esm/filterObjects.js +86 -0
- package/build/esm/filterObjects.js.map +1 -0
- package/build/esm/handlers/authHandlerMiddleware.js +41 -0
- package/build/esm/handlers/authHandlerMiddleware.js.map +1 -0
- package/build/esm/handlers/createActionHandlers.js +49 -0
- package/build/esm/handlers/createActionHandlers.js.map +1 -0
- package/build/esm/handlers/createAttachmentHandlers.js +88 -0
- package/build/esm/handlers/createAttachmentHandlers.js.map +1 -0
- package/build/esm/handlers/createFauxFoundryHandlers.js +29 -0
- package/build/esm/handlers/createFauxFoundryHandlers.js.map +1 -0
- package/build/esm/handlers/createLoadObjectsHandlers.js +91 -0
- package/build/esm/handlers/createLoadObjectsHandlers.js.map +1 -0
- package/build/esm/handlers/createMediaRefHandlers.js +70 -0
- package/build/esm/handlers/createMediaRefHandlers.js.map +1 -0
- package/build/esm/handlers/createMultipassServerHandlers.js +67 -0
- package/build/esm/handlers/createMultipassServerHandlers.js.map +1 -0
- package/build/esm/handlers/createObjectSetHandlers.js +50 -0
- package/build/esm/handlers/createObjectSetHandlers.js.map +1 -0
- package/build/esm/handlers/createOntologyHandlers.js +122 -0
- package/build/esm/handlers/createOntologyHandlers.js.map +1 -0
- package/build/esm/handlers/createQueryHandlers.js +38 -0
- package/build/esm/handlers/createQueryHandlers.js.map +1 -0
- package/build/esm/handlers/createTimeseriesAndGeotimeHandlers.js +95 -0
- package/build/esm/handlers/createTimeseriesAndGeotimeHandlers.js.map +1 -0
- package/build/esm/handlers/util/getPaginationParams.js +33 -0
- package/build/esm/handlers/util/getPaginationParams.js.map +1 -0
- package/build/esm/handlers/util/handleOpenApiCall.js +85 -0
- package/build/esm/handlers/util/handleOpenApiCall.js.map +1 -0
- package/build/esm/handlers/util/loadAll.js +24 -0
- package/build/esm/handlers/util/loadAll.js.map +1 -0
- package/build/esm/handlers/util/pageThroughResponseSearchParams.js +39 -0
- package/build/esm/handlers/util/pageThroughResponseSearchParams.js.map +1 -0
- package/build/esm/handlers/util/requireParam.js +29 -0
- package/build/esm/handlers/util/requireParam.js.map +1 -0
- package/build/esm/handlers/util/requireSearchParams.js +29 -0
- package/build/esm/handlers/util/requireSearchParams.js.map +1 -0
- package/build/esm/index.js +29 -0
- package/build/esm/index.js.map +1 -0
- package/build/esm/mock/OntologiesV2/ActionTypesV2.js +21 -0
- package/build/esm/mock/OntologiesV2/ActionTypesV2.js.map +1 -0
- package/build/esm/mock/OntologiesV2/Actions.js +21 -0
- package/build/esm/mock/OntologiesV2/Actions.js.map +1 -0
- package/build/esm/mock/OntologiesV2/AttachmentPropertiesV2.js +21 -0
- package/build/esm/mock/OntologiesV2/AttachmentPropertiesV2.js.map +1 -0
- package/build/esm/mock/OntologiesV2/Attachments.js +22 -0
- package/build/esm/mock/OntologiesV2/Attachments.js.map +1 -0
- package/build/esm/mock/OntologiesV2/LinkedObjectsV2.js +21 -0
- package/build/esm/mock/OntologiesV2/LinkedObjectsV2.js.map +1 -0
- package/build/esm/mock/OntologiesV2/MediaReferenceProperties.js +22 -0
- package/build/esm/mock/OntologiesV2/MediaReferenceProperties.js.map +1 -0
- package/build/esm/mock/OntologiesV2/ObjectTypesV2.js +24 -0
- package/build/esm/mock/OntologiesV2/ObjectTypesV2.js.map +1 -0
- package/build/esm/mock/OntologiesV2/OntologiesV2.js +27 -0
- package/build/esm/mock/OntologiesV2/OntologiesV2.js.map +1 -0
- package/build/esm/mock/OntologiesV2/OntologyInterfaces.js +21 -0
- package/build/esm/mock/OntologiesV2/OntologyInterfaces.js.map +1 -0
- package/build/esm/mock/OntologiesV2/OntologyObjectSets.js +22 -0
- package/build/esm/mock/OntologiesV2/OntologyObjectSets.js.map +1 -0
- package/build/esm/mock/OntologiesV2/OntologyObjectsV2.js +21 -0
- package/build/esm/mock/OntologiesV2/OntologyObjectsV2.js.map +1 -0
- package/build/esm/mock/OntologiesV2/Queries.js +20 -0
- package/build/esm/mock/OntologiesV2/Queries.js.map +1 -0
- package/build/esm/mock/OntologiesV2/QueryTypes.js +21 -0
- package/build/esm/mock/OntologiesV2/QueryTypes.js.map +1 -0
- package/build/esm/mock/OntologiesV2/TimeSeriesPropertiesV2.js +22 -0
- package/build/esm/mock/OntologiesV2/TimeSeriesPropertiesV2.js.map +1 -0
- package/build/esm/mock/OntologiesV2/TimeSeriesValueBankProperties.js +21 -0
- package/build/esm/mock/OntologiesV2/TimeSeriesValueBankProperties.js.map +1 -0
- package/build/esm/mock/OntologiesV2/index.js +32 -0
- package/build/esm/mock/OntologiesV2/index.js.map +1 -0
- package/build/esm/mock/index.js +18 -0
- package/build/esm/mock/index.js.map +1 -0
- package/build/esm/withoutRid.js +24 -0
- package/build/esm/withoutRid.js.map +1 -0
- package/build/types/BaseError.d.ts +7 -0
- package/build/types/BaseError.d.ts.map +1 -0
- package/build/types/FauxFoundry/BaseOsdkObjectType.d.ts +5 -0
- package/build/types/FauxFoundry/BaseOsdkObjectType.d.ts.map +1 -0
- package/build/types/FauxFoundry/BaseServerObject.d.ts +18 -0
- package/build/types/FauxFoundry/BaseServerObject.d.ts.map +1 -0
- package/build/types/FauxFoundry/FauxActionImpl.d.ts +8 -0
- package/build/types/FauxFoundry/FauxActionImpl.d.ts.map +1 -0
- package/build/types/FauxFoundry/FauxAttachmentStore.d.ts +10 -0
- package/build/types/FauxFoundry/FauxAttachmentStore.d.ts.map +1 -0
- package/build/types/FauxFoundry/FauxDataStore.d.ts +70 -0
- package/build/types/FauxFoundry/FauxDataStore.d.ts.map +1 -0
- package/build/types/FauxFoundry/FauxDataStore.test.d.ts +1 -0
- package/build/types/FauxFoundry/FauxDataStore.test.d.ts.map +1 -0
- package/build/types/FauxFoundry/FauxDataStoreBatch.d.ts +22 -0
- package/build/types/FauxFoundry/FauxDataStoreBatch.d.ts.map +1 -0
- package/build/types/FauxFoundry/FauxFoundry.d.ts +25 -0
- package/build/types/FauxFoundry/FauxFoundry.d.ts.map +1 -0
- package/build/types/FauxFoundry/FauxOntology.d.ts +39 -0
- package/build/types/FauxFoundry/FauxOntology.d.ts.map +1 -0
- package/build/types/FauxFoundry/FauxQueryImpl.d.ts +5 -0
- package/build/types/FauxFoundry/FauxQueryImpl.d.ts.map +1 -0
- package/build/types/FauxFoundry/ObjectLocator.d.ts +11 -0
- package/build/types/FauxFoundry/ObjectLocator.d.ts.map +1 -0
- package/build/types/FauxFoundry/filterObjects.d.ts +3 -0
- package/build/types/FauxFoundry/filterObjects.d.ts.map +1 -0
- package/build/types/FauxFoundry/filterTimeSeriesData.d.ts +2 -0
- package/build/types/FauxFoundry/filterTimeSeriesData.d.ts.map +1 -0
- package/build/types/FauxFoundry/filterTimeSeriesData.test.d.ts +1 -0
- package/build/types/FauxFoundry/filterTimeSeriesData.test.d.ts.map +1 -0
- package/build/types/FauxFoundry/getObjectsFromSet.d.ts +6 -0
- package/build/types/FauxFoundry/getObjectsFromSet.d.ts.map +1 -0
- package/build/types/FauxFoundry/typeHelpers/ActionTypeBuilder.d.ts +27 -0
- package/build/types/FauxFoundry/typeHelpers/ActionTypeBuilder.d.ts.map +1 -0
- package/build/types/FauxFoundry/typeHelpers/JustProps.d.ts +4 -0
- package/build/types/FauxFoundry/typeHelpers/JustProps.d.ts.map +1 -0
- package/build/types/FauxFoundry/typeHelpers/TH_ActionDefinition.d.ts +43 -0
- package/build/types/FauxFoundry/typeHelpers/TH_ActionDefinition.d.ts.map +1 -0
- package/build/types/FauxFoundry/typeHelpers/TH_ActionParameterV2.d.ts +15 -0
- package/build/types/FauxFoundry/typeHelpers/TH_ActionParameterV2.d.ts.map +1 -0
- package/build/types/FauxFoundry/typeHelpers/TH_ActionTypeV2.d.ts +8 -0
- package/build/types/FauxFoundry/typeHelpers/TH_ActionTypeV2.d.ts.map +1 -0
- package/build/types/FauxFoundry/typeHelpers/TH_ApplyActionRequestV2.d.ts +24 -0
- package/build/types/FauxFoundry/typeHelpers/TH_ApplyActionRequestV2.d.ts.map +1 -0
- package/build/types/FauxFoundry/typeHelpers/TH_ObjectTypeFullMetadata.d.ts +18 -0
- package/build/types/FauxFoundry/typeHelpers/TH_ObjectTypeFullMetadata.d.ts.map +1 -0
- package/build/types/FauxFoundry/typeHelpers/ToObjectTypeDefinition.d.ts +12 -0
- package/build/types/FauxFoundry/typeHelpers/ToObjectTypeDefinition.d.ts.map +1 -0
- package/build/types/FauxFoundry/typeHelpers/index.d.ts +10 -0
- package/build/types/FauxFoundry/typeHelpers/index.d.ts.map +1 -0
- package/build/types/FauxFoundry/validateAction.d.ts +9 -0
- package/build/types/FauxFoundry/validateAction.d.ts.map +1 -0
- package/build/types/defaultOntologyForConjure.d.ts +7 -0
- package/build/types/defaultOntologyForConjure.d.ts.map +1 -0
- package/build/types/defaultOntologyMetadata.d.ts +2 -0
- package/build/types/defaultOntologyMetadata.d.ts.map +1 -0
- package/build/types/errors.d.ts +14 -0
- package/build/types/errors.d.ts.map +1 -0
- package/build/types/filterObjects.d.ts +8 -0
- package/build/types/filterObjects.d.ts.map +1 -0
- package/build/types/handlers/authHandlerMiddleware.d.ts +5 -0
- package/build/types/handlers/authHandlerMiddleware.d.ts.map +1 -0
- package/build/types/handlers/createActionHandlers.d.ts +3 -0
- package/build/types/handlers/createActionHandlers.d.ts.map +1 -0
- package/build/types/handlers/createAttachmentHandlers.d.ts +2 -0
- package/build/types/handlers/createAttachmentHandlers.d.ts.map +1 -0
- package/build/types/handlers/createFauxFoundryHandlers.d.ts +4 -0
- package/build/types/handlers/createFauxFoundryHandlers.d.ts.map +1 -0
- package/build/types/handlers/createLoadObjectsHandlers.d.ts +2 -0
- package/build/types/handlers/createLoadObjectsHandlers.d.ts.map +1 -0
- package/build/types/handlers/createMediaRefHandlers.d.ts +2 -0
- package/build/types/handlers/createMediaRefHandlers.d.ts.map +1 -0
- package/build/types/handlers/createMultipassServerHandlers.d.ts +2 -0
- package/build/types/handlers/createMultipassServerHandlers.d.ts.map +1 -0
- package/build/types/handlers/createObjectSetHandlers.d.ts +3 -0
- package/build/types/handlers/createObjectSetHandlers.d.ts.map +1 -0
- package/build/types/handlers/createOntologyHandlers.d.ts +4 -0
- package/build/types/handlers/createOntologyHandlers.d.ts.map +1 -0
- package/build/types/handlers/createQueryHandlers.d.ts +2 -0
- package/build/types/handlers/createQueryHandlers.d.ts.map +1 -0
- package/build/types/handlers/createTimeseriesAndGeotimeHandlers.d.ts +2 -0
- package/build/types/handlers/createTimeseriesAndGeotimeHandlers.d.ts.map +1 -0
- package/build/types/handlers/util/getPaginationParams.d.ts +11 -0
- package/build/types/handlers/util/getPaginationParams.d.ts.map +1 -0
- package/build/types/handlers/util/handleOpenApiCall.d.ts +49 -0
- package/build/types/handlers/util/handleOpenApiCall.d.ts.map +1 -0
- package/build/types/handlers/util/loadAll.d.ts +1 -0
- package/build/types/handlers/util/loadAll.d.ts.map +1 -0
- package/build/types/handlers/util/pageThroughResponseSearchParams.d.ts +20 -0
- package/build/types/handlers/util/pageThroughResponseSearchParams.d.ts.map +1 -0
- package/build/types/handlers/util/requireParam.d.ts +8 -0
- package/build/types/handlers/util/requireParam.d.ts.map +1 -0
- package/build/types/handlers/util/requireSearchParams.d.ts +2 -0
- package/build/types/handlers/util/requireSearchParams.d.ts.map +1 -0
- package/build/types/index.d.ts +14 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/mock/OntologiesV2/ActionTypesV2.d.ts +4 -0
- package/build/types/mock/OntologiesV2/ActionTypesV2.d.ts.map +1 -0
- package/build/types/mock/OntologiesV2/Actions.d.ts +4 -0
- package/build/types/mock/OntologiesV2/Actions.d.ts.map +1 -0
- package/build/types/mock/OntologiesV2/AttachmentPropertiesV2.d.ts +4 -0
- package/build/types/mock/OntologiesV2/AttachmentPropertiesV2.d.ts.map +1 -0
- package/build/types/mock/OntologiesV2/Attachments.d.ts +5 -0
- package/build/types/mock/OntologiesV2/Attachments.d.ts.map +1 -0
- package/build/types/mock/OntologiesV2/LinkedObjectsV2.d.ts +4 -0
- package/build/types/mock/OntologiesV2/LinkedObjectsV2.d.ts.map +1 -0
- package/build/types/mock/OntologiesV2/MediaReferenceProperties.d.ts +5 -0
- package/build/types/mock/OntologiesV2/MediaReferenceProperties.d.ts.map +1 -0
- package/build/types/mock/OntologiesV2/ObjectTypesV2.d.ts +7 -0
- package/build/types/mock/OntologiesV2/ObjectTypesV2.d.ts.map +1 -0
- package/build/types/mock/OntologiesV2/OntologiesV2.d.ts +9 -0
- package/build/types/mock/OntologiesV2/OntologiesV2.d.ts.map +1 -0
- package/build/types/mock/OntologiesV2/OntologyInterfaces.d.ts +4 -0
- package/build/types/mock/OntologiesV2/OntologyInterfaces.d.ts.map +1 -0
- package/build/types/mock/OntologiesV2/OntologyObjectSets.d.ts +5 -0
- package/build/types/mock/OntologiesV2/OntologyObjectSets.d.ts.map +1 -0
- package/build/types/mock/OntologiesV2/OntologyObjectsV2.d.ts +4 -0
- package/build/types/mock/OntologiesV2/OntologyObjectsV2.d.ts.map +1 -0
- package/build/types/mock/OntologiesV2/Queries.d.ts +3 -0
- package/build/types/mock/OntologiesV2/Queries.d.ts.map +1 -0
- package/build/types/mock/OntologiesV2/QueryTypes.d.ts +4 -0
- package/build/types/mock/OntologiesV2/QueryTypes.d.ts.map +1 -0
- package/build/types/mock/OntologiesV2/TimeSeriesPropertiesV2.d.ts +5 -0
- package/build/types/mock/OntologiesV2/TimeSeriesPropertiesV2.d.ts.map +1 -0
- package/build/types/mock/OntologiesV2/TimeSeriesValueBankProperties.d.ts +4 -0
- package/build/types/mock/OntologiesV2/TimeSeriesValueBankProperties.d.ts.map +1 -0
- package/build/types/mock/OntologiesV2/index.d.ts +15 -0
- package/build/types/mock/OntologiesV2/index.d.ts.map +1 -0
- package/build/types/mock/index.d.ts +1 -0
- package/build/types/mock/index.d.ts.map +1 -0
- package/build/types/withoutRid.d.ts +3 -0
- package/build/types/withoutRid.d.ts.map +1 -0
- package/package.json +88 -0
|
@@ -0,0 +1,562 @@
|
|
|
1
|
+
import * as OntologiesV2$1 from '@osdk/foundry.ontologies';
|
|
2
|
+
import { ActionParameterV2, ParameterId, ActionTypeV2, ActionTypeApiName, ObjectTypeV2, PropertyV2, ApplyActionRequestV2, ActionParameterType, AttachmentRid, Ontology, OntologyV2, Actions as Actions$1, ActionTypesV2 as ActionTypesV2$1, AttachmentPropertiesV2 as AttachmentPropertiesV2$1, Attachments as Attachments$1, LinkedObjectsV2 as LinkedObjectsV2$1, MediaReferenceProperties as MediaReferenceProperties$1, ObjectTypesV2 as ObjectTypesV2$1, OntologiesV2 as OntologiesV2$2, OntologyInterfaces as OntologyInterfaces$1, OntologyObjectSets as OntologyObjectSets$1, OntologyObjectsV2 as OntologyObjectsV2$1, Queries as Queries$1, QueryTypes as QueryTypes$1, TimeSeriesPropertiesV2 as TimeSeriesPropertiesV2$1, TimeSeriesValueBankProperties as TimeSeriesValueBankProperties$1 } from '@osdk/foundry.ontologies';
|
|
3
|
+
import { Merge, ReadonlyDeep } from 'type-fest';
|
|
4
|
+
import { ActionDefinition, ActionMetadata, ActionParam, DataValueClientToWire, ApplyActionOptions, ActionReturnTypeForOptions, ApplyBatchActionOptions, ObjectMetadata, PropertyValueWireToClient, PropertyDef, ObjectTypeDefinition, CompileTimeMetadata, PrimaryKeyType, Logger } from '@osdk/api';
|
|
5
|
+
import { ObjectTypeNotFound, LinkTypeNotFound as LinkTypeNotFound$1, OntologyNotFound, ObjectNotFound, QueryNotFound, ActionNotFound, ApplyActionFailed, QueryEncounteredUserFacingError, InvalidContentType, AttachmentSizeExceededLimit, AttachmentNotFound } from '@osdk/internal.foundry.ontologies';
|
|
6
|
+
import { MediaType, MediaItemRid, MediaReference } from '@osdk/foundry.core';
|
|
7
|
+
import { RequestHandler, DefaultBodyType, PathParams, HttpResponseResolver, RequestHandlerOptions, HttpHandler } from 'msw';
|
|
8
|
+
import * as msw from 'msw';
|
|
9
|
+
export { msw };
|
|
10
|
+
|
|
11
|
+
type SimpleActionParamTypes = "string" | "integer" | "boolean";
|
|
12
|
+
type TH_ActionParameterV2<T extends SimpleActionParamTypes, R extends boolean> = {
|
|
13
|
+
dataType: {
|
|
14
|
+
type: T;
|
|
15
|
+
};
|
|
16
|
+
required: R;
|
|
17
|
+
} & ActionParameterV2;
|
|
18
|
+
declare function createActionParameterV2<T extends SimpleActionParamTypes, R extends boolean>(type: T, required: R): TH_ActionParameterV2<T, R>;
|
|
19
|
+
|
|
20
|
+
interface TH_ActionTypeV2<P extends Record<ParameterId, ActionParameterV2>> extends ActionTypeV2 {
|
|
21
|
+
parameters: P;
|
|
22
|
+
}
|
|
23
|
+
declare function createAction<P extends Record<ParameterId, ActionParameterV2>>({ apiName, parameters, rid, operations, status, description, }: Partial<Omit<ActionTypeV2, "apiName" | "parameters">> & {
|
|
24
|
+
apiName: ActionTypeApiName;
|
|
25
|
+
parameters: P;
|
|
26
|
+
}): TH_ActionTypeV2<P>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Helper type for converting a "const" `ActionTypeV2` into a "const"
|
|
30
|
+
* `ActionDefinition` for compile time checks
|
|
31
|
+
*/
|
|
32
|
+
interface TH_ActionDefinition<X extends TH_ActionTypeV2<Record<ParameterId, ActionParameterV2>>> extends ActionDefinition<any> {
|
|
33
|
+
__DefinitionMetadata: TH_ActionMetadata<X>;
|
|
34
|
+
}
|
|
35
|
+
interface TH_ActionMetadata<X extends TH_ActionTypeV2<Record<ParameterId, ActionParameterV2>>> extends ActionMetadata {
|
|
36
|
+
parameters: X extends TH_ActionTypeV2<infer P> ? {
|
|
37
|
+
[K in keyof P]: P[K] extends TH_ActionParameterV2<infer APT, infer R> ? (APT extends "string" | "integer" ? {
|
|
38
|
+
multiplicity: false;
|
|
39
|
+
nullable: R extends true ? false : true;
|
|
40
|
+
type: APT;
|
|
41
|
+
} : never) : never;
|
|
42
|
+
} : never;
|
|
43
|
+
signatures: Signatures<TH_ActionMetadata<X>["parameters"]>;
|
|
44
|
+
}
|
|
45
|
+
interface Signatures<X extends Record<any, ActionMetadata.Parameter<any>>> {
|
|
46
|
+
applyAction: ActionSignature<X>;
|
|
47
|
+
batchApplyAction: <A extends OsdkActionParameters<X>[], OP extends ApplyBatchActionOptions>(args: A, options?: OP) => Promise<ActionReturnTypeForOptions<OP>>;
|
|
48
|
+
}
|
|
49
|
+
type BaseType<APD extends Pick<ActionMetadata.Parameter<any>, "type">> = APD["type"] extends ActionMetadata.DataType.Object<infer TTargetType> ? ActionParam.ObjectType<TTargetType> : APD["type"] extends ActionMetadata.DataType.ObjectSet<infer TTargetType> ? ActionParam.ObjectSetType<TTargetType> : APD["type"] extends ActionMetadata.DataType.Struct<infer TStructType> ? ActionParam.StructType<TStructType> : APD["type"] extends keyof DataValueClientToWire ? ActionParam.PrimitiveType<APD["type"]> : never;
|
|
50
|
+
type ActionSignature<X extends Record<any, ActionMetadata.Parameter<any>>> = <A extends OsdkActionParameters<X>, OP extends ApplyActionOptions>(args: A, options?: OP) => Promise<ActionReturnTypeForOptions<OP>>;
|
|
51
|
+
type ActionParametersDefinition = Record<any, ActionMetadata.Parameter<any>>;
|
|
52
|
+
type OsdkActionParameters<X extends ActionParametersDefinition> = PartialBy<FullParams<X>, NullableParamKeys<X>>;
|
|
53
|
+
type NullableParamKeys<T extends Record<string, {
|
|
54
|
+
nullable?: boolean;
|
|
55
|
+
}>> = keyof {
|
|
56
|
+
[K in keyof T as T[K]["nullable"] extends true ? K : never]: "";
|
|
57
|
+
};
|
|
58
|
+
type FullParams<X extends ActionParametersDefinition> = {
|
|
59
|
+
[P in keyof X]: MaybeArrayType<X[P]>;
|
|
60
|
+
};
|
|
61
|
+
type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
62
|
+
type MaybeArrayType<APD extends ActionMetadata.Parameter<any>> = APD["multiplicity"] extends true ? Array<BaseType<APD>> : BaseType<APD>;
|
|
63
|
+
|
|
64
|
+
declare function actionTypeBuilder<P extends Record<ParameterId, ActionParameterV2> = {}>(action: TH_ActionTypeV2<P> | string): ActionTypeBuilder<P>;
|
|
65
|
+
declare function createActionRid(): string;
|
|
66
|
+
type NEW_P<P extends Record<ParameterId, ActionParameterV2>, K extends ParameterId, V extends ActionParameterV2> = Merge<P, {
|
|
67
|
+
[KK in K]: V;
|
|
68
|
+
}>;
|
|
69
|
+
interface ActionTypeBuilderResult<P extends Record<ParameterId, ActionParameterV2> = {}> {
|
|
70
|
+
actionTypeV2: TH_ActionTypeV2<P>;
|
|
71
|
+
actionDefinition: TH_ActionDefinition<TH_ActionTypeV2<P>>;
|
|
72
|
+
}
|
|
73
|
+
declare class ActionTypeBuilder<P extends Record<ParameterId, ActionParameterV2> = {}> {
|
|
74
|
+
private action;
|
|
75
|
+
constructor(action: TH_ActionTypeV2<P> | string);
|
|
76
|
+
addParameter<K extends ParameterId, V extends ActionParameterV2 | SimpleActionParamTypes, R extends boolean = false>(paramId: K, parameter: V, required?: R | false): ActionTypeBuilder<NEW_P<P, K, V extends SimpleActionParamTypes ? TH_ActionParameterV2<V, R> : never>>;
|
|
77
|
+
build(): ActionTypeBuilderResult<P>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
type PropertyV2ToWirePropertyTypes<T extends PropertyV2> = T["dataType"]["type"] extends "array" ? never : T["dataType"]["type"] extends "date" ? "timestamp" : Exclude<T["dataType"]["type"], "array" | "date" | "struct" | "cipherText" | "timeseries" | "vector">;
|
|
81
|
+
type ToObjectTypeDefinition<T extends ObjectTypeV2> = {
|
|
82
|
+
type: "object";
|
|
83
|
+
apiName: T["apiName"];
|
|
84
|
+
__DefinitionMetadata: Omit<ObjectMetadata, "properties"> & {
|
|
85
|
+
props: {
|
|
86
|
+
[key in keyof T["properties"] & string]?: PropertyValueWireToClient[PropertyV2ToWirePropertyTypes<T["properties"][key]>];
|
|
87
|
+
} & {
|
|
88
|
+
[key in T["primaryKey"]]: PropertyValueWireToClient[PropertyV2ToWirePropertyTypes<T["properties"][key]>];
|
|
89
|
+
};
|
|
90
|
+
properties: {
|
|
91
|
+
[key in keyof T["properties"] & string]: PropertyDef<PropertyV2ToWirePropertyTypes<T["properties"][key]>>;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
type JustProps<T extends ObjectTypeV2 | ObjectTypeDefinition> = CompileTimeMetadata<T extends ObjectTypeV2 ? ToObjectTypeDefinition<T> : T>["props"];
|
|
97
|
+
|
|
98
|
+
type TH_ActionParameterType_Primitive<X extends ActionParameterType> = X extends {
|
|
99
|
+
type: "attachment";
|
|
100
|
+
} ? AttachmentRid : ActionParam.PrimitiveType<Exclude<X["type"], "object" | "array" | "objectSet" | "interfaceObject" | "attachment" | "vector">>;
|
|
101
|
+
type TH_ActionParameterType<X extends ActionParameterType> = X extends {
|
|
102
|
+
type: "array";
|
|
103
|
+
} ? TH_ActionParameterType_Primitive<Extract<X, {
|
|
104
|
+
type: "array";
|
|
105
|
+
}>["subType"]>[] : X extends {
|
|
106
|
+
type: "object";
|
|
107
|
+
} ? string | number | boolean : X extends {
|
|
108
|
+
type: "objectSet";
|
|
109
|
+
} ? string : X extends {
|
|
110
|
+
type: "interfaceObject";
|
|
111
|
+
} ? {
|
|
112
|
+
objectTypeApiName: string;
|
|
113
|
+
primaryKeyValue: string;
|
|
114
|
+
} : TH_ActionParameterType_Primitive<X>;
|
|
115
|
+
type TH_Parameters<X extends Record<ParameterId, ActionParameterV2>> = {
|
|
116
|
+
[K in keyof X & string as X[K]["required"] extends true ? K : never]: TH_ActionParameterType<X[K]["dataType"]>;
|
|
117
|
+
} & {
|
|
118
|
+
[K in keyof X & string as X[K]["required"] extends true ? never : K]?: TH_ActionParameterType<X[K]["dataType"]>;
|
|
119
|
+
};
|
|
120
|
+
type TH_ApplyActionRequestV2<X extends ActionTypeV2> = Omit<ApplyActionRequestV2, "parameters"> & {
|
|
121
|
+
parameters: TH_Parameters<X["parameters"]>;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
interface TypeHelper_Property<Q extends ObjectMetadata.Property> extends OntologiesV2$1.PropertyV2 {
|
|
125
|
+
dataType: OntologiesV2$1.ObjectPropertyType & {
|
|
126
|
+
type: Q["type"];
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
type TypeHelper_Properties<Q extends ObjectTypeDefinition> = {
|
|
130
|
+
[K in keyof CompileTimeMetadata<Q>["properties"]]: TypeHelper_Property<CompileTimeMetadata<Q>["properties"][K]>;
|
|
131
|
+
};
|
|
132
|
+
interface TypeHelper_ObjectType<Q extends ObjectTypeDefinition> extends OntologiesV2$1.ObjectTypeV2 {
|
|
133
|
+
apiName: Q["apiName"];
|
|
134
|
+
primaryKey: CompileTimeMetadata<Q>["primaryKeyApiName"];
|
|
135
|
+
titleProperty: CompileTimeMetadata<Q>["titleProperty"];
|
|
136
|
+
properties: TypeHelper_Properties<Q>;
|
|
137
|
+
}
|
|
138
|
+
interface TH_ObjectTypeFullMetadata<Q extends ObjectTypeDefinition> extends OntologiesV2$1.ObjectTypeFullMetadata {
|
|
139
|
+
objectType: TypeHelper_ObjectType<Q>;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
type index$1_ActionTypeBuilderResult<P extends Record<ParameterId, ActionParameterV2> = {}> = ActionTypeBuilderResult<P>;
|
|
143
|
+
type index$1_JustProps<T extends ObjectTypeV2 | ObjectTypeDefinition> = JustProps<T>;
|
|
144
|
+
declare const index$1_actionTypeBuilder: typeof actionTypeBuilder;
|
|
145
|
+
declare const index$1_createActionParameterV2: typeof createActionParameterV2;
|
|
146
|
+
declare const index$1_createActionRid: typeof createActionRid;
|
|
147
|
+
declare namespace index$1 {
|
|
148
|
+
export { type TH_ActionDefinition as ActionDefinition, type TH_ActionMetadata as ActionMetadata, type TH_ActionParameterV2 as ActionParameterV2, type index$1_ActionTypeBuilderResult as ActionTypeBuilderResult, type TH_ActionTypeV2 as ActionTypeV2, type TH_ApplyActionRequestV2 as ApplyActionRequestV2, type index$1_JustProps as JustProps, type TH_ObjectTypeFullMetadata as ObjectTypeFullMetadata, index$1_actionTypeBuilder as actionTypeBuilder, index$1_createActionParameterV2 as createActionParameterV2, index$1_createActionRid as createActionRid, createAction as createActionType };
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
interface BaseAPIError {
|
|
152
|
+
errorCode: string;
|
|
153
|
+
errorName: string;
|
|
154
|
+
errorInstanceId: string;
|
|
155
|
+
parameters: Record<string, any>;
|
|
156
|
+
}
|
|
157
|
+
declare function isBaseApiError(error: any): error is BaseAPIError;
|
|
158
|
+
|
|
159
|
+
declare function ObjectTypeDoesNotExistError(objectType: string): ObjectTypeNotFound;
|
|
160
|
+
declare function LinkTypeNotFound(objectType: string, linkType: string): LinkTypeNotFound$1;
|
|
161
|
+
declare function OntologyNotFoundError(ontology: string): OntologyNotFound;
|
|
162
|
+
declare function ObjectNotFoundError(objectType: string, primaryKey: string): ObjectNotFound;
|
|
163
|
+
declare function QueryNotFoundError(queryApiName: string): QueryNotFound;
|
|
164
|
+
declare function ActionNotFoundError(): ActionNotFound;
|
|
165
|
+
declare function InvalidRequest(errorName: string): BaseAPIError;
|
|
166
|
+
declare const ApplyActionFailedError: ApplyActionFailed;
|
|
167
|
+
declare const ExecuteQueryFailedError: QueryEncounteredUserFacingError;
|
|
168
|
+
declare const InvalidContentTypeError: InvalidContentType;
|
|
169
|
+
declare const AttachmentSizeExceededLimitError: AttachmentSizeExceededLimit;
|
|
170
|
+
declare const AttachmentNotFoundError: AttachmentNotFound;
|
|
171
|
+
|
|
172
|
+
declare const errors_ActionNotFoundError: typeof ActionNotFoundError;
|
|
173
|
+
declare const errors_ApplyActionFailedError: typeof ApplyActionFailedError;
|
|
174
|
+
declare const errors_AttachmentNotFoundError: typeof AttachmentNotFoundError;
|
|
175
|
+
declare const errors_AttachmentSizeExceededLimitError: typeof AttachmentSizeExceededLimitError;
|
|
176
|
+
declare const errors_ExecuteQueryFailedError: typeof ExecuteQueryFailedError;
|
|
177
|
+
declare const errors_InvalidContentTypeError: typeof InvalidContentTypeError;
|
|
178
|
+
declare const errors_InvalidRequest: typeof InvalidRequest;
|
|
179
|
+
declare const errors_LinkTypeNotFound: typeof LinkTypeNotFound;
|
|
180
|
+
declare const errors_ObjectNotFoundError: typeof ObjectNotFoundError;
|
|
181
|
+
declare const errors_ObjectTypeDoesNotExistError: typeof ObjectTypeDoesNotExistError;
|
|
182
|
+
declare const errors_OntologyNotFoundError: typeof OntologyNotFoundError;
|
|
183
|
+
declare const errors_QueryNotFoundError: typeof QueryNotFoundError;
|
|
184
|
+
declare namespace errors {
|
|
185
|
+
export { errors_ActionNotFoundError as ActionNotFoundError, errors_ApplyActionFailedError as ApplyActionFailedError, errors_AttachmentNotFoundError as AttachmentNotFoundError, errors_AttachmentSizeExceededLimitError as AttachmentSizeExceededLimitError, errors_ExecuteQueryFailedError as ExecuteQueryFailedError, errors_InvalidContentTypeError as InvalidContentTypeError, errors_InvalidRequest as InvalidRequest, errors_LinkTypeNotFound as LinkTypeNotFound, errors_ObjectNotFoundError as ObjectNotFoundError, errors_ObjectTypeDoesNotExistError as ObjectTypeDoesNotExistError, errors_OntologyNotFoundError as OntologyNotFoundError, errors_QueryNotFoundError as QueryNotFoundError };
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
interface FauxAttachmentInfo extends Omit<OntologiesV2$1.AttachmentV2, "sizeBytes"> {
|
|
189
|
+
buffer: ArrayBuffer;
|
|
190
|
+
}
|
|
191
|
+
declare class FauxAttachmentStore {
|
|
192
|
+
#private;
|
|
193
|
+
registerAttachment(attachment: FauxAttachmentInfo): OntologiesV2$1.AttachmentV2;
|
|
194
|
+
getAttachmentMetadataByRid(attachmentRid: string): OntologiesV2$1.AttachmentV2;
|
|
195
|
+
getAttachmentBuffer(attachmentRid: string): ArrayBuffer;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* A simplified type safe version of `OntologyObjectV2` that adds a tiny bit
|
|
200
|
+
* more strictness in that it declares the meaning of values for the `__` prefix
|
|
201
|
+
* props.
|
|
202
|
+
*/
|
|
203
|
+
interface BaseServerObject extends OntologiesV2$1.OntologyObjectV2 {
|
|
204
|
+
__rid?: string;
|
|
205
|
+
__primaryKey: string | number | boolean;
|
|
206
|
+
__apiName: OntologiesV2$1.ObjectTypeApiName;
|
|
207
|
+
__title?: string;
|
|
208
|
+
[key: string]: unknown;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
interface PagedBodyResponse<T> {
|
|
212
|
+
nextPageToken?: string;
|
|
213
|
+
data: T[];
|
|
214
|
+
}
|
|
215
|
+
interface PagedBodyResponseWithTotal<T> extends PagedBodyResponse<T> {
|
|
216
|
+
totalCount: string;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
interface FauxQueryImpl {
|
|
220
|
+
(req: OntologiesV2$1.ExecuteQueryRequest, fauxDataStore: FauxDataStore): OntologiesV2$1.ExecuteQueryResponse;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Currently Unsupported Concepts:
|
|
225
|
+
* - many:many links.
|
|
226
|
+
*/
|
|
227
|
+
declare class FauxOntology {
|
|
228
|
+
#private;
|
|
229
|
+
constructor(ontology: OntologiesV2$1.OntologyV2);
|
|
230
|
+
get apiName(): OntologiesV2$1.OntologyApiName;
|
|
231
|
+
getOntologyFullMetadata(): OntologiesV2$1.OntologyFullMetadata;
|
|
232
|
+
getFilteredOntologyMetadata(request: OntologiesV2$1.LoadOntologyMetadataRequest): OntologiesV2$1.OntologyFullMetadata;
|
|
233
|
+
getAllInterfaceTypes(): OntologiesV2$1.InterfaceType[];
|
|
234
|
+
getAllObjectTypes(): OntologiesV2$1.ObjectTypeFullMetadata[];
|
|
235
|
+
getAllActionTypes(): OntologiesV2$1.ActionTypeV2[];
|
|
236
|
+
getAllQueryTypes(): OntologiesV2$1.QueryTypeV2[];
|
|
237
|
+
getInterfaceType(interfaceType: string): OntologiesV2$1.InterfaceType;
|
|
238
|
+
getObjectTypeFullMetadata(objectTypeApiName: string): OntologiesV2$1.ObjectTypeFullMetadata | undefined;
|
|
239
|
+
getObjectTypeFullMetadataOrThrow(objectTypeApiName: string): OntologiesV2$1.ObjectTypeFullMetadata;
|
|
240
|
+
getActionDef(actionTypeApiName: string): OntologiesV2$1.ActionTypeV2;
|
|
241
|
+
getActionImpl(actionTypeApiName: string): FauxActionImpl;
|
|
242
|
+
getQueryDef(queryTypeApiNameAndVersion: string): OntologiesV2$1.QueryTypeV2;
|
|
243
|
+
getQueryImpl(queryTypeApiName: string, version?: string): FauxQueryImpl;
|
|
244
|
+
getInterfaceToObjectTypeMappings(objectApiNames: Iterable<OntologiesV2$1.ObjectTypeApiName>): Record<OntologiesV2$1.InterfaceTypeApiName, OntologiesV2$1.InterfaceToObjectTypeMappings>;
|
|
245
|
+
getLinkTypeSideV2(objectTypeApiName: string, linkTypeName: string): OntologiesV2$1.LinkTypeSideV2;
|
|
246
|
+
getOtherLinkTypeSideV2OrThrow(objectTypeApiName: string, linkTypeName: string): OntologiesV2$1.LinkTypeSideV2;
|
|
247
|
+
getBothLinkTypeSides(leftObjectType: string, leftLinkName: string, rightObjectType: string): [OntologiesV2$1.LinkTypeSideV2, OntologiesV2$1.LinkTypeSideV2];
|
|
248
|
+
registerObjectType<Q extends ObjectTypeDefinition>(def: TH_ObjectTypeFullMetadata<Q>): void;
|
|
249
|
+
registerObjectType(def: ReadonlyDeep<OntologiesV2$1.ObjectTypeFullMetadata>): void;
|
|
250
|
+
registerActionType<Q extends OntologiesV2$1.ActionTypeV2>(def: Q, implementation?: FauxActionImpl<Q>): void;
|
|
251
|
+
registerActionType(def: OntologiesV2$1.ActionTypeV2, implementation?: FauxActionImpl): void;
|
|
252
|
+
registerQueryType(def: OntologiesV2$1.QueryTypeV2, implementation?: FauxQueryImpl): void;
|
|
253
|
+
registerInterfaceType(def: OntologiesV2$1.InterfaceType): void;
|
|
254
|
+
registerSharedPropertyType(def: OntologiesV2$1.SharedPropertyType): void;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
interface MediaMetadataAndContent {
|
|
258
|
+
content: ArrayBuffer;
|
|
259
|
+
mediaRef: MediaReference;
|
|
260
|
+
metaData: OntologiesV2$1.MediaMetadata;
|
|
261
|
+
}
|
|
262
|
+
type ObjectTypeCreatableWithoutApiName<T extends ObjectTypeDefinition> = OrUndefinedToOptional<JustProps<T>>;
|
|
263
|
+
/**
|
|
264
|
+
* Represents the properties needed to create an object, specifically,
|
|
265
|
+
* the properties of the object and the $apiName
|
|
266
|
+
*/
|
|
267
|
+
type ObjectTypeCreatable<T extends ObjectTypeDefinition> = ObjectTypeCreatableWithoutApiName<T> & {
|
|
268
|
+
$apiName: CompileTimeMetadata<T>["apiName"];
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
* Helper type for converting `foo: string | undefined` into `foo?: string`
|
|
272
|
+
*/
|
|
273
|
+
type OrUndefinedToOptional<T extends object> = {
|
|
274
|
+
[K in keyof T as T[K] extends undefined ? K : never]?: T[K];
|
|
275
|
+
} & {
|
|
276
|
+
[K in keyof T as T[K] extends undefined ? never : K]?: T[K];
|
|
277
|
+
};
|
|
278
|
+
declare class FauxDataStore {
|
|
279
|
+
#private;
|
|
280
|
+
constructor(fauxOntology: FauxOntology, attachments: FauxAttachmentStore);
|
|
281
|
+
/**
|
|
282
|
+
* Removes all data that is associated with a namespace/ontology.
|
|
283
|
+
*
|
|
284
|
+
* Note: does not clear `attachments` nor does it clear the ontology itself.
|
|
285
|
+
*/
|
|
286
|
+
clear(): void;
|
|
287
|
+
get ontology(): FauxOntology;
|
|
288
|
+
/**
|
|
289
|
+
* Version for use in places like @osdk/client.
|
|
290
|
+
*
|
|
291
|
+
* @param obj An `Osdk.Instance` like object for the ObjectType in the generics
|
|
292
|
+
*/
|
|
293
|
+
registerObject<T extends ObjectTypeDefinition>(objectType: T, obj: ObjectTypeCreatable<T> | ObjectTypeCreatableWithoutApiName<T>): void;
|
|
294
|
+
/**
|
|
295
|
+
* Version of register object generally used in shared.test
|
|
296
|
+
* @param obj A raw server side representation of an object
|
|
297
|
+
*
|
|
298
|
+
* Don't use, its too easy to end up with an any.
|
|
299
|
+
*/
|
|
300
|
+
registerObject(obj: BaseServerObject): void;
|
|
301
|
+
replaceObjectOrThrow(x: BaseServerObject): void;
|
|
302
|
+
/** Throws if the object does not already exist */
|
|
303
|
+
unregisterObjectOrThrow(objectType: string, primaryKey: string | number | boolean): void;
|
|
304
|
+
registerLink(src: BaseServerObject, srcLinkName: string, dst: BaseServerObject, destLinkName: string): void;
|
|
305
|
+
unregisterLink(src: BaseServerObject, srcLinkName: string, dst: BaseServerObject, dstLinkName: string): void;
|
|
306
|
+
registerTimeSeriesData(objectType: OntologiesV2$1.ObjectTypeApiName, primaryKey: string, property: OntologiesV2$1.PropertyApiName, data: OntologiesV2$1.TimeSeriesPoint[]): void;
|
|
307
|
+
getTimeSeriesData(objectType: OntologiesV2$1.ObjectTypeApiName, primaryKey: string, property: OntologiesV2$1.PropertyApiName, filter?: OntologiesV2$1.StreamTimeSeriesPointsRequest): OntologiesV2$1.TimeSeriesPoint[];
|
|
308
|
+
registerMedia(objectType: OntologiesV2$1.ObjectTypeApiName, property: OntologiesV2$1.PropertyApiName, content: ArrayBuffer, mediaType: MediaType, path: string | undefined, mediaItemRid?: MediaItemRid): MediaReference;
|
|
309
|
+
getMediaOrThrow(objectType: OntologiesV2$1.ObjectTypeApiName, primaryKey: string, property: OntologiesV2$1.PropertyApiName): MediaMetadataAndContent;
|
|
310
|
+
getObject(apiName: string, primaryKey: string | number | boolean): BaseServerObject | undefined;
|
|
311
|
+
getObjectOrThrow(apiName: string, primaryKey: string | number | boolean): BaseServerObject;
|
|
312
|
+
getObjectByRid(rid: string): BaseServerObject | undefined;
|
|
313
|
+
getLinksOrThrow(apiName: string, primaryKey: string | number | boolean, linkApiName: string): BaseServerObject[];
|
|
314
|
+
getLinkOrThrow(objectType: string, primaryKey: string | number | boolean, linkType: string, targetPrimaryKey: string | number | boolean): BaseServerObject;
|
|
315
|
+
getObjectsOfType(apiName: string): Iterable<BaseServerObject>;
|
|
316
|
+
getObjectsFromObjectSet(parsedBody: OntologiesV2$1.LoadObjectSetV2MultipleObjectTypesRequest | OntologiesV2$1.LoadObjectSetRequestV2): PagedBodyResponseWithTotal<BaseServerObject>;
|
|
317
|
+
getAttachmentMetadata(objectType: string, primaryKey: string | number | boolean, propertyName: string): OntologiesV2$1.AttachmentV2;
|
|
318
|
+
getAttachmentBuffer(objectType: string, primaryKey: string | number | boolean, propertyName: string): ArrayBuffer;
|
|
319
|
+
applyAction(actionTypeApiName: string, req: OntologiesV2$1.ApplyActionRequestV2): OntologiesV2$1.SyncApplyActionResponseV2;
|
|
320
|
+
batchApplyAction(actionTypeApiName: string, batchReq: OntologiesV2$1.BatchApplyActionRequestV2): OntologiesV2$1.BatchApplyActionResponseV2;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* This is separate from the FauxDataStore so that we can in the future support
|
|
325
|
+
* this not-committing on errors. That functionality just does not exist at the moment
|
|
326
|
+
*/
|
|
327
|
+
declare class FauxDataStoreBatch {
|
|
328
|
+
#private;
|
|
329
|
+
objectEdits: OntologiesV2$1.ObjectEdits;
|
|
330
|
+
constructor(fauxDataStore: FauxDataStore);
|
|
331
|
+
getObject: (objectType: string, primaryKey: string | number | boolean) => BaseServerObject;
|
|
332
|
+
addObject<T extends ObjectTypeDefinition>(objectType: T["apiName"], primaryKey: PrimaryKeyType<T>, update: Omit<JustProps<T>, CompileTimeMetadata<T>["primaryKeyApiName"]>): void;
|
|
333
|
+
addObject(objectType: string, primaryKey: string | number | boolean, object: BaseServerObject): void;
|
|
334
|
+
modifyObject<T extends ObjectTypeDefinition>(objectType: T["apiName"], primaryKey: PrimaryKeyType<T>, update: Partial<JustProps<T>>): void;
|
|
335
|
+
modifyObject(objectType: string, primaryKey: string | number | boolean, update: Partial<BaseServerObject>): void;
|
|
336
|
+
deleteObject: (objectType: string, primaryKey: string | number | boolean) => void;
|
|
337
|
+
addLink: (leftObjectType: string, leftPrimaryKey: string | number | boolean, leftLinkName: string, rightObjectType: string, rightPrimaryKey: string | number | boolean) => void;
|
|
338
|
+
removeLink: (leftObjectType: string, leftPrimaryKey: string | number | boolean, leftLinkName: string, rightObjectType: string, rightPrimaryKey: string | number | boolean) => void;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
type FauxActionImpl<Q extends OntologiesV2$1.ActionTypeV2 = OntologiesV2$1.ActionTypeV2> = (batch: FauxDataStoreBatch, payload: TH_ApplyActionRequestV2<Q>, ctx: {
|
|
342
|
+
def: Q;
|
|
343
|
+
attachments: FauxAttachmentStore;
|
|
344
|
+
}) => unknown;
|
|
345
|
+
|
|
346
|
+
declare class FauxFoundry {
|
|
347
|
+
#private;
|
|
348
|
+
readonly attachments: FauxAttachmentStore;
|
|
349
|
+
readonly baseUrl: string;
|
|
350
|
+
readonly defaultOntologyRid: any;
|
|
351
|
+
readonly logger: Logger | undefined;
|
|
352
|
+
constructor(baseUrl: string, defaultOntology?: Ontology, { logger }?: {
|
|
353
|
+
logger?: Logger;
|
|
354
|
+
});
|
|
355
|
+
get handlers(): RequestHandler[];
|
|
356
|
+
getDefaultOntology(): FauxOntology;
|
|
357
|
+
getDefaultDataStore(): FauxDataStore;
|
|
358
|
+
createOntology(metadata: OntologyV2): FauxOntology;
|
|
359
|
+
registerOntology(ontology: FauxOntology): void;
|
|
360
|
+
getOntology(ontologyApiNameOrRid: string): FauxOntology;
|
|
361
|
+
setDataStore(ontologyApiNameOrRid: string, fauxDataStore: FauxDataStore): void;
|
|
362
|
+
getDataStore(ontologyApiNameOrRid: string): FauxDataStore;
|
|
363
|
+
getEveryOntology(): FauxOntology[];
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
declare function authHandlerMiddleware<TReqBody extends DefaultBodyType = DefaultBodyType, TPathParams extends PathParams<string> = PathParams<string>>(handler: HttpResponseResolver<TPathParams, TReqBody>): HttpResponseResolver<TPathParams, TReqBody>;
|
|
367
|
+
|
|
368
|
+
declare class OpenApiCallError extends Error {
|
|
369
|
+
status: number;
|
|
370
|
+
json: {
|
|
371
|
+
errorCode: string;
|
|
372
|
+
errorName: string;
|
|
373
|
+
errorInstanceId: string;
|
|
374
|
+
parameters: Record<string, unknown>;
|
|
375
|
+
};
|
|
376
|
+
constructor(status: number, json: {
|
|
377
|
+
errorCode: string;
|
|
378
|
+
errorName: string;
|
|
379
|
+
errorInstanceId: string;
|
|
380
|
+
parameters: Record<string, unknown>;
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
type SkipStringParams<T extends any[]> = T extends [infer A, ...infer B] ? A extends string ? SkipStringParams<B> : T : T;
|
|
384
|
+
/**
|
|
385
|
+
* This relies on a trick that generally our query params and header params are optional therefore
|
|
386
|
+
* the body can generally be assumed to be the first payload following the strings which are path
|
|
387
|
+
* params.
|
|
388
|
+
*
|
|
389
|
+
* This will also fail if your body is defined as a string as that will get interpreted as a path param.
|
|
390
|
+
* If this happens, you cannot use the helper. Sorry
|
|
391
|
+
*/
|
|
392
|
+
type ExtractBody<X extends ((reqCall: any, ...args: any[]) => Promise<any>)> = undefined extends SkipStringParams<ParamsAfterReqCall<X>>[0] ? never : SkipStringParams<ParamsAfterReqCall<X>>[0];
|
|
393
|
+
type ExtractResponse<X extends ((...args: any[]) => Promise<any>)> = Awaited<ReturnType<X>>;
|
|
394
|
+
type ParamsAfterReqCall<T extends (reqCall: any, ...args: any[]) => Promise<any>> = T extends (reqCall: any, ...args: infer Z) => Promise<any> ? Z : never;
|
|
395
|
+
type RestImpl<URL_PARAMS extends string, REQ_BODY extends DefaultBodyType, RESP_BODY extends DefaultBodyType> = (info: Parameters<HttpResponseResolver<Record<URL_PARAMS, string>, REQ_BODY, RESP_BODY | BaseAPIError>>[0]) => RESP_BODY | Promise<RESP_BODY>;
|
|
396
|
+
type CallFactory<URL_PARAMS extends string, X extends ((...args: any[]) => Promise<any>)> = (baseUrl: string, restImpl: RestImpl<URL_PARAMS, ExtractBody<X>, ExtractResponse<X>>, options?: RequestHandlerOptions) => HttpHandler;
|
|
397
|
+
|
|
398
|
+
declare const applyBatch: CallFactory<"ontologyApiName" | "actionType", typeof Actions$1.applyBatch>;
|
|
399
|
+
declare const apply: CallFactory<"ontologyApiName" | "actionType", typeof Actions$1.apply>;
|
|
400
|
+
|
|
401
|
+
declare const Actions_apply: typeof apply;
|
|
402
|
+
declare const Actions_applyBatch: typeof applyBatch;
|
|
403
|
+
declare namespace Actions {
|
|
404
|
+
export { Actions_apply as apply, Actions_applyBatch as applyBatch };
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
declare const list$5: CallFactory<"ontologyApiName", typeof ActionTypesV2$1.list>;
|
|
408
|
+
declare const get$6: CallFactory<"ontologyApiName" | "actionTypeApiName", typeof ActionTypesV2$1.get>;
|
|
409
|
+
|
|
410
|
+
declare namespace ActionTypesV2 {
|
|
411
|
+
export { get$6 as get, list$5 as list };
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
declare const getAttachment: CallFactory<"ontologyApiName" | "objectType" | "primaryKey" | "propertyName", typeof AttachmentPropertiesV2$1.getAttachment>;
|
|
415
|
+
declare const readAttachment: CallFactory<"ontologyApiName" | "objectType" | "primaryKey" | "propertyName", typeof AttachmentPropertiesV2$1.readAttachment>;
|
|
416
|
+
|
|
417
|
+
declare const AttachmentPropertiesV2_getAttachment: typeof getAttachment;
|
|
418
|
+
declare const AttachmentPropertiesV2_readAttachment: typeof readAttachment;
|
|
419
|
+
declare namespace AttachmentPropertiesV2 {
|
|
420
|
+
export { AttachmentPropertiesV2_getAttachment as getAttachment, AttachmentPropertiesV2_readAttachment as readAttachment };
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
declare const upload$1: CallFactory<never, typeof Attachments$1.upload>;
|
|
424
|
+
declare const get$5: CallFactory<"attachmentRid", typeof Attachments$1.get>;
|
|
425
|
+
declare const read: CallFactory<"attachmentRid", typeof Attachments$1.read>;
|
|
426
|
+
|
|
427
|
+
declare const Attachments_read: typeof read;
|
|
428
|
+
declare namespace Attachments {
|
|
429
|
+
export { get$5 as get, Attachments_read as read, upload$1 as upload };
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
declare const listLinkedObjects: CallFactory<"ontologyApiName" | "objectType" | "primaryKey" | "linkType", typeof LinkedObjectsV2$1.listLinkedObjects>;
|
|
433
|
+
declare const getLinkedObject: CallFactory<"ontologyApiName" | "objectType" | "primaryKey" | "linkType" | "targetPrimaryKey", typeof LinkedObjectsV2$1.getLinkedObject>;
|
|
434
|
+
|
|
435
|
+
declare const LinkedObjectsV2_getLinkedObject: typeof getLinkedObject;
|
|
436
|
+
declare const LinkedObjectsV2_listLinkedObjects: typeof listLinkedObjects;
|
|
437
|
+
declare namespace LinkedObjectsV2 {
|
|
438
|
+
export { LinkedObjectsV2_getLinkedObject as getLinkedObject, LinkedObjectsV2_listLinkedObjects as listLinkedObjects };
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
declare const getMediaMetadata: CallFactory<"ontologyApiName" | "objectType" | "primaryKey" | "propertyName", typeof MediaReferenceProperties$1.getMediaMetadata>;
|
|
442
|
+
declare const getMediaContent: CallFactory<"ontologyApiName" | "objectType" | "primaryKey" | "propertyName", typeof MediaReferenceProperties$1.getMediaContent>;
|
|
443
|
+
declare const upload: CallFactory<"ontologyApiName" | "objectType" | "propertyName", typeof MediaReferenceProperties$1.upload>;
|
|
444
|
+
|
|
445
|
+
declare const MediaReferenceProperties_getMediaContent: typeof getMediaContent;
|
|
446
|
+
declare const MediaReferenceProperties_getMediaMetadata: typeof getMediaMetadata;
|
|
447
|
+
declare const MediaReferenceProperties_upload: typeof upload;
|
|
448
|
+
declare namespace MediaReferenceProperties {
|
|
449
|
+
export { MediaReferenceProperties_getMediaContent as getMediaContent, MediaReferenceProperties_getMediaMetadata as getMediaMetadata, MediaReferenceProperties_upload as upload };
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
declare const get$4: CallFactory<"ontologyApiName" | "objectTypeApiName", typeof ObjectTypesV2$1.get>;
|
|
453
|
+
declare const getFullMetadata$1: CallFactory<"ontologyApiName" | "objectTypeApiName", typeof ObjectTypesV2$1.getFullMetadata>;
|
|
454
|
+
declare const getOutgoingLinkType: CallFactory<"ontology" | "objectType" | "linkType", typeof ObjectTypesV2$1.getOutgoingLinkType>;
|
|
455
|
+
declare const listOutgoingLinkTypes: CallFactory<"ontology" | "objectType", typeof ObjectTypesV2$1.listOutgoingLinkTypes>;
|
|
456
|
+
declare const list$4: CallFactory<"ontologyApiName", typeof ObjectTypesV2$1.list>;
|
|
457
|
+
|
|
458
|
+
declare const ObjectTypesV2_getOutgoingLinkType: typeof getOutgoingLinkType;
|
|
459
|
+
declare const ObjectTypesV2_listOutgoingLinkTypes: typeof listOutgoingLinkTypes;
|
|
460
|
+
declare namespace ObjectTypesV2 {
|
|
461
|
+
export { get$4 as get, getFullMetadata$1 as getFullMetadata, ObjectTypesV2_getOutgoingLinkType as getOutgoingLinkType, list$4 as list, ObjectTypesV2_listOutgoingLinkTypes as listOutgoingLinkTypes };
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
declare const getFullMetadata: CallFactory<"ontologyApiName", typeof OntologiesV2$2.getFullMetadata>;
|
|
465
|
+
declare const loadMetadata: CallFactory<"ontologyApiName", typeof OntologiesV2$2.loadMetadata>;
|
|
466
|
+
declare const list$3: CallFactory<never, typeof OntologiesV2$2.list>;
|
|
467
|
+
/**
|
|
468
|
+
* Get specified Ontology
|
|
469
|
+
*/
|
|
470
|
+
declare const get$3: CallFactory<"ontologyRid", typeof OntologiesV2$2.get>;
|
|
471
|
+
|
|
472
|
+
declare const OntologiesV2_getFullMetadata: typeof getFullMetadata;
|
|
473
|
+
declare const OntologiesV2_loadMetadata: typeof loadMetadata;
|
|
474
|
+
declare namespace OntologiesV2 {
|
|
475
|
+
export { get$3 as get, OntologiesV2_getFullMetadata as getFullMetadata, list$3 as list, OntologiesV2_loadMetadata as loadMetadata };
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
declare const list$2: CallFactory<"ontologyApiName", typeof OntologyInterfaces$1.list>;
|
|
479
|
+
declare const get$2: CallFactory<"ontologyApiName" | "interfaceType", typeof OntologyInterfaces$1.get>;
|
|
480
|
+
|
|
481
|
+
declare namespace OntologyInterfaces {
|
|
482
|
+
export { get$2 as get, list$2 as list };
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
declare const load: CallFactory<"ontologyApiName", typeof OntologyObjectSets$1.load>;
|
|
486
|
+
declare const aggregate: CallFactory<"ontologyApiName", typeof OntologyObjectSets$1.aggregate>;
|
|
487
|
+
declare const loadMultipleObjectTypes: CallFactory<"ontologyApiName", typeof OntologyObjectSets$1.loadMultipleObjectTypes>;
|
|
488
|
+
|
|
489
|
+
declare const OntologyObjectSets_aggregate: typeof aggregate;
|
|
490
|
+
declare const OntologyObjectSets_load: typeof load;
|
|
491
|
+
declare const OntologyObjectSets_loadMultipleObjectTypes: typeof loadMultipleObjectTypes;
|
|
492
|
+
declare namespace OntologyObjectSets {
|
|
493
|
+
export { OntologyObjectSets_aggregate as aggregate, OntologyObjectSets_load as load, OntologyObjectSets_loadMultipleObjectTypes as loadMultipleObjectTypes };
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
declare const get$1: CallFactory<"ontologyApiName" | "objectType" | "primaryKey", typeof OntologyObjectsV2$1.get>;
|
|
497
|
+
declare const list$1: CallFactory<"ontologyApiName" | "objectType", typeof OntologyObjectsV2$1.list>;
|
|
498
|
+
|
|
499
|
+
declare namespace OntologyObjectsV2 {
|
|
500
|
+
export { get$1 as get, list$1 as list };
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
declare const execute: CallFactory<"ontologyApiName" | "queryApiName", typeof Queries$1.execute>;
|
|
504
|
+
|
|
505
|
+
declare const Queries_execute: typeof execute;
|
|
506
|
+
declare namespace Queries {
|
|
507
|
+
export { Queries_execute as execute };
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
declare const get: CallFactory<"ontologyApiName" | "queryTypeApiName", typeof QueryTypes$1.get>;
|
|
511
|
+
declare const list: CallFactory<"ontologyApiName", typeof QueryTypes$1.list>;
|
|
512
|
+
|
|
513
|
+
declare const QueryTypes_get: typeof get;
|
|
514
|
+
declare const QueryTypes_list: typeof list;
|
|
515
|
+
declare namespace QueryTypes {
|
|
516
|
+
export { QueryTypes_get as get, QueryTypes_list as list };
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
declare const getFirstPoint: CallFactory<"ontologyApiName" | "objectType" | "primaryKey" | "propertyName", typeof TimeSeriesPropertiesV2$1.getFirstPoint>;
|
|
520
|
+
declare const getLastPoint: CallFactory<"ontologyApiName" | "objectType" | "primaryKey" | "propertyName", typeof TimeSeriesPropertiesV2$1.getLastPoint>;
|
|
521
|
+
declare const streamPoints: CallFactory<"ontologyApiName" | "objectType" | "primaryKey" | "propertyName", typeof TimeSeriesPropertiesV2$1.streamPoints>;
|
|
522
|
+
|
|
523
|
+
declare const TimeSeriesPropertiesV2_getFirstPoint: typeof getFirstPoint;
|
|
524
|
+
declare const TimeSeriesPropertiesV2_getLastPoint: typeof getLastPoint;
|
|
525
|
+
declare const TimeSeriesPropertiesV2_streamPoints: typeof streamPoints;
|
|
526
|
+
declare namespace TimeSeriesPropertiesV2 {
|
|
527
|
+
export { TimeSeriesPropertiesV2_getFirstPoint as getFirstPoint, TimeSeriesPropertiesV2_getLastPoint as getLastPoint, TimeSeriesPropertiesV2_streamPoints as streamPoints };
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
declare const getLatestValue: CallFactory<"ontologyApiName" | "objectType" | "primaryKey" | "propertyName", typeof TimeSeriesValueBankProperties$1.getLatestValue>;
|
|
531
|
+
declare const streamValues: CallFactory<"ontologyApiName" | "objectType" | "primaryKey" | "propertyName", typeof TimeSeriesValueBankProperties$1.streamValues>;
|
|
532
|
+
|
|
533
|
+
declare const TimeSeriesValueBankProperties_getLatestValue: typeof getLatestValue;
|
|
534
|
+
declare const TimeSeriesValueBankProperties_streamValues: typeof streamValues;
|
|
535
|
+
declare namespace TimeSeriesValueBankProperties {
|
|
536
|
+
export { TimeSeriesValueBankProperties_getLatestValue as getLatestValue, TimeSeriesValueBankProperties_streamValues as streamValues };
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
declare const index_ActionTypesV2: typeof ActionTypesV2;
|
|
540
|
+
declare const index_Actions: typeof Actions;
|
|
541
|
+
declare const index_AttachmentPropertiesV2: typeof AttachmentPropertiesV2;
|
|
542
|
+
declare const index_Attachments: typeof Attachments;
|
|
543
|
+
declare const index_LinkedObjectsV2: typeof LinkedObjectsV2;
|
|
544
|
+
declare const index_MediaReferenceProperties: typeof MediaReferenceProperties;
|
|
545
|
+
declare const index_ObjectTypesV2: typeof ObjectTypesV2;
|
|
546
|
+
declare const index_OntologiesV2: typeof OntologiesV2;
|
|
547
|
+
declare const index_OntologyInterfaces: typeof OntologyInterfaces;
|
|
548
|
+
declare const index_OntologyObjectSets: typeof OntologyObjectSets;
|
|
549
|
+
declare const index_OntologyObjectsV2: typeof OntologyObjectsV2;
|
|
550
|
+
declare const index_Queries: typeof Queries;
|
|
551
|
+
declare const index_QueryTypes: typeof QueryTypes;
|
|
552
|
+
declare const index_TimeSeriesPropertiesV2: typeof TimeSeriesPropertiesV2;
|
|
553
|
+
declare const index_TimeSeriesValueBankProperties: typeof TimeSeriesValueBankProperties;
|
|
554
|
+
declare namespace index {
|
|
555
|
+
export { index_ActionTypesV2 as ActionTypesV2, index_Actions as Actions, index_AttachmentPropertiesV2 as AttachmentPropertiesV2, index_Attachments as Attachments, index_LinkedObjectsV2 as LinkedObjectsV2, index_MediaReferenceProperties as MediaReferenceProperties, index_ObjectTypesV2 as ObjectTypesV2, index_OntologiesV2 as OntologiesV2, index_OntologyInterfaces as OntologyInterfaces, index_OntologyObjectSets as OntologyObjectSets, index_OntologyObjectsV2 as OntologyObjectsV2, index_Queries as Queries, index_QueryTypes as QueryTypes, index_TimeSeriesPropertiesV2 as TimeSeriesPropertiesV2, index_TimeSeriesValueBankProperties as TimeSeriesValueBankProperties };
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
declare function withoutRid<T extends {
|
|
559
|
+
__rid?: any;
|
|
560
|
+
}>(o: T): Omit<T, "__rid">;
|
|
561
|
+
|
|
562
|
+
export { type BaseAPIError, errors as Errors, type FauxActionImpl, FauxDataStore, FauxDataStoreBatch, FauxFoundry, FauxOntology, index as MockOntologiesV2, OpenApiCallError, index$1 as TypeHelpers, authHandlerMiddleware, isBaseApiError, withoutRid };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2023 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
// These are the shape of the errors that come back from the API.
|
|
18
|
+
export function isBaseApiError(error) {
|
|
19
|
+
return error && typeof error === "object" && "errorCode" in error && "errorName" in error && "errorInstanceId" in error;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=BaseError.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseError.js","names":["isBaseApiError","error"],"sources":["BaseError.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface BaseAPIError {\n errorCode: string;\n errorName: string;\n errorInstanceId: string;\n parameters: Record<string, any>;\n}\n\n// These are the shape of the errors that come back from the API.\nexport function isBaseApiError(error: any): error is BaseAPIError {\n return (\n error && typeof error === \"object\" && \"errorCode\" in error\n && \"errorName\" in error && \"errorInstanceId\" in error\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA;AACA,OAAO,SAASA,cAAcA,CAACC,KAAU,EAAyB;EAChE,OACEA,KAAK,IAAI,OAAOA,KAAK,KAAK,QAAQ,IAAI,WAAW,IAAIA,KAAK,IACvD,WAAW,IAAIA,KAAK,IAAI,iBAAiB,IAAIA,KAAK;AAEzD","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseOsdkObjectType.js","names":[],"sources":["BaseOsdkObjectType.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface BaseOsdkObjectType {\n $apiName: string;\n $primaryKey: string | number | boolean;\n\n [key: string]: string | number | boolean | undefined;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025 Palantir Technologies, Inc. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* A simplified type safe version of `OntologyObjectV2` that adds a tiny bit
|
|
19
|
+
* more strictness in that it declares the meaning of values for the `__` prefix
|
|
20
|
+
* props.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Helpful for distinguishing between an object that looks like it is for the server (__apiName)
|
|
25
|
+
* vs one that is for the client ($apiName).
|
|
26
|
+
*/
|
|
27
|
+
export function isBaseServerObject(obj) {
|
|
28
|
+
return typeof obj === "object" && obj != null && "__primaryKey" in obj && "__apiName" in obj && !("$apiName" in obj) && !("$primaryKey" in obj);
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=BaseServerObject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseServerObject.js","names":["isBaseServerObject","obj"],"sources":["BaseServerObject.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type * as OntologiesV2 from \"@osdk/foundry.ontologies\";\n\n/**\n * A simplified type safe version of `OntologyObjectV2` that adds a tiny bit\n * more strictness in that it declares the meaning of values for the `__` prefix\n * props.\n */\nexport interface BaseServerObject extends OntologiesV2.OntologyObjectV2 {\n __rid?: string;\n __primaryKey: string | number | boolean;\n __apiName: OntologiesV2.ObjectTypeApiName;\n __title?: string;\n\n [key: string]: unknown;\n}\n\n/**\n * Helpful for distinguishing between an object that looks like it is for the server (__apiName)\n * vs one that is for the client ($apiName).\n */\nexport function isBaseServerObject(obj: unknown): obj is BaseServerObject {\n return (\n typeof obj === \"object\"\n && obj != null\n && \"__primaryKey\" in obj\n && \"__apiName\" in obj\n && !(\"$apiName\" in obj)\n && !(\"$primaryKey\" in obj)\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA,OAAO,SAASA,kBAAkBA,CAACC,GAAY,EAA2B;EACxE,OACE,OAAOA,GAAG,KAAK,QAAQ,IACpBA,GAAG,IAAI,IAAI,IACX,cAAc,IAAIA,GAAG,IACrB,WAAW,IAAIA,GAAG,IAClB,EAAE,UAAU,IAAIA,GAAG,CAAC,IACpB,EAAE,aAAa,IAAIA,GAAG,CAAC;AAE9B","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FauxActionImpl.js","names":[],"sources":["FauxActionImpl.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type * as OntologiesV2 from \"@osdk/foundry.ontologies\";\nimport type { FauxAttachmentStore } from \"./FauxAttachmentStore.js\";\nimport type { FauxDataStoreBatch } from \"./FauxDataStoreBatch.js\";\nimport type { TH_ApplyActionRequestV2 } from \"./typeHelpers/TH_ApplyActionRequestV2.js\";\n\nexport type FauxActionImpl<\n Q extends OntologiesV2.ActionTypeV2 = OntologiesV2.ActionTypeV2,\n> = (\n batch: FauxDataStoreBatch,\n payload: TH_ApplyActionRequestV2<Q>,\n ctx: {\n def: Q;\n attachments: FauxAttachmentStore;\n },\n) => unknown;\n"],"mappings":"","ignoreList":[]}
|