@osdk/api 2.1.0-beta.9 → 2.1.0-rc.32
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 +132 -0
- package/build/browser/Definitions.js +0 -15
- package/build/browser/Definitions.js.map +1 -1
- package/build/browser/OsdkBase.js +0 -15
- package/build/browser/OsdkBase.js.map +1 -1
- package/build/browser/OsdkMetadata.js +0 -15
- package/build/browser/OsdkMetadata.js.map +1 -1
- package/build/browser/OsdkObject.js +0 -15
- package/build/browser/OsdkObject.js.map +1 -1
- package/build/browser/OsdkObjectFrom.js +27 -1
- package/build/browser/OsdkObjectFrom.js.map +1 -1
- package/build/browser/OsdkObjectFrom.test.js +17 -0
- package/build/browser/OsdkObjectFrom.test.js.map +1 -1
- package/build/browser/OsdkObjectPrimaryKeyType.js +0 -15
- package/build/browser/OsdkObjectPrimaryKeyType.js.map +1 -1
- package/build/browser/PageResult.js +0 -15
- package/build/browser/PageResult.js.map +1 -1
- package/build/browser/actions/ActionResults.js +0 -15
- package/build/browser/actions/ActionResults.js.map +1 -1
- package/build/browser/actions/ActionReturnTypeForOptions.js +0 -15
- package/build/browser/actions/ActionReturnTypeForOptions.js.map +1 -1
- package/build/browser/actions/Actions.js +4 -1
- package/build/browser/actions/Actions.js.map +1 -1
- package/build/browser/aggregate/AggregatableKeys.js +0 -15
- package/build/browser/aggregate/AggregatableKeys.js.map +1 -1
- package/build/browser/aggregate/AggregateOpts.js +0 -15
- package/build/browser/aggregate/AggregateOpts.js.map +1 -1
- package/build/browser/aggregate/AggregateOptsThatErrors.js +0 -15
- package/build/browser/aggregate/AggregateOptsThatErrors.js.map +1 -1
- package/build/browser/aggregate/AggregationResultsWithGroups.js +0 -15
- package/build/browser/aggregate/AggregationResultsWithGroups.js.map +1 -1
- package/build/browser/aggregate/AggregationResultsWithoutGroups.js +0 -15
- package/build/browser/aggregate/AggregationResultsWithoutGroups.js.map +1 -1
- package/build/browser/aggregate/AggregationsClause.js +0 -15
- package/build/browser/aggregate/AggregationsClause.js.map +1 -1
- package/build/browser/aggregate/AggregationsClause.test.js +1 -0
- package/build/browser/aggregate/AggregationsClause.test.js.map +1 -1
- package/build/browser/aggregate/AggregationsResults.js +0 -15
- package/build/browser/aggregate/AggregationsResults.js.map +1 -1
- package/build/browser/aggregate/ArrayFilter.js +2 -0
- package/build/browser/aggregate/ArrayFilter.js.map +1 -0
- package/build/browser/aggregate/BaseFilter.js +20 -0
- package/build/browser/aggregate/BaseFilter.js.map +1 -0
- package/build/browser/aggregate/BooleanFilter.js +19 -0
- package/build/browser/aggregate/BooleanFilter.js.map +1 -0
- package/build/browser/aggregate/DatetimeFilter.js +19 -0
- package/build/browser/aggregate/DatetimeFilter.js.map +1 -0
- package/build/browser/{objectSet/EXPERIMENTAL_ObjectSetListener.js → aggregate/GeoFilter.js} +2 -2
- package/build/browser/aggregate/GeoFilter.js.map +1 -0
- package/build/browser/aggregate/Just.js +2 -0
- package/build/browser/aggregate/Just.js.map +1 -0
- package/build/browser/aggregate/NumberFilter.js +19 -0
- package/build/browser/aggregate/NumberFilter.js.map +1 -0
- package/build/browser/aggregate/StringFilter.js +19 -0
- package/build/browser/aggregate/StringFilter.js.map +1 -0
- package/build/browser/aggregate/WhereClause.js +4 -1
- package/build/browser/aggregate/WhereClause.js.map +1 -1
- package/build/browser/definitions/LinkDefinitions.js +0 -15
- package/build/browser/definitions/LinkDefinitions.js.map +1 -1
- package/build/browser/definitions/LinkDefinitions.test.js +1 -0
- package/build/browser/definitions/LinkDefinitions.test.js.map +1 -1
- package/build/browser/derivedProperties/WithPropertiesAggregationOptions.js +2 -0
- package/build/browser/derivedProperties/WithPropertiesAggregationOptions.js.map +1 -0
- package/build/browser/experimental/Experiment.js +0 -15
- package/build/browser/experimental/Experiment.js.map +1 -1
- package/build/browser/experimental/createMediaReference.js +35 -0
- package/build/browser/experimental/createMediaReference.js.map +1 -0
- package/build/browser/experimental/{subscribe.js → fetchOneByRid.js} +4 -3
- package/build/browser/experimental/fetchOneByRid.js.map +1 -0
- package/build/browser/experimental/getBulkLinks.js +1 -0
- package/build/browser/experimental/getBulkLinks.js.map +1 -1
- package/build/browser/groupby/GroupByClause.js +1 -0
- package/build/browser/groupby/GroupByClause.js.map +1 -1
- package/build/browser/groupby/GroupByClause.test.js +1 -0
- package/build/browser/groupby/GroupByClause.test.js.map +1 -1
- package/build/browser/groupby/GroupByMapper.js +0 -15
- package/build/browser/groupby/GroupByMapper.js.map +1 -1
- package/build/browser/index.js +2 -0
- package/build/browser/index.js.map +1 -1
- package/build/browser/junk.test.js +1 -0
- package/build/browser/junk.test.js.map +1 -1
- package/build/browser/mapping/DataValueMapping.js +0 -15
- package/build/browser/mapping/DataValueMapping.js.map +1 -1
- package/build/browser/mapping/DurationMapping.js +1 -0
- package/build/browser/mapping/DurationMapping.js.map +1 -1
- package/build/browser/mapping/PropertyValueMapping.js +0 -15
- package/build/browser/mapping/PropertyValueMapping.js.map +1 -1
- package/build/browser/object/Attachment.js +0 -15
- package/build/browser/object/Attachment.js.map +1 -1
- package/build/browser/object/FetchPageArgs.js +1 -1
- package/build/browser/object/FetchPageArgs.js.map +1 -1
- package/build/browser/object/FetchPageResult.js +0 -15
- package/build/browser/object/FetchPageResult.js.map +1 -1
- package/build/browser/object/Media.js +2 -0
- package/build/browser/object/Media.js.map +1 -0
- package/build/browser/object/ObjectDefinitions.test.js +5 -0
- package/build/browser/object/ObjectDefinitions.test.js.map +1 -1
- package/build/browser/object/Result.js +2 -0
- package/build/browser/object/Result.js.map +1 -1
- package/build/browser/objectSet/BaseObjectSet.js +0 -15
- package/build/browser/objectSet/BaseObjectSet.js.map +1 -1
- package/build/browser/objectSet/BulkLinkResult.js +0 -15
- package/build/browser/objectSet/BulkLinkResult.js.map +1 -1
- package/build/browser/objectSet/ObjectSet.js +0 -15
- package/build/browser/objectSet/ObjectSet.js.map +1 -1
- package/build/browser/objectSet/ObjectSet.test.js +45 -0
- package/build/browser/objectSet/ObjectSet.test.js.map +1 -0
- package/build/browser/objectSet/ObjectSetListener.js +17 -0
- package/build/browser/objectSet/ObjectSetListener.js.map +1 -0
- package/build/browser/ontology/ActionDefinition.js +1 -1
- package/build/browser/ontology/ActionDefinition.js.map +1 -1
- package/build/browser/ontology/InterfaceDefinition.js +0 -15
- package/build/browser/ontology/InterfaceDefinition.js.map +1 -1
- package/build/browser/ontology/ObjectOrInterface.js +1 -1
- package/build/browser/ontology/ObjectOrInterface.js.map +1 -1
- package/build/browser/ontology/ObjectTypeDefinition.js +1 -1
- package/build/browser/ontology/ObjectTypeDefinition.js.map +1 -1
- package/build/browser/ontology/OntologyMetadata.js +0 -15
- package/build/browser/ontology/OntologyMetadata.js.map +1 -1
- package/build/browser/ontology/PrimaryKeyTypes.js +0 -15
- package/build/browser/ontology/PrimaryKeyTypes.js.map +1 -1
- package/build/browser/ontology/QueryDefinition.js +0 -15
- package/build/browser/ontology/QueryDefinition.js.map +1 -1
- package/build/browser/ontology/SimplePropertyDef.js +17 -0
- package/build/browser/ontology/SimplePropertyDef.js.map +1 -0
- package/build/browser/ontology/SimplePropertyDef.test.js +48 -0
- package/build/browser/ontology/SimplePropertyDef.test.js.map +1 -0
- package/build/browser/ontology/VersionString.js +0 -15
- package/build/browser/ontology/VersionString.js.map +1 -1
- package/build/browser/ontology/WirePropertyTypes.js +0 -15
- package/build/browser/ontology/WirePropertyTypes.js.map +1 -1
- package/build/browser/public/unstable.js +3 -2
- package/build/browser/public/unstable.js.map +1 -1
- package/build/browser/queries/Aggregations.js +2 -0
- package/build/browser/queries/Aggregations.js.map +1 -0
- package/build/browser/queries/Queries.js +8 -1
- package/build/browser/queries/Queries.js.map +1 -1
- package/build/browser/timeseries/timeseries.js +1 -0
- package/build/browser/timeseries/timeseries.js.map +1 -1
- package/build/browser/util/LinkUtils.js +0 -15
- package/build/browser/util/LinkUtils.js.map +1 -1
- package/build/cjs/ObjectSet-BPh3Vefb.d.cts +1104 -0
- package/build/cjs/index.cjs +75 -0
- package/build/cjs/index.cjs.map +1 -0
- package/build/cjs/index.d.cts +416 -0
- package/build/cjs/public/unstable.cjs +28 -0
- package/build/cjs/public/unstable.cjs.map +1 -0
- package/build/cjs/public/unstable.d.cts +53 -0
- package/build/esm/Definitions.js +0 -15
- package/build/esm/Definitions.js.map +1 -1
- package/build/esm/OsdkBase.js +0 -15
- package/build/esm/OsdkBase.js.map +1 -1
- package/build/esm/OsdkMetadata.js +0 -15
- package/build/esm/OsdkMetadata.js.map +1 -1
- package/build/esm/OsdkObject.js +0 -15
- package/build/esm/OsdkObject.js.map +1 -1
- package/build/esm/OsdkObjectFrom.js +27 -1
- package/build/esm/OsdkObjectFrom.js.map +1 -1
- package/build/esm/OsdkObjectFrom.test.js +17 -0
- package/build/esm/OsdkObjectFrom.test.js.map +1 -1
- package/build/esm/OsdkObjectPrimaryKeyType.js +0 -15
- package/build/esm/OsdkObjectPrimaryKeyType.js.map +1 -1
- package/build/esm/PageResult.js +0 -15
- package/build/esm/PageResult.js.map +1 -1
- package/build/esm/actions/ActionResults.js +0 -15
- package/build/esm/actions/ActionResults.js.map +1 -1
- package/build/esm/actions/ActionReturnTypeForOptions.js +0 -15
- package/build/esm/actions/ActionReturnTypeForOptions.js.map +1 -1
- package/build/esm/actions/Actions.js +4 -1
- package/build/esm/actions/Actions.js.map +1 -1
- package/build/esm/aggregate/AggregatableKeys.js +0 -15
- package/build/esm/aggregate/AggregatableKeys.js.map +1 -1
- package/build/esm/aggregate/AggregateOpts.js +0 -15
- package/build/esm/aggregate/AggregateOpts.js.map +1 -1
- package/build/esm/aggregate/AggregateOptsThatErrors.js +0 -15
- package/build/esm/aggregate/AggregateOptsThatErrors.js.map +1 -1
- package/build/esm/aggregate/AggregationResultsWithGroups.js +0 -15
- package/build/esm/aggregate/AggregationResultsWithGroups.js.map +1 -1
- package/build/esm/aggregate/AggregationResultsWithoutGroups.js +0 -15
- package/build/esm/aggregate/AggregationResultsWithoutGroups.js.map +1 -1
- package/build/esm/aggregate/AggregationsClause.js +0 -15
- package/build/esm/aggregate/AggregationsClause.js.map +1 -1
- package/build/esm/aggregate/AggregationsClause.test.js +1 -0
- package/build/esm/aggregate/AggregationsClause.test.js.map +1 -1
- package/build/esm/aggregate/AggregationsResults.js +0 -15
- package/build/esm/aggregate/AggregationsResults.js.map +1 -1
- package/build/esm/aggregate/ArrayFilter.js +2 -0
- package/build/esm/aggregate/ArrayFilter.js.map +1 -0
- package/build/esm/aggregate/BaseFilter.js +20 -0
- package/build/esm/aggregate/BaseFilter.js.map +1 -0
- package/build/esm/aggregate/BooleanFilter.js +19 -0
- package/build/esm/aggregate/BooleanFilter.js.map +1 -0
- package/build/esm/aggregate/DatetimeFilter.js +19 -0
- package/build/esm/aggregate/DatetimeFilter.js.map +1 -0
- package/build/esm/{objectSet/EXPERIMENTAL_ObjectSetListener.js → aggregate/GeoFilter.js} +2 -2
- package/build/esm/aggregate/GeoFilter.js.map +1 -0
- package/build/esm/aggregate/Just.js +2 -0
- package/build/esm/aggregate/Just.js.map +1 -0
- package/build/esm/aggregate/NumberFilter.js +19 -0
- package/build/esm/aggregate/NumberFilter.js.map +1 -0
- package/build/esm/aggregate/StringFilter.js +19 -0
- package/build/esm/aggregate/StringFilter.js.map +1 -0
- package/build/esm/aggregate/WhereClause.js +4 -1
- package/build/esm/aggregate/WhereClause.js.map +1 -1
- package/build/esm/definitions/LinkDefinitions.js +0 -15
- package/build/esm/definitions/LinkDefinitions.js.map +1 -1
- package/build/esm/definitions/LinkDefinitions.test.js +1 -0
- package/build/esm/definitions/LinkDefinitions.test.js.map +1 -1
- package/build/esm/derivedProperties/WithPropertiesAggregationOptions.js +2 -0
- package/build/esm/derivedProperties/WithPropertiesAggregationOptions.js.map +1 -0
- package/build/esm/experimental/Experiment.js +0 -15
- package/build/esm/experimental/Experiment.js.map +1 -1
- package/build/esm/experimental/createMediaReference.js +35 -0
- package/build/esm/experimental/createMediaReference.js.map +1 -0
- package/build/esm/experimental/{subscribe.js → fetchOneByRid.js} +4 -3
- package/build/esm/experimental/fetchOneByRid.js.map +1 -0
- package/build/esm/experimental/getBulkLinks.js +1 -0
- package/build/esm/experimental/getBulkLinks.js.map +1 -1
- package/build/esm/groupby/GroupByClause.js +1 -0
- package/build/esm/groupby/GroupByClause.js.map +1 -1
- package/build/esm/groupby/GroupByClause.test.js +1 -0
- package/build/esm/groupby/GroupByClause.test.js.map +1 -1
- package/build/esm/groupby/GroupByMapper.js +0 -15
- package/build/esm/groupby/GroupByMapper.js.map +1 -1
- package/build/esm/index.js +2 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/junk.test.js +1 -0
- package/build/esm/junk.test.js.map +1 -1
- package/build/esm/mapping/DataValueMapping.js +0 -15
- package/build/esm/mapping/DataValueMapping.js.map +1 -1
- package/build/esm/mapping/DurationMapping.js +1 -0
- package/build/esm/mapping/DurationMapping.js.map +1 -1
- package/build/esm/mapping/PropertyValueMapping.js +0 -15
- package/build/esm/mapping/PropertyValueMapping.js.map +1 -1
- package/build/esm/object/Attachment.js +0 -15
- package/build/esm/object/Attachment.js.map +1 -1
- package/build/esm/object/FetchPageArgs.js +1 -1
- package/build/esm/object/FetchPageArgs.js.map +1 -1
- package/build/esm/object/FetchPageResult.js +0 -15
- package/build/esm/object/FetchPageResult.js.map +1 -1
- package/build/esm/object/Media.js +2 -0
- package/build/esm/object/Media.js.map +1 -0
- package/build/esm/object/ObjectDefinitions.test.js +5 -0
- package/build/esm/object/ObjectDefinitions.test.js.map +1 -1
- package/build/esm/object/Result.js +2 -0
- package/build/esm/object/Result.js.map +1 -1
- package/build/esm/objectSet/BaseObjectSet.js +0 -15
- package/build/esm/objectSet/BaseObjectSet.js.map +1 -1
- package/build/esm/objectSet/BulkLinkResult.js +0 -15
- package/build/esm/objectSet/BulkLinkResult.js.map +1 -1
- package/build/esm/objectSet/ObjectSet.js +0 -15
- package/build/esm/objectSet/ObjectSet.js.map +1 -1
- package/build/esm/objectSet/ObjectSet.test.js +45 -0
- package/build/esm/objectSet/ObjectSet.test.js.map +1 -0
- package/build/esm/objectSet/ObjectSetListener.js +17 -0
- package/build/esm/objectSet/ObjectSetListener.js.map +1 -0
- package/build/esm/ontology/ActionDefinition.js +1 -1
- package/build/esm/ontology/ActionDefinition.js.map +1 -1
- package/build/esm/ontology/InterfaceDefinition.js +0 -15
- package/build/esm/ontology/InterfaceDefinition.js.map +1 -1
- package/build/esm/ontology/ObjectOrInterface.js +1 -1
- package/build/esm/ontology/ObjectOrInterface.js.map +1 -1
- package/build/esm/ontology/ObjectTypeDefinition.js +1 -1
- package/build/esm/ontology/ObjectTypeDefinition.js.map +1 -1
- package/build/esm/ontology/OntologyMetadata.js +0 -15
- package/build/esm/ontology/OntologyMetadata.js.map +1 -1
- package/build/esm/ontology/PrimaryKeyTypes.js +0 -15
- package/build/esm/ontology/PrimaryKeyTypes.js.map +1 -1
- package/build/esm/ontology/QueryDefinition.js +0 -15
- package/build/esm/ontology/QueryDefinition.js.map +1 -1
- package/build/esm/ontology/SimplePropertyDef.js +17 -0
- package/build/esm/ontology/SimplePropertyDef.js.map +1 -0
- package/build/esm/ontology/SimplePropertyDef.test.js +48 -0
- package/build/esm/ontology/SimplePropertyDef.test.js.map +1 -0
- package/build/esm/ontology/VersionString.js +0 -15
- package/build/esm/ontology/VersionString.js.map +1 -1
- package/build/esm/ontology/WirePropertyTypes.js +0 -15
- package/build/esm/ontology/WirePropertyTypes.js.map +1 -1
- package/build/esm/public/unstable.js +3 -2
- package/build/esm/public/unstable.js.map +1 -1
- package/build/esm/queries/Aggregations.js +2 -0
- package/build/esm/queries/Aggregations.js.map +1 -0
- package/build/esm/queries/Queries.js +8 -1
- package/build/esm/queries/Queries.js.map +1 -1
- package/build/esm/timeseries/timeseries.js +1 -0
- package/build/esm/timeseries/timeseries.js.map +1 -1
- package/build/esm/util/LinkUtils.js +0 -15
- package/build/esm/util/LinkUtils.js.map +1 -1
- package/build/types/Definitions.d.ts +24 -0
- package/build/types/Definitions.d.ts.map +1 -0
- package/build/{esm → types}/OsdkBase.d.ts +4 -5
- package/build/types/OsdkBase.d.ts.map +1 -0
- package/build/types/OsdkMetadata.d.ts +3 -0
- package/build/types/OsdkMetadata.d.ts.map +1 -0
- package/build/{browser → types}/OsdkObject.d.ts +5 -6
- package/build/types/OsdkObject.d.ts.map +1 -0
- package/build/types/OsdkObjectFrom.d.ts +99 -0
- package/build/types/OsdkObjectFrom.d.ts.map +1 -0
- package/build/types/OsdkObjectFrom.test.d.ts +1 -0
- package/build/types/OsdkObjectFrom.test.d.ts.map +1 -0
- package/build/{browser → types}/OsdkObjectPrimaryKeyType.d.ts +0 -1
- package/build/types/OsdkObjectPrimaryKeyType.d.ts.map +1 -0
- package/build/types/PageResult.d.ts +5 -0
- package/build/types/PageResult.d.ts.map +1 -0
- package/build/types/actions/ActionResults.d.ts +80 -0
- package/build/types/actions/ActionResults.d.ts.map +1 -0
- package/build/{browser → types}/actions/ActionReturnTypeForOptions.d.ts +2 -3
- package/build/types/actions/ActionReturnTypeForOptions.d.ts.map +1 -0
- package/build/types/actions/Actions.d.ts +34 -0
- package/build/types/actions/Actions.d.ts.map +1 -0
- package/build/types/aggregate/AggregatableKeys.d.ts +18 -0
- package/build/types/aggregate/AggregatableKeys.d.ts.map +1 -0
- package/build/{browser → types}/aggregate/AggregateOpts.d.ts +2 -5
- package/build/types/aggregate/AggregateOpts.d.ts.map +1 -0
- package/build/types/aggregate/AggregateOptsThatErrors.d.ts +21 -0
- package/build/types/aggregate/AggregateOptsThatErrors.d.ts.map +1 -0
- package/build/{browser → types}/aggregate/AggregationResultsWithGroups.d.ts +11 -10
- package/build/types/aggregate/AggregationResultsWithGroups.d.ts.map +1 -0
- package/build/types/aggregate/AggregationResultsWithoutGroups.d.ts +14 -0
- package/build/types/aggregate/AggregationResultsWithoutGroups.d.ts.map +1 -0
- package/build/{esm → types}/aggregate/AggregationsClause.d.ts +2 -7
- package/build/types/aggregate/AggregationsClause.d.ts.map +1 -0
- package/build/types/aggregate/AggregationsClause.test.d.ts +46 -0
- package/build/types/aggregate/AggregationsClause.test.d.ts.map +1 -0
- package/build/types/aggregate/AggregationsResults.d.ts +9 -0
- package/build/types/aggregate/AggregationsResults.d.ts.map +1 -0
- package/build/types/aggregate/ArrayFilter.d.ts +11 -0
- package/build/types/aggregate/ArrayFilter.d.ts.map +1 -0
- package/build/types/aggregate/BaseFilter.d.ts +14 -0
- package/build/types/aggregate/BaseFilter.d.ts.map +1 -0
- package/build/types/aggregate/BooleanFilter.d.ts +11 -0
- package/build/types/aggregate/BooleanFilter.d.ts.map +1 -0
- package/build/types/aggregate/DatetimeFilter.d.ts +19 -0
- package/build/types/aggregate/DatetimeFilter.d.ts.map +1 -0
- package/build/types/aggregate/GeoFilter.d.ts +35 -0
- package/build/types/aggregate/GeoFilter.d.ts.map +1 -0
- package/build/types/aggregate/Just.d.ts +5 -0
- package/build/types/aggregate/Just.d.ts.map +1 -0
- package/build/types/aggregate/NumberFilter.d.ts +20 -0
- package/build/types/aggregate/NumberFilter.d.ts.map +1 -0
- package/build/types/aggregate/StringFilter.d.ts +27 -0
- package/build/types/aggregate/StringFilter.d.ts.map +1 -0
- package/build/types/aggregate/WhereClause.d.ts +80 -0
- package/build/types/aggregate/WhereClause.d.ts.map +1 -0
- package/build/types/definitions/LinkDefinitions.d.ts +21 -0
- package/build/types/definitions/LinkDefinitions.d.ts.map +1 -0
- package/build/types/definitions/LinkDefinitions.test.d.ts +1 -0
- package/build/types/definitions/LinkDefinitions.test.d.ts.map +1 -0
- package/build/types/derivedProperties/WithPropertiesAggregationOptions.d.ts +4 -0
- package/build/types/derivedProperties/WithPropertiesAggregationOptions.d.ts.map +1 -0
- package/build/types/experimental/Experiment.d.ts +11 -0
- package/build/types/experimental/Experiment.d.ts.map +1 -0
- package/build/types/experimental/createMediaReference.d.ts +24 -0
- package/build/types/experimental/createMediaReference.d.ts.map +1 -0
- package/build/types/experimental/fetchOneByRid.d.ts +15 -0
- package/build/types/experimental/fetchOneByRid.d.ts.map +1 -0
- package/build/{esm → types}/experimental/getBulkLinks.d.ts +1 -2
- package/build/types/experimental/getBulkLinks.d.ts.map +1 -0
- package/build/types/groupby/GroupByClause.d.ts +71 -0
- package/build/types/groupby/GroupByClause.d.ts.map +1 -0
- package/build/types/groupby/GroupByClause.test.d.ts +23 -0
- package/build/types/groupby/GroupByClause.test.d.ts.map +1 -0
- package/build/types/groupby/GroupByMapper.d.ts +13 -0
- package/build/types/groupby/GroupByMapper.d.ts.map +1 -0
- package/build/types/index.d.ts +44 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/junk.test.d.ts +1 -0
- package/build/types/junk.test.d.ts.map +1 -0
- package/build/types/mapping/DataValueMapping.d.ts +79 -0
- package/build/types/mapping/DataValueMapping.d.ts.map +1 -0
- package/build/types/mapping/DurationMapping.d.ts +22 -0
- package/build/types/mapping/DurationMapping.d.ts.map +1 -0
- package/build/types/mapping/PropertyValueMapping.d.ts +57 -0
- package/build/types/mapping/PropertyValueMapping.d.ts.map +1 -0
- package/build/types/object/Attachment.d.ts +21 -0
- package/build/types/object/Attachment.d.ts.map +1 -0
- package/build/types/object/FetchPageArgs.d.ts +49 -0
- package/build/types/object/FetchPageArgs.d.ts.map +1 -0
- package/build/types/object/FetchPageResult.d.ts +39 -0
- package/build/types/object/FetchPageResult.d.ts.map +1 -0
- package/build/types/object/Media.d.ts +32 -0
- package/build/types/object/Media.d.ts.map +1 -0
- package/build/types/object/ObjectDefinitions.test.d.ts +1 -0
- package/build/types/object/ObjectDefinitions.test.d.ts.map +1 -0
- package/build/types/object/Result.d.ts +21 -0
- package/build/types/object/Result.d.ts.map +1 -0
- package/build/{esm → types}/objectSet/BaseObjectSet.d.ts +3 -4
- package/build/types/objectSet/BaseObjectSet.d.ts.map +1 -0
- package/build/types/objectSet/BulkLinkResult.d.ts +7 -0
- package/build/types/objectSet/BulkLinkResult.d.ts.map +1 -0
- package/build/types/objectSet/ObjectSet.d.ts +210 -0
- package/build/types/objectSet/ObjectSet.d.ts.map +1 -0
- package/build/types/objectSet/ObjectSet.test.d.ts +1 -0
- package/build/types/objectSet/ObjectSet.test.d.ts.map +1 -0
- package/build/types/objectSet/ObjectSetListener.d.ts +43 -0
- package/build/types/objectSet/ObjectSetListener.d.ts.map +1 -0
- package/build/types/ontology/ActionDefinition.d.ts +55 -0
- package/build/types/ontology/ActionDefinition.d.ts.map +1 -0
- package/build/{browser → types}/ontology/InterfaceDefinition.d.ts +6 -6
- package/build/types/ontology/InterfaceDefinition.d.ts.map +1 -0
- package/build/types/ontology/ObjectOrInterface.d.ts +19 -0
- package/build/types/ontology/ObjectOrInterface.d.ts.map +1 -0
- package/build/types/ontology/ObjectTypeDefinition.d.ts +92 -0
- package/build/types/ontology/ObjectTypeDefinition.d.ts.map +1 -0
- package/build/types/ontology/OntologyMetadata.d.ts +6 -0
- package/build/types/ontology/OntologyMetadata.d.ts.map +1 -0
- package/build/{browser → types}/ontology/PrimaryKeyTypes.d.ts +0 -1
- package/build/types/ontology/PrimaryKeyTypes.d.ts.map +1 -0
- package/build/{browser → types}/ontology/QueryDefinition.d.ts +35 -33
- package/build/types/ontology/QueryDefinition.d.ts.map +1 -0
- package/build/types/ontology/SimplePropertyDef.d.ts +18 -0
- package/build/types/ontology/SimplePropertyDef.d.ts.map +1 -0
- package/build/types/ontology/SimplePropertyDef.test.d.ts +1 -0
- package/build/types/ontology/SimplePropertyDef.test.d.ts.map +1 -0
- package/build/types/ontology/VersionString.d.ts +5 -0
- package/build/types/ontology/VersionString.d.ts.map +1 -0
- package/build/types/ontology/WirePropertyTypes.d.ts +2 -0
- package/build/types/ontology/WirePropertyTypes.d.ts.map +1 -0
- package/build/types/public/unstable.d.ts +6 -0
- package/build/types/public/unstable.d.ts.map +1 -0
- package/build/types/queries/Aggregations.d.ts +39 -0
- package/build/types/queries/Aggregations.d.ts.map +1 -0
- package/build/types/queries/Queries.d.ts +43 -0
- package/build/types/queries/Queries.d.ts.map +1 -0
- package/build/types/timeseries/timeseries.d.ts +124 -0
- package/build/types/timeseries/timeseries.d.ts.map +1 -0
- package/build/{browser → types}/util/LinkUtils.d.ts +4 -2
- package/build/types/util/LinkUtils.d.ts.map +1 -0
- package/package.json +32 -10
- package/unstable.d.ts +17 -0
- package/build/browser/Definitions.d.ts +0 -16
- package/build/browser/Definitions.d.ts.map +0 -1
- package/build/browser/OsdkBase.d.ts +0 -13
- package/build/browser/OsdkBase.d.ts.map +0 -1
- package/build/browser/OsdkMetadata.d.ts +0 -4
- package/build/browser/OsdkMetadata.d.ts.map +0 -1
- package/build/browser/OsdkObject.d.ts.map +0 -1
- package/build/browser/OsdkObjectFrom.d.ts +0 -58
- package/build/browser/OsdkObjectFrom.d.ts.map +0 -1
- package/build/browser/OsdkObjectFrom.test.d.ts +0 -2
- package/build/browser/OsdkObjectFrom.test.d.ts.map +0 -1
- package/build/browser/OsdkObjectPrimaryKeyType.d.ts.map +0 -1
- package/build/browser/PageResult.d.ts +0 -6
- package/build/browser/PageResult.d.ts.map +0 -1
- package/build/browser/actions/ActionResults.d.ts +0 -81
- package/build/browser/actions/ActionResults.d.ts.map +0 -1
- package/build/browser/actions/ActionReturnTypeForOptions.d.ts.map +0 -1
- package/build/browser/actions/Actions.d.ts +0 -36
- package/build/browser/actions/Actions.d.ts.map +0 -1
- package/build/browser/aggregate/AggregatableKeys.d.ts +0 -16
- package/build/browser/aggregate/AggregatableKeys.d.ts.map +0 -1
- package/build/browser/aggregate/AggregateOpts.d.ts.map +0 -1
- package/build/browser/aggregate/AggregateOptsThatErrors.d.ts +0 -17
- package/build/browser/aggregate/AggregateOptsThatErrors.d.ts.map +0 -1
- package/build/browser/aggregate/AggregationResultsWithGroups.d.ts.map +0 -1
- package/build/browser/aggregate/AggregationResultsWithoutGroups.d.ts +0 -13
- package/build/browser/aggregate/AggregationResultsWithoutGroups.d.ts.map +0 -1
- package/build/browser/aggregate/AggregationsClause.d.ts +0 -10
- package/build/browser/aggregate/AggregationsClause.d.ts.map +0 -1
- package/build/browser/aggregate/AggregationsClause.test.d.ts +0 -47
- package/build/browser/aggregate/AggregationsClause.test.d.ts.map +0 -1
- package/build/browser/aggregate/AggregationsResults.d.ts +0 -7
- package/build/browser/aggregate/AggregationsResults.d.ts.map +0 -1
- package/build/browser/aggregate/WhereClause.d.ts +0 -79
- package/build/browser/aggregate/WhereClause.d.ts.map +0 -1
- package/build/browser/definitions/LinkDefinitions.d.ts +0 -21
- package/build/browser/definitions/LinkDefinitions.d.ts.map +0 -1
- package/build/browser/definitions/LinkDefinitions.test.d.ts +0 -2
- package/build/browser/definitions/LinkDefinitions.test.d.ts.map +0 -1
- package/build/browser/experimental/Experiment.d.ts +0 -8
- package/build/browser/experimental/Experiment.d.ts.map +0 -1
- package/build/browser/experimental/getBulkLinks.d.ts +0 -10
- package/build/browser/experimental/getBulkLinks.d.ts.map +0 -1
- package/build/browser/experimental/preexistingObjectSet.d.ts +0 -10
- package/build/browser/experimental/preexistingObjectSet.d.ts.map +0 -1
- package/build/browser/experimental/preexistingObjectSet.js +0 -21
- package/build/browser/experimental/preexistingObjectSet.js.map +0 -1
- package/build/browser/experimental/subscribe.d.ts +0 -12
- package/build/browser/experimental/subscribe.d.ts.map +0 -1
- package/build/browser/experimental/subscribe.js.map +0 -1
- package/build/browser/groupby/GroupByClause.d.ts +0 -73
- package/build/browser/groupby/GroupByClause.d.ts.map +0 -1
- package/build/browser/groupby/GroupByClause.test.d.ts +0 -24
- package/build/browser/groupby/GroupByClause.test.d.ts.map +0 -1
- package/build/browser/groupby/GroupByMapper.d.ts +0 -14
- package/build/browser/groupby/GroupByMapper.d.ts.map +0 -1
- package/build/browser/index.d.ts +0 -42
- package/build/browser/index.d.ts.map +0 -1
- package/build/browser/junk.test.d.ts +0 -2
- package/build/browser/junk.test.d.ts.map +0 -1
- package/build/browser/mapping/DataValueMapping.d.ts +0 -71
- package/build/browser/mapping/DataValueMapping.d.ts.map +0 -1
- package/build/browser/mapping/DurationMapping.d.ts +0 -23
- package/build/browser/mapping/DurationMapping.d.ts.map +0 -1
- package/build/browser/mapping/PropertyValueMapping.d.ts +0 -49
- package/build/browser/mapping/PropertyValueMapping.d.ts.map +0 -1
- package/build/browser/object/Attachment.d.ts +0 -25
- package/build/browser/object/Attachment.d.ts.map +0 -1
- package/build/browser/object/FetchPageArgs.d.ts +0 -27
- package/build/browser/object/FetchPageArgs.d.ts.map +0 -1
- package/build/browser/object/FetchPageResult.d.ts +0 -20
- package/build/browser/object/FetchPageResult.d.ts.map +0 -1
- package/build/browser/object/ObjectDefinitions.test.d.ts +0 -2
- package/build/browser/object/ObjectDefinitions.test.d.ts.map +0 -1
- package/build/browser/object/Result.d.ts +0 -22
- package/build/browser/object/Result.d.ts.map +0 -1
- package/build/browser/objectSet/BaseObjectSet.d.ts +0 -7
- package/build/browser/objectSet/BaseObjectSet.d.ts.map +0 -1
- package/build/browser/objectSet/BulkLinkResult.d.ts +0 -8
- package/build/browser/objectSet/BulkLinkResult.d.ts.map +0 -1
- package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts +0 -27
- package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts.map +0 -1
- package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.js.map +0 -1
- package/build/browser/objectSet/ObjectSet.d.ts +0 -142
- package/build/browser/objectSet/ObjectSet.d.ts.map +0 -1
- package/build/browser/ontology/ActionDefinition.d.ts +0 -46
- package/build/browser/ontology/ActionDefinition.d.ts.map +0 -1
- package/build/browser/ontology/InterfaceDefinition.d.ts.map +0 -1
- package/build/browser/ontology/ObjectOrInterface.d.ts +0 -5
- package/build/browser/ontology/ObjectOrInterface.d.ts.map +0 -1
- package/build/browser/ontology/ObjectTypeDefinition.d.ts +0 -83
- package/build/browser/ontology/ObjectTypeDefinition.d.ts.map +0 -1
- package/build/browser/ontology/OntologyMetadata.d.ts +0 -7
- package/build/browser/ontology/OntologyMetadata.d.ts.map +0 -1
- package/build/browser/ontology/PrimaryKeyTypes.d.ts.map +0 -1
- package/build/browser/ontology/QueryDefinition.d.ts.map +0 -1
- package/build/browser/ontology/VersionString.d.ts +0 -2
- package/build/browser/ontology/VersionString.d.ts.map +0 -1
- package/build/browser/ontology/WirePropertyTypes.d.ts +0 -2
- package/build/browser/ontology/WirePropertyTypes.d.ts.map +0 -1
- package/build/browser/public/unstable.d.ts +0 -8
- package/build/browser/public/unstable.d.ts.map +0 -1
- package/build/browser/queries/Queries.d.ts +0 -40
- package/build/browser/queries/Queries.d.ts.map +0 -1
- package/build/browser/timeseries/timeseries.d.ts +0 -125
- package/build/browser/timeseries/timeseries.d.ts.map +0 -1
- package/build/browser/util/LinkUtils.d.ts.map +0 -1
- package/build/esm/Definitions.d.ts +0 -16
- package/build/esm/Definitions.d.ts.map +0 -1
- package/build/esm/OsdkBase.d.ts.map +0 -1
- package/build/esm/OsdkMetadata.d.ts +0 -4
- package/build/esm/OsdkMetadata.d.ts.map +0 -1
- package/build/esm/OsdkObject.d.ts +0 -11
- package/build/esm/OsdkObject.d.ts.map +0 -1
- package/build/esm/OsdkObjectFrom.d.ts +0 -58
- package/build/esm/OsdkObjectFrom.d.ts.map +0 -1
- package/build/esm/OsdkObjectFrom.test.d.ts +0 -2
- package/build/esm/OsdkObjectFrom.test.d.ts.map +0 -1
- package/build/esm/OsdkObjectPrimaryKeyType.d.ts +0 -4
- package/build/esm/OsdkObjectPrimaryKeyType.d.ts.map +0 -1
- package/build/esm/PageResult.d.ts +0 -6
- package/build/esm/PageResult.d.ts.map +0 -1
- package/build/esm/actions/ActionResults.d.ts +0 -81
- package/build/esm/actions/ActionResults.d.ts.map +0 -1
- package/build/esm/actions/ActionReturnTypeForOptions.d.ts +0 -7
- package/build/esm/actions/ActionReturnTypeForOptions.d.ts.map +0 -1
- package/build/esm/actions/Actions.d.ts +0 -36
- package/build/esm/actions/Actions.d.ts.map +0 -1
- package/build/esm/aggregate/AggregatableKeys.d.ts +0 -16
- package/build/esm/aggregate/AggregatableKeys.d.ts.map +0 -1
- package/build/esm/aggregate/AggregateOpts.d.ts +0 -10
- package/build/esm/aggregate/AggregateOpts.d.ts.map +0 -1
- package/build/esm/aggregate/AggregateOptsThatErrors.d.ts +0 -17
- package/build/esm/aggregate/AggregateOptsThatErrors.d.ts.map +0 -1
- package/build/esm/aggregate/AggregationResultsWithGroups.d.ts +0 -17
- package/build/esm/aggregate/AggregationResultsWithGroups.d.ts.map +0 -1
- package/build/esm/aggregate/AggregationResultsWithoutGroups.d.ts +0 -13
- package/build/esm/aggregate/AggregationResultsWithoutGroups.d.ts.map +0 -1
- package/build/esm/aggregate/AggregationsClause.d.ts.map +0 -1
- package/build/esm/aggregate/AggregationsClause.test.d.ts +0 -47
- package/build/esm/aggregate/AggregationsClause.test.d.ts.map +0 -1
- package/build/esm/aggregate/AggregationsResults.d.ts +0 -7
- package/build/esm/aggregate/AggregationsResults.d.ts.map +0 -1
- package/build/esm/aggregate/WhereClause.d.ts +0 -79
- package/build/esm/aggregate/WhereClause.d.ts.map +0 -1
- package/build/esm/definitions/LinkDefinitions.d.ts +0 -21
- package/build/esm/definitions/LinkDefinitions.d.ts.map +0 -1
- package/build/esm/definitions/LinkDefinitions.test.d.ts +0 -2
- package/build/esm/definitions/LinkDefinitions.test.d.ts.map +0 -1
- package/build/esm/experimental/Experiment.d.ts +0 -8
- package/build/esm/experimental/Experiment.d.ts.map +0 -1
- package/build/esm/experimental/getBulkLinks.d.ts.map +0 -1
- package/build/esm/experimental/preexistingObjectSet.d.ts +0 -10
- package/build/esm/experimental/preexistingObjectSet.d.ts.map +0 -1
- package/build/esm/experimental/preexistingObjectSet.js +0 -21
- package/build/esm/experimental/preexistingObjectSet.js.map +0 -1
- package/build/esm/experimental/subscribe.d.ts +0 -12
- package/build/esm/experimental/subscribe.d.ts.map +0 -1
- package/build/esm/experimental/subscribe.js.map +0 -1
- package/build/esm/groupby/GroupByClause.d.ts +0 -73
- package/build/esm/groupby/GroupByClause.d.ts.map +0 -1
- package/build/esm/groupby/GroupByClause.test.d.ts +0 -24
- package/build/esm/groupby/GroupByClause.test.d.ts.map +0 -1
- package/build/esm/groupby/GroupByMapper.d.ts +0 -14
- package/build/esm/groupby/GroupByMapper.d.ts.map +0 -1
- package/build/esm/index.d.ts +0 -42
- package/build/esm/index.d.ts.map +0 -1
- package/build/esm/junk.test.d.ts +0 -2
- package/build/esm/junk.test.d.ts.map +0 -1
- package/build/esm/mapping/DataValueMapping.d.ts +0 -71
- package/build/esm/mapping/DataValueMapping.d.ts.map +0 -1
- package/build/esm/mapping/DurationMapping.d.ts +0 -23
- package/build/esm/mapping/DurationMapping.d.ts.map +0 -1
- package/build/esm/mapping/PropertyValueMapping.d.ts +0 -49
- package/build/esm/mapping/PropertyValueMapping.d.ts.map +0 -1
- package/build/esm/object/Attachment.d.ts +0 -25
- package/build/esm/object/Attachment.d.ts.map +0 -1
- package/build/esm/object/FetchPageArgs.d.ts +0 -27
- package/build/esm/object/FetchPageArgs.d.ts.map +0 -1
- package/build/esm/object/FetchPageResult.d.ts +0 -20
- package/build/esm/object/FetchPageResult.d.ts.map +0 -1
- package/build/esm/object/ObjectDefinitions.test.d.ts +0 -2
- package/build/esm/object/ObjectDefinitions.test.d.ts.map +0 -1
- package/build/esm/object/Result.d.ts +0 -22
- package/build/esm/object/Result.d.ts.map +0 -1
- package/build/esm/objectSet/BaseObjectSet.d.ts.map +0 -1
- package/build/esm/objectSet/BulkLinkResult.d.ts +0 -8
- package/build/esm/objectSet/BulkLinkResult.d.ts.map +0 -1
- package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts +0 -27
- package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts.map +0 -1
- package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.js.map +0 -1
- package/build/esm/objectSet/ObjectSet.d.ts +0 -142
- package/build/esm/objectSet/ObjectSet.d.ts.map +0 -1
- package/build/esm/ontology/ActionDefinition.d.ts +0 -46
- package/build/esm/ontology/ActionDefinition.d.ts.map +0 -1
- package/build/esm/ontology/InterfaceDefinition.d.ts +0 -12
- package/build/esm/ontology/InterfaceDefinition.d.ts.map +0 -1
- package/build/esm/ontology/ObjectOrInterface.d.ts +0 -5
- package/build/esm/ontology/ObjectOrInterface.d.ts.map +0 -1
- package/build/esm/ontology/ObjectTypeDefinition.d.ts +0 -83
- package/build/esm/ontology/ObjectTypeDefinition.d.ts.map +0 -1
- package/build/esm/ontology/OntologyMetadata.d.ts +0 -7
- package/build/esm/ontology/OntologyMetadata.d.ts.map +0 -1
- package/build/esm/ontology/PrimaryKeyTypes.d.ts +0 -2
- package/build/esm/ontology/PrimaryKeyTypes.d.ts.map +0 -1
- package/build/esm/ontology/QueryDefinition.d.ts +0 -68
- package/build/esm/ontology/QueryDefinition.d.ts.map +0 -1
- package/build/esm/ontology/VersionString.d.ts +0 -2
- package/build/esm/ontology/VersionString.d.ts.map +0 -1
- package/build/esm/ontology/WirePropertyTypes.d.ts +0 -2
- package/build/esm/ontology/WirePropertyTypes.d.ts.map +0 -1
- package/build/esm/public/unstable.d.ts +0 -8
- package/build/esm/public/unstable.d.ts.map +0 -1
- package/build/esm/queries/Queries.d.ts +0 -40
- package/build/esm/queries/Queries.d.ts.map +0 -1
- package/build/esm/timeseries/timeseries.d.ts +0 -125
- package/build/esm/timeseries/timeseries.d.ts.map +0 -1
- package/build/esm/util/LinkUtils.d.ts +0 -5
- package/build/esm/util/LinkUtils.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,137 @@
|
|
|
1
1
|
# @osdk/api
|
|
2
2
|
|
|
3
|
+
## 2.1.0-rc.32
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 55c05f2: Remove runtime derived properties from external types.
|
|
8
|
+
|
|
9
|
+
## 2.1.0-beta.31
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- bb8b219: Use new external packages instead of the internal ones.
|
|
14
|
+
- ee6224b: Explicitly type aggregation types in queries.
|
|
15
|
+
- 5fe2c8d: Remove ability to filter on entire struct.
|
|
16
|
+
|
|
17
|
+
## 2.1.0-beta.30
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- 966d408: Rename type for base action parameter types.
|
|
22
|
+
- f03e39f: Add a namespace type for listeners.
|
|
23
|
+
- 1591f04: Rename base property types.
|
|
24
|
+
- 785f663: Rename namespace so not exported from api package.
|
|
25
|
+
- 2d5e648: Remove subscribe from experimental gate.
|
|
26
|
+
|
|
27
|
+
## 2.1.0-beta.29
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- f1145ff: Adds support for runtime derived properties
|
|
32
|
+
|
|
33
|
+
## 2.1.0-beta.28
|
|
34
|
+
|
|
35
|
+
### Minor Changes
|
|
36
|
+
|
|
37
|
+
- f446d0c: Exposes $clone from OSDK Object instances
|
|
38
|
+
|
|
39
|
+
## 2.1.0-beta.27
|
|
40
|
+
|
|
41
|
+
## 2.1.0-beta.26
|
|
42
|
+
|
|
43
|
+
### Minor Changes
|
|
44
|
+
|
|
45
|
+
- 7865cb6: Add support for search on struct properties.
|
|
46
|
+
- 9c4efe6: Support uploading media parameters through actions
|
|
47
|
+
- f19da8e: Remove where clause from aggregate options. This option was never actually doing anything before as it was not passed to the backend for processing, so we are removing it to prevent future confusion.
|
|
48
|
+
|
|
49
|
+
## 2.1.0-beta.25
|
|
50
|
+
|
|
51
|
+
### Minor Changes
|
|
52
|
+
|
|
53
|
+
- c80ca45: Add ability to create interfaces through actions now.
|
|
54
|
+
|
|
55
|
+
## 2.1.0-beta.24
|
|
56
|
+
|
|
57
|
+
### Minor Changes
|
|
58
|
+
|
|
59
|
+
- 03f95eb: Add support for interface params in actions.
|
|
60
|
+
- c691c8b: Package now has experimental support for commonjs
|
|
61
|
+
- 3c9ac22: Cleaning up where clause types.
|
|
62
|
+
|
|
63
|
+
## 2.1.0-beta.23
|
|
64
|
+
|
|
65
|
+
### Minor Changes
|
|
66
|
+
|
|
67
|
+
- d794c19: Adding support for struct action params.
|
|
68
|
+
- 62c1d63: Add support for reading media reference property in OSDK.
|
|
69
|
+
|
|
70
|
+
## 2.1.0-beta.22
|
|
71
|
+
|
|
72
|
+
### Minor Changes
|
|
73
|
+
|
|
74
|
+
- 73fa373: Exports helper method to construct object sets from RIDs from internal utils
|
|
75
|
+
|
|
76
|
+
## 2.1.0-beta.21
|
|
77
|
+
|
|
78
|
+
### Minor Changes
|
|
79
|
+
|
|
80
|
+
- 3ea2e79: Creates new export for internal helper functions
|
|
81
|
+
- 656f975: Fixes attachment upload inputs sending incorrect in browser contexts
|
|
82
|
+
- f34b3d4: Add ability to fetch by rid, experimentally.
|
|
83
|
+
|
|
84
|
+
## 2.1.0-beta.20
|
|
85
|
+
|
|
86
|
+
### Minor Changes
|
|
87
|
+
|
|
88
|
+
- 9d35a1f: Remove unused imports
|
|
89
|
+
- abfe4b3: Add support for reading struct properties.
|
|
90
|
+
- c537e2d: Remove unused imports.
|
|
91
|
+
|
|
92
|
+
## 2.1.0-beta.19
|
|
93
|
+
|
|
94
|
+
### Minor Changes
|
|
95
|
+
|
|
96
|
+
- cddc196: Try-catches handlers called during subscription
|
|
97
|
+
|
|
98
|
+
## 2.1.0-beta.18
|
|
99
|
+
|
|
100
|
+
## 2.1.0-beta.17
|
|
101
|
+
|
|
102
|
+
## 2.1.0-beta.16
|
|
103
|
+
|
|
104
|
+
### Minor Changes
|
|
105
|
+
|
|
106
|
+
- e5fe7c0: Adds experimental method to convert an object set into RID
|
|
107
|
+
|
|
108
|
+
## 2.1.0-beta.15
|
|
109
|
+
|
|
110
|
+
## 2.1.0-beta.14
|
|
111
|
+
|
|
112
|
+
### Minor Changes
|
|
113
|
+
|
|
114
|
+
- 0c56d21: Exposing fuzzy searching.
|
|
115
|
+
- 6b6c8a1: Updates gateway endpoints and changes fetchContents for attachments to return a response
|
|
116
|
+
|
|
117
|
+
## 2.1.0-beta.13
|
|
118
|
+
|
|
119
|
+
## 2.1.0-beta.12
|
|
120
|
+
|
|
121
|
+
## 2.1.0-beta.11
|
|
122
|
+
|
|
123
|
+
### Minor Changes
|
|
124
|
+
|
|
125
|
+
- bc1761c: Update platform API dependencies.
|
|
126
|
+
- 9298f75: Using new interface APIs for backend.
|
|
127
|
+
|
|
128
|
+
## 2.1.0-beta.10
|
|
129
|
+
|
|
130
|
+
### Minor Changes
|
|
131
|
+
|
|
132
|
+
- 11a05cc: Updated subscribe api to make requesting properties optional
|
|
133
|
+
- 11088aa: Fix where clause types so we don't accept more than one key in the clauses.
|
|
134
|
+
|
|
3
135
|
## 2.1.0-beta.9
|
|
4
136
|
|
|
5
137
|
### Minor Changes
|
|
@@ -1,17 +1,2 @@
|
|
|
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
1
|
export {};
|
|
17
2
|
//# sourceMappingURL=Definitions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Definitions.js","names":[],"sources":["Definitions.
|
|
1
|
+
{"version":3,"file":"Definitions.js","names":[],"sources":["Definitions.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\nimport type {\n GetClientPropertyValueFromWire,\n} from \"./mapping/PropertyValueMapping.js\";\nimport type { ObjectMetadata } from \"./ontology/ObjectTypeDefinition.js\";\n\ntype MaybeArray<T extends { multiplicity?: boolean | undefined }, U> =\n T[\"multiplicity\"] extends true ? Array<U> : U;\n\ntype MaybeNullable<T extends ObjectMetadata.Property, U> = T[\"nullable\"] extends\n true ? U | undefined\n : U;\n\ntype Raw<T> = T extends Array<any> ? T[0] : T;\ntype Converted<T> = T extends Array<any> ? T[1] : T;\n\n/**\n * @param {T} ObjectMetadata.Property in literal form\n * @param {STRICTLY_ENFORCE_NULLABLE} S for strict. If false, always `|undefined`\n */\nexport type OsdkObjectPropertyType<\n T extends ObjectMetadata.Property,\n STRICTLY_ENFORCE_NULLABLE extends boolean = true,\n> = STRICTLY_ENFORCE_NULLABLE extends false ?\n | MaybeArray<T, Converted<GetClientPropertyValueFromWire<T[\"type\"]>>>\n | undefined\n : MaybeNullable<\n T,\n MaybeArray<T, Converted<GetClientPropertyValueFromWire<T[\"type\"]>>>\n >;\n\nexport type OsdkObjectRawPropertyType<T extends ObjectMetadata.Property> =\n MaybeNullable<\n T,\n MaybeArray<T, Raw<GetClientPropertyValueFromWire<T[\"type\"]>>>\n >;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 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
1
|
export {};
|
|
17
2
|
//# sourceMappingURL=OsdkBase.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OsdkBase.js","names":[],"sources":["OsdkBase.
|
|
1
|
+
{"version":3,"file":"OsdkBase.js","names":[],"sources":["OsdkBase.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { PropertyValueWireToClient } from \"./mapping/PropertyValueMapping.js\";\nimport type { ObjectOrInterfaceDefinition } from \"./ontology/ObjectOrInterface.js\";\nimport type { ObjectTypeDefinition } from \"./ontology/ObjectTypeDefinition.js\";\nimport type { PrimaryKeyTypes } from \"./ontology/PrimaryKeyTypes.js\";\nimport type { OsdkObjectPrimaryKeyType } from \"./OsdkObjectPrimaryKeyType.js\";\n\nexport type OsdkBase<\n Q extends ObjectOrInterfaceDefinition,\n> = {\n readonly $apiName: Q[\"apiName\"];\n\n readonly $objectType: string;\n\n readonly $primaryKey: PrimaryKeyType<Q>;\n\n readonly $title: string | undefined;\n};\n\nexport type PrimaryKeyType<Q extends ObjectOrInterfaceDefinition> =\n & (Q extends ObjectTypeDefinition ? OsdkObjectPrimaryKeyType<Q>\n : unknown)\n // if the type is `unknown` then the next line will\n // restrict it down to all valid primary key types\n & PropertyValueWireToClient[PrimaryKeyTypes];\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 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
1
|
export {};
|
|
17
2
|
//# sourceMappingURL=OsdkMetadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OsdkMetadata.js","names":[],"sources":["OsdkMetadata.
|
|
1
|
+
{"version":3,"file":"OsdkMetadata.js","names":[],"sources":["OsdkMetadata.ts"],"sourcesContent":["/*\n * Copyright 2024 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 OsdkMetadata {\n extraUserAgent: string;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,17 +1,2 @@
|
|
|
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
1
|
export {};
|
|
17
2
|
//# sourceMappingURL=OsdkObject.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OsdkObject.js","names":[],"sources":["OsdkObject.
|
|
1
|
+
{"version":3,"file":"OsdkObject.js","names":[],"sources":["OsdkObject.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\nimport type { PropertyValueWireToClient } from \"./mapping/PropertyValueMapping.js\";\nimport type { PrimaryKeyTypes } from \"./ontology/PrimaryKeyTypes.js\";\n\n/**\n * @deprecated Use OsdkBase\n */\nexport type OsdkObject<N extends string> = {\n readonly $apiName: N;\n readonly $objectType: string;\n readonly $primaryKey: PropertyValueWireToClient[PrimaryKeyTypes];\n};\n"],"mappings":"","ignoreList":[]}
|
|
@@ -13,5 +13,31 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* @param FROM - the interface or object type to convert from
|
|
18
|
+
* @param TO - the interface or object type to convert to
|
|
19
|
+
* @param P - the property(s) to convert
|
|
20
|
+
*/
|
|
21
|
+
/** DO NOT EXPORT FROM PACKAGE */
|
|
22
|
+
/**
|
|
23
|
+
* @param P The properties to add from Q
|
|
24
|
+
* @param Z The existing underlying properties
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* Use `Osdk.Instance` or `YourType.OsdkInstance`
|
|
28
|
+
*/
|
|
29
|
+
export let Osdk;
|
|
30
|
+
/**
|
|
31
|
+
* NOT EXPORTED FROM PACKAGE
|
|
32
|
+
*
|
|
33
|
+
* Anything you throw at this that is not `false` should always be `never`.
|
|
34
|
+
*
|
|
35
|
+
* This is structured in a way that it should always short circuit to never early.
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* NOT EXPORTED FROM PACKAGE
|
|
39
|
+
*
|
|
40
|
+
* Anything you throw at this that is not exactly `true` should always be `never`.
|
|
41
|
+
*/
|
|
42
|
+
// not exported from package
|
|
17
43
|
//# sourceMappingURL=OsdkObjectFrom.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OsdkObjectFrom.js","names":[],"sources":["OsdkObjectFrom.
|
|
1
|
+
{"version":3,"file":"OsdkObjectFrom.js","names":["Osdk"],"sources":["OsdkObjectFrom.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\nimport type {\n DefaultToFalse,\n OsdkObjectLinksObject,\n} from \"./definitions/LinkDefinitions.js\";\nimport type { NullabilityAdherence } from \"./object/FetchPageArgs.js\";\nimport type { UnionIfTrue } from \"./object/FetchPageResult.js\";\nimport type { InterfaceDefinition } from \"./ontology/InterfaceDefinition.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ontology/ObjectOrInterface.js\";\nimport type {\n CompileTimeMetadata,\n ObjectTypeDefinition,\n} from \"./ontology/ObjectTypeDefinition.js\";\nimport type { SimplePropertyDef } from \"./ontology/SimplePropertyDef.js\";\nimport type { OsdkBase } from \"./OsdkBase.js\";\n\ntype DropDollarOptions<T extends string> = Exclude<\n T,\n \"$rid\" | \"$all\" | \"$notStrict\"\n>;\n\ntype DropDollarAll<T extends string> = Exclude<\n T,\n \"$all\"\n>;\n\ntype SpecialOsdkPropParams =\n | \"$all\"\n | \"$rid\"\n | \"$strict\"\n | \"$notStrict\";\n\ntype ValidOsdkPropParams<Q extends ObjectOrInterfaceDefinition> =\n | SpecialOsdkPropParams\n | PropertyKeys<Q>;\n\nexport type ApiNameAsString<\n T extends ObjectOrInterfaceDefinition,\n> = CompileTimeMetadata<T>[\"apiName\"];\n\nexport type JustProps<\n T extends ObjectOrInterfaceDefinition,\n P extends ValidOsdkPropParams<T>,\n> = P extends \"$all\" ? PropertyKeys<T>\n : Exclude<P, SpecialOsdkPropParams>;\n\nexport type PropMapToObject<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ObjectTypeDefinition,\n> = NonNullable<CompileTimeMetadata<TO>[\"interfaceMap\"]>[ApiNameAsString<FROM>];\n\nexport type MapPropNamesToObjectType<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ObjectTypeDefinition,\n P extends ValidOsdkPropParams<FROM>,\n> = PropMapToObject<\n FROM,\n TO\n>[JustProps<FROM, P> & keyof PropMapToObject<FROM, TO>];\n\nexport type PropMapToInterface<\n FROM extends ObjectTypeDefinition,\n TO extends InterfaceDefinition,\n> = NonNullable<\n CompileTimeMetadata<FROM>[\"inverseInterfaceMap\"]\n>[ApiNameAsString<TO>];\n\nexport type MapPropNamesToInterface<\n FROM extends ObjectTypeDefinition,\n TO extends InterfaceDefinition,\n P extends ValidOsdkPropParams<FROM>,\n> = PropMapToInterface<\n FROM,\n TO\n>[JustProps<FROM, P> & keyof PropMapToInterface<FROM, TO>];\n/**\n * @param FROM - the interface or object type to convert from\n * @param TO - the interface or object type to convert to\n * @param P - the property(s) to convert\n */\nexport type ConvertProps<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ValidToFrom<FROM>,\n P extends ValidOsdkPropParams<FROM>,\n> = TO extends FROM ? P\n : TO extends ObjectTypeDefinition ? (\n UnionIfTrue<\n MapPropNamesToObjectType<FROM, TO, P>,\n P extends \"$rid\" ? true : false,\n \"$rid\"\n >\n )\n : TO extends InterfaceDefinition ? FROM extends ObjectTypeDefinition ? (\n UnionIfTrue<\n MapPropNamesToInterface<FROM, TO, P>,\n P extends \"$rid\" ? true : false,\n \"$rid\"\n >\n )\n : never\n : never;\n\n/** DO NOT EXPORT FROM PACKAGE */\nexport type ValidToFrom<\n FROM extends ObjectOrInterfaceDefinition,\n> = FROM extends InterfaceDefinition ? ObjectOrInterfaceDefinition\n : InterfaceDefinition;\n\n/**\n * @param P The properties to add from Q\n * @param Z The existing underlying properties\n */\ntype UnderlyingProps<\n Q extends ObjectOrInterfaceDefinition,\n P extends string,\n Z extends string,\n NEW_Q extends ValidToFrom<Q>,\n> =\n & Z\n & Q extends InterfaceDefinition\n ? NEW_Q extends ObjectTypeDefinition ? ConvertProps<Q, NEW_Q, P>\n : Z\n : Z;\n\nexport type IsNever<T> = [T] extends [never] ? true : false;\n\ntype ExtractPropsKeysFromOldPropsStyle<\n Q extends ObjectOrInterfaceDefinition,\n P extends ValidOsdkPropParams<Q>,\n> = P extends \"$all\" ? PropertyKeys<Q>\n : Exclude<P, \"$strict\" | \"$notStrict\" | \"$rid\">;\n\nexport type IsAny<T> = unknown extends T\n ? [keyof T] extends [never] ? false : true\n : false;\n\nexport type GetPropsKeys<\n Q extends ObjectOrInterfaceDefinition,\n P extends PropertyKeys<Q>,\n N extends boolean = false,\n> = IsNever<P> extends true ? N extends true ? never : PropertyKeys<Q>\n : IsAny<P> extends true ? PropertyKeys<Q>\n : P;\n\n/**\n * Use `Osdk.Instance` or `YourType.OsdkInstance`\n */\nexport type Osdk<\n Q extends ObjectOrInterfaceDefinition,\n OPTIONS extends string = never,\n P extends PropertyKeys<Q> = PropertyKeys<Q>,\n> =\n // no middle options is simplest\n IsNever<OPTIONS> extends true ? Osdk.Instance<Q, never, P>\n : IsAny<OPTIONS> extends true ? Osdk.Instance<Q, never, P>\n // Options only includes the two allowed in the new style\n : (IsNever<Exclude<OPTIONS, \"$rid\">>) extends true\n ? Osdk.Instance<Q, OPTIONS & \"$rid\", P>\n // else we are in the old style which was just Q and OPTIONS\n // and OPTIONS was $things + prop names\n : Osdk.Instance<\n Q,\n (\"$rid\" extends OPTIONS ? \"$rid\" : never),\n ExtractPropsKeysFromOldPropsStyle<Q, OPTIONS>\n >;\n\nexport namespace Osdk {\n export type Instance<\n Q extends ObjectOrInterfaceDefinition,\n OPTIONS extends never | \"$rid\" = never,\n P extends PropertyKeys<Q> = PropertyKeys<Q>,\n R extends Record<string, SimplePropertyDef> = {},\n > =\n & OsdkBase<Q>\n & Pick<\n CompileTimeMetadata<Q>[\"props\"],\n // If there aren't any additional properties, then we want GetPropsKeys to default to PropertyKeys<Q>\n GetPropsKeys<Q, P, [R] extends [{}] ? false : true>\n >\n & ([R] extends [never] ? {}\n : { [A in keyof R]: SimplePropertyDef.ToRuntimeProperty<R[A]> })\n & {\n readonly $link: Q extends { linksType?: any } ? Q[\"linksType\"]\n : Q extends ObjectTypeDefinition ? OsdkObjectLinksObject<Q>\n : never;\n\n readonly $as: <NEW_Q extends ValidToFrom<Q>>(\n type: NEW_Q | string,\n ) => Osdk.Instance<\n NEW_Q,\n OPTIONS,\n ConvertProps<Q, NEW_Q, P>\n >;\n\n readonly $clone: <NEW_PROPS extends PropertyKeys<Q>>(\n updatedObject?:\n | Osdk.Instance<Q, any, NEW_PROPS>\n | {\n [K in NEW_PROPS]?: CompileTimeMetadata<\n Q\n >[\"props\"][K];\n },\n ) => Osdk.Instance<Q, OPTIONS, P | NEW_PROPS>;\n }\n // We are hiding the $rid field if it wasn't requested as we want to discourage its use\n & (IsNever<OPTIONS> extends true ? {}\n : IsAny<OPTIONS> extends true ? {}\n : \"$rid\" extends OPTIONS ? { readonly $rid: string }\n : {});\n}\n\n/**\n * NOT EXPORTED FROM PACKAGE\n *\n * Anything you throw at this that is not `false` should always be `never`.\n *\n * This is structured in a way that it should always short circuit to never early.\n */\nexport type ExtractStrictOption<S extends NullabilityAdherence> =\n IsNever<S> extends true ? never\n : \"throw\" extends S ? never // catches any time \"throw\" still exists (including any)\n : \"drop\" extends S ? never // catches any time \"drop\" still exists (including any)\n : \"$notStrict\";\n\n/**\n * NOT EXPORTED FROM PACKAGE\n *\n * Anything you throw at this that is not exactly `true` should always be `never`.\n */\nexport type ExtractRidOption<R extends boolean> = // comment for readability\n IsNever<R> extends true ? never\n : DefaultToFalse<R> extends false ? never\n : \"$rid\";\n\n// not exported from package\nexport type ExtractOptions<\n R extends boolean,\n S extends NullabilityAdherence = NullabilityAdherence.Default,\n> = ExtractRidOption<R>;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA+EA;AACA;AACA;AACA;AACA;AAuBA;AAMA;AACA;AACA;AACA;AAiCA;AACA;AACA;AAFA,WAsBiBA,IAAI;AA6CrB;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AAMA","ignoreList":[]}
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
|
|
16
17
|
import { describe, expectTypeOf, it } from "vitest";
|
|
17
18
|
describe("ExtractOptions", () => {
|
|
18
19
|
describe("NullabilityAdherence Generic", () => {
|
|
@@ -70,6 +71,7 @@ describe("ExtractOptions", () => {
|
|
|
70
71
|
describe("Osdk.Instance", () => {
|
|
71
72
|
it("defaults to second argument never if omitted", () => {
|
|
72
73
|
expectTypeOf().toEqualTypeOf();
|
|
74
|
+
|
|
73
75
|
// ensure its the normal props
|
|
74
76
|
expectTypeOf().toEqualTypeOf();
|
|
75
77
|
});
|
|
@@ -84,6 +86,8 @@ describe("ExtractOptions", () => {
|
|
|
84
86
|
expectTypeOf().toEqualTypeOf();
|
|
85
87
|
});
|
|
86
88
|
it("Cannot use $notStrict", () => {
|
|
89
|
+
// @ts-expect-error
|
|
90
|
+
|
|
87
91
|
expectTypeOf().branded
|
|
88
92
|
// @ts-expect-error
|
|
89
93
|
.toEqualTypeOf();
|
|
@@ -103,36 +107,46 @@ describe("ExtractOptions", () => {
|
|
|
103
107
|
describe("Osdk<>", () => {
|
|
104
108
|
it("defaults to second argument never if omitted", () => {
|
|
105
109
|
expectTypeOf().toEqualTypeOf();
|
|
110
|
+
|
|
106
111
|
// expect no rid
|
|
107
112
|
expectTypeOf().toEqualTypeOf();
|
|
113
|
+
|
|
108
114
|
// ensure its the normal props
|
|
109
115
|
expectTypeOf().toEqualTypeOf();
|
|
110
116
|
});
|
|
111
117
|
it("returns $rid if only thing specified", () => {
|
|
112
118
|
expectTypeOf().toEqualTypeOf();
|
|
119
|
+
|
|
113
120
|
// expect rid
|
|
114
121
|
expectTypeOf().toEqualTypeOf();
|
|
122
|
+
|
|
115
123
|
// ensure its the normal props
|
|
116
124
|
expectTypeOf().toEqualTypeOf();
|
|
117
125
|
});
|
|
118
126
|
it("handles legacy properly: $rid and name", () => {
|
|
119
127
|
expectTypeOf().toEqualTypeOf();
|
|
128
|
+
|
|
120
129
|
// expect rid
|
|
121
130
|
expectTypeOf().toEqualTypeOf();
|
|
131
|
+
|
|
122
132
|
// ensure its the strict type
|
|
123
133
|
expectTypeOf().toEqualTypeOf();
|
|
124
134
|
});
|
|
125
135
|
it("handles legacy properly: $rid and $all", () => {
|
|
126
136
|
expectTypeOf().branded.toEqualTypeOf();
|
|
137
|
+
|
|
127
138
|
// expect rid
|
|
128
139
|
expectTypeOf().toEqualTypeOf();
|
|
140
|
+
|
|
129
141
|
// ensure its the normal props
|
|
130
142
|
expectTypeOf().toEqualTypeOf();
|
|
131
143
|
});
|
|
132
144
|
it("handles legacy properly: just $all", () => {
|
|
133
145
|
expectTypeOf().branded.toEqualTypeOf();
|
|
146
|
+
|
|
134
147
|
// expect no rid
|
|
135
148
|
expectTypeOf().toEqualTypeOf();
|
|
149
|
+
|
|
136
150
|
// ensure its the normal props
|
|
137
151
|
expectTypeOf().toEqualTypeOf();
|
|
138
152
|
});
|
|
@@ -140,6 +154,7 @@ describe("ExtractOptions", () => {
|
|
|
140
154
|
expectTypeOf().toEqualTypeOf();
|
|
141
155
|
// ensure its the normal props
|
|
142
156
|
expectTypeOf().toEqualTypeOf();
|
|
157
|
+
|
|
143
158
|
// expect no rid
|
|
144
159
|
expectTypeOf().toEqualTypeOf();
|
|
145
160
|
});
|
|
@@ -147,6 +162,7 @@ describe("ExtractOptions", () => {
|
|
|
147
162
|
expectTypeOf().branded.toEqualTypeOf();
|
|
148
163
|
// ensure its the normal props
|
|
149
164
|
expectTypeOf().toEqualTypeOf();
|
|
165
|
+
|
|
150
166
|
// expect no rid
|
|
151
167
|
expectTypeOf().toEqualTypeOf();
|
|
152
168
|
});
|
|
@@ -154,6 +170,7 @@ describe("ExtractOptions", () => {
|
|
|
154
170
|
expectTypeOf().branded.toEqualTypeOf();
|
|
155
171
|
// ensure its not the strict type
|
|
156
172
|
expectTypeOf().toEqualTypeOf();
|
|
173
|
+
|
|
157
174
|
// expect no rid
|
|
158
175
|
expectTypeOf().toEqualTypeOf();
|
|
159
176
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OsdkObjectFrom.test.js","names":["describe","expectTypeOf","it","toEqualTypeOf","branded","createObjectSetChannel"],"sources":["OsdkObjectFrom.test.js"],"sourcesContent":["/*\n * Copyright 2024 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 */\nimport { describe, expectTypeOf, it } from \"vitest\";\ndescribe(\"ExtractOptions\", () => {\n describe(\"NullabilityAdherence Generic\", () => {\n it(\"does not add $notStrict for any\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for never\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for false\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for throw\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for drop\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for drop | throw\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for drop | false\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for false | throw\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for drop | throw | false\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for NullabilityAdherence\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n });\n describe(\"Rid Generic\", () => {\n it(\"does not add $rid for false\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does add $rid for true\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does not add $rid for any\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does not add $rid for never\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does not add $rid for boolean\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does not add $rid for true | false\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n });\n describe(\"Osdk.Instance\", () => {\n it(\"defaults to second argument never if omitted\", () => {\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to second argument never if never\", () => {\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to second argument never if any\", () => {\n expectTypeOf().branded.toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"Cannot use $notStrict\", () => {\n expectTypeOf().branded\n // @ts-expect-error\n .toEqualTypeOf();\n // ensure its not the strict type\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to last argument all props if never\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n it(\"defaults to last argument all props if any\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n it(\"defaults to last argument exactly if specified\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n });\n describe(\"Osdk<>\", () => {\n it(\"defaults to second argument never if omitted\", () => {\n expectTypeOf().toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"returns $rid if only thing specified\", () => {\n expectTypeOf().toEqualTypeOf();\n // expect rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"handles legacy properly: $rid and name\", () => {\n expectTypeOf().toEqualTypeOf();\n // expect rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the strict type\n expectTypeOf().toEqualTypeOf();\n });\n it(\"handles legacy properly: $rid and $all\", () => {\n expectTypeOf().branded.toEqualTypeOf();\n // expect rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"handles legacy properly: just $all\", () => {\n expectTypeOf().branded.toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to second argument never if never\", () => {\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to second argument never if any\", () => {\n expectTypeOf().branded.toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n });\n it(\"Does not use $notStrict if requested with old type\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n // ensure its not the strict type\n expectTypeOf().toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to last argument all props if never\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n it(\"defaults to last argument all props if any\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n it(\"defaults to last argument exactly if specified\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n });\n describe(\"Inferred return types from fetchPage work\", () => {\n function createObjectSetChannel(objectSet) {\n return {};\n }\n class Helper {\n objectSet;\n constructor(objectSet) {\n this.objectSet = objectSet;\n }\n go() {\n return createObjectSetChannel(this.objectSet);\n }\n }\n it(\"is not $notStrict\", async () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,QAAQ,EAAEC,YAAY,EAAEC,EAAE,QAAQ,QAAQ;AACnDF,QAAQ,CAAC,gBAAgB,EAAE,MAAM;EAC7BA,QAAQ,CAAC,8BAA8B,EAAE,MAAM;IAC3CE,EAAE,CAAC,iCAAiC,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AAM;MACvDD,YAAY,CAAC,CAAC,CACTE,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;EACN,CAAC,CAAC;EACFH,QAAQ,CAAC,2CAA2C,EAAE,MAAM;IACxD,SAASK,sBAAsBA,CAAA,EAAY;MACvC,OAAO,CAAC,CAAC;IACb;IAUAH,EAAE,CAAC,mBAAmB,EAAE,YAAY;MAChCD,YAAY,CAAC,CAAC,CAACG,OAAO,CACjBD,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;EACN,CAAC,CAAC;AACN,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"OsdkObjectFrom.test.js","names":["describe","expectTypeOf","it","toEqualTypeOf","branded","createObjectSetChannel"],"sources":["OsdkObjectFrom.test.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { describe, expectTypeOf, it } from \"vitest\";\nimport type { NullabilityAdherence } from \"./object/FetchPageArgs.js\";\nimport type { ObjectSet } from \"./objectSet/ObjectSet.js\";\nimport type { ObjectOrInterfaceDefinition } from \"./ontology/ObjectOrInterface.js\";\nimport type { ExtractOptions, Osdk } from \"./OsdkObjectFrom.js\";\n\ndescribe(\"ExtractOptions\", () => {\n describe(\"NullabilityAdherence Generic\", () => {\n it(\"does not add $notStrict for any\", () => {\n expectTypeOf<ExtractOptions<any, any>>()\n .toEqualTypeOf<never>();\n });\n\n it(\"does not add $notStrict for never\", () => {\n expectTypeOf<ExtractOptions<any, never>>()\n .toEqualTypeOf<never>();\n });\n\n it(\"does not add $notStrict for false\", () => {\n expectTypeOf<ExtractOptions<any, false>>()\n .toEqualTypeOf<never>();\n });\n\n it(\"does not add $notStrict for throw\", () => {\n expectTypeOf<ExtractOptions<any, \"throw\">>()\n .toEqualTypeOf<never>();\n });\n\n it(\"does not add $notStrict for drop\", () => {\n expectTypeOf<ExtractOptions<any, \"drop\">>()\n .toEqualTypeOf<never>();\n });\n\n it(\"does not add $notStrict for drop | throw\", () => {\n expectTypeOf<ExtractOptions<any, \"drop\" | \"throw\">>()\n .toEqualTypeOf<never>();\n });\n\n it(\"does not add $notStrict for drop | false\", () => {\n expectTypeOf<ExtractOptions<any, \"drop\" | false>>()\n .toEqualTypeOf<never>();\n });\n it(\"does not add $notStrict for false | throw\", () => {\n expectTypeOf<ExtractOptions<any, false | \"throw\">>()\n .toEqualTypeOf<never>();\n });\n\n it(\"does not add $notStrict for drop | throw | false\", () => {\n expectTypeOf<ExtractOptions<any, \"drop\" | \"throw\" | false>>()\n .toEqualTypeOf<never>();\n });\n\n it(\"does not add $notStrict for NullabilityAdherence\", () => {\n expectTypeOf<ExtractOptions<any, NullabilityAdherence>>()\n .toEqualTypeOf<never>();\n });\n });\n\n describe(\"Rid Generic\", () => {\n it(\"does not add $rid for false\", () => {\n expectTypeOf<ExtractOptions<false, any>>().toEqualTypeOf<never>();\n });\n\n it(\"does add $rid for true\", () => {\n expectTypeOf<ExtractOptions<true, any>>().toEqualTypeOf<\"$rid\">();\n });\n\n it(\"does not add $rid for any\", () => {\n expectTypeOf<ExtractOptions<any, any>>().toEqualTypeOf<never>();\n });\n\n it(\"does not add $rid for never\", () => {\n expectTypeOf<ExtractOptions<never, any>>().toEqualTypeOf<never>();\n });\n\n it(\"does not add $rid for boolean\", () => {\n expectTypeOf<ExtractOptions<boolean, any>>().toEqualTypeOf<never>();\n });\n\n it(\"does not add $rid for true | false\", () => {\n expectTypeOf<ExtractOptions<true | false, any>>().toEqualTypeOf<never>();\n });\n });\n\n type quickAndDirty = {\n apiName: \"Foo\";\n type: \"object\";\n __DefinitionMetadata: {\n props: {\n name: string;\n foo: number | undefined;\n };\n strictProps: {\n name: string;\n foo: number;\n };\n apiName: \"Foo\";\n displayName: \"\";\n interfaceMap: {};\n inverseInterfaceMap: {};\n links: {};\n pluralDisplayName: \"\";\n primaryKeyApiName: \"\";\n primaryKeyType: \"string\";\n properties: {\n name: {\n type: \"string\";\n };\n foo: {\n type: \"integer\";\n };\n };\n rid: \"\";\n status: \"ACTIVE\";\n titleProperty: \"name\";\n type: \"object\";\n };\n };\n\n describe(\"Osdk.Instance\", () => {\n it(\"defaults to second argument never if omitted\", () => {\n type toCheck = Osdk.Instance<quickAndDirty>;\n expectTypeOf<toCheck>().toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never>\n >();\n\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n });\n\n it(\"defaults to second argument never if never\", () => {\n type toCheck = Osdk.Instance<quickAndDirty, never>;\n expectTypeOf<toCheck>().toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never>\n >();\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n });\n\n it(\"defaults to second argument never if any\", () => {\n type toCheck = Osdk.Instance<quickAndDirty, any>;\n expectTypeOf<toCheck>().branded.toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never>\n >();\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n });\n\n it(\"Cannot use $notStrict\", () => {\n // @ts-expect-error\n type toCheck = Osdk.Instance<quickAndDirty, \"$notStrict\">;\n\n expectTypeOf<toCheck>().branded\n // @ts-expect-error\n .toEqualTypeOf<Osdk.Instance<quickAndDirty, \"$notStrict\">>();\n // ensure its not the strict type\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n });\n\n it(\"defaults to last argument all props if never\", () => {\n expectTypeOf<Osdk.Instance<quickAndDirty, never, never>>().branded\n .toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never, \"name\" | \"foo\">\n >();\n });\n\n it(\"defaults to last argument all props if any\", () => {\n expectTypeOf<Osdk.Instance<quickAndDirty, never, any>>().branded\n .toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never, \"name\" | \"foo\">\n >();\n });\n\n it(\"defaults to last argument exactly if specified\", () => {\n expectTypeOf<Osdk.Instance<quickAndDirty, never, \"name\">>().branded\n .toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never, \"name\">\n >();\n });\n });\n\n describe(\"Osdk<>\", () => {\n it(\"defaults to second argument never if omitted\", () => {\n type toCheck = Osdk<quickAndDirty>;\n expectTypeOf<toCheck>().toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never>\n >();\n\n // expect no rid\n expectTypeOf<keyof toCheck & \"$rid\">().toEqualTypeOf<never>();\n\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n });\n\n it(\"returns $rid if only thing specified\", () => {\n type toCheck = Osdk<quickAndDirty, \"$rid\">;\n expectTypeOf<toCheck>().toEqualTypeOf<\n Osdk.Instance<quickAndDirty, \"$rid\">\n >();\n\n // expect rid\n expectTypeOf<keyof toCheck & \"$rid\">().toEqualTypeOf<\"$rid\">();\n\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n });\n\n it(\"handles legacy properly: $rid and name\", () => {\n type toCheck = Osdk<quickAndDirty, \"$rid\" | \"name\">;\n expectTypeOf<toCheck>().toEqualTypeOf<\n Osdk.Instance<quickAndDirty, \"$rid\", \"name\">\n >();\n\n // expect rid\n expectTypeOf<keyof toCheck & \"$rid\">().toEqualTypeOf<\"$rid\">();\n\n // ensure its the strict type\n expectTypeOf<Pick<toCheck, \"name\">>().toEqualTypeOf<{\n name: quickAndDirty[\"__DefinitionMetadata\"][\"strictProps\"][\"name\"];\n }>();\n });\n\n it(\"handles legacy properly: $rid and $all\", () => {\n type toCheck = Osdk<quickAndDirty, \"$rid\" | \"$all\">;\n expectTypeOf<toCheck>().branded.toEqualTypeOf<\n Osdk.Instance<quickAndDirty, \"$rid\", \"name\" | \"foo\">\n >();\n\n // expect rid\n expectTypeOf<keyof toCheck & \"$rid\">().toEqualTypeOf<\"$rid\">();\n\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n });\n\n it(\"handles legacy properly: just $all\", () => {\n type toCheck = Osdk<quickAndDirty, \"$all\">;\n expectTypeOf<toCheck>().branded.toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never, \"name\" | \"foo\">\n >();\n\n // expect no rid\n expectTypeOf<keyof toCheck & \"$rid\">().toEqualTypeOf<never>();\n\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n });\n\n it(\"defaults to second argument never if never\", () => {\n type toCheck = Osdk<quickAndDirty, never>;\n expectTypeOf<toCheck>().toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never>\n >();\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n\n // expect no rid\n expectTypeOf<keyof toCheck & \"$rid\">().toEqualTypeOf<never>();\n });\n\n it(\"defaults to second argument never if any\", () => {\n type toCheck = Osdk<quickAndDirty, any>;\n expectTypeOf<toCheck>().branded.toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never>\n >();\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n\n // expect no rid\n expectTypeOf<keyof toCheck & \"$rid\">().toEqualTypeOf<never>();\n });\n\n it(\"Does not use $notStrict if requested with old type\", () => {\n type toCheck = Osdk<quickAndDirty, \"$notStrict\">;\n expectTypeOf<toCheck>().branded\n .toEqualTypeOf<Osdk.Instance<quickAndDirty, never>>();\n // ensure its not the strict type\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n\n // expect no rid\n expectTypeOf<keyof toCheck & \"$rid\">().toEqualTypeOf<never>();\n });\n\n it(\"defaults to last argument all props if never\", () => {\n expectTypeOf<Osdk<quickAndDirty, never, never>>().branded\n .toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never, \"name\" | \"foo\">\n >();\n });\n\n it(\"defaults to last argument all props if any\", () => {\n expectTypeOf<Osdk<quickAndDirty, never, any>>().branded\n .toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never, \"name\" | \"foo\">\n >();\n });\n\n it(\"defaults to last argument exactly if specified\", () => {\n expectTypeOf<Osdk<quickAndDirty, never, \"name\">>()\n .toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never, \"name\">\n >();\n });\n });\n\n describe(\"Inferred return types from fetchPage work\", () => {\n function createObjectSetChannel<O extends ObjectOrInterfaceDefinition>(\n objectSet: ObjectSet<O>,\n ): Awaited<ReturnType<ObjectSet<O>[\"fetchPage\"]>>[\"data\"] {\n return {} as any;\n }\n\n class Helper<O extends ObjectOrInterfaceDefinition> {\n constructor(private objectSet: ObjectSet<O>) {}\n public go() {\n return createObjectSetChannel(this.objectSet);\n }\n }\n\n it(\"is not $notStrict\", async () => {\n expectTypeOf<ReturnType<Helper<quickAndDirty>[\"go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,EAAE,CAAC,oDAAoD,EAAE,MAAM;MAE7DD,YAAY,CAAU,CAAC,CAACG,OAAO,CAC5BD,aAAa,CAAsC,CAAC;MACvD;MACAF,YAAY,CAAgC,CAAC,CAACE,aAAa,CAEzD,CAAC;;MAEH;MACAF,YAAY,CAAyB,CAAC,CAACE,aAAa,CAAQ,CAAC;IAC/D,CAAC,CAAC;IAEFD,EAAE,CAAC,8CAA8C,EAAE,MAAM;MACvDD,YAAY,CAAoC,CAAC,CAACG,OAAO,CACtDD,aAAa,CAEZ,CAAC;IACP,CAAC,CAAC;IAEFD,EAAE,CAAC,4CAA4C,EAAE,MAAM;MACrDD,YAAY,CAAkC,CAAC,CAACG,OAAO,CACpDD,aAAa,CAEZ,CAAC;IACP,CAAC,CAAC;IAEFD,EAAE,CAAC,gDAAgD,EAAE,MAAM;MACzDD,YAAY,CAAqC,CAAC,CAC/CE,aAAa,CAEZ,CAAC;IACP,CAAC,CAAC;EACJ,CAAC,CAAC;EAEFH,QAAQ,CAAC,2CAA2C,EAAE,MAAM;IAC1D,SAASK,sBAAsBA,CAAA,EAE2B;MACxD,OAAO,CAAC,CAAC;IACX;IASAH,EAAE,CAAC,mBAAmB,EAAE,YAAY;MAClCD,YAAY,CAA0C,CAAC,CAACG,OAAO,CAC5DD,aAAa,CAEZ,CAAC;IACP,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 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
1
|
export {};
|
|
17
2
|
//# sourceMappingURL=OsdkObjectPrimaryKeyType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OsdkObjectPrimaryKeyType.js","names":[],"sources":["OsdkObjectPrimaryKeyType.
|
|
1
|
+
{"version":3,"file":"OsdkObjectPrimaryKeyType.js","names":[],"sources":["OsdkObjectPrimaryKeyType.ts"],"sourcesContent":["/*\n * Copyright 2024 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 { PropertyValueWireToClient } from \"./mapping/PropertyValueMapping.js\";\nimport type {\n CompileTimeMetadata,\n ObjectTypeDefinition,\n} from \"./ontology/ObjectTypeDefinition.js\";\n\nexport type OsdkObjectPrimaryKeyType<\n Q extends ObjectTypeDefinition,\n> = PropertyValueWireToClient[CompileTimeMetadata<Q>[\"primaryKeyType\"]];\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,17 +1,2 @@
|
|
|
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
1
|
export {};
|
|
17
2
|
//# sourceMappingURL=PageResult.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageResult.js","names":[],"sources":["PageResult.
|
|
1
|
+
{"version":3,"file":"PageResult.js","names":[],"sources":["PageResult.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 PageResult<T> {\n data: T[];\n nextPageToken: string | undefined;\n totalCount: string;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 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
1
|
export {};
|
|
17
2
|
//# sourceMappingURL=ActionResults.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionResults.js","names":[],"sources":["ActionResults.
|
|
1
|
+
{"version":3,"file":"ActionResults.js","names":[],"sources":["ActionResults.ts"],"sourcesContent":["/*\n * Copyright 2024 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\n// These are migrated from @osdk/foundry.internal to avoid coupling the apis\n\nexport type ActionResults =\n & (\n | ObjectEdits\n | LargeScaleObjectEdits\n )\n & { editedObjectTypes: Array<String> };\n\ninterface ObjectEdits {\n type: \"edits\";\n addedObjects: Array<ObjectReference>;\n modifiedObjects: Array<ObjectReference>;\n addedLinks: Array<LinkReference>;\n deletedObjectsCount: number;\n deletedLinksCount: number;\n}\ninterface LargeScaleObjectEdits {\n type: \"largeScaleEdits\";\n addedObjects?: never;\n modifiedObjects?: never;\n addedLinks?: never;\n deletedObjectsCount?: never;\n deletedLinksCount?: never;\n}\n\ntype LinkReference = {\n linkTypeApiNameAtoB: string;\n linkTypeApiNameBtoA: string;\n aSideObject: ObjectReference;\n bSideObject: ObjectReference;\n};\ninterface ObjectReference {\n primaryKey: string | number;\n objectType: string;\n}\nexport interface ValidateActionResponseV2 {\n result: \"VALID\" | \"INVALID\";\n submissionCriteria: Array<{\n configuredFailureMessage?: string;\n result: \"VALID\" | \"INVALID\";\n }>;\n parameters: Record<string, {\n result: \"VALID\" | \"INVALID\";\n evaluatedConstraints: Array<ParameterEvaluatedConstraint>;\n required: boolean;\n }>;\n}\ntype ParameterEvaluatedConstraint =\n | { type: \"arraySize\"; lt?: any; lte?: any; gt?: any; gte?: any }\n | { type: \"groupMember\" }\n | { type: \"objectPropertyValue\" }\n | { type: \"objectQueryResult\" }\n | {\n type: \"oneOf\";\n options: Array<{\n displayName?: string;\n value?: any;\n }>;\n otherValuesAllowed: boolean;\n }\n | { type: \"range\"; lt?: any; lte?: any; gt?: any; gte?: any }\n | { type: \"stringLength\"; lt?: any; lte?: any; gt?: any; gte?: any }\n | {\n type: \"stringRegexMatch\";\n regex: string;\n configuredFailureMessage?: string;\n }\n | { type: \"unevaluable\" };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2024 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
1
|
export {};
|
|
17
2
|
//# sourceMappingURL=ActionReturnTypeForOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionReturnTypeForOptions.js","names":[],"sources":["ActionReturnTypeForOptions.
|
|
1
|
+
{"version":3,"file":"ActionReturnTypeForOptions.js","names":[],"sources":["ActionReturnTypeForOptions.ts"],"sourcesContent":["/*\n * Copyright 2024 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 {\n ActionEditResponse,\n ActionValidationResponse,\n ApplyActionOptions,\n ApplyBatchActionOptions,\n} from \"./Actions.js\";\n\n// cannot specify both validateOnly and returnEdits as true\n\nexport type ActionReturnTypeForOptions<\n Op extends ApplyActionOptions | ApplyBatchActionOptions,\n> = Op extends { $validateOnly: true } ? ActionValidationResponse\n : Op extends { $returnEdits: true } ? ActionEditResponse\n : undefined;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -13,5 +13,8 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Helper types for converting action definition parameter types to typescript types
|
|
18
|
+
*/
|
|
19
|
+
export let ActionParam;
|
|
17
20
|
//# sourceMappingURL=Actions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Actions.js","names":[],"sources":["Actions.
|
|
1
|
+
{"version":3,"file":"Actions.js","names":["ActionParam"],"sources":["Actions.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\nimport type { DataValueClientToWire } from \"../mapping/DataValueMapping.js\";\nimport type { ObjectSet } from \"../objectSet/ObjectSet.js\";\nimport type { InterfaceDefinition } from \"../ontology/InterfaceDefinition.js\";\nimport type { ObjectTypeDefinition } from \"../ontology/ObjectTypeDefinition.js\";\nimport type { OsdkBase } from \"../OsdkBase.js\";\nimport type { OsdkObjectPrimaryKeyType } from \"../OsdkObjectPrimaryKeyType.js\";\n\nimport type {\n ActionResults,\n ValidateActionResponseV2,\n} from \"./ActionResults.js\";\n\nexport type ApplyActionOptions =\n | { $returnEdits?: true; $validateOnly?: false }\n | {\n $validateOnly?: true;\n $returnEdits?: false;\n };\n\nexport type ApplyBatchActionOptions = { $returnEdits?: boolean };\n\n/**\n * Helper types for converting action definition parameter types to typescript types\n */\nexport namespace ActionParam {\n /**\n * Helper type to convert action definition parameter primitives to typescript types\n */\n export type PrimitiveType<T extends keyof DataValueClientToWire> =\n DataValueClientToWire[T];\n\n /**\n * Helper type to convert action definition parameter object types to typescript types\n */\n export type ObjectType<T extends ObjectTypeDefinition> =\n | OsdkBase<T>\n | OsdkObjectPrimaryKeyType<T>;\n\n /**\n * Helper type to convert action definition parameter object sets to typescript types\n */\n export type ObjectSetType<T extends ObjectTypeDefinition> = ObjectSet<T>;\n\n /**\n * Helper type to convert action definition parameter interface types to typescript types\n */\n export type InterfaceType<T extends InterfaceDefinition> = {\n $objectType: NonNullable<T[\"__DefinitionMetadata\"]> extends\n { implementedBy: infer U }\n ? (U extends ReadonlyArray<string> ? U[number] : string)\n : string;\n $primaryKey: string | number;\n };\n\n export type StructType<\n T extends Record<string, keyof DataValueClientToWire>,\n > = { [K in keyof T]: DataValueClientToWire[T[K]] };\n}\n\nexport type ActionEditResponse = ActionResults;\nexport type ActionValidationResponse = ValidateActionResponseV2;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAuBA;AACA;AACA;AAFA,WAGiBA,WAAW","ignoreList":[]}
|