@osdk/api 2.2.0-beta.2 → 2.2.0-beta.21

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 (166) hide show
  1. package/CHANGELOG.md +107 -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/ActionResults.js.map +1 -1
  10. package/build/browser/actions/Actions.js.map +1 -1
  11. package/build/browser/aggregate/AggregatableKeys.js.map +1 -1
  12. package/build/browser/derivedProperties/DerivedProperty.js.map +1 -1
  13. package/build/browser/derivedProperties/Expressions.js +2 -0
  14. package/build/browser/derivedProperties/Expressions.js.map +1 -0
  15. package/build/browser/derivedProperties/WithPropertiesAggregationOptions.js.map +1 -1
  16. package/build/browser/experimental/createMediaReference.js +2 -2
  17. package/build/browser/experimental/createMediaReference.js.map +1 -1
  18. package/build/browser/experimental/fetchPageByRid.js +22 -0
  19. package/build/browser/experimental/fetchPageByRid.js.map +1 -0
  20. package/build/browser/groupby/GroupByClause.js.map +1 -1
  21. package/build/browser/index.js.map +1 -1
  22. package/build/browser/mapping/DataValueMapping.js.map +1 -1
  23. package/build/browser/object/FetchPageArgs.js +1 -0
  24. package/build/browser/object/FetchPageArgs.js.map +1 -1
  25. package/build/browser/object/FetchPageResult.js.map +1 -1
  26. package/build/browser/objectSet/BulkLinkResult.js.map +1 -1
  27. package/build/browser/objectSet/ObjectSet.js.map +1 -1
  28. package/build/browser/objectSet/ObjectSet.test.js +424 -9
  29. package/build/browser/objectSet/ObjectSet.test.js.map +1 -1
  30. package/build/browser/ontology/ActionDefinition.js.map +1 -1
  31. package/build/browser/ontology/ObjectOrInterface.js +1 -0
  32. package/build/browser/ontology/ObjectOrInterface.js.map +1 -1
  33. package/build/browser/ontology/ObjectSpecifier.js +2 -0
  34. package/build/browser/ontology/ObjectSpecifier.js.map +1 -0
  35. package/build/browser/ontology/ObjectSpecifier.test.js +53 -0
  36. package/build/browser/ontology/ObjectSpecifier.test.js.map +1 -0
  37. package/build/browser/ontology/ObjectTypeDefinition.js.map +1 -1
  38. package/build/browser/ontology/PrimaryKeyTypes.js.map +1 -1
  39. package/build/browser/ontology/QueryDefinition.js.map +1 -1
  40. package/build/browser/ontology/SimplePropertyDef.js.map +1 -1
  41. package/build/browser/public/unstable.js +1 -0
  42. package/build/browser/public/unstable.js.map +1 -1
  43. package/build/browser/queries/Queries.js.map +1 -1
  44. package/build/browser/test/EmployeeApiTest.js +21 -0
  45. package/build/browser/test/EmployeeApiTest.js.map +1 -0
  46. package/build/browser/test/FooInterfaceApiTest.js +22 -0
  47. package/build/browser/test/FooInterfaceApiTest.js.map +1 -0
  48. package/build/browser/util/IncludeValuesExtending.js +2 -0
  49. package/build/browser/util/IncludeValuesExtending.js.map +1 -0
  50. package/build/cjs/{ObjectSet-C2x3lIr7.d.cts → ObjectSet-DOR8vbgj.d.cts} +214 -59
  51. package/build/cjs/index.d.cts +40 -8
  52. package/build/cjs/public/unstable.cjs +8 -0
  53. package/build/cjs/public/unstable.cjs.map +1 -1
  54. package/build/cjs/public/unstable.d.cts +14 -9
  55. package/build/esm/Logger.js +17 -0
  56. package/build/esm/Logger.js.map +1 -0
  57. package/build/esm/OsdkBase.js.map +1 -1
  58. package/build/esm/OsdkObjectFrom.js +2 -4
  59. package/build/esm/OsdkObjectFrom.js.map +1 -1
  60. package/build/esm/OsdkObjectFrom.test.js +3 -3
  61. package/build/esm/OsdkObjectFrom.test.js.map +1 -1
  62. package/build/esm/actions/ActionResults.js.map +1 -1
  63. package/build/esm/actions/Actions.js.map +1 -1
  64. package/build/esm/aggregate/AggregatableKeys.js.map +1 -1
  65. package/build/esm/derivedProperties/DerivedProperty.js.map +1 -1
  66. package/build/esm/derivedProperties/Expressions.js +2 -0
  67. package/build/esm/derivedProperties/Expressions.js.map +1 -0
  68. package/build/esm/derivedProperties/WithPropertiesAggregationOptions.js.map +1 -1
  69. package/build/esm/experimental/createMediaReference.js +2 -2
  70. package/build/esm/experimental/createMediaReference.js.map +1 -1
  71. package/build/esm/experimental/fetchPageByRid.js +22 -0
  72. package/build/esm/experimental/fetchPageByRid.js.map +1 -0
  73. package/build/esm/groupby/GroupByClause.js.map +1 -1
  74. package/build/esm/index.js.map +1 -1
  75. package/build/esm/mapping/DataValueMapping.js.map +1 -1
  76. package/build/esm/object/FetchPageArgs.js +1 -0
  77. package/build/esm/object/FetchPageArgs.js.map +1 -1
  78. package/build/esm/object/FetchPageResult.js.map +1 -1
  79. package/build/esm/objectSet/BulkLinkResult.js.map +1 -1
  80. package/build/esm/objectSet/ObjectSet.js.map +1 -1
  81. package/build/esm/objectSet/ObjectSet.test.js +424 -9
  82. package/build/esm/objectSet/ObjectSet.test.js.map +1 -1
  83. package/build/esm/ontology/ActionDefinition.js.map +1 -1
  84. package/build/esm/ontology/ObjectOrInterface.js +1 -0
  85. package/build/esm/ontology/ObjectOrInterface.js.map +1 -1
  86. package/build/esm/ontology/ObjectSpecifier.js +2 -0
  87. package/build/esm/ontology/ObjectSpecifier.js.map +1 -0
  88. package/build/esm/ontology/ObjectSpecifier.test.js +53 -0
  89. package/build/esm/ontology/ObjectSpecifier.test.js.map +1 -0
  90. package/build/esm/ontology/ObjectTypeDefinition.js.map +1 -1
  91. package/build/esm/ontology/PrimaryKeyTypes.js.map +1 -1
  92. package/build/esm/ontology/QueryDefinition.js.map +1 -1
  93. package/build/esm/ontology/SimplePropertyDef.js.map +1 -1
  94. package/build/esm/public/unstable.js +1 -0
  95. package/build/esm/public/unstable.js.map +1 -1
  96. package/build/esm/queries/Queries.js.map +1 -1
  97. package/build/esm/test/EmployeeApiTest.js +21 -0
  98. package/build/esm/test/EmployeeApiTest.js.map +1 -0
  99. package/build/esm/test/FooInterfaceApiTest.js +22 -0
  100. package/build/esm/test/FooInterfaceApiTest.js.map +1 -0
  101. package/build/esm/util/IncludeValuesExtending.js +2 -0
  102. package/build/esm/util/IncludeValuesExtending.js.map +1 -0
  103. package/build/types/Logger.d.ts +19 -0
  104. package/build/types/Logger.d.ts.map +1 -0
  105. package/build/types/OsdkBase.d.ts +4 -0
  106. package/build/types/OsdkBase.d.ts.map +1 -1
  107. package/build/types/OsdkObjectFrom.d.ts +16 -10
  108. package/build/types/OsdkObjectFrom.d.ts.map +1 -1
  109. package/build/types/actions/ActionResults.d.ts +4 -0
  110. package/build/types/actions/ActionResults.d.ts.map +1 -1
  111. package/build/types/actions/Actions.d.ts +3 -3
  112. package/build/types/actions/Actions.d.ts.map +1 -1
  113. package/build/types/aggregate/AggregatableKeys.d.ts +10 -8
  114. package/build/types/aggregate/AggregatableKeys.d.ts.map +1 -1
  115. package/build/types/derivedProperties/DerivedProperty.d.ts +41 -14
  116. package/build/types/derivedProperties/DerivedProperty.d.ts.map +1 -1
  117. package/build/types/derivedProperties/Expressions.d.ts +53 -0
  118. package/build/types/derivedProperties/Expressions.d.ts.map +1 -0
  119. package/build/types/derivedProperties/WithPropertiesAggregationOptions.d.ts +6 -3
  120. package/build/types/derivedProperties/WithPropertiesAggregationOptions.d.ts.map +1 -1
  121. package/build/types/experimental/createMediaReference.d.ts +9 -5
  122. package/build/types/experimental/createMediaReference.d.ts.map +1 -1
  123. package/build/types/experimental/fetchPageByRid.d.ts +15 -0
  124. package/build/types/experimental/fetchPageByRid.d.ts.map +1 -0
  125. package/build/types/groupby/GroupByClause.d.ts +6 -0
  126. package/build/types/groupby/GroupByClause.d.ts.map +1 -1
  127. package/build/types/index.d.ts +43 -40
  128. package/build/types/index.d.ts.map +1 -1
  129. package/build/types/mapping/DataValueMapping.d.ts +4 -0
  130. package/build/types/mapping/DataValueMapping.d.ts.map +1 -1
  131. package/build/types/object/FetchPageArgs.d.ts +39 -6
  132. package/build/types/object/FetchPageArgs.d.ts.map +1 -1
  133. package/build/types/object/FetchPageResult.d.ts +6 -4
  134. package/build/types/object/FetchPageResult.d.ts.map +1 -1
  135. package/build/types/objectSet/BulkLinkResult.d.ts +1 -1
  136. package/build/types/objectSet/ObjectSet.d.ts +143 -34
  137. package/build/types/objectSet/ObjectSet.d.ts.map +1 -1
  138. package/build/types/objectSet/ObjectSet.test.d.ts +2 -1
  139. package/build/types/objectSet/ObjectSet.test.d.ts.map +1 -1
  140. package/build/types/ontology/ActionDefinition.d.ts +1 -1
  141. package/build/types/ontology/ActionDefinition.d.ts.map +1 -1
  142. package/build/types/ontology/ObjectOrInterface.d.ts +12 -5
  143. package/build/types/ontology/ObjectOrInterface.d.ts.map +1 -1
  144. package/build/types/ontology/ObjectSpecifier.d.ts +6 -0
  145. package/build/types/ontology/ObjectSpecifier.d.ts.map +1 -0
  146. package/build/types/ontology/ObjectSpecifier.test.d.ts +1 -0
  147. package/build/types/ontology/ObjectSpecifier.test.d.ts.map +1 -0
  148. package/build/types/ontology/ObjectTypeDefinition.d.ts +1 -1
  149. package/build/types/ontology/ObjectTypeDefinition.d.ts.map +1 -1
  150. package/build/types/ontology/PrimaryKeyTypes.d.ts +1 -1
  151. package/build/types/ontology/PrimaryKeyTypes.d.ts.map +1 -1
  152. package/build/types/ontology/QueryDefinition.d.ts +5 -1
  153. package/build/types/ontology/QueryDefinition.d.ts.map +1 -1
  154. package/build/types/ontology/SimplePropertyDef.d.ts +4 -4
  155. package/build/types/ontology/SimplePropertyDef.d.ts.map +1 -1
  156. package/build/types/public/unstable.d.ts +4 -3
  157. package/build/types/public/unstable.d.ts.map +1 -1
  158. package/build/types/queries/Queries.d.ts +2 -2
  159. package/build/types/queries/Queries.d.ts.map +1 -1
  160. package/build/types/test/EmployeeApiTest.d.ts +86 -0
  161. package/build/types/test/EmployeeApiTest.d.ts.map +1 -0
  162. package/build/types/test/FooInterfaceApiTest.d.ts +50 -0
  163. package/build/types/test/FooInterfaceApiTest.d.ts.map +1 -0
  164. package/build/types/util/IncludeValuesExtending.d.ts +4 -0
  165. package/build/types/util/IncludeValuesExtending.d.ts.map +1 -0
  166. package/package.json +2 -2
