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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (655) hide show
  1. package/CHANGELOG.md +126 -0
  2. package/build/browser/Definitions.js +0 -15
  3. package/build/browser/Definitions.js.map +1 -1
  4. package/build/browser/OsdkBase.js +0 -15
  5. package/build/browser/OsdkBase.js.map +1 -1
  6. package/build/browser/OsdkMetadata.js +0 -15
  7. package/build/browser/OsdkMetadata.js.map +1 -1
  8. package/build/browser/OsdkObject.js +0 -15
  9. package/build/browser/OsdkObject.js.map +1 -1
  10. package/build/browser/OsdkObjectFrom.js +27 -1
  11. package/build/browser/OsdkObjectFrom.js.map +1 -1
  12. package/build/browser/OsdkObjectFrom.test.js +17 -0
  13. package/build/browser/OsdkObjectFrom.test.js.map +1 -1
  14. package/build/browser/OsdkObjectPrimaryKeyType.js +0 -15
  15. package/build/browser/OsdkObjectPrimaryKeyType.js.map +1 -1
  16. package/build/browser/PageResult.js +0 -15
  17. package/build/browser/PageResult.js.map +1 -1
  18. package/build/browser/actions/ActionResults.js +0 -15
  19. package/build/browser/actions/ActionResults.js.map +1 -1
  20. package/build/browser/actions/ActionReturnTypeForOptions.js +0 -15
  21. package/build/browser/actions/ActionReturnTypeForOptions.js.map +1 -1
  22. package/build/browser/actions/Actions.js +4 -1
  23. package/build/browser/actions/Actions.js.map +1 -1
  24. package/build/browser/aggregate/AggregatableKeys.js +0 -15
  25. package/build/browser/aggregate/AggregatableKeys.js.map +1 -1
  26. package/build/browser/aggregate/AggregateOpts.js +0 -15
  27. package/build/browser/aggregate/AggregateOpts.js.map +1 -1
  28. package/build/browser/aggregate/AggregateOptsThatErrors.js +0 -15
  29. package/build/browser/aggregate/AggregateOptsThatErrors.js.map +1 -1
  30. package/build/browser/aggregate/AggregationResultsWithGroups.js +0 -15
  31. package/build/browser/aggregate/AggregationResultsWithGroups.js.map +1 -1
  32. package/build/browser/aggregate/AggregationResultsWithoutGroups.js +0 -15
  33. package/build/browser/aggregate/AggregationResultsWithoutGroups.js.map +1 -1
  34. package/build/browser/aggregate/AggregationsClause.js +0 -15
  35. package/build/browser/aggregate/AggregationsClause.js.map +1 -1
  36. package/build/browser/aggregate/AggregationsClause.test.js +1 -0
  37. package/build/browser/aggregate/AggregationsClause.test.js.map +1 -1
  38. package/build/browser/aggregate/AggregationsResults.js +0 -15
  39. package/build/browser/aggregate/AggregationsResults.js.map +1 -1
  40. package/build/browser/aggregate/ArrayFilter.js +2 -0
  41. package/build/browser/aggregate/ArrayFilter.js.map +1 -0
  42. package/build/browser/aggregate/BaseFilter.js +20 -0
  43. package/build/browser/aggregate/BaseFilter.js.map +1 -0
  44. package/build/browser/aggregate/BooleanFilter.js +19 -0
  45. package/build/browser/aggregate/BooleanFilter.js.map +1 -0
  46. package/build/browser/aggregate/DatetimeFilter.js +19 -0
  47. package/build/browser/aggregate/DatetimeFilter.js.map +1 -0
  48. package/build/browser/{objectSet/EXPERIMENTAL_ObjectSetListener.js → aggregate/GeoFilter.js} +2 -2
  49. package/build/browser/aggregate/GeoFilter.js.map +1 -0
  50. package/build/browser/aggregate/Just.js +2 -0
  51. package/build/browser/aggregate/Just.js.map +1 -0
  52. package/build/browser/aggregate/NumberFilter.js +19 -0
  53. package/build/browser/aggregate/NumberFilter.js.map +1 -0
  54. package/build/browser/aggregate/StringFilter.js +19 -0
  55. package/build/browser/aggregate/StringFilter.js.map +1 -0
  56. package/build/browser/aggregate/WhereClause.js +4 -1
  57. package/build/browser/aggregate/WhereClause.js.map +1 -1
  58. package/build/browser/definitions/LinkDefinitions.js +0 -15
  59. package/build/browser/definitions/LinkDefinitions.js.map +1 -1
  60. package/build/browser/definitions/LinkDefinitions.test.js +1 -0
  61. package/build/browser/definitions/LinkDefinitions.test.js.map +1 -1
  62. package/build/browser/derivedProperties/DerivedProperty.js +17 -0
  63. package/build/browser/derivedProperties/DerivedProperty.js.map +1 -0
  64. package/build/browser/derivedProperties/WithPropertiesAggregationOptions.js +2 -0
  65. package/build/browser/derivedProperties/WithPropertiesAggregationOptions.js.map +1 -0
  66. package/build/browser/experimental/Experiment.js +0 -15
  67. package/build/browser/experimental/Experiment.js.map +1 -1
  68. package/build/browser/experimental/createMediaReference.js +35 -0
  69. package/build/browser/experimental/createMediaReference.js.map +1 -0
  70. package/build/browser/experimental/{subscribe.js → fetchOneByRid.js} +4 -3
  71. package/build/browser/experimental/fetchOneByRid.js.map +1 -0
  72. package/build/browser/experimental/getBulkLinks.js +1 -0
  73. package/build/browser/experimental/getBulkLinks.js.map +1 -1
  74. package/build/browser/groupby/GroupByClause.js +1 -0
  75. package/build/browser/groupby/GroupByClause.js.map +1 -1
  76. package/build/browser/groupby/GroupByClause.test.js +1 -0
  77. package/build/browser/groupby/GroupByClause.test.js.map +1 -1
  78. package/build/browser/groupby/GroupByMapper.js +0 -15
  79. package/build/browser/groupby/GroupByMapper.js.map +1 -1
  80. package/build/browser/index.js +2 -0
  81. package/build/browser/index.js.map +1 -1
  82. package/build/browser/junk.test.js +1 -0
  83. package/build/browser/junk.test.js.map +1 -1
  84. package/build/browser/mapping/DataValueMapping.js +0 -15
  85. package/build/browser/mapping/DataValueMapping.js.map +1 -1
  86. package/build/browser/mapping/DurationMapping.js +1 -0
  87. package/build/browser/mapping/DurationMapping.js.map +1 -1
  88. package/build/browser/mapping/PropertyValueMapping.js +0 -15
  89. package/build/browser/mapping/PropertyValueMapping.js.map +1 -1
  90. package/build/browser/object/Attachment.js +0 -15
  91. package/build/browser/object/Attachment.js.map +1 -1
  92. package/build/browser/object/FetchPageArgs.js +1 -1
  93. package/build/browser/object/FetchPageArgs.js.map +1 -1
  94. package/build/browser/object/FetchPageResult.js +0 -15
  95. package/build/browser/object/FetchPageResult.js.map +1 -1
  96. package/build/browser/object/Media.js +2 -0
  97. package/build/browser/object/Media.js.map +1 -0
  98. package/build/browser/object/ObjectDefinitions.test.js +5 -0
  99. package/build/browser/object/ObjectDefinitions.test.js.map +1 -1
  100. package/build/browser/object/Result.js +2 -0
  101. package/build/browser/object/Result.js.map +1 -1
  102. package/build/browser/objectSet/BaseObjectSet.js +0 -15
  103. package/build/browser/objectSet/BaseObjectSet.js.map +1 -1
  104. package/build/browser/objectSet/BulkLinkResult.js +0 -15
  105. package/build/browser/objectSet/BulkLinkResult.js.map +1 -1
  106. package/build/browser/objectSet/ObjectSet.js +0 -15
  107. package/build/browser/objectSet/ObjectSet.js.map +1 -1
  108. package/build/browser/objectSet/ObjectSet.test.js +155 -0
  109. package/build/browser/objectSet/ObjectSet.test.js.map +1 -0
  110. package/build/browser/objectSet/ObjectSetListener.js +17 -0
  111. package/build/browser/objectSet/ObjectSetListener.js.map +1 -0
  112. package/build/browser/ontology/ActionDefinition.js +1 -1
  113. package/build/browser/ontology/ActionDefinition.js.map +1 -1
  114. package/build/browser/ontology/InterfaceDefinition.js +0 -15
  115. package/build/browser/ontology/InterfaceDefinition.js.map +1 -1
  116. package/build/browser/ontology/ObjectOrInterface.js +1 -1
  117. package/build/browser/ontology/ObjectOrInterface.js.map +1 -1
  118. package/build/browser/ontology/ObjectTypeDefinition.js +1 -1
  119. package/build/browser/ontology/ObjectTypeDefinition.js.map +1 -1
  120. package/build/browser/ontology/OntologyMetadata.js +0 -15
  121. package/build/browser/ontology/OntologyMetadata.js.map +1 -1
  122. package/build/browser/ontology/PrimaryKeyTypes.js +0 -15
  123. package/build/browser/ontology/PrimaryKeyTypes.js.map +1 -1
  124. package/build/browser/ontology/QueryDefinition.js +0 -15
  125. package/build/browser/ontology/QueryDefinition.js.map +1 -1
  126. package/build/browser/ontology/SimplePropertyDef.js +17 -0
  127. package/build/browser/ontology/SimplePropertyDef.js.map +1 -0
  128. package/build/browser/ontology/SimplePropertyDef.test.js +48 -0
  129. package/build/browser/ontology/SimplePropertyDef.test.js.map +1 -0
  130. package/build/browser/ontology/VersionString.js +0 -15
  131. package/build/browser/ontology/VersionString.js.map +1 -1
  132. package/build/browser/ontology/WirePropertyTypes.js +0 -15
  133. package/build/browser/ontology/WirePropertyTypes.js.map +1 -1
  134. package/build/browser/public/unstable.js +3 -2
  135. package/build/browser/public/unstable.js.map +1 -1
  136. package/build/browser/queries/Aggregations.js +2 -0
  137. package/build/browser/queries/Aggregations.js.map +1 -0
  138. package/build/browser/queries/Queries.js +8 -1
  139. package/build/browser/queries/Queries.js.map +1 -1
  140. package/build/browser/timeseries/timeseries.js +1 -0
  141. package/build/browser/timeseries/timeseries.js.map +1 -1
  142. package/build/browser/util/LinkUtils.js +0 -15
  143. package/build/browser/util/LinkUtils.js.map +1 -1
  144. package/build/cjs/ObjectSet-CQsYpN1K.d.cts +1144 -0
  145. package/build/cjs/index.cjs +75 -0
  146. package/build/cjs/index.cjs.map +1 -0
  147. package/build/cjs/index.d.cts +416 -0
  148. package/build/cjs/public/unstable.cjs +28 -0
  149. package/build/cjs/public/unstable.cjs.map +1 -0
  150. package/build/cjs/public/unstable.d.cts +53 -0
  151. package/build/esm/Definitions.js +0 -15
  152. package/build/esm/Definitions.js.map +1 -1
  153. package/build/esm/OsdkBase.js +0 -15
  154. package/build/esm/OsdkBase.js.map +1 -1
  155. package/build/esm/OsdkMetadata.js +0 -15
  156. package/build/esm/OsdkMetadata.js.map +1 -1
  157. package/build/esm/OsdkObject.js +0 -15
  158. package/build/esm/OsdkObject.js.map +1 -1
  159. package/build/esm/OsdkObjectFrom.js +27 -1
  160. package/build/esm/OsdkObjectFrom.js.map +1 -1
  161. package/build/esm/OsdkObjectFrom.test.js +17 -0
  162. package/build/esm/OsdkObjectFrom.test.js.map +1 -1
  163. package/build/esm/OsdkObjectPrimaryKeyType.js +0 -15
  164. package/build/esm/OsdkObjectPrimaryKeyType.js.map +1 -1
  165. package/build/esm/PageResult.js +0 -15
  166. package/build/esm/PageResult.js.map +1 -1
  167. package/build/esm/actions/ActionResults.js +0 -15
  168. package/build/esm/actions/ActionResults.js.map +1 -1
  169. package/build/esm/actions/ActionReturnTypeForOptions.js +0 -15
  170. package/build/esm/actions/ActionReturnTypeForOptions.js.map +1 -1
  171. package/build/esm/actions/Actions.js +4 -1
  172. package/build/esm/actions/Actions.js.map +1 -1
  173. package/build/esm/aggregate/AggregatableKeys.js +0 -15
  174. package/build/esm/aggregate/AggregatableKeys.js.map +1 -1
  175. package/build/esm/aggregate/AggregateOpts.js +0 -15
  176. package/build/esm/aggregate/AggregateOpts.js.map +1 -1
  177. package/build/esm/aggregate/AggregateOptsThatErrors.js +0 -15
  178. package/build/esm/aggregate/AggregateOptsThatErrors.js.map +1 -1
  179. package/build/esm/aggregate/AggregationResultsWithGroups.js +0 -15
  180. package/build/esm/aggregate/AggregationResultsWithGroups.js.map +1 -1
  181. package/build/esm/aggregate/AggregationResultsWithoutGroups.js +0 -15
  182. package/build/esm/aggregate/AggregationResultsWithoutGroups.js.map +1 -1
  183. package/build/esm/aggregate/AggregationsClause.js +0 -15
  184. package/build/esm/aggregate/AggregationsClause.js.map +1 -1
  185. package/build/esm/aggregate/AggregationsClause.test.js +1 -0
  186. package/build/esm/aggregate/AggregationsClause.test.js.map +1 -1
  187. package/build/esm/aggregate/AggregationsResults.js +0 -15
  188. package/build/esm/aggregate/AggregationsResults.js.map +1 -1
  189. package/build/esm/aggregate/ArrayFilter.js +2 -0
  190. package/build/esm/aggregate/ArrayFilter.js.map +1 -0
  191. package/build/esm/aggregate/BaseFilter.js +20 -0
  192. package/build/esm/aggregate/BaseFilter.js.map +1 -0
  193. package/build/esm/aggregate/BooleanFilter.js +19 -0
  194. package/build/esm/aggregate/BooleanFilter.js.map +1 -0
  195. package/build/esm/aggregate/DatetimeFilter.js +19 -0
  196. package/build/esm/aggregate/DatetimeFilter.js.map +1 -0
  197. package/build/esm/{objectSet/EXPERIMENTAL_ObjectSetListener.js → aggregate/GeoFilter.js} +2 -2
  198. package/build/esm/aggregate/GeoFilter.js.map +1 -0
  199. package/build/esm/aggregate/Just.js +2 -0
  200. package/build/esm/aggregate/Just.js.map +1 -0
  201. package/build/esm/aggregate/NumberFilter.js +19 -0
  202. package/build/esm/aggregate/NumberFilter.js.map +1 -0
  203. package/build/esm/aggregate/StringFilter.js +19 -0
  204. package/build/esm/aggregate/StringFilter.js.map +1 -0
  205. package/build/esm/aggregate/WhereClause.js +4 -1
  206. package/build/esm/aggregate/WhereClause.js.map +1 -1
  207. package/build/esm/definitions/LinkDefinitions.js +0 -15
  208. package/build/esm/definitions/LinkDefinitions.js.map +1 -1
  209. package/build/esm/definitions/LinkDefinitions.test.js +1 -0
  210. package/build/esm/definitions/LinkDefinitions.test.js.map +1 -1
  211. package/build/esm/derivedProperties/DerivedProperty.js +17 -0
  212. package/build/esm/derivedProperties/DerivedProperty.js.map +1 -0
  213. package/build/esm/derivedProperties/WithPropertiesAggregationOptions.js +2 -0
  214. package/build/esm/derivedProperties/WithPropertiesAggregationOptions.js.map +1 -0
  215. package/build/esm/experimental/Experiment.js +0 -15
  216. package/build/esm/experimental/Experiment.js.map +1 -1
  217. package/build/esm/experimental/createMediaReference.js +35 -0
  218. package/build/esm/experimental/createMediaReference.js.map +1 -0
  219. package/build/esm/experimental/{subscribe.js → fetchOneByRid.js} +4 -3
  220. package/build/esm/experimental/fetchOneByRid.js.map +1 -0
  221. package/build/esm/experimental/getBulkLinks.js +1 -0
  222. package/build/esm/experimental/getBulkLinks.js.map +1 -1
  223. package/build/esm/groupby/GroupByClause.js +1 -0
  224. package/build/esm/groupby/GroupByClause.js.map +1 -1
  225. package/build/esm/groupby/GroupByClause.test.js +1 -0
  226. package/build/esm/groupby/GroupByClause.test.js.map +1 -1
  227. package/build/esm/groupby/GroupByMapper.js +0 -15
  228. package/build/esm/groupby/GroupByMapper.js.map +1 -1
  229. package/build/esm/index.js +2 -0
  230. package/build/esm/index.js.map +1 -1
  231. package/build/esm/junk.test.js +1 -0
  232. package/build/esm/junk.test.js.map +1 -1
  233. package/build/esm/mapping/DataValueMapping.js +0 -15
  234. package/build/esm/mapping/DataValueMapping.js.map +1 -1
  235. package/build/esm/mapping/DurationMapping.js +1 -0
  236. package/build/esm/mapping/DurationMapping.js.map +1 -1
  237. package/build/esm/mapping/PropertyValueMapping.js +0 -15
  238. package/build/esm/mapping/PropertyValueMapping.js.map +1 -1
  239. package/build/esm/object/Attachment.js +0 -15
  240. package/build/esm/object/Attachment.js.map +1 -1
  241. package/build/esm/object/FetchPageArgs.js +1 -1
  242. package/build/esm/object/FetchPageArgs.js.map +1 -1
  243. package/build/esm/object/FetchPageResult.js +0 -15
  244. package/build/esm/object/FetchPageResult.js.map +1 -1
  245. package/build/esm/object/Media.js +2 -0
  246. package/build/esm/object/Media.js.map +1 -0
  247. package/build/esm/object/ObjectDefinitions.test.js +5 -0
  248. package/build/esm/object/ObjectDefinitions.test.js.map +1 -1
  249. package/build/esm/object/Result.js +2 -0
  250. package/build/esm/object/Result.js.map +1 -1
  251. package/build/esm/objectSet/BaseObjectSet.js +0 -15
  252. package/build/esm/objectSet/BaseObjectSet.js.map +1 -1
  253. package/build/esm/objectSet/BulkLinkResult.js +0 -15
  254. package/build/esm/objectSet/BulkLinkResult.js.map +1 -1
  255. package/build/esm/objectSet/ObjectSet.js +0 -15
  256. package/build/esm/objectSet/ObjectSet.js.map +1 -1
  257. package/build/esm/objectSet/ObjectSet.test.js +155 -0
  258. package/build/esm/objectSet/ObjectSet.test.js.map +1 -0
  259. package/build/esm/objectSet/ObjectSetListener.js +17 -0
  260. package/build/esm/objectSet/ObjectSetListener.js.map +1 -0
  261. package/build/esm/ontology/ActionDefinition.js +1 -1
  262. package/build/esm/ontology/ActionDefinition.js.map +1 -1
  263. package/build/esm/ontology/InterfaceDefinition.js +0 -15
  264. package/build/esm/ontology/InterfaceDefinition.js.map +1 -1
  265. package/build/esm/ontology/ObjectOrInterface.js +1 -1
  266. package/build/esm/ontology/ObjectOrInterface.js.map +1 -1
  267. package/build/esm/ontology/ObjectTypeDefinition.js +1 -1
  268. package/build/esm/ontology/ObjectTypeDefinition.js.map +1 -1
  269. package/build/esm/ontology/OntologyMetadata.js +0 -15
  270. package/build/esm/ontology/OntologyMetadata.js.map +1 -1
  271. package/build/esm/ontology/PrimaryKeyTypes.js +0 -15
  272. package/build/esm/ontology/PrimaryKeyTypes.js.map +1 -1
  273. package/build/esm/ontology/QueryDefinition.js +0 -15
  274. package/build/esm/ontology/QueryDefinition.js.map +1 -1
  275. package/build/esm/ontology/SimplePropertyDef.js +17 -0
  276. package/build/esm/ontology/SimplePropertyDef.js.map +1 -0
  277. package/build/esm/ontology/SimplePropertyDef.test.js +48 -0
  278. package/build/esm/ontology/SimplePropertyDef.test.js.map +1 -0
  279. package/build/esm/ontology/VersionString.js +0 -15
  280. package/build/esm/ontology/VersionString.js.map +1 -1
  281. package/build/esm/ontology/WirePropertyTypes.js +0 -15
  282. package/build/esm/ontology/WirePropertyTypes.js.map +1 -1
  283. package/build/esm/public/unstable.js +3 -2
  284. package/build/esm/public/unstable.js.map +1 -1
  285. package/build/esm/queries/Aggregations.js +2 -0
  286. package/build/esm/queries/Aggregations.js.map +1 -0
  287. package/build/esm/queries/Queries.js +8 -1
  288. package/build/esm/queries/Queries.js.map +1 -1
  289. package/build/esm/timeseries/timeseries.js +1 -0
  290. package/build/esm/timeseries/timeseries.js.map +1 -1
  291. package/build/esm/util/LinkUtils.js +0 -15
  292. package/build/esm/util/LinkUtils.js.map +1 -1
  293. package/build/types/Definitions.d.ts +24 -0
  294. package/build/types/Definitions.d.ts.map +1 -0
  295. package/build/{esm → types}/OsdkBase.d.ts +4 -5
  296. package/build/types/OsdkBase.d.ts.map +1 -0
  297. package/build/types/OsdkMetadata.d.ts +3 -0
  298. package/build/types/OsdkMetadata.d.ts.map +1 -0
  299. package/build/{browser → types}/OsdkObject.d.ts +5 -6
  300. package/build/types/OsdkObject.d.ts.map +1 -0
  301. package/build/types/OsdkObjectFrom.d.ts +99 -0
  302. package/build/types/OsdkObjectFrom.d.ts.map +1 -0
  303. package/build/types/OsdkObjectFrom.test.d.ts +1 -0
  304. package/build/types/OsdkObjectFrom.test.d.ts.map +1 -0
  305. package/build/{browser → types}/OsdkObjectPrimaryKeyType.d.ts +0 -1
  306. package/build/types/OsdkObjectPrimaryKeyType.d.ts.map +1 -0
  307. package/build/types/PageResult.d.ts +5 -0
  308. package/build/types/PageResult.d.ts.map +1 -0
  309. package/build/types/actions/ActionResults.d.ts +80 -0
  310. package/build/types/actions/ActionResults.d.ts.map +1 -0
  311. package/build/{browser → types}/actions/ActionReturnTypeForOptions.d.ts +2 -3
  312. package/build/types/actions/ActionReturnTypeForOptions.d.ts.map +1 -0
  313. package/build/types/actions/Actions.d.ts +34 -0
  314. package/build/types/actions/Actions.d.ts.map +1 -0
  315. package/build/types/aggregate/AggregatableKeys.d.ts +18 -0
  316. package/build/types/aggregate/AggregatableKeys.d.ts.map +1 -0
  317. package/build/{browser → types}/aggregate/AggregateOpts.d.ts +2 -5
  318. package/build/types/aggregate/AggregateOpts.d.ts.map +1 -0
  319. package/build/types/aggregate/AggregateOptsThatErrors.d.ts +21 -0
  320. package/build/types/aggregate/AggregateOptsThatErrors.d.ts.map +1 -0
  321. package/build/{browser → types}/aggregate/AggregationResultsWithGroups.d.ts +11 -10
  322. package/build/types/aggregate/AggregationResultsWithGroups.d.ts.map +1 -0
  323. package/build/types/aggregate/AggregationResultsWithoutGroups.d.ts +14 -0
  324. package/build/types/aggregate/AggregationResultsWithoutGroups.d.ts.map +1 -0
  325. package/build/{esm → types}/aggregate/AggregationsClause.d.ts +2 -7
  326. package/build/types/aggregate/AggregationsClause.d.ts.map +1 -0
  327. package/build/types/aggregate/AggregationsClause.test.d.ts +46 -0
  328. package/build/types/aggregate/AggregationsClause.test.d.ts.map +1 -0
  329. package/build/types/aggregate/AggregationsResults.d.ts +9 -0
  330. package/build/types/aggregate/AggregationsResults.d.ts.map +1 -0
  331. package/build/types/aggregate/ArrayFilter.d.ts +11 -0
  332. package/build/types/aggregate/ArrayFilter.d.ts.map +1 -0
  333. package/build/types/aggregate/BaseFilter.d.ts +14 -0
  334. package/build/types/aggregate/BaseFilter.d.ts.map +1 -0
  335. package/build/types/aggregate/BooleanFilter.d.ts +11 -0
  336. package/build/types/aggregate/BooleanFilter.d.ts.map +1 -0
  337. package/build/types/aggregate/DatetimeFilter.d.ts +19 -0
  338. package/build/types/aggregate/DatetimeFilter.d.ts.map +1 -0
  339. package/build/types/aggregate/GeoFilter.d.ts +35 -0
  340. package/build/types/aggregate/GeoFilter.d.ts.map +1 -0
  341. package/build/types/aggregate/Just.d.ts +5 -0
  342. package/build/types/aggregate/Just.d.ts.map +1 -0
  343. package/build/types/aggregate/NumberFilter.d.ts +20 -0
  344. package/build/types/aggregate/NumberFilter.d.ts.map +1 -0
  345. package/build/types/aggregate/StringFilter.d.ts +27 -0
  346. package/build/types/aggregate/StringFilter.d.ts.map +1 -0
  347. package/build/types/aggregate/WhereClause.d.ts +80 -0
  348. package/build/types/aggregate/WhereClause.d.ts.map +1 -0
  349. package/build/types/definitions/LinkDefinitions.d.ts +21 -0
  350. package/build/types/definitions/LinkDefinitions.d.ts.map +1 -0
  351. package/build/types/definitions/LinkDefinitions.test.d.ts +1 -0
  352. package/build/types/definitions/LinkDefinitions.test.d.ts.map +1 -0
  353. package/build/types/derivedProperties/DerivedProperty.d.ts +58 -0
  354. package/build/types/derivedProperties/DerivedProperty.d.ts.map +1 -0
  355. package/build/types/derivedProperties/WithPropertiesAggregationOptions.d.ts +4 -0
  356. package/build/types/derivedProperties/WithPropertiesAggregationOptions.d.ts.map +1 -0
  357. package/build/types/experimental/Experiment.d.ts +11 -0
  358. package/build/types/experimental/Experiment.d.ts.map +1 -0
  359. package/build/types/experimental/createMediaReference.d.ts +24 -0
  360. package/build/types/experimental/createMediaReference.d.ts.map +1 -0
  361. package/build/types/experimental/fetchOneByRid.d.ts +15 -0
  362. package/build/types/experimental/fetchOneByRid.d.ts.map +1 -0
  363. package/build/{esm → types}/experimental/getBulkLinks.d.ts +1 -2
  364. package/build/types/experimental/getBulkLinks.d.ts.map +1 -0
  365. package/build/types/groupby/GroupByClause.d.ts +71 -0
  366. package/build/types/groupby/GroupByClause.d.ts.map +1 -0
  367. package/build/types/groupby/GroupByClause.test.d.ts +23 -0
  368. package/build/types/groupby/GroupByClause.test.d.ts.map +1 -0
  369. package/build/types/groupby/GroupByMapper.d.ts +13 -0
  370. package/build/types/groupby/GroupByMapper.d.ts.map +1 -0
  371. package/build/types/index.d.ts +45 -0
  372. package/build/types/index.d.ts.map +1 -0
  373. package/build/types/junk.test.d.ts +1 -0
  374. package/build/types/junk.test.d.ts.map +1 -0
  375. package/build/types/mapping/DataValueMapping.d.ts +79 -0
  376. package/build/types/mapping/DataValueMapping.d.ts.map +1 -0
  377. package/build/types/mapping/DurationMapping.d.ts +22 -0
  378. package/build/types/mapping/DurationMapping.d.ts.map +1 -0
  379. package/build/types/mapping/PropertyValueMapping.d.ts +57 -0
  380. package/build/types/mapping/PropertyValueMapping.d.ts.map +1 -0
  381. package/build/types/object/Attachment.d.ts +21 -0
  382. package/build/types/object/Attachment.d.ts.map +1 -0
  383. package/build/types/object/FetchPageArgs.d.ts +49 -0
  384. package/build/types/object/FetchPageArgs.d.ts.map +1 -0
  385. package/build/types/object/FetchPageResult.d.ts +39 -0
  386. package/build/types/object/FetchPageResult.d.ts.map +1 -0
  387. package/build/types/object/Media.d.ts +32 -0
  388. package/build/types/object/Media.d.ts.map +1 -0
  389. package/build/types/object/ObjectDefinitions.test.d.ts +1 -0
  390. package/build/types/object/ObjectDefinitions.test.d.ts.map +1 -0
  391. package/build/types/object/Result.d.ts +21 -0
  392. package/build/types/object/Result.d.ts.map +1 -0
  393. package/build/{esm → types}/objectSet/BaseObjectSet.d.ts +3 -4
  394. package/build/types/objectSet/BaseObjectSet.d.ts.map +1 -0
  395. package/build/types/objectSet/BulkLinkResult.d.ts +7 -0
  396. package/build/types/objectSet/BulkLinkResult.d.ts.map +1 -0
  397. package/build/types/objectSet/ObjectSet.d.ts +217 -0
  398. package/build/types/objectSet/ObjectSet.d.ts.map +1 -0
  399. package/build/types/objectSet/ObjectSet.test.d.ts +1 -0
  400. package/build/types/objectSet/ObjectSet.test.d.ts.map +1 -0
  401. package/build/types/objectSet/ObjectSetListener.d.ts +43 -0
  402. package/build/types/objectSet/ObjectSetListener.d.ts.map +1 -0
  403. package/build/types/ontology/ActionDefinition.d.ts +55 -0
  404. package/build/types/ontology/ActionDefinition.d.ts.map +1 -0
  405. package/build/{browser → types}/ontology/InterfaceDefinition.d.ts +6 -6
  406. package/build/types/ontology/InterfaceDefinition.d.ts.map +1 -0
  407. package/build/types/ontology/ObjectOrInterface.d.ts +19 -0
  408. package/build/types/ontology/ObjectOrInterface.d.ts.map +1 -0
  409. package/build/types/ontology/ObjectTypeDefinition.d.ts +92 -0
  410. package/build/types/ontology/ObjectTypeDefinition.d.ts.map +1 -0
  411. package/build/types/ontology/OntologyMetadata.d.ts +6 -0
  412. package/build/types/ontology/OntologyMetadata.d.ts.map +1 -0
  413. package/build/{browser → types}/ontology/PrimaryKeyTypes.d.ts +0 -1
  414. package/build/types/ontology/PrimaryKeyTypes.d.ts.map +1 -0
  415. package/build/{browser → types}/ontology/QueryDefinition.d.ts +35 -33
  416. package/build/types/ontology/QueryDefinition.d.ts.map +1 -0
  417. package/build/types/ontology/SimplePropertyDef.d.ts +18 -0
  418. package/build/types/ontology/SimplePropertyDef.d.ts.map +1 -0
  419. package/build/types/ontology/SimplePropertyDef.test.d.ts +1 -0
  420. package/build/types/ontology/SimplePropertyDef.test.d.ts.map +1 -0
  421. package/build/types/ontology/VersionString.d.ts +5 -0
  422. package/build/types/ontology/VersionString.d.ts.map +1 -0
  423. package/build/types/ontology/WirePropertyTypes.d.ts +2 -0
  424. package/build/types/ontology/WirePropertyTypes.d.ts.map +1 -0
  425. package/build/types/public/unstable.d.ts +6 -0
  426. package/build/types/public/unstable.d.ts.map +1 -0
  427. package/build/types/queries/Aggregations.d.ts +39 -0
  428. package/build/types/queries/Aggregations.d.ts.map +1 -0
  429. package/build/types/queries/Queries.d.ts +43 -0
  430. package/build/types/queries/Queries.d.ts.map +1 -0
  431. package/build/types/timeseries/timeseries.d.ts +124 -0
  432. package/build/types/timeseries/timeseries.d.ts.map +1 -0
  433. package/build/{browser → types}/util/LinkUtils.d.ts +4 -2
  434. package/build/types/util/LinkUtils.d.ts.map +1 -0
  435. package/package.json +33 -11
  436. package/unstable.d.ts +17 -0
  437. package/build/browser/Definitions.d.ts +0 -16
  438. package/build/browser/Definitions.d.ts.map +0 -1
  439. package/build/browser/OsdkBase.d.ts +0 -13
  440. package/build/browser/OsdkBase.d.ts.map +0 -1
  441. package/build/browser/OsdkMetadata.d.ts +0 -4
  442. package/build/browser/OsdkMetadata.d.ts.map +0 -1
  443. package/build/browser/OsdkObject.d.ts.map +0 -1
  444. package/build/browser/OsdkObjectFrom.d.ts +0 -58
  445. package/build/browser/OsdkObjectFrom.d.ts.map +0 -1
  446. package/build/browser/OsdkObjectFrom.test.d.ts +0 -2
  447. package/build/browser/OsdkObjectFrom.test.d.ts.map +0 -1
  448. package/build/browser/OsdkObjectPrimaryKeyType.d.ts.map +0 -1
  449. package/build/browser/PageResult.d.ts +0 -6
  450. package/build/browser/PageResult.d.ts.map +0 -1
  451. package/build/browser/actions/ActionResults.d.ts +0 -81
  452. package/build/browser/actions/ActionResults.d.ts.map +0 -1
  453. package/build/browser/actions/ActionReturnTypeForOptions.d.ts.map +0 -1
  454. package/build/browser/actions/Actions.d.ts +0 -36
  455. package/build/browser/actions/Actions.d.ts.map +0 -1
  456. package/build/browser/aggregate/AggregatableKeys.d.ts +0 -16
  457. package/build/browser/aggregate/AggregatableKeys.d.ts.map +0 -1
  458. package/build/browser/aggregate/AggregateOpts.d.ts.map +0 -1
  459. package/build/browser/aggregate/AggregateOptsThatErrors.d.ts +0 -17
  460. package/build/browser/aggregate/AggregateOptsThatErrors.d.ts.map +0 -1
  461. package/build/browser/aggregate/AggregationResultsWithGroups.d.ts.map +0 -1
  462. package/build/browser/aggregate/AggregationResultsWithoutGroups.d.ts +0 -13
  463. package/build/browser/aggregate/AggregationResultsWithoutGroups.d.ts.map +0 -1
  464. package/build/browser/aggregate/AggregationsClause.d.ts +0 -10
  465. package/build/browser/aggregate/AggregationsClause.d.ts.map +0 -1
  466. package/build/browser/aggregate/AggregationsClause.test.d.ts +0 -47
  467. package/build/browser/aggregate/AggregationsClause.test.d.ts.map +0 -1
  468. package/build/browser/aggregate/AggregationsResults.d.ts +0 -7
  469. package/build/browser/aggregate/AggregationsResults.d.ts.map +0 -1
  470. package/build/browser/aggregate/WhereClause.d.ts +0 -79
  471. package/build/browser/aggregate/WhereClause.d.ts.map +0 -1
  472. package/build/browser/definitions/LinkDefinitions.d.ts +0 -21
  473. package/build/browser/definitions/LinkDefinitions.d.ts.map +0 -1
  474. package/build/browser/definitions/LinkDefinitions.test.d.ts +0 -2
  475. package/build/browser/definitions/LinkDefinitions.test.d.ts.map +0 -1
  476. package/build/browser/experimental/Experiment.d.ts +0 -8
  477. package/build/browser/experimental/Experiment.d.ts.map +0 -1
  478. package/build/browser/experimental/getBulkLinks.d.ts +0 -10
  479. package/build/browser/experimental/getBulkLinks.d.ts.map +0 -1
  480. package/build/browser/experimental/preexistingObjectSet.d.ts +0 -10
  481. package/build/browser/experimental/preexistingObjectSet.d.ts.map +0 -1
  482. package/build/browser/experimental/preexistingObjectSet.js +0 -21
  483. package/build/browser/experimental/preexistingObjectSet.js.map +0 -1
  484. package/build/browser/experimental/subscribe.d.ts +0 -12
  485. package/build/browser/experimental/subscribe.d.ts.map +0 -1
  486. package/build/browser/experimental/subscribe.js.map +0 -1
  487. package/build/browser/groupby/GroupByClause.d.ts +0 -73
  488. package/build/browser/groupby/GroupByClause.d.ts.map +0 -1
  489. package/build/browser/groupby/GroupByClause.test.d.ts +0 -24
  490. package/build/browser/groupby/GroupByClause.test.d.ts.map +0 -1
  491. package/build/browser/groupby/GroupByMapper.d.ts +0 -14
  492. package/build/browser/groupby/GroupByMapper.d.ts.map +0 -1
  493. package/build/browser/index.d.ts +0 -42
  494. package/build/browser/index.d.ts.map +0 -1
  495. package/build/browser/junk.test.d.ts +0 -2
  496. package/build/browser/junk.test.d.ts.map +0 -1
  497. package/build/browser/mapping/DataValueMapping.d.ts +0 -71
  498. package/build/browser/mapping/DataValueMapping.d.ts.map +0 -1
  499. package/build/browser/mapping/DurationMapping.d.ts +0 -23
  500. package/build/browser/mapping/DurationMapping.d.ts.map +0 -1
  501. package/build/browser/mapping/PropertyValueMapping.d.ts +0 -49
  502. package/build/browser/mapping/PropertyValueMapping.d.ts.map +0 -1
  503. package/build/browser/object/Attachment.d.ts +0 -25
  504. package/build/browser/object/Attachment.d.ts.map +0 -1
  505. package/build/browser/object/FetchPageArgs.d.ts +0 -27
  506. package/build/browser/object/FetchPageArgs.d.ts.map +0 -1
  507. package/build/browser/object/FetchPageResult.d.ts +0 -20
  508. package/build/browser/object/FetchPageResult.d.ts.map +0 -1
  509. package/build/browser/object/ObjectDefinitions.test.d.ts +0 -2
  510. package/build/browser/object/ObjectDefinitions.test.d.ts.map +0 -1
  511. package/build/browser/object/Result.d.ts +0 -22
  512. package/build/browser/object/Result.d.ts.map +0 -1
  513. package/build/browser/objectSet/BaseObjectSet.d.ts +0 -7
  514. package/build/browser/objectSet/BaseObjectSet.d.ts.map +0 -1
  515. package/build/browser/objectSet/BulkLinkResult.d.ts +0 -8
  516. package/build/browser/objectSet/BulkLinkResult.d.ts.map +0 -1
  517. package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts +0 -27
  518. package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts.map +0 -1
  519. package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.js.map +0 -1
  520. package/build/browser/objectSet/ObjectSet.d.ts +0 -142
  521. package/build/browser/objectSet/ObjectSet.d.ts.map +0 -1
  522. package/build/browser/ontology/ActionDefinition.d.ts +0 -46
  523. package/build/browser/ontology/ActionDefinition.d.ts.map +0 -1
  524. package/build/browser/ontology/InterfaceDefinition.d.ts.map +0 -1
  525. package/build/browser/ontology/ObjectOrInterface.d.ts +0 -5
  526. package/build/browser/ontology/ObjectOrInterface.d.ts.map +0 -1
  527. package/build/browser/ontology/ObjectTypeDefinition.d.ts +0 -83
  528. package/build/browser/ontology/ObjectTypeDefinition.d.ts.map +0 -1
  529. package/build/browser/ontology/OntologyMetadata.d.ts +0 -7
  530. package/build/browser/ontology/OntologyMetadata.d.ts.map +0 -1
  531. package/build/browser/ontology/PrimaryKeyTypes.d.ts.map +0 -1
  532. package/build/browser/ontology/QueryDefinition.d.ts.map +0 -1
  533. package/build/browser/ontology/VersionString.d.ts +0 -2
  534. package/build/browser/ontology/VersionString.d.ts.map +0 -1
  535. package/build/browser/ontology/WirePropertyTypes.d.ts +0 -2
  536. package/build/browser/ontology/WirePropertyTypes.d.ts.map +0 -1
  537. package/build/browser/public/unstable.d.ts +0 -8
  538. package/build/browser/public/unstable.d.ts.map +0 -1
  539. package/build/browser/queries/Queries.d.ts +0 -40
  540. package/build/browser/queries/Queries.d.ts.map +0 -1
  541. package/build/browser/timeseries/timeseries.d.ts +0 -125
  542. package/build/browser/timeseries/timeseries.d.ts.map +0 -1
  543. package/build/browser/util/LinkUtils.d.ts.map +0 -1
  544. package/build/esm/Definitions.d.ts +0 -16
  545. package/build/esm/Definitions.d.ts.map +0 -1
  546. package/build/esm/OsdkBase.d.ts.map +0 -1
  547. package/build/esm/OsdkMetadata.d.ts +0 -4
  548. package/build/esm/OsdkMetadata.d.ts.map +0 -1
  549. package/build/esm/OsdkObject.d.ts +0 -11
  550. package/build/esm/OsdkObject.d.ts.map +0 -1
  551. package/build/esm/OsdkObjectFrom.d.ts +0 -58
  552. package/build/esm/OsdkObjectFrom.d.ts.map +0 -1
  553. package/build/esm/OsdkObjectFrom.test.d.ts +0 -2
  554. package/build/esm/OsdkObjectFrom.test.d.ts.map +0 -1
  555. package/build/esm/OsdkObjectPrimaryKeyType.d.ts +0 -4
  556. package/build/esm/OsdkObjectPrimaryKeyType.d.ts.map +0 -1
  557. package/build/esm/PageResult.d.ts +0 -6
  558. package/build/esm/PageResult.d.ts.map +0 -1
  559. package/build/esm/actions/ActionResults.d.ts +0 -81
  560. package/build/esm/actions/ActionResults.d.ts.map +0 -1
  561. package/build/esm/actions/ActionReturnTypeForOptions.d.ts +0 -7
  562. package/build/esm/actions/ActionReturnTypeForOptions.d.ts.map +0 -1
  563. package/build/esm/actions/Actions.d.ts +0 -36
  564. package/build/esm/actions/Actions.d.ts.map +0 -1
  565. package/build/esm/aggregate/AggregatableKeys.d.ts +0 -16
  566. package/build/esm/aggregate/AggregatableKeys.d.ts.map +0 -1
  567. package/build/esm/aggregate/AggregateOpts.d.ts +0 -10
  568. package/build/esm/aggregate/AggregateOpts.d.ts.map +0 -1
  569. package/build/esm/aggregate/AggregateOptsThatErrors.d.ts +0 -17
  570. package/build/esm/aggregate/AggregateOptsThatErrors.d.ts.map +0 -1
  571. package/build/esm/aggregate/AggregationResultsWithGroups.d.ts +0 -17
  572. package/build/esm/aggregate/AggregationResultsWithGroups.d.ts.map +0 -1
  573. package/build/esm/aggregate/AggregationResultsWithoutGroups.d.ts +0 -13
  574. package/build/esm/aggregate/AggregationResultsWithoutGroups.d.ts.map +0 -1
  575. package/build/esm/aggregate/AggregationsClause.d.ts.map +0 -1
  576. package/build/esm/aggregate/AggregationsClause.test.d.ts +0 -47
  577. package/build/esm/aggregate/AggregationsClause.test.d.ts.map +0 -1
  578. package/build/esm/aggregate/AggregationsResults.d.ts +0 -7
  579. package/build/esm/aggregate/AggregationsResults.d.ts.map +0 -1
  580. package/build/esm/aggregate/WhereClause.d.ts +0 -79
  581. package/build/esm/aggregate/WhereClause.d.ts.map +0 -1
  582. package/build/esm/definitions/LinkDefinitions.d.ts +0 -21
  583. package/build/esm/definitions/LinkDefinitions.d.ts.map +0 -1
  584. package/build/esm/definitions/LinkDefinitions.test.d.ts +0 -2
  585. package/build/esm/definitions/LinkDefinitions.test.d.ts.map +0 -1
  586. package/build/esm/experimental/Experiment.d.ts +0 -8
  587. package/build/esm/experimental/Experiment.d.ts.map +0 -1
  588. package/build/esm/experimental/getBulkLinks.d.ts.map +0 -1
  589. package/build/esm/experimental/preexistingObjectSet.d.ts +0 -10
  590. package/build/esm/experimental/preexistingObjectSet.d.ts.map +0 -1
  591. package/build/esm/experimental/preexistingObjectSet.js +0 -21
  592. package/build/esm/experimental/preexistingObjectSet.js.map +0 -1
  593. package/build/esm/experimental/subscribe.d.ts +0 -12
  594. package/build/esm/experimental/subscribe.d.ts.map +0 -1
  595. package/build/esm/experimental/subscribe.js.map +0 -1
  596. package/build/esm/groupby/GroupByClause.d.ts +0 -73
  597. package/build/esm/groupby/GroupByClause.d.ts.map +0 -1
  598. package/build/esm/groupby/GroupByClause.test.d.ts +0 -24
  599. package/build/esm/groupby/GroupByClause.test.d.ts.map +0 -1
  600. package/build/esm/groupby/GroupByMapper.d.ts +0 -14
  601. package/build/esm/groupby/GroupByMapper.d.ts.map +0 -1
  602. package/build/esm/index.d.ts +0 -42
  603. package/build/esm/index.d.ts.map +0 -1
  604. package/build/esm/junk.test.d.ts +0 -2
  605. package/build/esm/junk.test.d.ts.map +0 -1
  606. package/build/esm/mapping/DataValueMapping.d.ts +0 -71
  607. package/build/esm/mapping/DataValueMapping.d.ts.map +0 -1
  608. package/build/esm/mapping/DurationMapping.d.ts +0 -23
  609. package/build/esm/mapping/DurationMapping.d.ts.map +0 -1
  610. package/build/esm/mapping/PropertyValueMapping.d.ts +0 -49
  611. package/build/esm/mapping/PropertyValueMapping.d.ts.map +0 -1
  612. package/build/esm/object/Attachment.d.ts +0 -25
  613. package/build/esm/object/Attachment.d.ts.map +0 -1
  614. package/build/esm/object/FetchPageArgs.d.ts +0 -27
  615. package/build/esm/object/FetchPageArgs.d.ts.map +0 -1
  616. package/build/esm/object/FetchPageResult.d.ts +0 -20
  617. package/build/esm/object/FetchPageResult.d.ts.map +0 -1
  618. package/build/esm/object/ObjectDefinitions.test.d.ts +0 -2
  619. package/build/esm/object/ObjectDefinitions.test.d.ts.map +0 -1
  620. package/build/esm/object/Result.d.ts +0 -22
  621. package/build/esm/object/Result.d.ts.map +0 -1
  622. package/build/esm/objectSet/BaseObjectSet.d.ts.map +0 -1
  623. package/build/esm/objectSet/BulkLinkResult.d.ts +0 -8
  624. package/build/esm/objectSet/BulkLinkResult.d.ts.map +0 -1
  625. package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts +0 -27
  626. package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts.map +0 -1
  627. package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.js.map +0 -1
  628. package/build/esm/objectSet/ObjectSet.d.ts +0 -142
  629. package/build/esm/objectSet/ObjectSet.d.ts.map +0 -1
  630. package/build/esm/ontology/ActionDefinition.d.ts +0 -46
  631. package/build/esm/ontology/ActionDefinition.d.ts.map +0 -1
  632. package/build/esm/ontology/InterfaceDefinition.d.ts +0 -12
  633. package/build/esm/ontology/InterfaceDefinition.d.ts.map +0 -1
  634. package/build/esm/ontology/ObjectOrInterface.d.ts +0 -5
  635. package/build/esm/ontology/ObjectOrInterface.d.ts.map +0 -1
  636. package/build/esm/ontology/ObjectTypeDefinition.d.ts +0 -83
  637. package/build/esm/ontology/ObjectTypeDefinition.d.ts.map +0 -1
  638. package/build/esm/ontology/OntologyMetadata.d.ts +0 -7
  639. package/build/esm/ontology/OntologyMetadata.d.ts.map +0 -1
  640. package/build/esm/ontology/PrimaryKeyTypes.d.ts +0 -2
  641. package/build/esm/ontology/PrimaryKeyTypes.d.ts.map +0 -1
  642. package/build/esm/ontology/QueryDefinition.d.ts +0 -68
  643. package/build/esm/ontology/QueryDefinition.d.ts.map +0 -1
  644. package/build/esm/ontology/VersionString.d.ts +0 -2
  645. package/build/esm/ontology/VersionString.d.ts.map +0 -1
  646. package/build/esm/ontology/WirePropertyTypes.d.ts +0 -2
  647. package/build/esm/ontology/WirePropertyTypes.d.ts.map +0 -1
  648. package/build/esm/public/unstable.d.ts +0 -8
  649. package/build/esm/public/unstable.d.ts.map +0 -1
  650. package/build/esm/queries/Queries.d.ts +0 -40
  651. package/build/esm/queries/Queries.d.ts.map +0 -1
  652. package/build/esm/timeseries/timeseries.d.ts +0 -125
  653. package/build/esm/timeseries/timeseries.d.ts.map +0 -1
  654. package/build/esm/util/LinkUtils.d.ts +0 -5
  655. package/build/esm/util/LinkUtils.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,131 @@
