@osdk/api 2.6.0-beta.9 → 2.6.0-rc.15
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 +57 -0
- package/build/browser/OsdkObjectFrom.js.map +1 -1
- package/build/browser/derivedProperties/DerivedProperty.js.map +1 -1
- package/build/browser/index.js +0 -1
- package/build/browser/index.js.map +1 -1
- package/build/browser/objectSet/ObjectSet.js.map +1 -1
- package/build/browser/objectSet/ObjectSet.test.js +8 -30
- package/build/browser/objectSet/ObjectSet.test.js.map +1 -1
- package/build/browser/ontology/ObjectTypeDefinition.js.map +1 -1
- package/build/browser/ontology/QueryDefinition.js.map +1 -1
- package/build/cjs/{ObjectSet-D7jdSkmi.d.cts → ObjectSet-DMlVNQym.d.cts} +5 -206
- package/build/cjs/index.cjs +0 -4
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +6 -4
- package/build/cjs/public/unstable.d.cts +2 -2
- package/build/esm/OsdkObjectFrom.js.map +1 -1
- package/build/esm/derivedProperties/DerivedProperty.js.map +1 -1
- package/build/esm/index.js +0 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/objectSet/ObjectSet.js.map +1 -1
- package/build/esm/objectSet/ObjectSet.test.js +8 -30
- package/build/esm/objectSet/ObjectSet.test.js.map +1 -1
- package/build/esm/ontology/ObjectTypeDefinition.js.map +1 -1
- package/build/esm/ontology/QueryDefinition.js.map +1 -1
- package/build/types/OsdkObjectFrom.d.ts +0 -4
- package/build/types/OsdkObjectFrom.d.ts.map +1 -1
- package/build/types/derivedProperties/DerivedProperty.d.ts +1 -10
- package/build/types/derivedProperties/DerivedProperty.d.ts.map +1 -1
- package/build/types/index.d.ts +0 -7
- package/build/types/index.d.ts.map +1 -1
- package/build/types/objectSet/ObjectSet.d.ts +3 -3
- package/build/types/objectSet/ObjectSet.d.ts.map +1 -1
- package/build/types/ontology/ObjectTypeDefinition.d.ts +0 -2
- package/build/types/ontology/ObjectTypeDefinition.d.ts.map +1 -1
- package/build/types/ontology/QueryDefinition.d.ts +3 -1
- package/build/types/ontology/QueryDefinition.d.ts.map +1 -1
- package/package.json +1 -1
- package/build/browser/ontology/valueFormatting/PropertyBooleanFormattingRule.js +0 -2
- package/build/browser/ontology/valueFormatting/PropertyBooleanFormattingRule.js.map +0 -1
- package/build/browser/ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.js +0 -2
- package/build/browser/ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.js.map +0 -1
- package/build/browser/ontology/valueFormatting/PropertyKnownTypeFormattingRule.js +0 -2
- package/build/browser/ontology/valueFormatting/PropertyKnownTypeFormattingRule.js.map +0 -1
- package/build/browser/ontology/valueFormatting/PropertyNumberFormattingRule.js +0 -2
- package/build/browser/ontology/valueFormatting/PropertyNumberFormattingRule.js.map +0 -1
- package/build/browser/ontology/valueFormatting/PropertyValueFormattingRule.js +0 -2
- package/build/browser/ontology/valueFormatting/PropertyValueFormattingRule.js.map +0 -1
- package/build/browser/ontology/valueFormatting/PropertyValueFormattingUtils.js +0 -2
- package/build/browser/ontology/valueFormatting/PropertyValueFormattingUtils.js.map +0 -1
- package/build/esm/ontology/valueFormatting/PropertyBooleanFormattingRule.js +0 -2
- package/build/esm/ontology/valueFormatting/PropertyBooleanFormattingRule.js.map +0 -1
- package/build/esm/ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.js +0 -2
- package/build/esm/ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.js.map +0 -1
- package/build/esm/ontology/valueFormatting/PropertyKnownTypeFormattingRule.js +0 -2
- package/build/esm/ontology/valueFormatting/PropertyKnownTypeFormattingRule.js.map +0 -1
- package/build/esm/ontology/valueFormatting/PropertyNumberFormattingRule.js +0 -2
- package/build/esm/ontology/valueFormatting/PropertyNumberFormattingRule.js.map +0 -1
- package/build/esm/ontology/valueFormatting/PropertyValueFormattingRule.js +0 -2
- package/build/esm/ontology/valueFormatting/PropertyValueFormattingRule.js.map +0 -1
- package/build/esm/ontology/valueFormatting/PropertyValueFormattingUtils.js +0 -2
- package/build/esm/ontology/valueFormatting/PropertyValueFormattingUtils.js.map +0 -1
- package/build/types/ontology/valueFormatting/PropertyBooleanFormattingRule.d.ts +0 -5
- package/build/types/ontology/valueFormatting/PropertyBooleanFormattingRule.d.ts.map +0 -1
- package/build/types/ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.d.ts +0 -37
- package/build/types/ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.d.ts.map +0 -1
- package/build/types/ontology/valueFormatting/PropertyKnownTypeFormattingRule.d.ts +0 -8
- package/build/types/ontology/valueFormatting/PropertyKnownTypeFormattingRule.d.ts.map +0 -1
- package/build/types/ontology/valueFormatting/PropertyNumberFormattingRule.d.ts +0 -117
- package/build/types/ontology/valueFormatting/PropertyNumberFormattingRule.d.ts.map +0 -1
- package/build/types/ontology/valueFormatting/PropertyValueFormattingRule.d.ts +0 -8
- package/build/types/ontology/valueFormatting/PropertyValueFormattingRule.d.ts.map +0 -1
- package/build/types/ontology/valueFormatting/PropertyValueFormattingUtils.d.ts +0 -12
- package/build/types/ontology/valueFormatting/PropertyValueFormattingUtils.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectTypeDefinition.js","names":["ObjectMetadata"],"sources":["ObjectTypeDefinition.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 { OsdkMetadata } from \"../OsdkMetadata.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ObjectOrInterface.js\";\nimport type { PrimaryKeyTypes } from \"./PrimaryKeyTypes.js\";\nimport type {
|
|
1
|
+
{"version":3,"file":"ObjectTypeDefinition.js","names":["ObjectMetadata"],"sources":["ObjectTypeDefinition.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 { OsdkMetadata } from \"../OsdkMetadata.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ObjectOrInterface.js\";\nimport type { PrimaryKeyTypes } from \"./PrimaryKeyTypes.js\";\nimport type { VersionString } from \"./VersionString.js\";\nimport type { WirePropertyTypes } from \"./WirePropertyTypes.js\";\n\nexport type CompileTimeMetadata<T extends { __DefinitionMetadata?: {} }> =\n NonNullable<\n T[\"__DefinitionMetadata\"]\n >;\n\nexport type ObjectTypePropertyDefinitionFrom2<\n Q extends ObjectOrInterfaceDefinition,\n P extends PropertyKeys<Q>,\n> = CompileTimeMetadata<Q>[\"properties\"][P];\n\nexport type ObjectInterfaceBaseMetadata = {\n type: \"object\" | \"interface\";\n apiName: string;\n displayName: string;\n description: string | undefined;\n properties: Record<any, ObjectMetadata.Property>;\n rid: string;\n /**\n * Represents the \"super interfaces\" of this object.\n *\n * Optional because they may not exist on legacy.\n */\n implements?: ReadonlyArray<string>;\n};\n\nexport interface ObjectInterfaceCompileDefinition {\n type: \"object\" | \"interface\";\n objectSet?: any;\n props?: any;\n strictProps?: any;\n linksType?: any;\n}\n\nexport interface VersionBound<V extends VersionString<any, any, any>> {\n __expectedClientVersion?: V;\n}\n\nexport interface ObjectMetadata extends ObjectInterfaceBaseMetadata {\n type: \"object\";\n primaryKeyApiName: keyof this[\"properties\"];\n titleProperty: keyof this[\"properties\"];\n links: Record<\n string,\n ObjectMetadata.Link<any, any>\n >;\n primaryKeyType: PrimaryKeyTypes;\n icon: Icon | undefined;\n visibility: ObjectTypeVisibility | undefined;\n pluralDisplayName: string;\n status: ReleaseStatus | undefined;\n interfaceMap: Record<\n /* InterfaceType api name */ string,\n Record<\n /* InterfaceType property api name */ string,\n /* ObjectType property api name */ string\n >\n >;\n inverseInterfaceMap: Record<\n /* InterfaceType api name */ string,\n Record<\n /* ObjectType property api name */ string,\n /* InterfaceType property api name */ string\n >\n >;\n}\n\nexport namespace ObjectMetadata {\n export interface Property {\n readonly?: boolean;\n displayName?: string;\n description?: string;\n type: WirePropertyTypes;\n multiplicity?: boolean;\n nullable?: boolean;\n valueTypeApiName?: string;\n }\n\n export interface Link<\n Q extends ObjectTypeDefinition,\n M extends boolean,\n > {\n __OsdkLinkTargetType?: Q;\n targetType: Q[\"apiName\"];\n multiplicity: M;\n }\n}\n\nexport interface ObjectTypeDefinition {\n type: \"object\";\n apiName: string;\n osdkMetadata?: OsdkMetadata;\n __DefinitionMetadata?:\n & ObjectMetadata\n & ObjectInterfaceCompileDefinition;\n}\n\nexport type ObjectTypeLinkKeysFrom2<\n Q extends ObjectOrInterfaceDefinition,\n> =\n & keyof CompileTimeMetadata<Q>[\"links\"]\n & string;\n\nexport interface PropertyDef<\n T extends WirePropertyTypes,\n N extends \"nullable\" | \"non-nullable\" = \"nullable\",\n M extends \"array\" | \"single\" = \"single\",\n> extends ObjectMetadata.Property {\n type: T;\n multiplicity: M extends \"array\" ? true : false;\n nullable: N extends \"nullable\" ? true : false;\n}\n\nexport type ReleaseStatus =\n | \"ACTIVE\"\n | \"EXPERIMENTAL\"\n | \"DEPRECATED\"\n | \"ENDORSED\";\n\ntype ObjectTypeVisibility = \"NORMAL\" | \"PROMINENT\" | \"HIDDEN\";\n\ntype BlueprintIcon = {\n type: \"blueprint\";\n color: string;\n name: string;\n};\n\ntype Icon = BlueprintIcon;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAdA,WA2FiBA,cAAc","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryDefinition.js","names":[],"sources":["QueryDefinition.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 { OsdkMetadata } from \"../OsdkMetadata.js\";\nimport type { ObjectOrInterfaceDefinition } from \"./ObjectOrInterface.js\";\nimport type { ObjectTypeDefinition } from \"./ObjectTypeDefinition.js\";\n\nexport interface QueryMetadata {\n type: \"query\";\n apiName: string;\n description?: string;\n displayName?: string;\n version: string;\n parameters: Record<string, QueryParameterDefinition<any>>;\n output: QueryDataTypeDefinition;\n rid: string;\n}\n\nexport interface QueryCompileTimeMetadata<T> {\n signature: T;\n}\n\nexport interface QueryDefinition<T = any> {\n type: \"query\";\n apiName: string;\n version?: string;\n isFixedVersion?: boolean;\n osdkMetadata?: OsdkMetadata;\n __DefinitionMetadata?:\n & QueryCompileTimeMetadata<T>\n & QueryMetadata;\n}\n\nexport type QueryParameterDefinition<\n T_Target extends ObjectTypeDefinition = any,\n> = {\n description?: string;\n} & QueryDataTypeDefinition<T_Target>;\n\nexport type QueryDataTypeDefinition<\n T_Target extends ObjectOrInterfaceDefinition = any,\n> =\n | PrimitiveDataType\n | ObjectQueryDataType<T_Target>\n | InterfaceQueryDataType<T_Target>\n | ObjectSetQueryDataType<T_Target>\n | InterfaceObjectSetQueryDataType<T_Target>\n | SetQueryDataType\n | UnionQueryDataType\n | StructQueryDataType\n | TwoDimensionalAggregationDataType\n | ThreeDimensionalAggregationDataType\n | MapDataType\n | ArrayQueryDataType;\n\nexport type BaseQueryDataTypeDefinition<T extends string> = {\n multiplicity?: boolean;\n nullable?: boolean;\n type: T;\n};\n\nexport type WireQueryDataTypes =\n | \"double\"\n | \"float\"\n | \"integer\"\n | \"long\"\n | \"boolean\"\n | \"string\"\n | \"date\"\n | \"timestamp\"\n | \"attachment\";\n\nexport type PrimitiveDataType<\n Q extends WireQueryDataTypes = WireQueryDataTypes,\n> = BaseQueryDataTypeDefinition<Q>;\n\nexport interface ObjectQueryDataType<\n T_Target extends ObjectOrInterfaceDefinition = never,\n> extends BaseQueryDataTypeDefinition<\"object\"> {\n object: string;\n __OsdkTargetType?: T_Target;\n}\n\nexport interface InterfaceQueryDataType<\n T_Target extends ObjectOrInterfaceDefinition = never,\n> extends BaseQueryDataTypeDefinition<\"interface\"> {\n interface: string;\n __OsdkTargetType?: T_Target;\n}\n\nexport interface ObjectSetQueryDataType<\n T_Target extends ObjectOrInterfaceDefinition = never,\n> extends BaseQueryDataTypeDefinition<\"objectSet\"> {\n objectSet: string;\n __OsdkTargetType?: T_Target;\n}\n\nexport interface InterfaceObjectSetQueryDataType<\n T_Target extends ObjectOrInterfaceDefinition = never,\n> extends BaseQueryDataTypeDefinition<\"interfaceObjectSet\"> {\n objectSet: string;\n __OsdkTargetType?: T_Target;\n}\n\nexport interface SetQueryDataType extends BaseQueryDataTypeDefinition<\"set\"> {\n set: QueryDataTypeDefinition;\n}\n\nexport interface ArrayQueryDataType\n extends BaseQueryDataTypeDefinition<\"array\">\n{\n array: QueryDataTypeDefinition;\n multiplicity
|
|
1
|
+
{"version":3,"file":"QueryDefinition.js","names":[],"sources":["QueryDefinition.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 { OsdkMetadata } from \"../OsdkMetadata.js\";\nimport type { ObjectOrInterfaceDefinition } from \"./ObjectOrInterface.js\";\nimport type { ObjectTypeDefinition } from \"./ObjectTypeDefinition.js\";\n\nexport interface QueryMetadata {\n type: \"query\";\n apiName: string;\n description?: string;\n displayName?: string;\n version: string;\n parameters: Record<string, QueryParameterDefinition<any>>;\n output: QueryDataTypeDefinition;\n rid: string;\n}\n\nexport interface QueryCompileTimeMetadata<T> {\n signature: T;\n}\n\nexport interface QueryDefinition<T = any> {\n type: \"query\";\n apiName: string;\n version?: string;\n isFixedVersion?: boolean;\n osdkMetadata?: OsdkMetadata;\n __DefinitionMetadata?:\n & QueryCompileTimeMetadata<T>\n & QueryMetadata;\n}\n\nexport type QueryParameterDefinition<\n T_Target extends ObjectTypeDefinition = any,\n> = {\n description?: string;\n} & QueryDataTypeDefinition<T_Target>;\n\nexport type QueryDataTypeDefinition<\n T_Target extends ObjectOrInterfaceDefinition = any,\n> =\n | PrimitiveDataType\n | ObjectQueryDataType<T_Target>\n | InterfaceQueryDataType<T_Target>\n | ObjectSetQueryDataType<T_Target>\n | InterfaceObjectSetQueryDataType<T_Target>\n | SetQueryDataType\n | UnionQueryDataType\n | StructQueryDataType\n | TwoDimensionalAggregationDataType\n | ThreeDimensionalAggregationDataType\n | MapDataType\n | ArrayQueryDataType;\n\nexport type BaseQueryDataTypeDefinition<T extends string> = {\n /** @deprecated use T[\"type\"] extends \"array\" instead */\n multiplicity?: boolean;\n nullable?: boolean;\n type: T;\n};\n\nexport type WireQueryDataTypes =\n | \"double\"\n | \"float\"\n | \"integer\"\n | \"long\"\n | \"boolean\"\n | \"string\"\n | \"date\"\n | \"timestamp\"\n | \"attachment\";\n\nexport type PrimitiveDataType<\n Q extends WireQueryDataTypes = WireQueryDataTypes,\n> = BaseQueryDataTypeDefinition<Q>;\n\nexport interface ObjectQueryDataType<\n T_Target extends ObjectOrInterfaceDefinition = never,\n> extends BaseQueryDataTypeDefinition<\"object\"> {\n object: string;\n __OsdkTargetType?: T_Target;\n}\n\nexport interface InterfaceQueryDataType<\n T_Target extends ObjectOrInterfaceDefinition = never,\n> extends BaseQueryDataTypeDefinition<\"interface\"> {\n interface: string;\n __OsdkTargetType?: T_Target;\n}\n\nexport interface ObjectSetQueryDataType<\n T_Target extends ObjectOrInterfaceDefinition = never,\n> extends BaseQueryDataTypeDefinition<\"objectSet\"> {\n objectSet: string;\n __OsdkTargetType?: T_Target;\n}\n\nexport interface InterfaceObjectSetQueryDataType<\n T_Target extends ObjectOrInterfaceDefinition = never,\n> extends BaseQueryDataTypeDefinition<\"interfaceObjectSet\"> {\n objectSet: string;\n __OsdkTargetType?: T_Target;\n}\n\nexport interface SetQueryDataType extends BaseQueryDataTypeDefinition<\"set\"> {\n set: QueryDataTypeDefinition;\n}\n\nexport interface ArrayQueryDataType\n extends BaseQueryDataTypeDefinition<\"array\">\n{\n array: QueryDataTypeDefinition;\n /** @deprecated use T[\"type\"] extends \"array\" instead */\n multiplicity?: true;\n}\nexport interface UnionQueryDataType\n extends BaseQueryDataTypeDefinition<\"union\">\n{\n union: ReadonlyArray<QueryDataTypeDefinition>;\n}\n\nexport interface StructQueryDataType\n extends BaseQueryDataTypeDefinition<\"struct\">\n{\n struct: Record<string, QueryDataTypeDefinition>;\n}\n\nexport interface TwoDimensionalAggregationDataType\n extends BaseQueryDataTypeDefinition<\"twoDimensionalAggregation\">\n{\n twoDimensionalAggregation: TwoDimensionalQueryAggregationDefinition;\n}\n\nexport interface ThreeDimensionalAggregationDataType\n extends BaseQueryDataTypeDefinition<\"threeDimensionalAggregation\">\n{\n threeDimensionalAggregation: ThreeDimensionalQueryAggregationDefinition;\n}\n\nexport interface MapDataType extends BaseQueryDataTypeDefinition<\"map\"> {\n keyType: QueryDataTypeDefinition;\n valueType: QueryDataTypeDefinition;\n}\n\nexport type AggregationKeyDataType<V = any> =\n | SimpleAggregationKeyDataType<V>\n | RangeAggregationKeyDataType<V>;\n\nexport interface SimpleAggregationKeyDataType<V = any> {\n keyType: Exclude<AggregationKeyTypes, \"range\">;\n valueType: V;\n}\nexport interface RangeAggregationKeyDataType<V = any> {\n keyType: \"range\";\n keySubtype: AggregationRangeKeyTypes;\n valueType: V;\n}\n\nexport type TwoDimensionalQueryAggregationDefinition = AggregationKeyDataType<\n AggregationValueTypes\n>;\n\nexport type ThreeDimensionalQueryAggregationDefinition = AggregationKeyDataType<\n TwoDimensionalQueryAggregationDefinition\n>;\n\nexport type AggregationKeyTypes =\n | \"boolean\"\n | \"string\"\n | \"date\"\n | \"double\"\n | \"integer\"\n | \"timestamp\"\n | \"range\";\n\nexport type AggregationRangeKeyTypes =\n | \"date\"\n | \"double\"\n | \"integer\"\n | \"timestamp\";\n\nexport type AggregationValueTypes = \"date\" | \"double\" | \"timestamp\";\n"],"mappings":"","ignoreList":[]}
|
|
@@ -95,10 +95,6 @@ export declare namespace Osdk {
|
|
|
95
95
|
ObjectMetadata: ObjectMetadata
|
|
96
96
|
InterfaceMetadata: InterfaceMetadata
|
|
97
97
|
}
|
|
98
|
-
readonly $__EXPERIMENTAL__NOT_SUPPORTED_YET__getFormattedValue: <PropertyApiName extends PropertyKeys<Q>>(propertyApiName: PropertyApiName, options?: {
|
|
99
|
-
locale?: string
|
|
100
|
-
timezoneId?: string
|
|
101
|
-
}) => string | undefined
|
|
102
98
|
} & (IsNever<OPTIONS> extends true ? {} : IsAny<OPTIONS> extends true ? {} : "$rid" extends OPTIONS ? {
|
|
103
99
|
readonly $rid: string
|
|
104
100
|
} : {});
|
|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atedObject?:\n | Osdk.Instance<Q, any, NEW_PROPS>\n | {\n [K in NEW_PROPS]?: CompileTimeMetadata<\n Q\n >[\"props\"][K];\n }"],"sources":["../../src/OsdkObjectFrom.ts"],"version":3,"file":"OsdkObjectFrom.d.ts"}
|
|
@@ -36,7 +36,7 @@ export declare namespace DerivedProperty {
|
|
|
36
36
|
export interface Builder<
|
|
37
37
|
Q extends ObjectOrInterfaceDefinition,
|
|
38
38
|
CONSTRAINED extends boolean
|
|
39
|
-
> extends BaseBuilder<Q, CONSTRAINED>, Selectable<Q
|
|
39
|
+
> extends BaseBuilder<Q, CONSTRAINED>, Selectable<Q> {}
|
|
40
40
|
export interface AggregateBuilder<
|
|
41
41
|
Q extends ObjectOrInterfaceDefinition,
|
|
42
42
|
CONSTRAINED extends boolean
|
|
@@ -64,15 +64,6 @@ type Pivotable<
|
|
|
64
64
|
> = {
|
|
65
65
|
readonly pivotTo: <L extends LinkNames<Q>>(type: L) => CONSTRAINED extends true ? DerivedProperty.AggregateBuilder<LinkedType<Q, L>, true> : NonNullable<CompileTimeMetadata<Q>["links"][L]["multiplicity"]> extends true ? DerivedProperty.AggregateBuilder<LinkedType<Q, L>, true> : DerivedProperty.SelectPropertyBuilder<LinkedType<Q, L>, false>
|
|
66
66
|
};
|
|
67
|
-
type Constant<Q extends ObjectOrInterfaceDefinition> = {
|
|
68
|
-
readonly constant: {
|
|
69
|
-
readonly double: (value: number) => DerivedProperty.NumericPropertyDefinition<SimplePropertyDef.Make<"double", "non-nullable", "single">, Q>
|
|
70
|
-
readonly integer: (value: number) => DerivedProperty.NumericPropertyDefinition<SimplePropertyDef.Make<"integer", "non-nullable", "single">, Q>
|
|
71
|
-
readonly long: (value: string) => DerivedProperty.NumericPropertyDefinition<SimplePropertyDef.Make<"long", "non-nullable", "single">, Q>
|
|
72
|
-
readonly datetime: (value: string) => DerivedProperty.DatetimePropertyDefinition<SimplePropertyDef.Make<"datetime", "non-nullable", "single">, Q>
|
|
73
|
-
readonly timestamp: (value: string) => DerivedProperty.DatetimePropertyDefinition<SimplePropertyDef.Make<"timestamp", "non-nullable", "single">, Q>
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
67
|
type Aggregatable<Q extends ObjectOrInterfaceDefinition> = {
|
|
77
68
|
readonly aggregate: <V extends ValidAggregationKeys<Q, "withPropertiesAggregate">>(aggregationSpecifier: V, opts?: V extends `${any}:${infer P}` ? P extends CollectWithPropAggregations ? {
|
|
78
69
|
limit: number
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,4BAA4B,kCAAmC;AAC7E,cAAc,mBAAmB,6BAA8B;AAC/D,cACE,6BACA,oBACK,kCAAmC;AAC1C,cAAc,2BAA2B,qCAAsC;AAC/E,cAAc,yBAAyB,kCAAmC;AAC1E,cAAc,YAAY,iBAAiB,sBAAuB;AAClE,cACE,qBACA,mBACA,0BACK,kBAAmB;AAC1B,cACE,6BACA,qCACK,uCAAwC;AAE/C,cAAcA;AAEd,yBAAiB;AACf,kBAAiB;EACf,UAAU;EACV,UAAU;GACV;YACU,iCAAiC;CAC5C;AAED,kBAAiB;EACf,UAAU;EACV,UAAU;WACF,WAAW,GAAG,IAAI,mBAAmB,GAAG,GAAG,CAAE;AAEvD,kBAAiB;EACf,UAAU;EACV,UAAU;WACF,WAAW,GAAG,IAAI,oBAAoB,GAAG,GAAG,CAAE;AAExD,aAAY;EACV,UAAU;EACV,UAAU;MAEVC,eAAe,QAAQ,GAAG,WAExB,WAAW,GAAG,KACd,0BAA0B,GAAG,KAC7B,2BAA2B,GAAG;AAElC,aAAY,OACV,UAAU,+BACR;iBACa,QAAQ,GAAG;CAC3B;WAES;EACR,UAAU;EACV;WACQ,WAAW,GAAG,cAAc,UAAU,GAAG,aAAa,CAC/D;AAED,kBAAiB;EACf,UAAU;EACV;WACQ,YAAY,GAAG,cAAc,WAAW,
|
|
1
|
+
{"mappings":"AAgBA,cAAc,4BAA4B,kCAAmC;AAC7E,cAAc,mBAAmB,6B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WAAW,GAAG,IAAI,QACnD,YAAY,oBAAoB,GAAG,SAAS,GAAG,yBAC/C,OAAO,gBAAgB,iBAAiB,WAAW,GAAG,IAAI,QAC1D,gBAAgB,sBAAsB,WAAW,GAAG,IAAI;AAC7D;KAEI,aACH,UAAU,+BACR;UACO,YACP,UAAU,qBACR,GACA,4BAGFC,sBAAsB,GACtBC,OAAO,0BAA0B,MAC7B,UAAU,8BAA8B;EAAE;CAAe,IACzD,UAAU,0BAA0B;EAAE;CAAoB,sBAG3D,kBACH,GACA,mBAAmB,WAAW,MAC1B,UAAU,8BAA8B,kBAAkB,KACxD,oBAAoB,GAAG,cAAc,GAAG,SACxC,YACA,WAEF,UAAU,gCAAgC,kBAAkB,KAC1D,oBAAoB,GAAG,cAAc,GAAG,SACxC,YACA,YAEF,UAAU,wBAAwB,kBAChC,kBAAkB,KAClB,WACA,gBACA,YAEF,kBAAkB,KAClB,UACA,YACA,YAEA,UAAU,WAAW,kBAAkB,KACrC,WACA,gBACA;AAIT;KAEI,WAAW,UAAU,+BAA+B;UAC9C,iBAAiB,UAAU,aAAa,IAC/CC,cAAc,MACX,kBACH,GACA,kBAAkB,KAChB,oBAAoB,GAAG,cAAc,GAAG,SACxC,oBAAoB,GAAG,cAAc,GAAG,oBAAoB,OACxD,aACA,gBACJ,oBAAoB,GAAG,cAAc,GAAG,wBAAwB,OAC5D,UACA;AAGT","names":["DerivedPropertyDefinitionBrand: unique symbol","baseObjectSet: Builder<Q, false>","clause: WhereClause<Q>","type: L","aggregationSpecifier: V","opts?: V extends `${any}:${infer P}`\n ? P extends CollectWithPropAggregations ? { limit: number }\n : P extends \"approximatePercentile\" ? { percentile: number }\n : never\n : never","propertyName: R"],"sources":["../../../src/derivedProperties/DerivedProperty.ts"],"version":3,"file":"DerivedProperty.d.ts"}
|
package/build/types/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export type { ActionReturnTypeForOptions } from "./actions/ActionReturnTypeForOptions.js";
|
|
2
2
|
export type { ActionEditResponse, ActionParam, ActionValidationResponse, ApplyActionOptions, ApplyBatchActionOptions } from "./actions/Actions.js";
|
|
3
|
-
export { NULL_VALUE } from "./actions/NullValue.js";
|
|
4
3
|
export type { ValidAggregationKeys } from "./aggregate/AggregatableKeys.js";
|
|
5
4
|
export type { AggregateOpts } from "./aggregate/AggregateOpts.js";
|
|
6
5
|
export type { AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy } from "./aggregate/AggregateOptsThatErrors.js";
|
|
@@ -37,12 +36,6 @@ export type { OntologyMetadata } from "./ontology/OntologyMetadata.js";
|
|
|
37
36
|
export type { PrimaryKeyTypes } from "./ontology/PrimaryKeyTypes.js";
|
|
38
37
|
export type { InterfaceQueryDataType, ObjectQueryDataType, ObjectSetQueryDataType, QueryDataTypeDefinition, QueryDefinition, QueryMetadata, QueryParameterDefinition, ThreeDimensionalQueryAggregationDefinition, TwoDimensionalQueryAggregationDefinition } from "./ontology/QueryDefinition.js";
|
|
39
38
|
export type { SimplePropertyDef } from "./ontology/SimplePropertyDef.js";
|
|
40
|
-
export type { PropertyBooleanFormattingRule } from "./ontology/valueFormatting/PropertyBooleanFormattingRule.js";
|
|
41
|
-
export type { DatetimeFormat, DatetimeLocalizedFormat, DatetimeLocalizedFormatType, DatetimeStringFormat, DatetimeTimezone, DatetimeTimezoneStatic, DatetimeTimezoneUser, PropertyDateFormattingRule, PropertyTimestampFormattingRule } from "./ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.js";
|
|
42
|
-
export type { KnownType, PropertyKnownTypeFormattingRule } from "./ontology/valueFormatting/PropertyKnownTypeFormattingRule.js";
|
|
43
|
-
export type { Affix, DurationBaseValue, DurationFormatStyle, DurationPrecision, HumanReadableFormat, NumberFormatAffix, NumberFormatCurrency, NumberFormatCurrencyStyle, NumberFormatCustomUnit, NumberFormatDuration, NumberFormatFixedValues, NumberFormatNotation, NumberFormatOptions, NumberFormatRatio, NumberFormatScale, NumberFormatStandard, NumberFormatStandardUnit, NumberRatioType, NumberRoundingMode, NumberScaleType, PropertyNumberFormattingRule, PropertyNumberFormattingRuleType, TimeCodeFormat } from "./ontology/valueFormatting/PropertyNumberFormattingRule.js";
|
|
44
|
-
export type { PropertyValueFormattingRule } from "./ontology/valueFormatting/PropertyValueFormattingRule.js";
|
|
45
|
-
export type { PropertyTypeReference, PropertyTypeReferenceOrStringConstant, StringConstant } from "./ontology/valueFormatting/PropertyValueFormattingUtils.js";
|
|
46
39
|
export type { BaseWirePropertyTypes, WirePropertyTypes } from "./ontology/WirePropertyTypes.js";
|
|
47
40
|
export type { ObjectIdentifiers, OsdkBase, PrimaryKeyType } from "./OsdkBase.js";
|
|
48
41
|
export type { OsdkObject } from "./OsdkObject.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,kCAAkC;AAChD,cACE,oBACA,aACA,0BACA,oBACA,+BACK;AACP,
|
|
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,SAAS,2BAA2B;AACpC,cACE,gBACA,sBACA,kBACA,gBACA,eACA,4BACA,mBACK;AACP,cACE,8BACA,8BACK;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,cACE,iCACK;AACP,cAAc,YAAY,wBAAwB;AAClD,cACE,eACA,SACA,UACA,eACA,sBACA,eACA,WACA,uBACK;AACP,cACE,iBACA,wBACK;AACP,cACE,OACA,eACA,gBACA,mBACK;AACP,SAAS,YAAY;AACrB,cAAc,cAAc;AAC5B,cAAc,qBAAqB;AACnC,cAAc,iBAAiB;AAC/B,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,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"}
|
|
@@ -309,7 +309,7 @@ interface Subscribe<Q extends ObjectOrInterfaceDefinition> {
|
|
|
309
309
|
unsubscribe: () => void
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
|
-
interface
|
|
312
|
+
interface NarrowToType<Q extends ObjectOrInterfaceDefinition> {
|
|
313
313
|
/**
|
|
314
314
|
* Casts the object set to the specified object type or interface type.
|
|
315
315
|
* Any downstream object set operations (e.g. where, fetchPage, aggregate) will be
|
|
@@ -318,7 +318,7 @@ interface AsType<Q extends ObjectOrInterfaceDefinition> {
|
|
|
318
318
|
* @param type - The object type you want to cast to.
|
|
319
319
|
* @returns an object set of the specified type.
|
|
320
320
|
*/
|
|
321
|
-
readonly
|
|
321
|
+
readonly narrowToType: <CONVERT_TO extends RestrictToImplementingObjectTypes<Q>>(type: CONVERT_TO) => ObjectSet<CONVERT_TO>;
|
|
322
322
|
}
|
|
323
323
|
type RestrictToImplementingObjectTypes<T extends ObjectOrInterfaceDefinition> = T extends ObjectTypeDefinition ? ExtractImplementedInterfaces<T> : T extends InterfaceDefinition ? ExtractImplementingTypes<T> : never;
|
|
324
324
|
type ExtractImplementedInterfaces<T extends ObjectTypeDefinition> = CompileTimeMetadata<T> extends {
|
|
@@ -336,5 +336,5 @@ interface ObjectSetCleanedTypes<
|
|
|
336
336
|
D extends Record<string, SimplePropertyDef>,
|
|
337
337
|
MERGED extends ObjectOrInterfaceDefinition & Q,
|
|
338
338
|
ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<PropertyKeys<Q>> = {}
|
|
339
|
-
> extends MinimalObjectSet<Q, D, ORDER_BY_OPTIONS>, WithProperties<Q, D>, Aggregate<MERGED>, SetArithmetic<MERGED>, PivotTo<Q>, FetchOne<Q, D>, Subscribe<MERGED>, NearestNeighbors<Q>,
|
|
339
|
+
> extends MinimalObjectSet<Q, D, ORDER_BY_OPTIONS>, WithProperties<Q, D>, Aggregate<MERGED>, SetArithmetic<MERGED>, PivotTo<Q>, FetchOne<Q, D>, Subscribe<MERGED>, NearestNeighbors<Q>, NarrowToType<Q> {}
|
|
340
340
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,qBAAqB,+BAAgC;AACnE,cAAc,sEAAsE,yCAA0C;AAC9H,cAAc,2BAA2B,qCAAsC;AAC/E,cAAc,mBAAmB,6BAA8B;AAC/D,cAAc,uBAAuB,yCAA0C;AAC/E,cACE,eACA,UACA,eACA,sBACA,eACA,iBACK,4BAA6B;AACpC,cAAc,cAAc,qBAAsB;AAClD,cAAc,2BAA2B,oCAAqC;AAC9E,cACE,oCACA,6BACA,oBACK,kCAAmC;AAC1C,cACE,qBACA,4BACK,qCAAsC;AAC7C,cAAc,yBAAyB,kCAAmC;AAC1E,cAAc,sBAAsB,gBAAiB;AACrD,cACE,4BACA,gBACA,kBACA,YACA,YACK,sBAAuB;AAC9B,cAAc,kBAAkB,kBAAmB;AACnD,cAAc,YAAY,iBAAiB,sBAAuB;AAClE,cAA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,GAAG,OACrC;EAAE;CAAyB;AACjC;UAES,aAAa,UAAU,6BAA6B;;;;;;;;;UASnD,eACP,mBAAmB,kCAAkC,IAErDC,MAAM,eACH,UAAU;AAChB;KAEI,kCAAkC,UAAU,+BAC/C,UAAU,uBAAuB,6BAA6B,KAC1D,UAAU,sBAAsB,yBAAyB;KAG1D,6BAA6B,UAAU,wBAC1C,oBAAoB,WAAW;CAAE,YAAY,oBAAoB;AAAW,IACxE,0BAA0B,sBAAsB;CAAE,SAAS;AAAU;KAItE,yBAAyB,UAAU,uBACtC,oBAAoB,WAClB;CAAE,eAAe,oBAAoB;AAA0B,KAC5D,uBAAuB;CAAE,SAAS;AAAU,KAAI,sBACjD;UAEI;CACR,UAAU;CACV,UAAU,eAAe;CACzB,eAAe,8BAA8B;CAC7C,yBAAyB,cAAc,eAAe,aAAa,MAAM,CAAE;UAE3E,iBAAiB,GAAG,GAAG,mBACvB,eAAe,GAAG,IAClB,UAAU,SACV,cAAc,SACd,QAAQ,IACR,SAAS,GAAG,IACZ,UAAU,SACV,iBAAiB,IACjB,aAAa,GACf,CACC","names":["args?: FetchPageArgs<Q, L, R, A, S, T, never, ORDER_BY_OPTIONS>","query: string | number[]","numNeighbors: number","property: PropertyKeys.Filtered<Q, \"vector\">","clause: WhereClause<MergeObjectSet<Q, RDPs>>","args?: X","args?: AsyncIterArgs<Q, L, R, A, S, T, never, ORDER_BY_OPTIONS>","clause: { [K in keyof NEW]: DerivedProperty.Creator<Q, NEW[K]> }","req: AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy<Q, AO>","type: L","primaryKey: PrimaryKeyType<Q>","options?: SelectArg<Q, L, R, S>","listener: ObjectSetSubscription.Listener<Q, P>","opts?: ObjectSetSubscription.Options<Q, P>","type: CONVERT_TO"],"sources":["../../../src/objectSet/ObjectSet.ts"],"version":3,"file":"ObjectSet.d.ts"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { OsdkMetadata } from "../OsdkMetadata.js";
|
|
2
2
|
import type { ObjectOrInterfaceDefinition, PropertyKeys } from "./ObjectOrInterface.js";
|
|
3
3
|
import type { PrimaryKeyTypes } from "./PrimaryKeyTypes.js";
|
|
4
|
-
import type { PropertyValueFormattingRule } from "./valueFormatting/PropertyValueFormattingRule.js";
|
|
5
4
|
import type { VersionString } from "./VersionString.js";
|
|
6
5
|
import type { WirePropertyTypes } from "./WirePropertyTypes.js";
|
|
7
6
|
export type CompileTimeMetadata<T extends {
|
|
@@ -57,7 +56,6 @@ export declare namespace ObjectMetadata {
|
|
|
57
56
|
multiplicity?: boolean;
|
|
58
57
|
nullable?: boolean;
|
|
59
58
|
valueTypeApiName?: string;
|
|
60
|
-
valueFormatting?: PropertyValueFormattingRule;
|
|
61
59
|
}
|
|
62
60
|
interface Link<
|
|
63
61
|
Q extends ObjectTypeDefinition,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,oBAAoB,oBAAqB;AACvD,cACE,6BACA,oBACK,wBAAyB;AAChC,cAAc,uBAAuB,sBAAuB;AAC5D,cAAc,
|
|
1
|
+
{"mappings":"AAgBA,cAAc,oBAAoB,oBAAqB;AACvD,cACE,6BACA,oBACK,wBAAyB;AAChC,cAAc,uBAAuB,sBAAuB;AAC5D,cAAc,qBAAqB,oBAAqB;AACxD,cAAc,yBAAyB,wBAAyB;AAEhE,YAAY,oBAAoB,UAAU;CAAE,uBAAuB,CAAE;AAAE,KACrE,YACE,EAAE;AAGN,YAAY;CACV,UAAU;CACV,UAAU,aAAa;IACrB,oBAAoB,GAAG,cAAc;AAEzC,YAAY,8BAA8B;CACxC,MAAM,WAAW;CACjB;CACA;CACA;CACA,YAAY,YAAY,eAAe;CACvC;;;;;;CAMA,aAAa;AACd;AAED,iBAAiB,iCAAiC;CAChD,MAAM,WAAW;CACjB;CACA;CACA;CACA;AACD;AAED,iBAAiB,aAAa,UAAU,8BAA8B;CACpE,0BAA0B;AAC3B;AAED,iBAAiB,uBAAuB,4BAA4B;CAClE,MAAM;CACN,8BAA8B;CAC9B,0BAA0B;CAC1B,OAAO,eAEL,eAAe;CAEjB,gBAAgB;CAChB,MAAM;CACN,YAAY;CACZ;CACA,QAAQ;CACR,cAAc,eAEZ;CAKF,qBAAqB,eAEnB;AAKH;AAED,yBAAiB;WACE,SAAS;EACxB;EACA;EACA;EACA,MAAM;EACN;EACA;EACA;CACD;WAEgB;EACf,UAAU;EACV;GACA;EACA,uBAAuB;EACvB,YAAY,EAAE;EACd,cAAc;CACf;;AAGH,iBAAiB,qBAAqB;CACpC,MAAM;CACN;CACA,eAAe;CACf,uBACI,iBACA;AACL;AAED,YAAY,wBACV,UAAU,qCAEF,oBAAoB,GAAG;AAGjC,iBAAiB;CACf,UAAU;CACV,UAAU,aAAa,iBAAiB;CACxC,UAAU,UAAU,WAAW;UACvB,eAAe,SAAS;CAChC,MAAM;CACN,cAAc,UAAU,UAAU,OAAO;CACzC,UAAU,UAAU,aAAa,OAAO;AACzC;AAED,YAAY,gBACR,WACA,iBACA,eACA;KAEC,uBAAuB,WAAW,cAAc;KAEhD,gBAAgB;CACnB,MAAM;CACN;CACA;AACD;KAEI,OAAO","names":[],"sources":["../../../src/ontology/ObjectTypeDefinition.ts"],"version":3,"file":"ObjectTypeDefinition.d.ts"}
|
|
@@ -27,6 +27,7 @@ export type QueryParameterDefinition<T_Target extends ObjectTypeDefinition = any
|
|
|
27
27
|
} & QueryDataTypeDefinition<T_Target>;
|
|
28
28
|
export type QueryDataTypeDefinition<T_Target extends ObjectOrInterfaceDefinition = any> = PrimitiveDataType | ObjectQueryDataType<T_Target> | InterfaceQueryDataType<T_Target> | ObjectSetQueryDataType<T_Target> | InterfaceObjectSetQueryDataType<T_Target> | SetQueryDataType | UnionQueryDataType | StructQueryDataType | TwoDimensionalAggregationDataType | ThreeDimensionalAggregationDataType | MapDataType | ArrayQueryDataType;
|
|
29
29
|
export type BaseQueryDataTypeDefinition<T extends string> = {
|
|
30
|
+
/** @deprecated use T["type"] extends "array" instead */
|
|
30
31
|
multiplicity?: boolean
|
|
31
32
|
nullable?: boolean
|
|
32
33
|
type: T
|
|
@@ -54,7 +55,8 @@ export interface SetQueryDataType extends BaseQueryDataTypeDefinition<"set"> {
|
|
|
54
55
|
}
|
|
55
56
|
export interface ArrayQueryDataType extends BaseQueryDataTypeDefinition<"array"> {
|
|
56
57
|
array: QueryDataTypeDefinition;
|
|
57
|
-
|
|
58
|
+
/** @deprecated use T["type"] extends "array" instead */
|
|
59
|
+
multiplicity?: true;
|
|
58
60
|
}
|
|
59
61
|
export interface UnionQueryDataType extends BaseQueryDataTypeDefinition<"union"> {
|
|
60
62
|
union: ReadonlyArray<QueryDataTypeDefinition>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,oBAAoB,oBAAqB;AACvD,cAAc,mCAAmC,wBAAyB;AAC1E,cAAc,4BAA4B,2BAA4B;AAEtE,iBAAiB,cAAc;CAC7B,MAAM;CACN;CACA;CACA;CACA;CACA,YAAY,eAAe;CAC3B,QAAQ;CACR;AACD;AAED,iBAAiB,yBAAyB,GAAG;CAC3C,WAAW;AACZ;AAED,iBAAiB,gBAAgB,SAAS;CACxC,MAAM;CACN;CACA;CACA;CACA,eAAe;CACf,uBACI,yBAAyB,KACzB;AACL;AAED,YAAY,yBACV,iBAAiB,8BACf;CACF;AACD,IAAG,wBAAwB;AAE5B,YAAY,wBACV,iBAAiB,qCAEf,oBACA,oBAAoB,YACpB,uBAAuB,YACvB,uBAAuB,YACvB,gCAAgC,YAChC,mBACA,qBACA,sBACA,oCACA,sCACA,cACA;AAEJ,YAAY,4BAA4B,oBAAoB;
|
|
1
|
+
{"mappings":"AAgBA,cAAc,oBAAoB,oBAAqB;AACvD,cAAc,mCAAmC,wBAAyB;AAC1E,cAAc,4BAA4B,2BAA4B;AAEtE,iBAAiB,cAAc;CAC7B,MAAM;CACN;CACA;CACA;CACA;CACA,YAAY,eAAe;CAC3B,QAAQ;CACR;AACD;AAED,iBA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AC7B,4BAA4B;AAEhC,iBAAiB,6BAA6B,SAAS;CACrD,SAAS,QAAQ,qBAAqB;CACtC,WAAW;AACZ;AACD,iBAAiB,4BAA4B,SAAS;CACpD,SAAS;CACT,YAAY;CACZ,WAAW;AACZ;AAED,YAAY,2CAA2C,uBACrD;AAGF,YAAY,6CAA6C,uBACvD;AAGF,YAAY,sBACR,YACA,WACA,SACA,WACA,YACA,cACA;AAEJ,YAAY,2BACR,SACA,WACA,YACA;AAEJ,YAAY,wBAAwB,SAAS,WAAW","names":[],"sources":["../../../src/ontology/QueryDefinition.ts"],"version":3,"file":"QueryDefinition.d.ts"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyBooleanFormattingRule.js","names":[],"sources":["PropertyBooleanFormattingRule.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface PropertyBooleanFormattingRule {\n type: \"boolean\";\n valueIfTrue: string;\n valueIfFalse: string;\n}\n"],"mappings":"","ignoreList":[]}
|
package/build/browser/ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyDateAndTimestampFormattingRule.js","names":[],"sources":["PropertyDateAndTimestampFormattingRule.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { PropertyTypeReferenceOrStringConstant } from \"./PropertyValueFormattingUtils.js\";\n\nexport interface PropertyDateFormattingRule {\n type: \"date\";\n format: DatetimeFormat;\n}\n\nexport interface PropertyTimestampFormattingRule {\n type: \"timestamp\";\n format: DatetimeFormat;\n displayTimezone: DatetimeTimezone;\n}\n\nexport type DatetimeFormat = DatetimeStringFormat | DatetimeLocalizedFormat;\n\n/**\n * A custom date format pattern.\n */\nexport interface DatetimeStringFormat {\n type: \"stringFormat\";\n pattern: string;\n}\n\n/**\n * Predefined localized date/time formats.\n */\nexport interface DatetimeLocalizedFormat {\n type: \"localizedFormat\";\n format: DatetimeLocalizedFormatType;\n}\n\nexport type DatetimeLocalizedFormatType =\n | \"DATE_FORMAT_RELATIVE_TO_NOW\"\n | \"DATE_FORMAT_DATE\"\n | \"DATE_FORMAT_YEAR_AND_MONTH\"\n | \"DATE_FORMAT_DATE_TIME\"\n | \"DATE_FORMAT_DATE_TIME_SHORT\"\n | \"DATE_FORMAT_TIME\"\n | \"DATE_FORMAT_ISO_INSTANT\";\n\nexport type DatetimeTimezone = DatetimeTimezoneStatic | DatetimeTimezoneUser;\n\nexport interface DatetimeTimezoneStatic {\n type: \"static\";\n zoneId: PropertyTypeReferenceOrStringConstant;\n}\n\n/**\n * Use the user's local timezone.\n */\nexport interface DatetimeTimezoneUser {\n type: \"user\";\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyKnownTypeFormattingRule.js","names":[],"sources":["PropertyKnownTypeFormattingRule.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface PropertyKnownTypeFormattingRule {\n type: \"knownType\";\n knownType: KnownType;\n}\n\n/**\n * Known Foundry types with specialized formatting.\n */\nexport type KnownType = \"USER_OR_GROUP_ID\" | \"RESOURCE_RID\" | \"ARTIFACT_GID\";\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyNumberFormattingRule.js","names":[],"sources":["PropertyNumberFormattingRule.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { PropertyTypeReferenceOrStringConstant } from \"./PropertyValueFormattingUtils.js\";\n\nexport interface PropertyNumberFormattingRule {\n type: \"number\";\n numberType: PropertyNumberFormattingRuleType;\n}\n\nexport type PropertyNumberFormattingRuleType =\n | NumberFormatStandard\n | NumberFormatFixedValues\n | NumberFormatCurrency\n | NumberFormatStandardUnit\n | NumberFormatCustomUnit\n | NumberFormatAffix\n | NumberFormatDuration\n | NumberFormatScale\n | NumberFormatRatio;\n\n/**\n * Base number formatting options.\n */\nexport interface NumberFormatOptions {\n useGrouping?: boolean;\n convertNegativeToParenthesis?: boolean;\n minimumIntegerDigits?: number;\n minimumFractionDigits?: number;\n maximumFractionDigits?: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\n notation?: NumberFormatNotation;\n roundingMode?: NumberRoundingMode;\n}\n\n/**\n * Number notation style.\n */\nexport type NumberFormatNotation =\n | \"STANDARD\"\n | \"SCIENTIFIC\"\n | \"ENGINEERING\"\n | \"COMPACT\";\n\n/**\n * Number rounding behavior.\n */\nexport type NumberRoundingMode = \"CEIL\" | \"FLOOR\" | \"ROUND_CLOSEST\";\n\n/**\n * Standard number formatting with configurable options.\n */\nexport interface NumberFormatStandard {\n type: \"standard\";\n baseFormatOptions: NumberFormatOptions;\n}\n\n/**\n * Map integer values to custom strings.\n */\nexport interface NumberFormatFixedValues {\n type: \"fixedValues\";\n values: Record<number, string>;\n}\n\n/**\n * Format numbers as currency values.\n */\nexport interface NumberFormatCurrency {\n type: \"currency\";\n baseFormatOptions: NumberFormatOptions;\n style: NumberFormatCurrencyStyle;\n currencyCode: PropertyTypeReferenceOrStringConstant;\n}\n\nexport type NumberFormatCurrencyStyle = \"STANDARD\" | \"COMPACT\";\n\n/**\n * Format numbers with standard units supported by Intl.NumberFormat.\n */\nexport interface NumberFormatStandardUnit {\n type: \"standardUnit\";\n baseFormatOptions: NumberFormatOptions;\n unit: PropertyTypeReferenceOrStringConstant;\n}\n\n/**\n * Format numbers with custom units.\n */\nexport interface NumberFormatCustomUnit {\n type: \"customUnit\";\n baseFormatOptions: NumberFormatOptions;\n unit: PropertyTypeReferenceOrStringConstant;\n}\n\n/**\n * Attach text before and/or after the formatted number.\n */\nexport interface NumberFormatAffix {\n type: \"affix\";\n baseFormatOptions: NumberFormatOptions;\n affix: Affix;\n}\n\nexport interface Affix {\n prefix?: PropertyTypeReferenceOrStringConstant;\n postfix?: PropertyTypeReferenceOrStringConstant;\n}\n\n/**\n * Format numeric values representing time durations.\n */\nexport interface NumberFormatDuration {\n type: \"duration\";\n formatStyle: DurationFormatStyle;\n precision?: DurationPrecision;\n baseValue: DurationBaseValue;\n}\n\nexport type DurationFormatStyle = HumanReadableFormat | TimeCodeFormat;\n\nexport interface HumanReadableFormat {\n type: \"humanReadable\";\n showFullUnits?: boolean;\n}\n\nexport interface TimeCodeFormat {\n type: \"timecode\";\n}\n\nexport type DurationPrecision =\n | \"DAYS\"\n | \"HOURS\"\n | \"MINUTES\"\n | \"SECONDS\"\n | \"AUTO\";\nexport type DurationBaseValue = \"SECONDS\" | \"MILLISECONDS\";\n\n/**\n * Scale numeric values by the specified factor.\n */\nexport interface NumberFormatScale {\n type: \"scale\";\n scaleType: NumberScaleType;\n baseFormatOptions: NumberFormatOptions;\n}\n\nexport type NumberScaleType = \"THOUSANDS\" | \"MILLIONS\" | \"BILLIONS\";\n\n/**\n * Display values as ratios with different scaling factors.\n */\nexport interface NumberFormatRatio {\n type: \"ratio\";\n ratioType: NumberRatioType;\n baseFormatOptions: NumberFormatOptions;\n}\n\nexport type NumberRatioType = \"PERCENTAGE\" | \"PER_MILLE\" | \"BASIS_POINTS\";\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyValueFormattingRule.js","names":[],"sources":["PropertyValueFormattingRule.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { PropertyBooleanFormattingRule } from \"./PropertyBooleanFormattingRule.js\";\nimport type {\n PropertyDateFormattingRule,\n PropertyTimestampFormattingRule,\n} from \"./PropertyDateAndTimestampFormattingRule.js\";\nimport type { PropertyKnownTypeFormattingRule } from \"./PropertyKnownTypeFormattingRule.js\";\nimport type { PropertyNumberFormattingRule } from \"./PropertyNumberFormattingRule.js\";\n\n/**\n * Formatting configuration for property values.\n */\nexport type PropertyValueFormattingRule =\n | PropertyNumberFormattingRule\n | PropertyTimestampFormattingRule\n | PropertyDateFormattingRule\n | PropertyBooleanFormattingRule\n | PropertyKnownTypeFormattingRule;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyValueFormattingUtils.js","names":[],"sources":["PropertyValueFormattingUtils.ts"],"sourcesContent":["/*\n * Copyright 2025 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 * Reference to another property value or a string constant.\n */\nexport type PropertyTypeReferenceOrStringConstant =\n | StringConstant\n | PropertyTypeReference;\n\nexport interface StringConstant {\n type: \"constant\";\n value: string;\n}\n\nexport interface PropertyTypeReference {\n type: \"propertyType\";\n propertyApiName: string;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyBooleanFormattingRule.js","names":[],"sources":["PropertyBooleanFormattingRule.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface PropertyBooleanFormattingRule {\n type: \"boolean\";\n valueIfTrue: string;\n valueIfFalse: string;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyDateAndTimestampFormattingRule.js","names":[],"sources":["PropertyDateAndTimestampFormattingRule.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { PropertyTypeReferenceOrStringConstant } from \"./PropertyValueFormattingUtils.js\";\n\nexport interface PropertyDateFormattingRule {\n type: \"date\";\n format: DatetimeFormat;\n}\n\nexport interface PropertyTimestampFormattingRule {\n type: \"timestamp\";\n format: DatetimeFormat;\n displayTimezone: DatetimeTimezone;\n}\n\nexport type DatetimeFormat = DatetimeStringFormat | DatetimeLocalizedFormat;\n\n/**\n * A custom date format pattern.\n */\nexport interface DatetimeStringFormat {\n type: \"stringFormat\";\n pattern: string;\n}\n\n/**\n * Predefined localized date/time formats.\n */\nexport interface DatetimeLocalizedFormat {\n type: \"localizedFormat\";\n format: DatetimeLocalizedFormatType;\n}\n\nexport type DatetimeLocalizedFormatType =\n | \"DATE_FORMAT_RELATIVE_TO_NOW\"\n | \"DATE_FORMAT_DATE\"\n | \"DATE_FORMAT_YEAR_AND_MONTH\"\n | \"DATE_FORMAT_DATE_TIME\"\n | \"DATE_FORMAT_DATE_TIME_SHORT\"\n | \"DATE_FORMAT_TIME\"\n | \"DATE_FORMAT_ISO_INSTANT\";\n\nexport type DatetimeTimezone = DatetimeTimezoneStatic | DatetimeTimezoneUser;\n\nexport interface DatetimeTimezoneStatic {\n type: \"static\";\n zoneId: PropertyTypeReferenceOrStringConstant;\n}\n\n/**\n * Use the user's local timezone.\n */\nexport interface DatetimeTimezoneUser {\n type: \"user\";\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyKnownTypeFormattingRule.js","names":[],"sources":["PropertyKnownTypeFormattingRule.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface PropertyKnownTypeFormattingRule {\n type: \"knownType\";\n knownType: KnownType;\n}\n\n/**\n * Known Foundry types with specialized formatting.\n */\nexport type KnownType = \"USER_OR_GROUP_ID\" | \"RESOURCE_RID\" | \"ARTIFACT_GID\";\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyNumberFormattingRule.js","names":[],"sources":["PropertyNumberFormattingRule.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { PropertyTypeReferenceOrStringConstant } from \"./PropertyValueFormattingUtils.js\";\n\nexport interface PropertyNumberFormattingRule {\n type: \"number\";\n numberType: PropertyNumberFormattingRuleType;\n}\n\nexport type PropertyNumberFormattingRuleType =\n | NumberFormatStandard\n | NumberFormatFixedValues\n | NumberFormatCurrency\n | NumberFormatStandardUnit\n | NumberFormatCustomUnit\n | NumberFormatAffix\n | NumberFormatDuration\n | NumberFormatScale\n | NumberFormatRatio;\n\n/**\n * Base number formatting options.\n */\nexport interface NumberFormatOptions {\n useGrouping?: boolean;\n convertNegativeToParenthesis?: boolean;\n minimumIntegerDigits?: number;\n minimumFractionDigits?: number;\n maximumFractionDigits?: number;\n minimumSignificantDigits?: number;\n maximumSignificantDigits?: number;\n notation?: NumberFormatNotation;\n roundingMode?: NumberRoundingMode;\n}\n\n/**\n * Number notation style.\n */\nexport type NumberFormatNotation =\n | \"STANDARD\"\n | \"SCIENTIFIC\"\n | \"ENGINEERING\"\n | \"COMPACT\";\n\n/**\n * Number rounding behavior.\n */\nexport type NumberRoundingMode = \"CEIL\" | \"FLOOR\" | \"ROUND_CLOSEST\";\n\n/**\n * Standard number formatting with configurable options.\n */\nexport interface NumberFormatStandard {\n type: \"standard\";\n baseFormatOptions: NumberFormatOptions;\n}\n\n/**\n * Map integer values to custom strings.\n */\nexport interface NumberFormatFixedValues {\n type: \"fixedValues\";\n values: Record<number, string>;\n}\n\n/**\n * Format numbers as currency values.\n */\nexport interface NumberFormatCurrency {\n type: \"currency\";\n baseFormatOptions: NumberFormatOptions;\n style: NumberFormatCurrencyStyle;\n currencyCode: PropertyTypeReferenceOrStringConstant;\n}\n\nexport type NumberFormatCurrencyStyle = \"STANDARD\" | \"COMPACT\";\n\n/**\n * Format numbers with standard units supported by Intl.NumberFormat.\n */\nexport interface NumberFormatStandardUnit {\n type: \"standardUnit\";\n baseFormatOptions: NumberFormatOptions;\n unit: PropertyTypeReferenceOrStringConstant;\n}\n\n/**\n * Format numbers with custom units.\n */\nexport interface NumberFormatCustomUnit {\n type: \"customUnit\";\n baseFormatOptions: NumberFormatOptions;\n unit: PropertyTypeReferenceOrStringConstant;\n}\n\n/**\n * Attach text before and/or after the formatted number.\n */\nexport interface NumberFormatAffix {\n type: \"affix\";\n baseFormatOptions: NumberFormatOptions;\n affix: Affix;\n}\n\nexport interface Affix {\n prefix?: PropertyTypeReferenceOrStringConstant;\n postfix?: PropertyTypeReferenceOrStringConstant;\n}\n\n/**\n * Format numeric values representing time durations.\n */\nexport interface NumberFormatDuration {\n type: \"duration\";\n formatStyle: DurationFormatStyle;\n precision?: DurationPrecision;\n baseValue: DurationBaseValue;\n}\n\nexport type DurationFormatStyle = HumanReadableFormat | TimeCodeFormat;\n\nexport interface HumanReadableFormat {\n type: \"humanReadable\";\n showFullUnits?: boolean;\n}\n\nexport interface TimeCodeFormat {\n type: \"timecode\";\n}\n\nexport type DurationPrecision =\n | \"DAYS\"\n | \"HOURS\"\n | \"MINUTES\"\n | \"SECONDS\"\n | \"AUTO\";\nexport type DurationBaseValue = \"SECONDS\" | \"MILLISECONDS\";\n\n/**\n * Scale numeric values by the specified factor.\n */\nexport interface NumberFormatScale {\n type: \"scale\";\n scaleType: NumberScaleType;\n baseFormatOptions: NumberFormatOptions;\n}\n\nexport type NumberScaleType = \"THOUSANDS\" | \"MILLIONS\" | \"BILLIONS\";\n\n/**\n * Display values as ratios with different scaling factors.\n */\nexport interface NumberFormatRatio {\n type: \"ratio\";\n ratioType: NumberRatioType;\n baseFormatOptions: NumberFormatOptions;\n}\n\nexport type NumberRatioType = \"PERCENTAGE\" | \"PER_MILLE\" | \"BASIS_POINTS\";\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyValueFormattingRule.js","names":[],"sources":["PropertyValueFormattingRule.ts"],"sourcesContent":["/*\n * Copyright 2025 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 { PropertyBooleanFormattingRule } from \"./PropertyBooleanFormattingRule.js\";\nimport type {\n PropertyDateFormattingRule,\n PropertyTimestampFormattingRule,\n} from \"./PropertyDateAndTimestampFormattingRule.js\";\nimport type { PropertyKnownTypeFormattingRule } from \"./PropertyKnownTypeFormattingRule.js\";\nimport type { PropertyNumberFormattingRule } from \"./PropertyNumberFormattingRule.js\";\n\n/**\n * Formatting configuration for property values.\n */\nexport type PropertyValueFormattingRule =\n | PropertyNumberFormattingRule\n | PropertyTimestampFormattingRule\n | PropertyDateFormattingRule\n | PropertyBooleanFormattingRule\n | PropertyKnownTypeFormattingRule;\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PropertyValueFormattingUtils.js","names":[],"sources":["PropertyValueFormattingUtils.ts"],"sourcesContent":["/*\n * Copyright 2025 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 * Reference to another property value or a string constant.\n */\nexport type PropertyTypeReferenceOrStringConstant =\n | StringConstant\n | PropertyTypeReference;\n\nexport interface StringConstant {\n type: \"constant\";\n value: string;\n}\n\nexport interface PropertyTypeReference {\n type: \"propertyType\";\n propertyApiName: string;\n}\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAgBA,iBAAiB,8BAA8B;CAC7C,MAAM;CACN;CACA;AACD","names":[],"sources":["../../../../src/ontology/valueFormatting/PropertyBooleanFormattingRule.ts"],"version":3,"file":"PropertyBooleanFormattingRule.d.ts"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { PropertyTypeReferenceOrStringConstant } from "./PropertyValueFormattingUtils.js";
|
|
2
|
-
export interface PropertyDateFormattingRule {
|
|
3
|
-
type: "date";
|
|
4
|
-
format: DatetimeFormat;
|
|
5
|
-
}
|
|
6
|
-
export interface PropertyTimestampFormattingRule {
|
|
7
|
-
type: "timestamp";
|
|
8
|
-
format: DatetimeFormat;
|
|
9
|
-
displayTimezone: DatetimeTimezone;
|
|
10
|
-
}
|
|
11
|
-
export type DatetimeFormat = DatetimeStringFormat | DatetimeLocalizedFormat;
|
|
12
|
-
/**
|
|
13
|
-
* A custom date format pattern.
|
|
14
|
-
*/
|
|
15
|
-
export interface DatetimeStringFormat {
|
|
16
|
-
type: "stringFormat";
|
|
17
|
-
pattern: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Predefined localized date/time formats.
|
|
21
|
-
*/
|
|
22
|
-
export interface DatetimeLocalizedFormat {
|
|
23
|
-
type: "localizedFormat";
|
|
24
|
-
format: DatetimeLocalizedFormatType;
|
|
25
|
-
}
|
|
26
|
-
export type DatetimeLocalizedFormatType = "DATE_FORMAT_RELATIVE_TO_NOW" | "DATE_FORMAT_DATE" | "DATE_FORMAT_YEAR_AND_MONTH" | "DATE_FORMAT_DATE_TIME" | "DATE_FORMAT_DATE_TIME_SHORT" | "DATE_FORMAT_TIME" | "DATE_FORMAT_ISO_INSTANT";
|
|
27
|
-
export type DatetimeTimezone = DatetimeTimezoneStatic | DatetimeTimezoneUser;
|
|
28
|
-
export interface DatetimeTimezoneStatic {
|
|
29
|
-
type: "static";
|
|
30
|
-
zoneId: PropertyTypeReferenceOrStringConstant;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Use the user's local timezone.
|
|
34
|
-
*/
|
|
35
|
-
export interface DatetimeTimezoneUser {
|
|
36
|
-
type: "user";
|
|
37
|
-
}
|
package/build/types/ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,6CAA6C,mCAAoC;AAE/F,iBAAiB,2BAA2B;CAC1C,MAAM;CACN,QAAQ;AACT;AAED,iBAAiB,gCAAgC;CAC/C,MAAM;CACN,QAAQ;CACR,iBAAiB;AAClB;AAED,YAAY,iBAAiB,uBAAuB;;;;AAKpD,iBAAiB,qBAAqB;CACpC,MAAM;CACN;AACD;;;;AAKD,iBAAiB,wBAAwB;CACvC,MAAM;CACN,QAAQ;AACT;AAED,YAAY,8BACR,gCACA,qBACA,+BACA,0BACA,gCACA,qBACA;AAEJ,YAAY,mBAAmB,yBAAyB;AAExD,iBAAiB,uBAAuB;CACtC,MAAM;CACN,QAAQ;AACT;;;;AAKD,iBAAiB,qBAAqB;CACpC,MAAM;AACP","names":[],"sources":["../../../../src/ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.ts"],"version":3,"file":"PropertyDateAndTimestampFormattingRule.d.ts"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AAgBA,iBAAiB,gCAAgC;CAC/C,MAAM;CACN,WAAW;AACZ;;;;AAKD,YAAY,YAAY,qBAAqB,iBAAiB","names":[],"sources":["../../../../src/ontology/valueFormatting/PropertyKnownTypeFormattingRule.ts"],"version":3,"file":"PropertyKnownTypeFormattingRule.d.ts"}
|