@osdk/api 2.2.0-beta.9 → 2.3.0-beta.1

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.
Files changed (134) hide show
  1. package/CHANGELOG.md +136 -0
  2. package/build/browser/Logger.js +17 -0
  3. package/build/browser/Logger.js.map +1 -0
  4. package/build/browser/OsdkBase.js.map +1 -1
  5. package/build/browser/OsdkObjectFrom.js +2 -4
  6. package/build/browser/OsdkObjectFrom.js.map +1 -1
  7. package/build/browser/OsdkObjectFrom.test.js +3 -3
  8. package/build/browser/OsdkObjectFrom.test.js.map +1 -1
  9. package/build/browser/actions/Actions.js.map +1 -1
  10. package/build/browser/aggregate/AggregatableKeys.js.map +1 -1
  11. package/build/browser/derivedProperties/DerivedProperty.js.map +1 -1
  12. package/build/browser/derivedProperties/Expressions.js +2 -0
  13. package/build/browser/derivedProperties/Expressions.js.map +1 -0
  14. package/build/browser/derivedProperties/WithPropertiesAggregationOptions.js.map +1 -1
  15. package/build/browser/experimental/createMediaReference.js.map +1 -1
  16. package/build/browser/experimental/fetchPageByRid.js.map +1 -1
  17. package/build/browser/index.js.map +1 -1
  18. package/build/browser/mapping/DataValueMapping.js.map +1 -1
  19. package/build/browser/object/FetchPageArgs.js +1 -0
  20. package/build/browser/object/FetchPageArgs.js.map +1 -1
  21. package/build/browser/object/FetchPageResult.js.map +1 -1
  22. package/build/browser/objectSet/BulkLinkResult.js.map +1 -1
  23. package/build/browser/objectSet/ObjectSet.js.map +1 -1
  24. package/build/browser/objectSet/ObjectSet.test.js +400 -6
  25. package/build/browser/objectSet/ObjectSet.test.js.map +1 -1
  26. package/build/browser/ontology/ActionDefinition.js.map +1 -1
  27. package/build/browser/ontology/ObjectOrInterface.js +1 -0
  28. package/build/browser/ontology/ObjectOrInterface.js.map +1 -1
  29. package/build/browser/ontology/ObjectSpecifier.js.map +1 -1
  30. package/build/browser/ontology/PrimaryKeyTypes.js.map +1 -1
  31. package/build/browser/ontology/QueryDefinition.js.map +1 -1
  32. package/build/browser/ontology/SimplePropertyDef.js.map +1 -1
  33. package/build/browser/queries/Queries.js.map +1 -1
  34. package/build/browser/test/EmployeeApiTest.js.map +1 -1
  35. package/build/browser/util/IncludeValuesExtending.js +2 -0
  36. package/build/browser/util/IncludeValuesExtending.js.map +1 -0
  37. package/build/cjs/{FilteredPropertyKeys-qAMesbuN.d.cts → ObjectSet-6WzPM-IC.d.cts} +202 -63
  38. package/build/cjs/index.d.cts +33 -7
  39. package/build/cjs/public/unstable.d.cts +5 -5
  40. package/build/esm/Logger.js +17 -0
  41. package/build/esm/Logger.js.map +1 -0
  42. package/build/esm/OsdkBase.js.map +1 -1
  43. package/build/esm/OsdkObjectFrom.js +2 -4
  44. package/build/esm/OsdkObjectFrom.js.map +1 -1
  45. package/build/esm/OsdkObjectFrom.test.js +3 -3
  46. package/build/esm/OsdkObjectFrom.test.js.map +1 -1
  47. package/build/esm/actions/Actions.js.map +1 -1
  48. package/build/esm/aggregate/AggregatableKeys.js.map +1 -1
  49. package/build/esm/derivedProperties/DerivedProperty.js.map +1 -1
  50. package/build/esm/derivedProperties/Expressions.js +2 -0
  51. package/build/esm/derivedProperties/Expressions.js.map +1 -0
  52. package/build/esm/derivedProperties/WithPropertiesAggregationOptions.js.map +1 -1
  53. package/build/esm/experimental/createMediaReference.js.map +1 -1
  54. package/build/esm/experimental/fetchPageByRid.js.map +1 -1
  55. package/build/esm/index.js.map +1 -1
  56. package/build/esm/mapping/DataValueMapping.js.map +1 -1
  57. package/build/esm/object/FetchPageArgs.js +1 -0
  58. package/build/esm/object/FetchPageArgs.js.map +1 -1
  59. package/build/esm/object/FetchPageResult.js.map +1 -1
  60. package/build/esm/objectSet/BulkLinkResult.js.map +1 -1
  61. package/build/esm/objectSet/ObjectSet.js.map +1 -1
  62. package/build/esm/objectSet/ObjectSet.test.js +400 -6
  63. package/build/esm/objectSet/ObjectSet.test.js.map +1 -1
  64. package/build/esm/ontology/ActionDefinition.js.map +1 -1
  65. package/build/esm/ontology/ObjectOrInterface.js +1 -0
  66. package/build/esm/ontology/ObjectOrInterface.js.map +1 -1
  67. package/build/esm/ontology/ObjectSpecifier.js.map +1 -1
  68. package/build/esm/ontology/PrimaryKeyTypes.js.map +1 -1
  69. package/build/esm/ontology/QueryDefinition.js.map +1 -1
  70. package/build/esm/ontology/SimplePropertyDef.js.map +1 -1
  71. package/build/esm/queries/Queries.js.map +1 -1
  72. package/build/esm/test/EmployeeApiTest.js.map +1 -1
  73. package/build/esm/util/IncludeValuesExtending.js +2 -0
  74. package/build/esm/util/IncludeValuesExtending.js.map +1 -0
  75. package/build/types/Logger.d.ts +19 -0
  76. package/build/types/Logger.d.ts.map +1 -0
  77. package/build/types/OsdkBase.d.ts +9 -7
  78. package/build/types/OsdkBase.d.ts.map +1 -1
  79. package/build/types/OsdkObjectFrom.d.ts +2 -0
  80. package/build/types/OsdkObjectFrom.d.ts.map +1 -1
  81. package/build/types/actions/Actions.d.ts +4 -4
  82. package/build/types/actions/Actions.d.ts.map +1 -1
  83. package/build/types/aggregate/AggregatableKeys.d.ts +10 -8
  84. package/build/types/aggregate/AggregatableKeys.d.ts.map +1 -1
  85. package/build/types/derivedProperties/DerivedProperty.d.ts +44 -16
  86. package/build/types/derivedProperties/DerivedProperty.d.ts.map +1 -1
  87. package/build/types/derivedProperties/Expressions.d.ts +53 -0
  88. package/build/types/derivedProperties/Expressions.d.ts.map +1 -0
  89. package/build/types/derivedProperties/WithPropertiesAggregationOptions.d.ts +6 -3
  90. package/build/types/derivedProperties/WithPropertiesAggregationOptions.d.ts.map +1 -1
  91. package/build/types/experimental/createMediaReference.d.ts +2 -3
  92. package/build/types/experimental/createMediaReference.d.ts.map +1 -1
  93. package/build/types/experimental/fetchPageByRid.d.ts +1 -1
  94. package/build/types/experimental/fetchPageByRid.d.ts.map +1 -1
  95. package/build/types/index.d.ts +43 -43
  96. package/build/types/index.d.ts.map +1 -1
  97. package/build/types/mapping/DataValueMapping.d.ts +4 -0
  98. package/build/types/mapping/DataValueMapping.d.ts.map +1 -1
  99. package/build/types/object/FetchPageArgs.d.ts +37 -7
  100. package/build/types/object/FetchPageArgs.d.ts.map +1 -1
  101. package/build/types/object/FetchPageResult.d.ts +1 -1
  102. package/build/types/object/FetchPageResult.d.ts.map +1 -1
  103. package/build/types/objectSet/BulkLinkResult.d.ts +1 -1
  104. package/build/types/objectSet/ObjectSet.d.ts +138 -32
  105. package/build/types/objectSet/ObjectSet.d.ts.map +1 -1
  106. package/build/types/objectSet/ObjectSet.test.d.ts +2 -1
  107. package/build/types/objectSet/ObjectSet.test.d.ts.map +1 -1
  108. package/build/types/ontology/ActionDefinition.d.ts +1 -1
  109. package/build/types/ontology/ActionDefinition.d.ts.map +1 -1
  110. package/build/types/ontology/ObjectOrInterface.d.ts +12 -5
  111. package/build/types/ontology/ObjectOrInterface.d.ts.map +1 -1
  112. package/build/types/ontology/ObjectSpecifier.d.ts +2 -1
  113. package/build/types/ontology/ObjectSpecifier.d.ts.map +1 -1
  114. package/build/types/ontology/PrimaryKeyTypes.d.ts +1 -1
  115. package/build/types/ontology/PrimaryKeyTypes.d.ts.map +1 -1
  116. package/build/types/ontology/QueryDefinition.d.ts +2 -0
  117. package/build/types/ontology/QueryDefinition.d.ts.map +1 -1
  118. package/build/types/ontology/SimplePropertyDef.d.ts +4 -4
  119. package/build/types/ontology/SimplePropertyDef.d.ts.map +1 -1
  120. package/build/types/public/unstable.d.ts +3 -3
  121. package/build/types/public/unstable.d.ts.map +1 -1
  122. package/build/types/queries/Queries.d.ts +2 -2
  123. package/build/types/queries/Queries.d.ts.map +1 -1
  124. package/build/types/test/EmployeeApiTest.d.ts +25 -3
  125. package/build/types/test/EmployeeApiTest.d.ts.map +1 -1
  126. package/build/types/util/IncludeValuesExtending.d.ts +4 -0
  127. package/build/types/util/IncludeValuesExtending.d.ts.map +1 -0
  128. package/package.json +4 -4
  129. package/build/browser/ontology/FilteredPropertyKeys.js +0 -2
  130. package/build/browser/ontology/FilteredPropertyKeys.js.map +0 -1
  131. package/build/esm/ontology/FilteredPropertyKeys.js +0 -2
  132. package/build/esm/ontology/FilteredPropertyKeys.js.map +0 -1
  133. package/build/types/ontology/FilteredPropertyKeys.d.ts +0 -6
  134. package/build/types/ontology/FilteredPropertyKeys.d.ts.map +0 -1