1
1
  # @osdk/api
2
2
 
3
+ ## 2.1.0-beta.31
4
+
5
+ ### Minor Changes
6
+
7
+ - bb8b219: Use new external packages instead of the internal ones.
8
+ - ee6224b: Explicitly type aggregation types in queries.
9
+ - 5fe2c8d: Remove ability to filter on entire struct.
10
+
11
+ ## 2.1.0-beta.30
12
+
13
+ ### Minor Changes
14
+
15
+ - 966d408: Rename type for base action parameter types.
16
+ - f03e39f: Add a namespace type for listeners.
17
+ - 1591f04: Rename base property types.
18
+ - 785f663: Rename namespace so not exported from api package.
19
+ - 2d5e648: Remove subscribe from experimental gate.
20
+
21
+ ## 2.1.0-beta.29
22
+
23
+ ### Minor Changes
24
+
25
+ - f1145ff: Adds support for runtime derived properties
26
+
27
+ ## 2.1.0-beta.28
28
+
29
+ ### Minor Changes
30
+
31
+ - f446d0c: Exposes $clone from OSDK Object instances
32
+
33
+ ## 2.1.0-beta.27
34
+
35
+ ## 2.1.0-beta.26
36
+
37
+ ### Minor Changes
38
+
39
+ - 7865cb6: Add support for search on struct properties.
40
+ - 9c4efe6: Support uploading media parameters through actions
41
+ - f19da8e: Remove where clause from aggregate options. This option was never actually doing anything before as it was not passed to the backend for processing, so we are removing it to prevent future confusion.
42
+
43
+ ## 2.1.0-beta.25
44
+
45
+ ### Minor Changes
46
+
47
+ - c80ca45: Add ability to create interfaces through actions now.
48
+
49
+ ## 2.1.0-beta.24
50
+
51
+ ### Minor Changes
52
+
53
+ - 03f95eb: Add support for interface params in actions.
54
+ - c691c8b: Package now has experimental support for commonjs
55
+ - 3c9ac22: Cleaning up where clause types.
56
+
57
+ ## 2.1.0-beta.23
58
+
59
+ ### Minor Changes
60
+
61
+ - d794c19: Adding support for struct action params.
62
+ - 62c1d63: Add support for reading media reference property in OSDK.
63
+
64
+ ## 2.1.0-beta.22
65
+
66
+ ### Minor Changes
67
+
68
+ - 73fa373: Exports helper method to construct object sets from RIDs from internal utils
69
+
70
+ ## 2.1.0-beta.21
71
+
72
+ ### Minor Changes
73
+
74
+ - 3ea2e79: Creates new export for internal helper functions
75
+ - 656f975: Fixes attachment upload inputs sending incorrect in browser contexts
76
+ - f34b3d4: Add ability to fetch by rid, experimentally.
77
+
78
+ ## 2.1.0-beta.20
79
+
80
+ ### Minor Changes
81
+
82
+ - 9d35a1f: Remove unused imports
83
+ - abfe4b3: Add support for reading struct properties.
84
+ - c537e2d: Remove unused imports.
85
+
86
+ ## 2.1.0-beta.19
87
+
88
+ ### Minor Changes
89
+
90
+ - cddc196: Try-catches handlers called during subscription
91
+
92
+ ## 2.1.0-beta.18
93
+
94
+ ## 2.1.0-beta.17
95
+
96
+ ## 2.1.0-beta.16
97
+
98
+ ### Minor Changes
99
+
100
+ - e5fe7c0: Adds experimental method to convert an object set into RID
101
+
102
+ ## 2.1.0-beta.15
103
+
104
+ ## 2.1.0-beta.14
105
+
106
+ ### Minor Changes
107
+
108
+ - 0c56d21: Exposing fuzzy searching.
109
+ - 6b6c8a1: Updates gateway endpoints and changes fetchContents for attachments to return a response
110
+
111
+ ## 2.1.0-beta.13
112
+
113
+ ## 2.1.0-beta.12
114
+
115
+ ## 2.1.0-beta.11
116
+
117
+ ### Minor Changes
118
+
119
+ - bc1761c: Update platform API dependencies.
120
+ - 9298f75: Using new interface APIs for backend.
121
+
122
+ ## 2.1.0-beta.10
123
+
124
+ ### Minor Changes
125
+
126
+ - 11a05cc: Updated subscribe api to make requesting properties optional
127
+ - 11088aa: Fix where clause types so we don't accept more than one key in the clauses.
128
+
3
129
  ## 2.1.0-beta.9
