@osdk/client 2.0.0-beta.9 → 2.0.0

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 (605) hide show
  1. package/CHANGELOG.md +270 -0
  2. package/build/browser/Client.d.ts +39 -0
  3. package/build/browser/Client.d.ts.map +1 -0
  4. package/build/browser/Client.js +20 -0
  5. package/build/browser/Client.js.map +1 -0
  6. package/build/browser/Definitions.test.d.ts +2 -0
  7. package/build/browser/Definitions.test.d.ts.map +1 -0
  8. package/build/browser/Definitions.test.js +35 -0
  9. package/build/browser/Definitions.test.js.map +1 -0
  10. package/build/browser/Logger.d.ts +19 -0
  11. package/build/browser/Logger.d.ts.map +1 -0
  12. package/build/browser/Logger.js +17 -0
  13. package/build/browser/Logger.js.map +1 -0
  14. package/build/browser/MinimalClientContext.d.ts +26 -0
  15. package/build/browser/MinimalClientContext.d.ts.map +1 -0
  16. package/build/browser/MinimalClientContext.js +17 -0
  17. package/build/browser/MinimalClientContext.js.map +1 -0
  18. package/build/browser/ResultOrError.d.ts +12 -0
  19. package/build/browser/ResultOrError.d.ts.map +1 -0
  20. package/build/browser/ResultOrError.js +19 -0
  21. package/build/browser/ResultOrError.js.map +1 -0
  22. package/build/browser/SatisfiesSemver.d.ts +4 -0
  23. package/build/browser/SatisfiesSemver.d.ts.map +1 -0
  24. package/build/browser/SatisfiesSemver.js +17 -0
  25. package/build/browser/SatisfiesSemver.js.map +1 -0
  26. package/build/browser/SatisfiesSemver.test.d.ts +2 -0
  27. package/build/browser/SatisfiesSemver.test.d.ts.map +1 -0
  28. package/build/browser/SatisfiesSemver.test.js +69 -0
  29. package/build/browser/SatisfiesSemver.test.js.map +1 -0
  30. package/build/browser/__unstable/ConjureSupport.d.ts +55 -0
  31. package/build/browser/__unstable/ConjureSupport.d.ts.map +1 -0
  32. package/build/browser/__unstable/ConjureSupport.js +174 -0
  33. package/build/browser/__unstable/ConjureSupport.js.map +1 -0
  34. package/build/browser/__unstable/createBulkLinksAsyncIterFactory.d.ts +10 -0
  35. package/build/browser/__unstable/createBulkLinksAsyncIterFactory.d.ts.map +1 -0
  36. package/build/browser/__unstable/createBulkLinksAsyncIterFactory.js +114 -0
  37. package/build/browser/__unstable/createBulkLinksAsyncIterFactory.js.map +1 -0
  38. package/build/browser/actions/ActionValidationError.d.ts +6 -0
  39. package/build/browser/actions/ActionValidationError.d.ts.map +1 -0
  40. package/build/browser/actions/ActionValidationError.js +23 -0
  41. package/build/browser/actions/ActionValidationError.js.map +1 -0
  42. package/build/browser/actions/actions.test.d.ts +2 -0
  43. package/build/browser/actions/actions.test.d.ts.map +1 -0
  44. package/build/browser/actions/actions.test.js +323 -0
  45. package/build/browser/actions/actions.test.js.map +1 -0
  46. package/build/browser/actions/applyAction.d.ts +30 -0
  47. package/build/browser/actions/applyAction.d.ts.map +1 -0
  48. package/build/browser/actions/applyAction.js +114 -0
  49. package/build/browser/actions/applyAction.js.map +1 -0
  50. package/build/browser/createAttachmentFromRid.d.ts +10 -0
  51. package/build/browser/createAttachmentFromRid.d.ts.map +1 -0
  52. package/build/browser/createAttachmentFromRid.js +38 -0
  53. package/build/browser/createAttachmentFromRid.js.map +1 -0
  54. package/build/browser/createClient.d.ts +6 -0
  55. package/build/browser/createClient.d.ts.map +1 -0
  56. package/build/browser/createClient.js +88 -0
  57. package/build/browser/createClient.js.map +1 -0
  58. package/build/browser/createClient.test.d.ts +2 -0
  59. package/build/browser/createClient.test.d.ts.map +1 -0
  60. package/build/browser/createClient.test.js +45 -0
  61. package/build/browser/createClient.test.js.map +1 -0
  62. package/build/browser/createMinimalClient.d.ts +2 -0
  63. package/build/browser/createMinimalClient.d.ts.map +1 -0
  64. package/build/browser/createMinimalClient.js +42 -0
  65. package/build/browser/createMinimalClient.js.map +1 -0
  66. package/build/browser/createPlatformClient.d.ts +17 -0
  67. package/build/browser/createPlatformClient.d.ts.map +1 -0
  68. package/build/browser/createPlatformClient.js +33 -0
  69. package/build/browser/createPlatformClient.js.map +1 -0
  70. package/build/browser/createTimeseriesProperty.d.ts +14 -0
  71. package/build/browser/createTimeseriesProperty.d.ts.map +1 -0
  72. package/build/browser/createTimeseriesProperty.js +79 -0
  73. package/build/browser/createTimeseriesProperty.js.map +1 -0
  74. package/build/browser/definitions/LinkDefinitions.test.d.ts +2 -0
  75. package/build/browser/definitions/LinkDefinitions.test.d.ts.map +1 -0
  76. package/build/browser/definitions/LinkDefinitions.test.js +41 -0
  77. package/build/browser/definitions/LinkDefinitions.test.js.map +1 -0
  78. package/build/browser/fetchMetadata.d.ts +2 -0
  79. package/build/browser/fetchMetadata.d.ts.map +1 -0
  80. package/build/browser/fetchMetadata.js +35 -0
  81. package/build/browser/fetchMetadata.js.map +1 -0
  82. package/build/browser/fetchMetadata.test.d.ts +2 -0
  83. package/build/browser/fetchMetadata.test.d.ts.map +1 -0
  84. package/build/browser/fetchMetadata.test.js +218 -0
  85. package/build/browser/fetchMetadata.test.js.map +1 -0
  86. package/build/browser/index.d.ts +13 -0
  87. package/build/browser/index.d.ts.map +1 -0
  88. package/build/browser/index.js +22 -12
  89. package/build/browser/index.js.map +1 -1
  90. package/build/browser/intellisense.test.d.ts +2 -0
  91. package/build/browser/intellisense.test.d.ts.map +1 -0
  92. package/build/browser/intellisense.test.helpers/callsQueryAcceptsObject.d.ts +2 -0
  93. package/build/browser/intellisense.test.helpers/callsQueryAcceptsObject.d.ts.map +1 -0
  94. package/build/browser/intellisense.test.helpers/callsQueryAcceptsObject.js +25 -0
  95. package/build/browser/intellisense.test.helpers/callsQueryAcceptsObject.js.map +1 -0
  96. package/build/browser/intellisense.test.js +86 -0
  97. package/build/browser/intellisense.test.js.map +1 -0
  98. package/build/browser/internal/conversions/legacyToModernSingleAggregationResult.d.ts +2 -0
  99. package/build/browser/internal/conversions/legacyToModernSingleAggregationResult.d.ts.map +1 -0
  100. package/build/browser/internal/conversions/legacyToModernSingleAggregationResult.js +34 -0
  101. package/build/browser/internal/conversions/legacyToModernSingleAggregationResult.js.map +1 -0
  102. package/build/browser/internal/conversions/modernToLegacyAggregationClause.d.ts +2 -0
  103. package/build/browser/internal/conversions/modernToLegacyAggregationClause.d.ts.map +1 -0
  104. package/build/browser/internal/conversions/modernToLegacyAggregationClause.js +38 -0
  105. package/build/browser/internal/conversions/modernToLegacyAggregationClause.js.map +1 -0
  106. package/build/browser/internal/conversions/modernToLegacyGroupByClause.d.ts +2 -0
  107. package/build/browser/internal/conversions/modernToLegacyGroupByClause.d.ts.map +1 -0
  108. package/build/browser/internal/conversions/modernToLegacyGroupByClause.js +62 -0
  109. package/build/browser/internal/conversions/modernToLegacyGroupByClause.js.map +1 -0
  110. package/build/browser/internal/conversions/modernToLegacyWhereClause.d.ts +2 -0
  111. package/build/browser/internal/conversions/modernToLegacyWhereClause.d.ts.map +1 -0
  112. package/build/browser/internal/conversions/modernToLegacyWhereClause.js +144 -0
  113. package/build/browser/internal/conversions/modernToLegacyWhereClause.js.map +1 -0
  114. package/build/browser/internal/conversions/modernToLegacyWhereClause.test.d.ts +2 -0
  115. package/build/browser/internal/conversions/modernToLegacyWhereClause.test.d.ts.map +1 -0
  116. package/build/browser/internal/conversions/modernToLegacyWhereClause.test.js +486 -0
  117. package/build/browser/internal/conversions/modernToLegacyWhereClause.test.js.map +1 -0
  118. package/build/browser/object/AttachmentUpload.d.ts +4 -0
  119. package/build/browser/object/AttachmentUpload.d.ts.map +1 -0
  120. package/build/browser/object/AttachmentUpload.js +27 -0
  121. package/build/browser/object/AttachmentUpload.js.map +1 -0
  122. package/build/browser/object/Cache.d.ts +2 -0
  123. package/build/browser/object/Cache.d.ts.map +1 -0
  124. package/build/browser/object/Cache.js +76 -0
  125. package/build/browser/object/Cache.js.map +1 -0
  126. package/build/browser/object/Cache.test.d.ts +11 -0
  127. package/build/browser/object/Cache.test.d.ts.map +1 -0
  128. package/build/browser/object/Cache.test.js +283 -0
  129. package/build/browser/object/Cache.test.js.map +1 -0
  130. package/build/browser/object/SimpleCache.d.ts +38 -0
  131. package/build/browser/object/SimpleCache.d.ts.map +1 -0
  132. package/build/browser/object/SimpleCache.js +67 -0
  133. package/build/browser/object/SimpleCache.js.map +1 -0
  134. package/build/browser/object/aggregate.d.ts +2 -0
  135. package/build/browser/object/aggregate.d.ts.map +1 -0
  136. package/build/browser/object/aggregate.js +69 -0
  137. package/build/browser/object/aggregate.js.map +1 -0
  138. package/build/browser/object/aggregate.test.d.ts +2 -0
  139. package/build/browser/object/aggregate.test.d.ts.map +1 -0
  140. package/build/browser/object/aggregate.test.js +398 -0
  141. package/build/browser/object/aggregate.test.js.map +1 -0
  142. package/build/browser/object/attachment.test.d.ts +2 -0
  143. package/build/browser/object/attachment.test.d.ts.map +1 -0
  144. package/build/browser/object/attachment.test.js +55 -0
  145. package/build/browser/object/attachment.test.js.map +1 -0
  146. package/build/browser/object/convertWireToOsdkObjects/InterfaceHolder.d.ts +11 -0
  147. package/build/browser/object/convertWireToOsdkObjects/InterfaceHolder.d.ts.map +1 -0
  148. package/build/browser/object/convertWireToOsdkObjects/InterfaceHolder.js +17 -0
  149. package/build/browser/object/convertWireToOsdkObjects/InterfaceHolder.js.map +1 -0
  150. package/build/browser/object/convertWireToOsdkObjects/InternalSymbols.d.ts +13 -0
  151. package/build/browser/object/convertWireToOsdkObjects/InternalSymbols.d.ts.map +1 -0
  152. package/build/browser/object/convertWireToOsdkObjects/InternalSymbols.js +22 -0
  153. package/build/browser/object/convertWireToOsdkObjects/InternalSymbols.js.map +1 -0
  154. package/build/browser/object/convertWireToOsdkObjects/ObjectHolder.d.ts +2 -0
  155. package/build/browser/object/convertWireToOsdkObjects/ObjectHolder.d.ts.map +1 -0
  156. package/build/browser/object/convertWireToOsdkObjects/ObjectHolder.js +17 -0
  157. package/build/browser/object/convertWireToOsdkObjects/ObjectHolder.js.map +1 -0
  158. package/build/browser/object/convertWireToOsdkObjects/OsdkCustomInspectPrototype.d.ts +2 -0
  159. package/build/browser/object/convertWireToOsdkObjects/OsdkCustomInspectPrototype.d.ts.map +1 -0
  160. package/build/browser/object/convertWireToOsdkObjects/OsdkCustomInspectPrototype.js +48 -0
  161. package/build/browser/object/convertWireToOsdkObjects/OsdkCustomInspectPrototype.js.map +1 -0
  162. package/build/browser/object/convertWireToOsdkObjects/PropertyDescriptorRecord.d.ts +8 -0
  163. package/build/browser/object/convertWireToOsdkObjects/PropertyDescriptorRecord.d.ts.map +1 -0
  164. package/build/browser/object/convertWireToOsdkObjects/PropertyDescriptorRecord.js +17 -0
  165. package/build/browser/object/convertWireToOsdkObjects/PropertyDescriptorRecord.js.map +1 -0
  166. package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.d.ts +2 -0
  167. package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.d.ts.map +1 -0
  168. package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js +82 -0
  169. package/build/browser/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -0
  170. package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.d.ts +2 -0
  171. package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.d.ts.map +1 -0
  172. package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js +114 -0
  173. package/build/browser/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -0
  174. package/build/browser/object/convertWireToOsdkObjects/getDollarAs.d.ts +3 -0
  175. package/build/browser/object/convertWireToOsdkObjects/getDollarAs.d.ts.map +1 -0
  176. package/build/browser/object/convertWireToOsdkObjects/getDollarAs.js +55 -0
  177. package/build/browser/object/convertWireToOsdkObjects/getDollarAs.js.map +1 -0
  178. package/build/browser/object/convertWireToOsdkObjects/getDollarLink.d.ts +2 -0
  179. package/build/browser/object/convertWireToOsdkObjects/getDollarLink.d.ts.map +1 -0
  180. package/build/browser/object/convertWireToOsdkObjects/getDollarLink.js +60 -0
  181. package/build/browser/object/convertWireToOsdkObjects/getDollarLink.js.map +1 -0
  182. package/build/browser/object/convertWireToOsdkObjects.d.ts +2 -0
  183. package/build/browser/object/convertWireToOsdkObjects.d.ts.map +1 -0
  184. package/build/browser/object/convertWireToOsdkObjects.js +150 -0
  185. package/build/browser/object/convertWireToOsdkObjects.js.map +1 -0
  186. package/build/browser/object/convertWireToOsdkObjects.test.d.ts +2 -0
  187. package/build/browser/object/convertWireToOsdkObjects.test.d.ts.map +1 -0
  188. package/build/browser/object/convertWireToOsdkObjects.test.js +254 -0
  189. package/build/browser/object/convertWireToOsdkObjects.test.js.map +1 -0
  190. package/build/browser/object/fetchPage.d.ts +3 -0
  191. package/build/browser/object/fetchPage.d.ts.map +1 -0
  192. package/build/browser/object/fetchPage.js +135 -0
  193. package/build/browser/object/fetchPage.js.map +1 -0
  194. package/build/browser/object/fetchPage.test.d.ts +2 -0
  195. package/build/browser/object/fetchPage.test.d.ts.map +1 -0
  196. package/build/browser/object/fetchPage.test.js +106 -0
  197. package/build/browser/object/fetchPage.test.js.map +1 -0
  198. package/build/browser/object/fetchSingle.d.ts +2 -0
  199. package/build/browser/object/fetchSingle.d.ts.map +1 -0
  200. package/build/browser/object/fetchSingle.js +47 -0
  201. package/build/browser/object/fetchSingle.js.map +1 -0
  202. package/build/browser/object/object.test.d.ts +12 -0
  203. package/build/browser/object/object.test.d.ts.map +1 -0
  204. package/build/browser/object/object.test.js +179 -0
  205. package/build/browser/object/object.test.js.map +1 -0
  206. package/build/browser/object/timeseries.test.d.ts +2 -0
  207. package/build/browser/object/timeseries.test.d.ts.map +1 -0
  208. package/build/browser/object/timeseries.test.js +163 -0
  209. package/build/browser/object/timeseries.test.js.map +1 -0
  210. package/build/browser/objectSet/ObjectSet.test.d.ts +2 -0
  211. package/build/browser/objectSet/ObjectSet.test.d.ts.map +1 -0
  212. package/build/browser/objectSet/ObjectSet.test.js +313 -0
  213. package/build/browser/objectSet/ObjectSet.test.js.map +1 -0
  214. package/build/browser/objectSet/ObjectSetFactory.d.ts +2 -0
  215. package/build/browser/objectSet/ObjectSetFactory.d.ts.map +1 -0
  216. package/build/browser/objectSet/ObjectSetFactory.js +17 -0
  217. package/build/browser/objectSet/ObjectSetFactory.js.map +1 -0
  218. package/build/browser/objectSet/ObjectSetListenerWebsocket.d.ts +7 -0
  219. package/build/browser/objectSet/ObjectSetListenerWebsocket.d.ts.map +1 -0
  220. package/build/browser/objectSet/ObjectSetListenerWebsocket.js +533 -0
  221. package/build/browser/objectSet/ObjectSetListenerWebsocket.js.map +1 -0
  222. package/build/browser/objectSet/ObjectSetListenerWebsocket.test.d.ts +2 -0
  223. package/build/browser/objectSet/ObjectSetListenerWebsocket.test.d.ts.map +1 -0
  224. package/build/browser/objectSet/ObjectSetListenerWebsocket.test.js +338 -0
  225. package/build/browser/objectSet/ObjectSetListenerWebsocket.test.js.map +1 -0
  226. package/build/browser/objectSet/conjureUnionType.d.ts +13 -0
  227. package/build/browser/objectSet/conjureUnionType.d.ts.map +1 -0
  228. package/build/browser/objectSet/conjureUnionType.js +27 -0
  229. package/build/browser/objectSet/conjureUnionType.js.map +1 -0
  230. package/build/browser/objectSet/createObjectSet.d.ts +2 -0
  231. package/build/browser/objectSet/createObjectSet.d.ts.map +1 -0
  232. package/build/browser/objectSet/createObjectSet.js +136 -0
  233. package/build/browser/objectSet/createObjectSet.js.map +1 -0
  234. package/build/browser/objectSet/toConjureObjectSet.d.ts +2 -0
  235. package/build/browser/objectSet/toConjureObjectSet.d.ts.map +1 -0
  236. package/build/browser/objectSet/toConjureObjectSet.js +158 -0
  237. package/build/browser/objectSet/toConjureObjectSet.js.map +1 -0
  238. package/build/browser/ontology/OntologyProvider.d.ts +32 -0
  239. package/build/browser/ontology/OntologyProvider.d.ts.map +1 -0
  240. package/build/browser/ontology/OntologyProvider.js +17 -0
  241. package/build/browser/ontology/OntologyProvider.js.map +1 -0
  242. package/build/browser/ontology/StandardOntologyProvider.d.ts +5 -0
  243. package/build/browser/ontology/StandardOntologyProvider.d.ts.map +1 -0
  244. package/build/browser/ontology/StandardOntologyProvider.js +59 -0
  245. package/build/browser/ontology/StandardOntologyProvider.js.map +1 -0
  246. package/build/browser/ontology/StandardOntologyProvider.test.d.ts +2 -0
  247. package/build/browser/ontology/StandardOntologyProvider.test.d.ts.map +1 -0
  248. package/build/browser/ontology/StandardOntologyProvider.test.js +48 -0
  249. package/build/browser/ontology/StandardOntologyProvider.test.js.map +1 -0
  250. package/build/browser/ontology/loadActionMetadata.d.ts +4 -0
  251. package/build/browser/ontology/loadActionMetadata.d.ts.map +1 -0
  252. package/build/browser/ontology/loadActionMetadata.js +22 -0
  253. package/build/browser/ontology/loadActionMetadata.js.map +1 -0
  254. package/build/browser/ontology/loadFullObjectMetadata.d.ts +6 -0
  255. package/build/browser/ontology/loadFullObjectMetadata.d.ts.map +1 -0
  256. package/build/browser/ontology/loadFullObjectMetadata.js +28 -0
  257. package/build/browser/ontology/loadFullObjectMetadata.js.map +1 -0
  258. package/build/browser/ontology/loadInterfaceMetadata.d.ts +4 -0
  259. package/build/browser/ontology/loadInterfaceMetadata.d.ts.map +1 -0
  260. package/build/browser/ontology/loadInterfaceMetadata.js +24 -0
  261. package/build/browser/ontology/loadInterfaceMetadata.js.map +1 -0
  262. package/build/browser/ontology/loadQueryMetadata.d.ts +4 -0
  263. package/build/browser/ontology/loadQueryMetadata.d.ts.map +1 -0
  264. package/build/browser/ontology/loadQueryMetadata.js +22 -0
  265. package/build/browser/ontology/loadQueryMetadata.js.map +1 -0
  266. package/build/browser/ontology/makeConjureContext.d.ts +4 -0
  267. package/build/browser/ontology/makeConjureContext.d.ts.map +1 -0
  268. package/build/browser/ontology/makeConjureContext.js +28 -0
  269. package/build/browser/ontology/makeConjureContext.js.map +1 -0
  270. package/build/browser/pageRequestAsAsyncIter.d.ts +10 -0
  271. package/build/browser/pageRequestAsAsyncIter.d.ts.map +1 -0
  272. package/build/browser/pageRequestAsAsyncIter.js +37 -0
  273. package/build/browser/pageRequestAsAsyncIter.js.map +1 -0
  274. package/build/browser/public/unstable-do-not-use.d.ts +2 -0
  275. package/build/browser/public/unstable-do-not-use.d.ts.map +1 -0
  276. package/build/browser/public/unstable-do-not-use.js +16 -878
  277. package/build/browser/public/unstable-do-not-use.js.map +1 -1
  278. package/build/browser/queries/applyQuery.d.ts +6 -0
  279. package/build/browser/queries/applyQuery.d.ts.map +1 -0
  280. package/build/browser/queries/applyQuery.js +234 -0
  281. package/build/browser/queries/applyQuery.js.map +1 -0
  282. package/build/browser/queries/queries.test.d.ts +2 -0
  283. package/build/browser/queries/queries.test.d.ts.map +1 -0
  284. package/build/browser/queries/queries.test.js +171 -0
  285. package/build/browser/queries/queries.test.js.map +1 -0
  286. package/build/browser/queries/types.d.ts +20 -0
  287. package/build/browser/queries/types.d.ts.map +1 -0
  288. package/build/browser/queries/types.js +17 -0
  289. package/build/browser/queries/types.js.map +1 -0
  290. package/build/browser/tsserver.d.ts +34 -0
  291. package/build/browser/tsserver.d.ts.map +1 -0
  292. package/build/browser/tsserver.js +133 -0
  293. package/build/browser/tsserver.js.map +1 -0
  294. package/build/browser/util/ArrayElement.d.ts +2 -0
  295. package/build/browser/util/ArrayElement.d.ts.map +1 -0
  296. package/build/browser/util/ArrayElement.js +17 -0
  297. package/build/browser/util/ArrayElement.js.map +1 -0
  298. package/build/browser/util/NOOP.d.ts +4 -0
  299. package/build/browser/util/NOOP.d.ts.map +1 -0
  300. package/build/browser/util/NOOP.js +17 -0
  301. package/build/browser/util/NOOP.js.map +1 -0
  302. package/build/browser/util/NullableProps.d.ts +6 -0
  303. package/build/browser/util/NullableProps.d.ts.map +1 -0
  304. package/build/browser/util/NullableProps.js +17 -0
  305. package/build/browser/util/NullableProps.js.map +1 -0
  306. package/build/browser/util/UserAgent.d.ts +2 -0
  307. package/build/browser/util/UserAgent.d.ts.map +1 -0
  308. package/build/browser/util/UserAgent.js +17 -0
  309. package/build/browser/util/UserAgent.js.map +1 -0
  310. package/build/browser/util/WireObjectSet.d.ts +2 -0
  311. package/build/browser/util/WireObjectSet.d.ts.map +1 -0
  312. package/build/browser/util/WireObjectSet.js +21 -0
  313. package/build/browser/util/WireObjectSet.js.map +1 -0
  314. package/build/browser/util/addUserAgentAndRequestContextHeaders.d.ts +4 -0
  315. package/build/browser/util/addUserAgentAndRequestContextHeaders.d.ts.map +1 -0
  316. package/build/browser/util/addUserAgentAndRequestContextHeaders.js +27 -0
  317. package/build/browser/util/addUserAgentAndRequestContextHeaders.js.map +1 -0
  318. package/build/browser/util/augmentRequestContext.d.ts +32 -0
  319. package/build/browser/util/augmentRequestContext.d.ts.map +1 -0
  320. package/build/browser/util/augmentRequestContext.js +52 -0
  321. package/build/browser/util/augmentRequestContext.js.map +1 -0
  322. package/build/browser/util/isOntologyObjectV2.d.ts +2 -0
  323. package/build/browser/util/isOntologyObjectV2.d.ts.map +1 -0
  324. package/build/browser/util/isOntologyObjectV2.js +20 -0
  325. package/build/browser/util/isOntologyObjectV2.js.map +1 -0
  326. package/build/browser/util/isOsdkBaseObject.d.ts +3 -0
  327. package/build/browser/util/isOsdkBaseObject.d.ts.map +1 -0
  328. package/build/browser/util/isOsdkBaseObject.js +19 -0
  329. package/build/browser/util/isOsdkBaseObject.js.map +1 -0
  330. package/build/browser/util/isOsdkObject.d.ts +3 -0
  331. package/build/browser/util/isOsdkObject.d.ts.map +1 -0
  332. package/build/browser/util/isOsdkObject.js +19 -0
  333. package/build/browser/util/isOsdkObject.js.map +1 -0
  334. package/build/browser/util/partialBy.d.ts +3 -0
  335. package/build/browser/util/partialBy.d.ts.map +1 -0
  336. package/build/browser/util/partialBy.js +17 -0
  337. package/build/browser/util/partialBy.js.map +1 -0
  338. package/build/browser/util/streamutils.d.ts +3 -0
  339. package/build/browser/util/streamutils.d.ts.map +1 -0
  340. package/build/browser/util/streamutils.js +95 -0
  341. package/build/browser/util/streamutils.js.map +1 -0
  342. package/build/browser/util/toDataValue.d.ts +2 -0
  343. package/build/browser/util/toDataValue.d.ts.map +1 -0
  344. package/build/browser/util/toDataValue.js +73 -0
  345. package/build/browser/util/toDataValue.js.map +1 -0
  346. package/build/browser/util/toDataValue.test.d.ts +2 -0
  347. package/build/browser/util/toDataValue.test.d.ts.map +1 -0
  348. package/build/browser/util/toDataValue.test.js +117 -0
  349. package/build/browser/util/toDataValue.test.js.map +1 -0
  350. package/build/browser/util/toDataValueQueries.d.ts +2 -0
  351. package/build/browser/util/toDataValueQueries.d.ts.map +1 -0
  352. package/build/browser/util/toDataValueQueries.js +107 -0
  353. package/build/browser/util/toDataValueQueries.js.map +1 -0
  354. package/build/esm/Client.d.ts +24 -4
  355. package/build/esm/Client.d.ts.map +1 -1
  356. package/build/esm/Client.js +20 -0
  357. package/build/esm/Client.js.map +1 -0
  358. package/build/esm/Definitions.test.js +35 -0
  359. package/build/esm/Definitions.test.js.map +1 -0
  360. package/build/esm/Logger.d.ts +19 -0
  361. package/build/esm/Logger.d.ts.map +1 -0
  362. package/build/esm/Logger.js +17 -0
  363. package/build/esm/Logger.js.map +1 -0
  364. package/build/esm/MinimalClientContext.d.ts +1 -1
  365. package/build/esm/MinimalClientContext.d.ts.map +1 -1
  366. package/build/esm/MinimalClientContext.js +17 -0
  367. package/build/esm/MinimalClientContext.js.map +1 -0
  368. package/build/esm/ResultOrError.js +19 -0
  369. package/build/esm/ResultOrError.js.map +1 -0
  370. package/build/esm/SatisfiesSemver.js +17 -0
  371. package/build/esm/SatisfiesSemver.js.map +1 -0
  372. package/build/esm/SatisfiesSemver.test.js +69 -0
  373. package/build/esm/SatisfiesSemver.test.js.map +1 -0
  374. package/build/esm/__unstable/ConjureSupport.js +174 -0
  375. package/build/esm/__unstable/ConjureSupport.js.map +1 -0
  376. package/build/esm/__unstable/createBulkLinksAsyncIterFactory.d.ts +1 -1
  377. package/build/esm/__unstable/createBulkLinksAsyncIterFactory.d.ts.map +1 -1
  378. package/build/esm/__unstable/createBulkLinksAsyncIterFactory.js +114 -0
  379. package/build/esm/__unstable/createBulkLinksAsyncIterFactory.js.map +1 -0
  380. package/build/esm/actions/ActionValidationError.d.ts +1 -1
  381. package/build/esm/actions/ActionValidationError.d.ts.map +1 -1
  382. package/build/esm/actions/ActionValidationError.js +23 -0
  383. package/build/esm/actions/ActionValidationError.js.map +1 -0
  384. package/build/esm/actions/actions.test.js +323 -0
  385. package/build/esm/actions/actions.test.js.map +1 -0
  386. package/build/esm/actions/applyAction.d.ts +9 -10
  387. package/build/esm/actions/applyAction.d.ts.map +1 -1
  388. package/build/esm/actions/applyAction.js +114 -0
  389. package/build/esm/actions/applyAction.js.map +1 -0
  390. package/build/esm/createAttachmentFromRid.d.ts +1 -1
  391. package/build/esm/createAttachmentFromRid.d.ts.map +1 -1
  392. package/build/esm/createAttachmentFromRid.js +38 -0
  393. package/build/esm/createAttachmentFromRid.js.map +1 -0
  394. package/build/esm/createClient.d.ts +1 -1
  395. package/build/esm/createClient.d.ts.map +1 -1
  396. package/build/esm/createClient.js +88 -0
  397. package/build/esm/createClient.js.map +1 -0
  398. package/build/esm/createClient.test.js +45 -0
  399. package/build/esm/createClient.test.js.map +1 -0
  400. package/build/esm/createMinimalClient.js +42 -0
  401. package/build/esm/createMinimalClient.js.map +1 -0
  402. package/build/esm/createPlatformClient.js +33 -0
  403. package/build/esm/createPlatformClient.js.map +1 -0
  404. package/build/esm/createTimeseriesProperty.d.ts +12 -2
  405. package/build/esm/createTimeseriesProperty.d.ts.map +1 -1
  406. package/build/esm/createTimeseriesProperty.js +79 -0
  407. package/build/esm/createTimeseriesProperty.js.map +1 -0
  408. package/build/esm/definitions/LinkDefinitions.test.js +41 -0
  409. package/build/esm/definitions/LinkDefinitions.test.js.map +1 -0
  410. package/build/esm/fetchMetadata.d.ts +2 -0
  411. package/build/esm/fetchMetadata.d.ts.map +1 -0
  412. package/build/esm/fetchMetadata.js +35 -0
  413. package/build/esm/fetchMetadata.js.map +1 -0
  414. package/build/esm/fetchMetadata.test.d.ts +2 -0
  415. package/build/esm/fetchMetadata.test.d.ts.map +1 -0
  416. package/build/esm/fetchMetadata.test.js +218 -0
  417. package/build/esm/fetchMetadata.test.js.map +1 -0
  418. package/build/esm/index.d.ts +3 -2
  419. package/build/esm/index.d.ts.map +1 -1
  420. package/build/esm/index.js +22 -12
  421. package/build/esm/index.js.map +1 -1
  422. package/build/esm/intellisense.test.helpers/callsQueryAcceptsObject.js +25 -0
  423. package/build/esm/intellisense.test.helpers/callsQueryAcceptsObject.js.map +1 -0
  424. package/build/esm/intellisense.test.js +86 -0
  425. package/build/esm/intellisense.test.js.map +1 -0
  426. package/build/esm/internal/conversions/legacyToModernSingleAggregationResult.js +34 -0
  427. package/build/esm/internal/conversions/legacyToModernSingleAggregationResult.js.map +1 -0
  428. package/build/esm/internal/conversions/modernToLegacyAggregationClause.js +38 -0
  429. package/build/esm/internal/conversions/modernToLegacyAggregationClause.js.map +1 -0
  430. package/build/esm/internal/conversions/modernToLegacyGroupByClause.js +62 -0
  431. package/build/esm/internal/conversions/modernToLegacyGroupByClause.js.map +1 -0
  432. package/build/esm/internal/conversions/modernToLegacyWhereClause.js +144 -0
  433. package/build/esm/internal/conversions/modernToLegacyWhereClause.js.map +1 -0
  434. package/build/esm/internal/conversions/modernToLegacyWhereClause.test.js +486 -0
  435. package/build/esm/internal/conversions/modernToLegacyWhereClause.test.js.map +1 -0
  436. package/build/esm/object/AttachmentUpload.d.ts +1 -1
  437. package/build/esm/object/AttachmentUpload.d.ts.map +1 -1
  438. package/build/esm/object/AttachmentUpload.js +27 -0
  439. package/build/esm/object/AttachmentUpload.js.map +1 -0
  440. package/build/esm/object/Cache.js +76 -0
  441. package/build/esm/object/Cache.js.map +1 -0
  442. package/build/esm/object/Cache.test.js +283 -0
  443. package/build/esm/object/Cache.test.js.map +1 -0
  444. package/build/esm/object/SimpleCache.js +67 -0
  445. package/build/esm/object/SimpleCache.js.map +1 -0
  446. package/build/esm/object/aggregate.js +69 -0
  447. package/build/esm/object/aggregate.js.map +1 -0
  448. package/build/esm/object/aggregate.test.js +398 -0
  449. package/build/esm/object/aggregate.test.js.map +1 -0
  450. package/build/esm/object/attachment.test.js +55 -0
  451. package/build/esm/object/attachment.test.js.map +1 -0
  452. package/build/esm/object/convertWireToOsdkObjects/InterfaceHolder.d.ts +4 -5
  453. package/build/esm/object/convertWireToOsdkObjects/InterfaceHolder.d.ts.map +1 -1
  454. package/build/esm/object/convertWireToOsdkObjects/InterfaceHolder.js +17 -0
  455. package/build/esm/object/convertWireToOsdkObjects/InterfaceHolder.js.map +1 -0
  456. package/build/esm/object/convertWireToOsdkObjects/InternalSymbols.d.ts +2 -3
  457. package/build/esm/object/convertWireToOsdkObjects/InternalSymbols.d.ts.map +1 -1
  458. package/build/esm/object/convertWireToOsdkObjects/InternalSymbols.js +22 -0
  459. package/build/esm/object/convertWireToOsdkObjects/InternalSymbols.js.map +1 -0
  460. package/build/esm/object/convertWireToOsdkObjects/ObjectHolder.js +17 -0
  461. package/build/esm/object/convertWireToOsdkObjects/ObjectHolder.js.map +1 -0
  462. package/build/esm/object/convertWireToOsdkObjects/OsdkCustomInspectPrototype.d.ts.map +1 -1
  463. package/build/esm/object/convertWireToOsdkObjects/OsdkCustomInspectPrototype.js +48 -0
  464. package/build/esm/object/convertWireToOsdkObjects/OsdkCustomInspectPrototype.js.map +1 -0
  465. package/build/esm/object/convertWireToOsdkObjects/PropertyDescriptorRecord.js +17 -0
  466. package/build/esm/object/convertWireToOsdkObjects/PropertyDescriptorRecord.js.map +1 -0
  467. package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js +82 -0
  468. package/build/esm/object/convertWireToOsdkObjects/createOsdkInterface.js.map +1 -0
  469. package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js +114 -0
  470. package/build/esm/object/convertWireToOsdkObjects/createOsdkObject.js.map +1 -0
  471. package/build/esm/object/convertWireToOsdkObjects/getDollarAs.d.ts +1 -1
  472. package/build/esm/object/convertWireToOsdkObjects/getDollarAs.d.ts.map +1 -1
  473. package/build/esm/object/convertWireToOsdkObjects/getDollarAs.js +55 -0
  474. package/build/esm/object/convertWireToOsdkObjects/getDollarAs.js.map +1 -0
  475. package/build/esm/object/convertWireToOsdkObjects/getDollarLink.js +60 -0
  476. package/build/esm/object/convertWireToOsdkObjects/getDollarLink.js.map +1 -0
  477. package/build/esm/object/convertWireToOsdkObjects.js +150 -0
  478. package/build/esm/object/convertWireToOsdkObjects.js.map +1 -0
  479. package/build/esm/object/convertWireToOsdkObjects.test.js +254 -0
  480. package/build/esm/object/convertWireToOsdkObjects.test.js.map +1 -0
  481. package/build/esm/object/fetchPage.d.ts +2 -3
  482. package/build/esm/object/fetchPage.d.ts.map +1 -1
  483. package/build/esm/object/fetchPage.js +135 -0
  484. package/build/esm/object/fetchPage.js.map +1 -0
  485. package/build/esm/object/fetchPage.test.js +106 -0
  486. package/build/esm/object/fetchPage.test.js.map +1 -0
  487. package/build/esm/object/fetchSingle.js +47 -0
  488. package/build/esm/object/fetchSingle.js.map +1 -0
  489. package/build/esm/object/object.test.d.ts +4 -5
  490. package/build/esm/object/object.test.d.ts.map +1 -1
  491. package/build/esm/object/object.test.js +179 -0
  492. package/build/esm/object/object.test.js.map +1 -0
  493. package/build/esm/object/timeseries.test.js +163 -0
  494. package/build/esm/object/timeseries.test.js.map +1 -0
  495. package/build/esm/objectSet/ObjectSet.test.js +313 -0
  496. package/build/esm/objectSet/ObjectSet.test.js.map +1 -0
  497. package/build/esm/objectSet/ObjectSetFactory.js +17 -0
  498. package/build/esm/objectSet/ObjectSetFactory.js.map +1 -0
  499. package/build/esm/objectSet/ObjectSetListenerWebsocket.d.ts.map +1 -1
  500. package/build/esm/objectSet/ObjectSetListenerWebsocket.js +536 -0
  501. package/build/esm/objectSet/ObjectSetListenerWebsocket.js.map +1 -0
  502. package/build/esm/objectSet/ObjectSetListenerWebsocket.test.js +338 -0
  503. package/build/esm/objectSet/ObjectSetListenerWebsocket.test.js.map +1 -0
  504. package/build/esm/objectSet/conjureUnionType.js +27 -0
  505. package/build/esm/objectSet/conjureUnionType.js.map +1 -0
  506. package/build/esm/objectSet/createObjectSet.js +136 -0
  507. package/build/esm/objectSet/createObjectSet.js.map +1 -0
  508. package/build/esm/objectSet/toConjureObjectSet.js +158 -0
  509. package/build/esm/objectSet/toConjureObjectSet.js.map +1 -0
  510. package/build/esm/ontology/OntologyProvider.d.ts +7 -13
  511. package/build/esm/ontology/OntologyProvider.d.ts.map +1 -1
  512. package/build/esm/ontology/OntologyProvider.js +17 -0
  513. package/build/esm/ontology/OntologyProvider.js.map +1 -0
  514. package/build/esm/ontology/StandardOntologyProvider.d.ts.map +1 -1
  515. package/build/esm/ontology/StandardOntologyProvider.js +59 -0
  516. package/build/esm/ontology/StandardOntologyProvider.js.map +1 -0
  517. package/build/esm/ontology/StandardOntologyProvider.test.js +48 -0
  518. package/build/esm/ontology/StandardOntologyProvider.test.js.map +1 -0
  519. package/build/esm/ontology/loadActionMetadata.d.ts +4 -0
  520. package/build/esm/ontology/loadActionMetadata.d.ts.map +1 -0
  521. package/build/esm/ontology/loadActionMetadata.js +22 -0
  522. package/build/esm/ontology/loadActionMetadata.js.map +1 -0
  523. package/build/esm/ontology/loadFullObjectMetadata.d.ts +2 -2
  524. package/build/esm/ontology/loadFullObjectMetadata.d.ts.map +1 -1
  525. package/build/esm/ontology/loadFullObjectMetadata.js +28 -0
  526. package/build/esm/ontology/loadFullObjectMetadata.js.map +1 -0
  527. package/build/esm/ontology/loadInterfaceMetadata.d.ts +4 -0
  528. package/build/esm/ontology/loadInterfaceMetadata.d.ts.map +1 -0
  529. package/build/esm/ontology/loadInterfaceMetadata.js +24 -0
  530. package/build/esm/ontology/loadInterfaceMetadata.js.map +1 -0
  531. package/build/esm/ontology/loadQueryMetadata.d.ts +4 -0
  532. package/build/esm/ontology/loadQueryMetadata.d.ts.map +1 -0
  533. package/build/esm/ontology/loadQueryMetadata.js +22 -0
  534. package/build/esm/ontology/loadQueryMetadata.js.map +1 -0
  535. package/build/esm/ontology/makeConjureContext.js +28 -0
  536. package/build/esm/ontology/makeConjureContext.js.map +1 -0
  537. package/build/esm/pageRequestAsAsyncIter.js +37 -0
  538. package/build/esm/pageRequestAsAsyncIter.js.map +1 -0
  539. package/build/esm/public/unstable-do-not-use.d.ts +0 -4
  540. package/build/esm/public/unstable-do-not-use.d.ts.map +1 -1
  541. package/build/esm/public/unstable-do-not-use.js +16 -881
  542. package/build/esm/public/unstable-do-not-use.js.map +1 -1
  543. package/build/esm/queries/applyQuery.d.ts +3 -4
  544. package/build/esm/queries/applyQuery.d.ts.map +1 -1
  545. package/build/esm/queries/applyQuery.js +234 -0
  546. package/build/esm/queries/applyQuery.js.map +1 -0
  547. package/build/esm/queries/queries.test.js +171 -0
  548. package/build/esm/queries/queries.test.js.map +1 -0
  549. package/build/esm/queries/types.d.ts +10 -11
  550. package/build/esm/queries/types.d.ts.map +1 -1
  551. package/build/esm/queries/types.js +17 -0
  552. package/build/esm/queries/types.js.map +1 -0
  553. package/build/esm/tsserver.d.ts +1 -1
  554. package/build/esm/tsserver.d.ts.map +1 -1
  555. package/build/esm/tsserver.js +133 -0
  556. package/build/esm/tsserver.js.map +1 -0
  557. package/build/esm/util/ArrayElement.js +17 -0
  558. package/build/esm/util/ArrayElement.js.map +1 -0
  559. package/build/esm/util/NOOP.js +17 -0
  560. package/build/esm/util/NOOP.js.map +1 -0
  561. package/build/esm/util/NullableProps.js +17 -0
  562. package/build/esm/util/NullableProps.js.map +1 -0
  563. package/build/esm/util/UserAgent.js +17 -0
  564. package/build/esm/util/UserAgent.js.map +1 -0
  565. package/build/esm/util/WireObjectSet.js +21 -0
  566. package/build/esm/util/WireObjectSet.js.map +1 -0
  567. package/build/esm/util/addUserAgentAndRequestContextHeaders.js +27 -0
  568. package/build/esm/util/addUserAgentAndRequestContextHeaders.js.map +1 -0
  569. package/build/esm/util/augmentRequestContext.js +52 -0
  570. package/build/esm/util/augmentRequestContext.js.map +1 -0
  571. package/build/esm/util/isOntologyObjectV2.js +20 -0
  572. package/build/esm/util/isOntologyObjectV2.js.map +1 -0
  573. package/build/esm/util/isOsdkBaseObject.d.ts +1 -1
  574. package/build/esm/util/isOsdkBaseObject.d.ts.map +1 -1
  575. package/build/esm/util/isOsdkBaseObject.js +19 -0
  576. package/build/esm/util/isOsdkBaseObject.js.map +1 -0
  577. package/build/esm/util/isOsdkObject.d.ts +1 -1
  578. package/build/esm/util/isOsdkObject.d.ts.map +1 -1
  579. package/build/esm/util/isOsdkObject.js +19 -0
  580. package/build/esm/util/isOsdkObject.js.map +1 -0
  581. package/build/esm/util/partialBy.js +17 -0
  582. package/build/esm/util/partialBy.js.map +1 -0
  583. package/build/esm/util/streamutils.js +95 -0
  584. package/build/esm/util/streamutils.js.map +1 -0
  585. package/build/esm/util/toDataValue.js +73 -0
  586. package/build/esm/util/toDataValue.js.map +1 -0
  587. package/build/esm/util/toDataValue.test.js +117 -0
  588. package/build/esm/util/toDataValue.test.js.map +1 -0
  589. package/build/esm/util/toDataValueQueries.js +107 -0
  590. package/build/esm/util/toDataValueQueries.js.map +1 -0
  591. package/package.json +15 -27
  592. package/build/browser/chunk-ITBKY5DE.js +0 -2327
  593. package/build/browser/chunk-ITBKY5DE.js.map +0 -1
  594. package/build/esm/__unstable/UNSTABLE_createClient.d.ts +0 -4
  595. package/build/esm/__unstable/UNSTABLE_createClient.d.ts.map +0 -1
  596. package/build/esm/__unstable/UnstableClient.d.ts +0 -12
  597. package/build/esm/__unstable/UnstableClient.d.ts.map +0 -1
  598. package/build/esm/chunk-ITBKY5DE.js +0 -2327
  599. package/build/esm/chunk-ITBKY5DE.js.map +0 -1
  600. package/build/esm/objectSet/ObjectSetListener.d.ts +0 -18
  601. package/build/esm/objectSet/ObjectSetListener.d.ts.map +0 -1
  602. package/build/esm/objectSet/createUnstableObjectSet.d.ts +0 -8
  603. package/build/esm/objectSet/createUnstableObjectSet.d.ts.map +0 -1
  604. package/build/esm/ontology/loadInterfaceDefinition.d.ts +0 -4
  605. package/build/esm/ontology/loadInterfaceDefinition.d.ts.map +0 -1