@@ -1,5 +1,6 @@
1
1
  import type { PropertyValueWireToClient } from "./mapping/PropertyValueMapping.js";
2
2
  import type { ObjectOrInterfaceDefinition } from "./ontology/ObjectOrInterface.js";
3
+ import type { ObjectSpecifier } from "./ontology/ObjectSpecifier.js";
3
4
  import type { ObjectTypeDefinition } from "./ontology/ObjectTypeDefinition.js";
4
5
  import type { PrimaryKeyTypes } from "./ontology/PrimaryKeyTypes.js";
5
6
  import type { OsdkObjectPrimaryKeyType } from "./OsdkObjectPrimaryKeyType.js";
@@ -9,4 +10,7 @@ export type OsdkBase<Q extends ObjectOrInterfaceDefinition> = {
9
10
  readonly $primaryKey: PrimaryKeyType<Q>
10
11
  readonly $title: string | undefined
11
12
  };
13
+ export interface OsdkBaseWithObjectSpecifier<Q extends ObjectOrInterfaceDefinition> extends OsdkBase<Q> {
14
+ readonly $objectSpecifier: ObjectSpecifier<Q>;
15
+ }
12
16
  export type PrimaryKeyType<Q extends ObjectOrInterfaceDefinition> = (Q extends ObjectTypeDefinition ? OsdkObjectPrimaryKeyType<Q> : unknown) & PropertyValueWireToClient[PrimaryKeyTypes];
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,iCAAiC,mCAAoC;AACnF,cAAc,mCAAmC,iCAAkC;AACnF,cAAc,4BAA4B,oCAAqC;AAC/E,cAAc,uBAAuB,+BAAgC;AACrE,cAAc,gCAAgC,+BAAgC;AAE9E,YAAY,SACV,UAAU,+BACR;UACO,UAAU,EAAE;UAEZ;UAEA,aAAa,eAAe;UAE5B;AACV;AAED,YAAY,eAAe,UAAU,gCAChC,UAAU,uBAAuB,yBAAyB,gBAI3D,0BAA0B","names":[],"sources":["../../src/OsdkBase.ts"],"version":3,"file":"OsdkBase.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,iCAAiC,mCAAoC;AACnF,cAAc,mCAAmC,iCAAkC;AACnF,cAAc,uBAAuB,+BAAgC;AACrE,cAAc,4BAA4B,oCAAqC;AAC/E,cAAc,uBAAuB,+BAAgC;AACrE,cAAc,gCAAgC,+BAAgC;AAE9E,YAAY,SACV,UAAU,+BACR;UACO,UAAU,EAAE;UAEZ;UAEA,aAAa,eAAe;UAE5B;AACV;AAED,iBAAiB,4BACf,UAAU,qCACF,SAAS,GAAG;UACX,kBAAkB,gBAAgB;AAC5C;AAED,YAAY,eAAe,UAAU,gCAChC,UAAU,uBAAuB,yBAAyB,gBAI3D,0BAA0B","names":[],"sources":["../../src/OsdkBase.ts"],"version":3,"file":"OsdkBase.d.ts"}
@@ -5,7 +5,7 @@ import type { InterfaceDefinition } from "./ontology/InterfaceDefinition.js";
5
5
  import type { ObjectOrInterfaceDefinition, PropertyKeys } from "./ontology/ObjectOrInterface.js";
6
6
  import type { CompileTimeMetadata, ObjectTypeDefinition } from "./ontology/ObjectTypeDefinition.js";
7
7
  import type { SimplePropertyDef } from "./ontology/SimplePropertyDef.js";