4
130
 
5
131
  ### Minor Changes
@@ -1,17 +1,2 @@
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
1
  export {};
17
2
  //# sourceMappingURL=Definitions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Definitions.js","names":[],"sources":["Definitions.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"Definitions.js","names":[],"sources":["Definitions.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n GetClientPropertyValueFromWire,\n} from \"./mapping/PropertyValueMapping.js\";\nimport type { ObjectMetadata } from \"./ontology/ObjectTypeDefinition.js\";\n\ntype MaybeArray<T extends { multiplicity?: boolean | undefined }, U> =\n T[\"multiplicity\"] extends true ? Array<U> : U;\n\ntype MaybeNullable<T extends ObjectMetadata.Property, U> = T[\"nullable\"] extends\n true ? U | undefined\n : U;\n\ntype Raw<T> = T extends Array<any> ? T[0] : T;\ntype Converted<T> = T extends Array<any> ? T[1] : T;\n\n/**\n * @param {T} ObjectMetadata.Property in literal form\n * @param {STRICTLY_ENFORCE_NULLABLE} S for strict. If false, always `|undefined`\n */\nexport type OsdkObjectPropertyType<\n T extends ObjectMetadata.Property,\n STRICTLY_ENFORCE_NULLABLE extends boolean = true,\n> = STRICTLY_ENFORCE_NULLABLE extends false ?\n | MaybeArray<T, Converted<GetClientPropertyValueFromWire<T[\"type\"]>>>\n | undefined\n : MaybeNullable<\n T,\n MaybeArray<T, Converted<GetClientPropertyValueFromWire<T[\"type\"]>>>\n >;\n\nexport type OsdkObjectRawPropertyType<T extends ObjectMetadata.Property> =\n MaybeNullable<\n T,\n MaybeArray<T, Raw<GetClientPropertyValueFromWire<T[\"type\"]>>>\n >;\n"],"mappings":"","ignoreList":[]}