@@ -4,31 +4,50 @@ import type { ObjectOrInterfaceDefinition, PropertyKeys } from "../ontology/Obje
4
4
  import type { CompileTimeMetadata } from "../ontology/ObjectTypeDefinition.js";
5
5
  import type { SimplePropertyDef } from "../ontology/SimplePropertyDef.js";
6
6
  import type { LinkedType, LinkNames } from "../util/LinkUtils.js";
7
- import type { CollectWithPropAggregations } from "./WithPropertiesAggregationOptions.js";
7
+ import type { DatetimeExpressions, DefinitionForType, NumericExpressions } from "./Expressions.js";
8
+ import type { CollectWithPropAggregations, MinMaxWithPropAggregateOption } from "./WithPropertiesAggregationOptions.js";
9
+ declare const DerivedPropertyDefinitionBrand: unique symbol;
8
10
  export declare namespace DerivedProperty {
9
- type SelectorResult<T extends SimplePropertyDef> = {
10
- type: T
11
+ export interface Definition<
12
+ T extends SimplePropertyDef,
13
+ Q extends ObjectOrInterfaceDefinition
14
+ > {
15
+ readonly [DerivedPropertyDefinitionBrand]: true;
16
+ }
17
+ export interface NumericPropertyDefinition<
18
+ T extends SimplePropertyDef,
19
+ Q extends ObjectOrInterfaceDefinition
20
+ > extends Definition<T, Q>, NumericExpressions<Q, T> {}
21
+ export interface DatetimePropertyDefinition<
22
+ T extends SimplePropertyDef,
23
+ Q extends ObjectOrInterfaceDefinition
24
+ > extends Definition<T, Q>, DatetimeExpressions<Q, T> {}
25
+ export type Clause<Q extends ObjectOrInterfaceDefinition> = {
26
+ [key: string]: DerivedPropertyCreator<Q, SimplePropertyDef>
11
27
  };
12
- type Clause<Q extends ObjectOrInterfaceDefinition> = {
13
- [key: string]: Selector<Q, SimplePropertyDef>
14
- };
15
- type Selector<
16
- Q extends ObjectOrInterfaceDefinition,
17
- T extends SimplePropertyDef
18
- > = (baseObjectSet: DerivedProperty.Builder<Q, false>) => SelectorResult<T>;
19
- interface Builder<
28
+ interface BaseBuilder<
20
29
  Q extends ObjectOrInterfaceDefinition,
21
30
  CONSTRAINED extends boolean
22
31
  > extends Filterable<Q, CONSTRAINED>, Pivotable<Q, CONSTRAINED> {}
23
- interface AggregateBuilder<
32
+ export interface Builder<
33
+ Q extends ObjectOrInterfaceDefinition,
34
+ CONSTRAINED extends boolean
35
+ > extends BaseBuilder<Q, CONSTRAINED>, Selectable<Q>, Constant<Q> {}
36
+ export interface AggregateBuilder<
24
37
  Q extends ObjectOrInterfaceDefinition,
25
38
  CONSTRAINED extends boolean
26
- > extends Builder<Q, CONSTRAINED>, Aggregatable<Q> {}
27
- interface SelectPropertyBuilder<
39
+ > extends BaseBuilder<Q, CONSTRAINED>, Aggregatable<Q> {}
40
+ export interface SelectPropertyBuilder<
28
41
  Q extends ObjectOrInterfaceDefinition,
29
42
  CONSTRAINED extends boolean
30
43
  > extends AggregateBuilder<Q, CONSTRAINED>, Selectable<Q> {}
44
+ export type ValidParts = "DAYS" | "MONTHS" | "QUARTERS" | "YEARS";
45
+ export {};
31
46
  }
47
+ export type DerivedPropertyCreator<
48
+ Q extends ObjectOrInterfaceDefinition,
49
+ T extends SimplePropertyDef
50
+ > = (baseObjectSet: DerivedProperty.Builder<Q, false>) => DerivedProperty.Definition<T, Q> | DerivedProperty.NumericPropertyDefinition<T, Q> | DerivedProperty.DatetimePropertyDefinition<T, Q>;
32
51
  type BuilderTypeFromConstraint<
33
52
  Q extends ObjectOrInterfaceDefinition,
34
53
  CONSTRAINED extends boolean
@@ -45,14 +64,23 @@ type Pivotable<
45
64
  > = {
46
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>
47
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
+ };
48
76
  type Aggregatable<Q extends ObjectOrInterfaceDefinition> = {
49
77
  readonly aggregate: <V extends ValidAggregationKeys<Q, "withPropertiesAggregate">>(aggregationSpecifier: V, opts?: V extends `${any}:${infer P}` ? P extends CollectWithPropAggregations ? {
50
78
  limit: number
51
79
  } : P extends "approximatePercentile" ? {
52
80
  percentile: number
53
- } : never : never) => DerivedProperty.SelectorResult<V extends `${infer N}:${infer P}` ? P extends CollectWithPropAggregations ? Array<CompileTimeMetadata<Q>["properties"][N]["type"]> | undefined : P extends "approximateDistinct" | "exactDistinct" | "$count" ? "integer" : "double" | undefined : V extends "$count" ? "integer" : never>
81
+ } : never : never) => DefinitionForType<Q, V extends `${infer N}:${infer P}` ? P extends CollectWithPropAggregations ? SimplePropertyDef.Make<CompileTimeMetadata<Q>["properties"][N]["type"], "nullable", "array"> : P extends MinMaxWithPropAggregateOption ? SimplePropertyDef.Make<CompileTimeMetadata<Q>["properties"][N]["type"], "nullable", "single"> : P extends "approximateDistinct" | "exactDistinct" ? SimplePropertyDef.Make<"integer", "non-nullable", "single"> : SimplePropertyDef.Make<"double", "nullable", "single"> : V extends "$count" ? SimplePropertyDef.Make<"integer", "non-nullable", "single"> : never>
54
82
  };
55
83
  type Selectable<Q extends ObjectOrInterfaceDefinition> = {
56
- readonly selectProperty: <R extends PropertyKeys<Q>>(propertyName: R) => DerivedProperty.SelectorResult<SimplePropertyDef.Make<CompileTimeMetadata<Q>["properties"][R]["type"], CompileTimeMetadata<Q>["properties"][R]["nullable"], CompileTimeMetadata<Q>["properties"][R]["multiplicity"]>>
84
+ readonly selectProperty: <R extends PropertyKeys<Q>>(propertyName: R) => DefinitionForType<Q, SimplePropertyDef.Make<CompileTimeMetadata<Q>["properties"][R]["type"], CompileTimeMetadata<Q>["properties"][R]["nullable"] extends true ? "nullable" : "non-nullable", CompileTimeMetadata<Q>["properties"][R]["multiplicity"] extends true ? "array" : "single">>
57
85
  };
