@osdk/api 2.62.0 → 2.63.0-main-fca4dd1424050d21b9ea8a4cef96bf57d56b2217
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 +6 -0
- package/build/browser/Definitions.js.map +1 -1
- package/build/browser/index.js.map +1 -1
- package/build/browser/mapping/PropertyValueMapping.js.map +1 -1
- package/build/browser/object/CipherText.js.map +1 -1
- package/build/cjs/{ObjectSet-AKn8Gjtr.d.cts → ObjectSet-DFvXRobo.d.cts} +61 -7
- package/build/cjs/{QueryDefinition-e1BcqZvS.d.cts → QueryDefinition-C2F2WJqk.d.cts} +1 -1
- package/build/cjs/index.d.cts +4 -4
- package/build/cjs/public/shapes-internal.d.cts +2 -2
- package/build/cjs/public/unstable.d.cts +5 -5
- package/build/cjs/{shapes-internal-D0JGod50.d.cts → shapes-internal-Bq1nkSvZ.d.cts} +1 -1
- package/build/esm/Definitions.js.map +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/mapping/PropertyValueMapping.js.map +1 -1
- package/build/esm/object/CipherText.js.map +1 -1
- package/build/types/Definitions.d.ts +13 -5
- package/build/types/Definitions.d.ts.map +1 -1
- package/build/types/index.d.ts +3 -2
- package/build/types/index.d.ts.map +1 -1
- package/build/types/mapping/PropertyValueMapping.d.ts +30 -3
- package/build/types/mapping/PropertyValueMapping.d.ts.map +1 -1
- package/build/types/object/CipherText.d.ts +23 -0
- package/build/types/object/CipherText.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @osdk/api
|
|
2
2
|
|
|
3
|
+
## 2.63.0-main-fca4dd1424050d21b9ea8a4cef96bf57d56b2217
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 08ba782: cipherText object edits now accept distinct, ergonomic create and update inputs — `{ plaintext }` for create, `{ plaintext, strategy? }` for update, or an existing `CipherText` to reuse — and `getEdits()` emits the backend wire shape (`{ plaintext }` or `{ ciphertext }`, the reused ciphertext's encrypted envelope).
|
|
8
|
+
|
|
3
9
|
## 2.62.0
|
|
4
10
|
|
|
5
11
|
## 2.61.0
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Definitions.js","names":[],"sources":["Definitions.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n GetClientPropertyValueFromWire,\n GetCreatePropertyValueFromWire,\n} from \"./mapping/PropertyValueMapping.js\";\nimport type { ObjectMetadata } from \"./ontology/ObjectTypeDefinition.js\";\n\ntype MaybeArray<\n T extends { multiplicity?: boolean | undefined },\n U,\n> = T[\"multiplicity\"] extends true ? Array<U> : U;\n\ntype MaybeNullable<\n T extends ObjectMetadata.Property,\n U,\n> = T[\"nullable\"] extends true ? U | undefined : U;\n\n/**\n * @param T - ObjectMetadata.Property in literal form\n * @param STRICTLY_ENFORCE_NULLABLE - S for strict. If false, always `|undefined`\n */\nexport type OsdkObjectPropertyType<\n T extends ObjectMetadata.Property,\n STRICTLY_ENFORCE_NULLABLE extends boolean = true,\n> = STRICTLY_ENFORCE_NULLABLE extends false\n ? MaybeArray<T, GetClientPropertyValueFromWire<T[\"type\"]>> | undefined\n : MaybeNullable<T, MaybeArray<T, GetClientPropertyValueFromWire<T[\"type\"]>>>;\n\n/**\n * @param T - ObjectMetadata.Property in literal form\n */\nexport type OsdkObjectPropertyTypeNotUndefined<\n T extends ObjectMetadata.Property,\n> = MaybeArray<T, GetClientPropertyValueFromWire<T[\"type\"]>>;\n\
|
|
1
|
+
{"version":3,"file":"Definitions.js","names":[],"sources":["Definitions.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n GetClientPropertyValueFromWire,\n GetCreatePropertyValueFromWire,\n GetCreateWirePropertyValueFromWire,\n GetUpdatePropertyValueFromWire,\n GetUpdateWirePropertyValueFromWire,\n} from \"./mapping/PropertyValueMapping.js\";\nimport type { ObjectMetadata } from \"./ontology/ObjectTypeDefinition.js\";\n\ntype MaybeArray<\n T extends { multiplicity?: boolean | undefined },\n U,\n> = T[\"multiplicity\"] extends true ? Array<U> : U;\n\ntype MaybeNullable<\n T extends ObjectMetadata.Property,\n U,\n> = T[\"nullable\"] extends true ? U | undefined : U;\n\n/**\n * @param T - ObjectMetadata.Property in literal form\n * @param STRICTLY_ENFORCE_NULLABLE - S for strict. If false, always `|undefined`\n */\nexport type OsdkObjectPropertyType<\n T extends ObjectMetadata.Property,\n STRICTLY_ENFORCE_NULLABLE extends boolean = true,\n> = STRICTLY_ENFORCE_NULLABLE extends false\n ? MaybeArray<T, GetClientPropertyValueFromWire<T[\"type\"]>> | undefined\n : MaybeNullable<T, MaybeArray<T, GetClientPropertyValueFromWire<T[\"type\"]>>>;\n\n/**\n * @param T - ObjectMetadata.Property in literal form\n */\nexport type OsdkObjectPropertyTypeNotUndefined<\n T extends ObjectMetadata.Property,\n> = MaybeArray<T, GetClientPropertyValueFromWire<T[\"type\"]>>;\n\nexport type OsdkObjectCreatePropertyType<\n T extends ObjectMetadata.Property,\n STRICTLY_ENFORCE_NULLABLE extends boolean = true,\n> = STRICTLY_ENFORCE_NULLABLE extends false\n ? MaybeArray<T, GetCreatePropertyValueFromWire<T[\"type\"]>> | undefined\n : MaybeNullable<T, MaybeArray<T, GetCreatePropertyValueFromWire<T[\"type\"]>>>;\n\nexport type OsdkObjectUpdatePropertyType<\n T extends ObjectMetadata.Property,\n STRICTLY_ENFORCE_NULLABLE extends boolean = true,\n> = STRICTLY_ENFORCE_NULLABLE extends false\n ? MaybeArray<T, GetUpdatePropertyValueFromWire<T[\"type\"]>> | undefined\n : MaybeNullable<T, MaybeArray<T, GetUpdatePropertyValueFromWire<T[\"type\"]>>>;\n\nexport type OsdkObjectCreateWirePropertyType<\n T extends ObjectMetadata.Property,\n STRICTLY_ENFORCE_NULLABLE extends boolean = true,\n> = STRICTLY_ENFORCE_NULLABLE extends false\n ? MaybeArray<T, GetCreateWirePropertyValueFromWire<T[\"type\"]>> | undefined\n : MaybeNullable<\n T,\n MaybeArray<T, GetCreateWirePropertyValueFromWire<T[\"type\"]>>\n >;\n\nexport type OsdkObjectUpdateWirePropertyType<\n T extends ObjectMetadata.Property,\n STRICTLY_ENFORCE_NULLABLE extends boolean = true,\n> = STRICTLY_ENFORCE_NULLABLE extends false\n ? MaybeArray<T, GetUpdateWirePropertyValueFromWire<T[\"type\"]>> | undefined\n : MaybeNullable<\n T,\n MaybeArray<T, GetUpdateWirePropertyValueFromWire<T[\"type\"]>>\n >;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["DistanceUnitMapping","DurationMapping","isOk","TimeseriesDurationMapping"],"sources":["index.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type { ActionReturnTypeForOptions } from \"./actions/ActionReturnTypeForOptions.js\";\nexport type {\n ActionEditResponse,\n ActionParam,\n ActionValidationResponse,\n ApplyActionOptions,\n ApplyBatchActionOptions,\n} from \"./actions/Actions.js\";\nexport type { ValidAggregationKeys } from \"./aggregate/AggregatableKeys.js\";\nexport type { AggregateOpts } from \"./aggregate/AggregateOpts.js\";\nexport type { AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy } from \"./aggregate/AggregateOptsThatErrors.js\";\nexport type { AggregationResultsWithGroups } from \"./aggregate/AggregationResultsWithGroups.js\";\nexport type { AggregationResultsWithoutGroups } from \"./aggregate/AggregationResultsWithoutGroups.js\";\nexport type { AggregationClause } from \"./aggregate/AggregationsClause.js\";\nexport type { AggregationsResults } from \"./aggregate/AggregationsResults.js\";\nexport type { GeoFilterOptions } from \"./aggregate/GeoFilter.js\";\nexport type { IntervalRule } from \"./aggregate/IntervalRule.js\";\nexport { DistanceUnitMapping } from \"./aggregate/WhereClause.js\";\nexport type {\n AndWhereClause,\n GeoFilter_Intersects,\n GeoFilter_Within,\n NotWhereClause,\n OrWhereClause,\n PossibleWhereClauseFilters,\n WhereClause,\n} from \"./aggregate/WhereClause.js\";\nexport type {\n OsdkObjectCreatePropertyType,\n OsdkObjectPropertyType,\n} from \"./Definitions.js\";\nexport type {\n OsdkObjectLinksObject,\n SingleLinkAccessor,\n} from \"./definitions/LinkDefinitions.js\";\nexport { type DerivedProperty } from \"./derivedProperties/DerivedProperty.js\";\nexport { DurationMapping } from \"./groupby/GroupByClause.js\";\nexport type {\n AllGroupByValues,\n GroupByClause,\n GroupByRange,\n} from \"./groupby/GroupByClause.js\";\nexport type { Logger } from \"./Logger.js\";\nexport type {\n AllowedBucketKeyTypes,\n AllowedBucketTypes,\n DataValueClientToWire,\n DataValueWireToClient,\n} from \"./mapping/DataValueMapping.js\";\nexport type { PropertyValueWireToClient } from \"./mapping/PropertyValueMapping.js\";\nexport type {\n Attachment,\n AttachmentMetadata,\n AttachmentUpload,\n} from \"./object/Attachment.js\";\nexport type { CipherText } from \"./object/CipherText.js\";\nexport type {\n AsyncIterArgs,\n Augment,\n Augments,\n FetchPageArgs,\n NullabilityAdherence,\n ObjectSetArgs,\n SelectArg,\n SelectArgToKeys,\n} from \"./object/FetchPageArgs.js\";\nexport type {\n FetchPageResult,\n SingleOsdkResult,\n} from \"./object/FetchPageResult.js\";\nexport type {\n AffineTransform,\n AudioDecodeFormat,\n AudioMediaItemMetadata,\n AudioSpecification,\n BandInfo,\n ColorInterpretation,\n CommonDicomDataElements,\n CoordinateReferenceSystem,\n DataType,\n DicomDataElementKey,\n DicomMediaItemMetadata,\n DicomMediaType,\n DicomMetaInformation,\n DicomMetaInformationV1,\n Dimensions,\n DocumentDecodeFormat,\n DocumentMediaItemMetadata,\n EmailAttachment,\n EmailDecodeFormat,\n EmailMediaItemMetadata,\n FlipAxis,\n GcpList,\n GeoMetadata,\n GpsMetadata,\n GroundControlPoint,\n Group,\n GroupWrapper,\n ImageAttributeDomain,\n ImageAttributeKey,\n ImageryDecodeFormat,\n ImageryMediaItemMetadata,\n Mailbox,\n MailboxOrGroup,\n MailboxWrapper,\n Media,\n MediaFullMetadata,\n MediaItemMetadata,\n MediaMetadata,\n MediaPropertyLocation,\n MediaReference,\n MediaUpload,\n Modality,\n Model3dDecodeFormat,\n Model3dMediaItemMetadata,\n Model3dType,\n Orientation,\n PaletteInterpretation,\n RotationAngle,\n SpreadsheetDecodeFormat,\n SpreadsheetMediaItemMetadata,\n UnitInterpretation,\n UnknownMediaItemMetadata,\n UntypedMediaItemMetadata,\n VideoDecodeFormat,\n VideoMediaItemMetadata,\n VideoSpecification,\n} from \"./object/Media.js\";\nexport type {\n PropertyMarkings,\n PropertySecurity,\n} from \"./object/PropertySecurity.js\";\nexport { isOk } from \"./object/Result.js\";\nexport type { Result } from \"./object/Result.js\";\nexport type { BaseObjectSet } from \"./objectSet/BaseObjectSet.js\";\nexport type { ObjectSet } from \"./objectSet/ObjectSet.js\";\nexport type {\n FetchLinksPageResult,\n LinkTypeApiNamesFor,\n MinimalDirectedObjectLinkInstance,\n} from \"./objectSet/ObjectSetLinks.js\";\nexport type { ObjectSetSubscription } from \"./objectSet/ObjectSetListener.js\";\nexport type {\n ActionDefinition,\n ActionMetadata,\n} from \"./ontology/ActionDefinition.js\";\nexport type {\n InterfaceDefinition,\n InterfaceMetadata,\n} from \"./ontology/InterfaceDefinition.js\";\nexport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ontology/ObjectOrInterface.js\";\nexport type { ObjectSpecifier } from \"./ontology/ObjectSpecifier.js\";\nexport type {\n CompileTimeMetadata,\n ObjectMetadata,\n ObjectTypeDefinition,\n PropertyDef,\n VersionBound,\n} from \"./ontology/ObjectTypeDefinition.js\";\nexport type { OntologyMetadata } from \"./ontology/OntologyMetadata.js\";\nexport type { PrimaryKeyTypes } from \"./ontology/PrimaryKeyTypes.js\";\nexport type {\n InterfaceQueryDataType,\n ObjectQueryDataType,\n ObjectSetQueryDataType,\n QueryDataTypeDefinition,\n QueryDefinition,\n QueryMetadata,\n QueryParameterDefinition,\n ThreeDimensionalQueryAggregationDefinition,\n TwoDimensionalQueryAggregationDefinition,\n} from \"./ontology/QueryDefinition.js\";\nexport type { SimplePropertyDef } from \"./ontology/SimplePropertyDef.js\";\nexport type { PropertyBooleanFormattingRule } from \"./ontology/valueFormatting/PropertyBooleanFormattingRule.js\";\nexport type {\n DatetimeFormat,\n DatetimeLocalizedFormat,\n DatetimeLocalizedFormatType,\n DatetimeStringFormat,\n DatetimeTimezone,\n DatetimeTimezoneStatic,\n DatetimeTimezoneUser,\n PropertyDateFormattingRule,\n PropertyTimestampFormattingRule,\n} from \"./ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.js\";\nexport type {\n KnownType,\n PropertyKnownTypeFormattingRule,\n} from \"./ontology/valueFormatting/PropertyKnownTypeFormattingRule.js\";\nexport type {\n Affix,\n DurationBaseValue,\n DurationFormatStyle,\n DurationPrecision,\n HumanReadableFormat,\n NumberFormatAffix,\n NumberFormatCurrency,\n NumberFormatCurrencyStyle,\n NumberFormatCustomUnit,\n NumberFormatDuration,\n NumberFormatFixedValues,\n NumberFormatNotation,\n NumberFormatOptions,\n NumberFormatRatio,\n NumberFormatScale,\n NumberFormatStandard,\n NumberFormatStandardUnit,\n NumberRatioType,\n NumberRoundingMode,\n NumberScaleType,\n PropertyNumberFormattingRule,\n PropertyNumberFormattingRuleType,\n TimeCodeFormat,\n} from \"./ontology/valueFormatting/PropertyNumberFormattingRule.js\";\nexport type { PropertyValueFormattingRule } from \"./ontology/valueFormatting/PropertyValueFormattingRule.js\";\nexport type {\n PropertyTypeReference,\n PropertyTypeReferenceOrStringConstant,\n StringConstant,\n} from \"./ontology/valueFormatting/PropertyValueFormattingUtils.js\";\nexport type {\n BaseWirePropertyTypes,\n WirePropertyTypes,\n} from \"./ontology/WirePropertyTypes.js\";\nexport type {\n ObjectIdentifiers,\n OsdkBase,\n PrimaryKeyType,\n} from \"./OsdkBase.js\";\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport type { OsdkObject } from \"./OsdkObject.js\";\nexport type { ConvertProps, MaybeScore, Osdk } from \"./OsdkObjectFrom.js\";\nexport type { PageResult } from \"./PageResult.js\";\nexport type {\n Range,\n ThreeDimensionalAggregation,\n TwoDimensionalAggregation,\n} from \"./queries/Aggregations.js\";\nexport type { QueryParam, QueryResult } from \"./queries/Queries.js\";\nexport { TimeseriesDurationMapping } from \"./timeseries/timeseries.js\";\nexport type {\n GeotimeSeriesProperty,\n TimeSeriesPoint,\n TimeSeriesProperty,\n TimeSeriesQuery,\n} from \"./timeseries/timeseries.js\";\nexport type { LinkedType, LinkNames } from \"./util/LinkUtils.js\";\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAmBA,SAASA,mBAAmB,QAAQ,4BAA4B;
|
|
1
|
+
{"version":3,"file":"index.js","names":["DistanceUnitMapping","DurationMapping","isOk","TimeseriesDurationMapping"],"sources":["index.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type { ActionReturnTypeForOptions } from \"./actions/ActionReturnTypeForOptions.js\";\nexport type {\n ActionEditResponse,\n ActionParam,\n ActionValidationResponse,\n ApplyActionOptions,\n ApplyBatchActionOptions,\n} from \"./actions/Actions.js\";\nexport type { ValidAggregationKeys } from \"./aggregate/AggregatableKeys.js\";\nexport type { AggregateOpts } from \"./aggregate/AggregateOpts.js\";\nexport type { AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy } from \"./aggregate/AggregateOptsThatErrors.js\";\nexport type { AggregationResultsWithGroups } from \"./aggregate/AggregationResultsWithGroups.js\";\nexport type { AggregationResultsWithoutGroups } from \"./aggregate/AggregationResultsWithoutGroups.js\";\nexport type { AggregationClause } from \"./aggregate/AggregationsClause.js\";\nexport type { AggregationsResults } from \"./aggregate/AggregationsResults.js\";\nexport type { GeoFilterOptions } from \"./aggregate/GeoFilter.js\";\nexport type { IntervalRule } from \"./aggregate/IntervalRule.js\";\nexport { DistanceUnitMapping } from \"./aggregate/WhereClause.js\";\nexport type {\n AndWhereClause,\n GeoFilter_Intersects,\n GeoFilter_Within,\n NotWhereClause,\n OrWhereClause,\n PossibleWhereClauseFilters,\n WhereClause,\n} from \"./aggregate/WhereClause.js\";\nexport type {\n OsdkObjectCreatePropertyType,\n OsdkObjectCreateWirePropertyType,\n OsdkObjectPropertyType,\n OsdkObjectUpdatePropertyType,\n OsdkObjectUpdateWirePropertyType,\n} from \"./Definitions.js\";\nexport type {\n OsdkObjectLinksObject,\n SingleLinkAccessor,\n} from \"./definitions/LinkDefinitions.js\";\nexport { type DerivedProperty } from \"./derivedProperties/DerivedProperty.js\";\nexport { DurationMapping } from \"./groupby/GroupByClause.js\";\nexport type {\n AllGroupByValues,\n GroupByClause,\n GroupByRange,\n} from \"./groupby/GroupByClause.js\";\nexport type { Logger } from \"./Logger.js\";\nexport type {\n AllowedBucketKeyTypes,\n AllowedBucketTypes,\n DataValueClientToWire,\n DataValueWireToClient,\n} from \"./mapping/DataValueMapping.js\";\nexport type { PropertyValueWireToClient } from \"./mapping/PropertyValueMapping.js\";\nexport type {\n Attachment,\n AttachmentMetadata,\n AttachmentUpload,\n} from \"./object/Attachment.js\";\nexport type { CipherChannelStrategy } from \"./object/CipherText.js\";\nexport type {\n CipherText,\n CipherTextValue,\n CreateCipherText,\n UpdateCipherText,\n} from \"./object/CipherText.js\";\nexport type {\n AsyncIterArgs,\n Augment,\n Augments,\n FetchPageArgs,\n NullabilityAdherence,\n ObjectSetArgs,\n SelectArg,\n SelectArgToKeys,\n} from \"./object/FetchPageArgs.js\";\nexport type {\n FetchPageResult,\n SingleOsdkResult,\n} from \"./object/FetchPageResult.js\";\nexport type {\n AffineTransform,\n AudioDecodeFormat,\n AudioMediaItemMetadata,\n AudioSpecification,\n BandInfo,\n ColorInterpretation,\n CommonDicomDataElements,\n CoordinateReferenceSystem,\n DataType,\n DicomDataElementKey,\n DicomMediaItemMetadata,\n DicomMediaType,\n DicomMetaInformation,\n DicomMetaInformationV1,\n Dimensions,\n DocumentDecodeFormat,\n DocumentMediaItemMetadata,\n EmailAttachment,\n EmailDecodeFormat,\n EmailMediaItemMetadata,\n FlipAxis,\n GcpList,\n GeoMetadata,\n GpsMetadata,\n GroundControlPoint,\n Group,\n GroupWrapper,\n ImageAttributeDomain,\n ImageAttributeKey,\n ImageryDecodeFormat,\n ImageryMediaItemMetadata,\n Mailbox,\n MailboxOrGroup,\n MailboxWrapper,\n Media,\n MediaFullMetadata,\n MediaItemMetadata,\n MediaMetadata,\n MediaPropertyLocation,\n MediaReference,\n MediaUpload,\n Modality,\n Model3dDecodeFormat,\n Model3dMediaItemMetadata,\n Model3dType,\n Orientation,\n PaletteInterpretation,\n RotationAngle,\n SpreadsheetDecodeFormat,\n SpreadsheetMediaItemMetadata,\n UnitInterpretation,\n UnknownMediaItemMetadata,\n UntypedMediaItemMetadata,\n VideoDecodeFormat,\n VideoMediaItemMetadata,\n VideoSpecification,\n} from \"./object/Media.js\";\nexport type {\n PropertyMarkings,\n PropertySecurity,\n} from \"./object/PropertySecurity.js\";\nexport { isOk } from \"./object/Result.js\";\nexport type { Result } from \"./object/Result.js\";\nexport type { BaseObjectSet } from \"./objectSet/BaseObjectSet.js\";\nexport type { ObjectSet } from \"./objectSet/ObjectSet.js\";\nexport type {\n FetchLinksPageResult,\n LinkTypeApiNamesFor,\n MinimalDirectedObjectLinkInstance,\n} from \"./objectSet/ObjectSetLinks.js\";\nexport type { ObjectSetSubscription } from \"./objectSet/ObjectSetListener.js\";\nexport type {\n ActionDefinition,\n ActionMetadata,\n} from \"./ontology/ActionDefinition.js\";\nexport type {\n InterfaceDefinition,\n InterfaceMetadata,\n} from \"./ontology/InterfaceDefinition.js\";\nexport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ontology/ObjectOrInterface.js\";\nexport type { ObjectSpecifier } from \"./ontology/ObjectSpecifier.js\";\nexport type {\n CompileTimeMetadata,\n ObjectMetadata,\n ObjectTypeDefinition,\n PropertyDef,\n VersionBound,\n} from \"./ontology/ObjectTypeDefinition.js\";\nexport type { OntologyMetadata } from \"./ontology/OntologyMetadata.js\";\nexport type { PrimaryKeyTypes } from \"./ontology/PrimaryKeyTypes.js\";\nexport type {\n InterfaceQueryDataType,\n ObjectQueryDataType,\n ObjectSetQueryDataType,\n QueryDataTypeDefinition,\n QueryDefinition,\n QueryMetadata,\n QueryParameterDefinition,\n ThreeDimensionalQueryAggregationDefinition,\n TwoDimensionalQueryAggregationDefinition,\n} from \"./ontology/QueryDefinition.js\";\nexport type { SimplePropertyDef } from \"./ontology/SimplePropertyDef.js\";\nexport type { PropertyBooleanFormattingRule } from \"./ontology/valueFormatting/PropertyBooleanFormattingRule.js\";\nexport type {\n DatetimeFormat,\n DatetimeLocalizedFormat,\n DatetimeLocalizedFormatType,\n DatetimeStringFormat,\n DatetimeTimezone,\n DatetimeTimezoneStatic,\n DatetimeTimezoneUser,\n PropertyDateFormattingRule,\n PropertyTimestampFormattingRule,\n} from \"./ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.js\";\nexport type {\n KnownType,\n PropertyKnownTypeFormattingRule,\n} from \"./ontology/valueFormatting/PropertyKnownTypeFormattingRule.js\";\nexport type {\n Affix,\n DurationBaseValue,\n DurationFormatStyle,\n DurationPrecision,\n HumanReadableFormat,\n NumberFormatAffix,\n NumberFormatCurrency,\n NumberFormatCurrencyStyle,\n NumberFormatCustomUnit,\n NumberFormatDuration,\n NumberFormatFixedValues,\n NumberFormatNotation,\n NumberFormatOptions,\n NumberFormatRatio,\n NumberFormatScale,\n NumberFormatStandard,\n NumberFormatStandardUnit,\n NumberRatioType,\n NumberRoundingMode,\n NumberScaleType,\n PropertyNumberFormattingRule,\n PropertyNumberFormattingRuleType,\n TimeCodeFormat,\n} from \"./ontology/valueFormatting/PropertyNumberFormattingRule.js\";\nexport type { PropertyValueFormattingRule } from \"./ontology/valueFormatting/PropertyValueFormattingRule.js\";\nexport type {\n PropertyTypeReference,\n PropertyTypeReferenceOrStringConstant,\n StringConstant,\n} from \"./ontology/valueFormatting/PropertyValueFormattingUtils.js\";\nexport type {\n BaseWirePropertyTypes,\n WirePropertyTypes,\n} from \"./ontology/WirePropertyTypes.js\";\nexport type {\n ObjectIdentifiers,\n OsdkBase,\n PrimaryKeyType,\n} from \"./OsdkBase.js\";\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport type { OsdkObject } from \"./OsdkObject.js\";\nexport type { ConvertProps, MaybeScore, Osdk } from \"./OsdkObjectFrom.js\";\nexport type { PageResult } from \"./PageResult.js\";\nexport type {\n Range,\n ThreeDimensionalAggregation,\n TwoDimensionalAggregation,\n} from \"./queries/Aggregations.js\";\nexport type { QueryParam, QueryResult } from \"./queries/Queries.js\";\nexport { TimeseriesDurationMapping } from \"./timeseries/timeseries.js\";\nexport type {\n GeotimeSeriesProperty,\n TimeSeriesPoint,\n TimeSeriesProperty,\n TimeSeriesQuery,\n} from \"./timeseries/timeseries.js\";\nexport type { LinkedType, LinkNames } from \"./util/LinkUtils.js\";\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAmBA,SAASA,mBAAmB,QAAQ,4BAA4B;AAsBhE,SAASC,eAAe,QAAQ,4BAA4B;AAsG5D,SAASC,IAAI,QAAQ,oBAAoB;;AAoGzC;;AAUA,SAASC,yBAAyB,QAAQ,4BAA4B;AAQtE","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyValueMapping.js","names":[],"sources":["PropertyValueMapping.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { Attachment, AttachmentUpload } from \"../object/Attachment.js\";\nimport type {
|
|
1
|
+
{"version":3,"file":"PropertyValueMapping.js","names":[],"sources":["PropertyValueMapping.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { Attachment, AttachmentUpload } from \"../object/Attachment.js\";\nimport type {\n CipherText,\n CipherTextValue,\n CreateCipherText,\n UpdateCipherText,\n} from \"../object/CipherText.js\";\nimport type { Media, MediaReference } from \"../object/Media.js\";\nimport type {\n GeotimeSeriesProperty,\n TimeSeriesProperty,\n} from \"../timeseries/timeseries.js\";\n\n/**\n * Map from the PropertyDefinition type to the typescript type that we return\n */\nexport interface PropertyValueWireToClient {\n attachment: Attachment;\n boolean: boolean;\n byte: number;\n cipherText: CipherText;\n datetime: string;\n decimal: string;\n double: number;\n float: number;\n geopoint: GeoJSON.Point;\n geoshape: GeoJSON.GeoJSON;\n integer: number;\n long: string;\n marking: string;\n mediaReference: Media;\n short: number;\n string: string;\n timestamp: string;\n numericTimeseries: TimeSeriesProperty<number>;\n stringTimeseries: TimeSeriesProperty<string>;\n sensorTimeseries: TimeSeriesProperty<string | number>;\n geotimeSeriesReference: GeotimeSeriesProperty<GeoJSON.Point>;\n vector: number[];\n}\n\nexport type GetClientPropertyValueFromWire<\n T extends\n | keyof PropertyValueWireToClient\n | Record<string, keyof PropertyValueWireToClient>,\n> = T extends keyof PropertyValueWireToClient\n ? PropertyValueWireToClient[T]\n : T extends Record<string, keyof PropertyValueWireToClient>\n ? { [K in keyof T]: PropertyValueWireToClient[T[K]] }\n : never;\n\n/**\n * Map from the PropertyDefinition type to the typescript type that we accept\n */\nexport interface PropertyValueClientToWire {\n attachment: string | AttachmentUpload | (Blob & { readonly name: string });\n boolean: boolean;\n byte: number;\n cipherText: CipherText;\n datetime: string;\n decimal: string | number;\n double: number;\n float: number;\n geopoint: GeoJSON.Point;\n geoshape: GeoJSON.GeoJSON;\n integer: number;\n long: string | number;\n marking: string;\n short: number;\n string: string;\n timestamp: string;\n mediaReference: Media;\n numericTimeseries: TimeSeriesProperty<number>;\n stringTimeseries: TimeSeriesProperty<string>;\n sensorTimeseries: TimeSeriesProperty<string | number>;\n geotimeSeriesReference: GeotimeSeriesProperty<GeoJSON.Point>;\n vector: number[];\n}\n\nexport type GetWirePropertyValueFromClient<\n T extends\n | keyof PropertyValueClientToWire\n | Record<string, keyof PropertyValueClientToWire>,\n> = T extends keyof PropertyValueClientToWire\n ? PropertyValueClientToWire[T]\n : T extends Record<string, keyof PropertyValueClientToWire>\n ? { [K in keyof T]: PropertyValueClientToWire[T[K]] }\n : never;\n\ninterface PropertyValueWireToCreateBase {\n attachment: Attachment | string;\n boolean: boolean;\n byte: number;\n datetime: string;\n decimal: string;\n double: number;\n float: number;\n geopoint: GeoJSON.Point;\n geoshape: GeoJSON.GeoJSON;\n integer: number;\n long: string;\n marking: string;\n mediaReference: Media | MediaReference;\n short: number;\n string: string;\n timestamp: string;\n numericTimeseries: TimeSeriesProperty<number>;\n stringTimeseries: TimeSeriesProperty<string>;\n sensorTimeseries: TimeSeriesProperty<string | number>;\n geotimeSeriesReference: GeotimeSeriesProperty<GeoJSON.Point>;\n vector: number[];\n}\n\n/**\n * User facing creation types for each properties\n */\nexport interface PropertyValueWireToCreate extends PropertyValueWireToCreateBase {\n cipherText: CreateCipherText | CipherText;\n}\n\n/**\n * User facing update types for each properties\n */\nexport interface PropertyValueWireToUpdate extends PropertyValueWireToCreateBase {\n cipherText: UpdateCipherText | CipherText;\n}\n\n/**\n * Function-edit facing creation types for each properties\n */\nexport interface PropertyValueCreateToWire extends PropertyValueWireToCreateBase {\n cipherText: CreateCipherText | CipherTextValue;\n}\n\n/**\n * Function-edit facing update types for each properties\n */\nexport interface PropertyValueUpdateToWire extends PropertyValueWireToCreateBase {\n cipherText: UpdateCipherText | CipherTextValue;\n}\n\nexport type GetCreatePropertyValueFromWire<\n T extends\n | keyof PropertyValueWireToCreate\n | Record<string, keyof PropertyValueWireToCreate>,\n> = T extends keyof PropertyValueWireToCreate\n ? PropertyValueWireToCreate[T]\n : T extends Record<string, keyof PropertyValueWireToCreate>\n ? { [K in keyof T]: PropertyValueWireToCreate[T[K]] | undefined }\n : never;\n\nexport type GetUpdatePropertyValueFromWire<\n T extends\n | keyof PropertyValueWireToUpdate\n | Record<string, keyof PropertyValueWireToUpdate>,\n> = T extends keyof PropertyValueWireToUpdate\n ? PropertyValueWireToUpdate[T]\n : T extends Record<string, keyof PropertyValueWireToUpdate>\n ? { [K in keyof T]: PropertyValueWireToUpdate[T[K]] | undefined }\n : never;\n\nexport type GetCreateWirePropertyValueFromWire<\n T extends\n | keyof PropertyValueCreateToWire\n | Record<string, keyof PropertyValueCreateToWire>,\n> = T extends keyof PropertyValueCreateToWire\n ? PropertyValueCreateToWire[T]\n : T extends Record<string, keyof PropertyValueCreateToWire>\n ? { [K in keyof T]: PropertyValueCreateToWire[T[K]] | undefined }\n : never;\n\nexport type GetUpdateWirePropertyValueFromWire<\n T extends\n | keyof PropertyValueUpdateToWire\n | Record<string, keyof PropertyValueUpdateToWire>,\n> = T extends keyof PropertyValueUpdateToWire\n ? PropertyValueUpdateToWire[T]\n : T extends Record<string, keyof PropertyValueUpdateToWire>\n ? { [K in keyof T]: PropertyValueUpdateToWire[T[K]] | undefined }\n : never;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CipherText.js","names":[],"sources":["CipherText.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Representation of a `cipherText` property. The encrypted\n * value is not stored; call {@link CipherText.decrypt} to retrieve the\n * decrypted plaintext on backend.\n *\n * @example\n * ```ts\n * const employee = await client(Employee).fetchOne(12345);\n * const ssn = await employee.encryptedSsn?.decrypt();\n * ```\n * @public\n */\nexport interface CipherText {\n /**\n * Decrypts the ciphertext and resolves to the plaintext value.\n * @returns the decrypted plaintext\n */\n decrypt(): Promise<string>;\n}\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"CipherText.js","names":[],"sources":["CipherText.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type CipherChannelStrategy =\n | \"PREFER_EXISTING\"\n | \"PREFER_DEFAULT\"\n | \"EXISTING_ONLY\"\n | \"DEFAULT_ONLY\";\n\n/**\n * Representation of a `cipherText` property. The encrypted\n * value is not stored; call {@link CipherText.decrypt} to retrieve the\n * decrypted plaintext on backend.\n *\n * @example\n * ```ts\n * const employee = await client(Employee).fetchOne(12345);\n * const ssn = await employee.encryptedSsn?.decrypt();\n * ```\n * @public\n */\nexport interface CipherText {\n /**\n * Decrypts the ciphertext and resolves to the plaintext value.\n * @returns the decrypted plaintext\n */\n decrypt(): Promise<string>;\n}\n\n/**\n * Create a `cipherText` property value from plaintext. The platform encrypts\n * the value using the property's default cipher channel.\n */\nexport interface CreateCipherText {\n plaintext: string;\n}\n\n/**\n * Update a `cipherText` property value from plaintext. `strategy` controls which\n * cipher channel is used when re-encrypting.\n */\nexport interface UpdateCipherText {\n plaintext: string;\n strategy?: CipherChannelStrategy;\n}\n\n/**\n * The wire representation of a `cipherText` edit that reuses an existing\n * ciphertext: the raw encrypted value.\n */\nexport interface CipherTextValue {\n ciphertext: string;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -380,6 +380,7 @@ type DatetimeWithPropAggregateOption = MinMaxWithPropAggregateOption | BaseWithP
|
|
|
380
380
|
type NumericWithPropAggregateOption = "sum" | "avg" | "approximatePercentile" | MinMaxWithPropAggregateOption | BaseWithPropAggregations;
|
|
381
381
|
type ValidCollectPropertyKeysForSpecialTypes = "attachment" | "geopoint" | "geoshape" | "boolean";
|
|
382
382
|
|
|
383
|
+
type CipherChannelStrategy = "PREFER_EXISTING" | "PREFER_DEFAULT" | "EXISTING_ONLY" | "DEFAULT_ONLY";
|
|
383
384
|
/**
|
|
384
385
|
* Representation of a `cipherText` property. The encrypted
|
|
385
386
|
* value is not stored; call {@link CipherText.decrypt} to retrieve the
|
|
@@ -399,6 +400,28 @@ interface CipherText {
|
|
|
399
400
|
*/
|
|
400
401
|
decrypt(): Promise<string>;
|
|
401
402
|
}
|
|
403
|
+
/**
|
|
404
|
+
* Create a `cipherText` property value from plaintext. The platform encrypts
|
|
405
|
+
* the value using the property's default cipher channel.
|
|
406
|
+
*/
|
|
407
|
+
interface CreateCipherText {
|
|
408
|
+
plaintext: string;
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Update a `cipherText` property value from plaintext. `strategy` controls which
|
|
412
|
+
* cipher channel is used when re-encrypting.
|
|
413
|
+
*/
|
|
414
|
+
interface UpdateCipherText {
|
|
415
|
+
plaintext: string;
|
|
416
|
+
strategy?: CipherChannelStrategy;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* The wire representation of a `cipherText` edit that reuses an existing
|
|
420
|
+
* ciphertext: the raw encrypted value.
|
|
421
|
+
*/
|
|
422
|
+
interface CipherTextValue {
|
|
423
|
+
ciphertext: string;
|
|
424
|
+
}
|
|
402
425
|
|
|
403
426
|
type TimeSeriesQuery = {
|
|
404
427
|
$before: number;
|
|
@@ -609,11 +632,10 @@ interface PropertyValueClientToWire {
|
|
|
609
632
|
type GetWirePropertyValueFromClient<T extends keyof PropertyValueClientToWire | Record<string, keyof PropertyValueClientToWire>> = T extends keyof PropertyValueClientToWire ? PropertyValueClientToWire[T] : T extends Record<string, keyof PropertyValueClientToWire> ? {
|
|
610
633
|
[K in keyof T]: PropertyValueClientToWire[T[K]];
|
|
611
634
|
} : never;
|
|
612
|
-
interface
|
|
635
|
+
interface PropertyValueWireToCreateBase {
|
|
613
636
|
attachment: Attachment | string;
|
|
614
637
|
boolean: boolean;
|
|
615
638
|
byte: number;
|
|
616
|
-
cipherText: CipherText;
|
|
617
639
|
datetime: string;
|
|
618
640
|
decimal: string;
|
|
619
641
|
double: number;
|
|
@@ -633,9 +655,42 @@ interface PropertyValueWireToCreate {
|
|
|
633
655
|
geotimeSeriesReference: GeotimeSeriesProperty<GeoJSON.Point>;
|
|
634
656
|
vector: number[];
|
|
635
657
|
}
|
|
658
|
+
/**
|
|
659
|
+
* User facing creation types for each properties
|
|
660
|
+
*/
|
|
661
|
+
interface PropertyValueWireToCreate extends PropertyValueWireToCreateBase {
|
|
662
|
+
cipherText: CreateCipherText | CipherText;
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* User facing update types for each properties
|
|
666
|
+
*/
|
|
667
|
+
interface PropertyValueWireToUpdate extends PropertyValueWireToCreateBase {
|
|
668
|
+
cipherText: UpdateCipherText | CipherText;
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* Function-edit facing creation types for each properties
|
|
672
|
+
*/
|
|
673
|
+
interface PropertyValueCreateToWire extends PropertyValueWireToCreateBase {
|
|
674
|
+
cipherText: CreateCipherText | CipherTextValue;
|
|
675
|
+
}
|
|
676
|
+
/**
|
|
677
|
+
* Function-edit facing update types for each properties
|
|
678
|
+
*/
|
|
679
|
+
interface PropertyValueUpdateToWire extends PropertyValueWireToCreateBase {
|
|
680
|
+
cipherText: UpdateCipherText | CipherTextValue;
|
|
681
|
+
}
|
|
636
682
|
type GetCreatePropertyValueFromWire<T extends keyof PropertyValueWireToCreate | Record<string, keyof PropertyValueWireToCreate>> = T extends keyof PropertyValueWireToCreate ? PropertyValueWireToCreate[T] : T extends Record<string, keyof PropertyValueWireToCreate> ? {
|
|
637
683
|
[K in keyof T]: PropertyValueWireToCreate[T[K]] | undefined;
|
|
638
684
|
} : never;
|
|
685
|
+
type GetUpdatePropertyValueFromWire<T extends keyof PropertyValueWireToUpdate | Record<string, keyof PropertyValueWireToUpdate>> = T extends keyof PropertyValueWireToUpdate ? PropertyValueWireToUpdate[T] : T extends Record<string, keyof PropertyValueWireToUpdate> ? {
|
|
686
|
+
[K in keyof T]: PropertyValueWireToUpdate[T[K]] | undefined;
|
|
687
|
+
} : never;
|
|
688
|
+
type GetCreateWirePropertyValueFromWire<T extends keyof PropertyValueCreateToWire | Record<string, keyof PropertyValueCreateToWire>> = T extends keyof PropertyValueCreateToWire ? PropertyValueCreateToWire[T] : T extends Record<string, keyof PropertyValueCreateToWire> ? {
|
|
689
|
+
[K in keyof T]: PropertyValueCreateToWire[T[K]] | undefined;
|
|
690
|
+
} : never;
|
|
691
|
+
type GetUpdateWirePropertyValueFromWire<T extends keyof PropertyValueUpdateToWire | Record<string, keyof PropertyValueUpdateToWire>> = T extends keyof PropertyValueUpdateToWire ? PropertyValueUpdateToWire[T] : T extends Record<string, keyof PropertyValueUpdateToWire> ? {
|
|
692
|
+
[K in keyof T]: PropertyValueUpdateToWire[T[K]] | undefined;
|
|
693
|
+
} : never;
|
|
639
694
|
|
|
640
695
|
type IncludeValuesExtending<T extends Record<keyof any, any>, M> = {
|
|
641
696
|
[K in keyof T as T[K] extends M ? K : never]: T[K];
|
|
@@ -1186,11 +1241,10 @@ type OsdkObjectPropertyType<T extends ObjectMetadata.Property, STRICTLY_ENFORCE_
|
|
|
1186
1241
|
* @param T - ObjectMetadata.Property in literal form
|
|
1187
1242
|
*/
|
|
1188
1243
|
type OsdkObjectPropertyTypeNotUndefined<T extends ObjectMetadata.Property> = MaybeArray<T, GetClientPropertyValueFromWire<T["type"]>>;
|
|
1189
|
-
/**
|
|
1190
|
-
* @param T - ObjectMetadata.Property in literal form
|
|
1191
|
-
* @param STRICTLY_ENFORCE_NULLABLE - S for strict. If false, always `|undefined`
|
|
1192
|
-
*/
|
|
1193
1244
|
type OsdkObjectCreatePropertyType<T extends ObjectMetadata.Property, STRICTLY_ENFORCE_NULLABLE extends boolean = true> = STRICTLY_ENFORCE_NULLABLE extends false ? MaybeArray<T, GetCreatePropertyValueFromWire<T["type"]>> | undefined : MaybeNullable$1<T, MaybeArray<T, GetCreatePropertyValueFromWire<T["type"]>>>;
|
|
1245
|
+
type OsdkObjectUpdatePropertyType<T extends ObjectMetadata.Property, STRICTLY_ENFORCE_NULLABLE extends boolean = true> = STRICTLY_ENFORCE_NULLABLE extends false ? MaybeArray<T, GetUpdatePropertyValueFromWire<T["type"]>> | undefined : MaybeNullable$1<T, MaybeArray<T, GetUpdatePropertyValueFromWire<T["type"]>>>;
|
|
1246
|
+
type OsdkObjectCreateWirePropertyType<T extends ObjectMetadata.Property, STRICTLY_ENFORCE_NULLABLE extends boolean = true> = STRICTLY_ENFORCE_NULLABLE extends false ? MaybeArray<T, GetCreateWirePropertyValueFromWire<T["type"]>> | undefined : MaybeNullable$1<T, MaybeArray<T, GetCreateWirePropertyValueFromWire<T["type"]>>>;
|
|
1247
|
+
type OsdkObjectUpdateWirePropertyType<T extends ObjectMetadata.Property, STRICTLY_ENFORCE_NULLABLE extends boolean = true> = STRICTLY_ENFORCE_NULLABLE extends false ? MaybeArray<T, GetUpdateWirePropertyValueFromWire<T["type"]>> | undefined : MaybeNullable$1<T, MaybeArray<T, GetUpdateWirePropertyValueFromWire<T["type"]>>>;
|
|
1194
1248
|
|
|
1195
1249
|
type ExtractPropName<T extends string> = T extends `${infer PropName}:${string}` ? PropName : T extends "$count" ? T : never;
|
|
1196
1250
|
type ExtractMetricNameForPropName<T, PropName extends string> = T extends `${PropName}:${infer MetricName}` ? MetricName : never;
|
|
@@ -2536,4 +2590,4 @@ interface AsyncIterLinks<Q extends ObjectOrInterfaceDefinition> {
|
|
|
2536
2590
|
interface ObjectSetCleanedTypes<Q extends ObjectOrInterfaceDefinition, D extends Record<string, SimplePropertyDef>, MERGED extends ObjectOrInterfaceDefinition & Q, ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<PropertyKeys<Q>> = {}> extends MinimalObjectSet<Q, D, ORDER_BY_OPTIONS>, WithProperties<Q, D>, Aggregate<MERGED>, SetArithmetic<MERGED>, PivotTo<Q>, FetchOne<Q, D>, NearestNeighbors<Q>, NarrowToType<Q> {
|
|
2537
2591
|
}
|
|
2538
2592
|
|
|
2539
|
-
export {
|
|
2593
|
+
export { DerivedProperty as $, type AttachmentUpload as A, type Augments as B, type CompileTimeMetadata as C, type BandInfo as D, type BaseObjectSet as E, type BaseWirePropertyTypes as F, type CipherChannelStrategy as G, type CipherText as H, type InterfaceDefinition as I, type CipherTextValue as J, type ColorInterpretation as K, type CommonDicomDataElements as L, type MediaReference as M, type ConvertProps as N, type ObjectOrInterfaceDefinition as O, type PropertyValueWireToClient as P, type CoordinateReferenceSystem as Q, type ReleaseStatus as R, type CreateCipherText as S, type DataType as T, type DatetimeFormat as U, type DatetimeLocalizedFormat as V, type DatetimeLocalizedFormatType as W, type DatetimeStringFormat as X, type DatetimeTimezone as Y, type DatetimeTimezoneStatic as Z, type DatetimeTimezoneUser as _, type OsdkMetadata as a, type NumberFormatFixedValues as a$, type DicomDataElementKey as a0, type DicomMediaItemMetadata as a1, type DicomMediaType as a2, type DicomMetaInformation as a3, type DicomMetaInformationV1 as a4, type Dimensions as a5, DistanceUnitMapping as a6, type DocumentDecodeFormat as a7, type DocumentMediaItemMetadata as a8, type DurationBaseValue as a9, type ImageryMediaItemMetadata as aA, InterfaceMetadata as aB, type IntervalRule as aC, type KnownType as aD, type LinkNames as aE, type LinkTypeApiNamesFor as aF, type LinkedType as aG, type Mailbox as aH, type MailboxOrGroup as aI, type MailboxWrapper as aJ, type MaybeScore as aK, type MediaFullMetadata as aL, type MediaItemMetadata as aM, type MediaMetadata as aN, type MediaPropertyLocation as aO, type MinimalDirectedObjectLinkInstance as aP, type Modality as aQ, type Model3dDecodeFormat as aR, type Model3dMediaItemMetadata as aS, type Model3dType as aT, type NotWhereClause as aU, NullabilityAdherence as aV, type NumberFormatAffix as aW, type NumberFormatCurrency as aX, type NumberFormatCurrencyStyle as aY, type NumberFormatCustomUnit as aZ, type NumberFormatDuration as a_, type DurationFormatStyle as aa, DurationMapping as ab, type DurationPrecision as ac, type EmailAttachment as ad, type EmailDecodeFormat as ae, type EmailMediaItemMetadata as af, type FetchLinksPageResult as ag, type FetchPageArgs as ah, type FetchPageResult as ai, type FlipAxis as aj, type GcpList as ak, type GeoFilterOptions as al, type GeoFilter_Intersects as am, type GeoFilter_Within as an, type GeoMetadata as ao, type GeotimeSeriesProperty as ap, type GpsMetadata as aq, type GroundControlPoint as ar, type Group as as, type GroupByClause as at, type GroupByRange as au, type GroupWrapper as av, type HumanReadableFormat as aw, type ImageAttributeDomain as ax, type ImageAttributeKey as ay, type ImageryDecodeFormat as az, type ObjectTypeDefinition as b, type WhereClause as b$, type NumberFormatNotation as b0, type NumberFormatOptions as b1, type NumberFormatRatio as b2, type NumberFormatScale as b3, type NumberFormatStandard as b4, type NumberFormatStandardUnit as b5, type NumberRatioType as b6, type NumberRoundingMode as b7, type NumberScaleType as b8, ObjectMetadata as b9, type PropertyTypeReference as bA, type PropertyTypeReferenceOrStringConstant as bB, type PropertyValueFormattingRule as bC, type Result as bD, type RotationAngle as bE, type SelectArg as bF, type SelectArgToKeys as bG, SimplePropertyDef as bH, type SingleLinkAccessor as bI, type SingleOsdkResult as bJ, type SpreadsheetDecodeFormat as bK, type SpreadsheetMediaItemMetadata as bL, type StringConstant as bM, type TimeCodeFormat as bN, type TimeSeriesPoint as bO, type TimeSeriesProperty as bP, type TimeSeriesQuery as bQ, TimeseriesDurationMapping as bR, type UnitInterpretation as bS, type UnknownMediaItemMetadata as bT, type UntypedMediaItemMetadata as bU, type UpdateCipherText as bV, type ValidAggregationKeys as bW, type VersionBound as bX, type VideoDecodeFormat as bY, type VideoMediaItemMetadata as bZ, type VideoSpecification as b_, ObjectSetArgs as ba, ObjectSetSubscription as bb, type ObjectSpecifier as bc, type OrWhereClause as bd, type Orientation as be, Osdk as bf, type OsdkObjectCreatePropertyType as bg, type OsdkObjectCreateWirePropertyType as bh, type OsdkObjectLinksObject as bi, type OsdkObjectPropertyType as bj, type OsdkObjectUpdatePropertyType as bk, type OsdkObjectUpdateWirePropertyType as bl, type PageResult as bm, type PaletteInterpretation as bn, type PossibleWhereClauseFilters as bo, type PrimaryKeyType as bp, type PropertyBooleanFormattingRule as bq, type PropertyDateFormattingRule as br, type PropertyDef as bs, PropertyKeys as bt, type PropertyKnownTypeFormattingRule as bu, type PropertyMarkings as bv, type PropertyNumberFormattingRule as bw, type PropertyNumberFormattingRuleType as bx, type PropertySecurity as by, type PropertyTimestampFormattingRule as bz, type MediaUpload as c, type WirePropertyTypes as c0, isOk as c1, type ExtractOptions as c2, type ApplyModifiersArg as c3, type PropertyModifierValue as c4, type LinkedObjectType as c5, type Just as c6, type MinimalObjectSet as c7, type Media as d, type Attachment as e, type ObjectIdentifiers as f, type OsdkObjectPrimaryKeyType as g, type ObjectSet as h, type PrimaryKeyTypes as i, type OsdkBase as j, type AffineTransform as k, type Affix as l, type AggregateOpts as m, type AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy as n, type AggregationClause as o, type AggregationResultsWithGroups as p, type AggregationResultsWithoutGroups as q, type AggregationsResults as r, type AllGroupByValues as s, type AndWhereClause as t, type AsyncIterArgs as u, type AttachmentMetadata as v, type AudioDecodeFormat as w, type AudioMediaItemMetadata as x, type AudioSpecification as y, type Augment as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as ObjectOrInterfaceDefinition, a as OsdkMetadata, b as ObjectTypeDefinition } from './ObjectSet-
|
|
1
|
+
import { O as ObjectOrInterfaceDefinition, a as OsdkMetadata, b as ObjectTypeDefinition } from './ObjectSet-DFvXRobo.cjs';
|
|
2
2
|
|
|
3
3
|
interface QueryMetadata {
|
|
4
4
|
type: "query";
|
package/build/cjs/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as AttachmentUpload, M as MediaReference, c as MediaUpload, d as Media, e as Attachment, b as ObjectTypeDefinition, f as ObjectIdentifiers, g as OsdkObjectPrimaryKeyType, h as ObjectSet, I as InterfaceDefinition, C as CompileTimeMetadata, a as OsdkMetadata, R as ReleaseStatus, P as PropertyValueWireToClient, i as PrimaryKeyTypes, O as ObjectOrInterfaceDefinition, j as OsdkBase } from './ObjectSet-
|
|
2
|
-
export { k as AffineTransform, l as Affix, m as AggregateOpts, n as AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy, o as AggregationClause, p as AggregationResultsWithGroups, q as AggregationResultsWithoutGroups, r as AggregationsResults, s as AllGroupByValues, t as AndWhereClause, u as AsyncIterArgs, v as AttachmentMetadata, w as AudioDecodeFormat, x as AudioMediaItemMetadata, y as AudioSpecification, z as Augment, B as Augments, D as BandInfo, E as BaseObjectSet, F as BaseWirePropertyTypes, G as
|
|
3
|
-
import { A as AggregationKeyTypes, a as AggregationRangeKeyTypes, b as AggregationValueTypes } from './QueryDefinition-
|
|
4
|
-
export { I as InterfaceQueryDataType, O as ObjectQueryDataType, c as ObjectSetQueryDataType, Q as QueryDataTypeDefinition, d as QueryDefinition, e as QueryMetadata, f as QueryParameterDefinition, T as ThreeDimensionalQueryAggregationDefinition, g as TwoDimensionalQueryAggregationDefinition } from './QueryDefinition-
|
|
1
|
+
import { A as AttachmentUpload, M as MediaReference, c as MediaUpload, d as Media, e as Attachment, b as ObjectTypeDefinition, f as ObjectIdentifiers, g as OsdkObjectPrimaryKeyType, h as ObjectSet, I as InterfaceDefinition, C as CompileTimeMetadata, a as OsdkMetadata, R as ReleaseStatus, P as PropertyValueWireToClient, i as PrimaryKeyTypes, O as ObjectOrInterfaceDefinition, j as OsdkBase } from './ObjectSet-DFvXRobo.cjs';
|
|
2
|
+
export { k as AffineTransform, l as Affix, m as AggregateOpts, n as AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy, o as AggregationClause, p as AggregationResultsWithGroups, q as AggregationResultsWithoutGroups, r as AggregationsResults, s as AllGroupByValues, t as AndWhereClause, u as AsyncIterArgs, v as AttachmentMetadata, w as AudioDecodeFormat, x as AudioMediaItemMetadata, y as AudioSpecification, z as Augment, B as Augments, D as BandInfo, E as BaseObjectSet, F as BaseWirePropertyTypes, G as CipherChannelStrategy, H as CipherText, J as CipherTextValue, K as ColorInterpretation, L as CommonDicomDataElements, N as ConvertProps, Q as CoordinateReferenceSystem, S as CreateCipherText, T as DataType, U as DatetimeFormat, V as DatetimeLocalizedFormat, W as DatetimeLocalizedFormatType, X as DatetimeStringFormat, Y as DatetimeTimezone, Z as DatetimeTimezoneStatic, _ as DatetimeTimezoneUser, $ as DerivedProperty, a0 as DicomDataElementKey, a1 as DicomMediaItemMetadata, a2 as DicomMediaType, a3 as DicomMetaInformation, a4 as DicomMetaInformationV1, a5 as Dimensions, a6 as DistanceUnitMapping, a7 as DocumentDecodeFormat, a8 as DocumentMediaItemMetadata, a9 as DurationBaseValue, aa as DurationFormatStyle, ab as DurationMapping, ac as DurationPrecision, ad as EmailAttachment, ae as EmailDecodeFormat, af as EmailMediaItemMetadata, ag as FetchLinksPageResult, ah as FetchPageArgs, ai as FetchPageResult, aj as FlipAxis, ak as GcpList, al as GeoFilterOptions, am as GeoFilter_Intersects, an as GeoFilter_Within, ao as GeoMetadata, ap as GeotimeSeriesProperty, aq as GpsMetadata, ar as GroundControlPoint, as as Group, at as GroupByClause, au as GroupByRange, av as GroupWrapper, aw as HumanReadableFormat, ax as ImageAttributeDomain, ay as ImageAttributeKey, az as ImageryDecodeFormat, aA as ImageryMediaItemMetadata, aB as InterfaceMetadata, aC as IntervalRule, aD as KnownType, aE as LinkNames, aF as LinkTypeApiNamesFor, aG as LinkedType, aH as Mailbox, aI as MailboxOrGroup, aJ as MailboxWrapper, aK as MaybeScore, aL as MediaFullMetadata, aM as MediaItemMetadata, aN as MediaMetadata, aO as MediaPropertyLocation, aP as MinimalDirectedObjectLinkInstance, aQ as Modality, aR as Model3dDecodeFormat, aS as Model3dMediaItemMetadata, aT as Model3dType, aU as NotWhereClause, aV as NullabilityAdherence, aW as NumberFormatAffix, aX as NumberFormatCurrency, aY as NumberFormatCurrencyStyle, aZ as NumberFormatCustomUnit, a_ as NumberFormatDuration, a$ as NumberFormatFixedValues, b0 as NumberFormatNotation, b1 as NumberFormatOptions, b2 as NumberFormatRatio, b3 as NumberFormatScale, b4 as NumberFormatStandard, b5 as NumberFormatStandardUnit, b6 as NumberRatioType, b7 as NumberRoundingMode, b8 as NumberScaleType, b9 as ObjectMetadata, ba as ObjectSetArgs, bb as ObjectSetSubscription, bc as ObjectSpecifier, bd as OrWhereClause, be as Orientation, bf as Osdk, bg as OsdkObjectCreatePropertyType, bh as OsdkObjectCreateWirePropertyType, bi as OsdkObjectLinksObject, bj as OsdkObjectPropertyType, bk as OsdkObjectUpdatePropertyType, bl as OsdkObjectUpdateWirePropertyType, bm as PageResult, bn as PaletteInterpretation, bo as PossibleWhereClauseFilters, bp as PrimaryKeyType, bq as PropertyBooleanFormattingRule, br as PropertyDateFormattingRule, bs as PropertyDef, bt as PropertyKeys, bu as PropertyKnownTypeFormattingRule, bv as PropertyMarkings, bw as PropertyNumberFormattingRule, bx as PropertyNumberFormattingRuleType, by as PropertySecurity, bz as PropertyTimestampFormattingRule, bA as PropertyTypeReference, bB as PropertyTypeReferenceOrStringConstant, bC as PropertyValueFormattingRule, bD as Result, bE as RotationAngle, bF as SelectArg, bG as SelectArgToKeys, bH as SimplePropertyDef, bI as SingleLinkAccessor, bJ as SingleOsdkResult, bK as SpreadsheetDecodeFormat, bL as SpreadsheetMediaItemMetadata, bM as StringConstant, bN as TimeCodeFormat, bO as TimeSeriesPoint, bP as TimeSeriesProperty, bQ as TimeSeriesQuery, bR as TimeseriesDurationMapping, bS as UnitInterpretation, bT as UnknownMediaItemMetadata, bU as UntypedMediaItemMetadata, bV as UpdateCipherText, bW as ValidAggregationKeys, bX as VersionBound, bY as VideoDecodeFormat, bZ as VideoMediaItemMetadata, b_ as VideoSpecification, b$ as WhereClause, c0 as WirePropertyTypes, c1 as isOk } from './ObjectSet-DFvXRobo.cjs';
|
|
3
|
+
import { A as AggregationKeyTypes, a as AggregationRangeKeyTypes, b as AggregationValueTypes } from './QueryDefinition-C2F2WJqk.cjs';
|
|
4
|
+
export { I as InterfaceQueryDataType, O as ObjectQueryDataType, c as ObjectSetQueryDataType, Q as QueryDataTypeDefinition, d as QueryDefinition, e as QueryMetadata, f as QueryParameterDefinition, T as ThreeDimensionalQueryAggregationDefinition, g as TwoDimensionalQueryAggregationDefinition } from './QueryDefinition-C2F2WJqk.cjs';
|
|
5
5
|
import 'type-fest';
|
|
6
6
|
import 'geojson';
|
|
7
7
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DerivedLinkConfig, k as NullabilityOp, l as ShapeDerivedLinkDef, m as ShapeLinkObjectSetDef, n as ShapeLinkOrderBy, o as ShapeLinkSegment, p as ShapeLinkSetOperation, q as ShapePropertyConfig } from '../shapes-internal-
|
|
2
|
-
import '../ObjectSet-
|
|
1
|
+
export { D as DerivedLinkConfig, k as NullabilityOp, l as ShapeDerivedLinkDef, m as ShapeLinkObjectSetDef, n as ShapeLinkOrderBy, o as ShapeLinkSegment, p as ShapeLinkSetOperation, q as ShapePropertyConfig } from '../shapes-internal-Bq1nkSvZ.cjs';
|
|
2
|
+
import '../ObjectSet-DFvXRobo.cjs';
|
|
3
3
|
import 'type-fest';
|
|
4
4
|
import 'geojson';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as CompileTimeMetadata, O as ObjectOrInterfaceDefinition,
|
|
2
|
-
export {
|
|
3
|
-
import { d as QueryDefinition } from '../QueryDefinition-
|
|
4
|
-
import { P as PropertyType, S as ShapeLinkBuilder, a as ShapeDefinition, R as RequiredProperty, b as ShapeBuilder } from '../shapes-internal-
|
|
5
|
-
export { L as LinkLoadConfig, c as LinkStatus, N as NullabilityViolation, d as ShapeBaseType, e as ShapeDerivedLinks, f as ShapeInstance, g as ShapeLinkResult, h as ShapeNullabilityError, i as SourcePrimaryKeySymbol, j as isSourcePkSymbol } from '../shapes-internal-
|
|
1
|
+
import { C as CompileTimeMetadata, O as ObjectOrInterfaceDefinition, bt as PropertyKeys, aV as NullabilityAdherence, bF as SelectArg, bf as Osdk, c2 as ExtractOptions, c3 as ApplyModifiersArg, c4 as PropertyModifierValue, ah as FetchPageArgs, ai as FetchPageResult, j as OsdkBase, b as ObjectTypeDefinition, aF as LinkTypeApiNamesFor, f as ObjectIdentifiers, g as OsdkObjectPrimaryKeyType, c5 as LinkedObjectType, c6 as Just, bb as ObjectSetSubscription, d as Media } from '../ObjectSet-DFvXRobo.cjs';
|
|
2
|
+
export { c7 as MinimalObjectSet } from '../ObjectSet-DFvXRobo.cjs';
|
|
3
|
+
import { d as QueryDefinition } from '../QueryDefinition-C2F2WJqk.cjs';
|
|
4
|
+
import { P as PropertyType, S as ShapeLinkBuilder, a as ShapeDefinition, R as RequiredProperty, b as ShapeBuilder } from '../shapes-internal-Bq1nkSvZ.cjs';
|
|
5
|
+
export { L as LinkLoadConfig, c as LinkStatus, N as NullabilityViolation, d as ShapeBaseType, e as ShapeDerivedLinks, f as ShapeInstance, g as ShapeLinkResult, h as ShapeNullabilityError, i as SourcePrimaryKeySymbol, j as isSourcePkSymbol } from '../shapes-internal-Bq1nkSvZ.cjs';
|
|
6
6
|
import 'type-fest';
|
|
7
7
|
import 'geojson';
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as ObjectOrInterfaceDefinition,
|
|
1
|
+
import { O as ObjectOrInterfaceDefinition, b$ as WhereClause, bt as PropertyKeys, C as CompileTimeMetadata, aE as LinkNames, aG as LinkedType, j as OsdkBase } from './ObjectSet-DFvXRobo.cjs';
|
|
2
2
|
|
|
3
3
|
declare const SourcePrimaryKeySymbol: unique symbol;
|
|
4
4
|
declare function isSourcePkSymbol(value: unknown): value is symbol;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Definitions.js","names":[],"sources":["Definitions.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n GetClientPropertyValueFromWire,\n GetCreatePropertyValueFromWire,\n} from \"./mapping/PropertyValueMapping.js\";\nimport type { ObjectMetadata } from \"./ontology/ObjectTypeDefinition.js\";\n\ntype MaybeArray<\n T extends { multiplicity?: boolean | undefined },\n U,\n> = T[\"multiplicity\"] extends true ? Array<U> : U;\n\ntype MaybeNullable<\n T extends ObjectMetadata.Property,\n U,\n> = T[\"nullable\"] extends true ? U | undefined : U;\n\n/**\n * @param T - ObjectMetadata.Property in literal form\n * @param STRICTLY_ENFORCE_NULLABLE - S for strict. If false, always `|undefined`\n */\nexport type OsdkObjectPropertyType<\n T extends ObjectMetadata.Property,\n STRICTLY_ENFORCE_NULLABLE extends boolean = true,\n> = STRICTLY_ENFORCE_NULLABLE extends false\n ? MaybeArray<T, GetClientPropertyValueFromWire<T[\"type\"]>> | undefined\n : MaybeNullable<T, MaybeArray<T, GetClientPropertyValueFromWire<T[\"type\"]>>>;\n\n/**\n * @param T - ObjectMetadata.Property in literal form\n */\nexport type OsdkObjectPropertyTypeNotUndefined<\n T extends ObjectMetadata.Property,\n> = MaybeArray<T, GetClientPropertyValueFromWire<T[\"type\"]>>;\n\
|
|
1
|
+
{"version":3,"file":"Definitions.js","names":[],"sources":["Definitions.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n GetClientPropertyValueFromWire,\n GetCreatePropertyValueFromWire,\n GetCreateWirePropertyValueFromWire,\n GetUpdatePropertyValueFromWire,\n GetUpdateWirePropertyValueFromWire,\n} from \"./mapping/PropertyValueMapping.js\";\nimport type { ObjectMetadata } from \"./ontology/ObjectTypeDefinition.js\";\n\ntype MaybeArray<\n T extends { multiplicity?: boolean | undefined },\n U,\n> = T[\"multiplicity\"] extends true ? Array<U> : U;\n\ntype MaybeNullable<\n T extends ObjectMetadata.Property,\n U,\n> = T[\"nullable\"] extends true ? U | undefined : U;\n\n/**\n * @param T - ObjectMetadata.Property in literal form\n * @param STRICTLY_ENFORCE_NULLABLE - S for strict. If false, always `|undefined`\n */\nexport type OsdkObjectPropertyType<\n T extends ObjectMetadata.Property,\n STRICTLY_ENFORCE_NULLABLE extends boolean = true,\n> = STRICTLY_ENFORCE_NULLABLE extends false\n ? MaybeArray<T, GetClientPropertyValueFromWire<T[\"type\"]>> | undefined\n : MaybeNullable<T, MaybeArray<T, GetClientPropertyValueFromWire<T[\"type\"]>>>;\n\n/**\n * @param T - ObjectMetadata.Property in literal form\n */\nexport type OsdkObjectPropertyTypeNotUndefined<\n T extends ObjectMetadata.Property,\n> = MaybeArray<T, GetClientPropertyValueFromWire<T[\"type\"]>>;\n\nexport type OsdkObjectCreatePropertyType<\n T extends ObjectMetadata.Property,\n STRICTLY_ENFORCE_NULLABLE extends boolean = true,\n> = STRICTLY_ENFORCE_NULLABLE extends false\n ? MaybeArray<T, GetCreatePropertyValueFromWire<T[\"type\"]>> | undefined\n : MaybeNullable<T, MaybeArray<T, GetCreatePropertyValueFromWire<T[\"type\"]>>>;\n\nexport type OsdkObjectUpdatePropertyType<\n T extends ObjectMetadata.Property,\n STRICTLY_ENFORCE_NULLABLE extends boolean = true,\n> = STRICTLY_ENFORCE_NULLABLE extends false\n ? MaybeArray<T, GetUpdatePropertyValueFromWire<T[\"type\"]>> | undefined\n : MaybeNullable<T, MaybeArray<T, GetUpdatePropertyValueFromWire<T[\"type\"]>>>;\n\nexport type OsdkObjectCreateWirePropertyType<\n T extends ObjectMetadata.Property,\n STRICTLY_ENFORCE_NULLABLE extends boolean = true,\n> = STRICTLY_ENFORCE_NULLABLE extends false\n ? MaybeArray<T, GetCreateWirePropertyValueFromWire<T[\"type\"]>> | undefined\n : MaybeNullable<\n T,\n MaybeArray<T, GetCreateWirePropertyValueFromWire<T[\"type\"]>>\n >;\n\nexport type OsdkObjectUpdateWirePropertyType<\n T extends ObjectMetadata.Property,\n STRICTLY_ENFORCE_NULLABLE extends boolean = true,\n> = STRICTLY_ENFORCE_NULLABLE extends false\n ? MaybeArray<T, GetUpdateWirePropertyValueFromWire<T[\"type\"]>> | undefined\n : MaybeNullable<\n T,\n MaybeArray<T, GetUpdateWirePropertyValueFromWire<T[\"type\"]>>\n >;\n"],"mappings":"","ignoreList":[]}
|
package/build/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["DistanceUnitMapping","DurationMapping","isOk","TimeseriesDurationMapping"],"sources":["index.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type { ActionReturnTypeForOptions } from \"./actions/ActionReturnTypeForOptions.js\";\nexport type {\n ActionEditResponse,\n ActionParam,\n ActionValidationResponse,\n ApplyActionOptions,\n ApplyBatchActionOptions,\n} from \"./actions/Actions.js\";\nexport type { ValidAggregationKeys } from \"./aggregate/AggregatableKeys.js\";\nexport type { AggregateOpts } from \"./aggregate/AggregateOpts.js\";\nexport type { AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy } from \"./aggregate/AggregateOptsThatErrors.js\";\nexport type { AggregationResultsWithGroups } from \"./aggregate/AggregationResultsWithGroups.js\";\nexport type { AggregationResultsWithoutGroups } from \"./aggregate/AggregationResultsWithoutGroups.js\";\nexport type { AggregationClause } from \"./aggregate/AggregationsClause.js\";\nexport type { AggregationsResults } from \"./aggregate/AggregationsResults.js\";\nexport type { GeoFilterOptions } from \"./aggregate/GeoFilter.js\";\nexport type { IntervalRule } from \"./aggregate/IntervalRule.js\";\nexport { DistanceUnitMapping } from \"./aggregate/WhereClause.js\";\nexport type {\n AndWhereClause,\n GeoFilter_Intersects,\n GeoFilter_Within,\n NotWhereClause,\n OrWhereClause,\n PossibleWhereClauseFilters,\n WhereClause,\n} from \"./aggregate/WhereClause.js\";\nexport type {\n OsdkObjectCreatePropertyType,\n OsdkObjectPropertyType,\n} from \"./Definitions.js\";\nexport type {\n OsdkObjectLinksObject,\n SingleLinkAccessor,\n} from \"./definitions/LinkDefinitions.js\";\nexport { type DerivedProperty } from \"./derivedProperties/DerivedProperty.js\";\nexport { DurationMapping } from \"./groupby/GroupByClause.js\";\nexport type {\n AllGroupByValues,\n GroupByClause,\n GroupByRange,\n} from \"./groupby/GroupByClause.js\";\nexport type { Logger } from \"./Logger.js\";\nexport type {\n AllowedBucketKeyTypes,\n AllowedBucketTypes,\n DataValueClientToWire,\n DataValueWireToClient,\n} from \"./mapping/DataValueMapping.js\";\nexport type { PropertyValueWireToClient } from \"./mapping/PropertyValueMapping.js\";\nexport type {\n Attachment,\n AttachmentMetadata,\n AttachmentUpload,\n} from \"./object/Attachment.js\";\nexport type { CipherText } from \"./object/CipherText.js\";\nexport type {\n AsyncIterArgs,\n Augment,\n Augments,\n FetchPageArgs,\n NullabilityAdherence,\n ObjectSetArgs,\n SelectArg,\n SelectArgToKeys,\n} from \"./object/FetchPageArgs.js\";\nexport type {\n FetchPageResult,\n SingleOsdkResult,\n} from \"./object/FetchPageResult.js\";\nexport type {\n AffineTransform,\n AudioDecodeFormat,\n AudioMediaItemMetadata,\n AudioSpecification,\n BandInfo,\n ColorInterpretation,\n CommonDicomDataElements,\n CoordinateReferenceSystem,\n DataType,\n DicomDataElementKey,\n DicomMediaItemMetadata,\n DicomMediaType,\n DicomMetaInformation,\n DicomMetaInformationV1,\n Dimensions,\n DocumentDecodeFormat,\n DocumentMediaItemMetadata,\n EmailAttachment,\n EmailDecodeFormat,\n EmailMediaItemMetadata,\n FlipAxis,\n GcpList,\n GeoMetadata,\n GpsMetadata,\n GroundControlPoint,\n Group,\n GroupWrapper,\n ImageAttributeDomain,\n ImageAttributeKey,\n ImageryDecodeFormat,\n ImageryMediaItemMetadata,\n Mailbox,\n MailboxOrGroup,\n MailboxWrapper,\n Media,\n MediaFullMetadata,\n MediaItemMetadata,\n MediaMetadata,\n MediaPropertyLocation,\n MediaReference,\n MediaUpload,\n Modality,\n Model3dDecodeFormat,\n Model3dMediaItemMetadata,\n Model3dType,\n Orientation,\n PaletteInterpretation,\n RotationAngle,\n SpreadsheetDecodeFormat,\n SpreadsheetMediaItemMetadata,\n UnitInterpretation,\n UnknownMediaItemMetadata,\n UntypedMediaItemMetadata,\n VideoDecodeFormat,\n VideoMediaItemMetadata,\n VideoSpecification,\n} from \"./object/Media.js\";\nexport type {\n PropertyMarkings,\n PropertySecurity,\n} from \"./object/PropertySecurity.js\";\nexport { isOk } from \"./object/Result.js\";\nexport type { Result } from \"./object/Result.js\";\nexport type { BaseObjectSet } from \"./objectSet/BaseObjectSet.js\";\nexport type { ObjectSet } from \"./objectSet/ObjectSet.js\";\nexport type {\n FetchLinksPageResult,\n LinkTypeApiNamesFor,\n MinimalDirectedObjectLinkInstance,\n} from \"./objectSet/ObjectSetLinks.js\";\nexport type { ObjectSetSubscription } from \"./objectSet/ObjectSetListener.js\";\nexport type {\n ActionDefinition,\n ActionMetadata,\n} from \"./ontology/ActionDefinition.js\";\nexport type {\n InterfaceDefinition,\n InterfaceMetadata,\n} from \"./ontology/InterfaceDefinition.js\";\nexport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ontology/ObjectOrInterface.js\";\nexport type { ObjectSpecifier } from \"./ontology/ObjectSpecifier.js\";\nexport type {\n CompileTimeMetadata,\n ObjectMetadata,\n ObjectTypeDefinition,\n PropertyDef,\n VersionBound,\n} from \"./ontology/ObjectTypeDefinition.js\";\nexport type { OntologyMetadata } from \"./ontology/OntologyMetadata.js\";\nexport type { PrimaryKeyTypes } from \"./ontology/PrimaryKeyTypes.js\";\nexport type {\n InterfaceQueryDataType,\n ObjectQueryDataType,\n ObjectSetQueryDataType,\n QueryDataTypeDefinition,\n QueryDefinition,\n QueryMetadata,\n QueryParameterDefinition,\n ThreeDimensionalQueryAggregationDefinition,\n TwoDimensionalQueryAggregationDefinition,\n} from \"./ontology/QueryDefinition.js\";\nexport type { SimplePropertyDef } from \"./ontology/SimplePropertyDef.js\";\nexport type { PropertyBooleanFormattingRule } from \"./ontology/valueFormatting/PropertyBooleanFormattingRule.js\";\nexport type {\n DatetimeFormat,\n DatetimeLocalizedFormat,\n DatetimeLocalizedFormatType,\n DatetimeStringFormat,\n DatetimeTimezone,\n DatetimeTimezoneStatic,\n DatetimeTimezoneUser,\n PropertyDateFormattingRule,\n PropertyTimestampFormattingRule,\n} from \"./ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.js\";\nexport type {\n KnownType,\n PropertyKnownTypeFormattingRule,\n} from \"./ontology/valueFormatting/PropertyKnownTypeFormattingRule.js\";\nexport type {\n Affix,\n DurationBaseValue,\n DurationFormatStyle,\n DurationPrecision,\n HumanReadableFormat,\n NumberFormatAffix,\n NumberFormatCurrency,\n NumberFormatCurrencyStyle,\n NumberFormatCustomUnit,\n NumberFormatDuration,\n NumberFormatFixedValues,\n NumberFormatNotation,\n NumberFormatOptions,\n NumberFormatRatio,\n NumberFormatScale,\n NumberFormatStandard,\n NumberFormatStandardUnit,\n NumberRatioType,\n NumberRoundingMode,\n NumberScaleType,\n PropertyNumberFormattingRule,\n PropertyNumberFormattingRuleType,\n TimeCodeFormat,\n} from \"./ontology/valueFormatting/PropertyNumberFormattingRule.js\";\nexport type { PropertyValueFormattingRule } from \"./ontology/valueFormatting/PropertyValueFormattingRule.js\";\nexport type {\n PropertyTypeReference,\n PropertyTypeReferenceOrStringConstant,\n StringConstant,\n} from \"./ontology/valueFormatting/PropertyValueFormattingUtils.js\";\nexport type {\n BaseWirePropertyTypes,\n WirePropertyTypes,\n} from \"./ontology/WirePropertyTypes.js\";\nexport type {\n ObjectIdentifiers,\n OsdkBase,\n PrimaryKeyType,\n} from \"./OsdkBase.js\";\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport type { OsdkObject } from \"./OsdkObject.js\";\nexport type { ConvertProps, MaybeScore, Osdk } from \"./OsdkObjectFrom.js\";\nexport type { PageResult } from \"./PageResult.js\";\nexport type {\n Range,\n ThreeDimensionalAggregation,\n TwoDimensionalAggregation,\n} from \"./queries/Aggregations.js\";\nexport type { QueryParam, QueryResult } from \"./queries/Queries.js\";\nexport { TimeseriesDurationMapping } from \"./timeseries/timeseries.js\";\nexport type {\n GeotimeSeriesProperty,\n TimeSeriesPoint,\n TimeSeriesProperty,\n TimeSeriesQuery,\n} from \"./timeseries/timeseries.js\";\nexport type { LinkedType, LinkNames } from \"./util/LinkUtils.js\";\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAmBA,SAASA,mBAAmB,QAAQ,4BAA4B;
|
|
1
|
+
{"version":3,"file":"index.js","names":["DistanceUnitMapping","DurationMapping","isOk","TimeseriesDurationMapping"],"sources":["index.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type { ActionReturnTypeForOptions } from \"./actions/ActionReturnTypeForOptions.js\";\nexport type {\n ActionEditResponse,\n ActionParam,\n ActionValidationResponse,\n ApplyActionOptions,\n ApplyBatchActionOptions,\n} from \"./actions/Actions.js\";\nexport type { ValidAggregationKeys } from \"./aggregate/AggregatableKeys.js\";\nexport type { AggregateOpts } from \"./aggregate/AggregateOpts.js\";\nexport type { AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy } from \"./aggregate/AggregateOptsThatErrors.js\";\nexport type { AggregationResultsWithGroups } from \"./aggregate/AggregationResultsWithGroups.js\";\nexport type { AggregationResultsWithoutGroups } from \"./aggregate/AggregationResultsWithoutGroups.js\";\nexport type { AggregationClause } from \"./aggregate/AggregationsClause.js\";\nexport type { AggregationsResults } from \"./aggregate/AggregationsResults.js\";\nexport type { GeoFilterOptions } from \"./aggregate/GeoFilter.js\";\nexport type { IntervalRule } from \"./aggregate/IntervalRule.js\";\nexport { DistanceUnitMapping } from \"./aggregate/WhereClause.js\";\nexport type {\n AndWhereClause,\n GeoFilter_Intersects,\n GeoFilter_Within,\n NotWhereClause,\n OrWhereClause,\n PossibleWhereClauseFilters,\n WhereClause,\n} from \"./aggregate/WhereClause.js\";\nexport type {\n OsdkObjectCreatePropertyType,\n OsdkObjectCreateWirePropertyType,\n OsdkObjectPropertyType,\n OsdkObjectUpdatePropertyType,\n OsdkObjectUpdateWirePropertyType,\n} from \"./Definitions.js\";\nexport type {\n OsdkObjectLinksObject,\n SingleLinkAccessor,\n} from \"./definitions/LinkDefinitions.js\";\nexport { type DerivedProperty } from \"./derivedProperties/DerivedProperty.js\";\nexport { DurationMapping } from \"./groupby/GroupByClause.js\";\nexport type {\n AllGroupByValues,\n GroupByClause,\n GroupByRange,\n} from \"./groupby/GroupByClause.js\";\nexport type { Logger } from \"./Logger.js\";\nexport type {\n AllowedBucketKeyTypes,\n AllowedBucketTypes,\n DataValueClientToWire,\n DataValueWireToClient,\n} from \"./mapping/DataValueMapping.js\";\nexport type { PropertyValueWireToClient } from \"./mapping/PropertyValueMapping.js\";\nexport type {\n Attachment,\n AttachmentMetadata,\n AttachmentUpload,\n} from \"./object/Attachment.js\";\nexport type { CipherChannelStrategy } from \"./object/CipherText.js\";\nexport type {\n CipherText,\n CipherTextValue,\n CreateCipherText,\n UpdateCipherText,\n} from \"./object/CipherText.js\";\nexport type {\n AsyncIterArgs,\n Augment,\n Augments,\n FetchPageArgs,\n NullabilityAdherence,\n ObjectSetArgs,\n SelectArg,\n SelectArgToKeys,\n} from \"./object/FetchPageArgs.js\";\nexport type {\n FetchPageResult,\n SingleOsdkResult,\n} from \"./object/FetchPageResult.js\";\nexport type {\n AffineTransform,\n AudioDecodeFormat,\n AudioMediaItemMetadata,\n AudioSpecification,\n BandInfo,\n ColorInterpretation,\n CommonDicomDataElements,\n CoordinateReferenceSystem,\n DataType,\n DicomDataElementKey,\n DicomMediaItemMetadata,\n DicomMediaType,\n DicomMetaInformation,\n DicomMetaInformationV1,\n Dimensions,\n DocumentDecodeFormat,\n DocumentMediaItemMetadata,\n EmailAttachment,\n EmailDecodeFormat,\n EmailMediaItemMetadata,\n FlipAxis,\n GcpList,\n GeoMetadata,\n GpsMetadata,\n GroundControlPoint,\n Group,\n GroupWrapper,\n ImageAttributeDomain,\n ImageAttributeKey,\n ImageryDecodeFormat,\n ImageryMediaItemMetadata,\n Mailbox,\n MailboxOrGroup,\n MailboxWrapper,\n Media,\n MediaFullMetadata,\n MediaItemMetadata,\n MediaMetadata,\n MediaPropertyLocation,\n MediaReference,\n MediaUpload,\n Modality,\n Model3dDecodeFormat,\n Model3dMediaItemMetadata,\n Model3dType,\n Orientation,\n PaletteInterpretation,\n RotationAngle,\n SpreadsheetDecodeFormat,\n SpreadsheetMediaItemMetadata,\n UnitInterpretation,\n UnknownMediaItemMetadata,\n UntypedMediaItemMetadata,\n VideoDecodeFormat,\n VideoMediaItemMetadata,\n VideoSpecification,\n} from \"./object/Media.js\";\nexport type {\n PropertyMarkings,\n PropertySecurity,\n} from \"./object/PropertySecurity.js\";\nexport { isOk } from \"./object/Result.js\";\nexport type { Result } from \"./object/Result.js\";\nexport type { BaseObjectSet } from \"./objectSet/BaseObjectSet.js\";\nexport type { ObjectSet } from \"./objectSet/ObjectSet.js\";\nexport type {\n FetchLinksPageResult,\n LinkTypeApiNamesFor,\n MinimalDirectedObjectLinkInstance,\n} from \"./objectSet/ObjectSetLinks.js\";\nexport type { ObjectSetSubscription } from \"./objectSet/ObjectSetListener.js\";\nexport type {\n ActionDefinition,\n ActionMetadata,\n} from \"./ontology/ActionDefinition.js\";\nexport type {\n InterfaceDefinition,\n InterfaceMetadata,\n} from \"./ontology/InterfaceDefinition.js\";\nexport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ontology/ObjectOrInterface.js\";\nexport type { ObjectSpecifier } from \"./ontology/ObjectSpecifier.js\";\nexport type {\n CompileTimeMetadata,\n ObjectMetadata,\n ObjectTypeDefinition,\n PropertyDef,\n VersionBound,\n} from \"./ontology/ObjectTypeDefinition.js\";\nexport type { OntologyMetadata } from \"./ontology/OntologyMetadata.js\";\nexport type { PrimaryKeyTypes } from \"./ontology/PrimaryKeyTypes.js\";\nexport type {\n InterfaceQueryDataType,\n ObjectQueryDataType,\n ObjectSetQueryDataType,\n QueryDataTypeDefinition,\n QueryDefinition,\n QueryMetadata,\n QueryParameterDefinition,\n ThreeDimensionalQueryAggregationDefinition,\n TwoDimensionalQueryAggregationDefinition,\n} from \"./ontology/QueryDefinition.js\";\nexport type { SimplePropertyDef } from \"./ontology/SimplePropertyDef.js\";\nexport type { PropertyBooleanFormattingRule } from \"./ontology/valueFormatting/PropertyBooleanFormattingRule.js\";\nexport type {\n DatetimeFormat,\n DatetimeLocalizedFormat,\n DatetimeLocalizedFormatType,\n DatetimeStringFormat,\n DatetimeTimezone,\n DatetimeTimezoneStatic,\n DatetimeTimezoneUser,\n PropertyDateFormattingRule,\n PropertyTimestampFormattingRule,\n} from \"./ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.js\";\nexport type {\n KnownType,\n PropertyKnownTypeFormattingRule,\n} from \"./ontology/valueFormatting/PropertyKnownTypeFormattingRule.js\";\nexport type {\n Affix,\n DurationBaseValue,\n DurationFormatStyle,\n DurationPrecision,\n HumanReadableFormat,\n NumberFormatAffix,\n NumberFormatCurrency,\n NumberFormatCurrencyStyle,\n NumberFormatCustomUnit,\n NumberFormatDuration,\n NumberFormatFixedValues,\n NumberFormatNotation,\n NumberFormatOptions,\n NumberFormatRatio,\n NumberFormatScale,\n NumberFormatStandard,\n NumberFormatStandardUnit,\n NumberRatioType,\n NumberRoundingMode,\n NumberScaleType,\n PropertyNumberFormattingRule,\n PropertyNumberFormattingRuleType,\n TimeCodeFormat,\n} from \"./ontology/valueFormatting/PropertyNumberFormattingRule.js\";\nexport type { PropertyValueFormattingRule } from \"./ontology/valueFormatting/PropertyValueFormattingRule.js\";\nexport type {\n PropertyTypeReference,\n PropertyTypeReferenceOrStringConstant,\n StringConstant,\n} from \"./ontology/valueFormatting/PropertyValueFormattingUtils.js\";\nexport type {\n BaseWirePropertyTypes,\n WirePropertyTypes,\n} from \"./ontology/WirePropertyTypes.js\";\nexport type {\n ObjectIdentifiers,\n OsdkBase,\n PrimaryKeyType,\n} from \"./OsdkBase.js\";\n// eslint-disable-next-line @typescript-eslint/no-deprecated\nexport type { OsdkObject } from \"./OsdkObject.js\";\nexport type { ConvertProps, MaybeScore, Osdk } from \"./OsdkObjectFrom.js\";\nexport type { PageResult } from \"./PageResult.js\";\nexport type {\n Range,\n ThreeDimensionalAggregation,\n TwoDimensionalAggregation,\n} from \"./queries/Aggregations.js\";\nexport type { QueryParam, QueryResult } from \"./queries/Queries.js\";\nexport { TimeseriesDurationMapping } from \"./timeseries/timeseries.js\";\nexport type {\n GeotimeSeriesProperty,\n TimeSeriesPoint,\n TimeSeriesProperty,\n TimeSeriesQuery,\n} from \"./timeseries/timeseries.js\";\nexport type { LinkedType, LinkNames } from \"./util/LinkUtils.js\";\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAmBA,SAASA,mBAAmB,QAAQ,4BAA4B;AAsBhE,SAASC,eAAe,QAAQ,4BAA4B;AAsG5D,SAASC,IAAI,QAAQ,oBAAoB;;AAoGzC;;AAUA,SAASC,yBAAyB,QAAQ,4BAA4B;AAQtE","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyValueMapping.js","names":[],"sources":["PropertyValueMapping.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { Attachment, AttachmentUpload } from \"../object/Attachment.js\";\nimport type {
|
|
1
|
+
{"version":3,"file":"PropertyValueMapping.js","names":[],"sources":["PropertyValueMapping.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { Attachment, AttachmentUpload } from \"../object/Attachment.js\";\nimport type {\n CipherText,\n CipherTextValue,\n CreateCipherText,\n UpdateCipherText,\n} from \"../object/CipherText.js\";\nimport type { Media, MediaReference } from \"../object/Media.js\";\nimport type {\n GeotimeSeriesProperty,\n TimeSeriesProperty,\n} from \"../timeseries/timeseries.js\";\n\n/**\n * Map from the PropertyDefinition type to the typescript type that we return\n */\nexport interface PropertyValueWireToClient {\n attachment: Attachment;\n boolean: boolean;\n byte: number;\n cipherText: CipherText;\n datetime: string;\n decimal: string;\n double: number;\n float: number;\n geopoint: GeoJSON.Point;\n geoshape: GeoJSON.GeoJSON;\n integer: number;\n long: string;\n marking: string;\n mediaReference: Media;\n short: number;\n string: string;\n timestamp: string;\n numericTimeseries: TimeSeriesProperty<number>;\n stringTimeseries: TimeSeriesProperty<string>;\n sensorTimeseries: TimeSeriesProperty<string | number>;\n geotimeSeriesReference: GeotimeSeriesProperty<GeoJSON.Point>;\n vector: number[];\n}\n\nexport type GetClientPropertyValueFromWire<\n T extends\n | keyof PropertyValueWireToClient\n | Record<string, keyof PropertyValueWireToClient>,\n> = T extends keyof PropertyValueWireToClient\n ? PropertyValueWireToClient[T]\n : T extends Record<string, keyof PropertyValueWireToClient>\n ? { [K in keyof T]: PropertyValueWireToClient[T[K]] }\n : never;\n\n/**\n * Map from the PropertyDefinition type to the typescript type that we accept\n */\nexport interface PropertyValueClientToWire {\n attachment: string | AttachmentUpload | (Blob & { readonly name: string });\n boolean: boolean;\n byte: number;\n cipherText: CipherText;\n datetime: string;\n decimal: string | number;\n double: number;\n float: number;\n geopoint: GeoJSON.Point;\n geoshape: GeoJSON.GeoJSON;\n integer: number;\n long: string | number;\n marking: string;\n short: number;\n string: string;\n timestamp: string;\n mediaReference: Media;\n numericTimeseries: TimeSeriesProperty<number>;\n stringTimeseries: TimeSeriesProperty<string>;\n sensorTimeseries: TimeSeriesProperty<string | number>;\n geotimeSeriesReference: GeotimeSeriesProperty<GeoJSON.Point>;\n vector: number[];\n}\n\nexport type GetWirePropertyValueFromClient<\n T extends\n | keyof PropertyValueClientToWire\n | Record<string, keyof PropertyValueClientToWire>,\n> = T extends keyof PropertyValueClientToWire\n ? PropertyValueClientToWire[T]\n : T extends Record<string, keyof PropertyValueClientToWire>\n ? { [K in keyof T]: PropertyValueClientToWire[T[K]] }\n : never;\n\ninterface PropertyValueWireToCreateBase {\n attachment: Attachment | string;\n boolean: boolean;\n byte: number;\n datetime: string;\n decimal: string;\n double: number;\n float: number;\n geopoint: GeoJSON.Point;\n geoshape: GeoJSON.GeoJSON;\n integer: number;\n long: string;\n marking: string;\n mediaReference: Media | MediaReference;\n short: number;\n string: string;\n timestamp: string;\n numericTimeseries: TimeSeriesProperty<number>;\n stringTimeseries: TimeSeriesProperty<string>;\n sensorTimeseries: TimeSeriesProperty<string | number>;\n geotimeSeriesReference: GeotimeSeriesProperty<GeoJSON.Point>;\n vector: number[];\n}\n\n/**\n * User facing creation types for each properties\n */\nexport interface PropertyValueWireToCreate extends PropertyValueWireToCreateBase {\n cipherText: CreateCipherText | CipherText;\n}\n\n/**\n * User facing update types for each properties\n */\nexport interface PropertyValueWireToUpdate extends PropertyValueWireToCreateBase {\n cipherText: UpdateCipherText | CipherText;\n}\n\n/**\n * Function-edit facing creation types for each properties\n */\nexport interface PropertyValueCreateToWire extends PropertyValueWireToCreateBase {\n cipherText: CreateCipherText | CipherTextValue;\n}\n\n/**\n * Function-edit facing update types for each properties\n */\nexport interface PropertyValueUpdateToWire extends PropertyValueWireToCreateBase {\n cipherText: UpdateCipherText | CipherTextValue;\n}\n\nexport type GetCreatePropertyValueFromWire<\n T extends\n | keyof PropertyValueWireToCreate\n | Record<string, keyof PropertyValueWireToCreate>,\n> = T extends keyof PropertyValueWireToCreate\n ? PropertyValueWireToCreate[T]\n : T extends Record<string, keyof PropertyValueWireToCreate>\n ? { [K in keyof T]: PropertyValueWireToCreate[T[K]] | undefined }\n : never;\n\nexport type GetUpdatePropertyValueFromWire<\n T extends\n | keyof PropertyValueWireToUpdate\n | Record<string, keyof PropertyValueWireToUpdate>,\n> = T extends keyof PropertyValueWireToUpdate\n ? PropertyValueWireToUpdate[T]\n : T extends Record<string, keyof PropertyValueWireToUpdate>\n ? { [K in keyof T]: PropertyValueWireToUpdate[T[K]] | undefined }\n : never;\n\nexport type GetCreateWirePropertyValueFromWire<\n T extends\n | keyof PropertyValueCreateToWire\n | Record<string, keyof PropertyValueCreateToWire>,\n> = T extends keyof PropertyValueCreateToWire\n ? PropertyValueCreateToWire[T]\n : T extends Record<string, keyof PropertyValueCreateToWire>\n ? { [K in keyof T]: PropertyValueCreateToWire[T[K]] | undefined }\n : never;\n\nexport type GetUpdateWirePropertyValueFromWire<\n T extends\n | keyof PropertyValueUpdateToWire\n | Record<string, keyof PropertyValueUpdateToWire>,\n> = T extends keyof PropertyValueUpdateToWire\n ? PropertyValueUpdateToWire[T]\n : T extends Record<string, keyof PropertyValueUpdateToWire>\n ? { [K in keyof T]: PropertyValueUpdateToWire[T[K]] | undefined }\n : never;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CipherText.js","names":[],"sources":["CipherText.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Representation of a `cipherText` property. The encrypted\n * value is not stored; call {@link CipherText.decrypt} to retrieve the\n * decrypted plaintext on backend.\n *\n * @example\n * ```ts\n * const employee = await client(Employee).fetchOne(12345);\n * const ssn = await employee.encryptedSsn?.decrypt();\n * ```\n * @public\n */\nexport interface CipherText {\n /**\n * Decrypts the ciphertext and resolves to the plaintext value.\n * @returns the decrypted plaintext\n */\n decrypt(): Promise<string>;\n}\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"CipherText.js","names":[],"sources":["CipherText.ts"],"sourcesContent":["/*\n * Copyright 2026 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport type CipherChannelStrategy =\n | \"PREFER_EXISTING\"\n | \"PREFER_DEFAULT\"\n | \"EXISTING_ONLY\"\n | \"DEFAULT_ONLY\";\n\n/**\n * Representation of a `cipherText` property. The encrypted\n * value is not stored; call {@link CipherText.decrypt} to retrieve the\n * decrypted plaintext on backend.\n *\n * @example\n * ```ts\n * const employee = await client(Employee).fetchOne(12345);\n * const ssn = await employee.encryptedSsn?.decrypt();\n * ```\n * @public\n */\nexport interface CipherText {\n /**\n * Decrypts the ciphertext and resolves to the plaintext value.\n * @returns the decrypted plaintext\n */\n decrypt(): Promise<string>;\n}\n\n/**\n * Create a `cipherText` property value from plaintext. The platform encrypts\n * the value using the property's default cipher channel.\n */\nexport interface CreateCipherText {\n plaintext: string;\n}\n\n/**\n * Update a `cipherText` property value from plaintext. `strategy` controls which\n * cipher channel is used when re-encrypting.\n */\nexport interface UpdateCipherText {\n plaintext: string;\n strategy?: CipherChannelStrategy;\n}\n\n/**\n * The wire representation of a `cipherText` edit that reuses an existing\n * ciphertext: the raw encrypted value.\n */\nexport interface CipherTextValue {\n ciphertext: string;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GetClientPropertyValueFromWire, GetCreatePropertyValueFromWire } from "./mapping/PropertyValueMapping.js";
|
|
1
|
+
import type { GetClientPropertyValueFromWire, GetCreatePropertyValueFromWire, GetCreateWirePropertyValueFromWire, GetUpdatePropertyValueFromWire, GetUpdateWirePropertyValueFromWire } from "./mapping/PropertyValueMapping.js";
|
|
2
2
|
import type { ObjectMetadata } from "./ontology/ObjectTypeDefinition.js";
|
|
3
3
|
type MaybeArray<
|
|
4
4
|
T extends {
|
|
@@ -22,12 +22,20 @@ export type OsdkObjectPropertyType<
|
|
|
22
22
|
* @param T - ObjectMetadata.Property in literal form
|
|
23
23
|
*/
|
|
24
24
|
export type OsdkObjectPropertyTypeNotUndefined<T extends ObjectMetadata.Property> = MaybeArray<T, GetClientPropertyValueFromWire<T["type"]>>;
|
|
25
|
-
/**
|
|
26
|
-
* @param T - ObjectMetadata.Property in literal form
|
|
27
|
-
* @param STRICTLY_ENFORCE_NULLABLE - S for strict. If false, always `|undefined`
|
|
28
|
-
*/
|
|
29
25
|
export type OsdkObjectCreatePropertyType<
|
|
30
26
|
T extends ObjectMetadata.Property,
|
|
31
27
|
STRICTLY_ENFORCE_NULLABLE extends boolean = true
|
|
32
28
|
> = STRICTLY_ENFORCE_NULLABLE extends false ? MaybeArray<T, GetCreatePropertyValueFromWire<T["type"]>> | undefined : MaybeNullable<T, MaybeArray<T, GetCreatePropertyValueFromWire<T["type"]>>>;
|
|
29
|
+
export type OsdkObjectUpdatePropertyType<
|
|
30
|
+
T extends ObjectMetadata.Property,
|
|
31
|
+
STRICTLY_ENFORCE_NULLABLE extends boolean = true
|
|
32
|
+
> = STRICTLY_ENFORCE_NULLABLE extends false ? MaybeArray<T, GetUpdatePropertyValueFromWire<T["type"]>> | undefined : MaybeNullable<T, MaybeArray<T, GetUpdatePropertyValueFromWire<T["type"]>>>;
|
|
33
|
+
export type OsdkObjectCreateWirePropertyType<
|
|
34
|
+
T extends ObjectMetadata.Property,
|
|
35
|
+
STRICTLY_ENFORCE_NULLABLE extends boolean = true
|
|
36
|
+
> = STRICTLY_ENFORCE_NULLABLE extends false ? MaybeArray<T, GetCreateWirePropertyValueFromWire<T["type"]>> | undefined : MaybeNullable<T, MaybeArray<T, GetCreateWirePropertyValueFromWire<T["type"]>>>;
|
|
37
|
+
export type OsdkObjectUpdateWirePropertyType<
|
|
38
|
+
T extends ObjectMetadata.Property,
|
|
39
|
+
STRICTLY_ENFORCE_NULLABLE extends boolean = true
|
|
40
|
+
> = STRICTLY_ENFORCE_NULLABLE extends false ? MaybeArray<T, GetUpdateWirePropertyValueFromWire<T["type"]>> | undefined : MaybeNullable<T, MaybeArray<T, GetUpdateWirePropertyValueFromWire<T["type"]>>>;
|
|
33
41
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cACE,gCACA,
|
|
1
|
+
{"mappings":"AAgBA,cACE,gCACA,gCACA,oCACA,gCACA,0CACK,mCAAoC;AAC3C,cAAc,sBAAsB,oCAAqC;KAEpE;CACH,UAAU;EAAE;CAAoC;CAChD;IACE,EAAE,wBAAwB,OAAO,MAAM,KAAK;KAE3C;CACH,UAAU,eAAe;CACzB;IACE,EAAE,oBAAoB,OAAO,gBAAgB;;;;;AAMjD,YAAY;CACV,UAAU,eAAe;CACzB,4CAA4C;IAC1C,kCAAkC,QAClC,WAAW,GAAG,+BAA+B,EAAE,wBAC/C,cAAc,GAAG,WAAW,GAAG,+BAA+B,EAAE;;;;AAKpE,YAAY,mCACV,UAAU,eAAe,YACvB,WAAW,GAAG,+BAA+B,EAAE;AAEnD,YAAY;CACV,UAAU,eAAe;CACzB,4CAA4C;IAC1C,kCAAkC,QAClC,WAAW,GAAG,+BAA+B,EAAE,wBAC/C,cAAc,GAAG,WAAW,GAAG,+BAA+B,EAAE;AAEpE,YAAY;CACV,UAAU,eAAe;CACzB,4CAA4C;IAC1C,kCAAkC,QAClC,WAAW,GAAG,+BAA+B,EAAE,wBAC/C,cAAc,GAAG,WAAW,GAAG,+BAA+B,EAAE;AAEpE,YAAY;CACV,UAAU,eAAe;CACzB,4CAA4C;IAC1C,kCAAkC,QAClC,WAAW,GAAG,mCAAmC,EAAE,wBACnD,cACE,GACA,WAAW,GAAG,mCAAmC,EAAE;AAGzD,YAAY;CACV,UAAU,eAAe;CACzB,4CAA4C;IAC1C,kCAAkC,QAClC,WAAW,GAAG,mCAAmC,EAAE,wBACnD,cACE,GACA,WAAW,GAAG,mCAAmC,EAAE","names":[],"sources":["../../src/Definitions.ts"],"version":3,"file":"Definitions.d.ts"}
|
package/build/types/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export type { GeoFilterOptions } from "./aggregate/GeoFilter.js";
|
|
|
11
11
|
export type { IntervalRule } from "./aggregate/IntervalRule.js";
|
|
12
12
|
export { DistanceUnitMapping } from "./aggregate/WhereClause.js";
|
|
13
13
|
export type { AndWhereClause, GeoFilter_Intersects, GeoFilter_Within, NotWhereClause, OrWhereClause, PossibleWhereClauseFilters, WhereClause } from "./aggregate/WhereClause.js";
|
|
14
|
-
export type { OsdkObjectCreatePropertyType, OsdkObjectPropertyType } from "./Definitions.js";
|
|
14
|
+
export type { OsdkObjectCreatePropertyType, OsdkObjectCreateWirePropertyType, OsdkObjectPropertyType, OsdkObjectUpdatePropertyType, OsdkObjectUpdateWirePropertyType } from "./Definitions.js";
|
|
15
15
|
export type { OsdkObjectLinksObject, SingleLinkAccessor } from "./definitions/LinkDefinitions.js";
|
|
16
16
|
export { type DerivedProperty } from "./derivedProperties/DerivedProperty.js";
|
|
17
17
|
export { DurationMapping } from "./groupby/GroupByClause.js";
|
|
@@ -20,7 +20,8 @@ export type { Logger } from "./Logger.js";
|
|
|
20
20
|
export type { AllowedBucketKeyTypes, AllowedBucketTypes, DataValueClientToWire, DataValueWireToClient } from "./mapping/DataValueMapping.js";
|
|
21
21
|
export type { PropertyValueWireToClient } from "./mapping/PropertyValueMapping.js";
|
|
22
22
|
export type { Attachment, AttachmentMetadata, AttachmentUpload } from "./object/Attachment.js";
|
|
23
|
-
export type {
|
|
23
|
+
export type { CipherChannelStrategy } from "./object/CipherText.js";
|
|
24
|
+
export type { CipherText, CipherTextValue, CreateCipherText, UpdateCipherText } from "./object/CipherText.js";
|
|
24
25
|
export type { AsyncIterArgs, Augment, Augments, FetchPageArgs, NullabilityAdherence, ObjectSetArgs, SelectArg, SelectArgToKeys } from "./object/FetchPageArgs.js";
|
|
25
26
|
export type { FetchPageResult, SingleOsdkResult } from "./object/FetchPageResult.js";
|
|
26
27
|
export type { AffineTransform, AudioDecodeFormat, AudioMediaItemMetadata, AudioSpecification, BandInfo, ColorInterpretation, CommonDicomDataElements, CoordinateReferenceSystem, DataType, DicomDataElementKey, DicomMediaItemMetadata, DicomMediaType, DicomMetaInformation, DicomMetaInformationV1, Dimensions, DocumentDecodeFormat, DocumentMediaItemMetadata, EmailAttachment, EmailDecodeFormat, EmailMediaItemMetadata, FlipAxis, GcpList, GeoMetadata, GpsMetadata, GroundControlPoint, Group, GroupWrapper, ImageAttributeDomain, ImageAttributeKey, ImageryDecodeFormat, ImageryMediaItemMetadata, Mailbox, MailboxOrGroup, MailboxWrapper, Media, MediaFullMetadata, MediaItemMetadata, MediaMetadata, MediaPropertyLocation, MediaReference, MediaUpload, Modality, Model3dDecodeFormat, Model3dMediaItemMetadata, Model3dType, Orientation, PaletteInterpretation, RotationAngle, SpreadsheetDecodeFormat, SpreadsheetMediaItemMetadata, UnitInterpretation, UnknownMediaItemMetadata, UntypedMediaItemMetadata, VideoDecodeFormat, VideoMediaItemMetadata, VideoSpecification } from "./object/Media.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,kCAAkC;AAChD,cACE,oBACA,aACA,0BACA,oBACA,+BACK;AACP,cAAc,4BAA4B;AAC1C,cAAc,qBAAqB;AACnC,cAAc,sEAAsE;AACpF,cAAc,oCAAoC;AAClD,cAAc,uCAAuC;AACrD,cAAc,yBAAyB;AACvC,cAAc,2BAA2B;AACzC,cAAc,wBAAwB;AACtC,cAAc,oBAAoB;AAClC,SAAS,2BAA2B;AACpC,cACE,gBACA,sBACA,kBACA,gBACA,eACA,4BACA,mBACK;AACP,cACE,8BACA,
|
|
1
|
+
{"mappings":"AAgBA,cAAc,kCAAkC;AAChD,cACE,oBACA,aACA,0BACA,oBACA,+BACK;AACP,cAAc,4BAA4B;AAC1C,cAAc,qBAAqB;AACnC,cAAc,sEAAsE;AACpF,cAAc,oCAAoC;AAClD,cAAc,uCAAuC;AACrD,cAAc,yBAAyB;AACvC,cAAc,2BAA2B;AACzC,cAAc,wBAAwB;AACtC,cAAc,oBAAoB;AAClC,SAAS,2BAA2B;AACpC,cACE,gBACA,sBACA,kBACA,gBACA,eACA,4BACA,mBACK;AACP,cACE,8BACA,kCACA,wBACA,8BACA,wCACK;AACP,cACE,uBACA,0BACK;AACP,cAAc,uBAAuB;AACrC,SAAS,uBAAuB;AAChC,cACE,kBACA,eACA,oBACK;AACP,cAAc,cAAc;AAC5B,cACE,uBACA,oBACA,uBACA,6BACK;AACP,cAAc,iCAAiC;AAC/C,cACE,YACA,oBACA,wBACK;AACP,cAAc,6BAA6B;AAC3C,cACE,YACA,iBACA,kBACA,wBACK;AACP,cACE,eACA,SACA,UACA,eACA,sBACA,eACA,WACA,uBACK;AACP,cACE,iBACA,wBACK;AACP,cACE,iBACA,mBACA,wBACA,oBACA,UACA,qBACA,yBACA,2BACA,UACA,qBACA,wBACA,gBACA,sBACA,wBACA,YACA,sBACA,2BACA,iBACA,mBACA,wBACA,UACA,SACA,aACA,aACA,oBACA,OACA,cACA,sBACA,mBACA,qBACA,0BACA,SACA,gBACA,gBACA,OACA,mBACA,mBACA,eACA,uBACA,gBACA,aACA,UACA,qBACA,0BACA,aACA,aACA,uBACA,eACA,yBACA,8BACA,oBACA,0BACA,0BACA,mBACA,wBACA,0BACK;AACP,cACE,kBACA,wBACK;AACP,SAAS,YAAY;AACrB,cAAc,cAAc;AAC5B,cAAc,qBAAqB;AACnC,cAAc,iBAAiB;AAC/B,cACE,sBACA,qBACA,yCACK;AACP,cAAc,6BAA6B;AAC3C,cACE,kBACA,sBACK;AACP,cACE,qBACA,yBACK;AACP,cACE,6BACA,oBACK;AACP,cAAc,uBAAuB;AACrC,cACE,qBACA,gBACA,sBACA,aACA,oBACK;AACP,cAAc,wBAAwB;AACtC,cAAc,uBAAuB;AACrC,cACE,wBACA,qBACA,wBACA,yBACA,iBACA,eACA,0BACA,4CACA,gDACK;AACP,cAAc,yBAAyB;AACvC,cAAc,qCAAqC;AACnD,cACE,gBACA,yBACA,6BACA,sBACA,kBACA,wBACA,sBACA,4BACA,uCACK;AACP,cACE,WACA,uCACK;AACP,cACE,OACA,mBACA,qBACA,mBACA,qBACA,mBACA,sBACA,2BACA,wBACA,sBACA,yBACA,sBACA,qBACA,mBACA,mBACA,sBACA,0BACA,iBACA,oBACA,iBACA,8BACA,kCACA,sBACK;AACP,cAAc,mCAAmC;AACjD,cACE,uBACA,uCACA,sBACK;AACP,cACE,uBACA,yBACK;AACP,cACE,mBACA,UACA,sBACK;AAEP,cAAc,kBAAkB;AAChC,cAAc,cAAc,YAAY,YAAY;AACpD,cAAc,kBAAkB;AAChC,cACE,OACA,6BACA,iCACK;AACP,cAAc,YAAY,mBAAmB;AAC7C,SAAS,iCAAiC;AAC1C,cACE,uBACA,iBACA,oBACA,uBACK;AACP,cAAc,YAAY,iBAAiB;AAC3C","names":[],"sources":["../../src/index.ts"],"version":3,"file":"index.d.ts"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Attachment, AttachmentUpload } from "../object/Attachment.js";
|
|
2
|
-
import type { CipherText } from "../object/CipherText.js";
|
|
2
|
+
import type { CipherText, CipherTextValue, CreateCipherText, UpdateCipherText } from "../object/CipherText.js";
|
|
3
3
|
import type { Media, MediaReference } from "../object/Media.js";
|
|
4
4
|
import type { GeotimeSeriesProperty, TimeSeriesProperty } from "../timeseries/timeseries.js";
|
|
5
5
|
/**
|
|
@@ -60,11 +60,10 @@ export interface PropertyValueClientToWire {
|
|
|
60
60
|
vector: number[];
|
|
61
61
|
}
|
|
62
62
|
export type GetWirePropertyValueFromClient<T extends keyof PropertyValueClientToWire | Record<string, keyof PropertyValueClientToWire>> = T extends keyof PropertyValueClientToWire ? PropertyValueClientToWire[T] : T extends Record<string, keyof PropertyValueClientToWire> ? { [K in keyof T] : PropertyValueClientToWire[T[K]] } : never;
|
|
63
|
-
|
|
63
|
+
interface PropertyValueWireToCreateBase {
|
|
64
64
|
attachment: Attachment | string;
|
|
65
65
|
boolean: boolean;
|
|
66
66
|
byte: number;
|
|
67
|
-
cipherText: CipherText;
|
|
68
67
|
datetime: string;
|
|
69
68
|
decimal: string;
|
|
70
69
|
double: number;
|
|
@@ -84,4 +83,32 @@ export interface PropertyValueWireToCreate {
|
|
|
84
83
|
geotimeSeriesReference: GeotimeSeriesProperty<GeoJSON.Point>;
|
|
85
84
|
vector: number[];
|
|
86
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* User facing creation types for each properties
|
|
88
|
+
*/
|
|
89
|
+
export interface PropertyValueWireToCreate extends PropertyValueWireToCreateBase {
|
|
90
|
+
cipherText: CreateCipherText | CipherText;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* User facing update types for each properties
|
|
94
|
+
*/
|
|
95
|
+
export interface PropertyValueWireToUpdate extends PropertyValueWireToCreateBase {
|
|
96
|
+
cipherText: UpdateCipherText | CipherText;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Function-edit facing creation types for each properties
|
|
100
|
+
*/
|
|
101
|
+
export interface PropertyValueCreateToWire extends PropertyValueWireToCreateBase {
|
|
102
|
+
cipherText: CreateCipherText | CipherTextValue;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Function-edit facing update types for each properties
|
|
106
|
+
*/
|
|
107
|
+
export interface PropertyValueUpdateToWire extends PropertyValueWireToCreateBase {
|
|
108
|
+
cipherText: UpdateCipherText | CipherTextValue;
|
|
109
|
+
}
|
|
87
110
|
export type GetCreatePropertyValueFromWire<T extends keyof PropertyValueWireToCreate | Record<string, keyof PropertyValueWireToCreate>> = T extends keyof PropertyValueWireToCreate ? PropertyValueWireToCreate[T] : T extends Record<string, keyof PropertyValueWireToCreate> ? { [K in keyof T] : PropertyValueWireToCreate[T[K]] | undefined } : never;
|
|
111
|
+
export type GetUpdatePropertyValueFromWire<T extends keyof PropertyValueWireToUpdate | Record<string, keyof PropertyValueWireToUpdate>> = T extends keyof PropertyValueWireToUpdate ? PropertyValueWireToUpdate[T] : T extends Record<string, keyof PropertyValueWireToUpdate> ? { [K in keyof T] : PropertyValueWireToUpdate[T[K]] | undefined } : never;
|
|
112
|
+
export type GetCreateWirePropertyValueFromWire<T extends keyof PropertyValueCreateToWire | Record<string, keyof PropertyValueCreateToWire>> = T extends keyof PropertyValueCreateToWire ? PropertyValueCreateToWire[T] : T extends Record<string, keyof PropertyValueCreateToWire> ? { [K in keyof T] : PropertyValueCreateToWire[T[K]] | undefined } : never;
|
|
113
|
+
export type GetUpdateWirePropertyValueFromWire<T extends keyof PropertyValueUpdateToWire | Record<string, keyof PropertyValueUpdateToWire>> = T extends keyof PropertyValueUpdateToWire ? PropertyValueUpdateToWire[T] : T extends Record<string, keyof PropertyValueUpdateToWire> ? { [K in keyof T] : PropertyValueUpdateToWire[T[K]] | undefined } : never;
|
|
114
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,YAAY,wBAAwB,yBAA0B;AAC5E,
|
|
1
|
+
{"mappings":"AAgBA,cAAc,YAAY,wBAAwB,yBAA0B;AAC5E,cACE,YACA,iBACA,kBACA,wBACK,yBAA0B;AACjC,cAAc,OAAO,sBAAsB,oBAAqB;AAChE,cACE,uBACA,0BACK,6BAA8B;;;;AAKrC,iBAAiB,0BAA0B;CACzC,YAAY;CACZ;CACA;CACA,YAAY;CACZ;CACA;CACA;CACA;CACA,UAAU,QAAQ;CAClB,UAAU,QAAQ;CAClB;CACA;CACA;CACA,gBAAgB;CAChB;CACA;CACA;CACA,mBAAmB;CACnB,kBAAkB;CAClB,kBAAkB;CAClB,wBAAwB,sBAAsB,QAAQ;CACtD;AACD;AAED,YAAY,+BACV,gBACU,4BACN,qBAAqB,8BACvB,gBAAgB,4BAChB,0BAA0B,KAC1B,UAAU,qBAAqB,gCAC1B,WAAW,KAAI,0BAA0B,EAAE;;;;AAMpD,iBAAiB,0BAA0B;CACzC,qBAAqB,oBAAoB,OAAO;WAAW;CAAc;CACzE;CACA;CACA,YAAY;CACZ;CACA;CACA;CACA;CACA,UAAU,QAAQ;CAClB,UAAU,QAAQ;CAClB;CACA;CACA;CACA;CACA;CACA;CACA,gBAAgB;CAChB,mBAAmB;CACnB,kBAAkB;CAClB,kBAAkB;CAClB,wBAAwB,sBAAsB,QAAQ;CACtD;AACD;AAED,YAAY,+BACV,gBACU,4BACN,qBAAqB,8BACvB,gBAAgB,4BAChB,0BAA0B,KAC1B,UAAU,qBAAqB,gCAC1B,WAAW,KAAI,0BAA0B,EAAE;UAG1C,8BAA8B;CACtC,YAAY;CACZ;CACA;CACA;CACA;CACA;CACA;CACA,UAAU,QAAQ;CAClB,UAAU,QAAQ;CAClB;CACA;CACA;CACA,gBAAgB,QAAQ;CACxB;CACA;CACA;CACA,mBAAmB;CACnB,kBAAkB;CAClB,kBAAkB;CAClB,wBAAwB,sBAAsB,QAAQ;CACtD;AACD;;;;AAKD,iBAAiB,kCAAkC,8BAA8B;CAC/E,YAAY,mBAAmB;AAChC;;;;AAKD,iBAAiB,kCAAkC,8BAA8B;CAC/E,YAAY,mBAAmB;AAChC;;;;AAKD,iBAAiB,kCAAkC,8BAA8B;CAC/E,YAAY,mBAAmB;AAChC;;;;AAKD,iBAAiB,kCAAkC,8BAA8B;CAC/E,YAAY,mBAAmB;AAChC;AAED,YAAY,+BACV,gBACU,4BACN,qBAAqB,8BACvB,gBAAgB,4BAChB,0BAA0B,KAC1B,UAAU,qBAAqB,gCAC1B,WAAW,KAAI,0BAA0B,EAAE;AAGpD,YAAY,+BACV,gBACU,4BACN,qBAAqB,8BACvB,gBAAgB,4BAChB,0BAA0B,KAC1B,UAAU,qBAAqB,gCAC1B,WAAW,KAAI,0BAA0B,EAAE;AAGpD,YAAY,mCACV,gBACU,4BACN,qBAAqB,8BACvB,gBAAgB,4BAChB,0BAA0B,KAC1B,UAAU,qBAAqB,gCAC1B,WAAW,KAAI,0BAA0B,EAAE;AAGpD,YAAY,mCACV,gBACU,4BACN,qBAAqB,8BACvB,gBAAgB,4BAChB,0BAA0B,KAC1B,UAAU,qBAAqB,gCAC1B,WAAW,KAAI,0BAA0B,EAAE","names":[],"sources":["../../../src/mapping/PropertyValueMapping.ts"],"version":3,"file":"PropertyValueMapping.d.ts"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type CipherChannelStrategy = "PREFER_EXISTING" | "PREFER_DEFAULT" | "EXISTING_ONLY" | "DEFAULT_ONLY";
|
|
1
2
|
/**
|
|
2
3
|
* Representation of a `cipherText` property. The encrypted
|
|
3
4
|
* value is not stored; call {@link CipherText.decrypt} to retrieve the
|
|
@@ -17,3 +18,25 @@ export interface CipherText {
|
|
|
17
18
|
*/
|
|
18
19
|
decrypt(): Promise<string>;
|
|
19
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Create a `cipherText` property value from plaintext. The platform encrypts
|
|
23
|
+
* the value using the property's default cipher channel.
|
|
24
|
+
*/
|
|
25
|
+
export interface CreateCipherText {
|
|
26
|
+
plaintext: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Update a `cipherText` property value from plaintext. `strategy` controls which
|
|
30
|
+
* cipher channel is used when re-encrypting.
|
|
31
|
+
*/
|
|
32
|
+
export interface UpdateCipherText {
|
|
33
|
+
plaintext: string;
|
|
34
|
+
strategy?: CipherChannelStrategy;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The wire representation of a `cipherText` edit that reuses an existing
|
|
38
|
+
* ciphertext: the raw encrypted value.
|
|
39
|
+
*/
|
|
40
|
+
export interface CipherTextValue {
|
|
41
|
+
ciphertext: string;
|
|
42
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":"AAgBA,YAAY,wBACR,oBACA,mBACA,kBACA;;;;;;;;;;;;;AAcJ,iBAAiB,WAAW;;;;;CAK1B,WAAW;AACZ;;;;;AAMD,iBAAiB,iBAAiB;CAChC;AACD;;;;;AAMD,iBAAiB,iBAAiB;CAChC;CACA,WAAW;AACZ;;;;;AAMD,iBAAiB,gBAAgB;CAC/B;AACD","names":[],"sources":["../../../src/object/CipherText.ts"],"version":3,"file":"CipherText.d.ts"}
|