8
- import type { OsdkBase } from "./OsdkBase.js";
8
+ import type { OsdkBaseWithObjectSpecifier } from "./OsdkBase.js";
9
9
  type SpecialOsdkPropParams = "$all" | "$rid" | "$strict" | "$notStrict";
10
10
  type ValidOsdkPropParams<Q extends ObjectOrInterfaceDefinition> = SpecialOsdkPropParams | PropertyKeys<Q>;
11
11
  export type ApiNameAsString<T extends ObjectOrInterfaceDefinition> = CompileTimeMetadata<T>["apiName"];
@@ -20,8 +20,9 @@ export type PropMapToObject<
20
20
  export type MapPropNamesToObjectType<
21
21
  FROM extends ObjectOrInterfaceDefinition,
22
22
  TO extends ObjectTypeDefinition,
23
- P extends ValidOsdkPropParams<FROM>
24
- > = PropMapToObject<FROM, TO>[JustProps<FROM, P> & keyof PropMapToObject<FROM, TO>];
23
+ P extends ValidOsdkPropParams<FROM>,
24
+ OPTIONS extends never | "$rid" | "$allBaseProperties" = never
25
+ > = "$allBaseProperties" extends OPTIONS ? PropertyKeys<FROM> extends P ? PropertyKeys<TO> : PropMapToObject<FROM, TO>[JustProps<FROM, P> & keyof PropMapToObject<FROM, TO>] : PropMapToObject<FROM, TO>[JustProps<FROM, P> & keyof PropMapToObject<FROM, TO>];
25
26
  export type PropMapToInterface<
26
27
  FROM extends ObjectTypeDefinition,
27
28
  TO extends InterfaceDefinition
@@ -32,6 +33,8 @@ export type MapPropNamesToInterface<
32
33
  P extends ValidOsdkPropParams<FROM>
33
34
  > = PropMapToInterface<FROM, TO>[JustProps<FROM, P> & keyof PropMapToInterface<FROM, TO>];
34
35
  /**
36
+ * Older version of this helper that allows for `$rid` and co in
37
+ * the properties field.
35
38
  * @param FROM - the interface or object type to convert from
36
39
  * @param TO - the interface or object type to convert to
37
40
  * @param P - the property(s) to convert
@@ -39,8 +42,9 @@ export type MapPropNamesToInterface<
39
42
  export type ConvertProps<
40
43
  FROM extends ObjectOrInterfaceDefinition,
41
44
  TO extends ValidToFrom<FROM>,
42
- P extends ValidOsdkPropParams<FROM>
43
- > = TO extends FROM ? P : TO extends ObjectTypeDefinition ? (UnionIfTrue<MapPropNamesToObjectType<FROM, TO, P>, P extends "$rid" ? true : false, "$rid">) : TO extends InterfaceDefinition ? FROM extends ObjectTypeDefinition ? (UnionIfTrue<MapPropNamesToInterface<FROM, TO, P>, P extends "$rid" ? true : false, "$rid">) : never : never;
45
+ P extends ValidOsdkPropParams<FROM>,
46
+ OPTIONS extends never | "$rid" | "$allBaseProperties" = never
47
+ > = TO extends FROM ? P : TO extends ObjectTypeDefinition ? (UnionIfTrue<MapPropNamesToObjectType<FROM, TO, P, OPTIONS>, P extends "$rid" ? true : false, "$rid">) : TO extends InterfaceDefinition ? FROM extends ObjectTypeDefinition ? (UnionIfTrue<MapPropNamesToInterface<FROM, TO, P>, P extends "$rid" ? true : false, "$rid">) : never : never;
44
48
  /** DO NOT EXPORT FROM PACKAGE */
45
49
  export type ValidToFrom<FROM extends ObjectOrInterfaceDefinition> = FROM extends InterfaceDefinition ? ObjectOrInterfaceDefinition : InterfaceDefinition;
46
50
  export type IsNever<T> = [T] extends [never] ? true : false;