58
86
  export {};
@@ -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,cAAc,mCAAmC,uCAAwC;AAEzF,yBAAiB;MACH,eACV,UAAU,qBACR;EACF,MAAM;CACP;MAEW,OACV,UAAU,+BACR;iBACa,SAAS,GAAG;CAC5B;MAEW;EACV,UAAU;EACV,UAAU;MAEVA,eAAe,gBAAgB,QAAQ,GAAG,WACvC,eAAe;WAEH;EACf,UAAU;EACV;WACQ,WAAW,GAAG,cAAc,UAAU,GAAG,aAAa,CAC/D;WAEgB;EACf,UAAU;EACV;WACQ,QAAQ,GAAG,cAAc,aAAa,GAAG,CAClD;WAEgB;EACf,UAAU;EACV;WACQ,iBAAiB,GAAG,cAAc,WAAW,GAAG,CACzD;;KAGE;CACH,UAAU;CACV;IACE,oBAAoB,OAAO,gBAAgB,iBAAiB,GAAG,QAC/D,gBAAgB,sBAAsB,GAAG;KAExC;CACH,UAAU;CACV;IACE;UACO,QACPC,QAAQ,YAAY,OACjB,0BAA0B,GAAG;AACnC;KAEI;CACH,UAAU;CACV;IACE;UACO,UAAU,UAAU,UAAU,IACrCC,MAAM,MACH,oBAAoB,OACrB,gBAAgB,iBAAiB,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,gBAAgB,eACnB,mBAAmB,WAAW,MAC1B,UAAU,8BACR,MAAM,oBAAoB,GAAG,cAAc,GAAG,uBAChD,UAAU,wBAAwB,kBAAkB,WAAW,YAC/D,uBACA,UAAU,WAAW;AAG5B;KAEI,WAAW,UAAU,+BAA+B;UAC9C,iBAAiB,UAAU,aAAa,IAC/CC,cAAc,MACX,gBAAgB,eACnB,kBAAkB,KAChB,oBAAoB,GAAG,cAAc,GAAG,SACxC,oBAAoB,GAAG,cAAc,GAAG,aACxC,oBAAoB,GAAG,cAAc,GAAG;AAG7C","names":["baseObjectSet: DerivedProperty.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"}
1
+ {"mappings":"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","names":["DerivedPropertyDefinitionBrand: unique symbol","baseObjectSet: DerivedProperty.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"}
@@ -0,0 +1,53 @@
1
+ import type { ObjectOrInterfaceDefinition, PropertyKeys } from "../ontology/ObjectOrInterface.js";
2
+ import type { CompileTimeMetadata } from "../ontology/ObjectTypeDefinition.js";
3
+ import type { SimplePropertyDef } from "../ontology/SimplePropertyDef.js";
4
+ import type { WirePropertyTypes } from "../ontology/WirePropertyTypes.js";
5
+ import type { DerivedProperty } from "./DerivedProperty.js";
6
+ type WithPropertiesNumerics = "integer" | "double" | "float" | "short" | "long";
7
+ type WithPropertiesDatetime = "datetime" | "timestamp";
8
+ export type DefinitionForType<
9
+ Q extends ObjectOrInterfaceDefinition,
10
+ T extends SimplePropertyDef
11
+ > = SimplePropertyDef.ExtractMultiplicity<T> extends "array" ? DerivedProperty.Definition<T, Q> : SimplePropertyDef.ExtractWirePropertyType<T> extends WithPropertiesNumerics ? DerivedProperty.NumericPropertyDefinition<T, Q> : SimplePropertyDef.ExtractWirePropertyType<T> extends WithPropertiesDatetime ? DerivedProperty.DatetimePropertyDefinition<T, Q> : DerivedProperty.Definition<T, Q>;
12
+ type NumericExpressionArg<Q extends ObjectOrInterfaceDefinition> = number | DerivedProperty.NumericPropertyDefinition<any, Q>;
13
+ type ReturnTypeForNumericMethod<
14
+ Q extends ObjectOrInterfaceDefinition,
15
+ LEFT extends WirePropertyTypes,
16
+ RIGHT extends WirePropertyTypes
17
+ > = "double" extends (LEFT | RIGHT) ? DerivedProperty.NumericPropertyDefinition<SimplePropertyDef.Make<"double", "non-nullable", "single">, Q> : "float" extends (LEFT | RIGHT) ? DerivedProperty.NumericPropertyDefinition<SimplePropertyDef.Make<"double", "non-nullable", "single">, Q> : "long" extends (LEFT | RIGHT) ? DerivedProperty.NumericPropertyDefinition<SimplePropertyDef.Make<"long", "non-nullable", "single">, Q> : DerivedProperty.NumericPropertyDefinition<SimplePropertyDef.Make<"integer", "non-nullable", "single">, Q>;
18
+ type ReturnTypeForDatetimeMethod<
19
+ Q extends ObjectOrInterfaceDefinition,
20
+ LEFT extends WirePropertyTypes,
21
+ RIGHT extends WirePropertyTypes
22
+ > = "timestamp" extends (LEFT | RIGHT) ? DerivedProperty.DatetimePropertyDefinition<SimplePropertyDef.Make<"timestamp", "non-nullable", "single">, Q> : DerivedProperty.DatetimePropertyDefinition<SimplePropertyDef.Make<"datetime", "non-nullable", "single">, Q>;
23
+ type ExtractWirePropertyTypeFromNumericArg<
24
+ Q extends ObjectOrInterfaceDefinition,
25
+ ARG extends NumericExpressionArg<Q>
26
+ > = ARG extends number ? "double" : ARG extends DerivedProperty.NumericPropertyDefinition<infer T, Q> ? T extends SimplePropertyDef ? SimplePropertyDef.ExtractWirePropertyType<T> : never : ARG extends PropertyKeys.Filtered<Q, WithPropertiesNumerics> ? NonNullable<CompileTimeMetadata<Q>["properties"][ARG]["type"]> : never;
27
+ export type NumericExpressions<
28
+ Q extends ObjectOrInterfaceDefinition,
29
+ LEFT_PROPERTY_TYPE extends SimplePropertyDef
30
+ > = {
31
+ readonly add: <A extends NumericExpressionArg<Q>>(value: A) => ReturnTypeForNumericMethod<Q, SimplePropertyDef.ExtractWirePropertyType<LEFT_PROPERTY_TYPE>, ExtractWirePropertyTypeFromNumericArg<Q, A>>
32
+ readonly subtract: <A extends NumericExpressionArg<Q>>(value: A) => ReturnTypeForNumericMethod<Q, SimplePropertyDef.ExtractWirePropertyType<LEFT_PROPERTY_TYPE>, ExtractWirePropertyTypeFromNumericArg<Q, A>>
33
+ readonly multiply: <A extends NumericExpressionArg<Q>>(value: A) => ReturnTypeForNumericMethod<Q, SimplePropertyDef.ExtractWirePropertyType<LEFT_PROPERTY_TYPE>, ExtractWirePropertyTypeFromNumericArg<Q, A>>
34
+ readonly divide: <A extends NumericExpressionArg<Q>>(value: A) => ReturnTypeForNumericMethod<Q, SimplePropertyDef.ExtractWirePropertyType<LEFT_PROPERTY_TYPE>, ExtractWirePropertyTypeFromNumericArg<Q, A>>
35
+ readonly abs: () => DerivedProperty.NumericPropertyDefinition<LEFT_PROPERTY_TYPE, Q>
36
+ readonly negate: () => DerivedProperty.NumericPropertyDefinition<LEFT_PROPERTY_TYPE, Q>
37
+ readonly max: <A extends NumericExpressionArg<Q>>(value: A) => ReturnTypeForNumericMethod<Q, SimplePropertyDef.ExtractWirePropertyType<LEFT_PROPERTY_TYPE>, ExtractWirePropertyTypeFromNumericArg<Q, A>>
38
+ readonly min: <A extends NumericExpressionArg<Q>>(value: A) => ReturnTypeForNumericMethod<Q, SimplePropertyDef.ExtractWirePropertyType<LEFT_PROPERTY_TYPE>, ExtractWirePropertyTypeFromNumericArg<Q, A>>
39
+ };
40
+ type DatetimeExpressionArg<Q extends ObjectOrInterfaceDefinition> = DerivedProperty.DatetimePropertyDefinition<any, Q>;
41
+ type ExtractPropertyTypeFromDatetimeArg<
42
+ Q extends ObjectOrInterfaceDefinition,
43
+ ARG extends DatetimeExpressionArg<Q>
44
+ > = ARG extends DerivedProperty.DatetimePropertyDefinition<infer T, Q> ? T extends SimplePropertyDef ? SimplePropertyDef.ExtractWirePropertyType<T> : never : ARG extends PropertyKeys.Filtered<Q, WithPropertiesDatetime> ? NonNullable<CompileTimeMetadata<Q>["properties"][ARG]["type"]> : never;
45
+ export type DatetimeExpressions<
46
+ Q extends ObjectOrInterfaceDefinition,
47
+ LEFT_PROPERTY_TYPE extends SimplePropertyDef
48
+ > = {
49
+ readonly min: <A extends DatetimeExpressionArg<Q>>(value: A) => ReturnTypeForDatetimeMethod<Q, SimplePropertyDef.ExtractWirePropertyType<LEFT_PROPERTY_TYPE>, ExtractPropertyTypeFromDatetimeArg<Q, A>>
50
+ readonly max: (value: DatetimeExpressionArg<Q>) => ReturnTypeForDatetimeMethod<Q, SimplePropertyDef.ExtractWirePropertyType<LEFT_PROPERTY_TYPE>, ExtractPropertyTypeFromDatetimeArg<Q, typeof value>>
51
+ readonly extractPart: (value: DerivedProperty.ValidParts) => DerivedProperty.Definition<SimplePropertyDef.Make<"string", "non-nullable", "single">, Q>
52
+ };
53
+ export {};
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cACE,6BACA,oBACK,kCAAmC;AAC1C,cAAc,2BAA2B,qCAAsC;AAC/E,cAAc,yBAAyB,kCAAmC;AAC1E,cAAc,yBAAyB,kCAAmC;AAC1E,cAAc,uBAAuB,sBAAuB;KAEvD,yBACD,YACA,WACA,UACA,UACA;KAEC,yBACD,aACA;AAEJ,YAAY;CACV,UAAU;CACV,UAAU;IACR,kBAAkB,oBAAoB,WAAW,UACjD,gBAAgB,WAAW,GAAG,KAC9B,kBAAkB,wBAAwB,WAAW,yBACnD,gBAAgB,0BAA0B,GAAG,KAC/C,kBAAkB,wBAAwB,WAAW,yBACnD,gBAAgB,2BAA2B,GAAG,KAChD,gBAAgB,WAAW,GAAG;KAE7B,qBAAqB,UAAU,wCAEhC,gBAAgB,+BAA+B;KAE9C;CACH,UAAU;CACV,aAAa;CACb,cAAc;IACZ,kBAAkB,OAAO,SAAS,gBAAgB,0BAClD,kBAAkB,KAAK,UAAU,gBAAgB,WACjD,KAEA,iBAAiB,OAAO,SAAS,gBAAgB,0BAC/C,kBAAkB,KAAK,UAAU,gBAAgB,WACjD,KAEF,gBAAgB,OAAO,SAAS,gBAAgB,0BAC9C,kBAAkB,KAAK,QAAQ,gBAAgB,WAC/C,KAEF,gBAAgB,0BAChB,kBAAkB,KAAK,WAAW,gBAAgB,WAClD;KAGC;CACH,UAAU;CACV,aAAa;CACb,cAAc;IACZ,qBAAqB,OAAO,SAC5B,gBAAgB,2BAChB,kBAAkB,KAAK,aAAa,gBAAgB,WACpD,KAEA,gBAAgB,2BAChB,kBAAkB,KAAK,YAAY,gBAAgB,WACnD;KAGC;CACH,UAAU;CACV,YAAY,qBAAqB;IAC/B,qBAAqB,WACrB,YAAY,gBAAgB,gCAAgC,GAAG,KAC7D,UAAU,oBAAoB,kBAAkB,wBAAwB,aAE1E,YAAY,aAAa,SAAS,GAAG,0BACnC,YAAY,oBAAoB,GAAG,cAAc,KAAK;AAG5D,YAAY;CACV,UAAU;CACV,2BAA2B;IACzB;UACO,MAAM,UAAU,qBAAqB,IAC5CA,OAAO,MACJ,2BACH,GACA,kBAAkB,wBAAwB,qBAC1C,sCAAsC,GAAG;UAGlC,WAAW,UAAU,qBAAqB,IACjDA,OAAO,MACJ,2BACH,GACA,kBAAkB,wBAAwB,qBAC1C,sCAAsC,GAAG;UAGlC,WAAW,UAAU,qBAAqB,IACjDA,OAAO,MACJ,2BACH,GACA,kBAAkB,wBAAwB,qBAC1C,sCAAsC,GAAG;UAGlC,SAAS,UAAU,qBAAqB,IAC/CA,OAAO,MACJ,2BACH,GACA,kBAAkB,wBAAwB,qBAC1C,sCAAsC,GAAG;UAGlC,WAAW,gBAAgB,0BAClC,oBACA;UAGO,cAAc,gBAAgB,0BACrC,oBACA;UAGO,MAAM,UAAU,qBAAqB,IAC5CA,OAAO,MACJ,2BACH,GACA,kBAAkB,wBAAwB,qBAC1C,sCAAsC,GAAG;UAGlC,MAAM,UAAU,qBAAqB,IAC5CA,OAAO,MACJ,2BACH,GACA,kBAAkB,wBAAwB,qBAC1C,sCAAsC,GAAG;AAE5C;KAEI,sBAAsB,UAAU,+BACnC,gBAAgB,gCAAgC;KAE7C;CACH,UAAU;CACV,YAAY,sBAAsB;IAChC,YAAY,gBAAgB,iCAAiC,GAAG,KAChE,UAAU,oBAAoB,kBAAkB,wBAAwB,aAExE,YAAY,aAAa,SAAS,GAAG,0BACnC,YAAY,oBAAoB,GAAG,cAAc,KAAK;AAG5D,YAAY;CACV,UAAU;CACV,2BAA2B;IACzB;UACO,MAAM,UAAU,sBAAsB,IAC7CA,OAAO,MACJ,4BACH,GACA,kBAAkB,wBAAwB,qBAC1C,mCAAmC,GAAG;UAE/B,MACPC,OAAO,sBAAsB,OAC1B,4BACH,GACA,kBAAkB,wBAAwB,qBAC1C,mCAAmC,UAAU;UAEtC,cACPC,OAAO,gBAAgB,eACpB,gBAAgB,WACnB,kBAAkB,KAAK,UAAU,gBAAgB,WACjD;AAEH","names":["value: A","value: DatetimeExpressionArg<Q>","value: DerivedProperty.ValidParts"],"sources":["../../../src/derivedProperties/Expressions.ts"],"version":3,"file":"Expressions.d.ts"}
@@ -1,4 +1,7 @@
1
+ export type DistinctWithPropAggregateOption = "approximateDistinct" | "exactDistinct";
1
2
  export type CollectWithPropAggregations = "collectSet" | "collectList";
2
- export type BaseWithPropAggregations = "approximateDistinct" | "exactDistinct";
3
- export type StringWithPropAggregateOption = BaseWithPropAggregations | CollectWithPropAggregations;
4
- export type NumericWithPropAggregateOption = "min" | "max" | "sum" | "avg" | "approximatePercentile" | BaseWithPropAggregations | CollectWithPropAggregations;
3
+ export type BaseWithPropAggregations = DistinctWithPropAggregateOption | CollectWithPropAggregations;
4
+ export type MinMaxWithPropAggregateOption = "min" | "max";
5
+ export type DatetimeWithPropAggregateOption = MinMaxWithPropAggregateOption | BaseWithPropAggregations;
6
+ export type NumericWithPropAggregateOption = "sum" | "avg" | "approximatePercentile" | MinMaxWithPropAggregateOption | BaseWithPropAggregations;
7
+ export type ValidCollectPropertyKeysForSpecialTypes = "attachment" | "geopoint" | "geoshape" | "boolean";
@@ -1 +1 @@
1
- {"mappings":"AAgBA,YAAY,8BAA8B,eAAe;AAEzD,YAAY,2BACR,wBACA;AAEJ,YAAY,gCACR,2BACA;AAEJ,YAAY,iCACR,QACA,QACA,QACA,QACA,0BACA,2BACA","names":[],"sources":["../../../src/derivedProperties/WithPropertiesAggregationOptions.ts"],"version":3,"file":"WithPropertiesAggregationOptions.d.ts"}
1
+ {"mappings":"AAgBA,YAAY,kCACR,wBACA;AAEJ,YAAY,8BAA8B,eAAe;AAEzD,YAAY,2BACR,kCACA;AAEJ,YAAY,gCAAgC,QAAQ;AAEpD,YAAY,kCACR,gCACA;AAEJ,YAAY,iCACR,QACA,QACA,0BACA,gCACA;AAEJ,YAAY,0CACR,eACA,aACA,aACA","names":[],"sources":["../../../src/derivedProperties/WithPropertiesAggregationOptions.ts"],"version":3,"file":"WithPropertiesAggregationOptions.d.ts"}
@@ -1,6 +1,5 @@
1
1
  import type { MediaReference } from "../object/Media.js";
2
- import type { FilteredPropertyKeys } from "../ontology/FilteredPropertyKeys.js";
3
- import type { ObjectOrInterfaceDefinition } from "../ontology/ObjectOrInterface.js";
2
+ import type { ObjectOrInterfaceDefinition, PropertyKeys } from "../ontology/ObjectOrInterface.js";
4
3
  import type { Experiment } from "./Experiment.js";
5
4
  /**
6
5
  * @experimental This feature is experimental and might change in the future.
@@ -16,7 +15,7 @@ import type { Experiment } from "./Experiment.js";
16
15
  */
17
16
  type createMediaReference = <
18
17
  Q extends ObjectOrInterfaceDefinition,
19
- const L extends FilteredPropertyKeys<Q, "mediaReference">
18
+ const L extends PropertyKeys.Filtered<Q, "mediaReference">
20
19
  >(args: {
21
20
  data: Blob
22
21
  fileName: string
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,sBAAsB,oBAAqB;AACzD,cAAc,4BAA4B,qCAAsC;AAChF,cAAc,mCAAmC,kCAAmC;AACpF,cAAc,kBAAkB,iBAAkB;;;;;;;;;;;;;KAc7C;CACH,UAAU;OACJ,UAAU,qBAAqB,GAAG;EAExCA,MAAM;CACJ,MAAM;CACN;CACA,YAAY;CACZ,cAAc;AACf,MACE,QAAQ;AAEb,OAAO,cAAMC,yDACX,WACE,SACA,2DACA;CAAE,sBAAsB;AAAsB","names":["args: {\n data: Blob;\n fileName: string;\n objectType: Q;\n propertyType: L;\n }","__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference:\n Experiment<\n \"2.1.0\",\n \"__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference\",\n { createMediaReference: createMediaReference }\n >"],"sources":["../../../src/experimental/createMediaReference.ts"],"version":3,"file":"createMediaReference.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,sBAAsB,oBAAqB;AACzD,cACE,6BACA,oBACK,kCAAmC;AAC1C,cAAc,kBAAkB,iBAAkB;;;;;;;;;;;;;KAc7C;CACH,UAAU;OACJ,UAAU,aAAa,SAAS,GAAG;EAEzCA,MAAM;CACJ,MAAM;CACN;CACA,YAAY;CACZ,cAAc;AACf,MACE,QAAQ;AAEb,OAAO,cAAMC,yDACX,WACE,SACA,2DACA;CAAE,sBAAsB;AAAsB","names":["args: {\n data: Blob;\n fileName: string;\n objectType: Q;\n propertyType: L;\n }","__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference:\n Experiment<\n \"2.1.0\",\n \"__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference\",\n { createMediaReference: createMediaReference }\n >"],"sources":["../../../src/experimental/createMediaReference.ts"],"version":3,"file":"createMediaReference.d.ts"}
@@ -8,7 +8,7 @@ type fetchPageByRidFn = <
8
8
  const R extends boolean,
9
9
  const S extends NullabilityAdherence,
10
10
  const T extends boolean
11
- >(objectType: Q, rids: string[], options?: FetchPageArgs<Q, L, R, any, S>) => Promise<FetchPageResult<Q, L, R, S, T>>;
11
+ >(objectType: Q, rids: string[], options?: FetchPageArgs<Q, L, R, any, S, T>) => Promise<FetchPageResult<Q, L, R, S, T>>;
12
12
  export declare const __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid: Experiment<"2.2.0", "__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid", {
13
13
  fetchPageByRid: fetchPageByRidFn
14
14
  }>;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,eACA,4BACK,4BAA6B;AACpC,cAAc,uBAAuB,8BAA+B;AAEpE,cACE,6BACA,oBACK,kCAAmC;AAC1C,cAAc,kBAAkB,iBAAkB;KAE7C;CACH,UAAU;OACJ,UAAU,aAAa;OACvB;OACA,UAAU;OACV;EAENA,YAAY,GACZC,gBACAC,UAAU,cAAc,GAAG,GAAG,QAAQ,OACnC,QAAQ,gBAAgB,GAAG,GAAG,GAAG,GAAG;AAEzC,OAAO,cAAMC,mDAAmD,WAC9D,SACA,qDACA;CAAE,gBAAgB;AAAkB","names":["objectType: Q","rids: string[]","options?: FetchPageArgs<Q, L, R, any, S>","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid: Experiment<\n \"2.2.0\",\n \"__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid\",\n { fetchPageByRid: fetchPageByRidFn }\n>"],"sources":["../../../src/experimental/fetchPageByRid.ts"],"version":3,"file":"fetchPageByRid.d.ts"}
