@osdk/api 2.0.0-beta.8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +131 -0
- package/build/browser/Definitions.d.ts +16 -0
- package/build/browser/Definitions.d.ts.map +1 -0
- package/build/browser/Definitions.js +17 -0
- package/build/browser/Definitions.js.map +1 -0
- package/build/browser/OsdkBase.d.ts +13 -0
- package/build/browser/OsdkBase.d.ts.map +1 -0
- package/build/browser/OsdkBase.js +17 -0
- package/build/browser/OsdkBase.js.map +1 -0
- package/build/browser/OsdkMetadata.js +17 -0
- package/build/browser/OsdkMetadata.js.map +1 -0
- package/build/browser/OsdkObject.d.ts +8 -0
- package/build/browser/OsdkObject.d.ts.map +1 -0
- package/build/browser/OsdkObject.js +17 -0
- package/build/browser/OsdkObject.js.map +1 -0
- package/build/browser/OsdkObjectFrom.d.ts +36 -0
- package/build/browser/OsdkObjectFrom.d.ts.map +1 -0
- package/build/browser/OsdkObjectFrom.js +17 -0
- package/build/browser/OsdkObjectFrom.js.map +1 -0
- package/build/browser/OsdkObjectPrimaryKeyType.d.ts +4 -0
- package/build/browser/OsdkObjectPrimaryKeyType.d.ts.map +1 -0
- package/build/browser/OsdkObjectPrimaryKeyType.js +17 -0
- package/build/browser/OsdkObjectPrimaryKeyType.js.map +1 -0
- package/build/browser/PageResult.d.ts +6 -0
- package/build/browser/PageResult.d.ts.map +1 -0
- package/build/browser/PageResult.js +17 -0
- package/build/browser/PageResult.js.map +1 -0
- package/build/browser/actions/ActionResults.d.ts +81 -0
- package/build/browser/actions/ActionResults.d.ts.map +1 -0
- package/build/browser/actions/ActionResults.js +17 -0
- package/build/browser/actions/ActionResults.js.map +1 -0
- package/build/browser/actions/ActionReturnTypeForOptions.d.ts +7 -0
- package/build/browser/actions/ActionReturnTypeForOptions.d.ts.map +1 -0
- package/build/browser/actions/ActionReturnTypeForOptions.js +17 -0
- package/build/browser/actions/ActionReturnTypeForOptions.js.map +1 -0
- package/build/browser/actions/Actions.d.ts +36 -0
- package/build/browser/actions/Actions.d.ts.map +1 -0
- package/build/browser/actions/Actions.js +17 -0
- package/build/browser/actions/Actions.js.map +1 -0
- package/build/browser/aggregate/AggregatableKeys.d.ts +16 -0
- package/build/browser/aggregate/AggregatableKeys.d.ts.map +1 -0
- package/build/browser/aggregate/AggregatableKeys.js +17 -0
- package/build/browser/aggregate/AggregatableKeys.js.map +1 -0
- package/build/browser/aggregate/AggregateOpts.d.ts +10 -0
- package/build/browser/aggregate/AggregateOpts.d.ts.map +1 -0
- package/build/browser/aggregate/AggregateOpts.js +17 -0
- package/build/browser/aggregate/AggregateOpts.js.map +1 -0
- package/build/browser/aggregate/AggregateOptsThatErrors.d.ts +17 -0
- package/build/browser/aggregate/AggregateOptsThatErrors.d.ts.map +1 -0
- package/build/browser/aggregate/AggregateOptsThatErrors.js +17 -0
- package/build/browser/aggregate/AggregateOptsThatErrors.js.map +1 -0
- package/build/browser/aggregate/AggregationResultsWithGroups.d.ts +17 -0
- package/build/browser/aggregate/AggregationResultsWithGroups.d.ts.map +1 -0
- package/build/browser/aggregate/AggregationResultsWithGroups.js +17 -0
- package/build/browser/aggregate/AggregationResultsWithGroups.js.map +1 -0
- package/build/browser/aggregate/AggregationResultsWithoutGroups.d.ts +13 -0
- package/build/browser/aggregate/AggregationResultsWithoutGroups.d.ts.map +1 -0
- package/build/browser/aggregate/AggregationResultsWithoutGroups.js +17 -0
- package/build/browser/aggregate/AggregationResultsWithoutGroups.js.map +1 -0
- package/build/browser/aggregate/AggregationsClause.d.ts +10 -0
- package/build/browser/aggregate/AggregationsClause.d.ts.map +1 -0
- package/build/browser/aggregate/AggregationsClause.js +17 -0
- package/build/browser/aggregate/AggregationsClause.js.map +1 -0
- package/build/browser/aggregate/AggregationsClause.test.d.ts +47 -0
- package/build/browser/aggregate/AggregationsClause.test.d.ts.map +1 -0
- package/build/browser/aggregate/AggregationsClause.test.js +20 -0
- package/build/browser/aggregate/AggregationsClause.test.js.map +1 -0
- package/build/browser/aggregate/AggregationsResults.d.ts +7 -0
- package/build/browser/aggregate/AggregationsResults.d.ts.map +1 -0
- package/build/browser/aggregate/AggregationsResults.js +17 -0
- package/build/browser/aggregate/AggregationsResults.js.map +1 -0
- package/build/browser/aggregate/WhereClause.d.ts +78 -0
- package/build/browser/aggregate/WhereClause.d.ts.map +1 -0
- package/build/browser/aggregate/WhereClause.js +40 -0
- package/build/browser/aggregate/WhereClause.js.map +1 -0
- package/build/browser/definitions/LinkDefinitions.d.ts +21 -0
- package/build/browser/definitions/LinkDefinitions.d.ts.map +1 -0
- package/build/browser/definitions/LinkDefinitions.js +17 -0
- package/build/browser/definitions/LinkDefinitions.js.map +1 -0
- package/build/browser/definitions/LinkDefinitions.test.d.ts +2 -0
- package/build/browser/definitions/LinkDefinitions.test.d.ts.map +1 -0
- package/build/browser/definitions/LinkDefinitions.test.js +25 -0
- package/build/browser/definitions/LinkDefinitions.test.js.map +1 -0
- package/build/browser/groupby/GroupByClause.d.ts +73 -0
- package/build/browser/groupby/GroupByClause.d.ts.map +1 -0
- package/build/browser/groupby/GroupByClause.js +22 -0
- package/build/browser/groupby/GroupByClause.js.map +1 -0
- package/build/browser/groupby/GroupByClause.test.d.ts +24 -0
- package/build/browser/groupby/GroupByClause.test.d.ts.map +1 -0
- package/build/browser/groupby/GroupByClause.test.js +20 -0
- package/build/browser/groupby/GroupByClause.test.js.map +1 -0
- package/build/browser/groupby/GroupByMapper.d.ts +14 -0
- package/build/browser/groupby/GroupByMapper.d.ts.map +1 -0
- package/build/browser/groupby/GroupByMapper.js +17 -0
- package/build/browser/groupby/GroupByMapper.js.map +1 -0
- package/build/browser/index.d.ts +42 -0
- package/build/browser/index.d.ts.map +1 -0
- package/build/browser/index.js +19 -2
- package/build/browser/index.js.map +1 -1
- package/build/browser/junk.test.js +22 -0
- package/build/browser/junk.test.js.map +1 -0
- package/build/browser/mapping/DataValueMapping.d.ts +71 -0
- package/build/browser/mapping/DataValueMapping.d.ts.map +1 -0
- package/build/browser/mapping/DataValueMapping.js +17 -0
- package/build/browser/mapping/DataValueMapping.js.map +1 -0
- package/build/browser/mapping/DurationMapping.d.ts +23 -0
- package/build/browser/mapping/DurationMapping.d.ts.map +1 -0
- package/build/browser/mapping/DurationMapping.js +38 -0
- package/build/browser/mapping/DurationMapping.js.map +1 -0
- package/build/browser/mapping/PropertyValueMapping.d.ts +47 -0
- package/build/browser/mapping/PropertyValueMapping.d.ts.map +1 -0
- package/build/browser/mapping/PropertyValueMapping.js +17 -0
- package/build/browser/mapping/PropertyValueMapping.js.map +1 -0
- package/build/browser/object/Attachment.d.ts +25 -0
- package/build/browser/object/Attachment.d.ts.map +1 -0
- package/build/browser/object/Attachment.js +17 -0
- package/build/browser/object/Attachment.js.map +1 -0
- package/build/browser/object/FetchPageArgs.d.ts +36 -0
- package/build/browser/object/FetchPageArgs.d.ts.map +1 -0
- package/build/browser/object/FetchPageArgs.js +17 -0
- package/build/browser/object/FetchPageArgs.js.map +1 -0
- package/build/browser/object/FetchPageResult.d.ts +15 -0
- package/build/browser/object/FetchPageResult.d.ts.map +1 -0
- package/build/browser/object/FetchPageResult.js +17 -0
- package/build/browser/object/FetchPageResult.js.map +1 -0
- package/build/browser/object/ObjectDefinitions.test.d.ts +2 -0
- package/build/browser/object/ObjectDefinitions.test.d.ts.map +1 -0
- package/build/browser/object/ObjectDefinitions.test.js +23 -0
- package/build/browser/object/ObjectDefinitions.test.js.map +1 -0
- package/build/browser/object/Result.d.ts +22 -0
- package/build/browser/object/Result.d.ts.map +1 -0
- package/build/browser/object/Result.js +32 -0
- package/build/browser/object/Result.js.map +1 -0
- package/build/browser/objectSet/BaseObjectSet.d.ts +7 -0
- package/build/browser/objectSet/BaseObjectSet.d.ts.map +1 -0
- package/build/browser/objectSet/BaseObjectSet.js +17 -0
- package/build/browser/objectSet/BaseObjectSet.js.map +1 -0
- package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts +18 -0
- package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts.map +1 -0
- package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.js +17 -0
- package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.js.map +1 -0
- package/build/browser/objectSet/ObjectSet.d.ts +145 -0
- package/build/browser/objectSet/ObjectSet.d.ts.map +1 -0
- package/build/browser/objectSet/ObjectSet.js +17 -0
- package/build/browser/objectSet/ObjectSet.js.map +1 -0
- package/build/browser/ontology/ActionDefinition.d.ts +46 -0
- package/build/browser/ontology/ActionDefinition.d.ts.map +1 -0
- package/build/browser/ontology/ActionDefinition.js +17 -0
- package/build/browser/ontology/ActionDefinition.js.map +1 -0
- package/build/browser/ontology/InterfaceDefinition.d.ts +12 -0
- package/build/browser/ontology/InterfaceDefinition.d.ts.map +1 -0
- package/build/browser/ontology/InterfaceDefinition.js +17 -0
- package/build/browser/ontology/InterfaceDefinition.js.map +1 -0
- package/build/browser/ontology/ObjectOrInterface.d.ts +5 -0
- package/build/browser/ontology/ObjectOrInterface.d.ts.map +1 -0
- package/build/browser/ontology/ObjectOrInterface.js +17 -0
- package/build/browser/ontology/ObjectOrInterface.js.map +1 -0
- package/build/browser/ontology/ObjectTypeDefinition.d.ts +83 -0
- package/build/browser/ontology/ObjectTypeDefinition.d.ts.map +1 -0
- package/build/browser/ontology/ObjectTypeDefinition.js +17 -0
- package/build/browser/ontology/ObjectTypeDefinition.js.map +1 -0
- package/build/browser/ontology/OntologyMetadata.js +17 -0
- package/build/browser/ontology/OntologyMetadata.js.map +1 -0
- package/build/browser/ontology/PrimaryKeyTypes.js +17 -0
- package/build/browser/ontology/PrimaryKeyTypes.js.map +1 -0
- package/build/{cjs/ontology/QueryDefinition.d.cts → browser/ontology/QueryDefinition.d.ts} +28 -20
- package/build/browser/ontology/QueryDefinition.d.ts.map +1 -0
- package/build/browser/ontology/QueryDefinition.js +17 -0
- package/build/browser/ontology/QueryDefinition.js.map +1 -0
- package/build/browser/ontology/VersionString.js +17 -0
- package/build/browser/ontology/VersionString.js.map +1 -0
- package/build/browser/ontology/WirePropertyTypes.js +17 -0
- package/build/browser/ontology/WirePropertyTypes.js.map +1 -0
- package/build/browser/public/unstable.d.ts +6 -0
- package/build/browser/public/unstable.d.ts.map +1 -0
- package/build/browser/public/unstable.js +19 -0
- package/build/browser/public/unstable.js.map +1 -0
- package/build/browser/queries/Queries.d.ts +41 -0
- package/build/browser/queries/Queries.d.ts.map +1 -0
- package/build/browser/queries/Queries.js +17 -0
- package/build/browser/queries/Queries.js.map +1 -0
- package/build/browser/timeseries/timeseries.d.ts +89 -0
- package/build/browser/timeseries/timeseries.d.ts.map +1 -0
- package/build/browser/timeseries/timeseries.js +22 -0
- package/build/browser/timeseries/timeseries.js.map +1 -0
- package/build/browser/util/LinkUtils.d.ts +5 -0
- package/build/browser/util/LinkUtils.d.ts.map +1 -0
- package/build/browser/util/LinkUtils.js +17 -0
- package/build/browser/util/LinkUtils.js.map +1 -0
- package/build/esm/Definitions.d.ts +16 -0
- package/build/esm/Definitions.d.ts.map +1 -0
- package/build/esm/Definitions.js +17 -0
- package/build/esm/Definitions.js.map +1 -0
- package/build/esm/OsdkBase.d.ts +13 -0
- package/build/esm/OsdkBase.d.ts.map +1 -0
- package/build/esm/OsdkBase.js +17 -0
- package/build/esm/OsdkBase.js.map +1 -0
- package/build/esm/OsdkMetadata.js +17 -0
- package/build/esm/OsdkMetadata.js.map +1 -0
- package/build/esm/OsdkObject.d.ts +8 -0
- package/build/esm/OsdkObject.d.ts.map +1 -0
- package/build/esm/OsdkObject.js +17 -0
- package/build/esm/OsdkObject.js.map +1 -0
- package/build/esm/OsdkObjectFrom.d.ts +36 -0
- package/build/esm/OsdkObjectFrom.d.ts.map +1 -0
- package/build/esm/OsdkObjectFrom.js +17 -0
- package/build/esm/OsdkObjectFrom.js.map +1 -0
- package/build/esm/OsdkObjectPrimaryKeyType.d.ts +4 -0
- package/build/esm/OsdkObjectPrimaryKeyType.d.ts.map +1 -0
- package/build/esm/OsdkObjectPrimaryKeyType.js +17 -0
- package/build/esm/OsdkObjectPrimaryKeyType.js.map +1 -0
- package/build/esm/PageResult.d.ts +6 -0
- package/build/esm/PageResult.d.ts.map +1 -0
- package/build/esm/PageResult.js +17 -0
- package/build/esm/PageResult.js.map +1 -0
- package/build/esm/actions/ActionResults.d.ts +81 -0
- package/build/esm/actions/ActionResults.d.ts.map +1 -0
- package/build/esm/actions/ActionResults.js +17 -0
- package/build/esm/actions/ActionResults.js.map +1 -0
- package/build/esm/actions/ActionReturnTypeForOptions.d.ts +7 -0
- package/build/esm/actions/ActionReturnTypeForOptions.d.ts.map +1 -0
- package/build/esm/actions/ActionReturnTypeForOptions.js +17 -0
- package/build/esm/actions/ActionReturnTypeForOptions.js.map +1 -0
- package/build/esm/actions/Actions.d.ts +36 -0
- package/build/esm/actions/Actions.d.ts.map +1 -0
- package/build/esm/actions/Actions.js +17 -0
- package/build/esm/actions/Actions.js.map +1 -0
- package/build/esm/aggregate/AggregatableKeys.d.ts +16 -0
- package/build/esm/aggregate/AggregatableKeys.d.ts.map +1 -0
- package/build/esm/aggregate/AggregatableKeys.js +17 -0
- package/build/esm/aggregate/AggregatableKeys.js.map +1 -0
- package/build/esm/aggregate/AggregateOpts.d.ts +10 -0
- package/build/esm/aggregate/AggregateOpts.d.ts.map +1 -0
- package/build/esm/aggregate/AggregateOpts.js +17 -0
- package/build/esm/aggregate/AggregateOpts.js.map +1 -0
- package/build/esm/aggregate/AggregateOptsThatErrors.d.ts +17 -0
- package/build/esm/aggregate/AggregateOptsThatErrors.d.ts.map +1 -0
- package/build/esm/aggregate/AggregateOptsThatErrors.js +17 -0
- package/build/esm/aggregate/AggregateOptsThatErrors.js.map +1 -0
- package/build/esm/aggregate/AggregationResultsWithGroups.d.ts +17 -0
- package/build/esm/aggregate/AggregationResultsWithGroups.d.ts.map +1 -0
- package/build/esm/aggregate/AggregationResultsWithGroups.js +17 -0
- package/build/esm/aggregate/AggregationResultsWithGroups.js.map +1 -0
- package/build/esm/aggregate/AggregationResultsWithoutGroups.d.ts +13 -0
- package/build/esm/aggregate/AggregationResultsWithoutGroups.d.ts.map +1 -0
- package/build/esm/aggregate/AggregationResultsWithoutGroups.js +17 -0
- package/build/esm/aggregate/AggregationResultsWithoutGroups.js.map +1 -0
- package/build/esm/aggregate/AggregationsClause.d.ts +10 -0
- package/build/esm/aggregate/AggregationsClause.d.ts.map +1 -0
- package/build/esm/aggregate/AggregationsClause.js +17 -0
- package/build/esm/aggregate/AggregationsClause.js.map +1 -0
- package/build/esm/aggregate/AggregationsClause.test.d.ts +47 -0
- package/build/esm/aggregate/AggregationsClause.test.d.ts.map +1 -0
- package/build/esm/aggregate/AggregationsClause.test.js +20 -0
- package/build/esm/aggregate/AggregationsClause.test.js.map +1 -0
- package/build/esm/aggregate/AggregationsResults.d.ts +7 -0
- package/build/esm/aggregate/AggregationsResults.d.ts.map +1 -0
- package/build/esm/aggregate/AggregationsResults.js +17 -0
- package/build/esm/aggregate/AggregationsResults.js.map +1 -0
- package/build/esm/aggregate/WhereClause.d.ts +78 -0
- package/build/esm/aggregate/WhereClause.d.ts.map +1 -0
- package/build/esm/aggregate/WhereClause.js +40 -0
- package/build/esm/aggregate/WhereClause.js.map +1 -0
- package/build/esm/definitions/LinkDefinitions.d.ts +21 -0
- package/build/esm/definitions/LinkDefinitions.d.ts.map +1 -0
- package/build/esm/definitions/LinkDefinitions.js +17 -0
- package/build/esm/definitions/LinkDefinitions.js.map +1 -0
- package/build/esm/definitions/LinkDefinitions.test.d.ts +2 -0
- package/build/esm/definitions/LinkDefinitions.test.d.ts.map +1 -0
- package/build/esm/definitions/LinkDefinitions.test.js +25 -0
- package/build/esm/definitions/LinkDefinitions.test.js.map +1 -0
- package/build/esm/groupby/GroupByClause.d.ts +73 -0
- package/build/esm/groupby/GroupByClause.d.ts.map +1 -0
- package/build/esm/groupby/GroupByClause.js +22 -0
- package/build/esm/groupby/GroupByClause.js.map +1 -0
- package/build/esm/groupby/GroupByClause.test.d.ts +24 -0
- package/build/esm/groupby/GroupByClause.test.d.ts.map +1 -0
- package/build/esm/groupby/GroupByClause.test.js +20 -0
- package/build/esm/groupby/GroupByClause.test.js.map +1 -0
- package/build/esm/groupby/GroupByMapper.d.ts +14 -0
- package/build/esm/groupby/GroupByMapper.d.ts.map +1 -0
- package/build/esm/groupby/GroupByMapper.js +17 -0
- package/build/esm/groupby/GroupByMapper.js.map +1 -0
- package/build/esm/index.d.ts +37 -6
- package/build/esm/index.d.ts.map +1 -1
- package/build/esm/index.js +19 -2
- package/build/esm/index.js.map +1 -1
- package/build/esm/junk.test.js +22 -0
- package/build/esm/junk.test.js.map +1 -0
- package/build/esm/mapping/DataValueMapping.d.ts +71 -0
- package/build/esm/mapping/DataValueMapping.d.ts.map +1 -0
- package/build/esm/mapping/DataValueMapping.js +17 -0
- package/build/esm/mapping/DataValueMapping.js.map +1 -0
- package/build/esm/mapping/DurationMapping.d.ts +23 -0
- package/build/esm/mapping/DurationMapping.d.ts.map +1 -0
- package/build/esm/mapping/DurationMapping.js +38 -0
- package/build/esm/mapping/DurationMapping.js.map +1 -0
- package/build/esm/mapping/PropertyValueMapping.d.ts +47 -0
- package/build/esm/mapping/PropertyValueMapping.d.ts.map +1 -0
- package/build/esm/mapping/PropertyValueMapping.js +17 -0
- package/build/esm/mapping/PropertyValueMapping.js.map +1 -0
- package/build/esm/object/Attachment.d.ts +25 -0
- package/build/esm/object/Attachment.d.ts.map +1 -0
- package/build/esm/object/Attachment.js +17 -0
- package/build/esm/object/Attachment.js.map +1 -0
- package/build/esm/object/FetchPageArgs.d.ts +36 -0
- package/build/esm/object/FetchPageArgs.d.ts.map +1 -0
- package/build/esm/object/FetchPageArgs.js +17 -0
- package/build/esm/object/FetchPageArgs.js.map +1 -0
- package/build/esm/object/FetchPageResult.d.ts +15 -0
- package/build/esm/object/FetchPageResult.d.ts.map +1 -0
- package/build/esm/object/FetchPageResult.js +17 -0
- package/build/esm/object/FetchPageResult.js.map +1 -0
- package/build/esm/object/ObjectDefinitions.test.d.ts +2 -0
- package/build/esm/object/ObjectDefinitions.test.d.ts.map +1 -0
- package/build/esm/object/ObjectDefinitions.test.js +23 -0
- package/build/esm/object/ObjectDefinitions.test.js.map +1 -0
- package/build/esm/object/Result.d.ts +22 -0
- package/build/esm/object/Result.d.ts.map +1 -0
- package/build/esm/object/Result.js +32 -0
- package/build/esm/object/Result.js.map +1 -0
- package/build/esm/objectSet/BaseObjectSet.d.ts +7 -0
- package/build/esm/objectSet/BaseObjectSet.d.ts.map +1 -0
- package/build/esm/objectSet/BaseObjectSet.js +17 -0
- package/build/esm/objectSet/BaseObjectSet.js.map +1 -0
- package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts +18 -0
- package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts.map +1 -0
- package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.js +17 -0
- package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.js.map +1 -0
- package/build/esm/objectSet/ObjectSet.d.ts +145 -0
- package/build/esm/objectSet/ObjectSet.d.ts.map +1 -0
- package/build/esm/objectSet/ObjectSet.js +17 -0
- package/build/esm/objectSet/ObjectSet.js.map +1 -0
- package/build/esm/ontology/ActionDefinition.d.ts +37 -26
- package/build/esm/ontology/ActionDefinition.d.ts.map +1 -1
- package/build/esm/ontology/ActionDefinition.js +17 -0
- package/build/esm/ontology/ActionDefinition.js.map +1 -0
- package/build/esm/ontology/InterfaceDefinition.d.ts +9 -3
- package/build/esm/ontology/InterfaceDefinition.d.ts.map +1 -1
- package/build/esm/ontology/InterfaceDefinition.js +17 -0
- package/build/esm/ontology/InterfaceDefinition.js.map +1 -0
- package/build/esm/ontology/ObjectOrInterface.d.ts +2 -2
- package/build/esm/ontology/ObjectOrInterface.d.ts.map +1 -1
- package/build/esm/ontology/ObjectOrInterface.js +17 -0
- package/build/esm/ontology/ObjectOrInterface.js.map +1 -0
- package/build/esm/ontology/ObjectTypeDefinition.d.ts +57 -41
- package/build/esm/ontology/ObjectTypeDefinition.d.ts.map +1 -1
- package/build/esm/ontology/ObjectTypeDefinition.js +17 -0
- package/build/esm/ontology/ObjectTypeDefinition.js.map +1 -0
- package/build/esm/ontology/OntologyMetadata.js +17 -0
- package/build/esm/ontology/OntologyMetadata.js.map +1 -0
- package/build/esm/ontology/PrimaryKeyTypes.js +17 -0
- package/build/esm/ontology/PrimaryKeyTypes.js.map +1 -0
- package/build/esm/ontology/QueryDefinition.d.ts +26 -18
- package/build/esm/ontology/QueryDefinition.d.ts.map +1 -1
- package/build/esm/ontology/QueryDefinition.js +17 -0
- package/build/esm/ontology/QueryDefinition.js.map +1 -0
- package/build/esm/ontology/VersionString.js +17 -0
- package/build/esm/ontology/VersionString.js.map +1 -0
- package/build/esm/ontology/WirePropertyTypes.js +17 -0
- package/build/esm/ontology/WirePropertyTypes.js.map +1 -0
- package/build/esm/public/unstable.d.ts +6 -0
- package/build/esm/public/unstable.d.ts.map +1 -0
- package/build/esm/public/unstable.js +19 -0
- package/build/esm/public/unstable.js.map +1 -0
- package/build/esm/queries/Queries.d.ts +41 -0
- package/build/esm/queries/Queries.d.ts.map +1 -0
- package/build/esm/queries/Queries.js +17 -0
- package/build/esm/queries/Queries.js.map +1 -0
- package/build/esm/timeseries/timeseries.d.ts +89 -0
- package/build/esm/timeseries/timeseries.d.ts.map +1 -0
- package/build/esm/timeseries/timeseries.js +22 -0
- package/build/esm/timeseries/timeseries.js.map +1 -0
- package/build/esm/util/LinkUtils.d.ts +5 -0
- package/build/esm/util/LinkUtils.d.ts.map +1 -0
- package/build/esm/util/LinkUtils.js +17 -0
- package/build/esm/util/LinkUtils.js.map +1 -0
- package/package.json +9 -10
- package/build/cjs/index.cjs +0 -4
- package/build/cjs/index.cjs.map +0 -1
- package/build/cjs/index.d.cts +0 -11
- package/build/cjs/index.d.ts.map +0 -1
- package/build/cjs/ontology/ActionDefinition.d.cts +0 -35
- package/build/cjs/ontology/ActionDefinition.d.ts.map +0 -1
- package/build/cjs/ontology/InterfaceDefinition.d.cts +0 -6
- package/build/cjs/ontology/InterfaceDefinition.d.ts.map +0 -1
- package/build/cjs/ontology/ObjectOrInterface.d.cts +0 -5
- package/build/cjs/ontology/ObjectOrInterface.d.ts.map +0 -1
- package/build/cjs/ontology/ObjectTypeDefinition.d.cts +0 -67
- package/build/cjs/ontology/ObjectTypeDefinition.d.ts.map +0 -1
- package/build/cjs/ontology/QueryDefinition.d.ts.map +0 -1
- package/build/cjs/ontology/index.d.cts +0 -7
- package/build/cjs/ontology/index.d.ts.map +0 -1
- package/build/esm/ontology/index.d.ts +0 -7
- package/build/esm/ontology/index.d.ts.map +0 -1
- /package/build/{cjs/OsdkMetadata.d.cts → browser/OsdkMetadata.d.ts} +0 -0
- /package/build/{cjs → browser}/OsdkMetadata.d.ts.map +0 -0
- /package/build/{cjs/junk.test.d.cts → browser/junk.test.d.ts} +0 -0
- /package/build/{cjs → browser}/junk.test.d.ts.map +0 -0
- /package/build/{cjs/ontology/OntologyMetadata.d.cts → browser/ontology/OntologyMetadata.d.ts} +0 -0
- /package/build/{cjs → browser}/ontology/OntologyMetadata.d.ts.map +0 -0
- /package/build/{cjs/ontology/PrimaryKeyTypes.d.cts → browser/ontology/PrimaryKeyTypes.d.ts} +0 -0
- /package/build/{cjs → browser}/ontology/PrimaryKeyTypes.d.ts.map +0 -0
- /package/build/{cjs/ontology/VersionString.d.cts → browser/ontology/VersionString.d.ts} +0 -0
- /package/build/{cjs → browser}/ontology/VersionString.d.ts.map +0 -0
- /package/build/{cjs/ontology/WirePropertyTypes.d.cts → browser/ontology/WirePropertyTypes.d.ts} +0 -0
- /package/build/{cjs → browser}/ontology/WirePropertyTypes.d.ts.map +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,136 @@
|
|
|
1
1
|
# @osdk/api
|
|
2
2
|
|
|
3
|
+
## 2.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 3affe49: Placeholder for breaking changes
|
|
8
|
+
- 9b0617d: Legacy types were removed
|
|
9
|
+
- 1252d94: ESM Only
|
|
10
|
+
- fe9547e: All types from @osdk/client.api merged into @osdk/api
|
|
11
|
+
- 56df85a: We now generate minimal object and interface types
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- dc25fb4: Code generation now uses MinQueryDef
|
|
16
|
+
- b946e00: Emitted action definition is minimal size now
|
|
17
|
+
- a2c7b37: Add docs for object sets and attachments.
|
|
18
|
+
- 0ea1a17: Fixes an issue where properties may not be inferred correctly when directly used in a return statement
|
|
19
|
+
- dc25fb4: Improve query generics
|
|
20
|
+
- 94105a5: Updates return type of actions to improve ease of use
|
|
21
|
+
- dc25fb4: Rename MinimumActionDefinition to MinActionDef
|
|
22
|
+
- a2c7b37: Enables better tree shaking
|
|
23
|
+
- dc25fb4: Further simplify types
|
|
24
|
+
- e6ade8b: Adds fetchMetadata method to client
|
|
25
|
+
- dc25fb4: Renamed definition types to metadata
|
|
26
|
+
- dc25fb4: Fixes edge cases in inferred return types especially when changing object types
|
|
27
|
+
- a2c7b37: Internal refactor for TimeSeriesProperty
|
|
28
|
+
- 795777a: Change how queries are executed, now use executeFunction call instead
|
|
29
|
+
- 95f9247: Adds In filter to Where clauses
|
|
30
|
+
- d2f75f9: Adding support for arguments in asyncIter similar to fetchPage. Arguments that are not permitted in asyncIter are nextPageToken and pageSize.
|
|
31
|
+
- b7cd0a1: Exposes unstable experimental features directly on client
|
|
32
|
+
- 512ee35: Exposed editedObjectTypes for all action results and split edits based on edit type.
|
|
33
|
+
- e86c505: Removed unused test file
|
|
34
|
+
- dc25fb4: Modified return type of fetchMetadata to return Object/Interface Definitions
|
|
35
|
+
- 0ce2858: Improves casting between Foo.ObjectSet and ObjectSet<Foo>
|
|
36
|
+
- dc25fb4: Expose parameters on action metadata
|
|
37
|
+
- 7c2db00: Updates QueryDefinition to include an optional generic argument
|
|
38
|
+
- dc25fb4: Simplified types
|
|
39
|
+
- dc25fb4: Updates return types of fetchMetadata to be Action and Query Definitions
|
|
40
|
+
- fc28eae: Fetching interfaces learns $\_\_EXPERIMENTAL_selectedObjectTypes
|
|
41
|
+
- dc25fb4: Renamed Min_Definition to \_Definition
|
|
42
|
+
- a9923f3: Adds exactDistinct to aggregations
|
|
43
|
+
- 1f633f7: Removed dependency on @osdk/client.api
|
|
44
|
+
- d4d6605: Audited and cleaned up deps
|
|
45
|
+
- 64818dc: Drop support for internal gateway package
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- Updated dependencies [1252d94]
|
|
50
|
+
- Updated dependencies [01724ae]
|
|
51
|
+
- Updated dependencies [d4d6605]
|
|
52
|
+
- Updated dependencies [64818dc]
|
|
53
|
+
- @osdk/shared.net@2.0.0
|
|
54
|
+
|
|
55
|
+
## 2.0.0-beta.16
|
|
56
|
+
|
|
57
|
+
### Minor Changes
|
|
58
|
+
|
|
59
|
+
- dc25fb4: Improve query generics
|
|
60
|
+
- dc25fb4: Further simplify types
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- @osdk/shared.net@2.0.0-beta.6
|
|
65
|
+
|
|
66
|
+
## 2.0.0-beta.15
|
|
67
|
+
|
|
68
|
+
### Minor Changes
|
|
69
|
+
|
|
70
|
+
- dc25fb4: Simplified types
|
|
71
|
+
|
|
72
|
+
## 2.0.0-beta.14
|
|
73
|
+
|
|
74
|
+
### Major Changes
|
|
75
|
+
|
|
76
|
+
- fe9547e: All types from @osdk/client.api merged into @osdk/api
|
|
77
|
+
|
|
78
|
+
### Minor Changes
|
|
79
|
+
|
|
80
|
+
- a2c7b37: Enables better tree shaking
|
|
81
|
+
- 1f633f7: Removed dependency on @osdk/client.api
|
|
82
|
+
- d4d6605: Audited and cleaned up deps
|
|
83
|
+
|
|
84
|
+
### Patch Changes
|
|
85
|
+
|
|
86
|
+
- Updated dependencies [d4d6605]
|
|
87
|
+
- @osdk/shared.net@2.0.0-beta.5
|
|
88
|
+
|
|
89
|
+
## 2.0.0-beta.13
|
|
90
|
+
|
|
91
|
+
### Minor Changes
|
|
92
|
+
|
|
93
|
+
- 1488144: Renamed definition types to metadata
|
|
94
|
+
- c28792e: Modified return type of fetchMetadata to return Object/Interface Definitions
|
|
95
|
+
- 26ee3bd: Updates return types of fetchMetadata to be Action and Query Definitions
|
|
96
|
+
- 6ab5d2e: Renamed Min_Definition to \_Definition
|
|
97
|
+
|
|
98
|
+
### Patch Changes
|
|
99
|
+
|
|
100
|
+
- @osdk/shared.net@2.0.0-beta.4
|
|
101
|
+
|
|
102
|
+
## 2.0.0-beta.12
|
|
103
|
+
|
|
104
|
+
## 2.0.0-beta.11
|
|
105
|
+
|
|
106
|
+
## 2.0.0-beta.10
|
|
107
|
+
|
|
108
|
+
### Major Changes
|
|
109
|
+
|
|
110
|
+
- 1252d94: ESM Only
|
|
111
|
+
- 56df85a: We now generate minimal object and interface types
|
|
112
|
+
|
|
113
|
+
### Minor Changes
|
|
114
|
+
|
|
115
|
+
- dc25fb4: Code generation now uses MinQueryDef
|
|
116
|
+
- dc25fb4: Rename MinimumActionDefinition to MinActionDef
|
|
117
|
+
|
|
118
|
+
### Patch Changes
|
|
119
|
+
|
|
120
|
+
- Updated dependencies [1252d94]
|
|
121
|
+
- @osdk/shared.net@2.0.0-beta.3
|
|
122
|
+
|
|
123
|
+
## 2.0.0-beta.9
|
|
124
|
+
|
|
125
|
+
### Minor Changes
|
|
126
|
+
|
|
127
|
+
- b946e00: Emitted action definition is minimal size now
|
|
128
|
+
|
|
129
|
+
### Patch Changes
|
|
130
|
+
|
|
131
|
+
- Updated dependencies [01724ae]
|
|
132
|
+
- @osdk/shared.net@2.0.0-beta.2
|
|
133
|
+
|
|
3
134
|
## 2.0.0-beta.8
|
|
4
135
|
|
|
5
136
|
### Patch Changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PropertyValueWireToClient } from "./mapping/PropertyValueMapping.js";
|
|
2
|
+
import type { ObjectMetadata } from "./ontology/ObjectTypeDefinition.js";
|
|
3
|
+
type MaybeArray<T extends {
|
|
4
|
+
multiplicity?: boolean | undefined;
|
|
5
|
+
}, U> = T["multiplicity"] extends true ? Array<U> : U;
|
|
6
|
+
type MaybeNullable<T extends ObjectMetadata.Property, U> = T["nullable"] extends true ? U | undefined : U;
|
|
7
|
+
type Raw<T> = T extends Array<any> ? T[0] : T;
|
|
8
|
+
type Converted<T> = T extends Array<any> ? T[1] : T;
|
|
9
|
+
/**
|
|
10
|
+
* @param {T} ObjectMetadata.Property in literal form
|
|
11
|
+
* @param {STRICTLY_ENFORCE_NULLABLE} S for strict. If false, always `|undefined`
|
|
12
|
+
*/
|
|
13
|
+
export type OsdkObjectPropertyType<T extends ObjectMetadata.Property, STRICTLY_ENFORCE_NULLABLE extends boolean = true> = STRICTLY_ENFORCE_NULLABLE extends false ? MaybeArray<T, Converted<PropertyValueWireToClient[T["type"]]>> | undefined : MaybeNullable<T, MaybeArray<T, Converted<PropertyValueWireToClient[T["type"]]>>>;
|
|
14
|
+
export type OsdkObjectRawPropertyType<T extends ObjectMetadata.Property> = MaybeNullable<T, MaybeArray<T, Raw<PropertyValueWireToClient[T["type"]]>>>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=Definitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Definitions.d.ts","sourceRoot":"","sources":["../../src/Definitions.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEzE,KAAK,UAAU,CAAC,CAAC,SAAS;IAAE,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,EAAE,CAAC,IACjE,CAAC,CAAC,cAAc,CAAC,SAAS,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAEhD,KAAK,aAAa,CAAC,CAAC,SAAS,cAAc,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,SACtE,IAAI,GAAG,CAAC,GAAG,SAAS,GAClB,CAAC,CAAC;AAEN,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAC9C,KAAK,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAEpD;;;GAGG;AACH,MAAM,MAAM,sBAAsB,CAChC,CAAC,SAAS,cAAc,CAAC,QAAQ,EACjC,yBAAyB,SAAS,OAAO,GAAG,IAAI,IAC9C,yBAAyB,SAAS,KAAK,GACvC,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,yBAAyB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,GAC1E,aAAa,CACb,CAAC,EACD,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,yBAAyB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAC/D,CAAC;AAEJ,MAAM,MAAM,yBAAyB,CAAC,CAAC,SAAS,cAAc,CAAC,QAAQ,IACrE,aAAa,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,yBAAyB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=Definitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Definitions.js","names":[],"sources":["Definitions.js"],"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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PropertyValueWireToClient } from "./mapping/PropertyValueMapping.js";
|
|
2
|
+
import type { ObjectOrInterfaceDefinition } from "./ontology/ObjectOrInterface.js";
|
|
3
|
+
import type { ObjectTypeDefinition } from "./ontology/ObjectTypeDefinition.js";
|
|
4
|
+
import type { PrimaryKeyTypes } from "./ontology/PrimaryKeyTypes.js";
|
|
5
|
+
import type { OsdkObjectPrimaryKeyType } from "./OsdkObjectPrimaryKeyType.js";
|
|
6
|
+
export type OsdkBase<Q extends ObjectOrInterfaceDefinition> = {
|
|
7
|
+
readonly $apiName: Q["apiName"];
|
|
8
|
+
readonly $objectType: string;
|
|
9
|
+
readonly $primaryKey: PrimaryKeyType<Q>;
|
|
10
|
+
readonly $title: string | undefined;
|
|
11
|
+
};
|
|
12
|
+
export type PrimaryKeyType<Q extends ObjectOrInterfaceDefinition> = (Q extends ObjectTypeDefinition ? OsdkObjectPrimaryKeyType<Q> : unknown) & PropertyValueWireToClient[PrimaryKeyTypes];
|
|
13
|
+
//# sourceMappingURL=OsdkBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OsdkBase.d.ts","sourceRoot":"","sources":["../../src/OsdkBase.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE9E,MAAM,MAAM,QAAQ,CAClB,CAAC,SAAS,2BAA2B,IACnC;IACF,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC;IAEhC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IAExC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,2BAA2B,IAC5D,CAAC,CAAC,SAAS,oBAAoB,GAAG,wBAAwB,CAAC,CAAC,CAAC,GAC3D,OAAO,CAAC,GAGV,yBAAyB,CAAC,eAAe,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=OsdkBase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OsdkBase.js","names":[],"sources":["OsdkBase.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=OsdkMetadata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OsdkMetadata.js","names":[],"sources":["OsdkMetadata.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PropertyValueWireToClient } from "./mapping/PropertyValueMapping.js";
|
|
2
|
+
import type { PrimaryKeyTypes } from "./ontology/PrimaryKeyTypes.js";
|
|
3
|
+
export type OsdkObject<N extends string> = {
|
|
4
|
+
readonly $apiName: N;
|
|
5
|
+
readonly $objectType: string;
|
|
6
|
+
readonly $primaryKey: PropertyValueWireToClient[PrimaryKeyTypes];
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=OsdkObject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OsdkObject.d.ts","sourceRoot":"","sources":["../../src/OsdkObject.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAErE,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,IAAI;IACzC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;IACrB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,yBAAyB,CAAC,eAAe,CAAC,CAAC;CAClE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=OsdkObject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OsdkObject.js","names":[],"sources":["OsdkObject.js"],"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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { OsdkObjectLinksObject } from "./definitions/LinkDefinitions.js";
|
|
2
|
+
import type { UnionIfTrue } from "./object/FetchPageResult.js";
|
|
3
|
+
import type { InterfaceDefinition } from "./ontology/InterfaceDefinition.js";
|
|
4
|
+
import type { ObjectOrInterfaceDefinition, PropertyKeys } from "./ontology/ObjectOrInterface.js";
|
|
5
|
+
import type { CompileTimeMetadata, ObjectTypeDefinition } from "./ontology/ObjectTypeDefinition.js";
|
|
6
|
+
import type { OsdkBase } from "./OsdkBase.js";
|
|
7
|
+
type SpecialOsdkPropParams = "$all" | "$rid" | "$strict" | "$notStrict";
|
|
8
|
+
type ValidOsdkPropParams<Q extends ObjectOrInterfaceDefinition> = SpecialOsdkPropParams | PropertyKeys<Q>;
|
|
9
|
+
export type ApiNameAsString<T extends ObjectOrInterfaceDefinition> = CompileTimeMetadata<T>["apiName"];
|
|
10
|
+
export type JustProps<T extends ObjectOrInterfaceDefinition, P extends ValidOsdkPropParams<T>> = P extends "$all" ? PropertyKeys<T> : Exclude<P, SpecialOsdkPropParams>;
|
|
11
|
+
export type PropMapToObject<FROM extends ObjectOrInterfaceDefinition, TO extends ObjectTypeDefinition> = NonNullable<CompileTimeMetadata<TO>["interfaceMap"]>[ApiNameAsString<FROM>];
|
|
12
|
+
export type MapPropNamesToObjectType<FROM extends ObjectOrInterfaceDefinition, TO extends ObjectTypeDefinition, P extends ValidOsdkPropParams<FROM>> = PropMapToObject<FROM, TO>[JustProps<FROM, P> & keyof PropMapToObject<FROM, TO>];
|
|
13
|
+
export type PropMapToInterface<FROM extends ObjectTypeDefinition, TO extends InterfaceDefinition> = NonNullable<CompileTimeMetadata<FROM>["inverseInterfaceMap"]>[ApiNameAsString<TO>];
|
|
14
|
+
export type MapPropNamesToInterface<FROM extends ObjectTypeDefinition, TO extends InterfaceDefinition, P extends ValidOsdkPropParams<FROM>> = PropMapToInterface<FROM, TO>[JustProps<FROM, P> & keyof PropMapToInterface<FROM, TO>];
|
|
15
|
+
/**
|
|
16
|
+
* @param FROM - the interface or object type to convert from
|
|
17
|
+
* @param TO - the interface or object type to convert to
|
|
18
|
+
* @param P - the property(s) to convert
|
|
19
|
+
*/
|
|
20
|
+
export type ConvertProps<FROM extends ObjectOrInterfaceDefinition, TO extends ValidToFrom<FROM>, P extends ValidOsdkPropParams<FROM>> = TO extends FROM ? P : TO extends ObjectTypeDefinition ? (UnionIfTrue<MapPropNamesToObjectType<FROM, TO, P>, P extends "$rid" ? true : false, "$rid">) : TO extends InterfaceDefinition ? FROM extends ObjectTypeDefinition ? (UnionIfTrue<MapPropNamesToInterface<FROM, TO, P>, P extends "$rid" ? true : false, "$rid">) : never : never;
|
|
21
|
+
/** DO NOT EXPORT FROM PACKAGE */
|
|
22
|
+
export type ValidToFrom<FROM extends ObjectOrInterfaceDefinition> = FROM extends InterfaceDefinition ? ObjectOrInterfaceDefinition : InterfaceDefinition;
|
|
23
|
+
export type IsNever<T> = [T] extends [never] ? true : false;
|
|
24
|
+
type GetPropsKeys<Q extends ObjectOrInterfaceDefinition, P extends ValidOsdkPropParams<Q>> = P extends "$all" ? PropertyKeys<Q> : Exclude<P, "$strict" | "$notStrict" | "$rid">;
|
|
25
|
+
type GetProps<Q extends ObjectOrInterfaceDefinition, P extends ValidOsdkPropParams<Q>> = P extends "$notStrict" ? CompileTimeMetadata<Q>["props"] : CompileTimeMetadata<Q>["strictProps"];
|
|
26
|
+
export type Osdk<Q extends ObjectOrInterfaceDefinition, P extends ValidOsdkPropParams<Q> = "$all"> = OsdkBase<Q> & Pick<GetProps<Q, P>, GetPropsKeys<Q, P>> & {
|
|
27
|
+
readonly $link: Q extends {
|
|
28
|
+
linksType?: any;
|
|
29
|
+
} ? Q["linksType"] : Q extends ObjectTypeDefinition ? OsdkObjectLinksObject<Q> : never;
|
|
30
|
+
readonly $as: <NEW_Q extends ValidToFrom<Q>>(type: NEW_Q | string) => Osdk<NEW_Q, ConvertProps<Q, NEW_Q, P>>;
|
|
31
|
+
} & (IsNever<P> extends true ? {} : string extends P ? {} : "$rid" extends P ? {
|
|
32
|
+
readonly $rid: string;
|
|
33
|
+
} : {});
|
|
34
|
+
export type OsdkObjectOrInterfaceFrom<Q extends ObjectOrInterfaceDefinition, P extends string = PropertyKeys<Q>> = Osdk<Q, P>;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=OsdkObjectFrom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OsdkObjectFrom.d.ts","sourceRoot":"","sources":["../../src/OsdkObjectFrom.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,KAAK,EACV,2BAA2B,EAC3B,YAAY,EACb,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAY9C,KAAK,qBAAqB,GACtB,MAAM,GACN,MAAM,GACN,SAAS,GACT,YAAY,CAAC;AAEjB,KAAK,mBAAmB,CAAC,CAAC,SAAS,2BAA2B,IAC1D,qBAAqB,GACrB,YAAY,CAAC,CAAC,CAAC,CAAC;AAEpB,MAAM,MAAM,eAAe,CACzB,CAAC,SAAS,2BAA2B,IACnC,mBAAmB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AAEtC,MAAM,MAAM,SAAS,CACnB,CAAC,SAAS,2BAA2B,EACrC,CAAC,SAAS,m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,GACX,IAAI,CACJ,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,EACd,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CACnB,GACC;IACA,QAAQ,CAAC,KAAK,EAAE,CAAC,SAAS;QAAE,SAAS,CAAC,EAAE,GAAG,CAAA;KAAE,GAAG,CAAC,CAAC,WAAW,CAAC,GAC1D,CAAC,SAAS,oBAAoB,GAAG,qBAAqB,CAAC,CAAC,CAAC,GACzD,KAAK,CAAC;IAEV,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,SAAS,WAAW,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,GAAG,MAAM,KAAK,IAAI,CACxE,KAAK,EACL,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAC1B,CAAC;CACH,GAEC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,IAAI,GAAG,EAAE,GAC3B,MAAM,SAAS,CAAC,GAAG,EAAE,GACrB,MAAM,SAAS,CAAC,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC5C,EAAE,CAAC,CAAC;AAEV,MAAM,MAAM,yBAAyB,CACnC,CAAC,SAAS,2BAA2B,EACrC,CAAC,SAAS,MAAM,GAAG,YAAY,CAAC,CAAC,CAAC,IAChC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=OsdkObjectFrom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OsdkObjectFrom.js","names":[],"sources":["OsdkObjectFrom.js"],"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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { PropertyValueWireToClient } from "./mapping/PropertyValueMapping.js";
|
|
2
|
+
import type { CompileTimeMetadata, ObjectTypeDefinition } from "./ontology/ObjectTypeDefinition.js";
|
|
3
|
+
export type OsdkObjectPrimaryKeyType<Q extends ObjectTypeDefinition> = PropertyValueWireToClient[CompileTimeMetadata<Q>["primaryKeyType"]];
|
|
4
|
+
//# sourceMappingURL=OsdkObjectPrimaryKeyType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OsdkObjectPrimaryKeyType.d.ts","sourceRoot":"","sources":["../../src/OsdkObjectPrimaryKeyType.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,oCAAoC,CAAC;AAE5C,MAAM,MAAM,wBAAwB,CAClC,CAAC,SAAS,oBAAoB,IAC5B,yBAAyB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=OsdkObjectPrimaryKeyType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OsdkObjectPrimaryKeyType.js","names":[],"sources":["OsdkObjectPrimaryKeyType.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageResult.d.ts","sourceRoot":"","sources":["../../src/PageResult.ts"],"names":[],"mappings":"AAkBA,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=PageResult.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageResult.js","names":[],"sources":["PageResult.js"],"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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
export type ActionResults = (ObjectEdits | LargeScaleObjectEdits) & {
|
|
2
|
+
editedObjectTypes: Array<String>;
|
|
3
|
+
};
|
|
4
|
+
interface ObjectEdits {
|
|
5
|
+
type: "edits";
|
|
6
|
+
addedObjects: Array<ObjectReference>;
|
|
7
|
+
modifiedObjects: Array<ObjectReference>;
|
|
8
|
+
addedLinks: Array<LinkReference>;
|
|
9
|
+
deletedObjectsCount: number;
|
|
10
|
+
deletedLinksCount: number;
|
|
11
|
+
}
|
|
12
|
+
interface LargeScaleObjectEdits {
|
|
13
|
+
type: "largeScaleEdits";
|
|
14
|
+
addedObjects?: never;
|
|
15
|
+
modifiedObjects?: never;
|
|
16
|
+
addedLinks?: never;
|
|
17
|
+
deletedObjectsCount?: never;
|
|
18
|
+
deletedLinksCount?: never;
|
|
19
|
+
}
|
|
20
|
+
type LinkReference = {
|
|
21
|
+
linkTypeApiNameAtoB: string;
|
|
22
|
+
linkTypeApiNameBtoA: string;
|
|
23
|
+
aSideObject: ObjectReference;
|
|
24
|
+
bSideObject: ObjectReference;
|
|
25
|
+
};
|
|
26
|
+
interface ObjectReference {
|
|
27
|
+
primaryKey: string | number;
|
|
28
|
+
objectType: string;
|
|
29
|
+
}
|
|
30
|
+
export interface ValidateActionResponseV2 {
|
|
31
|
+
result: "VALID" | "INVALID";
|
|
32
|
+
submissionCriteria: Array<{
|
|
33
|
+
configuredFailureMessage?: string;
|
|
34
|
+
result: "VALID" | "INVALID";
|
|
35
|
+
}>;
|
|
36
|
+
parameters: Record<string, {
|
|
37
|
+
result: "VALID" | "INVALID";
|
|
38
|
+
evaluatedConstraints: Array<ParameterEvaluatedConstraint>;
|
|
39
|
+
required: boolean;
|
|
40
|
+
}>;
|
|
41
|
+
}
|
|
42
|
+
type ParameterEvaluatedConstraint = {
|
|
43
|
+
type: "arraySize";
|
|
44
|
+
lt?: any;
|
|
45
|
+
lte?: any;
|
|
46
|
+
gt?: any;
|
|
47
|
+
gte?: any;
|
|
48
|
+
} | {
|
|
49
|
+
type: "groupMember";
|
|
50
|
+
} | {
|
|
51
|
+
type: "objectPropertyValue";
|
|
52
|
+
} | {
|
|
53
|
+
type: "objectQueryResult";
|
|
54
|
+
} | {
|
|
55
|
+
type: "oneOf";
|
|
56
|
+
options: Array<{
|
|
57
|
+
displayName?: string;
|
|
58
|
+
value?: any;
|
|
59
|
+
}>;
|
|
60
|
+
otherValuesAllowed: boolean;
|
|
61
|
+
} | {
|
|
62
|
+
type: "range";
|
|
63
|
+
lt?: any;
|
|
64
|
+
lte?: any;
|
|
65
|
+
gt?: any;
|
|
66
|
+
gte?: any;
|
|
67
|
+
} | {
|
|
68
|
+
type: "stringLength";
|
|
69
|
+
lt?: any;
|
|
70
|
+
lte?: any;
|
|
71
|
+
gt?: any;
|
|
72
|
+
gte?: any;
|
|
73
|
+
} | {
|
|
74
|
+
type: "stringRegexMatch";
|
|
75
|
+
regex: string;
|
|
76
|
+
configuredFailureMessage?: string;
|
|
77
|
+
} | {
|
|
78
|
+
type: "unevaluable";
|
|
79
|
+
};
|
|
80
|
+
export {};
|
|
81
|
+
//# sourceMappingURL=ActionResults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionResults.d.ts","sourceRoot":"","sources":["../../../src/actions/ActionResults.ts"],"names":[],"mappings":"AAkBA,MAAM,MAAM,aAAa,GACrB,CACE,WAAW,GACX,qBAAqB,CACxB,GACC;IAAE,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;CAAE,CAAC;AAEzC,UAAU,WAAW;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IACrC,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;IACxC,UAAU,EAAE,KAAK,CAAC,aAAa,C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AAE,GACvB;IAAE,IAAI,EAAE,qBAAqB,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,GAC7B;IACA,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,KAAK,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,GAAG,CAAC;KACb,CAAC,CAAC;IACH,kBAAkB,EAAE,OAAO,CAAC;CAC7B,GACC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,EAAE,CAAC,EAAE,GAAG,CAAC;IAAC,GAAG,CAAC,EAAE,GAAG,CAAC;IAAC,EAAE,CAAC,EAAE,GAAG,CAAC;IAAC,GAAG,CAAC,EAAE,GAAG,CAAA;CAAE,GAC3D;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,EAAE,CAAC,EAAE,GAAG,CAAC;IAAC,GAAG,CAAC,EAAE,GAAG,CAAC;IAAC,EAAE,CAAC,EAAE,GAAG,CAAC;IAAC,GAAG,CAAC,EAAE,GAAG,CAAA;CAAE,GAClE;IACA,IAAI,EAAE,kBAAkB,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACnC,GACC;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=ActionResults.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionResults.js","names":[],"sources":["ActionResults.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ActionEditResponse, ActionValidationResponse, ApplyActionOptions, ApplyBatchActionOptions } from "./Actions.js";
|
|
2
|
+
export type ActionReturnTypeForOptions<Op extends ApplyActionOptions | ApplyBatchActionOptions> = Op extends {
|
|
3
|
+
$validateOnly: true;
|
|
4
|
+
} ? ActionValidationResponse : Op extends {
|
|
5
|
+
$returnEdits: true;
|
|
6
|
+
} ? ActionEditResponse : undefined;
|
|
7
|
+
//# sourceMappingURL=ActionReturnTypeForOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionReturnTypeForOptions.d.ts","sourceRoot":"","sources":["../../../src/actions/ActionReturnTypeForOptions.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACxB,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,0BAA0B,CACpC,EAAE,SAAS,kBAAkB,GAAG,uBAAuB,IACrD,EAAE,SAAS;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,GAAG,wBAAwB,GAC7D,EAAE,SAAS;IAAE,YAAY,EAAE,IAAI,CAAA;CAAE,GAAG,kBAAkB,GACtD,SAAS,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=ActionReturnTypeForOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionReturnTypeForOptions.js","names":[],"sources":["ActionReturnTypeForOptions.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { DataValueClientToWire } from "../mapping/DataValueMapping.js";
|
|
2
|
+
import type { BaseObjectSet } from "../objectSet/BaseObjectSet.js";
|
|
3
|
+
import type { ObjectTypeDefinition } from "../ontology/ObjectTypeDefinition.js";
|
|
4
|
+
import type { OsdkBase } from "../OsdkBase.js";
|
|
5
|
+
import type { OsdkObjectPrimaryKeyType } from "../OsdkObjectPrimaryKeyType.js";
|
|
6
|
+
import type { ActionResults, ValidateActionResponseV2 } from "./ActionResults.js";
|
|
7
|
+
export type ApplyActionOptions = {
|
|
8
|
+
$returnEdits?: true;
|
|
9
|
+
$validateOnly?: false;
|
|
10
|
+
} | {
|
|
11
|
+
$validateOnly?: true;
|
|
12
|
+
$returnEdits?: false;
|
|
13
|
+
};
|
|
14
|
+
export type ApplyBatchActionOptions = {
|
|
15
|
+
$returnEdits?: boolean;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Helper types for converting action definition parameter types to typescript types
|
|
19
|
+
*/
|
|
20
|
+
export declare namespace ActionParam {
|
|
21
|
+
/**
|
|
22
|
+
* Helper type to convert action definition parameter primitives to typescript types
|
|
23
|
+
*/
|
|
24
|
+
type PrimitiveType<T extends keyof DataValueClientToWire> = DataValueClientToWire[T];
|
|
25
|
+
/**
|
|
26
|
+
* Helper type to convert action definition parameter object types to typescript types
|
|
27
|
+
*/
|
|
28
|
+
type ObjectType<T extends ObjectTypeDefinition> = OsdkBase<T> | OsdkObjectPrimaryKeyType<T>;
|
|
29
|
+
/**
|
|
30
|
+
* Helper type to convert action definition parameter object sets to typescript types
|
|
31
|
+
*/
|
|
32
|
+
type ObjectSetType<T extends ObjectTypeDefinition> = BaseObjectSet<T>;
|
|
33
|
+
}
|
|
34
|
+
export type ActionEditResponse = ActionResults;
|
|
35
|
+
export type ActionValidationResponse = ValidateActionResponseV2;
|
|
36
|
+
//# sourceMappingURL=Actions.d.ts.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0 +1,17 @@
|
|
|
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
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=Actions.js.map
|