@osdk/client 2.6.0-beta.1 → 2.6.0-beta.11
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 +134 -0
- package/build/browser/Client.js +1 -1
- package/build/browser/Client.js.map +1 -1
- package/build/browser/MinimalClientContext.js.map +1 -1
- package/build/browser/createClient.js +1 -1
- package/build/browser/createClient.js.map +1 -1
- package/build/browser/createClient.test.js +19 -1
- package/build/browser/createClient.test.js.map +1 -1
- package/build/browser/createMinimalClient.js +1 -1
- package/build/browser/createMinimalClient.js.map +1 -1
- package/build/browser/derivedProperties/createWithPropertiesObjectSet.js +2 -1
- package/build/browser/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
- package/build/browser/fetchMetadata.test.js +11 -0
- package/build/browser/fetchMetadata.test.js.map +1 -1
- package/build/browser/index.js.map +1 -1
- package/build/browser/internal/conversions/extractNamespace.js +22 -0
- package/build/browser/internal/conversions/extractNamespace.js.map +1 -0
- package/build/browser/internal/conversions/fullyQualifyPropName.js +26 -0
- package/build/browser/internal/conversions/fullyQualifyPropName.js.map +1 -0
- package/build/browser/internal/conversions/makeGeoFilterBbox.js +41 -0
- package/build/browser/internal/conversions/makeGeoFilterBbox.js.map +1 -0
- package/build/browser/internal/conversions/makeGeoFilterIntersects.js +29 -0
- package/build/browser/internal/conversions/makeGeoFilterIntersects.js.map +1 -0
- package/build/browser/internal/conversions/makeGeoFilterPolygon.js +30 -0
- package/build/browser/internal/conversions/makeGeoFilterPolygon.js.map +1 -0
- package/build/browser/internal/conversions/makeGeoFilterWithin.js +48 -0
- package/build/browser/internal/conversions/makeGeoFilterWithin.js.map +1 -0
- package/build/browser/internal/conversions/modernToLegacyWhereClause.js +59 -105
- package/build/browser/internal/conversions/modernToLegacyWhereClause.js.map +1 -1
- package/build/browser/internal/conversions/modernToLegacyWhereClause.test.js +309 -0
- package/build/browser/internal/conversions/modernToLegacyWhereClause.test.js.map +1 -1
- package/build/browser/object/aggregate.js +2 -1
- package/build/browser/object/aggregate.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects/BaseHolder.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects/InterfaceHolder.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js +5 -1
- package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js +10 -0
- package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -1
- package/build/browser/object/convertWireToOsdkObjects.test.js +12 -0
- package/build/browser/object/convertWireToOsdkObjects.test.js.map +1 -1
- package/build/browser/object/fetchPage.js +7 -4
- package/build/browser/object/fetchPage.js.map +1 -1
- package/build/browser/object/formatting/applyPropertyFormatter.js +58 -0
- package/build/browser/object/formatting/applyPropertyFormatter.js.map +1 -0
- package/build/browser/object/formatting/applyPropertyFormatter.test.js +726 -0
- package/build/browser/object/formatting/applyPropertyFormatter.test.js.map +1 -0
- package/build/browser/object/formatting/formatBoolean.js +23 -0
- package/build/browser/object/formatting/formatBoolean.js.map +1 -0
- package/build/browser/object/formatting/formatDateTime.js +158 -0
- package/build/browser/object/formatting/formatDateTime.js.map +1 -0
- package/build/browser/object/formatting/formatNumber.js +242 -0
- package/build/browser/object/formatting/formatNumber.js.map +1 -0
- package/build/browser/object/formatting/propertyFormattingUtils.js +39 -0
- package/build/browser/object/formatting/propertyFormattingUtils.js.map +1 -0
- package/build/browser/object/mediaUpload.js +1 -1
- package/build/browser/object/mediaUpload.js.map +1 -1
- package/build/browser/objectSet/ObjectSetListenerWebsocket.js +17 -0
- package/build/browser/objectSet/ObjectSetListenerWebsocket.js.map +1 -1
- package/build/browser/observable/ObservableClient.js.map +1 -1
- package/build/browser/observable/internal/BulkObjectLoader.js +12 -4
- package/build/browser/observable/internal/BulkObjectLoader.js.map +1 -1
- package/build/browser/observable/internal/BulkObjectLoader.test.js +48 -0
- package/build/browser/observable/internal/BulkObjectLoader.test.js.map +1 -1
- package/build/browser/observable/internal/CacheKeys.js +9 -3
- package/build/browser/observable/internal/CacheKeys.js.map +1 -1
- package/build/browser/observable/internal/Canonicalizer.js +51 -0
- package/build/browser/observable/internal/Canonicalizer.js.map +1 -0
- package/build/browser/observable/internal/Changes.js.map +1 -1
- package/build/browser/observable/internal/IntersectCanonicalizer.js +35 -0
- package/build/browser/observable/internal/IntersectCanonicalizer.js.map +1 -0
- package/build/browser/observable/internal/KnownCacheKey.js.map +1 -1
- package/build/browser/observable/internal/ObservableClientImpl.js +3 -0
- package/build/browser/observable/internal/ObservableClientImpl.js.map +1 -1
- package/build/browser/observable/internal/OrderByCanonicalizer.js +1 -4
- package/build/browser/observable/internal/OrderByCanonicalizer.js.map +1 -1
- package/build/browser/observable/internal/PivotCanonicalizer.js +33 -0
- package/build/browser/observable/internal/PivotCanonicalizer.js.map +1 -0
- package/build/browser/observable/internal/RdpCanonicalizer.js +66 -0
- package/build/browser/observable/internal/RdpCanonicalizer.js.map +1 -0
- package/build/browser/observable/internal/RdpCanonicalizer.test.js +68 -0
- package/build/browser/observable/internal/RdpCanonicalizer.test.js.map +1 -0
- package/build/browser/observable/internal/SimpleWhereClause.js.map +1 -1
- package/build/browser/observable/internal/Store.js +172 -6
- package/build/browser/observable/internal/Store.js.map +1 -1
- package/build/browser/observable/internal/WhereClauseCanonicalizer.js +1 -1
- package/build/browser/observable/internal/WhereClauseCanonicalizer.js.map +1 -1
- package/build/browser/observable/internal/actions/ActionApplication.js +1 -1
- package/build/browser/observable/internal/actions/ActionApplication.js.map +1 -1
- package/build/browser/observable/internal/actions/OptimisticJob.js +3 -3
- package/build/browser/observable/internal/actions/OptimisticJob.js.map +1 -1
- package/build/browser/observable/internal/aggregation/AggregationCacheKey.js +22 -0
- package/build/browser/observable/internal/aggregation/AggregationCacheKey.js.map +1 -0
- package/build/browser/observable/internal/aggregation/AggregationQuery.js +77 -0
- package/build/browser/observable/internal/aggregation/AggregationQuery.js.map +1 -0
- package/build/browser/observable/internal/aggregation/AggregationsHelper.js +54 -0
- package/build/browser/observable/internal/aggregation/AggregationsHelper.js.map +1 -0
- package/build/browser/observable/internal/aggregation/ObjectAggregationQuery.js +33 -0
- package/build/browser/observable/internal/aggregation/ObjectAggregationQuery.js.map +1 -0
- package/build/browser/observable/internal/base-list/BaseListQuery.js +148 -6
- package/build/browser/observable/internal/base-list/BaseListQuery.js.map +1 -1
- package/build/browser/observable/internal/base-list/createCollectionConnectable.js +0 -5
- package/build/browser/observable/internal/base-list/createCollectionConnectable.js.map +1 -1
- package/build/browser/observable/internal/base-list/createCollectionConnectable.test.js +26 -13
- package/build/browser/observable/internal/base-list/createCollectionConnectable.test.js.map +1 -1
- package/build/browser/observable/internal/evaluateFilter.js +61 -0
- package/build/browser/observable/internal/evaluateFilter.js.map +1 -0
- package/build/browser/observable/internal/links/SpecificLinkCacheKey.js +33 -1
- package/build/browser/observable/internal/links/SpecificLinkCacheKey.js.map +1 -1
- package/build/browser/observable/internal/list/InterfaceListQuery.js +8 -3
- package/build/browser/observable/internal/list/InterfaceListQuery.js.map +1 -1
- package/build/browser/observable/internal/list/ListCacheKey.js +24 -1
- package/build/browser/observable/internal/list/ListCacheKey.js.map +1 -1
- package/build/browser/observable/internal/list/ListQuery.js +42 -64
- package/build/browser/observable/internal/list/ListQuery.js.map +1 -1
- package/build/browser/observable/internal/list/ListQuery.test.js +243 -0
- package/build/browser/observable/internal/list/ListQuery.test.js.map +1 -0
- package/build/browser/observable/internal/list/ListQueryOptions.js.map +1 -1
- package/build/browser/observable/internal/list/ListsHelper.js +18 -8
- package/build/browser/observable/internal/list/ListsHelper.js.map +1 -1
- package/build/browser/observable/internal/list/ObjectListQuery.js +51 -3
- package/build/browser/observable/internal/list/ObjectListQuery.js.map +1 -1
- package/build/browser/observable/internal/object/ObjectCacheKey.js +20 -1
- package/build/browser/observable/internal/object/ObjectCacheKey.js.map +1 -1
- package/build/browser/observable/internal/object/ObjectCacheKeyRegistry.js +126 -0
- package/build/browser/observable/internal/object/ObjectCacheKeyRegistry.js.map +1 -0
- package/build/browser/observable/internal/object/ObjectCacheKeyRegistry.test.js +173 -0
- package/build/browser/observable/internal/object/ObjectCacheKeyRegistry.test.js.map +1 -0
- package/build/browser/observable/internal/object/ObjectQuery.js +10 -58
- package/build/browser/observable/internal/object/ObjectQuery.js.map +1 -1
- package/build/browser/observable/internal/object/ObjectsHelper.js +65 -5
- package/build/browser/observable/internal/object/ObjectsHelper.js.map +1 -1
- package/build/browser/observable/internal/objectMatchesWhereClause.js +3 -37
- package/build/browser/observable/internal/objectMatchesWhereClause.js.map +1 -1
- package/build/browser/observable/internal/objectset/ObjectSetHelper.js +5 -1
- package/build/browser/observable/internal/objectset/ObjectSetHelper.js.map +1 -1
- package/build/browser/observable/internal/objectset/ObjectSetQuery.js +10 -1
- package/build/browser/observable/internal/objectset/ObjectSetQuery.js.map +1 -1
- package/build/browser/observable/internal/objectset/ObjectSetQueryOptions.js.map +1 -1
- package/build/browser/observable/internal/testUtils/invalidateList.js +6 -1
- package/build/browser/observable/internal/testUtils/invalidateList.js.map +1 -1
- package/build/browser/observable/internal/testUtils.js +5 -2
- package/build/browser/observable/internal/testUtils.js.map +1 -1
- package/build/browser/observable/internal/types/ObjectUpdate.js +2 -0
- package/build/browser/observable/internal/types/ObjectUpdate.js.map +1 -0
- package/build/browser/observable/internal/utils/rdpFieldOperations.js +83 -0
- package/build/browser/observable/internal/utils/rdpFieldOperations.js.map +1 -0
- package/build/browser/public/internal-node.js +18 -0
- package/build/browser/public/internal-node.js.map +1 -0
- package/build/browser/public/unstable-do-not-use.js.map +1 -1
- package/build/browser/queries/applyQuery.js +2 -0
- package/build/browser/queries/applyQuery.js.map +1 -1
- package/build/browser/util/UserAgent.js +2 -2
- package/build/browser/util/UserAgent.js.map +1 -1
- package/build/browser/util/toDataValue.js +3 -2
- package/build/browser/util/toDataValue.js.map +1 -1
- package/build/browser/util/toDataValue.test.js +1 -1
- package/build/browser/util/toDataValue.test.js.map +1 -1
- package/build/browser/util/toDataValueQueries.js +2 -2
- package/build/browser/util/toDataValueQueries.js.map +1 -1
- package/build/cjs/chunk-6SCDLAU2.cjs +57 -0
- package/build/cjs/chunk-6SCDLAU2.cjs.map +1 -0
- package/build/cjs/{chunk-DCEFUXFS.cjs → chunk-RO7XAQOS.cjs} +421 -246
- package/build/cjs/chunk-RO7XAQOS.cjs.map +1 -0
- package/build/cjs/{chunk-BP7BR5FZ.cjs → chunk-VGO7XU6T.cjs} +610 -71
- package/build/cjs/chunk-VGO7XU6T.cjs.map +1 -0
- package/build/cjs/{delay-QK4T7RVX.cjs → delay-KIUUJ5NJ.cjs} +4 -3
- package/build/cjs/delay-KIUUJ5NJ.cjs.map +1 -0
- package/build/cjs/index.cjs +17 -9
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +1 -1
- package/build/cjs/public/internal-node.cjs +193767 -0
- package/build/cjs/public/internal-node.cjs.map +1 -0
- package/build/cjs/public/internal-node.d.cts +29 -0
- package/build/cjs/public/internal.cjs +16 -9
- package/build/cjs/public/internal.cjs.map +1 -1
- package/build/cjs/public/unstable-do-not-use.cjs +1751 -869
- package/build/cjs/public/unstable-do-not-use.cjs.map +1 -1
- package/build/cjs/public/unstable-do-not-use.d.cts +73 -6
- package/build/esm/Client.js +1 -1
- package/build/esm/Client.js.map +1 -1
- package/build/esm/MinimalClientContext.js.map +1 -1
- package/build/esm/createClient.js +1 -1
- package/build/esm/createClient.js.map +1 -1
- package/build/esm/createClient.test.js +19 -1
- package/build/esm/createClient.test.js.map +1 -1
- package/build/esm/createMinimalClient.js +1 -1
- package/build/esm/createMinimalClient.js.map +1 -1
- package/build/esm/derivedProperties/createWithPropertiesObjectSet.js +2 -1
- package/build/esm/derivedProperties/createWithPropertiesObjectSet.js.map +1 -1
- package/build/esm/fetchMetadata.test.js +11 -0
- package/build/esm/fetchMetadata.test.js.map +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/internal/conversions/extractNamespace.js +22 -0
- package/build/esm/internal/conversions/extractNamespace.js.map +1 -0
- package/build/esm/internal/conversions/fullyQualifyPropName.js +26 -0
- package/build/esm/internal/conversions/fullyQualifyPropName.js.map +1 -0
- package/build/esm/internal/conversions/makeGeoFilterBbox.js +41 -0
- package/build/esm/internal/conversions/makeGeoFilterBbox.js.map +1 -0
- package/build/esm/internal/conversions/makeGeoFilterIntersects.js +29 -0
- package/build/esm/internal/conversions/makeGeoFilterIntersects.js.map +1 -0
- package/build/esm/internal/conversions/makeGeoFilterPolygon.js +30 -0
- package/build/esm/internal/conversions/makeGeoFilterPolygon.js.map +1 -0
- package/build/esm/internal/conversions/makeGeoFilterWithin.js +48 -0
- package/build/esm/internal/conversions/makeGeoFilterWithin.js.map +1 -0
- package/build/esm/internal/conversions/modernToLegacyWhereClause.js +59 -105
- package/build/esm/internal/conversions/modernToLegacyWhereClause.js.map +1 -1
- package/build/esm/internal/conversions/modernToLegacyWhereClause.test.js +309 -0
- package/build/esm/internal/conversions/modernToLegacyWhereClause.test.js.map +1 -1
- package/build/esm/object/aggregate.js +2 -1
- package/build/esm/object/aggregate.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects/BaseHolder.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects/InterfaceHolder.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js +5 -1
- package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js +10 -0
- package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -1
- package/build/esm/object/convertWireToOsdkObjects.test.js +12 -0
- package/build/esm/object/convertWireToOsdkObjects.test.js.map +1 -1
- package/build/esm/object/fetchPage.js +7 -4
- package/build/esm/object/fetchPage.js.map +1 -1
- package/build/esm/object/formatting/applyPropertyFormatter.js +58 -0
- package/build/esm/object/formatting/applyPropertyFormatter.js.map +1 -0
- package/build/esm/object/formatting/applyPropertyFormatter.test.js +726 -0
- package/build/esm/object/formatting/applyPropertyFormatter.test.js.map +1 -0
- package/build/esm/object/formatting/formatBoolean.js +23 -0
- package/build/esm/object/formatting/formatBoolean.js.map +1 -0
- package/build/esm/object/formatting/formatDateTime.js +158 -0
- package/build/esm/object/formatting/formatDateTime.js.map +1 -0
- package/build/esm/object/formatting/formatNumber.js +242 -0
- package/build/esm/object/formatting/formatNumber.js.map +1 -0
- package/build/esm/object/formatting/propertyFormattingUtils.js +39 -0
- package/build/esm/object/formatting/propertyFormattingUtils.js.map +1 -0
- package/build/esm/object/mediaUpload.js +1 -1
- package/build/esm/object/mediaUpload.js.map +1 -1
- package/build/esm/objectSet/ObjectSetListenerWebsocket.js +17 -0
- package/build/esm/objectSet/ObjectSetListenerWebsocket.js.map +1 -1
- package/build/esm/observable/ObservableClient.js.map +1 -1
- package/build/esm/observable/internal/BulkObjectLoader.js +12 -4
- package/build/esm/observable/internal/BulkObjectLoader.js.map +1 -1
- package/build/esm/observable/internal/BulkObjectLoader.test.js +48 -0
- package/build/esm/observable/internal/BulkObjectLoader.test.js.map +1 -1
- package/build/esm/observable/internal/CacheKeys.js +9 -3
- package/build/esm/observable/internal/CacheKeys.js.map +1 -1
- package/build/esm/observable/internal/Canonicalizer.js +51 -0
- package/build/esm/observable/internal/Canonicalizer.js.map +1 -0
- package/build/esm/observable/internal/Changes.js.map +1 -1
- package/build/esm/observable/internal/IntersectCanonicalizer.js +35 -0
- package/build/esm/observable/internal/IntersectCanonicalizer.js.map +1 -0
- package/build/esm/observable/internal/KnownCacheKey.js.map +1 -1
- package/build/esm/observable/internal/ObservableClientImpl.js +3 -0
- package/build/esm/observable/internal/ObservableClientImpl.js.map +1 -1
- package/build/esm/observable/internal/OrderByCanonicalizer.js +1 -4
- package/build/esm/observable/internal/OrderByCanonicalizer.js.map +1 -1
- package/build/esm/observable/internal/PivotCanonicalizer.js +33 -0
- package/build/esm/observable/internal/PivotCanonicalizer.js.map +1 -0
- package/build/esm/observable/internal/RdpCanonicalizer.js +66 -0
- package/build/esm/observable/internal/RdpCanonicalizer.js.map +1 -0
- package/build/esm/observable/internal/RdpCanonicalizer.test.js +68 -0
- package/build/esm/observable/internal/RdpCanonicalizer.test.js.map +1 -0
- package/build/esm/observable/internal/SimpleWhereClause.js.map +1 -1
- package/build/esm/observable/internal/Store.js +172 -6
- package/build/esm/observable/internal/Store.js.map +1 -1
- package/build/esm/observable/internal/WhereClauseCanonicalizer.js +1 -1
- package/build/esm/observable/internal/WhereClauseCanonicalizer.js.map +1 -1
- package/build/esm/observable/internal/actions/ActionApplication.js +1 -1
- package/build/esm/observable/internal/actions/ActionApplication.js.map +1 -1
- package/build/esm/observable/internal/actions/OptimisticJob.js +3 -3
- package/build/esm/observable/internal/actions/OptimisticJob.js.map +1 -1
- package/build/esm/observable/internal/aggregation/AggregationCacheKey.js +22 -0
- package/build/esm/observable/internal/aggregation/AggregationCacheKey.js.map +1 -0
- package/build/esm/observable/internal/aggregation/AggregationQuery.js +77 -0
- package/build/esm/observable/internal/aggregation/AggregationQuery.js.map +1 -0
- package/build/esm/observable/internal/aggregation/AggregationsHelper.js +54 -0
- package/build/esm/observable/internal/aggregation/AggregationsHelper.js.map +1 -0
- package/build/esm/observable/internal/aggregation/ObjectAggregationQuery.js +33 -0
- package/build/esm/observable/internal/aggregation/ObjectAggregationQuery.js.map +1 -0
- package/build/esm/observable/internal/base-list/BaseListQuery.js +148 -6
- package/build/esm/observable/internal/base-list/BaseListQuery.js.map +1 -1
- package/build/esm/observable/internal/base-list/createCollectionConnectable.js +0 -5
- package/build/esm/observable/internal/base-list/createCollectionConnectable.js.map +1 -1
- package/build/esm/observable/internal/base-list/createCollectionConnectable.test.js +26 -13
- package/build/esm/observable/internal/base-list/createCollectionConnectable.test.js.map +1 -1
- package/build/esm/observable/internal/evaluateFilter.js +61 -0
- package/build/esm/observable/internal/evaluateFilter.js.map +1 -0
- package/build/esm/observable/internal/links/SpecificLinkCacheKey.js +33 -1
- package/build/esm/observable/internal/links/SpecificLinkCacheKey.js.map +1 -1
- package/build/esm/observable/internal/list/InterfaceListQuery.js +8 -3
- package/build/esm/observable/internal/list/InterfaceListQuery.js.map +1 -1
- package/build/esm/observable/internal/list/ListCacheKey.js +24 -1
- package/build/esm/observable/internal/list/ListCacheKey.js.map +1 -1
- package/build/esm/observable/internal/list/ListQuery.js +42 -64
- package/build/esm/observable/internal/list/ListQuery.js.map +1 -1
- package/build/esm/observable/internal/list/ListQuery.test.js +243 -0
- package/build/esm/observable/internal/list/ListQuery.test.js.map +1 -0
- package/build/esm/observable/internal/list/ListQueryOptions.js.map +1 -1
- package/build/esm/observable/internal/list/ListsHelper.js +18 -8
- package/build/esm/observable/internal/list/ListsHelper.js.map +1 -1
- package/build/esm/observable/internal/list/ObjectListQuery.js +51 -3
- package/build/esm/observable/internal/list/ObjectListQuery.js.map +1 -1
- package/build/esm/observable/internal/object/ObjectCacheKey.js +20 -1
- package/build/esm/observable/internal/object/ObjectCacheKey.js.map +1 -1
- package/build/esm/observable/internal/object/ObjectCacheKeyRegistry.js +126 -0
- package/build/esm/observable/internal/object/ObjectCacheKeyRegistry.js.map +1 -0
- package/build/esm/observable/internal/object/ObjectCacheKeyRegistry.test.js +173 -0
- package/build/esm/observable/internal/object/ObjectCacheKeyRegistry.test.js.map +1 -0
- package/build/esm/observable/internal/object/ObjectQuery.js +10 -58
- package/build/esm/observable/internal/object/ObjectQuery.js.map +1 -1
- package/build/esm/observable/internal/object/ObjectsHelper.js +65 -5
- package/build/esm/observable/internal/object/ObjectsHelper.js.map +1 -1
- package/build/esm/observable/internal/objectMatchesWhereClause.js +3 -37
- package/build/esm/observable/internal/objectMatchesWhereClause.js.map +1 -1
- package/build/esm/observable/internal/objectset/ObjectSetHelper.js +5 -1
- package/build/esm/observable/internal/objectset/ObjectSetHelper.js.map +1 -1
- package/build/esm/observable/internal/objectset/ObjectSetQuery.js +10 -1
- package/build/esm/observable/internal/objectset/ObjectSetQuery.js.map +1 -1
- package/build/esm/observable/internal/objectset/ObjectSetQueryOptions.js.map +1 -1
- package/build/esm/observable/internal/testUtils/invalidateList.js +6 -1
- package/build/esm/observable/internal/testUtils/invalidateList.js.map +1 -1
- package/build/esm/observable/internal/testUtils.js +5 -2
- package/build/esm/observable/internal/testUtils.js.map +1 -1
- package/build/esm/observable/internal/types/ObjectUpdate.js +2 -0
- package/build/esm/observable/internal/types/ObjectUpdate.js.map +1 -0
- package/build/esm/observable/internal/utils/rdpFieldOperations.js +83 -0
- package/build/esm/observable/internal/utils/rdpFieldOperations.js.map +1 -0
- package/build/esm/public/internal-node.js +18 -0
- package/build/esm/public/internal-node.js.map +1 -0
- package/build/esm/public/unstable-do-not-use.js.map +1 -1
- package/build/esm/queries/applyQuery.js +2 -0
- package/build/esm/queries/applyQuery.js.map +1 -1
- package/build/esm/util/UserAgent.js +2 -2
- package/build/esm/util/UserAgent.js.map +1 -1
- package/build/esm/util/toDataValue.js +3 -2
- package/build/esm/util/toDataValue.js.map +1 -1
- package/build/esm/util/toDataValue.test.js +1 -1
- package/build/esm/util/toDataValue.test.js.map +1 -1
- package/build/esm/util/toDataValueQueries.js +2 -2
- package/build/esm/util/toDataValueQueries.js.map +1 -1
- package/build/types/Client.d.ts +1 -1
- package/build/types/MinimalClientContext.d.ts +1 -1
- package/build/types/index.d.ts +1 -1
- package/build/types/index.d.ts.map +1 -1
- package/build/types/internal/conversions/extractNamespace.d.ts +1 -0
- package/build/types/internal/conversions/extractNamespace.d.ts.map +1 -0
- package/build/types/internal/conversions/fullyQualifyPropName.d.ts +2 -0
- package/build/types/internal/conversions/fullyQualifyPropName.d.ts.map +1 -0
- package/build/types/internal/conversions/makeGeoFilterBbox.d.ts +3 -0
- package/build/types/internal/conversions/makeGeoFilterBbox.d.ts.map +1 -0
- package/build/types/internal/conversions/makeGeoFilterIntersects.d.ts +3 -0
- package/build/types/internal/conversions/makeGeoFilterIntersects.d.ts.map +1 -0
- package/build/types/internal/conversions/makeGeoFilterPolygon.d.ts +3 -0
- package/build/types/internal/conversions/makeGeoFilterPolygon.d.ts.map +1 -0
- package/build/types/internal/conversions/makeGeoFilterWithin.d.ts +3 -0
- package/build/types/internal/conversions/makeGeoFilterWithin.d.ts.map +1 -0
- package/build/types/internal/conversions/modernToLegacyWhereClause.d.ts +1 -1
- package/build/types/internal/conversions/modernToLegacyWhereClause.d.ts.map +1 -1
- package/build/types/object/formatting/applyPropertyFormatter.d.ts +18 -0
- package/build/types/object/formatting/applyPropertyFormatter.d.ts.map +1 -0
- package/build/types/object/formatting/applyPropertyFormatter.test.d.ts +1 -0
- package/build/types/object/formatting/applyPropertyFormatter.test.d.ts.map +1 -0
- package/build/types/object/formatting/formatBoolean.d.ts +5 -0
- package/build/types/object/formatting/formatBoolean.d.ts.map +1 -0
- package/build/types/object/formatting/formatDateTime.d.ts +6 -0
- package/build/types/object/formatting/formatDateTime.d.ts.map +1 -0
- package/build/types/object/formatting/formatNumber.d.ts +15 -0
- package/build/types/object/formatting/formatNumber.d.ts.map +1 -0
- package/build/types/object/formatting/propertyFormattingUtils.d.ts +10 -0
- package/build/types/object/formatting/propertyFormattingUtils.d.ts.map +1 -0
- package/build/types/observable/ObservableClient.d.ts +76 -5
- package/build/types/observable/ObservableClient.d.ts.map +1 -1
- package/build/types/observable/internal/BulkObjectLoader.d.ts.map +1 -1
- package/build/types/observable/internal/CacheKeys.d.ts.map +1 -1
- package/build/types/observable/internal/Canonicalizer.d.ts +37 -0
- package/build/types/observable/internal/Canonicalizer.d.ts.map +1 -0
- package/build/types/observable/internal/Changes.d.ts +4 -3
- package/build/types/observable/internal/Changes.d.ts.map +1 -1
- package/build/types/observable/internal/IntersectCanonicalizer.d.ts +18 -0
- package/build/types/observable/internal/IntersectCanonicalizer.d.ts.map +1 -0
- package/build/types/observable/internal/KnownCacheKey.d.ts +2 -1
- package/build/types/observable/internal/KnownCacheKey.d.ts.map +1 -1
- package/build/types/observable/internal/OrderByCanonicalizer.d.ts.map +1 -1
- package/build/types/observable/internal/PivotCanonicalizer.d.ts +10 -0
- package/build/types/observable/internal/PivotCanonicalizer.d.ts.map +1 -0
- package/build/types/observable/internal/RdpCanonicalizer.d.ts +8 -0
- package/build/types/observable/internal/RdpCanonicalizer.d.ts.map +1 -0
- package/build/types/observable/internal/RdpCanonicalizer.test.d.ts +1 -0
- package/build/types/observable/internal/RdpCanonicalizer.test.d.ts.map +1 -0
- package/build/types/observable/internal/SimpleWhereClause.d.ts +6 -2
- package/build/types/observable/internal/SimpleWhereClause.d.ts.map +1 -1
- package/build/types/observable/internal/Store.d.ts +10 -0
- package/build/types/observable/internal/Store.d.ts.map +1 -1
- package/build/types/observable/internal/WhereClauseCanonicalizer.d.ts +5 -2
- package/build/types/observable/internal/WhereClauseCanonicalizer.d.ts.map +1 -1
- package/build/types/observable/internal/actions/ActionApplication.d.ts.map +1 -1
- package/build/types/observable/internal/aggregation/AggregationCacheKey.d.ts +12 -0
- package/build/types/observable/internal/aggregation/AggregationCacheKey.d.ts.map +1 -0
- package/build/types/observable/internal/aggregation/AggregationQuery.d.ts +49 -0
- package/build/types/observable/internal/aggregation/AggregationQuery.d.ts.map +1 -0
- package/build/types/observable/internal/aggregation/AggregationsHelper.d.ts +37 -0
- package/build/types/observable/internal/aggregation/AggregationsHelper.d.ts.map +1 -0
- package/build/types/observable/internal/aggregation/ObjectAggregationQuery.d.ts +5 -0
- package/build/types/observable/internal/aggregation/ObjectAggregationQuery.d.ts.map +1 -0
- package/build/types/observable/internal/base-list/BaseListQuery.d.ts +48 -2
- package/build/types/observable/internal/base-list/BaseListQuery.d.ts.map +1 -1
- package/build/types/observable/internal/base-list/createCollectionConnectable.d.ts +1 -23
- package/build/types/observable/internal/base-list/createCollectionConnectable.d.ts.map +1 -1
- package/build/types/observable/internal/evaluateFilter.d.ts +6 -0
- package/build/types/observable/internal/evaluateFilter.d.ts.map +1 -0
- package/build/types/observable/internal/links/SpecificLinkCacheKey.d.ts +5 -0
- package/build/types/observable/internal/links/SpecificLinkCacheKey.d.ts.map +1 -1
- package/build/types/observable/internal/list/InterfaceListQuery.d.ts.map +1 -1
- package/build/types/observable/internal/list/ListCacheKey.d.ts +10 -1
- package/build/types/observable/internal/list/ListCacheKey.d.ts.map +1 -1
- package/build/types/observable/internal/list/ListQuery.d.ts +12 -15
- package/build/types/observable/internal/list/ListQuery.d.ts.map +1 -1
- package/build/types/observable/internal/list/ListQuery.test.d.ts +1 -0
- package/build/types/observable/internal/list/ListQuery.test.d.ts.map +1 -0
- package/build/types/observable/internal/list/ListQueryOptions.d.ts +10 -1
- package/build/types/observable/internal/list/ListQueryOptions.d.ts.map +1 -1
- package/build/types/observable/internal/list/ListsHelper.d.ts +7 -1
- package/build/types/observable/internal/list/ListsHelper.d.ts.map +1 -1
- package/build/types/observable/internal/list/ObjectListQuery.d.ts.map +1 -1
- package/build/types/observable/internal/object/ObjectCacheKey.d.ts +6 -1
- package/build/types/observable/internal/object/ObjectCacheKey.d.ts.map +1 -1
- package/build/types/observable/internal/object/ObjectCacheKeyRegistry.d.ts +60 -0
- package/build/types/observable/internal/object/ObjectCacheKeyRegistry.d.ts.map +1 -0
- package/build/types/observable/internal/object/ObjectCacheKeyRegistry.test.d.ts +1 -0
- package/build/types/observable/internal/object/ObjectCacheKeyRegistry.test.d.ts.map +1 -0
- package/build/types/observable/internal/object/ObjectQuery.d.ts +1 -1
- package/build/types/observable/internal/object/ObjectQuery.d.ts.map +1 -1
- package/build/types/observable/internal/object/ObjectsHelper.d.ts +15 -1
- package/build/types/observable/internal/object/ObjectsHelper.d.ts.map +1 -1
- package/build/types/observable/internal/objectMatchesWhereClause.d.ts.map +1 -1
- package/build/types/observable/internal/objectset/ObjectSetHelper.d.ts.map +1 -1
- package/build/types/observable/internal/objectset/ObjectSetQuery.d.ts +2 -1
- package/build/types/observable/internal/objectset/ObjectSetQuery.d.ts.map +1 -1
- package/build/types/observable/internal/objectset/ObjectSetQueryOptions.d.ts +16 -0
- package/build/types/observable/internal/objectset/ObjectSetQueryOptions.d.ts.map +1 -1
- package/build/types/observable/internal/testUtils.d.ts +2 -2
- package/build/types/observable/internal/testUtils.d.ts.map +1 -1
- package/build/types/observable/internal/types/ObjectUpdate.d.ts +11 -0
- package/build/types/observable/internal/types/ObjectUpdate.d.ts.map +1 -0
- package/build/types/observable/internal/utils/rdpFieldOperations.d.ts +5 -0
- package/build/types/observable/internal/utils/rdpFieldOperations.d.ts.map +1 -0
- package/build/types/public/internal-node.d.ts +2 -0
- package/build/types/public/internal-node.d.ts.map +1 -0
- package/build/types/public/unstable-do-not-use.d.ts +1 -1
- package/build/types/public/unstable-do-not-use.d.ts.map +1 -1
- package/build/types/queries/applyQuery.d.ts.map +1 -1
- package/internal-node.d.ts +17 -0
- package/package.json +18 -8
- package/build/cjs/chunk-BP7BR5FZ.cjs.map +0 -1
- package/build/cjs/chunk-DCEFUXFS.cjs.map +0 -1
- package/build/cjs/chunk-Q7SFCCGT.cjs +0 -11
- package/build/cjs/chunk-Q7SFCCGT.cjs.map +0 -1
- package/build/cjs/delay-QK4T7RVX.cjs.map +0 -1
|
@@ -1,29 +1,44 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk6SCDLAU2_cjs = require('./chunk-6SCDLAU2.cjs');
|
|
4
4
|
var shared_net_errors = require('@osdk/shared.net.errors');
|
|
5
|
-
var api = require('@osdk/api');
|
|
6
|
-
var invariant5 = require('tiny-invariant');
|
|
7
5
|
var shared_net_fetch = require('@osdk/shared.net.fetch');
|
|
6
|
+
var invariant3 = require('tiny-invariant');
|
|
7
|
+
var api = require('@osdk/api');
|
|
8
8
|
var WebSocket = require('isomorphic-ws');
|
|
9
9
|
|
|
10
10
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var invariant3__default = /*#__PURE__*/_interopDefault(invariant3);
|
|
13
13
|
var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
|
|
14
14
|
|
|
15
|
-
//
|
|
15
|
+
// src/object/fetchPage.ts
|
|
16
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
17
|
+
|
|
18
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/index.js
|
|
19
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
20
|
+
|
|
21
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
|
|
16
22
|
var Action_exports = {};
|
|
17
|
-
|
|
23
|
+
chunk6SCDLAU2_cjs.__export(Action_exports, {
|
|
18
24
|
apply: () => apply,
|
|
19
25
|
applyAsync: () => applyAsync,
|
|
20
26
|
applyBatch: () => applyBatch
|
|
21
27
|
});
|
|
28
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
29
|
+
|
|
30
|
+
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.5.0/node_modules/@osdk/shared.net.platformapi/build/esm/index.js
|
|
31
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
32
|
+
|
|
33
|
+
// ../../node_modules/.pnpm/@osdk+shared.net.platformapi@1.5.0/node_modules/@osdk/shared.net.platformapi/build/esm/foundryPlatformFetch.js
|
|
34
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
22
35
|
|
|
23
36
|
// ../../node_modules/.pnpm/@osdk+shared.client@1.0.1/node_modules/@osdk/shared.client/index.js
|
|
37
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
24
38
|
var symbolClientContext = Symbol("ClientContext");
|
|
25
39
|
|
|
26
40
|
// ../../node_modules/.pnpm/@osdk+shared.client2@1.0.0/node_modules/@osdk/shared.client2/index.js
|
|
41
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
27
42
|
var symbolClientContext2 = "__osdkClientContext";
|
|
28
43
|
async function foundryPlatformFetch(client, [httpMethodNum, origPath, flags, contentType, responseContentType], ...args) {
|
|
29
44
|
const path = origPath.replace(/\{([^}]+)\}/g, () => encodeURIComponent(args.shift()));
|
|
@@ -68,7 +83,7 @@ async function apiFetch(clientCtx, method, endpointPath, data, queryArguments, h
|
|
|
68
83
|
if (!response.ok) {
|
|
69
84
|
try {
|
|
70
85
|
const convertedError = await response.json();
|
|
71
|
-
return new shared_net_errors.PalantirApiError(convertedError.message, convertedError.errorName, convertedError.errorCode, response.status, convertedError.errorInstanceId, convertedError.parameters);
|
|
86
|
+
return new shared_net_errors.PalantirApiError(convertedError.message, convertedError.errorName, convertedError.errorCode, convertedError.errorDescription, response.status, convertedError.errorInstanceId, convertedError.parameters);
|
|
72
87
|
} catch (e) {
|
|
73
88
|
if (e instanceof Error) {
|
|
74
89
|
return new shared_net_errors.UnknownError(e.message, "UNKNOWN");
|
|
@@ -89,7 +104,7 @@ function parseUrl(baseUrl, endpointPath) {
|
|
|
89
104
|
return new URL(`api${endpointPath}`, baseUrl);
|
|
90
105
|
}
|
|
91
106
|
|
|
92
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
107
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Action.js
|
|
93
108
|
var _apply = [1, "/v2/ontologies/{0}/actions/{1}/apply", 3];
|
|
94
109
|
function apply($ctx, ...args) {
|
|
95
110
|
return foundryPlatformFetch($ctx, _apply, ...args);
|
|
@@ -103,13 +118,17 @@ function applyBatch($ctx, ...args) {
|
|
|
103
118
|
return foundryPlatformFetch($ctx, _applyBatch, ...args);
|
|
104
119
|
}
|
|
105
120
|
|
|
106
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
121
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeFullMetadata.js
|
|
122
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
123
|
+
|
|
124
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ActionTypeV2.js
|
|
107
125
|
var ActionTypeV2_exports = {};
|
|
108
|
-
|
|
126
|
+
chunk6SCDLAU2_cjs.__export(ActionTypeV2_exports, {
|
|
109
127
|
get: () => get,
|
|
110
128
|
getByRid: () => getByRid,
|
|
111
129
|
list: () => list
|
|
112
130
|
});
|
|
131
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
113
132
|
var _list = [0, "/v2/ontologies/{0}/actionTypes", 2];
|
|
114
133
|
function list($ctx, ...args) {
|
|
115
134
|
return foundryPlatformFetch($ctx, _list, ...args);
|
|
@@ -123,13 +142,14 @@ function getByRid($ctx, ...args) {
|
|
|
123
142
|
return foundryPlatformFetch($ctx, _getByRid, ...args);
|
|
124
143
|
}
|
|
125
144
|
|
|
126
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
145
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Attachment.js
|
|
127
146
|
var Attachment_exports = {};
|
|
128
|
-
|
|
147
|
+
chunk6SCDLAU2_cjs.__export(Attachment_exports, {
|
|
129
148
|
get: () => get2,
|
|
130
149
|
read: () => read,
|
|
131
150
|
upload: () => upload
|
|
132
151
|
});
|
|
152
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
133
153
|
var _upload = [1, "/v2/ontologies/attachments/upload", 7, "*/*"];
|
|
134
154
|
function upload($ctx, ...args) {
|
|
135
155
|
const headerParams = {
|
|
@@ -148,14 +168,23 @@ function get2($ctx, ...args) {
|
|
|
148
168
|
return foundryPlatformFetch($ctx, _get2, ...args);
|
|
149
169
|
}
|
|
150
170
|
|
|
151
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
171
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/AttachmentPropertyV2.js
|
|
172
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
173
|
+
|
|
174
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/CipherTextProperty.js
|
|
175
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
176
|
+
|
|
177
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/LinkedObjectV2.js
|
|
178
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
179
|
+
|
|
180
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/MediaReferenceProperty.js
|
|
152
181
|
var MediaReferenceProperty_exports = {};
|
|
153
|
-
|
|
182
|
+
chunk6SCDLAU2_cjs.__export(MediaReferenceProperty_exports, {
|
|
154
183
|
getMediaContent: () => getMediaContent,
|
|
155
184
|
getMediaMetadata: () => getMediaMetadata,
|
|
156
|
-
upload: () => upload2
|
|
157
|
-
uploadMedia: () => uploadMedia
|
|
185
|
+
upload: () => upload2
|
|
158
186
|
});
|
|
187
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
159
188
|
var _getMediaContent = [0, "/v2/ontologies/{0}/objects/{1}/{2}/media/{3}/content", 2, , "*/*"];
|
|
160
189
|
function getMediaContent($ctx, ...args) {
|
|
161
190
|
return foundryPlatformFetch($ctx, _getMediaContent, ...args);
|
|
@@ -168,20 +197,17 @@ var _upload2 = [1, "/v2/ontologies/{0}/objectTypes/{1}/media/{2}/upload", 3, "*/
|
|
|
168
197
|
function upload2($ctx, ...args) {
|
|
169
198
|
return foundryPlatformFetch($ctx, _upload2, ...args);
|
|
170
199
|
}
|
|
171
|
-
var _uploadMedia = [1, "/v2/ontologies/{0}/actions/{1}/media/upload", 3, "*/*"];
|
|
172
|
-
function uploadMedia($ctx, ...args) {
|
|
173
|
-
return foundryPlatformFetch($ctx, _uploadMedia, ...args);
|
|
174
|
-
}
|
|
175
200
|
|
|
176
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
201
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/ObjectTypeV2.js
|
|
177
202
|
var ObjectTypeV2_exports = {};
|
|
178
|
-
|
|
203
|
+
chunk6SCDLAU2_cjs.__export(ObjectTypeV2_exports, {
|
|
179
204
|
get: () => get3,
|
|
180
205
|
getFullMetadata: () => getFullMetadata,
|
|
181
206
|
getOutgoingLinkType: () => getOutgoingLinkType,
|
|
182
207
|
list: () => list2,
|
|
183
208
|
listOutgoingLinkTypes: () => listOutgoingLinkTypes
|
|
184
209
|
});
|
|
210
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
185
211
|
var _list2 = [0, "/v2/ontologies/{0}/objectTypes", 2];
|
|
186
212
|
function list2($ctx, ...args) {
|
|
187
213
|
return foundryPlatformFetch($ctx, _list2, ...args);
|
|
@@ -203,17 +229,19 @@ function getOutgoingLinkType($ctx, ...args) {
|
|
|
203
229
|
return foundryPlatformFetch($ctx, _getOutgoingLinkType, ...args);
|
|
204
230
|
}
|
|
205
231
|
|
|
206
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
232
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyInterface.js
|
|
207
233
|
var OntologyInterface_exports = {};
|
|
208
|
-
|
|
234
|
+
chunk6SCDLAU2_cjs.__export(OntologyInterface_exports, {
|
|
209
235
|
aggregate: () => aggregate,
|
|
210
236
|
get: () => get4,
|
|
211
237
|
getOutgoingInterfaceLinkType: () => getOutgoingInterfaceLinkType,
|
|
212
238
|
list: () => list3,
|
|
239
|
+
listInterfaceLinkedObjects: () => listInterfaceLinkedObjects,
|
|
213
240
|
listObjectsForInterface: () => listObjectsForInterface,
|
|
214
241
|
listOutgoingInterfaceLinkTypes: () => listOutgoingInterfaceLinkTypes,
|
|
215
242
|
search: () => search
|
|
216
243
|
});
|
|
244
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
217
245
|
var _list3 = [0, "/v2/ontologies/{0}/interfaceTypes", 2];
|
|
218
246
|
function list3($ctx, ...args) {
|
|
219
247
|
return foundryPlatformFetch($ctx, _list3, ...args);
|
|
@@ -242,10 +270,14 @@ var _getOutgoingInterfaceLinkType = [0, "/v2/ontologies/{0}/interfaceTypes/{1}/o
|
|
|
242
270
|
function getOutgoingInterfaceLinkType($ctx, ...args) {
|
|
243
271
|
return foundryPlatformFetch($ctx, _getOutgoingInterfaceLinkType, ...args);
|
|
244
272
|
}
|
|
273
|
+
var _listInterfaceLinkedObjects = [0, "/v2/ontologies/{0}/interfaces/{1}/{2}/{3}/links/{4}", 2];
|
|
274
|
+
function listInterfaceLinkedObjects($ctx, ...args) {
|
|
275
|
+
return foundryPlatformFetch($ctx, _listInterfaceLinkedObjects, ...args);
|
|
276
|
+
}
|
|
245
277
|
|
|
246
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
278
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectSet.js
|
|
247
279
|
var OntologyObjectSet_exports = {};
|
|
248
|
-
|
|
280
|
+
chunk6SCDLAU2_cjs.__export(OntologyObjectSet_exports, {
|
|
249
281
|
aggregate: () => aggregate2,
|
|
250
282
|
createTemporary: () => createTemporary,
|
|
251
283
|
get: () => get5,
|
|
@@ -253,6 +285,7 @@ chunkQ7SFCCGT_cjs.__export(OntologyObjectSet_exports, {
|
|
|
253
285
|
loadMultipleObjectTypes: () => loadMultipleObjectTypes,
|
|
254
286
|
loadObjectsOrInterfaces: () => loadObjectsOrInterfaces
|
|
255
287
|
});
|
|
288
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
256
289
|
var _createTemporary = [1, "/v2/ontologies/{0}/objectSets/createTemporary", 3];
|
|
257
290
|
function createTemporary($ctx, ...args) {
|
|
258
291
|
return foundryPlatformFetch($ctx, _createTemporary, ...args);
|
|
@@ -278,22 +311,36 @@ function aggregate2($ctx, ...args) {
|
|
|
278
311
|
return foundryPlatformFetch($ctx, _aggregate2, ...args);
|
|
279
312
|
}
|
|
280
313
|
|
|
281
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
314
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyObjectV2.js
|
|
315
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
316
|
+
|
|
317
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyTransaction.js
|
|
318
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
319
|
+
|
|
320
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyV2.js
|
|
321
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
322
|
+
|
|
323
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/OntologyValueType.js
|
|
324
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
325
|
+
|
|
326
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/Query.js
|
|
282
327
|
var Query_exports = {};
|
|
283
|
-
|
|
328
|
+
chunk6SCDLAU2_cjs.__export(Query_exports, {
|
|
284
329
|
execute: () => execute
|
|
285
330
|
});
|
|
331
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
286
332
|
var _execute = [1, "/v2/ontologies/{0}/queries/{1}/execute", 7];
|
|
287
333
|
function execute($ctx, ...args) {
|
|
288
334
|
return foundryPlatformFetch($ctx, _execute, ...args);
|
|
289
335
|
}
|
|
290
336
|
|
|
291
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
337
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/QueryType.js
|
|
292
338
|
var QueryType_exports = {};
|
|
293
|
-
|
|
339
|
+
chunk6SCDLAU2_cjs.__export(QueryType_exports, {
|
|
294
340
|
get: () => get6,
|
|
295
341
|
list: () => list4
|
|
296
342
|
});
|
|
343
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
297
344
|
var _list4 = [0, "/v2/ontologies/{0}/queryTypes", 2];
|
|
298
345
|
function list4($ctx, ...args) {
|
|
299
346
|
return foundryPlatformFetch($ctx, _list4, ...args);
|
|
@@ -303,13 +350,14 @@ function get6($ctx, ...args) {
|
|
|
303
350
|
return foundryPlatformFetch($ctx, _get6, ...args);
|
|
304
351
|
}
|
|
305
352
|
|
|
306
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
353
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesPropertyV2.js
|
|
307
354
|
var TimeSeriesPropertyV2_exports = {};
|
|
308
|
-
|
|
355
|
+
chunk6SCDLAU2_cjs.__export(TimeSeriesPropertyV2_exports, {
|
|
309
356
|
getFirstPoint: () => getFirstPoint,
|
|
310
357
|
getLastPoint: () => getLastPoint,
|
|
311
358
|
streamPoints: () => streamPoints
|
|
312
359
|
});
|
|
360
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
313
361
|
var _getFirstPoint = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/firstPoint", 2];
|
|
314
362
|
function getFirstPoint($ctx, ...args) {
|
|
315
363
|
return foundryPlatformFetch($ctx, _getFirstPoint, ...args);
|
|
@@ -323,12 +371,13 @@ function streamPoints($ctx, ...args) {
|
|
|
323
371
|
return foundryPlatformFetch($ctx, _streamPoints, ...args);
|
|
324
372
|
}
|
|
325
373
|
|
|
326
|
-
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.
|
|
374
|
+
// ../../node_modules/.pnpm/@osdk+foundry.ontologies@2.40.0/node_modules/@osdk/foundry.ontologies/build/esm/public/TimeSeriesValueBankProperty.js
|
|
327
375
|
var TimeSeriesValueBankProperty_exports = {};
|
|
328
|
-
|
|
376
|
+
chunk6SCDLAU2_cjs.__export(TimeSeriesValueBankProperty_exports, {
|
|
329
377
|
getLatestValue: () => getLatestValue,
|
|
330
378
|
streamValues: () => streamValues
|
|
331
379
|
});
|
|
380
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
332
381
|
var _getLatestValue = [0, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/latestValue", 2];
|
|
333
382
|
function getLatestValue($ctx, ...args) {
|
|
334
383
|
return foundryPlatformFetch($ctx, _getLatestValue, ...args);
|
|
@@ -337,187 +386,17 @@ var _streamValues = [1, "/v2/ontologies/{0}/objects/{1}/{2}/timeseries/{3}/strea
|
|
|
337
386
|
function streamValues($ctx, ...args) {
|
|
338
387
|
return foundryPlatformFetch($ctx, _streamValues, ...args);
|
|
339
388
|
}
|
|
389
|
+
|
|
390
|
+
// src/internal/conversions/extractNamespace.ts
|
|
391
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
340
392
|
function extractNamespace(fqApiName) {
|
|
341
393
|
const last = fqApiName.lastIndexOf(".");
|
|
342
394
|
if (last === -1) return [void 0, fqApiName];
|
|
343
395
|
return [fqApiName.slice(0, last), fqApiName.slice(last + 1)];
|
|
344
396
|
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
type: "and",
|
|
349
|
-
value: whereClause.$and.map((clause) => modernToLegacyWhereClause(clause, objectOrInterface))
|
|
350
|
-
};
|
|
351
|
-
} else if ("$or" in whereClause) {
|
|
352
|
-
return {
|
|
353
|
-
type: "or",
|
|
354
|
-
value: whereClause.$or.map((clause) => modernToLegacyWhereClause(clause, objectOrInterface))
|
|
355
|
-
};
|
|
356
|
-
} else if ("$not" in whereClause) {
|
|
357
|
-
return {
|
|
358
|
-
type: "not",
|
|
359
|
-
value: modernToLegacyWhereClause(whereClause.$not, objectOrInterface)
|
|
360
|
-
};
|
|
361
|
-
}
|
|
362
|
-
const parts = Object.entries(whereClause);
|
|
363
|
-
if (parts.length === 1) {
|
|
364
|
-
return handleWherePair(parts[0], objectOrInterface);
|
|
365
|
-
}
|
|
366
|
-
return {
|
|
367
|
-
type: "and",
|
|
368
|
-
value: parts.map((v) => handleWherePair(v, objectOrInterface))
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
function makeGeoFilterBbox(bbox, filterType, propertyIdentifier, field) {
|
|
372
|
-
return {
|
|
373
|
-
type: filterType === "$within" ? "withinBoundingBox" : "intersectsBoundingBox",
|
|
374
|
-
/**
|
|
375
|
-
* This is a bit ugly, but did this so that propertyIdentifier only shows up in the return object if its defined,
|
|
376
|
-
* this makes it so we don't need to go update our entire test bed either to include a field which may change in near future.
|
|
377
|
-
* Once we solidify that this is the way forward, I can remove field and clean this up
|
|
378
|
-
*/
|
|
379
|
-
...propertyIdentifier != null && {
|
|
380
|
-
propertyIdentifier
|
|
381
|
-
},
|
|
382
|
-
field,
|
|
383
|
-
value: {
|
|
384
|
-
topLeft: {
|
|
385
|
-
type: "Point",
|
|
386
|
-
coordinates: [bbox[0], bbox[3]]
|
|
387
|
-
},
|
|
388
|
-
bottomRight: {
|
|
389
|
-
type: "Point",
|
|
390
|
-
coordinates: [bbox[2], bbox[1]]
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
}
|
|
395
|
-
function makeGeoFilterPolygon(coordinates, filterType, propertyIdentifier, field) {
|
|
396
|
-
return {
|
|
397
|
-
type: filterType,
|
|
398
|
-
...propertyIdentifier != null && {
|
|
399
|
-
propertyIdentifier
|
|
400
|
-
},
|
|
401
|
-
field,
|
|
402
|
-
value: {
|
|
403
|
-
type: "Polygon",
|
|
404
|
-
coordinates
|
|
405
|
-
}
|
|
406
|
-
};
|
|
407
|
-
}
|
|
408
|
-
function handleWherePair([fieldName, filter], objectOrInterface, structFieldSelector) {
|
|
409
|
-
!(filter != null) ? process.env.NODE_ENV !== "production" ? invariant5__default.default(false, "Defined key values are only allowed when they are not undefined.") : invariant5__default.default(false) : void 0;
|
|
410
|
-
const propertyIdentifier = structFieldSelector != null ? {
|
|
411
|
-
type: "structField",
|
|
412
|
-
...structFieldSelector,
|
|
413
|
-
propertyApiName: fullyQualifyPropName(structFieldSelector.propertyApiName, objectOrInterface)
|
|
414
|
-
} : void 0;
|
|
415
|
-
const field = structFieldSelector == null ? fullyQualifyPropName(fieldName, objectOrInterface) : void 0;
|
|
416
|
-
if (typeof filter === "string" || typeof filter === "number" || typeof filter === "boolean") {
|
|
417
|
-
return {
|
|
418
|
-
type: "eq",
|
|
419
|
-
...propertyIdentifier != null && {
|
|
420
|
-
propertyIdentifier
|
|
421
|
-
},
|
|
422
|
-
field,
|
|
423
|
-
value: filter
|
|
424
|
-
};
|
|
425
|
-
}
|
|
426
|
-
const keysOfFilter = Object.keys(filter);
|
|
427
|
-
const hasDollarSign = keysOfFilter.some((key) => key.startsWith("$"));
|
|
428
|
-
!(!hasDollarSign || keysOfFilter.length === 1) ? process.env.NODE_ENV !== "production" ? invariant5__default.default(false, "A WhereClause Filter with multiple clauses/fields is not allowed. Instead, use an 'or'/'and' clause to combine multiple filters.") : invariant5__default.default(false) : void 0;
|
|
429
|
-
if (!hasDollarSign) {
|
|
430
|
-
const structFilter = Object.entries(filter);
|
|
431
|
-
!(structFilter.length === 1) ? process.env.NODE_ENV !== "production" ? invariant5__default.default(false, "Cannot filter on more than one struct field in the same clause, need to use an and clause") : invariant5__default.default(false) : void 0;
|
|
432
|
-
const structFieldApiName = keysOfFilter[0];
|
|
433
|
-
return handleWherePair(Object.entries(filter)[0], objectOrInterface, {
|
|
434
|
-
propertyApiName: fieldName,
|
|
435
|
-
structFieldApiName
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
const firstKey = keysOfFilter[0];
|
|
439
|
-
!(filter[firstKey] != null) ? process.env.NODE_ENV !== "production" ? invariant5__default.default(false) : invariant5__default.default(false) : void 0;
|
|
440
|
-
if (firstKey === "$ne") {
|
|
441
|
-
return {
|
|
442
|
-
type: "not",
|
|
443
|
-
value: {
|
|
444
|
-
type: "eq",
|
|
445
|
-
...propertyIdentifier != null && {
|
|
446
|
-
propertyIdentifier
|
|
447
|
-
},
|
|
448
|
-
field,
|
|
449
|
-
value: filter[firstKey]
|
|
450
|
-
}
|
|
451
|
-
};
|
|
452
|
-
}
|
|
453
|
-
if (firstKey === "$within") {
|
|
454
|
-
const withinBody = filter[firstKey];
|
|
455
|
-
if (Array.isArray(withinBody)) {
|
|
456
|
-
return makeGeoFilterBbox(withinBody, firstKey, propertyIdentifier, field);
|
|
457
|
-
} else if ("$bbox" in withinBody && withinBody.$bbox != null) {
|
|
458
|
-
return makeGeoFilterBbox(withinBody.$bbox, firstKey, propertyIdentifier, field);
|
|
459
|
-
} else if ("$distance" in withinBody && "$of" in withinBody && withinBody.$distance != null && withinBody.$of != null) {
|
|
460
|
-
return {
|
|
461
|
-
type: "withinDistanceOf",
|
|
462
|
-
...propertyIdentifier != null && {
|
|
463
|
-
propertyIdentifier
|
|
464
|
-
},
|
|
465
|
-
field,
|
|
466
|
-
value: {
|
|
467
|
-
center: Array.isArray(withinBody.$of) ? {
|
|
468
|
-
type: "Point",
|
|
469
|
-
coordinates: withinBody.$of
|
|
470
|
-
} : withinBody.$of,
|
|
471
|
-
distance: {
|
|
472
|
-
value: withinBody.$distance[0],
|
|
473
|
-
unit: api.DistanceUnitMapping[withinBody.$distance[1]]
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
};
|
|
477
|
-
} else {
|
|
478
|
-
const coordinates = "$polygon" in withinBody ? withinBody.$polygon : withinBody.coordinates;
|
|
479
|
-
return makeGeoFilterPolygon(coordinates, "withinPolygon", propertyIdentifier, fieldName);
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
if (firstKey === "$intersects") {
|
|
483
|
-
const intersectsBody = filter[firstKey];
|
|
484
|
-
if (Array.isArray(intersectsBody)) {
|
|
485
|
-
return makeGeoFilterBbox(intersectsBody, firstKey, propertyIdentifier, field);
|
|
486
|
-
} else if ("$bbox" in intersectsBody && intersectsBody.$bbox != null) {
|
|
487
|
-
return makeGeoFilterBbox(intersectsBody.$bbox, firstKey, propertyIdentifier, field);
|
|
488
|
-
} else {
|
|
489
|
-
const coordinates = "$polygon" in intersectsBody ? intersectsBody.$polygon : intersectsBody.coordinates;
|
|
490
|
-
return makeGeoFilterPolygon(coordinates, "intersectsPolygon", propertyIdentifier, field);
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
if (firstKey === "$containsAllTerms" || firstKey === "$containsAnyTerm") {
|
|
494
|
-
return {
|
|
495
|
-
type: firstKey.substring(1),
|
|
496
|
-
...propertyIdentifier != null && {
|
|
497
|
-
propertyIdentifier
|
|
498
|
-
},
|
|
499
|
-
field,
|
|
500
|
-
value: typeof filter[firstKey] === "string" ? filter[firstKey] : filter[firstKey]["term"],
|
|
501
|
-
fuzzy: typeof filter[firstKey] === "string" ? false : filter[firstKey]["fuzzySearch"] ?? false
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
return {
|
|
505
|
-
type: firstKey.substring(1),
|
|
506
|
-
...propertyIdentifier != null && {
|
|
507
|
-
propertyIdentifier
|
|
508
|
-
},
|
|
509
|
-
field,
|
|
510
|
-
value: filter[firstKey]
|
|
511
|
-
};
|
|
512
|
-
}
|
|
513
|
-
function fullyQualifyPropName(fieldName, objectOrInterface) {
|
|
514
|
-
if (objectOrInterface.type === "interface") {
|
|
515
|
-
const [objApiNamespace] = extractNamespace(objectOrInterface.apiName);
|
|
516
|
-
const [fieldApiNamespace, fieldShortName] = extractNamespace(fieldName);
|
|
517
|
-
return fieldApiNamespace == null && objApiNamespace != null ? `${objApiNamespace}.${fieldShortName}` : fieldName;
|
|
518
|
-
}
|
|
519
|
-
return fieldName;
|
|
520
|
-
}
|
|
397
|
+
|
|
398
|
+
// src/util/addUserAgentAndRequestContextHeaders.ts
|
|
399
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
521
400
|
var addUserAgentAndRequestContextHeaders = (client, withMetadata) => ({
|
|
522
401
|
...client,
|
|
523
402
|
fetch: shared_net_fetch.createFetchHeaderMutator(client.fetch, (headers) => {
|
|
@@ -528,6 +407,9 @@ var addUserAgentAndRequestContextHeaders = (client, withMetadata) => ({
|
|
|
528
407
|
return headers;
|
|
529
408
|
})
|
|
530
409
|
});
|
|
410
|
+
|
|
411
|
+
// src/util/extractObjectOrInterfaceType.ts
|
|
412
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
531
413
|
async function extractObjectOrInterfaceType(clientCtx, objectSet) {
|
|
532
414
|
switch (objectSet.type) {
|
|
533
415
|
case "searchAround": {
|
|
@@ -537,7 +419,7 @@ async function extractObjectOrInterfaceType(clientCtx, objectSet) {
|
|
|
537
419
|
}
|
|
538
420
|
const objOrInterfaceDef2 = def2.type === "object" ? await clientCtx.ontologyProvider.getObjectDefinition(def2.apiName) : await clientCtx.ontologyProvider.getInterfaceDefinition(def2.apiName);
|
|
539
421
|
const linkDef2 = objOrInterfaceDef2.links[objectSet.link];
|
|
540
|
-
!linkDef2 ? process.env.NODE_ENV !== "production" ?
|
|
422
|
+
!linkDef2 ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Missing link definition for '${objectSet.link}'`) : invariant3__default.default(false) : void 0;
|
|
541
423
|
return objOrInterfaceDef2.type === "object" ? {
|
|
542
424
|
apiName: objOrInterfaceDef2.links[objectSet.link].targetType,
|
|
543
425
|
type: "object"
|
|
@@ -575,7 +457,7 @@ async function extractObjectOrInterfaceType(clientCtx, objectSet) {
|
|
|
575
457
|
const objectSetTypes2 = await Promise.all(objectSets2.map((os) => extractObjectOrInterfaceType(clientCtx, os)));
|
|
576
458
|
const filteredObjectTypes2 = objectSetTypes2.filter(Boolean);
|
|
577
459
|
const firstInterfaceType = filteredObjectTypes2.find((val) => val?.type === "interface");
|
|
578
|
-
!firstInterfaceType ? process.env.NODE_ENV !== "production" ?
|
|
460
|
+
!firstInterfaceType ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Missing interface type in intersect objectset scope'`) : invariant3__default.default(false) : void 0;
|
|
579
461
|
return firstInterfaceType;
|
|
580
462
|
}
|
|
581
463
|
case "subtract":
|
|
@@ -586,7 +468,7 @@ async function extractObjectOrInterfaceType(clientCtx, objectSet) {
|
|
|
586
468
|
const firstObjectType = filteredObjectTypes[0];
|
|
587
469
|
!filteredObjectTypes.every((val) => {
|
|
588
470
|
return val?.apiName === firstObjectType?.apiName && val?.type === firstObjectType?.type;
|
|
589
|
-
}) ? process.env.NODE_ENV !== "production" ?
|
|
471
|
+
}) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Can only have one object type when doing subtract, union") : invariant3__default.default(false) : void 0;
|
|
590
472
|
return filteredObjectTypes[0];
|
|
591
473
|
case "static":
|
|
592
474
|
case "reference":
|
|
@@ -598,7 +480,7 @@ async function extractObjectOrInterfaceType(clientCtx, objectSet) {
|
|
|
598
480
|
}
|
|
599
481
|
const objOrInterfaceDef = def.type === "object" ? await clientCtx.ontologyProvider.getObjectDefinition(def.apiName) : await clientCtx.ontologyProvider.getInterfaceDefinition(def.apiName);
|
|
600
482
|
const linkDef = objOrInterfaceDef.links[objectSet.interfaceLink];
|
|
601
|
-
!linkDef ? process.env.NODE_ENV !== "production" ?
|
|
483
|
+
!linkDef ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Missing link definition for '${objectSet.interfaceLink}'`) : invariant3__default.default(false) : void 0;
|
|
602
484
|
return objOrInterfaceDef.type === "object" ? {
|
|
603
485
|
apiName: objOrInterfaceDef.links[objectSet.interfaceLink].targetType,
|
|
604
486
|
type: "object"
|
|
@@ -608,9 +490,12 @@ async function extractObjectOrInterfaceType(clientCtx, objectSet) {
|
|
|
608
490
|
};
|
|
609
491
|
// We don't have to worry about new object sets being added and doing a runtime break and breaking people since the OSDK is always constructing these.
|
|
610
492
|
default:
|
|
611
|
-
process.env.NODE_ENV !== "production" ?
|
|
493
|
+
process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Unsupported object set type for deriving object or interface type,`) : invariant3__default.default(false) ;
|
|
612
494
|
}
|
|
613
495
|
}
|
|
496
|
+
|
|
497
|
+
// src/util/extractRdpDefinition.ts
|
|
498
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
614
499
|
async function extractRdpDefinition(clientCtx, objectSet) {
|
|
615
500
|
return (await extractRdpDefinitionInternal(clientCtx, objectSet, void 0)).definitions;
|
|
616
501
|
}
|
|
@@ -628,7 +513,7 @@ async function extractRdpDefinitionInternal(clientCtx, objectSet, methodInputObj
|
|
|
628
513
|
}
|
|
629
514
|
const objDef = await clientCtx.ontologyProvider.getObjectDefinition(childObjectType);
|
|
630
515
|
const linkDef = objDef.links[objectSet.link];
|
|
631
|
-
!linkDef ? process.env.NODE_ENV !== "production" ?
|
|
516
|
+
!linkDef ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Missing link definition for '${objectSet.link}'`) : invariant3__default.default(false) : void 0;
|
|
632
517
|
return {
|
|
633
518
|
definitions: definitions2,
|
|
634
519
|
childObjectType: objDef.links[objectSet.link].targetType
|
|
@@ -714,13 +599,13 @@ async function extractRdpDefinitionInternal(clientCtx, objectSet, methodInputObj
|
|
|
714
599
|
...acc,
|
|
715
600
|
...definitions2
|
|
716
601
|
}), {});
|
|
717
|
-
!(Object.keys(definitions).length === 0) ? process.env.NODE_ENV !== "production" ?
|
|
602
|
+
!(Object.keys(definitions).length === 0) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Object sets combined using intersect, subtract, or union must not contain any derived property definitions") : invariant3__default.default(false) : void 0;
|
|
718
603
|
const firstValidChildObjectType = objectSetTypes.find(({
|
|
719
604
|
childObjectType
|
|
720
605
|
}) => childObjectType != null)?.childObjectType;
|
|
721
606
|
!objectSetTypes.every(({
|
|
722
607
|
childObjectType
|
|
723
|
-
}) => childObjectType === firstValidChildObjectType || childObjectType == null) ? process.env.NODE_ENV !== "production" ?
|
|
608
|
+
}) => childObjectType === firstValidChildObjectType || childObjectType == null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "All object sets in an intersect, subtract, or union must have the same child object type") : invariant3__default.default(false) : void 0;
|
|
724
609
|
return {
|
|
725
610
|
definitions: {},
|
|
726
611
|
childObjectType: firstValidChildObjectType
|
|
@@ -732,13 +617,14 @@ async function extractRdpDefinitionInternal(clientCtx, objectSet, methodInputObj
|
|
|
732
617
|
};
|
|
733
618
|
// We don't have to worry about new object sets being added and doing a runtime break and breaking people since the OSDK is always constructing these.
|
|
734
619
|
case "interfaceLinkSearchAround":
|
|
735
|
-
process.env.NODE_ENV !== "production" ?
|
|
620
|
+
process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Unsupported object set type for Runtime Derived Properties`) : invariant3__default.default(false) ;
|
|
736
621
|
default:
|
|
737
|
-
process.env.NODE_ENV !== "production" ?
|
|
622
|
+
process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Unsupported object set type for Runtime Derived Properties`) : invariant3__default.default(false) ;
|
|
738
623
|
}
|
|
739
624
|
}
|
|
740
625
|
|
|
741
626
|
// src/util/objectSetUtils.ts
|
|
627
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
742
628
|
function resolveBaseObjectSetType(objectType) {
|
|
743
629
|
return objectType.type === "interface" ? {
|
|
744
630
|
type: "interfaceBase",
|
|
@@ -799,7 +685,8 @@ async function fetchStaticRidPage(client, rids, args, useSnapshot = false) {
|
|
|
799
685
|
const result = await OntologyObjectSet_exports.loadMultipleObjectTypes(addUserAgentAndRequestContextHeaders(client, {
|
|
800
686
|
osdkMetadata: void 0
|
|
801
687
|
}), await client.ontologyRid, requestBody, {
|
|
802
|
-
preview: true
|
|
688
|
+
preview: true,
|
|
689
|
+
transactionId: client.transactionId
|
|
803
690
|
});
|
|
804
691
|
return Promise.resolve({
|
|
805
692
|
data: await client.objectFactory2(client, result.data, void 0, {}, !args.$includeRid, args.$select, false, result.interfaceToObjectTypeMappings),
|
|
@@ -845,7 +732,8 @@ async function fetchInterfacePage(client, interfaceType, args, objectSet, useSna
|
|
|
845
732
|
}, client, interfaceType);
|
|
846
733
|
const result = await OntologyObjectSet_exports.loadMultipleObjectTypes(addUserAgentAndRequestContextHeaders(client, interfaceType), await client.ontologyRid, requestBody, {
|
|
847
734
|
preview: true,
|
|
848
|
-
branch: client.branch
|
|
735
|
+
branch: client.branch,
|
|
736
|
+
transactionId: client.transactionId
|
|
849
737
|
});
|
|
850
738
|
return Promise.resolve({
|
|
851
739
|
data: await client.objectFactory2(client, result.data, extractedInterfaceTypeApiName, {}, !args.$includeRid, args.$select, false, result.interfaceToObjectTypeMappings),
|
|
@@ -942,7 +830,8 @@ async function fetchObjectPage(client, objectType, args, objectSet, useSnapshot
|
|
|
942
830
|
snapshot: useSnapshot
|
|
943
831
|
}, client, objectType);
|
|
944
832
|
const r = await OntologyObjectSet_exports.load(addUserAgentAndRequestContextHeaders(client, objectType), await client.ontologyRid, requestBody, {
|
|
945
|
-
branch: client.branch
|
|
833
|
+
branch: client.branch,
|
|
834
|
+
transactionId: client.transactionId
|
|
946
835
|
});
|
|
947
836
|
return Promise.resolve({
|
|
948
837
|
data: await client.objectFactory(client, r.data, void 0, void 0, await extractRdpDefinition(client, objectSet), args.$select, false),
|
|
@@ -951,7 +840,11 @@ async function fetchObjectPage(client, objectType, args, objectSet, useSnapshot
|
|
|
951
840
|
});
|
|
952
841
|
}
|
|
953
842
|
|
|
843
|
+
// src/public-utils/hydrateAttachmentFromRid.ts
|
|
844
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
845
|
+
|
|
954
846
|
// src/Client.ts
|
|
847
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
955
848
|
var additionalContext = Symbol("additionalContext");
|
|
956
849
|
|
|
957
850
|
// src/public-utils/hydrateAttachmentFromRid.ts
|
|
@@ -974,7 +867,11 @@ function hydrateAttachmentFromRidInternal(client, rid) {
|
|
|
974
867
|
};
|
|
975
868
|
}
|
|
976
869
|
|
|
870
|
+
// src/logger/MinimalLogger.ts
|
|
871
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
872
|
+
|
|
977
873
|
// src/logger/BaseLogger.ts
|
|
874
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
978
875
|
function noop() {
|
|
979
876
|
}
|
|
980
877
|
var levels = {
|
|
@@ -1040,6 +937,9 @@ var MinimalLogger = class _MinimalLogger extends BaseLogger {
|
|
|
1040
937
|
};
|
|
1041
938
|
}
|
|
1042
939
|
};
|
|
940
|
+
|
|
941
|
+
// src/object/fetchSingle.ts
|
|
942
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
1043
943
|
async function fetchSingle(client, objectType, args, objectSet) {
|
|
1044
944
|
const result = await fetchPage(client, objectType, {
|
|
1045
945
|
...args,
|
|
@@ -1067,6 +967,247 @@ async function fetchSingleWithErrors(client, objectType, args, objectSet) {
|
|
|
1067
967
|
};
|
|
1068
968
|
}
|
|
1069
969
|
}
|
|
970
|
+
|
|
971
|
+
// src/objectSet/createObjectSet.ts
|
|
972
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
973
|
+
|
|
974
|
+
// src/derivedProperties/createWithPropertiesObjectSet.ts
|
|
975
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
976
|
+
|
|
977
|
+
// src/internal/conversions/modernToLegacyWhereClause.ts
|
|
978
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
979
|
+
|
|
980
|
+
// src/internal/conversions/fullyQualifyPropName.ts
|
|
981
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
982
|
+
function fullyQualifyPropName(fieldName, objectOrInterface) {
|
|
983
|
+
if (objectOrInterface.type === "interface") {
|
|
984
|
+
const [objApiNamespace] = extractNamespace(objectOrInterface.apiName);
|
|
985
|
+
const [fieldApiNamespace, fieldShortName] = extractNamespace(fieldName);
|
|
986
|
+
return fieldApiNamespace == null && objApiNamespace != null ? `${objApiNamespace}.${fieldShortName}` : fieldName;
|
|
987
|
+
}
|
|
988
|
+
return fieldName;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
// src/internal/conversions/makeGeoFilterIntersects.ts
|
|
992
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
993
|
+
|
|
994
|
+
// src/internal/conversions/makeGeoFilterBbox.ts
|
|
995
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
996
|
+
function makeGeoFilterBbox(bbox, filterType, propertyIdentifier, field) {
|
|
997
|
+
return {
|
|
998
|
+
type: filterType === "$within" ? "withinBoundingBox" : "intersectsBoundingBox",
|
|
999
|
+
/**
|
|
1000
|
+
* This is a bit ugly, but did this so that propertyIdentifier only shows up in the return object if its defined,
|
|
1001
|
+
* this makes it so we don't need to go update our entire test bed either to include a field which may change in near future.
|
|
1002
|
+
* Once we solidify that this is the way forward, I can remove field and clean this up
|
|
1003
|
+
*/
|
|
1004
|
+
...propertyIdentifier != null && {
|
|
1005
|
+
propertyIdentifier
|
|
1006
|
+
},
|
|
1007
|
+
field,
|
|
1008
|
+
value: {
|
|
1009
|
+
topLeft: {
|
|
1010
|
+
type: "Point",
|
|
1011
|
+
coordinates: [bbox[0], bbox[3]]
|
|
1012
|
+
},
|
|
1013
|
+
bottomRight: {
|
|
1014
|
+
type: "Point",
|
|
1015
|
+
coordinates: [bbox[2], bbox[1]]
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
};
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
// src/internal/conversions/makeGeoFilterPolygon.ts
|
|
1022
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
1023
|
+
function makeGeoFilterPolygon(coordinates, filterType, propertyIdentifier, field) {
|
|
1024
|
+
return {
|
|
1025
|
+
type: filterType,
|
|
1026
|
+
...propertyIdentifier != null && {
|
|
1027
|
+
propertyIdentifier
|
|
1028
|
+
},
|
|
1029
|
+
field,
|
|
1030
|
+
value: {
|
|
1031
|
+
type: "Polygon",
|
|
1032
|
+
coordinates
|
|
1033
|
+
}
|
|
1034
|
+
};
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
// src/internal/conversions/makeGeoFilterIntersects.ts
|
|
1038
|
+
function makeGeoFilterIntersects(intersectsBody, propertyIdentifier, field) {
|
|
1039
|
+
if (Array.isArray(intersectsBody)) {
|
|
1040
|
+
return makeGeoFilterBbox(intersectsBody, "$intersects", propertyIdentifier, field);
|
|
1041
|
+
} else if ("$bbox" in intersectsBody && intersectsBody.$bbox != null) {
|
|
1042
|
+
return makeGeoFilterBbox(intersectsBody.$bbox, "$intersects", propertyIdentifier, field);
|
|
1043
|
+
} else {
|
|
1044
|
+
const coordinates = "$polygon" in intersectsBody ? intersectsBody.$polygon : intersectsBody.coordinates;
|
|
1045
|
+
return makeGeoFilterPolygon(coordinates, "intersectsPolygon", propertyIdentifier, field);
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
// src/internal/conversions/makeGeoFilterWithin.ts
|
|
1050
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
1051
|
+
function makeGeoFilterWithin(withinBody, propertyIdentifier, field) {
|
|
1052
|
+
if (Array.isArray(withinBody)) {
|
|
1053
|
+
return makeGeoFilterBbox(withinBody, "$within", propertyIdentifier, field);
|
|
1054
|
+
} else if ("$bbox" in withinBody && withinBody.$bbox != null) {
|
|
1055
|
+
return makeGeoFilterBbox(withinBody.$bbox, "$within", propertyIdentifier, field);
|
|
1056
|
+
} else if ("$distance" in withinBody && "$of" in withinBody && withinBody.$distance != null && withinBody.$of != null) {
|
|
1057
|
+
return {
|
|
1058
|
+
type: "withinDistanceOf",
|
|
1059
|
+
...propertyIdentifier != null && {
|
|
1060
|
+
propertyIdentifier
|
|
1061
|
+
},
|
|
1062
|
+
field,
|
|
1063
|
+
value: {
|
|
1064
|
+
center: Array.isArray(withinBody.$of) ? {
|
|
1065
|
+
type: "Point",
|
|
1066
|
+
coordinates: withinBody.$of
|
|
1067
|
+
} : withinBody.$of,
|
|
1068
|
+
distance: {
|
|
1069
|
+
value: withinBody.$distance[0],
|
|
1070
|
+
unit: api.DistanceUnitMapping[withinBody.$distance[1]]
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
};
|
|
1074
|
+
} else {
|
|
1075
|
+
const coordinates = "$polygon" in withinBody ? withinBody.$polygon : withinBody.coordinates;
|
|
1076
|
+
return makeGeoFilterPolygon(coordinates, "withinPolygon", propertyIdentifier, field);
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
// src/internal/conversions/modernToLegacyWhereClause.ts
|
|
1081
|
+
function isAndClause(whereClause) {
|
|
1082
|
+
return "$and" in whereClause && whereClause.$and !== void 0;
|
|
1083
|
+
}
|
|
1084
|
+
function isOrClause(whereClause) {
|
|
1085
|
+
return "$or" in whereClause && whereClause.$or !== void 0;
|
|
1086
|
+
}
|
|
1087
|
+
function isNotClause(whereClause) {
|
|
1088
|
+
return "$not" in whereClause && whereClause.$not !== void 0;
|
|
1089
|
+
}
|
|
1090
|
+
function modernToLegacyWhereClause(whereClause, objectOrInterface, rdpNames) {
|
|
1091
|
+
const parts = Object.entries(whereClause).map(([key, value]) => ({
|
|
1092
|
+
[key]: value
|
|
1093
|
+
}));
|
|
1094
|
+
if (parts.length === 1) {
|
|
1095
|
+
return modernToLegacyWhereClauseInner(whereClause, objectOrInterface, rdpNames);
|
|
1096
|
+
}
|
|
1097
|
+
return {
|
|
1098
|
+
type: "and",
|
|
1099
|
+
value: parts.map((v) => modernToLegacyWhereClauseInner(v, objectOrInterface, rdpNames))
|
|
1100
|
+
};
|
|
1101
|
+
}
|
|
1102
|
+
function modernToLegacyWhereClauseInner(whereClause, objectOrInterface, rdpNames) {
|
|
1103
|
+
const parts = Object.entries(whereClause);
|
|
1104
|
+
!(parts.length === 1) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Invalid where clause provided.") : invariant3__default.default(false) : void 0;
|
|
1105
|
+
if (isAndClause(whereClause)) {
|
|
1106
|
+
return {
|
|
1107
|
+
type: "and",
|
|
1108
|
+
value: whereClause.$and.map((clause) => modernToLegacyWhereClause(clause, objectOrInterface, rdpNames))
|
|
1109
|
+
};
|
|
1110
|
+
} else if (isOrClause(whereClause)) {
|
|
1111
|
+
return {
|
|
1112
|
+
type: "or",
|
|
1113
|
+
value: whereClause.$or.map((clause) => modernToLegacyWhereClause(clause, objectOrInterface, rdpNames))
|
|
1114
|
+
};
|
|
1115
|
+
} else if (isNotClause(whereClause)) {
|
|
1116
|
+
return {
|
|
1117
|
+
type: "not",
|
|
1118
|
+
value: modernToLegacyWhereClause(whereClause.$not, objectOrInterface, rdpNames)
|
|
1119
|
+
};
|
|
1120
|
+
}
|
|
1121
|
+
return handleWherePair(parts[0], objectOrInterface, void 0, rdpNames);
|
|
1122
|
+
}
|
|
1123
|
+
function handleWherePair([fieldName, filter], objectOrInterface, structFieldSelector, rdpNames) {
|
|
1124
|
+
!(filter != null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Defined key values are only allowed when they are not undefined.") : invariant3__default.default(false) : void 0;
|
|
1125
|
+
const isRdp = !structFieldSelector && rdpNames?.has(fieldName);
|
|
1126
|
+
const propertyIdentifier = isRdp ? {
|
|
1127
|
+
type: "property",
|
|
1128
|
+
apiName: fieldName
|
|
1129
|
+
} : structFieldSelector != null ? {
|
|
1130
|
+
type: "structField",
|
|
1131
|
+
...structFieldSelector,
|
|
1132
|
+
propertyApiName: fullyQualifyPropName(structFieldSelector.propertyApiName, objectOrInterface)
|
|
1133
|
+
} : void 0;
|
|
1134
|
+
const field = !isRdp && structFieldSelector == null ? fullyQualifyPropName(fieldName, objectOrInterface) : void 0;
|
|
1135
|
+
!(field == null || propertyIdentifier == null && (field != null || isRdp != null)) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Encountered error constructing where clause: field and propertyIdentifier cannot both be defined") : invariant3__default.default(false) : void 0;
|
|
1136
|
+
if (typeof filter === "string" || typeof filter === "number" || typeof filter === "boolean") {
|
|
1137
|
+
return {
|
|
1138
|
+
type: "eq",
|
|
1139
|
+
...propertyIdentifier != null && {
|
|
1140
|
+
propertyIdentifier
|
|
1141
|
+
},
|
|
1142
|
+
field,
|
|
1143
|
+
value: filter
|
|
1144
|
+
};
|
|
1145
|
+
}
|
|
1146
|
+
const keysOfFilter = Object.keys(filter);
|
|
1147
|
+
const hasDollarSign = keysOfFilter.some((key) => key.startsWith("$"));
|
|
1148
|
+
!(!hasDollarSign || keysOfFilter.length === 1) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "A WhereClause Filter with multiple clauses/fields is not allowed. Instead, use an 'or'/'and' clause to combine multiple filters.") : invariant3__default.default(false) : void 0;
|
|
1149
|
+
if (!hasDollarSign) {
|
|
1150
|
+
const structFilter = Object.entries(filter);
|
|
1151
|
+
!(structFilter.length === 1) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Cannot filter on more than one struct field in the same clause, need to use an and clause") : invariant3__default.default(false) : void 0;
|
|
1152
|
+
const structFieldApiName = keysOfFilter[0];
|
|
1153
|
+
return handleWherePair(Object.entries(filter)[0], objectOrInterface, {
|
|
1154
|
+
propertyApiName: fieldName,
|
|
1155
|
+
structFieldApiName
|
|
1156
|
+
}, rdpNames);
|
|
1157
|
+
}
|
|
1158
|
+
const firstKey = keysOfFilter[0];
|
|
1159
|
+
!(filter[firstKey] != null) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false) : invariant3__default.default(false) : void 0;
|
|
1160
|
+
if (firstKey === "$contains" && filter[firstKey] instanceof Object) {
|
|
1161
|
+
const structFilter = Object.entries(filter[firstKey]);
|
|
1162
|
+
!(structFilter.length === 1) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Cannot filter on more than one struct field in the same clause, need to use an and clause") : invariant3__default.default(false) : void 0;
|
|
1163
|
+
const structFieldApiName = structFilter[0][0];
|
|
1164
|
+
return handleWherePair(structFilter[0], objectOrInterface, {
|
|
1165
|
+
propertyApiName: fieldName,
|
|
1166
|
+
structFieldApiName
|
|
1167
|
+
});
|
|
1168
|
+
}
|
|
1169
|
+
if (firstKey === "$ne") {
|
|
1170
|
+
return {
|
|
1171
|
+
type: "not",
|
|
1172
|
+
value: {
|
|
1173
|
+
type: "eq",
|
|
1174
|
+
...propertyIdentifier != null && {
|
|
1175
|
+
propertyIdentifier
|
|
1176
|
+
},
|
|
1177
|
+
field,
|
|
1178
|
+
value: filter[firstKey]
|
|
1179
|
+
}
|
|
1180
|
+
};
|
|
1181
|
+
}
|
|
1182
|
+
if (firstKey === "$within") {
|
|
1183
|
+
return makeGeoFilterWithin(filter[firstKey], propertyIdentifier, field);
|
|
1184
|
+
}
|
|
1185
|
+
if (firstKey === "$intersects") {
|
|
1186
|
+
return makeGeoFilterIntersects(filter[firstKey], propertyIdentifier, field);
|
|
1187
|
+
}
|
|
1188
|
+
if (firstKey === "$containsAllTerms" || firstKey === "$containsAnyTerm") {
|
|
1189
|
+
return {
|
|
1190
|
+
type: firstKey.substring(1),
|
|
1191
|
+
...propertyIdentifier != null && {
|
|
1192
|
+
propertyIdentifier
|
|
1193
|
+
},
|
|
1194
|
+
field,
|
|
1195
|
+
value: typeof filter[firstKey] === "string" ? filter[firstKey] : filter[firstKey]["term"],
|
|
1196
|
+
fuzzy: typeof filter[firstKey] === "string" ? false : filter[firstKey]["fuzzySearch"] ?? false
|
|
1197
|
+
};
|
|
1198
|
+
}
|
|
1199
|
+
return {
|
|
1200
|
+
type: firstKey.substring(1),
|
|
1201
|
+
...propertyIdentifier != null && {
|
|
1202
|
+
propertyIdentifier
|
|
1203
|
+
},
|
|
1204
|
+
field,
|
|
1205
|
+
value: filter[firstKey]
|
|
1206
|
+
};
|
|
1207
|
+
}
|
|
1208
|
+
|
|
1209
|
+
// src/derivedProperties/derivedPropertyDefinitionFactory.ts
|
|
1210
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
1070
1211
|
function derivedPropertyDefinitionFactory(wireDefinition, definitionMap) {
|
|
1071
1212
|
const definition = {
|
|
1072
1213
|
abs() {
|
|
@@ -1133,12 +1274,12 @@ function derivedPropertyDefinitionFactory(wireDefinition, definitionMap) {
|
|
|
1133
1274
|
var getDefinitionFromMap = (arg, definitionMap) => {
|
|
1134
1275
|
if (typeof arg === "object") {
|
|
1135
1276
|
const definition = definitionMap.get(arg);
|
|
1136
|
-
!definition ? process.env.NODE_ENV !== "production" ?
|
|
1277
|
+
!definition ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Derived Property is not defined") : invariant3__default.default(false) : void 0;
|
|
1137
1278
|
return definition;
|
|
1138
1279
|
} else if (typeof arg === "number") {
|
|
1139
|
-
process.env.NODE_ENV !== "production" ?
|
|
1280
|
+
process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Literals for derived properties are not yet supported") : invariant3__default.default(false) ;
|
|
1140
1281
|
}
|
|
1141
|
-
process.env.NODE_ENV !== "production" ?
|
|
1282
|
+
process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Invalid argument type for a derived property") : invariant3__default.default(false) ;
|
|
1142
1283
|
};
|
|
1143
1284
|
|
|
1144
1285
|
// src/derivedProperties/createWithPropertiesObjectSet.ts
|
|
@@ -1152,15 +1293,16 @@ function createWithPropertiesObjectSet(objectType, objectSet, definitionMap, fro
|
|
|
1152
1293
|
}, definitionMap);
|
|
1153
1294
|
},
|
|
1154
1295
|
where: (clause) => {
|
|
1296
|
+
const rdpNames = new Set(definitionMap.keys());
|
|
1155
1297
|
return createWithPropertiesObjectSet(objectType, {
|
|
1156
1298
|
type: "filter",
|
|
1157
1299
|
objectSet,
|
|
1158
|
-
where: modernToLegacyWhereClause(clause, objectType)
|
|
1300
|
+
where: modernToLegacyWhereClause(clause, objectType, rdpNames)
|
|
1159
1301
|
}, definitionMap);
|
|
1160
1302
|
},
|
|
1161
1303
|
aggregate: (aggregation, opt) => {
|
|
1162
1304
|
const splitAggregation = aggregation.split(":");
|
|
1163
|
-
!(splitAggregation.length === 2 || splitAggregation[0] === "$count") ? process.env.NODE_ENV !== "production" ?
|
|
1305
|
+
!(splitAggregation.length === 2 || splitAggregation[0] === "$count") ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Invalid aggregation format") : invariant3__default.default(false) : void 0;
|
|
1164
1306
|
const [aggregationPropertyName, aggregationOperation] = splitAggregation;
|
|
1165
1307
|
let aggregationOperationDefinition;
|
|
1166
1308
|
switch (aggregationOperation) {
|
|
@@ -1198,7 +1340,7 @@ function createWithPropertiesObjectSet(objectType, objectSet, definitionMap, fro
|
|
|
1198
1340
|
break;
|
|
1199
1341
|
}
|
|
1200
1342
|
default:
|
|
1201
|
-
process.env.NODE_ENV !== "production" ?
|
|
1343
|
+
process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Invalid aggregation operation " + aggregationOperation) : invariant3__default.default(false) ;
|
|
1202
1344
|
}
|
|
1203
1345
|
const wrappedObjectSet = {
|
|
1204
1346
|
type: "selection",
|
|
@@ -1233,30 +1375,36 @@ function createWithPropertiesObjectSet(objectType, objectSet, definitionMap, fro
|
|
|
1233
1375
|
},
|
|
1234
1376
|
constant: {
|
|
1235
1377
|
double: (value) => {
|
|
1236
|
-
process.env.NODE_ENV !== "production" ?
|
|
1378
|
+
process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Not supported") : invariant3__default.default(false) ;
|
|
1237
1379
|
},
|
|
1238
1380
|
integer: (value) => {
|
|
1239
|
-
process.env.NODE_ENV !== "production" ?
|
|
1381
|
+
process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Not supported") : invariant3__default.default(false) ;
|
|
1240
1382
|
},
|
|
1241
1383
|
long: (value) => {
|
|
1242
|
-
process.env.NODE_ENV !== "production" ?
|
|
1384
|
+
process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Not supported") : invariant3__default.default(false) ;
|
|
1243
1385
|
},
|
|
1244
1386
|
datetime: (value) => {
|
|
1245
|
-
process.env.NODE_ENV !== "production" ?
|
|
1387
|
+
process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Not supported") : invariant3__default.default(false) ;
|
|
1246
1388
|
},
|
|
1247
1389
|
timestamp: (value) => {
|
|
1248
|
-
process.env.NODE_ENV !== "production" ?
|
|
1390
|
+
process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Not supported") : invariant3__default.default(false) ;
|
|
1249
1391
|
}
|
|
1250
1392
|
}
|
|
1251
1393
|
};
|
|
1252
1394
|
}
|
|
1395
|
+
|
|
1396
|
+
// src/object/aggregate.ts
|
|
1397
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
1398
|
+
|
|
1399
|
+
// src/internal/conversions/legacyToModernSingleAggregationResult.ts
|
|
1400
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
1253
1401
|
function legacyToModernSingleAggregationResult(entry) {
|
|
1254
1402
|
return entry.metrics.reduce((accumulator, curValue) => {
|
|
1255
1403
|
const parts = curValue.name.split(".");
|
|
1256
1404
|
if (parts[0] === "count") {
|
|
1257
1405
|
return accumulator;
|
|
1258
1406
|
}
|
|
1259
|
-
!(parts.length === 2) ? process.env.NODE_ENV !== "production" ?
|
|
1407
|
+
!(parts.length === 2) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "assumed we were getting a `${key}.${type}`") : invariant3__default.default(false) : void 0;
|
|
1260
1408
|
const property = parts[0];
|
|
1261
1409
|
const metricType = parts[1];
|
|
1262
1410
|
if (!(property in accumulator)) {
|
|
@@ -1268,6 +1416,7 @@ function legacyToModernSingleAggregationResult(entry) {
|
|
|
1268
1416
|
}
|
|
1269
1417
|
|
|
1270
1418
|
// src/internal/conversions/modernToLegacyAggregationClause.ts
|
|
1419
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
1271
1420
|
var directionFieldMap = (dir) => dir === "asc" ? "ASC" : dir === "desc" ? "DESC" : void 0;
|
|
1272
1421
|
function modernToLegacyAggregationClause(select) {
|
|
1273
1422
|
return Object.entries(select).flatMap(([propAndMetric, aggregationType]) => {
|
|
@@ -1289,6 +1438,9 @@ function modernToLegacyAggregationClause(select) {
|
|
|
1289
1438
|
}];
|
|
1290
1439
|
});
|
|
1291
1440
|
}
|
|
1441
|
+
|
|
1442
|
+
// src/internal/conversions/modernToLegacyGroupByClause.ts
|
|
1443
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
1292
1444
|
function modernToLegacyGroupByClause(groupByClause) {
|
|
1293
1445
|
if (!groupByClause) return [];
|
|
1294
1446
|
return Object.entries(groupByClause).flatMap(([field, type]) => {
|
|
@@ -1356,10 +1508,11 @@ async function aggregate3(clientCtx, objectType, objectSet = resolveBaseObjectSe
|
|
|
1356
1508
|
groupBy: body.groupBy,
|
|
1357
1509
|
aggregation: body.aggregation
|
|
1358
1510
|
}, {
|
|
1359
|
-
branch: clientCtx.branch
|
|
1511
|
+
branch: clientCtx.branch,
|
|
1512
|
+
transactionId: clientCtx.transactionId
|
|
1360
1513
|
});
|
|
1361
1514
|
if (!req.$groupBy) {
|
|
1362
|
-
!(result.data.length === 1) ? process.env.NODE_ENV !== "production" ?
|
|
1515
|
+
!(result.data.length === 1) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "no group by clause should mean only one data result") : invariant3__default.default(false) : void 0;
|
|
1363
1516
|
return {
|
|
1364
1517
|
...aggregationToCountResult(result.data[0]),
|
|
1365
1518
|
...legacyToModernSingleAggregationResult(result.data[0])
|
|
@@ -1385,6 +1538,7 @@ function aggregationToCountResult(entry) {
|
|
|
1385
1538
|
}
|
|
1386
1539
|
|
|
1387
1540
|
// src/util/augmentRequestContext.ts
|
|
1541
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
1388
1542
|
var augmentRequestContext = (client, augment2) => ({
|
|
1389
1543
|
...client,
|
|
1390
1544
|
requestContext: {
|
|
@@ -1394,12 +1548,17 @@ var augmentRequestContext = (client, augment2) => ({
|
|
|
1394
1548
|
});
|
|
1395
1549
|
|
|
1396
1550
|
// src/util/WireObjectSet.ts
|
|
1551
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
1397
1552
|
var WIRE_OBJECT_SET_TYPES = /* @__PURE__ */ new Set(["base", "filter", "intersect", "reference", "searchAround", "static", "subtract", "union", "interfaceBase"]);
|
|
1398
1553
|
function isWireObjectSet(o) {
|
|
1399
1554
|
return o != null && typeof o === "object" && WIRE_OBJECT_SET_TYPES.has(o.type);
|
|
1400
1555
|
}
|
|
1401
1556
|
|
|
1557
|
+
// src/objectSet/ObjectSetListenerWebsocket.ts
|
|
1558
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
1559
|
+
|
|
1402
1560
|
// src/util/exponentialBackoff.ts
|
|
1561
|
+
chunk6SCDLAU2_cjs.init_cjs_shims();
|
|
1403
1562
|
var DEFAULT_OPTIONS = {
|
|
1404
1563
|
initialDelayMs: 1e3,
|
|
1405
1564
|
maxDelayMs: 6e4,
|
|
@@ -1442,6 +1601,7 @@ var EXPONENTIAL_BACKOFF_MAX_DELAY_MS = 6e4;
|
|
|
1442
1601
|
var EXPONENTIAL_BACKOFF_MULTIPLIER = 2;
|
|
1443
1602
|
var EXPONENTIAL_BACKOFF_JITTER_FACTOR = 0.3;
|
|
1444
1603
|
var WEBSOCKET_IDLE_DISCONNECT_DELAY_MS = 15e3;
|
|
1604
|
+
var WEBSOCKET_HEARTBEAT_INTERVAL_MS = 45 * 1e3;
|
|
1445
1605
|
function doNothing() {
|
|
1446
1606
|
}
|
|
1447
1607
|
function fillOutListener({
|
|
@@ -1491,6 +1651,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1491
1651
|
#subscriptions = /* @__PURE__ */ new Map();
|
|
1492
1652
|
#endedSubscriptions = /* @__PURE__ */ new Set();
|
|
1493
1653
|
#maybeDisconnectTimeout;
|
|
1654
|
+
#heartbeatInterval;
|
|
1494
1655
|
// DO NOT CONSTRUCT DIRECTLY. ONLY EXPOSED AS A TESTING SEAM
|
|
1495
1656
|
constructor(client, {
|
|
1496
1657
|
minimumReconnectDelayMs = MINIMUM_RECONNECT_DELAY_MS
|
|
@@ -1506,7 +1667,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1506
1667
|
this.#logger = client.logger?.child({}, {
|
|
1507
1668
|
msgPrefix: "<OSW> "
|
|
1508
1669
|
});
|
|
1509
|
-
!(client.baseUrl.startsWith("https://") || client.baseUrl.startsWith("http://")) ? process.env.NODE_ENV !== "production" ?
|
|
1670
|
+
!(client.baseUrl.startsWith("https://") || client.baseUrl.startsWith("http://")) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Stack must be a URL") : invariant3__default.default(false) : void 0;
|
|
1510
1671
|
}
|
|
1511
1672
|
async subscribe(objectType, objectSet, listener, properties = []) {
|
|
1512
1673
|
const objOrInterfaceDef = objectType.type === "object" ? await this.#client.ontologyProvider.getObjectDefinition(objectType.apiName) : await this.#client.ontologyProvider.getInterfaceDefinition(objectType.apiName);
|
|
@@ -1669,6 +1830,14 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1669
1830
|
this.#isFirstConnection = false;
|
|
1670
1831
|
this.#backoff.reset();
|
|
1671
1832
|
this.#sendSubscribeMessage();
|
|
1833
|
+
if (this.#heartbeatInterval) {
|
|
1834
|
+
clearInterval(this.#heartbeatInterval);
|
|
1835
|
+
}
|
|
1836
|
+
this.#heartbeatInterval = setInterval(() => {
|
|
1837
|
+
if (this.#ws?.readyState === WebSocket__default.default.OPEN) {
|
|
1838
|
+
this.#sendSubscribeMessage();
|
|
1839
|
+
}
|
|
1840
|
+
}, WEBSOCKET_HEARTBEAT_INTERVAL_MS);
|
|
1672
1841
|
};
|
|
1673
1842
|
#onMessage = async (message) => {
|
|
1674
1843
|
const data = JSON.parse(String(message.data));
|
|
@@ -1692,7 +1861,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1692
1861
|
return;
|
|
1693
1862
|
}
|
|
1694
1863
|
default:
|
|
1695
|
-
process.env.NODE_ENV !== "production" ?
|
|
1864
|
+
process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "Unexpected message type") : invariant3__default.default(false) ;
|
|
1696
1865
|
}
|
|
1697
1866
|
};
|
|
1698
1867
|
#handleMessage_objectSetChanged = async (payload) => {
|
|
@@ -1757,7 +1926,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1757
1926
|
}
|
|
1758
1927
|
#handleMessage_refreshObjectSet = (payload) => {
|
|
1759
1928
|
const sub = this.#subscriptions.get(payload.id);
|
|
1760
|
-
!sub ? process.env.NODE_ENV !== "production" ?
|
|
1929
|
+
!sub ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Expected subscription id ${payload.id}`) : invariant3__default.default(false) : void 0;
|
|
1761
1930
|
try {
|
|
1762
1931
|
sub.listener.onOutOfDate();
|
|
1763
1932
|
} catch (error) {
|
|
@@ -1771,7 +1940,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1771
1940
|
responses
|
|
1772
1941
|
} = payload;
|
|
1773
1942
|
const subs = this.#pendingSubscriptions.get(id);
|
|
1774
|
-
!subs ? process.env.NODE_ENV !== "production" ?
|
|
1943
|
+
!subs ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `should have a pending subscription for ${id}`) : invariant3__default.default(false) : void 0;
|
|
1775
1944
|
this.#pendingSubscriptions.delete(id);
|
|
1776
1945
|
for (let i = 0; i < responses.length; i++) {
|
|
1777
1946
|
const sub = subs[i];
|
|
@@ -1813,7 +1982,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1813
1982
|
#handleMessage_subscriptionClosed(payload) {
|
|
1814
1983
|
const sub = this.#subscriptions.get(payload.id);
|
|
1815
1984
|
if (sub == null && this.#endedSubscriptions.has(payload.id)) return;
|
|
1816
|
-
!sub ? process.env.NODE_ENV !== "production" ?
|
|
1985
|
+
!sub ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `Expected subscription id ${payload.id}`) : invariant3__default.default(false) : void 0;
|
|
1817
1986
|
this.#tryCatchOnError(sub, true, payload.cause);
|
|
1818
1987
|
this.#unsubscribe(sub, "error");
|
|
1819
1988
|
}
|
|
@@ -1826,6 +1995,10 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1826
1995
|
this.#cycleWebsocket();
|
|
1827
1996
|
};
|
|
1828
1997
|
#cycleWebsocket = () => {
|
|
1998
|
+
if (this.#heartbeatInterval) {
|
|
1999
|
+
clearInterval(this.#heartbeatInterval);
|
|
2000
|
+
this.#heartbeatInterval = void 0;
|
|
2001
|
+
}
|
|
1829
2002
|
if (this.#ws) {
|
|
1830
2003
|
this.#ws.removeEventListener("open", this.#onOpen);
|
|
1831
2004
|
this.#ws.removeEventListener("message", this.#onMessage);
|
|
@@ -1838,7 +2011,7 @@ var ObjectSetListenerWebsocket = class _ObjectSetListenerWebsocket {
|
|
|
1838
2011
|
if (this.#subscriptions.size > 0) {
|
|
1839
2012
|
if (process.env.NODE_ENV !== "production") {
|
|
1840
2013
|
for (const s of this.#subscriptions.values()) {
|
|
1841
|
-
!(s.status !== "done" && s.status !== "error") ? process.env.NODE_ENV !== "production" ?
|
|
2014
|
+
!(s.status !== "done" && s.status !== "error") ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, "should not have done/error subscriptions still") : invariant3__default.default(false) : void 0;
|
|
1842
2015
|
}
|
|
1843
2016
|
}
|
|
1844
2017
|
for (const s of this.#subscriptions.values()) {
|
|
@@ -1994,7 +2167,7 @@ function createObjectSet(objectType, clientCtx, objectSet = resolveBaseObjectSet
|
|
|
1994
2167
|
},
|
|
1995
2168
|
asType: (objectTypeDef) => {
|
|
1996
2169
|
const existingMapping = clientCtx.asTypeInterfaceOrObjectMapping[objectTypeDef.apiName];
|
|
1997
|
-
!(!existingMapping || existingMapping === objectTypeDef.type) ? process.env.NODE_ENV !== "production" ?
|
|
2170
|
+
!(!existingMapping || existingMapping === objectTypeDef.type) ? process.env.NODE_ENV !== "production" ? invariant3__default.default(false, `${objectTypeDef.apiName} was previously used as an ${existingMapping}, but now used as a ${objectTypeDef.type}.`) : invariant3__default.default(false) : void 0;
|
|
1998
2171
|
clientCtx.asTypeInterfaceOrObjectMapping[objectTypeDef.apiName] = objectTypeDef.type;
|
|
1999
2172
|
return clientCtx.objectSetFactory(objectTypeDef, clientCtx, {
|
|
2000
2173
|
type: "asType",
|
|
@@ -2057,16 +2230,18 @@ exports.additionalContext = additionalContext;
|
|
|
2057
2230
|
exports.augment = augment;
|
|
2058
2231
|
exports.augmentRequestContext = augmentRequestContext;
|
|
2059
2232
|
exports.createObjectSet = createObjectSet;
|
|
2233
|
+
exports.createWithPropertiesObjectSet = createWithPropertiesObjectSet;
|
|
2060
2234
|
exports.extractNamespace = extractNamespace;
|
|
2061
2235
|
exports.fetchPage = fetchPage;
|
|
2062
2236
|
exports.fetchSingle = fetchSingle;
|
|
2063
2237
|
exports.fetchSingleWithErrors = fetchSingleWithErrors;
|
|
2064
2238
|
exports.fetchStaticRidPage = fetchStaticRidPage;
|
|
2239
|
+
exports.foundryPlatformFetch = foundryPlatformFetch;
|
|
2065
2240
|
exports.getWireObjectSet = getWireObjectSet;
|
|
2066
2241
|
exports.hydrateAttachmentFromRid = hydrateAttachmentFromRid;
|
|
2067
2242
|
exports.hydrateAttachmentFromRidInternal = hydrateAttachmentFromRidInternal;
|
|
2068
2243
|
exports.isObjectSet = isObjectSet;
|
|
2069
2244
|
exports.isWireObjectSet = isWireObjectSet;
|
|
2070
2245
|
exports.symbolClientContext = symbolClientContext;
|
|
2071
|
-
//# sourceMappingURL=chunk-
|
|
2072
|
-
//# sourceMappingURL=chunk-
|
|
2246
|
+
//# sourceMappingURL=chunk-RO7XAQOS.cjs.map
|
|
2247
|
+
//# sourceMappingURL=chunk-RO7XAQOS.cjs.map
|