@@ -1,17 +1,2 @@
1
- /*
2
- * Copyright 2024 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
1
  export {};
17
2
  //# sourceMappingURL=OsdkBase.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OsdkBase.js","names":[],"sources":["OsdkBase.js"],"sourcesContent":["/*\n * Copyright 2024 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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"OsdkBase.js","names":[],"sources":["OsdkBase.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { PropertyValueWireToClient } from \"./mapping/PropertyValueMapping.js\";\nimport type { ObjectOrInterfaceDefinition } from \"./ontology/ObjectOrInterface.js\";\nimport type { ObjectTypeDefinition } from \"./ontology/ObjectTypeDefinition.js\";\nimport type { PrimaryKeyTypes } from \"./ontology/PrimaryKeyTypes.js\";\nimport type { OsdkObjectPrimaryKeyType } from \"./OsdkObjectPrimaryKeyType.js\";\n\nexport type OsdkBase<\n Q extends ObjectOrInterfaceDefinition,\n> = {\n readonly $apiName: Q[\"apiName\"];\n\n readonly $objectType: string;\n\n readonly $primaryKey: PrimaryKeyType<Q>;\n\n readonly $title: string | undefined;\n};\n\nexport type PrimaryKeyType<Q extends ObjectOrInterfaceDefinition> =\n & (Q extends ObjectTypeDefinition ? OsdkObjectPrimaryKeyType<Q>\n : unknown)\n // if the type is `unknown` then the next line will\n // restrict it down to all valid primary key types\n & PropertyValueWireToClient[PrimaryKeyTypes];\n"],"mappings":"","ignoreList":[]}
@@ -1,17 +1,2 @@
1
- /*
2
- * Copyright 2024 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
1
  export {};
17
2
  //# sourceMappingURL=OsdkMetadata.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OsdkMetadata.js","names":[],"sources":["OsdkMetadata.js"],"sourcesContent":["/*\n * Copyright 2024 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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"OsdkMetadata.js","names":[],"sources":["OsdkMetadata.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface OsdkMetadata {\n extraUserAgent: string;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,17 +1,2 @@
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
1
  export {};
17
2
  //# sourceMappingURL=OsdkObject.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OsdkObject.js","names":[],"sources":["OsdkObject.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"OsdkObject.js","names":[],"sources":["OsdkObject.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { PropertyValueWireToClient } from \"./mapping/PropertyValueMapping.js\";\nimport type { PrimaryKeyTypes } from \"./ontology/PrimaryKeyTypes.js\";\n\n/**\n * @deprecated Use OsdkBase\n */\nexport type OsdkObject<N extends string> = {\n readonly $apiName: N;\n readonly $objectType: string;\n readonly $primaryKey: PropertyValueWireToClient[PrimaryKeyTypes];\n};\n"],"mappings":"","ignoreList":[]}