1
+ {"mappings":"AAgBA,cACE,eACA,4BACK,4BAA6B;AACpC,cAAc,uBAAuB,8BAA+B;AAEpE,cACE,6BACA,oBACK,kCAAmC;AAC1C,cAAc,kBAAkB,iBAAkB;KAE7C;CACH,UAAU;OACJ,UAAU,aAAa;OACvB;OACA,UAAU;OACV;EAENA,YAAY,GACZC,gBACAC,UAAU,cAAc,GAAG,GAAG,QAAQ,GAAG,OACtC,QAAQ,gBAAgB,GAAG,GAAG,GAAG,GAAG;AAEzC,OAAO,cAAMC,mDAAmD,WAC9D,SACA,qDACA;CAAE,gBAAgB;AAAkB","names":["objectType: Q","rids: string[]","options?: FetchPageArgs<Q, L, R, any, S, T>","__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid: Experiment<\n \"2.2.0\",\n \"__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid\",\n { fetchPageByRid: fetchPageByRidFn }\n>"],"sources":["../../../src/experimental/fetchPageByRid.ts"],"version":3,"file":"fetchPageByRid.d.ts"}
@@ -1,48 +1,48 @@
1
- export type { ActionReturnTypeForOptions } from "./actions/ActionReturnTypeForOptions.js";
2
- export type { ActionEditResponse, ActionParam, ActionValidationResponse, ApplyActionOptions, ApplyBatchActionOptions } from "./actions/Actions.js";
3
- export type { ValidAggregationKeys } from "./aggregate/AggregatableKeys.js";
4
- export type { AggregateOpts } from "./aggregate/AggregateOpts.js";
5
- export type { AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy } from "./aggregate/AggregateOptsThatErrors.js";
6
- export type { AggregationResultsWithGroups } from "./aggregate/AggregationResultsWithGroups.js";
7
- export type { AggregationResultsWithoutGroups } from "./aggregate/AggregationResultsWithoutGroups.js";
8
- export type { AggregationClause } from "./aggregate/AggregationsClause.js";
9
- export type { AggregationsResults } from "./aggregate/AggregationsResults.js";
10
- export type { GeoFilterOptions } from "./aggregate/GeoFilter.js";
1
+ export type { ActionReturnTypeForOptions } from "./actions/ActionReturnTypeForOptions.js";
2
+ export type { ActionEditResponse, ActionParam, ActionValidationResponse, ApplyActionOptions, ApplyBatchActionOptions } from "./actions/Actions.js";
3
+ export type { ValidAggregationKeys } from "./aggregate/AggregatableKeys.js";
4
+ export type { AggregateOpts } from "./aggregate/AggregateOpts.js";
5
+ export type { AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy } from "./aggregate/AggregateOptsThatErrors.js";
6
+ export type { AggregationResultsWithGroups } from "./aggregate/AggregationResultsWithGroups.js";
7
+ export type { AggregationResultsWithoutGroups } from "./aggregate/AggregationResultsWithoutGroups.js";
8
+ export type { AggregationClause } from "./aggregate/AggregationsClause.js";
9
+ export type { AggregationsResults } from "./aggregate/AggregationsResults.js";
10
+ export type { GeoFilterOptions } from "./aggregate/GeoFilter.js";
11
11
  export { DistanceUnitMapping } from "./aggregate/WhereClause.js";
