@osdk/api 2.5.0-rc.15 → 2.6.0-beta.2
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 +7 -3
- package/build/browser/Definitions.js.map +1 -1
- package/build/browser/OsdkObjectFrom.js.map +1 -1
- package/build/browser/actions/Actions.js.map +1 -1
- package/build/browser/aggregate/BaseFilter.js +1 -0
- package/build/browser/aggregate/BaseFilter.js.map +1 -1
- package/build/browser/aggregate/WhereClause.js.map +1 -1
- package/build/browser/derivedProperties/DerivedProperty.js.map +1 -1
- package/build/browser/index.js +1 -0
- package/build/browser/index.js.map +1 -1
- package/build/browser/mapping/DataValueMapping.js.map +1 -1
- package/build/browser/object/Media.js.map +1 -1
- package/build/browser/objectSet/ObjectSet.js.map +1 -1
- package/build/browser/objectSet/ObjectSet.test.js +48 -0
- package/build/browser/objectSet/ObjectSet.test.js.map +1 -1
- package/build/browser/ontology/ObjectTypeDefinition.js.map +1 -1
- package/build/browser/ontology/valueFormatting/PropertyBooleanFormattingRule.js +2 -0
- package/build/browser/ontology/valueFormatting/PropertyBooleanFormattingRule.js.map +1 -0
- package/build/browser/ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.js +2 -0
- package/build/browser/ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.js.map +1 -0
- package/build/browser/ontology/valueFormatting/PropertyKnownTypeFormattingRule.js +2 -0
- package/build/browser/ontology/valueFormatting/PropertyKnownTypeFormattingRule.js.map +1 -0
- package/build/browser/ontology/valueFormatting/PropertyNumberFormattingRule.js +2 -0
- package/build/browser/ontology/valueFormatting/PropertyNumberFormattingRule.js.map +1 -0
- package/build/browser/ontology/valueFormatting/PropertyValueFormattingRule.js +2 -0
- package/build/browser/ontology/valueFormatting/PropertyValueFormattingRule.js.map +1 -0
- package/build/browser/ontology/valueFormatting/PropertyValueFormattingUtils.js +2 -0
- package/build/browser/ontology/valueFormatting/PropertyValueFormattingUtils.js.map +1 -0
- package/build/cjs/{ObjectSet-CRGBmCu9.d.cts → ObjectSet-CeNijIU7.d.cts} +250 -10
- package/build/cjs/index.cjs +4 -0
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +13 -4
- package/build/cjs/public/unstable.d.cts +2 -2
- package/build/esm/Definitions.js.map +1 -1
- package/build/esm/OsdkObjectFrom.js.map +1 -1
- package/build/esm/actions/Actions.js.map +1 -1
- package/build/esm/aggregate/BaseFilter.js +1 -0
- package/build/esm/aggregate/BaseFilter.js.map +1 -1
- package/build/esm/aggregate/WhereClause.js.map +1 -1
- package/build/esm/derivedProperties/DerivedProperty.js.map +1 -1
- package/build/esm/index.js +1 -0
- package/build/esm/index.js.map +1 -1
- package/build/esm/mapping/DataValueMapping.js.map +1 -1
- package/build/esm/object/Media.js.map +1 -1
- package/build/esm/objectSet/ObjectSet.js.map +1 -1
- package/build/esm/objectSet/ObjectSet.test.js +48 -0
- package/build/esm/objectSet/ObjectSet.test.js.map +1 -1
- package/build/esm/ontology/ObjectTypeDefinition.js.map +1 -1
- package/build/esm/ontology/valueFormatting/PropertyBooleanFormattingRule.js +2 -0
- package/build/esm/ontology/valueFormatting/PropertyBooleanFormattingRule.js.map +1 -0
- package/build/esm/ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.js +2 -0
- package/build/esm/ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.js.map +1 -0
- package/build/esm/ontology/valueFormatting/PropertyKnownTypeFormattingRule.js +2 -0
- package/build/esm/ontology/valueFormatting/PropertyKnownTypeFormattingRule.js.map +1 -0
- package/build/esm/ontology/valueFormatting/PropertyNumberFormattingRule.js +2 -0
- package/build/esm/ontology/valueFormatting/PropertyNumberFormattingRule.js.map +1 -0
- package/build/esm/ontology/valueFormatting/PropertyValueFormattingRule.js +2 -0
- package/build/esm/ontology/valueFormatting/PropertyValueFormattingRule.js.map +1 -0
- package/build/esm/ontology/valueFormatting/PropertyValueFormattingUtils.js +2 -0
- package/build/esm/ontology/valueFormatting/PropertyValueFormattingUtils.js.map +1 -0
- package/build/types/Definitions.d.ts +3 -6
- package/build/types/Definitions.d.ts.map +1 -1
- package/build/types/OsdkObjectFrom.d.ts +4 -0
- package/build/types/OsdkObjectFrom.d.ts.map +1 -1
- package/build/types/actions/Actions.d.ts +2 -0
- package/build/types/actions/Actions.d.ts.map +1 -1
- package/build/types/aggregate/BaseFilter.d.ts +10 -4
- package/build/types/aggregate/BaseFilter.d.ts.map +1 -1
- package/build/types/aggregate/WhereClause.d.ts +5 -2
- package/build/types/aggregate/WhereClause.d.ts.map +1 -1
- package/build/types/derivedProperties/DerivedProperty.d.ts +10 -1
- package/build/types/derivedProperties/DerivedProperty.d.ts.map +1 -1
- package/build/types/index.d.ts +10 -3
- package/build/types/index.d.ts.map +1 -1
- package/build/types/mapping/DataValueMapping.d.ts +2 -2
- package/build/types/mapping/DataValueMapping.d.ts.map +1 -1
- package/build/types/object/Media.d.ts +7 -0
- package/build/types/object/Media.d.ts.map +1 -1
- package/build/types/objectSet/ObjectSet.d.ts +24 -1
- package/build/types/objectSet/ObjectSet.d.ts.map +1 -1
- package/build/types/objectSet/ObjectSet.test.d.ts.map +1 -1
- package/build/types/ontology/ObjectTypeDefinition.d.ts +2 -0
- package/build/types/ontology/ObjectTypeDefinition.d.ts.map +1 -1
- package/build/types/ontology/valueFormatting/PropertyBooleanFormattingRule.d.ts +5 -0
- package/build/types/ontology/valueFormatting/PropertyBooleanFormattingRule.d.ts.map +1 -0
- package/build/types/ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.d.ts +37 -0
- package/build/types/ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.d.ts.map +1 -0
- package/build/types/ontology/valueFormatting/PropertyKnownTypeFormattingRule.d.ts +8 -0
- package/build/types/ontology/valueFormatting/PropertyKnownTypeFormattingRule.d.ts.map +1 -0
- package/build/types/ontology/valueFormatting/PropertyNumberFormattingRule.d.ts +117 -0
- package/build/types/ontology/valueFormatting/PropertyNumberFormattingRule.d.ts.map +1 -0
- package/build/types/ontology/valueFormatting/PropertyValueFormattingRule.d.ts +8 -0
- package/build/types/ontology/valueFormatting/PropertyValueFormattingRule.d.ts.map +1 -0
- package/build/types/ontology/valueFormatting/PropertyValueFormattingUtils.d.ts +12 -0
- package/build/types/ontology/valueFormatting/PropertyValueFormattingUtils.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { Just } from "./Just.js";
|
|
2
|
-
|
|
2
|
+
type EqFilterOption<T> = {
|
|
3
3
|
"$eq": T
|
|
4
|
-
"$ne": T
|
|
5
|
-
"$isNull": boolean
|
|
6
|
-
"$in": ReadonlyArray<T>
|
|
7
4
|
};
|
|
5
|
+
export declare namespace EqFilter {
|
|
6
|
+
interface $eq<T> extends Just<"$eq", EqFilterOption<T>> {}
|
|
7
|
+
}
|
|
8
|
+
export interface BaseFilterOptions<T> extends EqFilterOption<T> {
|
|
9
|
+
"$ne": T;
|
|
10
|
+
"$isNull": boolean;
|
|
11
|
+
"$in": ReadonlyArray<T>;
|
|
12
|
+
}
|
|
8
13
|
export declare namespace BaseFilter {
|
|
9
14
|
interface $eq<T> extends Just<"$eq", BaseFilterOptions<T>> {}
|
|
10
15
|
interface $ne<T> extends Just<"$ne", BaseFilterOptions<T>> {}
|
|
@@ -12,3 +17,4 @@ export declare namespace BaseFilter {
|
|
|
12
17
|
interface $isNull<T> extends Just<"$isNull", BaseFilterOptions<T>> {}
|
|
13
18
|
}
|
|
14
19
|
export type BaseFilter<T> = BaseFilter.$eq<T> | BaseFilter.$ne<T> | BaseFilter.$in<T> | BaseFilter.$isNull<T>;
|
|
20
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,YAAY,WAAY;
|
|
1
|
+
{"mappings":"AAgBA,cAAc,YAAY,WAAY;KAEjC,eAAe,KAAK;CACvB,OAAO;AACR;AAED,yBAAiB;WACE,IAAI,WAAW,KAAK,OAAO,eAAe,IAAI,CAAE;;AAGnE,iBAAiB,kBAAkB,WAAW,eAAe,GAAG;CAC9D,OAAO;CACP;CACA,OAAO,cAAc;AACtB;AAED,yBAAiB;WACE,IAAI,WAAW,KAAK,OAAO,kBAAkB,IAAI,CAAE;WACnD,IAAI,WAAW,KAAK,OAAO,kBAAkB,IAAI,CAAE;WACnD,IAAI,WAAW,KAAK,OAAO,kBAAkB,IAAI,CAAE;WACnD,QAAQ,WAAW,KAAK,WAAW,kBAAkB,IAAI,CAAE;;AAG9E,YAAY,WAAW,KACnB,WAAW,IAAI,KACf,WAAW,IAAI,KACf,WAAW,IAAI,KACf,WAAW,QAAQ","names":[],"sources":["../../../src/aggregate/BaseFilter.ts"],"version":3,"file":"BaseFilter.d.ts"}
|
|
@@ -4,7 +4,7 @@ import type { CompileTimeMetadata, ObjectMetadata } from "../ontology/ObjectType
|
|
|
4
4
|
import type { BaseWirePropertyTypes } from "../ontology/WirePropertyTypes.js";
|
|
5
5
|
import type { IsNever } from "../OsdkObjectFrom.js";
|
|
6
6
|
import type { ArrayFilter } from "./ArrayFilter.js";
|
|
7
|
-
import type { BaseFilter } from "./BaseFilter.js";
|
|
7
|
+
import type { BaseFilter, EqFilter } from "./BaseFilter.js";
|
|
8
8
|
import type { BooleanFilter } from "./BooleanFilter.js";
|
|
9
9
|
import type { DatetimeFilter } from "./DatetimeFilter.js";
|
|
10
10
|
import type { GeoFilter } from "./GeoFilter.js";
|
|
@@ -61,11 +61,14 @@ export type GeoFilter_Intersects = {
|
|
|
61
61
|
$bbox?: never
|
|
62
62
|
} | Polygon
|
|
63
63
|
};
|
|
64
|
-
type FilterFor<PD extends ObjectMetadata.Property> = PD["multiplicity"] extends true ? (PD["type"] extends
|
|
64
|
+
type FilterFor<PD extends ObjectMetadata.Property> = PD["multiplicity"] extends true ? (PD["type"] extends Record<string, BaseWirePropertyTypes> ? ArrayFilter<StructArrayFilterOpts<PD["type"]>> : PD["type"] extends PropertyTypesRepresentedAsStringsForArrayWhereClause ? ArrayFilter<string> : (PD["type"] extends boolean ? ArrayFilter<boolean> : ArrayFilter<number>)) : PD["type"] extends Record<string, BaseWirePropertyTypes> ? StructFilter<PD["type"]> | BaseFilter.$isNull<string> : (PD["type"] extends "string" ? StringFilter : PD["type"] extends "geopoint" | "geoshape" ? GeoFilter : PD["type"] extends "datetime" | "timestamp" ? DatetimeFilter : PD["type"] extends "boolean" ? BooleanFilter : PD["type"] extends WhereClauseNumberPropertyTypes ? NumberFilter : BaseFilter<string>);
|
|
65
|
+
type StructArrayFilterOpts<ST extends Record<string, BaseWirePropertyTypes>> = { [K in keyof ST]? : ST[K] extends PropertyTypesRepresentedAsStringsForArrayWhereClause ? EqFilter.$eq<string> : ST[K] extends boolean ? EqFilter.$eq<boolean> : ST[K] extends WhereClauseNumberPropertyTypes ? EqFilter.$eq<number> : never };
|
|
65
66
|
type StructFilterOpts<ST extends Record<string, BaseWirePropertyTypes>> = { [K in keyof ST]? : FilterFor<{
|
|
66
67
|
"type": ST[K]
|
|
67
68
|
}> };
|
|
68
69
|
type StructFilter<ST extends Record<string, BaseWirePropertyTypes>> = { [K in keyof ST] : Just<K, StructFilterOpts<ST>> }[keyof ST];
|
|
70
|
+
type PropertyTypesRepresentedAsStringsForArrayWhereClause = "string" | "geopoint" | "geoshape" | "datetime" | "timestamp";
|
|
71
|
+
type WhereClauseNumberPropertyTypes = "double" | "integer" | "long" | "float" | "decimal" | "byte";
|
|
69
72
|
export interface AndWhereClause<T extends ObjectOrInterfaceDefinition> {
|
|
70
73
|
$and: WhereClause<T>[];
|
|
71
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,MAAM,OAAO,eAAe,SAAU;AACpD,cACE,mCACK,kCAAmC;AAC1C,cACE,qBACA,sBACK,qCAAsC;AAC7C,cAAc,6BAA6B,kCAAmC;AAC9E,cAAc,eAAe,sBAAuB;AACpD,cAAc,mBAAmB,kBAAmB;AACpD,cAAc,
|
|
1
|
+
{"mappings":"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d,GAAG,gBAAgB,WAAW,eAC7B,GAAG,gBAAgB,aAAa,aAAa,YAC7C,GAAG,gBAAgB,aAAa,cAAc,iBAC9C,GAAG,gBAAgB,YAAY,gBAC/B,GAAG,gBAAgB,iCAAiC,eACpD;KAED,sBAAsB,WAAW,eAAe,6BAClD,WAAW,OAAM,GAAG,WACnB,uDAAuD,SAAS,cAC9D,GAAG,qBAAqB,SAAS,eACjC,GAAG,WAAW,iCAAiC,SAAS;KAIzD,iBAAiB,WAAW,eAAe,6BAC7C,WAAW,OAAM,UAAU;CAAE,QAAQ,GAAG;AAAI;KAE1C,aAAa,WAAW,eAAe,6BACzC,WAAW,MAAK,KAAK,GAAG,iBAAiB,aACpC;KAEH,uDACD,WACA,aACA,aACA,aACA;KACC,iCACD,WACA,YACA,SACA,UACA,YACA;AAEJ,iBAAiB,eACf,UAAU,6BACV;CACA,MAAM,YAAY;AACnB;AAED,iBAAiB,cACf,UAAU,6BACV;CACA,KAAK,YAAY;AAClB;AAED,iBAAiB,eACf,UAAU,6BACV;CACA,MAAM,YAAY;AACnB;AAED,YAAY,oBAAoB,UAAU,kCACvC,WAAW,oBAAoB,GAAG,kBAAiB,UAClD,oBAAoB,GAAG,cAAc;AAIzC,YAAY,YACV,UAAU,+BAER,cAAc,KACd,eAAe,KACf,eAAe,MACd,cAAc,oBAAoB,GAAG,uBAAuB,OAC3D,wBACA,oBAAoB","names":["DistanceUnitMapping: {\n centimeter: \"CENTIMETERS\";\n centimeters: \"CENTIMETERS\";\n cm: \"CENTIMETERS\";\n meter: \"METERS\";\n meters: \"METERS\";\n m: \"METERS\";\n kilometer: \"KILOMETERS\";\n kilometers: \"KILOMETERS\";\n km: \"KILOMETERS\";\n inch: \"INCHES\";\n inches: \"INCHES\";\n foot: \"FEET\";\n feet: \"FEET\";\n yard: \"YARDS\";\n yards: \"YARDS\";\n mile: \"MILES\";\n miles: \"MILES\";\n nautical_mile: \"NAUTICAL_MILES\";\n nauticalMile: \"NAUTICAL_MILES\";\n \"nautical miles\": \"NAUTICAL_MILES\";\n}"],"sources":["../../../src/aggregate/WhereClause.ts"],"version":3,"file":"WhereClause.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>, Constant<Q> {}
|
|
40
40
|
export interface AggregateBuilder<
|
|
41
41
|
Q extends ObjectOrInterfaceDefinition,
|
|
42
42
|
CONSTRAINED extends boolean
|
|
@@ -64,6 +64,15 @@ 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
|
+
};
|
|
67
76
|
type Aggregatable<Q extends ObjectOrInterfaceDefinition> = {
|
|
68
77
|
readonly aggregate: <V extends ValidAggregationKeys<Q, "withPropertiesAggregate">>(aggregationSpecifier: V, opts?: V extends `${any}:${infer P}` ? P extends CollectWithPropAggregations ? {
|
|
69
78
|
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,GAAG,
|
|
1
|
+
{"mappings":"AAgBA,cAAc,4BAA4B,kCAAmC;AAC7E,cAAc,mBAAmB,6BAA8B;AAC/D,cACE,6BACA,oBACK,kCAAmC;AAC1C,cAA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efinitionBrand: unique symbol","baseObjectSet: Builder<Q, false>","clause: WhereClause<Q>","type: L","value: number","value: string","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,5 +1,6 @@
|
|
|
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";
|
|
3
4
|
export type { ValidAggregationKeys } from "./aggregate/AggregatableKeys.js";
|
|
4
5
|
export type { AggregateOpts } from "./aggregate/AggregateOpts.js";
|
|
5
6
|
export type { AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy } from "./aggregate/AggregateOptsThatErrors.js";
|
|
@@ -19,9 +20,9 @@ export type { Logger } from "./Logger.js";
|
|
|
19
20
|
export type { AllowedBucketKeyTypes, AllowedBucketTypes, DataValueClientToWire, DataValueWireToClient } from "./mapping/DataValueMapping.js";
|
|
20
21
|
export type { PropertyValueWireToClient } from "./mapping/PropertyValueMapping.js";
|
|
21
22
|
export type { Attachment, AttachmentUpload } from "./object/Attachment.js";
|
|
22
|
-
export type { AsyncIterArgs, Augment, Augments, FetchPageArgs, NullabilityAdherence, SelectArg, SelectArgToKeys } from "./object/FetchPageArgs.js";
|
|
23
|
+
export type { AsyncIterArgs, Augment, Augments, FetchPageArgs, NullabilityAdherence, ObjectSetArgs, SelectArg, SelectArgToKeys } from "./object/FetchPageArgs.js";
|
|
23
24
|
export type { FetchPageResult, SingleOsdkResult } from "./object/FetchPageResult.js";
|
|
24
|
-
export type { Media, MediaMetadata, MediaReference } from "./object/Media.js";
|
|
25
|
+
export type { Media, MediaMetadata, MediaReference, MediaUpload } from "./object/Media.js";
|
|
25
26
|
export { isOk } from "./object/Result.js";
|
|
26
27
|
export type { Result } from "./object/Result.js";
|
|
27
28
|
export type { BaseObjectSet } from "./objectSet/BaseObjectSet.js";
|
|
@@ -35,10 +36,16 @@ export type { CompileTimeMetadata, ObjectMetadata, ObjectTypeDefinition, Propert
|
|
|
35
36
|
export type { OntologyMetadata } from "./ontology/OntologyMetadata.js";
|
|
36
37
|
export type { PrimaryKeyTypes } from "./ontology/PrimaryKeyTypes.js";
|
|
37
38
|
export type { InterfaceQueryDataType, ObjectQueryDataType, ObjectSetQueryDataType, QueryDataTypeDefinition, QueryDefinition, QueryMetadata, QueryParameterDefinition, ThreeDimensionalQueryAggregationDefinition, TwoDimensionalQueryAggregationDefinition } from "./ontology/QueryDefinition.js";
|
|
39
|
+
export type { PropertyBooleanFormattingRule } from "./ontology/valueFormatting/PropertyBooleanFormattingRule.js";
|
|
40
|
+
export type { DatetimeFormat, DatetimeLocalizedFormat, DatetimeLocalizedFormatType, DatetimeStringFormat, DatetimeTimezone, DatetimeTimezoneStatic, DatetimeTimezoneUser, PropertyDateFormattingRule, PropertyTimestampFormattingRule } from "./ontology/valueFormatting/PropertyDateAndTimestampFormattingRule.js";
|
|
41
|
+
export type { KnownType, PropertyKnownTypeFormattingRule } from "./ontology/valueFormatting/PropertyKnownTypeFormattingRule.js";
|
|
42
|
+
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";
|
|
43
|
+
export type { PropertyValueFormattingRule } from "./ontology/valueFormatting/PropertyValueFormattingRule.js";
|
|
44
|
+
export type { PropertyTypeReference, PropertyTypeReferenceOrStringConstant, StringConstant } from "./ontology/valueFormatting/PropertyValueFormattingUtils.js";
|
|
38
45
|
export type { BaseWirePropertyTypes, WirePropertyTypes } from "./ontology/WirePropertyTypes.js";
|
|
39
46
|
export type { ObjectIdentifiers, OsdkBase, PrimaryKeyType } from "./OsdkBase.js";
|
|
40
47
|
export type { OsdkObject } from "./OsdkObject.js";
|
|
41
|
-
export type { ConvertProps, Osdk } from "./OsdkObjectFrom.js";
|
|
48
|
+
export type { ConvertProps, MaybeScore, Osdk } from "./OsdkObjectFrom.js";
|
|
42
49
|
export type { PageResult } from "./PageResult.js";
|
|
43
50
|
export type { Range, ThreeDimensionalAggregation, TwoDimensionalAggregation } from "./queries/Aggregations.js";
|
|
44
51
|
export type { QueryParam, QueryResult } from "./queries/Queries.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,SAAS,2BAA2B;AACpC,cACE,sBACA,kBACA,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,WACA,uBACK;AACP,cACE,iBACA,wBACK;AACP,
|
|
1
|
+
{"mappings":"AAgBA,cAAc,kCAAkC;AAChD,cACE,oBACA,aACA,0BACA,oBACA,+BACK;AACP,SAAS,kBAAkB;AAC3B,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,sBACA,kBACA,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,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 { MediaReference } from "../object/Media.js";
|
|
2
|
+
import type { MediaReference, MediaUpload } from "../object/Media.js";
|
|
3
3
|
/**
|
|
4
4
|
* Map from the DataValue type to the typescript type that we return
|
|
5
5
|
*/
|
|
@@ -59,7 +59,7 @@ export interface DataValueClientToWire {
|
|
|
59
59
|
string: string;
|
|
60
60
|
timestamp: string;
|
|
61
61
|
set: Set<any>;
|
|
62
|
-
mediaReference: MediaReference;
|
|
62
|
+
mediaReference: MediaReference | MediaUpload;
|
|
63
63
|
twoDimensionalAggregation: {
|
|
64
64
|
key: AllowedBucketKeyTypes
|
|
65
65
|
value: AllowedBucketTypes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,YAAY,wBAAwB,yBAA0B;AAC5E,cAAc,
|
|
1
|
+
{"mappings":"AAgBA,cAAc,YAAY,wBAAwB,yBAA0B;AAC5E,cAAc,gBAAgB,mBAAmB,oBAAqB;;;;AAKtE,iBAAiB,sBAAsB;CACrC,YAAY;CACZ;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,gBAAgB;CAChB,2BAA2B;EACzB,KAAK;EACL,OAAO;CACR;CACD,6BAA6B;EAC3B,KAAK;EACL,QAAQ;GAAE,KAAK;GAAuB,OAAO;EAAoB;CAClE;CACD,QAAQ;CACR,KAAK;CACL;CACA,SAAS,QAAQ;CACjB,UAAU,QAAQ;AACnB;;;;AAKD,iBAAiB,sBAAsB;CACrC,qBAAqB,mBAAmB,OAAO;WAAW;CAAc;CACxE;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA,KAAK;CACL,gBAAgB,iBAAiB;CACjC,2BAA2B;EACzB,KAAK;EACL,OAAO;CACR;CACD,6BAA6B;EAC3B,KAAK;EACL,QAAQ;GAAE,KAAK;GAAuB,OAAO;EAAoB;CAClE;CACD,QAAQ;CACR;CACA,SAAS,QAAQ;CACjB,UAAU,QAAQ;AACnB;AAED,YAAY;AACZ,YAAY,wBACR,qBACA;CACA,YAAY;CACZ,UAAU;AACX","names":[],"sources":["../../../src/mapping/DataValueMapping.ts"],"version":3,"file":"DataValueMapping.d.ts"}
|
|
@@ -28,6 +28,13 @@ export interface MediaReference {
|
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
+
* Object for uploading Media
|
|
32
|
+
*/
|
|
33
|
+
export interface MediaUpload {
|
|
34
|
+
readonly path: string;
|
|
35
|
+
readonly data: Blob;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
31
38
|
* Metadata of a media item
|
|
32
39
|
*/
|
|
33
40
|
export interface MediaMetadata {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,iBAAiB,MAAM;;;;CAIrB,iBAAiB,QAAQ;;;;CAIzB,iBAAiB,QAAQ;;;;CAIzB,qBAAqB;AACtB;;;;AAKD,iBAAiB,eAAe;CAC9B;CACA,WAAW;EACT,MAAM;EACN,kBAAkB;GAChB;GACA;GACA;GACA;EACD;CACF;AACF;;;;AAKD,iBAAiB,cAAc;CAC7B;CACA;CACA;AACD","names":[],"sources":["../../../src/object/Media.ts"],"version":3,"file":"Media.d.ts"}
|
|
1
|
+
{"mappings":"AAgBA,iBAAiB,MAAM;;;;CAIrB,iBAAiB,QAAQ;;;;CAIzB,iBAAiB,QAAQ;;;;CAIzB,qBAAqB;AACtB;;;;AAKD,iBAAiB,eAAe;CAC9B;CACA,WAAW;EACT,MAAM;EACN,kBAAkB;GAChB;GACA;GACA;GACA;EACD;CACF;AACF;;;;AAKD,iBAAiB,YAAY;UAClB;UACA,MAAM;AAChB;;;;AAKD,iBAAiB,cAAc;CAC7B;CACA;CACA;AACD","names":[],"sources":["../../../src/object/Media.ts"],"version":3,"file":"Media.d.ts"}
|
|
@@ -5,6 +5,7 @@ import type { WhereClause } from "../aggregate/WhereClause.js";
|
|
|
5
5
|
import type { DerivedProperty } from "../derivedProperties/DerivedProperty.js";
|
|
6
6
|
import type { AsyncIterArgs, Augments, FetchPageArgs, NullabilityAdherence, ObjectSetArgs, SelectArg } from "../object/FetchPageArgs.js";
|
|
7
7
|
import type { Result } from "../object/Result.js";
|
|
8
|
+
import type { InterfaceDefinition } from "../ontology/InterfaceDefinition.js";
|
|
8
9
|
import type { DerivedObjectOrInterfaceDefinition, ObjectOrInterfaceDefinition, PropertyKeys } from "../ontology/ObjectOrInterface.js";
|
|
9
10
|
import type { CompileTimeMetadata, ObjectTypeDefinition } from "../ontology/ObjectTypeDefinition.js";
|
|
10
11
|
import type { SimplePropertyDef } from "../ontology/SimplePropertyDef.js";
|
|
@@ -308,10 +309,32 @@ interface Subscribe<Q extends ObjectOrInterfaceDefinition> {
|
|
|
308
309
|
unsubscribe: () => void
|
|
309
310
|
};
|
|
310
311
|
}
|
|
312
|
+
interface AsType<Q extends ObjectOrInterfaceDefinition> {
|
|
313
|
+
/**
|
|
314
|
+
* Casts the object set to the specified object type or interface type.
|
|
315
|
+
* Any downstream object set operations (e.g. where, fetchPage, aggregate) will be
|
|
316
|
+
* performed on the specified type. Objects from the original object set that do not
|
|
317
|
+
* implement the specified interface or match the specified object set will be filtered out.
|
|
318
|
+
* @param type - The object type you want to cast to.
|
|
319
|
+
* @returns an object set of the specified type.
|
|
320
|
+
*/
|
|
321
|
+
readonly asType: <CONVERT_TO extends RestrictToImplementingObjectTypes<Q>>(type: CONVERT_TO) => ObjectSet<CONVERT_TO>;
|
|
322
|
+
}
|
|
323
|
+
type RestrictToImplementingObjectTypes<T extends ObjectOrInterfaceDefinition> = T extends ObjectTypeDefinition ? ExtractImplementedInterfaces<T> : T extends InterfaceDefinition ? ExtractImplementingTypes<T> : never;
|
|
324
|
+
type ExtractImplementedInterfaces<T extends ObjectTypeDefinition> = CompileTimeMetadata<T> extends {
|
|
325
|
+
implements: ReadonlyArray<infer API_NAME>
|
|
326
|
+
} ? API_NAME extends string ? InterfaceDefinition & {
|
|
327
|
+
apiName: API_NAME
|
|
328
|
+
} : never : never;
|
|
329
|
+
type ExtractImplementingTypes<T extends InterfaceDefinition> = CompileTimeMetadata<T> extends {
|
|
330
|
+
implementedBy: ReadonlyArray<infer API_NAME>
|
|
331
|
+
} ? API_NAME extends string ? (ObjectTypeDefinition & {
|
|
332
|
+
apiName: API_NAME
|
|
333
|
+
}) | InterfaceDefinition : never : never;
|
|
311
334
|
interface ObjectSetCleanedTypes<
|
|
312
335
|
Q extends ObjectOrInterfaceDefinition,
|
|
313
336
|
D extends Record<string, SimplePropertyDef>,
|
|
314
337
|
MERGED extends ObjectOrInterfaceDefinition & Q,
|
|
315
338
|
ORDER_BY_OPTIONS extends ObjectSetArgs.OrderByOptions<PropertyKeys<Q>> = {}
|
|
316
|
-
> 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>, AsType<Q> {}
|
|
317
340
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAgBA,cAAc,qB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,GAAG,GAAG,mBACvB,eAAe,GAAG,IAClB,UAAU,SACV,cAAc,SACd,QAAQ,IACR,SAAS,GAAG,IACZ,UAAU,SACV,iBAAiB,IACjB,OAAO,GACT,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 +1 @@
|
|
|
1
|
-
{"mappings":"AAkBA,cAGE,6BACA,aAAa,kBAIR,aAAc;
|
|
1
|
+
{"mappings":"AAkBA,cAGE,6BACA,aAAa,kBAIR,aAAc;AAKrB,OAAO,iBAAS,oBACd,UAAU,gCACP,WAAW","names":[],"sources":["../../../src/objectSet/ObjectSet.test.ts"],"version":3,"file":"ObjectSet.test.d.ts"}
|
|
@@ -1,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
import type { VersionString } from "./VersionString.js";
|
|
5
6
|
import type { WirePropertyTypes } from "./WirePropertyTypes.js";
|
|
6
7
|
export type CompileTimeMetadata<T extends {
|
|
@@ -56,6 +57,7 @@ export declare namespace ObjectMetadata {
|
|
|
56
57
|
multiplicity?: boolean;
|
|
57
58
|
nullable?: boolean;
|
|
58
59
|
valueTypeApiName?: string;
|
|
60
|
+
valueFormatting?: PropertyValueFormattingRule;
|
|
59
61
|
}
|
|
60
62
|
interface Link<
|
|
61
63
|
Q extends ObjectTypeDefinition,
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
{"mappings":"AAgBA,cAAc,oBAAoB,oBAAqB;AACvD,cACE,6BACA,oBACK,wBAAyB;AAChC,cAAc,uBAAuB,sBAAuB;AAC5D,cAAc,mCAAmC,kDAAmD;AACpG,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;EACA,kBAAkB;CACnB;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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAgBA,iBAAiB,8BAA8B;CAC7C,MAAM;CACN;CACA;AACD","names":[],"sources":["../../../../src/ontology/valueFormatting/PropertyBooleanFormattingRule.ts"],"version":3,"file":"PropertyBooleanFormattingRule.d.ts"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import type { PropertyTypeReferenceOrStringConstant } from "./PropertyValueFormattingUtils.js";
|
|
2
|
+
export interface PropertyNumberFormattingRule {
|
|
3
|
+
type: "number";
|
|
4
|
+
numberType: PropertyNumberFormattingRuleType;
|
|
5
|
+
}
|
|
6
|
+
export type PropertyNumberFormattingRuleType = NumberFormatStandard | NumberFormatFixedValues | NumberFormatCurrency | NumberFormatStandardUnit | NumberFormatCustomUnit | NumberFormatAffix | NumberFormatDuration | NumberFormatScale | NumberFormatRatio;
|
|
7
|
+
/**
|
|
8
|
+
* Base number formatting options.
|
|
9
|
+
*/
|
|
10
|
+
export interface NumberFormatOptions {
|
|
11
|
+
useGrouping?: boolean;
|
|
12
|
+
convertNegativeToParenthesis?: boolean;
|
|
13
|
+
minimumIntegerDigits?: number;
|
|
14
|
+
minimumFractionDigits?: number;
|
|
15
|
+
maximumFractionDigits?: number;
|
|
16
|
+
minimumSignificantDigits?: number;
|
|
17
|
+
maximumSignificantDigits?: number;
|
|
18
|
+
notation?: NumberFormatNotation;
|
|
19
|
+
roundingMode?: NumberRoundingMode;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Number notation style.
|
|
23
|
+
*/
|
|
24
|
+
export type NumberFormatNotation = "STANDARD" | "SCIENTIFIC" | "ENGINEERING" | "COMPACT";
|
|
25
|
+
/**
|
|
26
|
+
* Number rounding behavior.
|
|
27
|
+
*/
|
|
28
|
+
export type NumberRoundingMode = "CEIL" | "FLOOR" | "ROUND_CLOSEST";
|
|
29
|
+
/**
|
|
30
|
+
* Standard number formatting with configurable options.
|
|
31
|
+
*/
|
|
32
|
+
export interface NumberFormatStandard {
|
|
33
|
+
type: "standard";
|
|
34
|
+
baseFormatOptions: NumberFormatOptions;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Map integer values to custom strings.
|
|
38
|
+
*/
|
|
39
|
+
export interface NumberFormatFixedValues {
|
|
40
|
+
type: "fixedValues";
|
|
41
|
+
values: Record<number, string>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Format numbers as currency values.
|
|
45
|
+
*/
|
|
46
|
+
export interface NumberFormatCurrency {
|
|
47
|
+
type: "currency";
|
|
48
|
+
baseFormatOptions: NumberFormatOptions;
|
|
49
|
+
style: NumberFormatCurrencyStyle;
|
|
50
|
+
currencyCode: PropertyTypeReferenceOrStringConstant;
|
|
51
|
+
}
|
|
52
|
+
export type NumberFormatCurrencyStyle = "STANDARD" | "COMPACT";
|
|
53
|
+
/**
|
|
54
|
+
* Format numbers with standard units supported by Intl.NumberFormat.
|
|
55
|
+
*/
|
|
56
|
+
export interface NumberFormatStandardUnit {
|
|
57
|
+
type: "standardUnit";
|
|
58
|
+
baseFormatOptions: NumberFormatOptions;
|
|
59
|
+
unit: PropertyTypeReferenceOrStringConstant;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Format numbers with custom units.
|
|
63
|
+
*/
|
|
64
|
+
export interface NumberFormatCustomUnit {
|
|
65
|
+
type: "customUnit";
|
|
66
|
+
baseFormatOptions: NumberFormatOptions;
|
|
67
|
+
unit: PropertyTypeReferenceOrStringConstant;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Attach text before and/or after the formatted number.
|
|
71
|
+
*/
|
|
72
|
+
export interface NumberFormatAffix {
|
|
73
|
+
type: "affix";
|
|
74
|
+
baseFormatOptions: NumberFormatOptions;
|
|
75
|
+
affix: Affix;
|
|
76
|
+
}
|
|
77
|
+
export interface Affix {
|
|
78
|
+
prefix?: PropertyTypeReferenceOrStringConstant;
|
|
79
|
+
postfix?: PropertyTypeReferenceOrStringConstant;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Format numeric values representing time durations.
|
|
83
|
+
*/
|
|
84
|
+
export interface NumberFormatDuration {
|
|
85
|
+
type: "duration";
|
|
86
|
+
formatStyle: DurationFormatStyle;
|
|
87
|
+
precision?: DurationPrecision;
|
|
88
|
+
baseValue: DurationBaseValue;
|
|
89
|
+
}
|
|
90
|
+
export type DurationFormatStyle = HumanReadableFormat | TimeCodeFormat;
|
|
91
|
+
export interface HumanReadableFormat {
|
|
92
|
+
type: "humanReadable";
|
|
93
|
+
showFullUnits?: boolean;
|
|
94
|
+
}
|
|
95
|
+
export interface TimeCodeFormat {
|
|
96
|
+
type: "timecode";
|
|
97
|
+
}
|
|
98
|
+
export type DurationPrecision = "DAYS" | "HOURS" | "MINUTES" | "SECONDS" | "AUTO";
|
|
99
|
+
export type DurationBaseValue = "SECONDS" | "MILLISECONDS";
|
|
100
|
+
/**
|
|
101
|
+
* Scale numeric values by the specified factor.
|
|
102
|
+
*/
|
|
103
|
+
export interface NumberFormatScale {
|
|
104
|
+
type: "scale";
|
|
105
|
+
scaleType: NumberScaleType;
|
|
106
|
+
baseFormatOptions: NumberFormatOptions;
|
|
107
|
+
}
|
|
108
|
+
export type NumberScaleType = "THOUSANDS" | "MILLIONS" | "BILLIONS";
|
|
109
|
+
/**
|
|
110
|
+
* Display values as ratios with different scaling factors.
|
|
111
|
+
*/
|
|
112
|
+
export interface NumberFormatRatio {
|
|
113
|
+
type: "ratio";
|
|
114
|
+
ratioType: NumberRatioType;
|
|
115
|
+
baseFormatOptions: NumberFormatOptions;
|
|
116
|
+
}
|
|
117
|
+
export type NumberRatioType = "PERCENTAGE" | "PER_MILLE" | "BASIS_POINTS";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAgBA,cAAc,6CAA6C,mCAAoC;AAE/F,iBAAiB,6BAA6B;CAC5C,MAAM;CACN,YAAY;AACb;AAED,YAAY,mCACR,uBACA,0BACA,uBACA,2BACA,yBACA,oBACA,uBACA,oBACA;;;;AAKJ,iBAAiB,oBAAoB;CACnC;CACA;CACA;CACA;CACA;CACA;CACA;CACA,WAAW;CACX,eAAe;AAChB;;;;AAKD,YAAY,uBACR,aACA,eACA,gBACA;;;;AAKJ,YAAY,qBAAqB,SAAS,UAAU;;;;AAKpD,iBAAiB,qBAAqB;CACpC,MAAM;CACN,mBAAmB;AACpB;;;;AAKD,iBAAiB,wBAAwB;CACvC,MAAM;CACN,QAAQ;AACT;;;;AAKD,iBAAiB,qBAAqB;CACpC,MAAM;CACN,mBAAmB;CACnB,OAAO;CACP,cAAc;AACf;AAED,YAAY,4BAA4B,aAAa;;;;AAKrD,iBAAiB,yBAAyB;CACxC,MAAM;CACN,mBAAmB;CACnB,MAAM;AACP;;;;AAKD,iBAAiB,uBAAuB;CACtC,MAAM;CACN,mBAAmB;CACnB,MAAM;AACP;;;;AAKD,iBAAiB,kBAAkB;CACjC,MAAM;CACN,mBAAmB;CACnB,OAAO;AACR;AAED,iBAAiB,MAAM;CACrB,SAAS;CACT,UAAU;AACX;;;;AAKD,iBAAiB,qBAAqB;CACpC,MAAM;CACN,aAAa;CACb,YAAY;CACZ,WAAW;AACZ;AAED,YAAY,sBAAsB,sBAAsB;AAExD,iBAAiB,oBAAoB;CACnC,MAAM;CACN;AACD;AAED,iBAAiB,eAAe;CAC9B,MAAM;AACP;AAED,YAAY,oBACR,SACA,UACA,YACA,YACA;AACJ,YAAY,oBAAoB,YAAY;;;;AAK5C,iBAAiB,kBAAkB;CACjC,MAAM;CACN,WAAW;CACX,mBAAmB;AACpB;AAED,YAAY,kBAAkB,cAAc,aAAa;;;;AAKzD,iBAAiB,kBAAkB;CACjC,MAAM;CACN,WAAW;CACX,mBAAmB;AACpB;AAED,YAAY,kBAAkB,eAAe,cAAc","names":[],"sources":["../../../../src/ontology/valueFormatting/PropertyNumberFormattingRule.ts"],"version":3,"file":"PropertyNumberFormattingRule.d.ts"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PropertyBooleanFormattingRule } from "./PropertyBooleanFormattingRule.js";
|
|
2
|
+
import type { PropertyDateFormattingRule, PropertyTimestampFormattingRule } from "./PropertyDateAndTimestampFormattingRule.js";
|
|
3
|
+
import type { PropertyKnownTypeFormattingRule } from "./PropertyKnownTypeFormattingRule.js";
|
|
4
|
+
import type { PropertyNumberFormattingRule } from "./PropertyNumberFormattingRule.js";
|
|
5
|
+
/**
|
|
6
|
+
* Formatting configuration for property values.
|
|
7
|
+
*/
|
|
8
|
+
export type PropertyValueFormattingRule = PropertyNumberFormattingRule | PropertyTimestampFormattingRule | PropertyDateFormattingRule | PropertyBooleanFormattingRule | PropertyKnownTypeFormattingRule;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":"AAgBA,cAAc,qCAAqC,oCAAqC;AACxF,cACE,4BACA,uCACK,6CAA8C;AACrD,cAAc,uCAAuC,sCAAuC;AAC5F,cAAc,oCAAoC,mCAAoC;;;;AAKtF,YAAY,8BACR,+BACA,kCACA,6BACA,gCACA","names":[],"sources":["../../../../src/ontology/valueFormatting/PropertyValueFormattingRule.ts"],"version":3,"file":"PropertyValueFormattingRule.d.ts"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reference to another property value or a string constant.
|
|
3
|
+
*/
|
|
4
|
+
export type PropertyTypeReferenceOrStringConstant = StringConstant | PropertyTypeReference;
|
|
5
|
+
export interface StringConstant {
|
|
6
|
+
type: "constant";
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
export interface PropertyTypeReference {
|
|
10
|
+
type: "propertyType";
|
|
11
|
+
propertyApiName: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;AAmBA,YAAY,wCACR,iBACA;AAEJ,iBAAiB,eAAe;CAC9B,MAAM;CACN;AACD;AAED,iBAAiB,sBAAsB;CACrC,MAAM;CACN;AACD","names":[],"sources":["../../../../src/ontology/valueFormatting/PropertyValueFormattingUtils.ts"],"version":3,"file":"PropertyValueFormattingUtils.d.ts"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osdk/api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0-beta.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"access": "public",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"@microsoft/api-extractor": "^7.52.11",
|
|
49
49
|
"ts-expect": "^1.3.0",
|
|
50
50
|
"typescript": "~5.5.4",
|
|
51
|
-
"@osdk/monorepo.api-extractor": "~0.
|
|
52
|
-
"@osdk/monorepo.tsconfig": "~0.
|
|
51
|
+
"@osdk/monorepo.api-extractor": "~0.5.0-beta.1",
|
|
52
|
+
"@osdk/monorepo.tsconfig": "~0.5.0-beta.1"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|