@@ -13,5 +13,31 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export {};
16
+ /**
17
+ * @param FROM - the interface or object type to convert from
18
+ * @param TO - the interface or object type to convert to
19
+ * @param P - the property(s) to convert
20
+ */
21
+ /** DO NOT EXPORT FROM PACKAGE */
22
+ /**
23
+ * @param P The properties to add from Q
24
+ * @param Z The existing underlying properties
25
+ */
26
+ /**
27
+ * Use `Osdk.Instance` or `YourType.OsdkInstance`
28
+ */
29
+ export let Osdk;
30
+ /**
31
+ * NOT EXPORTED FROM PACKAGE
32
+ *
33
+ * Anything you throw at this that is not `false` should always be `never`.
34
+ *
35
+ * This is structured in a way that it should always short circuit to never early.
36
+ */
37
+ /**
38
+ * NOT EXPORTED FROM PACKAGE
39
+ *
40
+ * Anything you throw at this that is not exactly `true` should always be `never`.
41
+ */
42
+ // not exported from package
17
43
  //# sourceMappingURL=OsdkObjectFrom.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OsdkObjectFrom.js","names":[],"sources":["OsdkObjectFrom.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"OsdkObjectFrom.js","names":["Osdk"],"sources":["OsdkObjectFrom.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n DefaultToFalse,\n OsdkObjectLinksObject,\n} from \"./definitions/LinkDefinitions.js\";\nimport type { NullabilityAdherence } from \"./object/FetchPageArgs.js\";\nimport type { UnionIfTrue } from \"./object/FetchPageResult.js\";\nimport type { InterfaceDefinition } from \"./ontology/InterfaceDefinition.js\";\nimport type {\n ObjectOrInterfaceDefinition,\n PropertyKeys,\n} from \"./ontology/ObjectOrInterface.js\";\nimport type {\n CompileTimeMetadata,\n ObjectTypeDefinition,\n} from \"./ontology/ObjectTypeDefinition.js\";\nimport type { SimplePropertyDef } from \"./ontology/SimplePropertyDef.js\";\nimport type { OsdkBase } from \"./OsdkBase.js\";\n\ntype DropDollarOptions<T extends string> = Exclude<\n T,\n \"$rid\" | \"$all\" | \"$notStrict\"\n>;\n\ntype DropDollarAll<T extends string> = Exclude<\n T,\n \"$all\"\n>;\n\ntype SpecialOsdkPropParams =\n | \"$all\"\n | \"$rid\"\n | \"$strict\"\n | \"$notStrict\";\n\ntype ValidOsdkPropParams<Q extends ObjectOrInterfaceDefinition> =\n | SpecialOsdkPropParams\n | PropertyKeys<Q>;\n\nexport type ApiNameAsString<\n T extends ObjectOrInterfaceDefinition,\n> = CompileTimeMetadata<T>[\"apiName\"];\n\nexport type JustProps<\n T extends ObjectOrInterfaceDefinition,\n P extends ValidOsdkPropParams<T>,\n> = P extends \"$all\" ? PropertyKeys<T>\n : Exclude<P, SpecialOsdkPropParams>;\n\nexport type PropMapToObject<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ObjectTypeDefinition,\n> = NonNullable<CompileTimeMetadata<TO>[\"interfaceMap\"]>[ApiNameAsString<FROM>];\n\nexport type MapPropNamesToObjectType<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ObjectTypeDefinition,\n P extends ValidOsdkPropParams<FROM>,\n> = PropMapToObject<\n FROM,\n TO\n>[JustProps<FROM, P> & keyof PropMapToObject<FROM, TO>];\n\nexport type PropMapToInterface<\n FROM extends ObjectTypeDefinition,\n TO extends InterfaceDefinition,\n> = NonNullable<\n CompileTimeMetadata<FROM>[\"inverseInterfaceMap\"]\n>[ApiNameAsString<TO>];\n\nexport type MapPropNamesToInterface<\n FROM extends ObjectTypeDefinition,\n TO extends InterfaceDefinition,\n P extends ValidOsdkPropParams<FROM>,\n> = PropMapToInterface<\n FROM,\n TO\n>[JustProps<FROM, P> & keyof PropMapToInterface<FROM, TO>];\n/**\n * @param FROM - the interface or object type to convert from\n * @param TO - the interface or object type to convert to\n * @param P - the property(s) to convert\n */\nexport type ConvertProps<\n FROM extends ObjectOrInterfaceDefinition,\n TO extends ValidToFrom<FROM>,\n P extends ValidOsdkPropParams<FROM>,\n> = TO extends FROM ? P\n : TO extends ObjectTypeDefinition ? (\n UnionIfTrue<\n MapPropNamesToObjectType<FROM, TO, P>,\n P extends \"$rid\" ? true : false,\n \"$rid\"\n >\n )\n : TO extends InterfaceDefinition ? FROM extends ObjectTypeDefinition ? (\n UnionIfTrue<\n MapPropNamesToInterface<FROM, TO, P>,\n P extends \"$rid\" ? true : false,\n \"$rid\"\n >\n )\n : never\n : never;\n\n/** DO NOT EXPORT FROM PACKAGE */\nexport type ValidToFrom<\n FROM extends ObjectOrInterfaceDefinition,\n> = FROM extends InterfaceDefinition ? ObjectOrInterfaceDefinition\n : InterfaceDefinition;\n\n/**\n * @param P The properties to add from Q\n * @param Z The existing underlying properties\n */\ntype UnderlyingProps<\n Q extends ObjectOrInterfaceDefinition,\n P extends string,\n Z extends string,\n NEW_Q extends ValidToFrom<Q>,\n> =\n & Z\n & Q extends InterfaceDefinition\n ? NEW_Q extends ObjectTypeDefinition ? ConvertProps<Q, NEW_Q, P>\n : Z\n : Z;\n\nexport type IsNever<T> = [T] extends [never] ? true : false;\n\ntype ExtractPropsKeysFromOldPropsStyle<\n Q extends ObjectOrInterfaceDefinition,\n P extends ValidOsdkPropParams<Q>,\n> = P extends \"$all\" ? PropertyKeys<Q>\n : Exclude<P, \"$strict\" | \"$notStrict\" | \"$rid\">;\n\nexport type IsAny<T> = unknown extends T\n ? [keyof T] extends [never] ? false : true\n : false;\n\nexport type GetPropsKeys<\n Q extends ObjectOrInterfaceDefinition,\n P extends PropertyKeys<Q>,\n N extends boolean = false,\n> = IsNever<P> extends true ? N extends true ? never : PropertyKeys<Q>\n : IsAny<P> extends true ? PropertyKeys<Q>\n : P;\n\n/**\n * Use `Osdk.Instance` or `YourType.OsdkInstance`\n */\nexport type Osdk<\n Q extends ObjectOrInterfaceDefinition,\n OPTIONS extends string = never,\n P extends PropertyKeys<Q> = PropertyKeys<Q>,\n> =\n // no middle options is simplest\n IsNever<OPTIONS> extends true ? Osdk.Instance<Q, never, P>\n : IsAny<OPTIONS> extends true ? Osdk.Instance<Q, never, P>\n // Options only includes the two allowed in the new style\n : (IsNever<Exclude<OPTIONS, \"$rid\">>) extends true\n ? Osdk.Instance<Q, OPTIONS & \"$rid\", P>\n // else we are in the old style which was just Q and OPTIONS\n // and OPTIONS was $things + prop names\n : Osdk.Instance<\n Q,\n (\"$rid\" extends OPTIONS ? \"$rid\" : never),\n ExtractPropsKeysFromOldPropsStyle<Q, OPTIONS>\n >;\n\nexport namespace Osdk {\n export type Instance<\n Q extends ObjectOrInterfaceDefinition,\n OPTIONS extends never | \"$rid\" = never,\n P extends PropertyKeys<Q> = PropertyKeys<Q>,\n R extends Record<string, SimplePropertyDef> = {},\n > =\n & OsdkBase<Q>\n & Pick<\n CompileTimeMetadata<Q>[\"props\"],\n // If there aren't any additional properties, then we want GetPropsKeys to default to PropertyKeys<Q>\n GetPropsKeys<Q, P, [R] extends [{}] ? false : true>\n >\n & ([R] extends [never] ? {}\n : { [A in keyof R]: SimplePropertyDef.ToRuntimeProperty<R[A]> })\n & {\n readonly $link: Q extends { linksType?: any } ? Q[\"linksType\"]\n : Q extends ObjectTypeDefinition ? OsdkObjectLinksObject<Q>\n : never;\n\n readonly $as: <NEW_Q extends ValidToFrom<Q>>(\n type: NEW_Q | string,\n ) => Osdk.Instance<\n NEW_Q,\n OPTIONS,\n ConvertProps<Q, NEW_Q, P>\n >;\n\n readonly $clone: <NEW_PROPS extends PropertyKeys<Q>>(\n updatedObject?:\n | Osdk.Instance<Q, any, NEW_PROPS>\n | {\n [K in NEW_PROPS]?: CompileTimeMetadata<\n Q\n >[\"props\"][K];\n },\n ) => Osdk.Instance<Q, OPTIONS, P | NEW_PROPS>;\n }\n // We are hiding the $rid field if it wasn't requested as we want to discourage its use\n & (IsNever<OPTIONS> extends true ? {}\n : IsAny<OPTIONS> extends true ? {}\n : \"$rid\" extends OPTIONS ? { readonly $rid: string }\n : {});\n}\n\n/**\n * NOT EXPORTED FROM PACKAGE\n *\n * Anything you throw at this that is not `false` should always be `never`.\n *\n * This is structured in a way that it should always short circuit to never early.\n */\nexport type ExtractStrictOption<S extends NullabilityAdherence> =\n IsNever<S> extends true ? never\n : \"throw\" extends S ? never // catches any time \"throw\" still exists (including any)\n : \"drop\" extends S ? never // catches any time \"drop\" still exists (including any)\n : \"$notStrict\";\n\n/**\n * NOT EXPORTED FROM PACKAGE\n *\n * Anything you throw at this that is not exactly `true` should always be `never`.\n */\nexport type ExtractRidOption<R extends boolean> = // comment for readability\n IsNever<R> extends true ? never\n : DefaultToFalse<R> extends false ? never\n : \"$rid\";\n\n// not exported from package\nexport type ExtractOptions<\n R extends boolean,\n S extends NullabilityAdherence = NullabilityAdherence.Default,\n> = ExtractRidOption<R>;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA+EA;AACA;AACA;AACA;AACA;AAuBA;AAMA;AACA;AACA;AACA;AAiCA;AACA;AACA;AAFA,WAsBiBA,IAAI;AA6CrB;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AAMA","ignoreList":[]}