12
- export type { GeoFilter_Intersects, GeoFilter_Within, PossibleWhereClauseFilters, WhereClause } from "./aggregate/WhereClause.js";
13
- export type { OsdkObjectPropertyType } from "./Definitions.js";
14
- export type { OsdkObjectLinksObject, SingleLinkAccessor } from "./definitions/LinkDefinitions.js";
15
- export type { DerivedProperty } from "./derivedProperties/DerivedProperty.js";
12
+ export type { GeoFilter_Intersects, GeoFilter_Within, PossibleWhereClauseFilters, WhereClause } from "./aggregate/WhereClause.js";
13
+ export type { OsdkObjectPropertyType } from "./Definitions.js";
14
+ export type { OsdkObjectLinksObject, SingleLinkAccessor } from "./definitions/LinkDefinitions.js";
15
+ export type { DerivedProperty } from "./derivedProperties/DerivedProperty.js";
16
16
  export { DurationMapping } from "./groupby/GroupByClause.js";
17
- export type { AllGroupByValues, GroupByClause, GroupByRange } from "./groupby/GroupByClause.js";
18
- export type { AllowedBucketKeyTypes, AllowedBucketTypes, DataValueClientToWire, DataValueWireToClient } from "./mapping/DataValueMapping.js";
19
- export type { PropertyValueWireToClient } from "./mapping/PropertyValueMapping.js";
20
- export type { Attachment, AttachmentUpload } from "./object/Attachment.js";
21
- export type { AsyncIterArgs, Augment, Augments, FetchPageArgs, NullabilityAdherence, SelectArg, SelectArgToKeys } from "./object/FetchPageArgs.js";
22
- export type { FetchPageResult, SingleOsdkResult } from "./object/FetchPageResult.js";
23
- export type { Media, MediaMetadata, MediaReference } from "./object/Media.js";
17
+ export type { AllGroupByValues, GroupByClause, GroupByRange } from "./groupby/GroupByClause.js";
18
+ export type { AllowedBucketKeyTypes, AllowedBucketTypes, DataValueClientToWire, DataValueWireToClient } from "./mapping/DataValueMapping.js";
19
+ export type { PropertyValueWireToClient } from "./mapping/PropertyValueMapping.js";
20
+ export type { Attachment, AttachmentUpload } from "./object/Attachment.js";
21
+ export type { AsyncIterArgs, Augment, Augments, FetchPageArgs, NullabilityAdherence, SelectArg, SelectArgToKeys } from "./object/FetchPageArgs.js";
22
+ export type { FetchPageResult, SingleOsdkResult } from "./object/FetchPageResult.js";
23
+ export type { Media, MediaMetadata, MediaReference } from "./object/Media.js";
24
24
  export { isOk } from "./object/Result.js";