@@ -65,14 +69,14 @@ export type Osdk<
65
69
  export declare namespace Osdk {
66
70
  type Instance<
67
71
  Q extends ObjectOrInterfaceDefinition,
68
- OPTIONS extends never | "$rid" = never,
72
+ OPTIONS extends never | "$rid" | "$allBaseProperties" = never,
69
73
  P extends PropertyKeys<Q> = PropertyKeys<Q>,
70
74
  R extends Record<string, SimplePropertyDef> = {}
71
- > = OsdkBase<Q> & Pick<CompileTimeMetadata<Q>["props"], GetPropsKeys<Q, P, [R] extends [{}] ? false : true>> & ([R] extends [never] ? {} : { [A in keyof R] : SimplePropertyDef.ToRuntimeProperty<R[A]> }) & {
75
+ > = OsdkBaseWithObjectSpecifier<Q> & Pick<CompileTimeMetadata<Q>["props"], GetPropsKeys<Q, P, [R] extends [{}] ? false : true>> & ([R] extends [never] ? {} : { [A in keyof R] : SimplePropertyDef.ToRuntimeProperty<R[A]> }) & {
72
76
  readonly $link: Q extends {
73
77
  linksType?: any
74
78
  } ? Q["linksType"] : Q extends ObjectTypeDefinition ? OsdkObjectLinksObject<Q> : never
75
- readonly $as: <NEW_Q extends ValidToFrom<Q>>(type: NEW_Q | string) => Osdk.Instance<NEW_Q, OPTIONS, ConvertProps<Q, NEW_Q, P>>
79
+ readonly $as: <NEW_Q extends ValidToFrom<Q>>(type: NEW_Q | string) => Osdk.Instance<NEW_Q, OPTIONS, ConvertProps<Q, NEW_Q, P, OPTIONS>>
76
80
  readonly $clone: <NEW_PROPS extends PropertyKeys<Q>>(updatedObject?: Osdk.Instance<Q, any, NEW_PROPS> | { [K in NEW_PROPS]? : CompileTimeMetadata<Q>["props"][K] }) => Osdk.Instance<Q, OPTIONS, P | NEW_PROPS>
77
81
  } & (IsNever<OPTIONS> extends true ? {} : IsAny<OPTIONS> extends true ? {} : "$rid" extends OPTIONS ? {
78
82
  readonly $rid: string
@@ -92,8 +96,10 @@ export type ExtractStrictOption<S extends NullabilityAdherence> = IsNever<S> ext
92
96
  * Anything you throw at this that is not exactly `true` should always be `never`.
93
97
  */
94
98
  export type ExtractRidOption<R extends boolean> = IsNever<R> extends true ? never : DefaultToFalse<R> extends false ? never : "$rid";
99
+ export type ExtractAllPropertiesOption<T extends boolean> = IsNever<T> extends true ? never : DefaultToFalse<T> extends false ? never : "$allBaseProperties";
95
100
  export type ExtractOptions<
96
101
  R extends boolean,
97
- S extends NullabilityAdherence = NullabilityAdherence.Default
98
- > = ExtractRidOption<R>;
102
+ S extends NullabilityAdherence = NullabilityAdherence.Default,
103
+ T extends boolean = false
104
+ > = ExtractRidOption<R> | ExtractAllPropertiesOption<T>;
99
105
  export {};
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,gBACA,6BACK,kCAAmC;AAC1C,cAAc,4BAA4B,2BAA4B;AACtE,cAAc,mBAAmB,6BAA8B;AAC/D,cAAc,2BAA2B,mCAAoC;AAC7E,cACE,6BACA,oBACK,iCAAkC;AACzC,cACE,qBACA,4BACK,oCAAqC;AAC5C,cAAc,yBAAyB,iCAAkC;AACzE,cAAc,gBAAgB,eAAgB;KAYzC,wBACD,SACA,SACA,YACA;KAEC,oBAAoB,UAAU,+BAC/B,wBACA,aAAa;AAEjB,YAAY,gBACV,UAAU,+BACR,oBAAoB,GAAG;AAE3B,YAAY;CACV,UAAU;CACV,UAAU,oBAAoB;IAC5B,UAAU,SAAS,aAAa,KAChC,QAAQ,GAAG;AAEf,YAAY;CACV,aAAa;CACb,WAAW;IACT,YAAY,oBAAoB,IAAI,iBAAiB,gBAAgB;AAEzE,YAAY;CACV,aAAa;CACb,WAAW;CACX,UAAU,oBAAoB;IAC5B,gBACF,MACA,IACA,UAAU,MAAM,WAAW,gBAAgB,MAAM;AAEnD,YAAY;CACV,aAAa;CACb,WAAW;IACT,YACF,oBAAoB,MAAM,wBAC1B,gBAAgB;AAElB,YAAY;CACV,aAAa;CACb,WAAW;CACX,UAAU,oBAAoB;IAC5B,mBACF,M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,UAAU;GAAE;EAAiB,IAAG,EAAE,eAC9C,UAAU,uBAAuB,sBAAsB;WAGlD,MAAM,cAAc,YAAY,IACvCA,MAAM,mBACH,KAAK,SACR,OACA,SACA,aAAa,GAAG,OAAO;WAGhB,SAAS,kBAAkB,aAAa,IAC/CC,gBACI,KAAK,SAAS,QAAQ,gBAErB,KAAK,cAAa,oBACjB,GACA,SAAS,SAEZ,KAAK,SAAS,GAAG,SAAS,IAAI;CACpC,KAEE,QAAQ,iBAAiB,OAAO,CAAE,IACjC,MAAM,iBAAiB,OAAO,CAAE,IAChC,eAAe,UAAU;WAAW;CAAc,IAClD,CAAE;;;;;;;;;AAUV,YAAY,oBAAoB,UAAU,wBACxC,QAAQ,WAAW,eACf,gBAAgB,YAChB,eAAe,YACf;;;;;;AAON,YAAY,iBAAiB,qBAC3B,QAAQ,WAAW,eACf,eAAe,WAAW,gBAC1B;AAGN,YAAY;CACV;CACA,UAAU,uBAAuB,qBAAqB;IACpD,iBAAiB","names":["type: NEW_Q | string","updatedObject?:\n | Osdk.Instance<Q, any, NEW_PROPS>\n | {\n [K in NEW_PROPS]?: CompileTimeMetadata<\n Q\n >[\"props\"][K];\n }"],"sources":["../../src/OsdkObjectFrom.ts"],"version":3,"file":"OsdkObjectFrom.d.ts"}
1
+ {"mappings":"AAgBA,cACE,gBACA,6BACK,kCAAmC;AAC1C,cAAc,4BAA4B,2BAA4B;AACtE,cAAc,mBAAmB,6BAA8B;AAC/D,cAAc,2BAA2B,mCAAoC;AAC7E,cACE,6BACA,oBACK,iCAAkC;AACzC,cACE,qBACA,4BACK,oCAAqC;AAC5C,cAAc,yBAAyB,iCAAkC;AACzE,cAAc,mCAAmC,eAAgB;KAY5D,wBACD,SACA,SACA,YACA;KAEC,oBAAoB,UAAU,+BAC/B,wBACA,aAAa;AAEjB,YAAY,gBACV,UAAU,+BACR,oBAAoB,GAAG;AAE3B,YAAY;CACV,UAAU;CACV,UAAU,oBAAoB;IAC5B,UAAU,SAAS,aAAa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EW_Q | string","updatedObject?:\n | Osdk.Instance<Q, any, NEW_PROPS>\n | {\n [K in NEW_PROPS]?: CompileTimeMetadata<\n Q\n >[\"props\"][K];\n }"],"sources":["../../src/OsdkObjectFrom.ts"],"version":3,"file":"OsdkObjectFrom.d.ts"}
@@ -5,7 +5,9 @@ interface ObjectEdits {
5
5
  type: "edits";
6
6
  addedObjects: Array<ObjectReference>;
7
7
  modifiedObjects: Array<ObjectReference>;
8
+ deletedObjects?: Array<ObjectReference>;
8
9
  addedLinks: Array<LinkReference>;
10
+ deletedLinks?: Array<LinkReference>;
9
11
  deletedObjectsCount: number;
10
12
  deletedLinksCount: number;
11
13
  }
@@ -13,7 +15,9 @@ interface LargeScaleObjectEdits {
13
15
  type: "largeScaleEdits";
14
16
  addedObjects?: never;
15
17
  modifiedObjects?: never;
18
+ deletedObjects?: never;
16
19
  addedLinks?: never;
20
+ deletedLinks?: never;
17
21
  deletedObjectsCount?: never;
18
22
  deletedLinksCount?: never;
19
23
  }
@@ -1 +1 @@
1
- {"mappings":"AAkBA,YAAY,iBAEN,cACA,yBAEF;CAAE,mBAAmB,MAAM;AAAS;UAE9B,YAAY;CACpB,MAAM;CACN,cAAc,MAAM;CACpB,iBAAiB,MAAM;CACvB,YAAY,MAAM;CAClB;CACA;AACD;UACS,sBAAsB;CAC9B,MAAM;CACN;CACA;CACA;CACA;CACA;AACD;KAEI,gBAAgB;CACnB;CACA;CACA,aAAa;CACb,aAAa;AACd;UACS,gBAAgB;CACxB;CACA;AACD;AACD,iBAAiB,yBAAyB;CACxC,QAAQ,UAAU;CAClB,oBAAoB,MAAM;EACxB;EACA,QAAQ,UAAU;CACnB;CACD,YAAY,eAAe;EACzB,QAAQ,UAAU;EAClB,sBAAsB,MAAM;EAC5B;CACD;AACF;KACI,+BACD;CAAE,MAAM;CAAa;CAAU;CAAW;CAAU;AAAW,IAC/D;CAAE,MAAM;AAAe,IACvB;CAAE,MAAM;AAAuB,IAC/B;CAAE,MAAM;AAAqB,IAC7B;CACA,MAAM;CACN,SAAS,MAAM;EACb;EACA;CACD;CACD;AACD,IACC;CAAE,MAAM;CAAS;CAAU;CAAW;CAAU;AAAW,IAC3D;CAAE,MAAM;CAAgB;CAAU;CAAW;CAAU;AAAW,IAClE;CACA,MAAM;CACN;CACA;AACD,IACC;CAAE,MAAM;AAAe","names":[],"sources":["../../../src/actions/ActionResults.ts"],"version":3,"file":"ActionResults.d.ts"}
1
+ {"mappings":"AAkBA,YAAY,iBAEN,cACA,yBAEF;CAAE,mBAAmB,MAAM;AAAS;UAE9B,YAAY;CACpB,MAAM;CACN,cAAc,MAAM;CACpB,iBAAiB,MAAM;CACvB,iBAAiB,MAAM;CACvB,YAAY,MAAM;CAClB,eAAe,MAAM;CACrB;CACA;AACD;UACS,sBAAsB;CAC9B,MAAM;CACN;CACA;CACA;CACA;CACA;CACA;CACA;AACD;KAEI,gBAAgB;CACnB;CACA;CACA,aAAa;CACb,aAAa;AACd;UACS,gBAAgB;CACxB;CACA;AACD;AACD,iBAAiB,yBAAyB;CACxC,QAAQ,UAAU;CAClB,oBAAoB,MAAM;EACxB;EACA,QAAQ,UAAU;CACnB;CACD,YAAY,eAAe;EACzB,QAAQ,UAAU;EAClB,sBAAsB,MAAM;EAC5B;CACD;AACF;KACI,+BACD;CAAE,MAAM;CAAa;CAAU;CAAW;CAAU;AAAW,IAC/D;CAAE,MAAM;AAAe,IACvB;CAAE,MAAM;AAAuB,IAC/B;CAAE,MAAM;AAAqB,IAC7B;CACA,MAAM;CACN,SAAS,MAAM;EACb;EACA;CACD;CACD;AACD,IACC;CAAE,MAAM;CAAS;CAAU;CAAW;CAAU;AAAW,IAC3D;CAAE,MAAM;CAAgB;CAAU;CAAW;CAAU;AAAW,IAClE;CACA,MAAM;CACN;CACA;AACD,IACC;CAAE,MAAM;AAAe","names":[],"sources":["../../../src/actions/ActionResults.ts"],"version":3,"file":"ActionResults.d.ts"}
@@ -1,7 +1,7 @@
1
1
  import type { DataValueClientToWire } from "../mapping/DataValueMapping.js";
2
2
  import type { ObjectSet } from "../objectSet/ObjectSet.js";
3
3
  import type { InterfaceDefinition } from "../ontology/InterfaceDefinition.js";
4
- import type { ObjectTypeDefinition } from "../ontology/ObjectTypeDefinition.js";
4
+ import type { CompileTimeMetadata, ObjectTypeDefinition } from "../ontology/ObjectTypeDefinition.js";
5
5
  import type { OsdkBase } from "../OsdkBase.js";
6
6
  import type { OsdkObjectPrimaryKeyType } from "../OsdkObjectPrimaryKeyType.js";
7
7
  import type { ActionResults, ValidateActionResponseV2 } from "./ActionResults.js";
@@ -23,9 +23,9 @@ export declare namespace ActionParam {
23
23
  type ObjectType<T extends ObjectTypeDefinition> = OsdkBase<T> | OsdkObjectPrimaryKeyType<T>;
24
24
  type ObjectSetType<T extends ObjectTypeDefinition> = ObjectSet<T>;
25
25
  type InterfaceType<T extends InterfaceDefinition> = {
26
- $objectType: NonNullable<T["__DefinitionMetadata"]> extends {
26
+ $objectType: CompileTimeMetadata<T> extends {
27
27
  implementedBy: infer U
28
- } ? (U extends ReadonlyArray<string> ? U[number] : string) : string
28
+ } ? (U extends ReadonlyArray<never> ? string : U extends ReadonlyArray<string> ? U[number] : string) : string
29
29
  $primaryKey: string | number
30
30
  };
31
31
  type StructType<T extends Record<string, keyof DataValueClientToWire>> = { [K in keyof T] : DataValueClientToWire[T[K]] };
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,6BAA6B,gCAAiC;AAC5E,cAAc,iBAAiB,2BAA4B;AAC3D,cAAc,2BAA2B,oCAAqC;AAC9E,cAAc,4BAA4B,qCAAsC;AAChF,cAAc,gBAAgB,gBAAiB;AAC/C,cAAc,gCAAgC,gCAAiC;AAE/E,cACE,eACA,gCACK,oBAAqB;AAE5B,YAAY,qBACR;CAAE,eAAe;CAAM,gBAAgB;AAAO,IAC9C;CACA,gBAAgB;CAChB,eAAe;AAChB;AAEH,YAAY,0BAA0B;CAAE;AAAwB;;;;AAKhE,yBAAiB;MAIH,cAAc,gBAAgB,yBACxC,sBAAsB;MAKZ,WAAW,UAAU,wBAC7B,SAAS,KACT,yBAAyB;MAKjB,cAAc,UAAU,wBAAwB,UAAU;MAK1D,cAAc,UAAU,uBAAuB;EACzD,aAAa,YAAY,EAAE,iCACzB;GAAE,qBAAqB;EAAG,KACvB,UAAU,wBAAwB;EAEvC;CACD;MAEW,WACV,UAAU,qBAAqB,6BAC1B,WAAW,KAAI,sBAAsB,EAAE;;AAGhD,YAAY,qBAAqB;AACjC,YAAY,2BAA2B","names":[],"sources":["../../../src/actions/Actions.ts"],"version":3,"file":"Actions.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,6BAA6B,gCAAiC;AAC5E,cAAc,iBAAiB,2BAA4B;AAC3D,cAAc,2BAA2B,oCAAqC;AAC9E,cACE,qBACA,4BACK,qCAAsC;AAC7C,cAAc,gBAAgB,gBAAiB;AAC/C,cAAc,gCAAgC,gCAAiC;AAE/E,cACE,eACA,gCACK,oBAAqB;AAE5B,YAAY,qBACR;CAAE,eAAe;CAAM,gBAAgB;AAAO,IAC9C;CACA,gBAAgB;CAChB,eAAe;AAChB;AAEH,YAAY,0BAA0B;CAAE;AAAwB;;;;AAKhE,yBAAiB;MAIH,cAAc,gBAAgB,yBACxC,sBAAsB;MAKZ,WAAW,UAAU,wBAC7B,SAAS,KACT,yBAAyB;MAKjB,cAAc,UAAU,wBAAwB,UAAU;MAK1D,cAAc,UAAU,uBAAuB;EACzD,aAAa,oBAAoB,WAAW;GAAE,qBAAqB;EAAG,KACjE,UAAU,gCACT,UAAU,wBAAwB;EAGxC;CACD;MAEW,WACV,UAAU,qBAAqB,6BAC1B,WAAW,KAAI,sBAAsB,EAAE;;AAGhD,YAAY,qBAAqB;AACjC,YAAY,2BAA2B","names":[],"sources":["../../../src/actions/Actions.ts"],"version":3,"file":"Actions.d.ts"}
@@ -1,17 +1,19 @@
1
- import type { NumericWithPropAggregateOption, StringWithPropAggregateOption } from "../derivedProperties/WithPropertiesAggregationOptions.js";
1
+ import type { BaseWithPropAggregations, DatetimeWithPropAggregateOption, DistinctWithPropAggregateOption, NumericWithPropAggregateOption, ValidCollectPropertyKeysForSpecialTypes } from "../derivedProperties/WithPropertiesAggregationOptions.js";
2
2
  import type { GetWirePropertyValueFromClient } from "../mapping/PropertyValueMapping.js";
3
3
  import type { ObjectOrInterfaceDefinition, PropertyKeys } from "../ontology/ObjectOrInterface.js";
4
4
  import type { CompileTimeMetadata } from "../ontology/ObjectTypeDefinition.js";
5
- export type StringAggregateOption = "approximateDistinct" | "exactDistinct";
6
- export type NumericAggregateOption = "min" | "max" | "sum" | "avg" | "approximateDistinct" | "exactDistinct";
7
- type AGG_FOR_TYPE<
8
- T,
9
- U extends boolean
10
- > = number extends T ? U extends true ? NumericAggregateOption : NumericWithPropAggregateOption : string extends T ? U extends true ? StringAggregateOption : StringWithPropAggregateOption : never;
5
+ import type { WirePropertyTypes } from "../ontology/WirePropertyTypes.js";
6
+ export type BaseAggregateOptions = "approximateDistinct" | "exactDistinct";
7
+ export type MinMaxAggregateOption = "min" | "max";
8
+ export type DatetimeAggregateOption = MinMaxAggregateOption | BaseAggregateOptions;
9
+ export type NumericAggregateOption = "sum" | "avg" | "approximateDistinct" | "exactDistinct" | MinMaxAggregateOption;
10
+ type AGG_FOR_TYPE<WIRE_TYPE extends WirePropertyTypes> = number extends GetWirePropertyValueFromClient<WIRE_TYPE> ? NumericAggregateOption : WIRE_TYPE extends "datetime" | "timestamp" ? DatetimeAggregateOption : BaseAggregateOptions;
11
+ type WITH_PROPERTIES_AGG_FOR_TYPE<WIRE_TYPE extends WirePropertyTypes> = number extends GetWirePropertyValueFromClient<WIRE_TYPE> ? NumericWithPropAggregateOption : WIRE_TYPE extends "datetime" | "timestamp" ? DatetimeWithPropAggregateOption : WIRE_TYPE extends "string" ? BaseWithPropAggregations : WITH_PROPERTIES_AGG_FOR_SPECIAL_WIRE_TYPE<WIRE_TYPE>;
12
+ type WITH_PROPERTIES_AGG_FOR_SPECIAL_WIRE_TYPE<WIRE_TYPE extends WirePropertyTypes> = WIRE_TYPE extends ValidCollectPropertyKeysForSpecialTypes ? BaseWithPropAggregations : DistinctWithPropAggregateOption;
11
13
  export type ValidAggregationKeys<
12
14
  Q extends ObjectOrInterfaceDefinition,
13
15
  R extends "aggregate" | "withPropertiesAggregate" = "aggregate"
14
- > = keyof ({ [KK in AggregatableKeys<Q> as `${KK & string}:${AGG_FOR_TYPE<GetWirePropertyValueFromClient<CompileTimeMetadata<Q>["properties"][KK]["type"]>, R extends "aggregate" ? true : false>}`]? : any } & {
16
+ > = keyof ({ [KK in AggregatableKeys<Q> as `${KK & string}:${R extends "aggregate" ? AGG_FOR_TYPE<CompileTimeMetadata<Q>["properties"][KK]["type"]> : WITH_PROPERTIES_AGG_FOR_TYPE<CompileTimeMetadata<Q>["properties"][KK]["type"]>}`]? : any } & {
15
17
  $count?: any
16
18
  });
17
19
  export type AggregatableKeys<Q extends ObjectOrInterfaceDefinition> = keyof { [P in PropertyKeys<Q>] : any };
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cACE,gCACA,qCACK,0DAA2D;AAClE,cACE,sCACK,oCAAqC;AAC5C,cACE,6BACA,oBACK,kCAAmC;AAC1C,cAAc,2BAA2B,qCAAsC;AAE/E,YAAY,wBAAwB,wBAAwB;AAC5D,YAAY,yBACR,QACA,QACA,QACA,QACA,wBACA;KAEC;CAAa;CAAG;mBAAoC,IACrD,UAAU,OAAO,yBAAyB,gDAC3B,IACb,UAAU,OAAO,wBAAwB;AAG/C,YAAY;CACV,UAAU;CACV,UAAU,cAAc,4BAA4B;cAIhD,MAAM,iBAAiB,SAAS,eAAe,aAC7C,+BACE,oBAAoB,GAAG,cAAc,IAAI,UAE3C,UAAU,cAAc,OAAO,qBAInC;CAAE;AAAc;AAGpB,YAAY,iBACV,UAAU,wCAET,KAAK,aAAa","names":[],"sources":["../../../src/aggregate/AggregatableKeys.ts"],"version":3,"file":"AggregatableKeys.d.ts"}
1
+ {"mappings":"AAgBA,cACE,0BACA,iCACA,iCACA,gCACA,+CACK,0DAA2D;AAClE,cACE,sCACK,oCAAqC;AAC5C,cACE,6BACA,oBACK,kCAAmC;AAC1C,cAAc,2BAA2B,qCAAsC;AAC/E,cAAc,yBAAyB,kCAAmC;AAE1E,YAAY,uBAAuB,wBAAwB;AAE3D,YAAY,wBAAwB,QAAQ;AAE5C,YAAY,0BACR,wBACA;AAEJ,YAAY,yBACR,QACA,QACA,wBACA,kBACA;KAEC,aAAa,kBAAkB,oCAClC,+BAA+B,aAAa,yBAC1C,kBAAkB,aAAa,cAAc,0BAC7C;KAEC,6BAA6B,kBAAkB,oCACnC,+BAA+B,aAC1C,iCACA,kBAAkB,aAAa,cAC7B,kCACF,kBAAkB,WAAW,2BAC7B,0CAA0C;KAE3C,0CACH,kBAAkB,qBAChB,kBAAkB,0CAClB,2BACA;AAEJ,YAAY;CACV,UAAU;CACV,UAAU,cAAc,4BAA4B;cAIhD,MAAM,iBAAiB,SAAS,eAAe,UAAU,cACrD,aACA,oBAAoB,GAAG,cAAc,IAAI,WAEzC,6BACA,oBAAoB,GAAG,cAAc,IAAI,uBAI/C;CAAE;AAAc;AAGpB,YAAY,iBACV,UAAU,wCAET,KAAK,aAAa","names":[],"sources":["../../../src/aggregate/AggregatableKeys.ts"],"version":3,"file":"AggregatableKeys.d.ts"}
@@ -4,30 +4,48 @@ 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";
8
9
  export declare namespace DerivedProperty {
9
- type SelectorResult<T extends SimplePropertyDef> = {
10
- type: T
10
+ export interface Definition<
11
+ T extends SimplePropertyDef,
12
+ Q extends ObjectOrInterfaceDefinition
13
+ > {
14
+ type: T;
15
+ }
16
+ export interface NumericPropertyDefinition<
17
+ T extends SimplePropertyDef,
18
+ Q extends ObjectOrInterfaceDefinition
19
+ > extends Definition<T, Q>, NumericExpressions<Q, T> {}
20
+ export interface DatetimePropertyDefinition<
21
+ T extends SimplePropertyDef,
22
+ Q extends ObjectOrInterfaceDefinition
23
+ > extends Definition<T, Q>, DatetimeExpressions<Q, T> {}
24
+ export type Clause<Q extends ObjectOrInterfaceDefinition> = {
25
+ [key: string]: Creator<Q, SimplePropertyDef>
11
26
  };
12
- type Clause<Q extends ObjectOrInterfaceDefinition> = {
13
- [key: string]: Selector<Q, SimplePropertyDef>
14
- };
15
- type Selector<
27
+ export type Creator<
16
28
  Q extends ObjectOrInterfaceDefinition,
17
29
  T extends SimplePropertyDef
18
- > = (baseObjectSet: DerivedProperty.Builder<Q, false>) => SelectorResult<T>;
19
- interface Builder<
30
+ > = (baseObjectSet: Builder<Q, false>) => Definition<T, Q> | NumericPropertyDefinition<T, Q> | DatetimePropertyDefinition<T, Q>;
31
+ interface BaseBuilder<
20
32
  Q extends ObjectOrInterfaceDefinition,
21
33
  CONSTRAINED extends boolean
22
34
  > extends Filterable<Q, CONSTRAINED>, Pivotable<Q, CONSTRAINED> {}
23
- interface AggregateBuilder<
35
+ export interface Builder<
36
+ Q extends ObjectOrInterfaceDefinition,
37
+ CONSTRAINED extends boolean
38
+ > extends BaseBuilder<Q, CONSTRAINED>, Selectable<Q>, Constant<Q> {}
39
+ export interface AggregateBuilder<
24
40
  Q extends ObjectOrInterfaceDefinition,
25
41
  CONSTRAINED extends boolean
26
- > extends Builder<Q, CONSTRAINED>, Aggregatable<Q> {}
27
- interface SelectPropertyBuilder<
42
+ > extends BaseBuilder<Q, CONSTRAINED>, Aggregatable<Q> {}
43
+ export interface SelectPropertyBuilder<
28
44
  Q extends ObjectOrInterfaceDefinition,
29
45
  CONSTRAINED extends boolean
30
46
  > extends AggregateBuilder<Q, CONSTRAINED>, Selectable<Q> {}
47
+ export type ValidParts = "DAYS" | "MONTHS" | "QUARTERS" | "YEARS";
48
+ export {};
31
49
  }
32
50
  type BuilderTypeFromConstraint<
33
51
  Q extends ObjectOrInterfaceDefinition,
@@ -45,14 +63,23 @@ type Pivotable<
45
63
  > = {
46
64
  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
65
  };
66
+ type Constant<Q extends ObjectOrInterfaceDefinition> = {
67
+ readonly constant: {
68
+ readonly double: (value: number) => DerivedProperty.NumericPropertyDefinition<SimplePropertyDef.Make<"double", "non-nullable", "single">, Q>
69
+ readonly integer: (value: number) => DerivedProperty.NumericPropertyDefinition<SimplePropertyDef.Make<"integer", "non-nullable", "single">, Q>
70
+ readonly long: (value: string) => DerivedProperty.NumericPropertyDefinition<SimplePropertyDef.Make<"long", "non-nullable", "single">, Q>
71
+ readonly datetime: (value: string) => DerivedProperty.DatetimePropertyDefinition<SimplePropertyDef.Make<"datetime", "non-nullable", "single">, Q>
72
+ readonly timestamp: (value: string) => DerivedProperty.DatetimePropertyDefinition<SimplePropertyDef.Make<"timestamp", "non-nullable", "single">, Q>
73
+ }
74
+ };
48
75
  type Aggregatable<Q extends ObjectOrInterfaceDefinition> = {
49
76
  readonly aggregate: <V extends ValidAggregationKeys<Q, "withPropertiesAggregate">>(aggregationSpecifier: V, opts?: V extends `${any}:${infer P}` ? P extends CollectWithPropAggregations ? {
50
77
  limit: number
51
78
  } : P extends "approximatePercentile" ? {
52
79
  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" | undefined : "double" | undefined : V extends "$count" ? "integer" | undefined : never>
80
+ } : 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
81
  };
55
82
  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"]>>
83
+ 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
84
  };
58
85
  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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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":"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,yBAAiB;AACf,kBAAiB;EACf,UAAU;EACV,UAAU;GACV;EACA,MAAM;CACP;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,OACV,UAAU,+BACR;iBACa,QAAQ,GAAG;CAC3B;AAED,aAAY;EACV,UAAU;EACV,UAAU;MAEVA,eAAe,QAAQ,GAAG,WAExB,WAAW,GAAG,KACd,0BAA0B,GAAG,KAC7B,2BAA2B,GAAG;WAExB;EACR,UAAU;EACV;WACQ,WAAW,GAAG,cAAc,UAAU,GAAG,aAAa,CAC/D;AAED,kBAAiB;EACf,UAAU;EACV;WACQ,YAAY,GAAG,cAAc,WAAW,IAAI,SAAS,GAAG,CACjE;AAED,kBAAiB;EACf,UAAU;EACV;WACQ,YAAY,GAAG,cAAc,aAAa,GAAG,CACtD;AAED,kBAAiB;EACf,UAAU;EACV;WACQ,iBAAiB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AAU,wBAAwB,kBAChC,kBAAkB,KAClB,WACA,gBACA,YAEF,kBAAkB,KAClB,UACA,YACA,YAEA,UAAU,WAAW,kBAAkB,KACrC,WACA,gBACA;AAIT;KAEI,WAAW,UAAU,+BAA+B;UAC9C,iBAAiB,UAAU,aAAa,IAC/CC,cAAc,MACX,kBACH,GACA,kBAAkB,KAChB,oBAAoB,GAAG,cAAc,GAAG,SACxC,oBAAoB,GAAG,cAAc,GAAG,oBAAoB,OACxD,aACA,gBACJ,oBAAoB,GAAG,cAAc,GAAG,wBAAwB,OAC5D,UACA;AAGT","names":["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"}
@@ -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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B,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,4 +1,5 @@
1
1
  import type { MediaReference } from "../object/Media.js";
2
+ import type { ObjectOrInterfaceDefinition, PropertyKeys } from "../ontology/ObjectOrInterface.js";
2
3
  import type { Experiment } from "./Experiment.js";
3
4
  /**
4
5
  * @experimental This feature is experimental and might change in the future.
@@ -7,16 +8,19 @@ import type { Experiment } from "./Experiment.js";
7
8
  *
8
9
  * @param data - Data to upload as media item
9
10
  * @param fileName - Name that will be assigned as path to the uploaded media item.
10
- * @param objectTypeApi - Api name of the object type to which the media item will be uploaded.
11
- * @param propertyTypeApi - Api name of the media reference property of the corresponding object type to which the media item will be uploaded.
11
+ * @param objectType - Object type to which the media item will be uploaded.
12
+ * @param propertyType - Media reference property of the corresponding object type to which the media item will be uploaded.
12
13
  *
13
14
  * @returns media reference of the uploaded media item.
14
15
  */
15
- type createMediaReference = (args: {
16
+ type createMediaReference = <
17
+ Q extends ObjectOrInterfaceDefinition,
18
+ const L extends PropertyKeys.Filtered<Q, "mediaReference">
19
+ >(args: {
16
20
  data: Blob
17
21
  fileName: string
18
- objectTypeApi: string
19
- propertyTypeApi: string
22
+ objectType: Q
23
+ propertyType: L
20
24
  }) => Promise<MediaReference>;
21
25
  export declare const __EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference: Experiment<"2.1.0", "__EXPERIMENTAL__NOT_SUPPORTED_YET__createMediaReference", {
22
26
  createMediaReference: createMediaReference
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,sBAAsB,oBAAqB;AACzD,cAAc,kBAAkB,iBAAkB;;;;;;;;;;;;;KAc7C,wBACHA,MAAM;CACJ,MAAM;CACN;CACA;CACA;AACD,MACE,QAAQ;AAEb,OAAO,cAAMC,yDACX,WACE,SACA,2DACA;CAAE,sBAAsB;AAAsB","names":["args: {\n data: Blob;\n fileName: string;\n objectTypeApi: string;\n propertyTypeApi: string;\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"}
@@ -0,0 +1,15 @@
1
+ import type { FetchPageArgs, NullabilityAdherence } from "../object/FetchPageArgs.js";
2
+ import type { FetchPageResult } from "../object/FetchPageResult.js";
3
+ import type { ObjectOrInterfaceDefinition, PropertyKeys } from "../ontology/ObjectOrInterface.js";
4
+ import type { Experiment } from "./Experiment.js";
5
+ type fetchPageByRidFn = <
6
+ Q extends ObjectOrInterfaceDefinition,
7
+ const L extends PropertyKeys<Q>,
8
+ const R extends boolean,
9
+ const S extends NullabilityAdherence,
10
+ const T extends boolean
11
+ >(objectType: Q, rids: string[], options?: FetchPageArgs<Q, L, R, any, S, T>) => Promise<FetchPageResult<Q, L, R, S, T>>;
12
+ export declare const __EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid: Experiment<"2.2.0", "__EXPERIMENTAL__NOT_SUPPORTED_YET__fetchPageByRid", {
13
+ fetchPageByRid: fetchPageByRidFn
14
+ }>;
15
+ export {};
@@ -0,0 +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,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"}
@@ -5,6 +5,12 @@ import type { GroupByMapper } from "./GroupByMapper.js";
5
5
  export type GroupByClause<Q extends ObjectOrInterfaceDefinition> = { [P in AggregatableKeys<Q>]? : GroupByEntry<Q, P> };
6
6
  type BaseGroupByValue = "exact" | {
7
7
  $exactWithLimit: number
8
+ } | ExactGroupByWithOptions;
9
+ type ExactGroupByWithOptions = {
10
+ $exact: {
11
+ $limit?: number
12
+ $defaultValue?: string
13
+ }
8
14
  };
9
15
  export type GroupByRange<T> = [T, T];
10
16
  export type StringGroupByValue = BaseGroupByValue;
@@ -1 +1 @@
1
- {"mappings":"AAgBA,cAAc,wBAAwB,kCAAmC;AAEzE,cAAc,mCAAmC,kCAAmC;AACpF,cAAc,2BAA2B,qCAAsC;AAC/E,cAAc,qBAAqB,oBAAqB;AAExD,YAAY,cACV,UAAU,kCAET,KAAK,iBAAiB,OAAM,aAAa,GAAG;KAG1C,mBAAmB,UAAU;CAAE;AAAyB;AAC7D,YAAY,aAAa,MAAM,GAAG;AAElC,YAAY,qBAAqB;AAEjC,YAAY,sBAAsB,mBAAmB;CACnD;AACD,IAAG;CAAE,SAAS;AAAwB;AAEvC,YAAY,wBACR,mBACA;CAAE,SAAS;AAAwB,IACnC;CAAE,WAAW;AAA0B;AAE3C,YAAY,mBACR,mBACA;CAAE,SAAS;AAAwB,IACnC;CAAE,WAAW;AAAyB;AAE1C,YAAY,sBAAsB;AAElC,YAAY,qBACR,gBACA,YACA,YACA;AAEJ,YAAY,gBAAgB,SAAS,UAAU,WAAW,UAAU;AACpE,OAAO,cAAMA,iBAAiB;CAC5B,SAAS;CACT,UAAU;CACV,KAAK;CACL,SAAS;CACT,KAAK;CACL,QAAQ;CACR,SAAS;CACT,IAAI;CACJ,KAAK;CACL,MAAM;CACN,OAAO;CACP,KAAK;CACL,MAAM;CACN,IAAI;CACJ,MAAM;CACN,OAAO;CACP,KAAK;CACL,OAAO;CACP,QAAQ;CACR,IAAI;CACJ,MAAM;CACN,OAAO;AACR;UAMS,iBAAiB;CACzB;CACA;CACA;CACA;CACA,OAAO;CACP,QAAQ;CACR,OAAO;CACP,UAAU;AACX;KAEI,gBAAgB,QAClB,kBAAkB,0BAAyB,gBAAgB,WAAW,KAClE,wBAAwB,gBAAgB,KAAK,0BAErC;KAEV,2BAA2B,gBAAgB;KAC3C,0BAA0B,gBAAgB;KAE1C;CACH,UAAU;CACV,UAAU,iBAAiB;IACzB,oBAAoB,GAAG,cAAc,GAAG,sBAAsB,gBAC9D,cAAc,oBAAoB,GAAG,cAAc,GAAG;AAG1D,YAAY,mBAAmB,oBAAoB","names":["DurationMapping: {\n quarter: \"QUARTERS\";\n quarters: \"QUARTERS\";\n sec: \"SECONDS\";\n seconds: \"SECONDS\";\n min: \"MINUTES\";\n minute: \"MINUTES\";\n minutes: \"MINUTES\";\n hr: \"HOURS\";\n hrs: \"HOURS\";\n hour: \"HOURS\";\n hours: \"HOURS\";\n day: \"DAYS\";\n days: \"DAYS\";\n wk: \"WEEKS\";\n week: \"WEEKS\";\n weeks: \"WEEKS\";\n mos: \"MONTHS\";\n month: \"MONTHS\";\n months: \"MONTHS\";\n yr: \"YEARS\";\n year: \"YEARS\";\n years: \"YEARS\";\n}"],"sources":["../../../src/groupby/GroupByClause.ts"],"version":3,"file":"GroupByClause.d.ts"}
1
+ {"mappings":"AAgBA,cAAc,wBAAwB,kCAAmC;AAEzE,cAAc,mCAAmC,kCAAmC;AACpF,cAAc,2BAA2B,qCAAsC;AAC/E,cAAc,qBAAqB,oBAAqB;AAExD,YAAY,cACV,UAAU,kCAET,KAAK,iBAAiB,OAAM,aAAa,GAAG;KAG1C,mBACD,UACA;CAAE;AAAyB,IAC3B;KAEC,0BAA0B;CAC7B,QAAQ;EAAE;EAAiB;CAAwB;AACpD;AAED,YAAY,aAAa,MAAM,GAAG;AAElC,YAAY,qBAAqB;AAEjC,YAAY,sBAAsB,mBAAmB;CACnD;AACD,IAAG;CAAE,SAAS;AAAwB;AAEvC,YAAY,wBACR,mBACA;CAAE,SAAS;AAAwB,IACnC;CAAE,WAAW;AAA0B;AAE3C,YAAY,mBACR,mBACA;CAAE,SAAS;AAAwB,IACnC;CAAE,WAAW;AAAyB;AAE1C,YAAY,sBAAsB;AAElC,YAAY,qBACR,gBACA,YACA,YACA;AAEJ,YAAY,gBAAgB,SAAS,UAAU,WAAW,UAAU;AACpE,OAAO,cAAMA,iBAAiB;CAC5B,SAAS;CACT,UAAU;CACV,KAAK;CACL,SAAS;CACT,KAAK;CACL,QAAQ;CACR,SAAS;CACT,IAAI;CACJ,KAAK;CACL,MAAM;CACN,OAAO;CACP,KAAK;CACL,MAAM;CACN,IAAI;CACJ,MAAM;CACN,OAAO;CACP,KAAK;CACL,OAAO;CACP,QAAQ;CACR,IAAI;CACJ,MAAM;CACN,OAAO;AACR;UAMS,iBAAiB;CACzB;CACA;CACA;CACA;CACA,OAAO;CACP,QAAQ;CACR,OAAO;CACP,UAAU;AACX;KAEI,gBAAgB,QAClB,kBAAkB,0BAAyB,gBAAgB,WAAW,KAClE,wBAAwB,gBAAgB,KAAK,0BAErC;KAEV,2BAA2B,gBAAgB;KAC3C,0BAA0B,gBAAgB;KAE1C;CACH,UAAU;CACV,UAAU,iBAAiB;IACzB,oBAAoB,GAAG,cAAc,GAAG,sBAAsB,gBAC9D,cAAc,oBAAoB,GAAG,cAAc,GAAG;AAG1D,YAAY,mBAAmB,oBAAoB","names":["DurationMapping: {\n quarter: \"QUARTERS\";\n quarters: \"QUARTERS\";\n sec: \"SECONDS\";\n seconds: \"SECONDS\";\n min: \"MINUTES\";\n minute: \"MINUTES\";\n minutes: \"MINUTES\";\n hr: \"HOURS\";\n hrs: \"HOURS\";\n hour: \"HOURS\";\n hours: \"HOURS\";\n day: \"DAYS\";\n days: \"DAYS\";\n wk: \"WEEKS\";\n week: \"WEEKS\";\n weeks: \"WEEKS\";\n mos: \"MONTHS\";\n month: \"MONTHS\";\n months: \"MONTHS\";\n yr: \"YEARS\";\n year: \"YEARS\";\n years: \"YEARS\";\n}"],"sources":["../../../src/groupby/GroupByClause.ts"],"version":3,"file":"GroupByClause.d.ts"}
@@ -1,45 +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 { InterfaceDefinition, InterfaceMetadata } from "./ontology/InterfaceDefinition.js";
31
- export type { ObjectOrInterfaceDefinition, PropertyKeys } from "./ontology/ObjectOrInterface.js";
32
- export type { CompileTimeMetadata, ObjectMetadata, ObjectTypeDefinition, PropertyDef, VersionBound } from "./ontology/ObjectTypeDefinition.js";
33
- export type { OntologyMetadata } from "./ontology/OntologyMetadata.js";
34
- export type { PrimaryKeyTypes } from "./ontology/PrimaryKeyTypes.js";
35
- export type { ObjectQueryDataType, ObjectSetQueryDataType, QueryDataTypeDefinition, QueryDefinition, QueryMetadata, QueryParameterDefinition, ThreeDimensionalQueryAggregationDefinition, TwoDimensionalQueryAggregationDefinition } from "./ontology/QueryDefinition.js";
36
- export type { BaseWirePropertyTypes, WirePropertyTypes } from "./ontology/WirePropertyTypes.js";
37
- export type { OsdkBase, PrimaryKeyType } from "./OsdkBase.js";
38
- export type { OsdkObject } from "./OsdkObject.js";
39
- export type { ConvertProps, Osdk } from "./OsdkObjectFrom.js";
40
- export type { PageResult } from "./PageResult.js";
41
- 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";
42
44
  export { TimeseriesDurationMapping } from "./timeseries/timeseries.js";
43
- export type { GeotimeSeriesProperty, TimeSeriesPoint, TimeSeriesProperty, TimeSeriesQuery } from "./timeseries/timeseries.js";
44
- 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";
45
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,eACE,qBACA,yBACK;AACP,eACE,6BACA,oBACK;AACP,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,eAAc,YAAY,mBAAmB;AAC7C,SAAS,iCAAiC;AAC1C,eACE,uBACA,iBACA,oBACA,uBACK;AACP,eAAc,YAAY,iBAAiB;AAE3C","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"}