@@ -0,0 +1,62 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { DurationMapping } from "@osdk/api";
17
+ /** @internal */
18
+ export function modernToLegacyGroupByClause(groupByClause) {
19
+ if (!groupByClause) return [];
20
+ return Object.entries(groupByClause).flatMap(([field, type]) => {
21
+ if (type === "exact") {
22
+ return [{
23
+ type,
24
+ field
25
+ }];
26
+ } else if ("$exactWithLimit" in type) {
27
+ {
28
+ return [{
29
+ type: "exact",
30
+ field,
31
+ maxGroupCount: type.$exactWithLimit
32
+ }];
33
+ }
34
+ } else if ("$fixedWidth" in type) {
35
+ return [{
36
+ type: "fixedWidth",
37
+ field,
38
+ fixedWidth: type.$fixedWidth
39
+ }];
40
+ } else if ("$ranges" in type) {
41
+ return [{
42
+ type: "ranges",
43
+ field,
44
+ ranges: type.$ranges.map(range => convertRange(range))
45
+ }];
46
+ } else if ("$duration" in type) {
47
+ return [{
48
+ type: "duration",
49
+ field,
50
+ value: type.$duration[0],
51
+ unit: DurationMapping[type.$duration[1]]
52
+ }];
53
+ } else return [];
54
+ });
55
+ }
56
+ function convertRange(range) {
57
+ return {
58
+ startValue: range[0],
59
+ endValue: range[1]
60
+ };
61
+ }
62
+ //# sourceMappingURL=modernToLegacyGroupByClause.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modernToLegacyGroupByClause.js","names":["DurationMapping","modernToLegacyGroupByClause","groupByClause","Object","entries","flatMap","field","type","maxGroupCount","$exactWithLimit","fixedWidth","$fixedWidth","ranges","$ranges","map","range","convertRange","value","$duration","unit","startValue","endValue"],"sources":["modernToLegacyGroupByClause.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { DurationMapping } from \"@osdk/api\";\n/** @internal */\nexport function modernToLegacyGroupByClause(groupByClause) {\n if (!groupByClause)\n return [];\n return Object.entries(groupByClause).flatMap(([field, type]) => {\n if (type === \"exact\") {\n return [{ type, field }];\n }\n else if (\"$exactWithLimit\" in type) {\n {\n return [\n {\n type: \"exact\",\n field,\n maxGroupCount: type.$exactWithLimit,\n },\n ];\n }\n }\n else if (\"$fixedWidth\" in type) {\n return [{\n type: \"fixedWidth\",\n field,\n fixedWidth: type.$fixedWidth,\n }];\n }\n else if (\"$ranges\" in type) {\n return [{\n type: \"ranges\",\n field,\n ranges: type.$ranges.map(range => convertRange(range)),\n }];\n }\n else if (\"$duration\" in type) {\n return [{\n type: \"duration\",\n field,\n value: type.$duration[0],\n unit: DurationMapping[type.$duration[1]],\n }];\n }\n else\n return [];\n });\n}\nfunction convertRange(range) {\n return { startValue: range[0], endValue: range[1] };\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,eAAe,QAAQ,WAAW;AAC3C;AACA,OAAO,SAASC,2BAA2BA,CAACC,aAAa,EAAE;EACvD,IAAI,CAACA,aAAa,EACd,OAAO,EAAE;EACb,OAAOC,MAAM,CAACC,OAAO,CAACF,aAAa,CAAC,CAACG,OAAO,CAAC,CAAC,CAACC,KAAK,EAAEC,IAAI,CAAC,KAAK;IAC5D,IAAIA,IAAI,KAAK,OAAO,EAAE;MAClB,OAAO,CAAC;QAAEA,IAAI;QAAED;MAAM,CAAC,CAAC;IAC5B,CAAC,MACI,IAAI,iBAAiB,IAAIC,IAAI,EAAE;MAChC;QACI,OAAO,CACH;UACIA,IAAI,EAAE,OAAO;UACbD,KAAK;UACLE,aAAa,EAAED,IAAI,CAACE;QACxB,CAAC,CACJ;MACL;IACJ,CAAC,MACI,IAAI,aAAa,IAAIF,IAAI,EAAE;MAC5B,OAAO,CAAC;QACAA,IAAI,EAAE,YAAY;QAClBD,KAAK;QACLI,UAAU,EAAEH,IAAI,CAACI;MACrB,CAAC,CAAC;IACV,CAAC,MACI,IAAI,SAAS,IAAIJ,IAAI,EAAE;MACxB,OAAO,CAAC;QACAA,IAAI,EAAE,QAAQ;QACdD,KAAK;QACLM,MAAM,EAAEL,IAAI,CAACM,OAAO,CAACC,GAAG,CAACC,KAAK,IAAIC,YAAY,CAACD,KAAK,CAAC;MACzD,CAAC,CAAC;IACV,CAAC,MACI,IAAI,WAAW,IAAIR,IAAI,EAAE;MAC1B,OAAO,CAAC;QACAA,IAAI,EAAE,UAAU;QAChBD,KAAK;QACLW,KAAK,EAAEV,IAAI,CAACW,SAAS,CAAC,CAAC,CAAC;QACxBC,IAAI,EAAEnB,eAAe,CAACO,IAAI,CAACW,SAAS,CAAC,CAAC,CAAC;MAC3C,CAAC,CAAC;IACV,CAAC,MAEG,OAAO,EAAE;EACjB,CAAC,CAAC;AACN;AACA,SAASF,YAAYA,CAACD,KAAK,EAAE;EACzB,OAAO;IAAEK,UAAU,EAAEL,KAAK,CAAC,CAAC,CAAC;IAAEM,QAAQ,EAAEN,KAAK,CAAC,CAAC;EAAE,CAAC;AACvD","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=modernToLegacyWhereClause.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modernToLegacyWhereClause.d.ts","sourceRoot":"","sources":["../../../../src/internal/conversions/modernToLegacyWhereClause.ts"],"names":[],"mappings":""}
@@ -0,0 +1,144 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { DistanceUnitMapping } from "@osdk/api";
17
+ import invariant from "tiny-invariant";
18
+ /** @internal */
19
+ export function modernToLegacyWhereClause(whereClause) {
20
+ if ("$and" in whereClause) {
21
+ return {
22
+ type: "and",
23
+ value: whereClause.$and.map(modernToLegacyWhereClause)
24
+ };
25
+ } else if ("$or" in whereClause) {
26
+ return {
27
+ type: "or",
28
+ value: whereClause.$or.map(modernToLegacyWhereClause)
29
+ };
30
+ } else if ("$not" in whereClause) {
31
+ return {
32
+ type: "not",
33
+ value: modernToLegacyWhereClause(whereClause.$not)
34
+ };
35
+ }
36
+ const parts = Object.entries(whereClause);
37
+ if (parts.length === 1) {
38
+ return handleWherePair(parts[0]);
39
+ }
40
+ return {
41
+ type: "and",
42
+ value: parts.map(handleWherePair)
43
+ };
44
+ }
45
+ function makeGeoFilterBbox(field, bbox, filterType) {
46
+ return {
47
+ type: filterType === "$within" ? "withinBoundingBox" : "intersectsBoundingBox",
48
+ field,
49
+ value: {
50
+ topLeft: {
51
+ type: "Point",
52
+ coordinates: [bbox[0], bbox[3]]
53
+ },
54
+ bottomRight: {
55
+ type: "Point",
56
+ coordinates: [bbox[2], bbox[1]]
57
+ }
58
+ }
59
+ };
60
+ }
61
+ function makeGeoFilterPolygon(field, coordinates, filterType) {
62
+ return {
63
+ type: filterType,
64
+ field,
65
+ value: {
66
+ type: "Polygon",
67
+ coordinates
68
+ }
69
+ };
70
+ }
71
+ function handleWherePair([field, filter]) {
72
+ !(filter != null) ? invariant(false, "Defined key values are only allowed when they are not undefined.") : void 0;
73
+ if (typeof filter === "string" || typeof filter === "number" || typeof filter === "boolean") {
74
+ return {
75
+ type: "eq",
76
+ field,
77
+ value: filter
78
+ };
79
+ }
80
+ const keysOfFilter = Object.keys(filter);
81
+ // If any of the keys start with `$` then they must be the only one.
82
+ // e.g. `where({ name: { $eq: "foo", $ne: "bar" } })` is invalid currently
83
+ const hasDollarSign = keysOfFilter.some(key => key.startsWith("$"));
84
+ !(!hasDollarSign || keysOfFilter.length === 1) ? invariant(false, "WhereClause Filter with multiple clauses isn't allowed") : void 0;
85
+ if (!hasDollarSign) {
86
+ // Future case for structs
87
+ throw new Error(`Unsupported filter. Did you forget to use a $-prefixed filter? (${JSON.stringify(filter)})`);
88
+ }
89
+ const firstKey = keysOfFilter[0];
90
+ !(filter[firstKey] != null) ? invariant(false) : void 0;
91
+ if (firstKey === "$ne") {
92
+ return {
93
+ type: "not",
94
+ value: {
95
+ type: "eq",
96
+ field,
97
+ value: filter[firstKey]
98
+ }
99
+ };
100
+ }
101
+ if (firstKey === "$within") {
102
+ const withinBody = filter[firstKey];
103
+ if (Array.isArray(withinBody)) {
104
+ return makeGeoFilterBbox(field, withinBody, firstKey);
105
+ } else if ("$bbox" in withinBody && withinBody.$bbox != null) {
106
+ return makeGeoFilterBbox(field, withinBody.$bbox, firstKey);
107
+ } else if ("$distance" in withinBody && "$of" in withinBody && withinBody.$distance != null && withinBody.$of != null) {
108
+ return {
109
+ type: "withinDistanceOf",
110
+ field,
111
+ value: {
112
+ center: Array.isArray(withinBody.$of) ? {
113
+ type: "Point",
114
+ coordinates: withinBody.$of
115
+ } : withinBody.$of,
116
+ distance: {
117
+ value: withinBody.$distance[0],
118
+ unit: DistanceUnitMapping[withinBody.$distance[1]]
119
+ }
120
+ }
121
+ };
122
+ } else {
123
+ const coordinates = "$polygon" in withinBody ? withinBody.$polygon : withinBody.coordinates;
124
+ return makeGeoFilterPolygon(field, coordinates, "withinPolygon");
125
+ }
126
+ }
127
+ if (firstKey === "$intersects") {
128
+ const intersectsBody = filter[firstKey];
129
+ if (Array.isArray(intersectsBody)) {
130
+ return makeGeoFilterBbox(field, intersectsBody, firstKey);
131
+ } else if ("$bbox" in intersectsBody && intersectsBody.$bbox != null) {
132
+ return makeGeoFilterBbox(field, intersectsBody.$bbox, firstKey);
133
+ } else {
134
+ const coordinates = "$polygon" in intersectsBody ? intersectsBody.$polygon : intersectsBody.coordinates;
135
+ return makeGeoFilterPolygon(field, coordinates, "intersectsPolygon");
136
+ }
137
+ }
138
+ return {
139
+ type: firstKey.substring(1),
140
+ field,
141
+ value: filter[firstKey]
142
+ };
143
+ }
144
+ //# sourceMappingURL=modernToLegacyWhereClause.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modernToLegacyWhereClause.js","names":["DistanceUnitMapping","invariant","modernToLegacyWhereClause","whereClause","type","value","$and","map","$or","$not","parts","Object","entries","length","handleWherePair","makeGeoFilterBbox","field","bbox","filterType","topLeft","coordinates","bottomRight","makeGeoFilterPolygon","filter","keysOfFilter","keys","hasDollarSign","some","key","startsWith","Error","JSON","stringify","firstKey","withinBody","Array","isArray","$bbox","$distance","$of","center","distance","unit","$polygon","intersectsBody","substring"],"sources":["modernToLegacyWhereClause.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { DistanceUnitMapping } from \"@osdk/api\";\nimport invariant from \"tiny-invariant\";\n/** @internal */\nexport function modernToLegacyWhereClause(whereClause) {\n if (\"$and\" in whereClause) {\n return {\n type: \"and\",\n value: whereClause.$and.map(modernToLegacyWhereClause),\n };\n }\n else if (\"$or\" in whereClause) {\n return {\n type: \"or\",\n value: whereClause.$or.map(modernToLegacyWhereClause),\n };\n }\n else if (\"$not\" in whereClause) {\n return {\n type: \"not\",\n value: modernToLegacyWhereClause(whereClause.$not),\n };\n }\n const parts = Object.entries(whereClause);\n if (parts.length === 1) {\n return handleWherePair(parts[0]);\n }\n return {\n type: \"and\",\n value: parts.map(handleWherePair),\n };\n}\nfunction makeGeoFilterBbox(field, bbox, filterType) {\n return {\n type: filterType === \"$within\"\n ? \"withinBoundingBox\"\n : \"intersectsBoundingBox\",\n field,\n value: {\n topLeft: {\n type: \"Point\",\n coordinates: [bbox[0], bbox[3]],\n },\n bottomRight: {\n type: \"Point\",\n coordinates: [bbox[2], bbox[1]],\n },\n },\n };\n}\nfunction makeGeoFilterPolygon(field, coordinates, filterType) {\n return {\n type: filterType,\n field,\n value: {\n type: \"Polygon\",\n coordinates,\n },\n };\n}\nfunction handleWherePair([field, filter]) {\n invariant(filter != null, \"Defined key values are only allowed when they are not undefined.\");\n if (typeof filter === \"string\" || typeof filter === \"number\"\n || typeof filter === \"boolean\") {\n return {\n type: \"eq\",\n field,\n value: filter,\n };\n }\n const keysOfFilter = Object.keys(filter);\n // If any of the keys start with `$` then they must be the only one.\n // e.g. `where({ name: { $eq: \"foo\", $ne: \"bar\" } })` is invalid currently\n const hasDollarSign = keysOfFilter.some((key) => key.startsWith(\"$\"));\n invariant(!hasDollarSign\n || keysOfFilter.length === 1, \"WhereClause Filter with multiple clauses isn't allowed\");\n if (!hasDollarSign) {\n // Future case for structs\n throw new Error(`Unsupported filter. Did you forget to use a $-prefixed filter? (${JSON.stringify(filter)})`);\n }\n const firstKey = keysOfFilter[0];\n invariant(filter[firstKey] != null);\n if (firstKey === \"$ne\") {\n return {\n type: \"not\",\n value: {\n type: \"eq\",\n field,\n value: filter[firstKey],\n },\n };\n }\n if (firstKey === \"$within\") {\n const withinBody = filter[firstKey];\n if (Array.isArray(withinBody)) {\n return makeGeoFilterBbox(field, withinBody, firstKey);\n }\n else if (\"$bbox\" in withinBody && withinBody.$bbox != null) {\n return makeGeoFilterBbox(field, withinBody.$bbox, firstKey);\n }\n else if ((\"$distance\" in withinBody && \"$of\" in withinBody)\n && withinBody.$distance != null\n && withinBody.$of != null) {\n return {\n type: \"withinDistanceOf\",\n field,\n value: {\n center: Array.isArray(withinBody.$of)\n ? {\n type: \"Point\",\n coordinates: withinBody.$of,\n }\n : withinBody.$of,\n distance: {\n value: withinBody.$distance[0],\n unit: DistanceUnitMapping[withinBody.$distance[1]],\n },\n },\n };\n }\n else {\n const coordinates = (\"$polygon\" in withinBody)\n ? withinBody.$polygon\n : withinBody.coordinates;\n return makeGeoFilterPolygon(field, coordinates, \"withinPolygon\");\n }\n }\n if (firstKey === \"$intersects\") {\n const intersectsBody = filter[firstKey];\n if (Array.isArray(intersectsBody)) {\n return makeGeoFilterBbox(field, intersectsBody, firstKey);\n }\n else if (\"$bbox\" in intersectsBody && intersectsBody.$bbox != null) {\n return makeGeoFilterBbox(field, intersectsBody.$bbox, firstKey);\n }\n else {\n const coordinates = (\"$polygon\" in intersectsBody)\n ? intersectsBody.$polygon\n : intersectsBody.coordinates;\n return makeGeoFilterPolygon(field, coordinates, \"intersectsPolygon\");\n }\n }\n return {\n type: firstKey.substring(1),\n field,\n value: filter[firstKey],\n };\n}\n"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=modernToLegacyWhereClause.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modernToLegacyWhereClause.test.d.ts","sourceRoot":"","sources":["../../../../src/internal/conversions/modernToLegacyWhereClause.test.ts"],"names":[],"mappings":""}