25
- export type { Result } from "./object/Result.js";
26
- export type { BaseObjectSet } from "./objectSet/BaseObjectSet.js";
27
- export type { ObjectSet } from "./objectSet/ObjectSet.js";
28
- export type { ObjectSetSubscription } from "./objectSet/ObjectSetListener.js";
29
- export type { ActionDefinition, ActionMetadata } from "./ontology/ActionDefinition.js";
30
- export type { FilteredPropertyKeys } from "./ontology/FilteredPropertyKeys.js";
31
- export type { InterfaceDefinition, InterfaceMetadata } from "./ontology/InterfaceDefinition.js";
32
- export type { ObjectOrInterfaceDefinition, PropertyKeys } from "./ontology/ObjectOrInterface.js";
33
- export type { ObjectSpecifier } from "./ontology/ObjectSpecifier.js";
34
- export type { CompileTimeMetadata, ObjectMetadata, ObjectTypeDefinition, PropertyDef, VersionBound } from "./ontology/ObjectTypeDefinition.js";
35
- export type { OntologyMetadata } from "./ontology/OntologyMetadata.js";
36
- export type { PrimaryKeyTypes } from "./ontology/PrimaryKeyTypes.js";
37
- export type { ObjectQueryDataType, ObjectSetQueryDataType, QueryDataTypeDefinition, QueryDefinition, QueryMetadata, QueryParameterDefinition, ThreeDimensionalQueryAggregationDefinition, TwoDimensionalQueryAggregationDefinition } from "./ontology/QueryDefinition.js";
38
- export type { BaseWirePropertyTypes, WirePropertyTypes } from "./ontology/WirePropertyTypes.js";
39
- export type { OsdkBase, PrimaryKeyType } from "./OsdkBase.js";
40
- export type { OsdkObject } from "./OsdkObject.js";
41
- export type { ConvertProps, Osdk } from "./OsdkObjectFrom.js";
42
- export type { PageResult } from "./PageResult.js";
43
- export type { Range, ThreeDimensionalAggregation, TwoDimensionalAggregation } from "./queries/Aggregations.js";
44
- export type { QueryParam, QueryResult } from "./queries/Queries.js";
25
+ export type { Result } from "./object/Result.js";
26
+ export type { BaseObjectSet } from "./objectSet/BaseObjectSet.js";
27
+ export type { ObjectSet } from "./objectSet/ObjectSet.js";
28
+ export type { ObjectSetSubscription } from "./objectSet/ObjectSetListener.js";
29
+ export type { ActionDefinition, ActionMetadata } from "./ontology/ActionDefinition.js";
30
+ export type { InterfaceDefinition, InterfaceMetadata } from "./ontology/InterfaceDefinition.js";
31
+ export type { ObjectOrInterfaceDefinition, PropertyKeys } from "./ontology/ObjectOrInterface.js";
32
+ export type { ObjectSpecifier } from "./ontology/ObjectSpecifier.js";
33
+ export type { CompileTimeMetadata, ObjectMetadata, ObjectTypeDefinition, PropertyDef, VersionBound } from "./ontology/ObjectTypeDefinition.js";
34
+ export type { OntologyMetadata } from "./ontology/OntologyMetadata.js";
35
+ export type { PrimaryKeyTypes } from "./ontology/PrimaryKeyTypes.js";
36
+ export type { ObjectQueryDataType, ObjectSetQueryDataType, QueryDataTypeDefinition, QueryDefinition, QueryMetadata, QueryParameterDefinition, ThreeDimensionalQueryAggregationDefinition, TwoDimensionalQueryAggregationDefinition } from "./ontology/QueryDefinition.js";
37
+ export type { BaseWirePropertyTypes, WirePropertyTypes } from "./ontology/WirePropertyTypes.js";
38
+ export type { OsdkBase, PrimaryKeyType } from "./OsdkBase.js";
39
+ export type { OsdkObject } from "./OsdkObject.js";
40
+ export type { ConvertProps, Osdk } from "./OsdkObjectFrom.js";
41
+ export type { PageResult } from "./PageResult.js";
42
+ export type { Range, ThreeDimensionalAggregation, TwoDimensionalAggregation } from "./queries/Aggregations.js";
43
+ export type { QueryParam, QueryResult } from "./queries/Queries.js";
45
44
  export { TimeseriesDurationMapping } from "./timeseries/timeseries.js";
46
- export type { GeotimeSeriesProperty, TimeSeriesPoint, TimeSeriesProperty, TimeSeriesQuery } from "./timeseries/timeseries.js";
47
- export type { LinkedType, LinkNames } from "./util/LinkUtils.js";
45
+ export type { GeotimeSeriesProperty, TimeSeriesPoint, TimeSeriesProperty, TimeSeriesQuery } from "./timeseries/timeseries.js";
46
+ export type { LinkedType, LinkNames } from "./util/LinkUtils.js";
48
47
  export {};