@@ -13,6 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+
16
17
  import { describe, expectTypeOf, it } from "vitest";
17
18
  describe("ExtractOptions", () => {
18
19
  describe("NullabilityAdherence Generic", () => {
@@ -70,6 +71,7 @@ describe("ExtractOptions", () => {
70
71
  describe("Osdk.Instance", () => {
71
72
  it("defaults to second argument never if omitted", () => {
72
73
  expectTypeOf().toEqualTypeOf();
74
+
73
75
  // ensure its the normal props
74
76
  expectTypeOf().toEqualTypeOf();
75
77
  });
@@ -84,6 +86,8 @@ describe("ExtractOptions", () => {
84
86
  expectTypeOf().toEqualTypeOf();
85
87
  });
86
88
  it("Cannot use $notStrict", () => {
89
+ // @ts-expect-error
90
+
87
91
  expectTypeOf().branded
88
92
  // @ts-expect-error
89
93
  .toEqualTypeOf();
@@ -103,36 +107,46 @@ describe("ExtractOptions", () => {
103
107
  describe("Osdk<>", () => {
104
108
  it("defaults to second argument never if omitted", () => {
105
109
  expectTypeOf().toEqualTypeOf();
110
+
106
111
  // expect no rid
107
112
  expectTypeOf().toEqualTypeOf();
113
+
108
114
  // ensure its the normal props
109
115
  expectTypeOf().toEqualTypeOf();
110
116
  });
111
117
  it("returns $rid if only thing specified", () => {
112
118
  expectTypeOf().toEqualTypeOf();
119
+
113
120
  // expect rid
114
121
  expectTypeOf().toEqualTypeOf();
122
+
115
123
  // ensure its the normal props
116
124
  expectTypeOf().toEqualTypeOf();
117
125
  });
118
126
  it("handles legacy properly: $rid and name", () => {
119
127
  expectTypeOf().toEqualTypeOf();
128
+
120
129
  // expect rid
121
130
  expectTypeOf().toEqualTypeOf();
131
+
122
132
  // ensure its the strict type
123
133
  expectTypeOf().toEqualTypeOf();
124
134
  });
125
135
  it("handles legacy properly: $rid and $all", () => {
126
136
  expectTypeOf().branded.toEqualTypeOf();
137
+
127
138
  // expect rid
128
139
  expectTypeOf().toEqualTypeOf();
140
+
129
141
  // ensure its the normal props
130
142
  expectTypeOf().toEqualTypeOf();
131
143
  });
132
144
  it("handles legacy properly: just $all", () => {
133
145
  expectTypeOf().branded.toEqualTypeOf();
146
+
134
147
  // expect no rid
135
148
  expectTypeOf().toEqualTypeOf();
149
+
136
150
  // ensure its the normal props
137
151
  expectTypeOf().toEqualTypeOf();
138
152
  });
@@ -140,6 +154,7 @@ describe("ExtractOptions", () => {
140
154
  expectTypeOf().toEqualTypeOf();
141
155
  // ensure its the normal props
142
156
  expectTypeOf().toEqualTypeOf();
157
+
143
158
  // expect no rid
144
159
  expectTypeOf().toEqualTypeOf();
145
160
  });
@@ -147,6 +162,7 @@ describe("ExtractOptions", () => {
147
162
  expectTypeOf().branded.toEqualTypeOf();
148
163
  // ensure its the normal props
149
164
  expectTypeOf().toEqualTypeOf();
165
+
150
166
  // expect no rid
151
167
  expectTypeOf().toEqualTypeOf();
152
168
  });
@@ -154,6 +170,7 @@ describe("ExtractOptions", () => {
154
170
  expectTypeOf().branded.toEqualTypeOf();
155
171
  // ensure its not the strict type
156
172
  expectTypeOf().toEqualTypeOf();
173
+
157
174
  // expect no rid
158
175
  expectTypeOf().toEqualTypeOf();
159
176
  });
@@ -1 +1 @@
1
- {"version":3,"file":"OsdkObjectFrom.test.js","names":["describe","expectTypeOf","it","toEqualTypeOf","branded","createObjectSetChannel"],"sources":["OsdkObjectFrom.test.js"],"sourcesContent":["/*\n * Copyright 2024 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 { describe, expectTypeOf, it } from \"vitest\";\ndescribe(\"ExtractOptions\", () => {\n describe(\"NullabilityAdherence Generic\", () => {\n it(\"does not add $notStrict for any\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for never\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for false\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for throw\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for drop\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for drop | throw\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for drop | false\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for false | throw\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for drop | throw | false\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n it(\"does not add $notStrict for NullabilityAdherence\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n });\n describe(\"Rid Generic\", () => {\n it(\"does not add $rid for false\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does add $rid for true\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does not add $rid for any\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does not add $rid for never\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does not add $rid for boolean\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n it(\"does not add $rid for true | false\", () => {\n expectTypeOf().toEqualTypeOf();\n });\n });\n describe(\"Osdk.Instance\", () => {\n it(\"defaults to second argument never if omitted\", () => {\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to second argument never if never\", () => {\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to second argument never if any\", () => {\n expectTypeOf().branded.toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"Cannot use $notStrict\", () => {\n expectTypeOf().branded\n // @ts-expect-error\n .toEqualTypeOf();\n // ensure its not the strict type\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to last argument all props if never\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n it(\"defaults to last argument all props if any\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n it(\"defaults to last argument exactly if specified\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n });\n describe(\"Osdk<>\", () => {\n it(\"defaults to second argument never if omitted\", () => {\n expectTypeOf().toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"returns $rid if only thing specified\", () => {\n expectTypeOf().toEqualTypeOf();\n // expect rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"handles legacy properly: $rid and name\", () => {\n expectTypeOf().toEqualTypeOf();\n // expect rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the strict type\n expectTypeOf().toEqualTypeOf();\n });\n it(\"handles legacy properly: $rid and $all\", () => {\n expectTypeOf().branded.toEqualTypeOf();\n // expect rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"handles legacy properly: just $all\", () => {\n expectTypeOf().branded.toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to second argument never if never\", () => {\n expectTypeOf().toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to second argument never if any\", () => {\n expectTypeOf().branded.toEqualTypeOf();\n // ensure its the normal props\n expectTypeOf().toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n });\n it(\"Does not use $notStrict if requested with old type\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n // ensure its not the strict type\n expectTypeOf().toEqualTypeOf();\n // expect no rid\n expectTypeOf().toEqualTypeOf();\n });\n it(\"defaults to last argument all props if never\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n it(\"defaults to last argument all props if any\", () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n it(\"defaults to last argument exactly if specified\", () => {\n expectTypeOf()\n .toEqualTypeOf();\n });\n });\n describe(\"Inferred return types from fetchPage work\", () => {\n function createObjectSetChannel(objectSet) {\n return {};\n }\n class Helper {\n objectSet;\n constructor(objectSet) {\n this.objectSet = objectSet;\n }\n go() {\n return createObjectSetChannel(this.objectSet);\n }\n }\n it(\"is not $notStrict\", async () => {\n expectTypeOf().branded\n .toEqualTypeOf();\n });\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASA,QAAQ,EAAEC,YAAY,EAAEC,EAAE,QAAQ,QAAQ;AAC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D,YAAY,CAAC,CAAC,CAACG,OAAO,CACjBD,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;IACFD,EAAE,CAAC,gDAAgD,EAAE,MAAM;MACvDD,YAAY,CAAC,CAAC,CACTE,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;EACN,CAAC,CAAC;EACFH,QAAQ,CAAC,2CAA2C,EAAE,MAAM;IACxD,SAASK,sBAAsBA,CAAA,EAAY;MACvC,OAAO,CAAC,CAAC;IACb;IAUAH,EAAE,CAAC,mBAAmB,EAAE,YAAY;MAChCD,YAAY,CAAC,CAAC,CAACG,OAAO,CACjBD,aAAa,CAAC,CAAC;IACxB,CAAC,CAAC;EACN,CAAC,CAAC;AACN,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"OsdkObjectFrom.test.js","names":["describe","expectTypeOf","it","toEqualTypeOf","branded","createObjectSetChannel"],"sources":["OsdkObjectFrom.test.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { describe, expectTypeOf, it } from \"vitest\";\nimport type { NullabilityAdherence } from \"./object/FetchPageArgs.js\";\nimport type { ObjectSet } from \"./objectSet/ObjectSet.js\";\nimport type { ObjectOrInterfaceDefinition } from \"./ontology/ObjectOrInterface.js\";\nimport type { ExtractOptions, Osdk } from \"./OsdkObjectFrom.js\";\n\ndescribe(\"ExtractOptions\", () => {\n describe(\"NullabilityAdherence Generic\", () => {\n it(\"does not add $notStrict for any\", () => {\n expectTypeOf<ExtractOptions<any, any>>()\n .toEqualTypeOf<never>();\n });\n\n it(\"does not add $notStrict for never\", () => {\n expectTypeOf<ExtractOptions<any, never>>()\n .toEqualTypeOf<never>();\n });\n\n it(\"does not add $notStrict for false\", () => {\n expectTypeOf<ExtractOptions<any, false>>()\n .toEqualTypeOf<never>();\n });\n\n it(\"does not add $notStrict for throw\", () => {\n expectTypeOf<ExtractOptions<any, \"throw\">>()\n .toEqualTypeOf<never>();\n });\n\n it(\"does not add $notStrict for drop\", () => {\n expectTypeOf<ExtractOptions<any, \"drop\">>()\n .toEqualTypeOf<never>();\n });\n\n it(\"does not add $notStrict for drop | throw\", () => {\n expectTypeOf<ExtractOptions<any, \"drop\" | \"throw\">>()\n .toEqualTypeOf<never>();\n });\n\n it(\"does not add $notStrict for drop | false\", () => {\n expectTypeOf<ExtractOptions<any, \"drop\" | false>>()\n .toEqualTypeOf<never>();\n });\n it(\"does not add $notStrict for false | throw\", () => {\n expectTypeOf<ExtractOptions<any, false | \"throw\">>()\n .toEqualTypeOf<never>();\n });\n\n it(\"does not add $notStrict for drop | throw | false\", () => {\n expectTypeOf<ExtractOptions<any, \"drop\" | \"throw\" | false>>()\n .toEqualTypeOf<never>();\n });\n\n it(\"does not add $notStrict for NullabilityAdherence\", () => {\n expectTypeOf<ExtractOptions<any, NullabilityAdherence>>()\n .toEqualTypeOf<never>();\n });\n });\n\n describe(\"Rid Generic\", () => {\n it(\"does not add $rid for false\", () => {\n expectTypeOf<ExtractOptions<false, any>>().toEqualTypeOf<never>();\n });\n\n it(\"does add $rid for true\", () => {\n expectTypeOf<ExtractOptions<true, any>>().toEqualTypeOf<\"$rid\">();\n });\n\n it(\"does not add $rid for any\", () => {\n expectTypeOf<ExtractOptions<any, any>>().toEqualTypeOf<never>();\n });\n\n it(\"does not add $rid for never\", () => {\n expectTypeOf<ExtractOptions<never, any>>().toEqualTypeOf<never>();\n });\n\n it(\"does not add $rid for boolean\", () => {\n expectTypeOf<ExtractOptions<boolean, any>>().toEqualTypeOf<never>();\n });\n\n it(\"does not add $rid for true | false\", () => {\n expectTypeOf<ExtractOptions<true | false, any>>().toEqualTypeOf<never>();\n });\n });\n\n type quickAndDirty = {\n apiName: \"Foo\";\n type: \"object\";\n __DefinitionMetadata: {\n props: {\n name: string;\n foo: number | undefined;\n };\n strictProps: {\n name: string;\n foo: number;\n };\n apiName: \"Foo\";\n displayName: \"\";\n interfaceMap: {};\n inverseInterfaceMap: {};\n links: {};\n pluralDisplayName: \"\";\n primaryKeyApiName: \"\";\n primaryKeyType: \"string\";\n properties: {\n name: {\n type: \"string\";\n };\n foo: {\n type: \"integer\";\n };\n };\n rid: \"\";\n status: \"ACTIVE\";\n titleProperty: \"name\";\n type: \"object\";\n };\n };\n\n describe(\"Osdk.Instance\", () => {\n it(\"defaults to second argument never if omitted\", () => {\n type toCheck = Osdk.Instance<quickAndDirty>;\n expectTypeOf<toCheck>().toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never>\n >();\n\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n });\n\n it(\"defaults to second argument never if never\", () => {\n type toCheck = Osdk.Instance<quickAndDirty, never>;\n expectTypeOf<toCheck>().toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never>\n >();\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n });\n\n it(\"defaults to second argument never if any\", () => {\n type toCheck = Osdk.Instance<quickAndDirty, any>;\n expectTypeOf<toCheck>().branded.toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never>\n >();\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n });\n\n it(\"Cannot use $notStrict\", () => {\n // @ts-expect-error\n type toCheck = Osdk.Instance<quickAndDirty, \"$notStrict\">;\n\n expectTypeOf<toCheck>().branded\n // @ts-expect-error\n .toEqualTypeOf<Osdk.Instance<quickAndDirty, \"$notStrict\">>();\n // ensure its not the strict type\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n });\n\n it(\"defaults to last argument all props if never\", () => {\n expectTypeOf<Osdk.Instance<quickAndDirty, never, never>>().branded\n .toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never, \"name\" | \"foo\">\n >();\n });\n\n it(\"defaults to last argument all props if any\", () => {\n expectTypeOf<Osdk.Instance<quickAndDirty, never, any>>().branded\n .toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never, \"name\" | \"foo\">\n >();\n });\n\n it(\"defaults to last argument exactly if specified\", () => {\n expectTypeOf<Osdk.Instance<quickAndDirty, never, \"name\">>().branded\n .toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never, \"name\">\n >();\n });\n });\n\n describe(\"Osdk<>\", () => {\n it(\"defaults to second argument never if omitted\", () => {\n type toCheck = Osdk<quickAndDirty>;\n expectTypeOf<toCheck>().toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never>\n >();\n\n // expect no rid\n expectTypeOf<keyof toCheck & \"$rid\">().toEqualTypeOf<never>();\n\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n });\n\n it(\"returns $rid if only thing specified\", () => {\n type toCheck = Osdk<quickAndDirty, \"$rid\">;\n expectTypeOf<toCheck>().toEqualTypeOf<\n Osdk.Instance<quickAndDirty, \"$rid\">\n >();\n\n // expect rid\n expectTypeOf<keyof toCheck & \"$rid\">().toEqualTypeOf<\"$rid\">();\n\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n });\n\n it(\"handles legacy properly: $rid and name\", () => {\n type toCheck = Osdk<quickAndDirty, \"$rid\" | \"name\">;\n expectTypeOf<toCheck>().toEqualTypeOf<\n Osdk.Instance<quickAndDirty, \"$rid\", \"name\">\n >();\n\n // expect rid\n expectTypeOf<keyof toCheck & \"$rid\">().toEqualTypeOf<\"$rid\">();\n\n // ensure its the strict type\n expectTypeOf<Pick<toCheck, \"name\">>().toEqualTypeOf<{\n name: quickAndDirty[\"__DefinitionMetadata\"][\"strictProps\"][\"name\"];\n }>();\n });\n\n it(\"handles legacy properly: $rid and $all\", () => {\n type toCheck = Osdk<quickAndDirty, \"$rid\" | \"$all\">;\n expectTypeOf<toCheck>().branded.toEqualTypeOf<\n Osdk.Instance<quickAndDirty, \"$rid\", \"name\" | \"foo\">\n >();\n\n // expect rid\n expectTypeOf<keyof toCheck & \"$rid\">().toEqualTypeOf<\"$rid\">();\n\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n });\n\n it(\"handles legacy properly: just $all\", () => {\n type toCheck = Osdk<quickAndDirty, \"$all\">;\n expectTypeOf<toCheck>().branded.toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never, \"name\" | \"foo\">\n >();\n\n // expect no rid\n expectTypeOf<keyof toCheck & \"$rid\">().toEqualTypeOf<never>();\n\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n });\n\n it(\"defaults to second argument never if never\", () => {\n type toCheck = Osdk<quickAndDirty, never>;\n expectTypeOf<toCheck>().toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never>\n >();\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n\n // expect no rid\n expectTypeOf<keyof toCheck & \"$rid\">().toEqualTypeOf<never>();\n });\n\n it(\"defaults to second argument never if any\", () => {\n type toCheck = Osdk<quickAndDirty, any>;\n expectTypeOf<toCheck>().branded.toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never>\n >();\n // ensure its the normal props\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n\n // expect no rid\n expectTypeOf<keyof toCheck & \"$rid\">().toEqualTypeOf<never>();\n });\n\n it(\"Does not use $notStrict if requested with old type\", () => {\n type toCheck = Osdk<quickAndDirty, \"$notStrict\">;\n expectTypeOf<toCheck>().branded\n .toEqualTypeOf<Osdk.Instance<quickAndDirty, never>>();\n // ensure its not the strict type\n expectTypeOf<Pick<toCheck, \"name\" | \"foo\">>().toEqualTypeOf<\n quickAndDirty[\"__DefinitionMetadata\"][\"props\"]\n >();\n\n // expect no rid\n expectTypeOf<keyof toCheck & \"$rid\">().toEqualTypeOf<never>();\n });\n\n it(\"defaults to last argument all props if never\", () => {\n expectTypeOf<Osdk<quickAndDirty, never, never>>().branded\n .toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never, \"name\" | \"foo\">\n >();\n });\n\n it(\"defaults to last argument all props if any\", () => {\n expectTypeOf<Osdk<quickAndDirty, never, any>>().branded\n .toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never, \"name\" | \"foo\">\n >();\n });\n\n it(\"defaults to last argument exactly if specified\", () => {\n expectTypeOf<Osdk<quickAndDirty, never, \"name\">>()\n .toEqualTypeOf<\n Osdk.Instance<quickAndDirty, never, \"name\">\n >();\n });\n });\n\n describe(\"Inferred return types from fetchPage work\", () => {\n function createObjectSetChannel<O extends ObjectOrInterfaceDefinition>(\n objectSet: ObjectSet<O>,\n ): Awaited<ReturnType<ObjectSet<O>[\"fetchPage\"]>>[\"data\"] {\n return {} as any;\n }\n\n class Helper<O extends ObjectOrInterfaceDefinition> {\n constructor(private objectSet: ObjectSet<O>) {}\n public go() {\n return createObjectSetChannel(this.objectSet);\n }\n }\n\n it(\"is not $notStrict\", async () => {\n expectTypeOf<ReturnType<Helper<quickAndDirty>[\"go\"]>>().branded\n .toEqualTypeOf<\n Osdk.Instance<quickAndDirty>[]\n >();\n });\n });\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,EAAEC,YAAY,EAAEC,EAAE,QAAQ,QAAQ;AAMnDF,QAAQ,CAAC,gBAAgB,EAAE,MAAM;EAC/BA,QAAQ,CAAC,8BAA8B,EAAE,MAAM;IAC7CE,EAAE,CAAC,iCAAiC,EAAE,MAAM;MAC1CD,YAAY,CAA2B,CAAC,CACrCE,aAAa,CAAQ,CAAC;IAC3B,CAAC,CAAC;IAEFD,EAAE,CAAC,mCAAmC,EAAE,MAAM;MAC5CD,YAAY,CAA6B,CAAC,CACvCE,aAAa,CAAQ,CAAC;IAC3B,CAAC,CAAC;IAEFD,EAAE,CAAC,mCAAmC,EAAE,MAAM;MAC5CD,YAAY,CAA6B,CAAC,CACvCE,aAAa,CAAQ,CAAC;IAC3B,CAAC,CAAC;IAEFD,EAAE,CAAC,mCAAmC,EAAE,MAAM;MAC5CD,YAAY,CAA+B,CAAC,CACzCE,aAAa,CAAQ,CAAC;IAC3B,CAAC,CAAC;IAEFD,EAAE,CAAC,kCAAkC,EAAE,MAAM;MAC3CD,YAAY,CAA8B,CAAC,CACxCE,aAAa,CAAQ,CAAC;IAC3B,CAAC,CAAC;IAEFD,EAAE,CAAC,0CAA0C,EAAE,MAAM;MACnDD,YAAY,CAAwC,CAAC,CAClDE,aAAa,CAAQ,CAAC;IAC3B,CAAC,CAAC;IAEFD,EAAE,CAAC,0CAA0C,EAAE,MAAM;MACnDD,YAAY,CAAsC,CAAC,CAChDE,aAAa,CAAQ,CAAC;IAC3B,CAAC,CAAC;IACFD,EAAE,CAAC,2CAA2C,EAAE,MAAM;MACp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aAAa,CAEzD,CAAC;;MAEH;MACAF,YAAY,CAAyB,CAAC,CAACE,aAAa,CAAQ,CAAC;IAC/D,CAAC,CAAC;IAEFD,EAAE,CAAC,oDAAoD,EAAE,MAAM;MAE7DD,YAAY,CAAU,CAAC,CAACG,OAAO,CAC5BD,aAAa,CAAsC,CAAC;MACvD;MACAF,YAAY,CAAgC,CAAC,CAACE,aAAa,CAEzD,CAAC;;MAEH;MACAF,YAAY,CAAyB,CAAC,CAACE,aAAa,CAAQ,CAAC;IAC/D,CAAC,CAAC;IAEFD,EAAE,CAAC,8CAA8C,EAAE,MAAM;MACvDD,YAAY,CAAoC,CAAC,CAACG,OAAO,CACtDD,aAAa,CAEZ,CAAC;IACP,CAAC,CAAC;IAEFD,EAAE,CAAC,4CAA4C,EAAE,MAAM;MACrDD,YAAY,CAAkC,CAAC,CAACG,OAAO,CACpDD,aAAa,CAEZ,CAAC;IACP,CAAC,CAAC;IAEFD,EAAE,CAAC,gDAAgD,EAAE,MAAM;MACzDD,YAAY,CAAqC,CAAC,CAC/CE,aAAa,CAEZ,CAAC;IACP,CAAC,CAAC;EACJ,CAAC,CAAC;EAEFH,QAAQ,CAAC,2CAA2C,EAAE,MAAM;IAC1D,SAASK,sBAAsBA,CAAA,EAE2B;MACxD,OAAO,CAAC,CAAC;IACX;IASAH,EAAE,CAAC,mBAAmB,EAAE,YAAY;MAClCD,YAAY,CAA0C,CAAC,CAACG,OAAO,CAC5DD,aAAa,CAEZ,CAAC;IACP,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
@@ -1,17 +1,2 @@
1
- /*
2
- * Copyright 2024 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
1
  export {};
17
2
  //# sourceMappingURL=OsdkObjectPrimaryKeyType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OsdkObjectPrimaryKeyType.js","names":[],"sources":["OsdkObjectPrimaryKeyType.js"],"sourcesContent":["/*\n * Copyright 2024 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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"OsdkObjectPrimaryKeyType.js","names":[],"sources":["OsdkObjectPrimaryKeyType.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { PropertyValueWireToClient } from \"./mapping/PropertyValueMapping.js\";\nimport type {\n CompileTimeMetadata,\n ObjectTypeDefinition,\n} from \"./ontology/ObjectTypeDefinition.js\";\n\nexport type OsdkObjectPrimaryKeyType<\n Q extends ObjectTypeDefinition,\n> = PropertyValueWireToClient[CompileTimeMetadata<Q>[\"primaryKeyType\"]];\n"],"mappings":"","ignoreList":[]}
@@ -1,17 +1,2 @@
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
1
  export {};
17
2
  //# sourceMappingURL=PageResult.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PageResult.js","names":[],"sources":["PageResult.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"PageResult.js","names":[],"sources":["PageResult.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface PageResult<T> {\n data: T[];\n nextPageToken: string | undefined;\n totalCount: string;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,17 +1,2 @@
1
- /*
2
- * Copyright 2024 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
1
  export {};
17
2
  //# sourceMappingURL=ActionResults.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionResults.js","names":[],"sources":["ActionResults.js"],"sourcesContent":["/*\n * Copyright 2024 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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"ActionResults.js","names":[],"sources":["ActionResults.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n// These are migrated from @osdk/foundry.internal to avoid coupling the apis\n\nexport type ActionResults =\n & (\n | ObjectEdits\n | LargeScaleObjectEdits\n )\n & { editedObjectTypes: Array<String> };\n\ninterface ObjectEdits {\n type: \"edits\";\n addedObjects: Array<ObjectReference>;\n modifiedObjects: Array<ObjectReference>;\n addedLinks: Array<LinkReference>;\n deletedObjectsCount: number;\n deletedLinksCount: number;\n}\ninterface LargeScaleObjectEdits {\n type: \"largeScaleEdits\";\n addedObjects?: never;\n modifiedObjects?: never;\n addedLinks?: never;\n deletedObjectsCount?: never;\n deletedLinksCount?: never;\n}\n\ntype LinkReference = {\n linkTypeApiNameAtoB: string;\n linkTypeApiNameBtoA: string;\n aSideObject: ObjectReference;\n bSideObject: ObjectReference;\n};\ninterface ObjectReference {\n primaryKey: string | number;\n objectType: string;\n}\nexport interface ValidateActionResponseV2 {\n result: \"VALID\" | \"INVALID\";\n submissionCriteria: Array<{\n configuredFailureMessage?: string;\n result: \"VALID\" | \"INVALID\";\n }>;\n parameters: Record<string, {\n result: \"VALID\" | \"INVALID\";\n evaluatedConstraints: Array<ParameterEvaluatedConstraint>;\n required: boolean;\n }>;\n}\ntype ParameterEvaluatedConstraint =\n | { type: \"arraySize\"; lt?: any; lte?: any; gt?: any; gte?: any }\n | { type: \"groupMember\" }\n | { type: \"objectPropertyValue\" }\n | { type: \"objectQueryResult\" }\n | {\n type: \"oneOf\";\n options: Array<{\n displayName?: string;\n value?: any;\n }>;\n otherValuesAllowed: boolean;\n }\n | { type: \"range\"; lt?: any; lte?: any; gt?: any; gte?: any }\n | { type: \"stringLength\"; lt?: any; lte?: any; gt?: any; gte?: any }\n | {\n type: \"stringRegexMatch\";\n regex: string;\n configuredFailureMessage?: string;\n }\n | { type: \"unevaluable\" };\n"],"mappings":"","ignoreList":[]}
@@ -1,17 +1,2 @@
1
- /*
2
- * Copyright 2024 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
1
  export {};
17
2
  //# sourceMappingURL=ActionReturnTypeForOptions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionReturnTypeForOptions.js","names":[],"sources":["ActionReturnTypeForOptions.js"],"sourcesContent":["/*\n * Copyright 2024 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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"ActionReturnTypeForOptions.js","names":[],"sources":["ActionReturnTypeForOptions.ts"],"sourcesContent":["/*\n * Copyright 2024 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ActionEditResponse,\n ActionValidationResponse,\n ApplyActionOptions,\n ApplyBatchActionOptions,\n} from \"./Actions.js\";\n\n// cannot specify both validateOnly and returnEdits as true\n\nexport type ActionReturnTypeForOptions<\n Op extends ApplyActionOptions | ApplyBatchActionOptions,\n> = Op extends { $validateOnly: true } ? ActionValidationResponse\n : Op extends { $returnEdits: true } ? ActionEditResponse\n : undefined;\n"],"mappings":"","ignoreList":[]}
@@ -13,5 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export {};
16
+ /**
17
+ * Helper types for converting action definition parameter types to typescript types
18
+ */
19
+ export let ActionParam;
17
20
  //# sourceMappingURL=Actions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.js","names":[],"sources":["Actions.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 */\nexport {};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"file":"Actions.js","names":["ActionParam"],"sources":["Actions.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { DataValueClientToWire } from \"../mapping/DataValueMapping.js\";\nimport type { ObjectSet } from \"../objectSet/ObjectSet.js\";\nimport type { InterfaceDefinition } from \"../ontology/InterfaceDefinition.js\";\nimport type { ObjectTypeDefinition } from \"../ontology/ObjectTypeDefinition.js\";\nimport type { OsdkBase } from \"../OsdkBase.js\";\nimport type { OsdkObjectPrimaryKeyType } from \"../OsdkObjectPrimaryKeyType.js\";\n\nimport type {\n ActionResults,\n ValidateActionResponseV2,\n} from \"./ActionResults.js\";\n\nexport type ApplyActionOptions =\n | { $returnEdits?: true; $validateOnly?: false }\n | {\n $validateOnly?: true;\n $returnEdits?: false;\n };\n\nexport type ApplyBatchActionOptions = { $returnEdits?: boolean };\n\n/**\n * Helper types for converting action definition parameter types to typescript types\n */\nexport namespace ActionParam {\n /**\n * Helper type to convert action definition parameter primitives to typescript types\n */\n export type PrimitiveType<T extends keyof DataValueClientToWire> =\n DataValueClientToWire[T];\n\n /**\n * Helper type to convert action definition parameter object types to typescript types\n */\n export type ObjectType<T extends ObjectTypeDefinition> =\n | OsdkBase<T>\n | OsdkObjectPrimaryKeyType<T>;\n\n /**\n * Helper type to convert action definition parameter object sets to typescript types\n */\n export type ObjectSetType<T extends ObjectTypeDefinition> = ObjectSet<T>;\n\n /**\n * Helper type to convert action definition parameter interface types to typescript types\n */\n export type InterfaceType<T extends InterfaceDefinition> = {\n $objectType: NonNullable<T[\"__DefinitionMetadata\"]> extends\n { implementedBy: infer U }\n ? (U extends ReadonlyArray<string> ? U[number] : string)\n : string;\n $primaryKey: string | number;\n };\n\n export type StructType<\n T extends Record<string, keyof DataValueClientToWire>,\n > = { [K in keyof T]: DataValueClientToWire[T[K]] };\n}\n\nexport type ActionEditResponse = ActionResults;\nexport type ActionValidationResponse = ValidateActionResponseV2;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAuBA;AACA;AACA;AAFA,WAGiBA,WAAW","ignoreList":[]}
@@ -1,17 +1,2 @@
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
1
  export {};
17
2
  //# sourceMappingURL=AggregatableKeys.js.map