@osdk/api 2.6.0-beta.8 → 2.6.0-beta.9
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/mapping/PropertyValueMapping.js.map +1 -1
- package/build/cjs/{ObjectSet-CzVb195y.d.cts → ObjectSet-D7jdSkmi.d.cts} +1 -1
- package/build/cjs/index.d.cts +2 -2
- package/build/cjs/public/unstable.d.cts +2 -2
- package/build/esm/mapping/PropertyValueMapping.js.map +1 -1
- package/build/types/mapping/PropertyValueMapping.d.ts +2 -2
- package/build/types/mapping/PropertyValueMapping.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -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 { Media } 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 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 ? 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 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}\nexport type GetWirePropertyValueFromClient<\n T extends\n | keyof PropertyValueClientToWire\n | Record<string, keyof PropertyValueClientToWire>,\n> = T extends keyof PropertyValueClientToWire ? PropertyValueClientToWire[T]\n : T extends Record<string, keyof PropertyValueClientToWire>\n ? { [K in keyof T]: PropertyValueClientToWire[T[K]] }\n : never;\n\nexport interface PropertyValueWireToCreate {\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;\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 GetCreatePropertyValueFromWire<\n T extends\n | keyof PropertyValueWireToCreate\n | Record<string, keyof PropertyValueWireToCreate>,\n> = T extends keyof PropertyValueWireToCreate ? PropertyValueWireToCreate[T]\n : T extends Record<string, keyof PropertyValueWireToCreate>\n ? { [K in keyof T]: PropertyValueWireToCreate[T[K]] | undefined }\n : never;\n"],"mappings":"","ignoreList":[]}
|
|
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 { 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 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 ? 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 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}\nexport type GetWirePropertyValueFromClient<\n T extends\n | keyof PropertyValueClientToWire\n | Record<string, keyof PropertyValueClientToWire>,\n> = T extends keyof PropertyValueClientToWire ? PropertyValueClientToWire[T]\n : T extends Record<string, keyof PropertyValueClientToWire>\n ? { [K in keyof T]: PropertyValueClientToWire[T[K]] }\n : never;\n\nexport interface PropertyValueWireToCreate {\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\nexport type GetCreatePropertyValueFromWire<\n T extends\n | keyof PropertyValueWireToCreate\n | Record<string, keyof PropertyValueWireToCreate>,\n> = T extends keyof PropertyValueWireToCreate ? PropertyValueWireToCreate[T]\n : T extends Record<string, keyof PropertyValueWireToCreate>\n ? { [K in keyof T]: PropertyValueWireToCreate[T[K]] | undefined }\n : never;\n"],"mappings":"","ignoreList":[]}
|
package/build/cjs/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AttachmentUpload, M as MediaReference, a as MediaUpload, b as Attachment, O as ObjectTypeDefinition, c as ObjectIdentifiers, d as OsdkObjectPrimaryKeyType, e as ObjectSet, I as InterfaceDefinition, C as CompileTimeMetadata, f as OsdkMetadata, R as ReleaseStatus, g as ObjectOrInterfaceDefinition, P as PropertyValueWireToClient, h as PrimaryKeyTypes, i as OsdkBase } from './ObjectSet-
|
|
2
|
-
export { am as Affix, j as AggregateOpts, k as AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy, n as AggregationClause, l as AggregationResultsWithGroups, m as AggregationResultsWithoutGroups, o as AggregationsResults, z as AllGroupByValues, p as AndWhereClause, F as AsyncIterArgs, H as Augment, J as Augments, a1 as BaseObjectSet, aN as BaseWirePropertyTypes, aQ as ConvertProps, ab as DatetimeFormat, ac as DatetimeLocalizedFormat, ad as DatetimeLocalizedFormatType, ae as DatetimeStringFormat, af as DatetimeTimezone, ag as DatetimeTimezoneStatic, ah as DatetimeTimezoneUser, x as DerivedProperty, D as DistanceUnitMapping, an as DurationBaseValue, ao as DurationFormatStyle, y as DurationMapping, ap as DurationPrecision, K as FetchPageArgs, X as FetchPageResult, G as GeoFilterOptions, q as GeoFilter_Intersects, r as GeoFilter_Within, aV as GeotimeSeriesProperty, B as GroupByClause, E as GroupByRange, aq as HumanReadableFormat, a3 as InterfaceMetadata, ak as KnownType, a_ as LinkNames, aZ as LinkedType, aR as MaybeScore, Z as Media, _ as MediaMetadata, N as NotWhereClause, L as NullabilityAdherence, ar as NumberFormatAffix, as as NumberFormatCurrency, at as NumberFormatCurrencyStyle, au as NumberFormatCustomUnit, av as NumberFormatDuration, aw as NumberFormatFixedValues, ax as NumberFormatNotation, ay as NumberFormatOptions, az as NumberFormatRatio, aA as NumberFormatScale, aB as NumberFormatStandard, aC as NumberFormatStandardUnit, aD as NumberRatioType, aE as NumberRoundingMode, aF as NumberScaleType, a6 as ObjectMetadata, Q as ObjectSetArgs, a2 as ObjectSetSubscription, a5 as ObjectSpecifier, s as OrWhereClause, aS as Osdk, u as OsdkObjectCreatePropertyType, w as OsdkObjectLinksObject, v as OsdkObjectPropertyType, aT as PageResult, t as PossibleWhereClauseFilters, aP as PrimaryKeyType, aa as PropertyBooleanFormattingRule, ai as PropertyDateFormattingRule, a7 as PropertyDef, a4 as PropertyKeys, al as PropertyKnownTypeFormattingRule, aG as PropertyNumberFormattingRule, aH as PropertyNumberFormattingRuleType, aj as PropertyTimestampFormattingRule, aK as PropertyTypeReference, aL as PropertyTypeReferenceOrStringConstant, aJ as PropertyValueFormattingRule, a0 as Result, T as SelectArg, U as SelectArgToKeys, a9 as SimplePropertyDef, S as SingleLinkAccessor, Y as SingleOsdkResult, aM as StringConstant, aI as TimeCodeFormat, aW as TimeSeriesPoint, aX as TimeSeriesProperty, aY as TimeSeriesQuery, aU as TimeseriesDurationMapping, V as ValidAggregationKeys, a8 as VersionBound, W as WhereClause, aO as WirePropertyTypes, $ as isOk } from './ObjectSet-
|
|
1
|
+
import { A as AttachmentUpload, M as MediaReference, a as MediaUpload, b as Attachment, O as ObjectTypeDefinition, c as ObjectIdentifiers, d as OsdkObjectPrimaryKeyType, e as ObjectSet, I as InterfaceDefinition, C as CompileTimeMetadata, f as OsdkMetadata, R as ReleaseStatus, g as ObjectOrInterfaceDefinition, P as PropertyValueWireToClient, h as PrimaryKeyTypes, i as OsdkBase } from './ObjectSet-D7jdSkmi.cjs';
|
|
2
|
+
export { am as Affix, j as AggregateOpts, k as AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy, n as AggregationClause, l as AggregationResultsWithGroups, m as AggregationResultsWithoutGroups, o as AggregationsResults, z as AllGroupByValues, p as AndWhereClause, F as AsyncIterArgs, H as Augment, J as Augments, a1 as BaseObjectSet, aN as BaseWirePropertyTypes, aQ as ConvertProps, ab as DatetimeFormat, ac as DatetimeLocalizedFormat, ad as DatetimeLocalizedFormatType, ae as DatetimeStringFormat, af as DatetimeTimezone, ag as DatetimeTimezoneStatic, ah as DatetimeTimezoneUser, x as DerivedProperty, D as DistanceUnitMapping, an as DurationBaseValue, ao as DurationFormatStyle, y as DurationMapping, ap as DurationPrecision, K as FetchPageArgs, X as FetchPageResult, G as GeoFilterOptions, q as GeoFilter_Intersects, r as GeoFilter_Within, aV as GeotimeSeriesProperty, B as GroupByClause, E as GroupByRange, aq as HumanReadableFormat, a3 as InterfaceMetadata, ak as KnownType, a_ as LinkNames, aZ as LinkedType, aR as MaybeScore, Z as Media, _ as MediaMetadata, N as NotWhereClause, L as NullabilityAdherence, ar as NumberFormatAffix, as as NumberFormatCurrency, at as NumberFormatCurrencyStyle, au as NumberFormatCustomUnit, av as NumberFormatDuration, aw as NumberFormatFixedValues, ax as NumberFormatNotation, ay as NumberFormatOptions, az as NumberFormatRatio, aA as NumberFormatScale, aB as NumberFormatStandard, aC as NumberFormatStandardUnit, aD as NumberRatioType, aE as NumberRoundingMode, aF as NumberScaleType, a6 as ObjectMetadata, Q as ObjectSetArgs, a2 as ObjectSetSubscription, a5 as ObjectSpecifier, s as OrWhereClause, aS as Osdk, u as OsdkObjectCreatePropertyType, w as OsdkObjectLinksObject, v as OsdkObjectPropertyType, aT as PageResult, t as PossibleWhereClauseFilters, aP as PrimaryKeyType, aa as PropertyBooleanFormattingRule, ai as PropertyDateFormattingRule, a7 as PropertyDef, a4 as PropertyKeys, al as PropertyKnownTypeFormattingRule, aG as PropertyNumberFormattingRule, aH as PropertyNumberFormattingRuleType, aj as PropertyTimestampFormattingRule, aK as PropertyTypeReference, aL as PropertyTypeReferenceOrStringConstant, aJ as PropertyValueFormattingRule, a0 as Result, T as SelectArg, U as SelectArgToKeys, a9 as SimplePropertyDef, S as SingleLinkAccessor, Y as SingleOsdkResult, aM as StringConstant, aI as TimeCodeFormat, aW as TimeSeriesPoint, aX as TimeSeriesProperty, aY as TimeSeriesQuery, aU as TimeseriesDurationMapping, V as ValidAggregationKeys, a8 as VersionBound, W as WhereClause, aO as WirePropertyTypes, $ as isOk } from './ObjectSet-D7jdSkmi.cjs';
|
|
3
3
|
import 'type-fest';
|
|
4
4
|
import 'geojson';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as ObjectOrInterfaceDefinition, a4 as PropertyKeys, M as MediaReference, O as ObjectTypeDefinition, L as NullabilityAdherence, T as SelectArg, aS as Osdk, a$ as ExtractOptions, K as FetchPageArgs, X as FetchPageResult, i as OsdkBase } from '../ObjectSet-
|
|
2
|
-
export { b0 as MinimalObjectSet } from '../ObjectSet-
|
|
1
|
+
import { g as ObjectOrInterfaceDefinition, a4 as PropertyKeys, M as MediaReference, O as ObjectTypeDefinition, L as NullabilityAdherence, T as SelectArg, aS as Osdk, a$ as ExtractOptions, K as FetchPageArgs, X as FetchPageResult, i as OsdkBase } from '../ObjectSet-D7jdSkmi.cjs';
|
|
2
|
+
export { b0 as MinimalObjectSet } from '../ObjectSet-D7jdSkmi.cjs';
|
|
3
3
|
import 'type-fest';
|
|
4
4
|
import 'geojson';
|
|
5
5
|
|
|
@@ -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 { Media } 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 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 ? 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 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}\nexport type GetWirePropertyValueFromClient<\n T extends\n | keyof PropertyValueClientToWire\n | Record<string, keyof PropertyValueClientToWire>,\n> = T extends keyof PropertyValueClientToWire ? PropertyValueClientToWire[T]\n : T extends Record<string, keyof PropertyValueClientToWire>\n ? { [K in keyof T]: PropertyValueClientToWire[T[K]] }\n : never;\n\nexport interface PropertyValueWireToCreate {\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;\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 GetCreatePropertyValueFromWire<\n T extends\n | keyof PropertyValueWireToCreate\n | Record<string, keyof PropertyValueWireToCreate>,\n> = T extends keyof PropertyValueWireToCreate ? PropertyValueWireToCreate[T]\n : T extends Record<string, keyof PropertyValueWireToCreate>\n ? { [K in keyof T]: PropertyValueWireToCreate[T[K]] | undefined }\n : never;\n"],"mappings":"","ignoreList":[]}
|
|
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 { 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 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 ? 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 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}\nexport type GetWirePropertyValueFromClient<\n T extends\n | keyof PropertyValueClientToWire\n | Record<string, keyof PropertyValueClientToWire>,\n> = T extends keyof PropertyValueClientToWire ? PropertyValueClientToWire[T]\n : T extends Record<string, keyof PropertyValueClientToWire>\n ? { [K in keyof T]: PropertyValueClientToWire[T[K]] }\n : never;\n\nexport interface PropertyValueWireToCreate {\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\nexport type GetCreatePropertyValueFromWire<\n T extends\n | keyof PropertyValueWireToCreate\n | Record<string, keyof PropertyValueWireToCreate>,\n> = T extends keyof PropertyValueWireToCreate ? PropertyValueWireToCreate[T]\n : T extends Record<string, keyof PropertyValueWireToCreate>\n ? { [K in keyof T]: PropertyValueWireToCreate[T[K]] | undefined }\n : never;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Attachment, AttachmentUpload } from "../object/Attachment.js";
|
|
2
|
-
import type { Media } from "../object/Media.js";
|
|
2
|
+
import type { Media, MediaReference } from "../object/Media.js";
|
|
3
3
|
import type { GeotimeSeriesProperty, TimeSeriesProperty } from "../timeseries/timeseries.js";
|
|
4
4
|
/**
|
|
5
5
|
* Map from the PropertyDefinition type to the typescript type that we return
|
|
@@ -70,7 +70,7 @@ export interface PropertyValueWireToCreate {
|
|
|
70
70
|
integer: number;
|
|
71
71
|
long: string;
|
|
72
72
|
marking: string;
|
|
73
|
-
mediaReference: Media;
|
|
73
|
+
mediaReference: Media | MediaReference;
|
|
74
74
|
short: number;
|
|
75
75
|
string: string;
|
|
76
76
|
timestamp: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,YAAY,wBAAwB,yBAA0B;AAC5E,cAAc,
|
|
1
|
+
{"mappings":"AAgBA,cAAc,YAAY,wBAAwB,yBAA0B;AAC5E,cAAc,OAAO,sBAAsB,oBAAqB;AAChE,cACE,uBACA,0BACK,6BAA8B;;;;AAKrC,iBAAiB,0BAA0B;CACzC,YAAY;CACZ;CACA;CACA;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,4BAA4B,0BAA0B,KACtE,UAAU,qBAAqB,gCAC1B,WAAW,KAAI,0BAA0B,EAAE;;;;AAMpD,iBAAiB,0BAA0B;CACzC,qBAAqB,mBAAmB,OAAO;WAAW;CAAc;CACxE;CACA;CACA;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;AACD,YAAY,+BACV,gBACU,4BACN,qBAAqB,8BACvB,gBAAgB,4BAA4B,0BAA0B,KACtE,UAAU,qBAAqB,gCAC1B,WAAW,KAAI,0BAA0B,EAAE;AAGpD,iBAAiB,0BAA0B;CACzC,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;AAED,YAAY,+BACV,gBACU,4BACN,qBAAqB,8BACvB,gBAAgB,4BAA4B,0BAA0B,KACtE,UAAU,qBAAqB,gCAC1B,WAAW,KAAI,0BAA0B,EAAE","names":[],"sources":["../../../src/mapping/PropertyValueMapping.ts"],"version":3,"file":"PropertyValueMapping.d.ts"}
|