48
+ export type { Logger } from "./Logger.js";
@@ -1 +1 @@
1
- {"mappings":"AAgBA,eAAc,kCAAkC;AAChD,eACE,oBACA,aACA,0BACA,oBACA,+BACK;AACP,eAAc,4BAA4B;AAC1C,eAAc,qBAAqB;AACnC,eAAc,sEAAsE;AACpF,eAAc,oCAAoC;AAClD,eAAc,uCAAuC;AACrD,eAAc,yBAAyB;AACvC,eAAc,2BAA2B;AACzC,eAAc,wBAAwB;AACtC,SAAS,2BAA2B;AACpC,eACE,sBACA,kBACA,4BACA,mBACK;AACP,eAAc,8BAA8B;AAC5C,eACE,uBACA,0BACK;AACP,eAAc,uBAAuB;AACrC,SAAS,uBAAuB;AAChC,eACE,kBACA,eACA,oBACK;AACP,eACE,uBACA,oBACA,uBACA,6BACK;AACP,eACE,iCACK;AACP,eAAc,YAAY,wBAAwB;AAClD,eACE,eACA,SACA,UACA,eACA,sBACA,WACA,uBACK;AACP,eACE,iBACA,wBACK;AACP,eAAc,OAAO,eAAe,sBAAsB;AAC1D,SAAS,YAAY;AACrB,eAAc,cAAc;AAC5B,eAAc,qBAAqB;AACnC,eAAc,iBAAiB;AAC/B,eAAc,6BAA6B;AAC3C,eACE,kBACA,sBACK;AACP,eAAc,4BAA4B;AAC1C,eACE,qBACA,yBACK;AACP,eACE,6BACA,oBACK;AACP,eAAc,uBAAuB;AACrC,eACE,qBACA,gBACA,sBACA,aACA,oBACK;AACP,eAAc,wBAAwB;AACtC,eAAc,uBAAuB;AACrC,eACE,qBACA,wBACA,yBACA,iBACA,eACA,0BACA,4CACA,gDACK;AACP,eACE,uBACA,yBACK;AACP,eAAc,UAAU,sBAAsB;AAC9C,eAAc,kBAAkB;AAChC,eAAc,cAAc,YAAY;AACxC,eAAc,kBAAkB;AAChC,eACE,OACA,6BACA,iCACK;AACP,eAAc,YAAY,mBAAmB;AAC7C,SAAS,iCAAiC;AAC1C,eACE,uBACA,iBACA,oBACA,uBACK;AACP,eAAc,YAAY,iBAAiB;AAC3C","names":[],"sources":["../../src/index.ts"],"version":3,"file":"index.d.ts"}
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,cAAc,8BAA8B;AAC5C,cACE,uBACA,0BACK;AACP,cAAc,uBAAuB;AACrC,SAAS,uBAAuB;AAChC,cACE,kBACA,eACA,oBACK;AACP,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,cAAc,OAAO,eAAe,sBAAsB;AAC1D,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,qBACA,wBACA,yBACA,iBACA,eACA,0BACA,4CACA,gDACK;AACP,cACE,uBACA,yBACK;AACP,cAAc,UAAU,sBAAsB;AAC9C,cAAc,kBAAkB;AAChC,cAAc,cAAc,YAAY;AACxC,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;AACA,cAAc,cAAc","names":[],"sources":["../../src/index.ts"],"version":3,"file":"index.d.ts"}
@@ -34,6 +34,8 @@ export interface DataValueWireToClient {
34
34
  struct: Record<string, any>;
35
35
  set: Set<any>;
36
36
  objectType: string;
37
+ geohash: GeoJSON.Point;
38
+ geoshape: GeoJSON.GeoJSON;
37
39
  }
38
40
  /**
39
41
  * Map from the DataValue type to the typescript type that we accept
@@ -71,6 +73,8 @@ export interface DataValueClientToWire {
71
73
  }[];
72
74
  struct: Record<string, any>;
73
75
  objectType: string;
76
+ geohash: GeoJSON.Point;
77
+ geoshape: GeoJSON.GeoJSON;
74
78
  }
75
79
  export type AllowedBucketTypes = string | number | boolean;
76
80
  export type AllowedBucketKeyTypes = AllowedBucketTypes | {
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,YAAY,wBAAwB,yBAA0B;AAC5E,cAAc,sBAAsB,oBAAqB;;;;AAKzD,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;AACD;;;;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;CAChB,2BAA2B;EACzB,KAAK;EACL,OAAO;CACR;CACD,6BAA6B;EAC3B,KAAK;EACL,QAAQ;GAAE,KAAK;GAAuB,OAAO;EAAoB;CAClE;CACD,QAAQ;CACR;AACD;AAED,YAAY;AACZ,YAAY,wBACR,qBACA;CACA,YAAY;CACZ,UAAU;AACX","names":[],"sources":["../../../src/mapping/DataValueMapping.ts"],"version":3,"file":"DataValueMapping.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,YAAY,wBAAwB,yBAA0B;AAC5E,cAAc,sBAAsB,oBAAqB;;;;AAKzD,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;CAChB,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"}
@@ -4,6 +4,36 @@ export type NullabilityAdherence = false | "throw" | "drop";
4
4
  export declare namespace NullabilityAdherence {
5
5
  type Default = "throw";
6
6
  }
7
+ export declare namespace ObjectSetArgs {
8
+ interface Select<
9
+ OBJECT_KEYS extends string = never,
10
+ RDP_KEYS extends string = never
11
+ > {
12
+ $select?: readonly (OBJECT_KEYS | RDP_KEYS)[];
13
+ $includeRid?: boolean;
14
+ }
15
+ interface OrderBy<L extends string = never> {
16
+ $orderBy?: { [K in L]? : "asc" | "desc" };
17
+ }
18
+ interface AsyncIter<
19
+ Q extends ObjectOrInterfaceDefinition,
20
+ K extends PropertyKeys<Q> = never,
21
+ T extends boolean = false,
22
+ RDP_KEYS extends string = never
23
+ > extends Select<K, RDP_KEYS>, OrderBy<K> {
24
+ $__UNSTABLE_useOldInterfaceApis?: boolean;
25
+ $includeAllBaseObjectProperties?: PropertyKeys<Q> extends K ? T : never;
26
+ }
27
+ interface FetchPage<
28
+ Q extends ObjectOrInterfaceDefinition,
29
+ K extends PropertyKeys<Q> = never,
30
+ T extends boolean = false,
31
+ RDP_KEYS extends string = never
32
+ > extends AsyncIter<Q, K, T, RDP_KEYS> {
33
+ $nextPageToken?: string;
34
+ $pageSize?: number;
35
+ }
36
+ }
7
37
  export interface SelectArg<
8
38
  Q extends ObjectOrInterfaceDefinition,
9
39
  L extends PropertyKeys<Q> = PropertyKeys<Q>,
@@ -16,9 +46,7 @@ export interface SelectArg<
16
46
  export interface OrderByArg<
17
47
  Q extends ObjectOrInterfaceDefinition,
18
48
  L extends PropertyKeys<Q> = PropertyKeys<Q>
19
- > {
20
- $orderBy?: { [K in L]? : "asc" | "desc" };
21
- }
49
+ > extends ObjectSetArgs.OrderBy<L> {}
22
50
  export type SelectArgToKeys<
23
51
  Q extends ObjectOrInterfaceDefinition,
24
52
  A extends SelectArg<Q, any, any>
@@ -29,8 +57,9 @@ export interface FetchPageArgs<
29
57
  R extends boolean = false,
30
58
  A extends Augments = never,
31
59
  S extends NullabilityAdherence = NullabilityAdherence.Default,
32
- T extends boolean = false
33
- > extends AsyncIterArgs<Q, K, R, A, S, T> {
60
+ T extends boolean = false,
61
+ RDP_KEYS extends string = never
62
+ > extends AsyncIterArgs<Q, K, R, A, S, T, RDP_KEYS> {
34
63
  $nextPageToken?: string;
35
64
  $pageSize?: number;
36
65
  }
@@ -40,10 +69,11 @@ export interface AsyncIterArgs<
40
69
  R extends boolean = false,
41
70
  A extends Augments = never,
42
71
  S extends NullabilityAdherence = NullabilityAdherence.Default,
43
- T extends boolean = false
72
+ T extends boolean = false,
73
+ RDP_KEYS extends string = never
44
74
  > extends SelectArg<Q, K, R, S>, OrderByArg<Q, PropertyKeys<Q>> {
45
75
  $__UNSTABLE_useOldInterfaceApis?: boolean;
46
- $includeAllBaseObjectProperties?: T;
76
+ $includeAllBaseObjectProperties?: PropertyKeys<Q> extends K ? T : never;
47
77
  }
48
78
  export type Augment<
49
79
  X extends ObjectOrInterfaceDefinition,
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,6BACA,oBACK,kCAAmC;AAC1C,cAAc,2BAA2B,qCAAsC;AAE/E,YAAY,uBAAuB,QAAQ,UAAU;AACrD,yBAAiB;MACH,UAAU;;AAGxB,iBAAiB;CACf,UAAU;CACV,UAAU,aAAa,KAAK,aAAa;CACzC,oBAAoB;CACpB,UAAU,uBAAuB,qBAAqB;EACtD;CACA,mBAAmB;CACnB,cAAc;AACf;AAED,iBAAiB;CACf,UAAU;CACV,UAAU,aAAa,KAAK,aAAa;EACzC;CACA,cACG,KAAK,MAAK,QAAQ;AAEtB;AAED,YAAY;CACV,UAAU;CACV,UAAU,UAAU;IAClB,UAAU,UAAU,YAAY,aAAa,KAC7C,EAAE,uCAAuC,EAAE,qBAC3C,aAAa;AAEjB,iBAAiB;CACf,UAAU;CACV,UAAU,aAAa,KAAK,aAAa;CACzC,oBAAoB;CACpB,UAAU;CACV,UAAU,uBAAuB,qBAAqB;CACtD,oBAAoB;UACZ,cAAc,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG;CACxC;CACA;AACD;AAED,iBAAiB;CACf,UAAU;CACV,UAAU,aAAa,KAAK,aAAa;CACzC,oBAAoB;CACpB,UAAU;CACV,UAAU,uBAAuB,qBAAqB;CACtD,oBAAoB;UACZ,UAAU,GAAG,GAAG,GAAG,IAAI,WAAW,GAAG,aAAa,IAAI;CAC9D;CACA,kCAAkC;AACnC;AAED,YAAY;CACV,UAAU;CACV;OACK,KAAK,oBAAoB,GAAG,cAAa;AAEhD,YAAY,WAAW","names":[],"sources":["../../../src/object/FetchPageArgs.ts"],"version":3,"file":"FetchPageArgs.d.ts"}
1
+ {"mappings":"AAgBA,cACE,6BACA,oBACK,kCAAmC;AAC1C,cAAc,2BAA2B,qCAAsC;AAE/E,YAAY,uBAAuB,QAAQ,UAAU;AACrD,yBAAiB;MACH,UAAU;;AAGxB,yBAAiB;WACE;EACf;EACA;GACA;EACA,oBAAoB,cAAc;EAClC;CACD;WAEgB,QACf,0BACA;EACA,cACG,KAAK,MAAK,QAAQ;CAEtB;WAEgB;EACf,UAAU;EACV,UAAU,aAAa;EACvB,oBAAoB;EACpB;WACQ,OAAO,GAAG,WAAW,QAAQ,GAAG;EACxC;EACA,kCAAkC,aAAa,WAAW,IAAI;CAC/D;WAEgB;EACf,UAAU;EACV,UAAU,aAAa;EACvB,oBAAoB;EACpB;WACQ,UAAU,GAAG,GAAG,GAAG,UAAU;EACrC;EACA;CACD;;AAGH,iBAAiB;CACf,UAAU;CACV,UAAU,aAAa,KAAK,aAAa;CACzC,oBAAoB;CACpB,UAAU,uBAAuB,qBAAqB;EACtD;CACA,mBAAmB;CACnB,cAAc;AACf;AAED,iBAAiB;CACf,UAAU;CACV,UAAU,aAAa,KAAK,aAAa;UACjC,cAAc,QAAQ,GAAG,CAClC;AAED,YAAY;CACV,UAAU;CACV,UAAU,UAAU;IAClB,UAAU,UAAU,YAAY,aAAa,KAC7C,EAAE,uCAAuC,EAAE,qBAC3C,aAAa;AAEjB,iBAAiB;CACf,UAAU;CACV,UAAU,aAAa,KAAK,aAAa;CACzC,oBAAoB;CACpB,UAAU;CACV,UAAU,uBAAuB,qBAAqB;CACtD,oBAAoB;CACpB;UACQ,cAAc,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,UAAU;CAClD;CACA;AACD;AAED,iBAAiB;CACf,UAAU;CACV,UAAU,aAAa,KAAK,aAAa;CACzC,oBAAoB;CACpB,UAAU;CACV,UAAU,uBAAuB,qBAAqB;CACtD,oBAAoB;CACpB;UACQ,UAAU,GAAG,GAAG,GAAG,IAAI,WAAW,GAAG,aAAa,IAAI;CAC9D;CACA,kCAAkC,aAAa,WAAW,IAAI;AAC/D;AAED,YAAY;CACV,UAAU;CACV;OACK,KAAK,oBAAoB,GAAG,cAAa;AAEhD,YAAY,WAAW","names":[],"sources":["../../../src/object/FetchPageArgs.ts"],"version":3,"file":"FetchPageArgs.d.ts"}
@@ -25,7 +25,7 @@ export type FetchPageResult<
25
25
  L extends PropertyKeys<Q>,
26
26
  R extends boolean,
27
27
  S extends NullabilityAdherence,
28
- T extends boolean
28
+ T extends boolean = false
29
29
  > = PageResult<PropertyKeys<Q> extends L ? Osdk.Instance<Q, ExtractOptions<R, S, T>> : Osdk.Instance<Q, ExtractOptions<R, S, T>, L>>;
30
30
  /**
31
31
  * Helper type for converting fetch options into an Osdk object
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,6BACA,oBACK,kCAAmC;AAC1C,cAAc,yBAAyB,kCAAmC;AAC1E,cAAc,gBAAgB,SAAS,YAAY,sBAAuB;AAC1E,cAAc,kBAAkB,kBAAmB;AACnD,cAAc,4BAA4B,oBAAqB;;AAG/D,YAAY,mBAAmB,UAAU,wBAAwB,UAAU,QACvE,QACA;;AAGJ,YAAY;CAAa;CAAkB;CAAgC;IACzE,QAAQ,WAAW,eACf,uBAAuB,OAAO,IAC9B,IAAI;;AAGV,YAAY;CACV;CACA;CACA;IACE,QAAQ,WAAW,eACnB,sBAAsB,OAAO,IAAI,IACjC;;;;AAKJ,YAAY;CACV,UAAU;CACV,UAAU,aAAa;CACvB;CACA,UAAU;CACV;IACE,WACF,aAAa,WAAW,IAAI,KAAK,SAAS,GAAG,eAAe,GAAG,GAAG,MAC9D,KAAK,SAAS,GAAG,eAAe,GAAG,GAAG,IAAI;;;;AAMhD,YAAY;CACV,UAAU;CACV,UAAU,aAAa,YAAY;CACnC;CACA,UAAU;CACV,aAAa,eAAe,qBAAqB,CAAE;CACnD,oBAAoB;IAClB,KAAK,SACP,GACA,eAAe,GAAG,GAAG,IACrB,aAAa,WAAW,IAAI,aAAa,KAAK,aAAa,KAAK,MAC7D,KAAK,cAAc,MAAM,MAAK,KAAK;AAGxC,YAAY,MAAM,qBAAqB,WAC5B,qBAAqB,QAAQ,OACpC","names":[],"sources":["../../../src/object/FetchPageResult.ts"],"version":3,"file":"FetchPageResult.d.ts"}
1
+ {"mappings":"AAgBA,cACE,6BACA,oBACK,kCAAmC;AAC1C,cAAc,yBAAyB,kCAAmC;AAC1E,cAAc,gBAAgB,SAAS,YAAY,sBAAuB;AAC1E,cAAc,kBAAkB,kBAAmB;AACnD,cAAc,4BAA4B,oBAAqB;;AAG/D,YAAY,mBAAmB,UAAU,wBAAwB,UAAU,QACvE,QACA;;AAGJ,YAAY;CAAa;CAAkB;CAAgC;IACzE,QAAQ,WAAW,eACf,uBAAuB,OAAO,IAC9B,IAAI;;AAGV,YAAY;CACV;CACA;CACA;IACE,QAAQ,WAAW,eACnB,sBAAsB,OAAO,IAAI,IACjC;;;;AAKJ,YAAY;CACV,UAAU;CACV,UAAU,aAAa;CACvB;CACA,UAAU;CACV,oBAAoB;IAClB,WACF,aAAa,WAAW,IAAI,KAAK,SAAS,GAAG,eAAe,GAAG,GAAG,MAC9D,KAAK,SAAS,GAAG,eAAe,GAAG,GAAG,IAAI;;;;AAMhD,YAAY;CACV,UAAU;CACV,UAAU,aAAa,YAAY;CACnC;CACA,UAAU;CACV,aAAa,eAAe,qBAAqB,CAAE;CACnD,oBAAoB;IAClB,KAAK,SACP,GACA,eAAe,GAAG,GAAG,IACrB,aAAa,WAAW,IAAI,aAAa,KAAK,aAAa,KAAK,MAC7D,KAAK,cAAc,MAAM,MAAK,KAAK;AAGxC,YAAY,MAAM,qBAAqB,WAC5B,qBAAqB,QAAQ,OACpC","names":[],"sources":["../../../src/object/FetchPageResult.ts"],"version":3,"file":"FetchPageResult.d.ts"}
@@ -2,6 +2,6 @@ import type { OsdkBase } from "../OsdkBase.js";
2
2
  export interface EXPERIMENTAL_BulkLinkResult {
3
3
  object: OsdkBase<any>;
4
4
  linkApiName: string;
5
- otherObjectApiName: string | undefined;
5
+ otherObjectApiName: string | null | undefined;
6
6
  otherObjectPk: unknown;
7
7
  }