@osdk/api 2.0.0-beta.9 → 2.0.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 (407) hide show
  1. package/CHANGELOG.md +126 -0
  2. package/build/browser/Definitions.d.ts +16 -0
  3. package/build/browser/Definitions.d.ts.map +1 -0
  4. package/build/browser/Definitions.js +17 -0
  5. package/build/browser/Definitions.js.map +1 -0
  6. package/build/browser/OsdkBase.d.ts +13 -0
  7. package/build/browser/OsdkBase.d.ts.map +1 -0
  8. package/build/browser/OsdkBase.js +17 -0
  9. package/build/browser/OsdkBase.js.map +1 -0
  10. package/build/browser/OsdkMetadata.js +17 -0
  11. package/build/browser/OsdkMetadata.js.map +1 -0
  12. package/build/browser/OsdkObject.d.ts +8 -0
  13. package/build/browser/OsdkObject.d.ts.map +1 -0
  14. package/build/browser/OsdkObject.js +17 -0
  15. package/build/browser/OsdkObject.js.map +1 -0
  16. package/build/browser/OsdkObjectFrom.d.ts +36 -0
  17. package/build/browser/OsdkObjectFrom.d.ts.map +1 -0
  18. package/build/browser/OsdkObjectFrom.js +17 -0
  19. package/build/browser/OsdkObjectFrom.js.map +1 -0
  20. package/build/browser/OsdkObjectPrimaryKeyType.d.ts +4 -0
  21. package/build/browser/OsdkObjectPrimaryKeyType.d.ts.map +1 -0
  22. package/build/browser/OsdkObjectPrimaryKeyType.js +17 -0
  23. package/build/browser/OsdkObjectPrimaryKeyType.js.map +1 -0
  24. package/build/browser/PageResult.d.ts +6 -0
  25. package/build/browser/PageResult.d.ts.map +1 -0
  26. package/build/browser/PageResult.js +17 -0
  27. package/build/browser/PageResult.js.map +1 -0
  28. package/build/browser/actions/ActionResults.d.ts +81 -0
  29. package/build/browser/actions/ActionResults.d.ts.map +1 -0
  30. package/build/browser/actions/ActionResults.js +17 -0
  31. package/build/browser/actions/ActionResults.js.map +1 -0
  32. package/build/browser/actions/ActionReturnTypeForOptions.d.ts +7 -0
  33. package/build/browser/actions/ActionReturnTypeForOptions.d.ts.map +1 -0
  34. package/build/browser/actions/ActionReturnTypeForOptions.js +17 -0
  35. package/build/browser/actions/ActionReturnTypeForOptions.js.map +1 -0
  36. package/build/browser/actions/Actions.d.ts +36 -0
  37. package/build/browser/actions/Actions.d.ts.map +1 -0
  38. package/build/browser/actions/Actions.js +17 -0
  39. package/build/browser/actions/Actions.js.map +1 -0
  40. package/build/browser/aggregate/AggregatableKeys.d.ts +16 -0
  41. package/build/browser/aggregate/AggregatableKeys.d.ts.map +1 -0
  42. package/build/browser/aggregate/AggregatableKeys.js +17 -0
  43. package/build/browser/aggregate/AggregatableKeys.js.map +1 -0
  44. package/build/browser/aggregate/AggregateOpts.d.ts +10 -0
  45. package/build/browser/aggregate/AggregateOpts.d.ts.map +1 -0
  46. package/build/browser/aggregate/AggregateOpts.js +17 -0
  47. package/build/browser/aggregate/AggregateOpts.js.map +1 -0
  48. package/build/browser/aggregate/AggregateOptsThatErrors.d.ts +17 -0
  49. package/build/browser/aggregate/AggregateOptsThatErrors.d.ts.map +1 -0
  50. package/build/browser/aggregate/AggregateOptsThatErrors.js +17 -0
  51. package/build/browser/aggregate/AggregateOptsThatErrors.js.map +1 -0
  52. package/build/browser/aggregate/AggregationResultsWithGroups.d.ts +17 -0
  53. package/build/browser/aggregate/AggregationResultsWithGroups.d.ts.map +1 -0
  54. package/build/browser/aggregate/AggregationResultsWithGroups.js +17 -0
  55. package/build/browser/aggregate/AggregationResultsWithGroups.js.map +1 -0
  56. package/build/browser/aggregate/AggregationResultsWithoutGroups.d.ts +13 -0
  57. package/build/browser/aggregate/AggregationResultsWithoutGroups.d.ts.map +1 -0
  58. package/build/browser/aggregate/AggregationResultsWithoutGroups.js +17 -0
  59. package/build/browser/aggregate/AggregationResultsWithoutGroups.js.map +1 -0
  60. package/build/browser/aggregate/AggregationsClause.d.ts +10 -0
  61. package/build/browser/aggregate/AggregationsClause.d.ts.map +1 -0
  62. package/build/browser/aggregate/AggregationsClause.js +17 -0
  63. package/build/browser/aggregate/AggregationsClause.js.map +1 -0
  64. package/build/browser/aggregate/AggregationsClause.test.d.ts +47 -0
  65. package/build/browser/aggregate/AggregationsClause.test.d.ts.map +1 -0
  66. package/build/browser/aggregate/AggregationsClause.test.js +20 -0
  67. package/build/browser/aggregate/AggregationsClause.test.js.map +1 -0
  68. package/build/browser/aggregate/AggregationsResults.d.ts +7 -0
  69. package/build/browser/aggregate/AggregationsResults.d.ts.map +1 -0
  70. package/build/browser/aggregate/AggregationsResults.js +17 -0
  71. package/build/browser/aggregate/AggregationsResults.js.map +1 -0
  72. package/build/browser/aggregate/WhereClause.d.ts +78 -0
  73. package/build/browser/aggregate/WhereClause.d.ts.map +1 -0
  74. package/build/browser/aggregate/WhereClause.js +40 -0
  75. package/build/browser/aggregate/WhereClause.js.map +1 -0
  76. package/build/browser/definitions/LinkDefinitions.d.ts +21 -0
  77. package/build/browser/definitions/LinkDefinitions.d.ts.map +1 -0
  78. package/build/browser/definitions/LinkDefinitions.js +17 -0
  79. package/build/browser/definitions/LinkDefinitions.js.map +1 -0
  80. package/build/browser/definitions/LinkDefinitions.test.d.ts +2 -0
  81. package/build/browser/definitions/LinkDefinitions.test.d.ts.map +1 -0
  82. package/build/browser/definitions/LinkDefinitions.test.js +25 -0
  83. package/build/browser/definitions/LinkDefinitions.test.js.map +1 -0
  84. package/build/browser/groupby/GroupByClause.d.ts +73 -0
  85. package/build/browser/groupby/GroupByClause.d.ts.map +1 -0
  86. package/build/browser/groupby/GroupByClause.js +22 -0
  87. package/build/browser/groupby/GroupByClause.js.map +1 -0
  88. package/build/browser/groupby/GroupByClause.test.d.ts +24 -0
  89. package/build/browser/groupby/GroupByClause.test.d.ts.map +1 -0
  90. package/build/browser/groupby/GroupByClause.test.js +20 -0
  91. package/build/browser/groupby/GroupByClause.test.js.map +1 -0
  92. package/build/browser/groupby/GroupByMapper.d.ts +14 -0
  93. package/build/browser/groupby/GroupByMapper.d.ts.map +1 -0
  94. package/build/browser/groupby/GroupByMapper.js +17 -0
  95. package/build/browser/groupby/GroupByMapper.js.map +1 -0
  96. package/build/browser/index.d.ts +42 -0
  97. package/build/browser/index.d.ts.map +1 -0
  98. package/build/browser/index.js +19 -2
  99. package/build/browser/index.js.map +1 -1
  100. package/build/browser/junk.test.js +22 -0
  101. package/build/browser/junk.test.js.map +1 -0
  102. package/build/browser/mapping/DataValueMapping.d.ts +71 -0
  103. package/build/browser/mapping/DataValueMapping.d.ts.map +1 -0
  104. package/build/browser/mapping/DataValueMapping.js +17 -0
  105. package/build/browser/mapping/DataValueMapping.js.map +1 -0
  106. package/build/browser/mapping/DurationMapping.d.ts +23 -0
  107. package/build/browser/mapping/DurationMapping.d.ts.map +1 -0
  108. package/build/browser/mapping/DurationMapping.js +38 -0
  109. package/build/browser/mapping/DurationMapping.js.map +1 -0
  110. package/build/browser/mapping/PropertyValueMapping.d.ts +47 -0
  111. package/build/browser/mapping/PropertyValueMapping.d.ts.map +1 -0
  112. package/build/browser/mapping/PropertyValueMapping.js +17 -0
  113. package/build/browser/mapping/PropertyValueMapping.js.map +1 -0
  114. package/build/browser/object/Attachment.d.ts +25 -0
  115. package/build/browser/object/Attachment.d.ts.map +1 -0
  116. package/build/browser/object/Attachment.js +17 -0
  117. package/build/browser/object/Attachment.js.map +1 -0
  118. package/build/browser/object/FetchPageArgs.d.ts +36 -0
  119. package/build/browser/object/FetchPageArgs.d.ts.map +1 -0
  120. package/build/browser/object/FetchPageArgs.js +17 -0
  121. package/build/browser/object/FetchPageArgs.js.map +1 -0
  122. package/build/browser/object/FetchPageResult.d.ts +15 -0
  123. package/build/browser/object/FetchPageResult.d.ts.map +1 -0
  124. package/build/browser/object/FetchPageResult.js +17 -0
  125. package/build/browser/object/FetchPageResult.js.map +1 -0
  126. package/build/browser/object/ObjectDefinitions.test.d.ts +2 -0
  127. package/build/browser/object/ObjectDefinitions.test.d.ts.map +1 -0
  128. package/build/browser/object/ObjectDefinitions.test.js +23 -0
  129. package/build/browser/object/ObjectDefinitions.test.js.map +1 -0
  130. package/build/browser/object/Result.d.ts +22 -0
  131. package/build/browser/object/Result.d.ts.map +1 -0
  132. package/build/browser/object/Result.js +32 -0
  133. package/build/browser/object/Result.js.map +1 -0
  134. package/build/browser/objectSet/BaseObjectSet.d.ts +7 -0
  135. package/build/browser/objectSet/BaseObjectSet.d.ts.map +1 -0
  136. package/build/browser/objectSet/BaseObjectSet.js +17 -0
  137. package/build/browser/objectSet/BaseObjectSet.js.map +1 -0
  138. package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts +18 -0
  139. package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts.map +1 -0
  140. package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.js +17 -0
  141. package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.js.map +1 -0
  142. package/build/browser/objectSet/ObjectSet.d.ts +145 -0
  143. package/build/browser/objectSet/ObjectSet.d.ts.map +1 -0
  144. package/build/browser/objectSet/ObjectSet.js +17 -0
  145. package/build/browser/objectSet/ObjectSet.js.map +1 -0
  146. package/build/browser/ontology/ActionDefinition.d.ts +46 -0
  147. package/build/browser/ontology/ActionDefinition.d.ts.map +1 -0
  148. package/build/browser/ontology/ActionDefinition.js +17 -0
  149. package/build/browser/ontology/ActionDefinition.js.map +1 -0
  150. package/build/browser/ontology/InterfaceDefinition.d.ts +12 -0
  151. package/build/browser/ontology/InterfaceDefinition.d.ts.map +1 -0
  152. package/build/browser/ontology/InterfaceDefinition.js +17 -0
  153. package/build/browser/ontology/InterfaceDefinition.js.map +1 -0
  154. package/build/browser/ontology/ObjectOrInterface.d.ts +5 -0
  155. package/build/browser/ontology/ObjectOrInterface.d.ts.map +1 -0
  156. package/build/browser/ontology/ObjectOrInterface.js +17 -0
  157. package/build/browser/ontology/ObjectOrInterface.js.map +1 -0
  158. package/build/browser/ontology/ObjectTypeDefinition.d.ts +83 -0
  159. package/build/browser/ontology/ObjectTypeDefinition.d.ts.map +1 -0
  160. package/build/browser/ontology/ObjectTypeDefinition.js +17 -0
  161. package/build/browser/ontology/ObjectTypeDefinition.js.map +1 -0
  162. package/build/browser/ontology/OntologyMetadata.js +17 -0
  163. package/build/browser/ontology/OntologyMetadata.js.map +1 -0
  164. package/build/browser/ontology/PrimaryKeyTypes.js +17 -0
  165. package/build/browser/ontology/PrimaryKeyTypes.js.map +1 -0
  166. package/build/{cjs/ontology/QueryDefinition.d.cts → browser/ontology/QueryDefinition.d.ts} +28 -20
  167. package/build/browser/ontology/QueryDefinition.d.ts.map +1 -0
  168. package/build/browser/ontology/QueryDefinition.js +17 -0
  169. package/build/browser/ontology/QueryDefinition.js.map +1 -0
  170. package/build/browser/ontology/VersionString.js +17 -0
  171. package/build/browser/ontology/VersionString.js.map +1 -0
  172. package/build/browser/ontology/WirePropertyTypes.js +17 -0
  173. package/build/browser/ontology/WirePropertyTypes.js.map +1 -0
  174. package/build/browser/public/unstable.d.ts +6 -0
  175. package/build/browser/public/unstable.d.ts.map +1 -0
  176. package/build/browser/public/unstable.js +19 -0
  177. package/build/browser/public/unstable.js.map +1 -0
  178. package/build/browser/queries/Queries.d.ts +41 -0
  179. package/build/browser/queries/Queries.d.ts.map +1 -0
  180. package/build/browser/queries/Queries.js +17 -0
  181. package/build/browser/queries/Queries.js.map +1 -0
  182. package/build/browser/timeseries/timeseries.d.ts +89 -0
  183. package/build/browser/timeseries/timeseries.d.ts.map +1 -0
  184. package/build/browser/timeseries/timeseries.js +22 -0
  185. package/build/browser/timeseries/timeseries.js.map +1 -0
  186. package/build/browser/util/LinkUtils.d.ts +5 -0
  187. package/build/browser/util/LinkUtils.d.ts.map +1 -0
  188. package/build/browser/util/LinkUtils.js +17 -0
  189. package/build/browser/util/LinkUtils.js.map +1 -0
  190. package/build/esm/Definitions.d.ts +16 -0
  191. package/build/esm/Definitions.d.ts.map +1 -0
  192. package/build/esm/Definitions.js +17 -0
  193. package/build/esm/Definitions.js.map +1 -0
  194. package/build/esm/OsdkBase.d.ts +13 -0
  195. package/build/esm/OsdkBase.d.ts.map +1 -0
  196. package/build/esm/OsdkBase.js +17 -0
  197. package/build/esm/OsdkBase.js.map +1 -0
  198. package/build/esm/OsdkMetadata.js +17 -0
  199. package/build/esm/OsdkMetadata.js.map +1 -0
  200. package/build/esm/OsdkObject.d.ts +8 -0
  201. package/build/esm/OsdkObject.d.ts.map +1 -0
  202. package/build/esm/OsdkObject.js +17 -0
  203. package/build/esm/OsdkObject.js.map +1 -0
  204. package/build/esm/OsdkObjectFrom.d.ts +36 -0
  205. package/build/esm/OsdkObjectFrom.d.ts.map +1 -0
  206. package/build/esm/OsdkObjectFrom.js +17 -0
  207. package/build/esm/OsdkObjectFrom.js.map +1 -0
  208. package/build/esm/OsdkObjectPrimaryKeyType.d.ts +4 -0
  209. package/build/esm/OsdkObjectPrimaryKeyType.d.ts.map +1 -0
  210. package/build/esm/OsdkObjectPrimaryKeyType.js +17 -0
  211. package/build/esm/OsdkObjectPrimaryKeyType.js.map +1 -0
  212. package/build/esm/PageResult.d.ts +6 -0
  213. package/build/esm/PageResult.d.ts.map +1 -0
  214. package/build/esm/PageResult.js +17 -0
  215. package/build/esm/PageResult.js.map +1 -0
  216. package/build/esm/actions/ActionResults.d.ts +81 -0
  217. package/build/esm/actions/ActionResults.d.ts.map +1 -0
  218. package/build/esm/actions/ActionResults.js +17 -0
  219. package/build/esm/actions/ActionResults.js.map +1 -0
  220. package/build/esm/actions/ActionReturnTypeForOptions.d.ts +7 -0
  221. package/build/esm/actions/ActionReturnTypeForOptions.d.ts.map +1 -0
  222. package/build/esm/actions/ActionReturnTypeForOptions.js +17 -0
  223. package/build/esm/actions/ActionReturnTypeForOptions.js.map +1 -0
  224. package/build/esm/actions/Actions.d.ts +36 -0
  225. package/build/esm/actions/Actions.d.ts.map +1 -0
  226. package/build/esm/actions/Actions.js +17 -0
  227. package/build/esm/actions/Actions.js.map +1 -0
  228. package/build/esm/aggregate/AggregatableKeys.d.ts +16 -0
  229. package/build/esm/aggregate/AggregatableKeys.d.ts.map +1 -0
  230. package/build/esm/aggregate/AggregatableKeys.js +17 -0
  231. package/build/esm/aggregate/AggregatableKeys.js.map +1 -0
  232. package/build/esm/aggregate/AggregateOpts.d.ts +10 -0
  233. package/build/esm/aggregate/AggregateOpts.d.ts.map +1 -0
  234. package/build/esm/aggregate/AggregateOpts.js +17 -0
  235. package/build/esm/aggregate/AggregateOpts.js.map +1 -0
  236. package/build/esm/aggregate/AggregateOptsThatErrors.d.ts +17 -0
  237. package/build/esm/aggregate/AggregateOptsThatErrors.d.ts.map +1 -0
  238. package/build/esm/aggregate/AggregateOptsThatErrors.js +17 -0
  239. package/build/esm/aggregate/AggregateOptsThatErrors.js.map +1 -0
  240. package/build/esm/aggregate/AggregationResultsWithGroups.d.ts +17 -0
  241. package/build/esm/aggregate/AggregationResultsWithGroups.d.ts.map +1 -0
  242. package/build/esm/aggregate/AggregationResultsWithGroups.js +17 -0
  243. package/build/esm/aggregate/AggregationResultsWithGroups.js.map +1 -0
  244. package/build/esm/aggregate/AggregationResultsWithoutGroups.d.ts +13 -0
  245. package/build/esm/aggregate/AggregationResultsWithoutGroups.d.ts.map +1 -0
  246. package/build/esm/aggregate/AggregationResultsWithoutGroups.js +17 -0
  247. package/build/esm/aggregate/AggregationResultsWithoutGroups.js.map +1 -0
  248. package/build/esm/aggregate/AggregationsClause.d.ts +10 -0
  249. package/build/esm/aggregate/AggregationsClause.d.ts.map +1 -0
  250. package/build/esm/aggregate/AggregationsClause.js +17 -0
  251. package/build/esm/aggregate/AggregationsClause.js.map +1 -0
  252. package/build/esm/aggregate/AggregationsClause.test.d.ts +47 -0
  253. package/build/esm/aggregate/AggregationsClause.test.d.ts.map +1 -0
  254. package/build/esm/aggregate/AggregationsClause.test.js +20 -0
  255. package/build/esm/aggregate/AggregationsClause.test.js.map +1 -0
  256. package/build/esm/aggregate/AggregationsResults.d.ts +7 -0
  257. package/build/esm/aggregate/AggregationsResults.d.ts.map +1 -0
  258. package/build/esm/aggregate/AggregationsResults.js +17 -0
  259. package/build/esm/aggregate/AggregationsResults.js.map +1 -0
  260. package/build/esm/aggregate/WhereClause.d.ts +78 -0
  261. package/build/esm/aggregate/WhereClause.d.ts.map +1 -0
  262. package/build/esm/aggregate/WhereClause.js +40 -0
  263. package/build/esm/aggregate/WhereClause.js.map +1 -0
  264. package/build/esm/definitions/LinkDefinitions.d.ts +21 -0
  265. package/build/esm/definitions/LinkDefinitions.d.ts.map +1 -0
  266. package/build/esm/definitions/LinkDefinitions.js +17 -0
  267. package/build/esm/definitions/LinkDefinitions.js.map +1 -0
  268. package/build/esm/definitions/LinkDefinitions.test.d.ts +2 -0
  269. package/build/esm/definitions/LinkDefinitions.test.d.ts.map +1 -0
  270. package/build/esm/definitions/LinkDefinitions.test.js +25 -0
  271. package/build/esm/definitions/LinkDefinitions.test.js.map +1 -0
  272. package/build/esm/groupby/GroupByClause.d.ts +73 -0
  273. package/build/esm/groupby/GroupByClause.d.ts.map +1 -0
  274. package/build/esm/groupby/GroupByClause.js +22 -0
  275. package/build/esm/groupby/GroupByClause.js.map +1 -0
  276. package/build/esm/groupby/GroupByClause.test.d.ts +24 -0
  277. package/build/esm/groupby/GroupByClause.test.d.ts.map +1 -0
  278. package/build/esm/groupby/GroupByClause.test.js +20 -0
  279. package/build/esm/groupby/GroupByClause.test.js.map +1 -0
  280. package/build/esm/groupby/GroupByMapper.d.ts +14 -0
  281. package/build/esm/groupby/GroupByMapper.d.ts.map +1 -0
  282. package/build/esm/groupby/GroupByMapper.js +17 -0
  283. package/build/esm/groupby/GroupByMapper.js.map +1 -0
  284. package/build/esm/index.d.ts +37 -6
  285. package/build/esm/index.d.ts.map +1 -1
  286. package/build/esm/index.js +19 -2
  287. package/build/esm/index.js.map +1 -1
  288. package/build/esm/junk.test.js +22 -0
  289. package/build/esm/junk.test.js.map +1 -0
  290. package/build/esm/mapping/DataValueMapping.d.ts +71 -0
  291. package/build/esm/mapping/DataValueMapping.d.ts.map +1 -0
  292. package/build/esm/mapping/DataValueMapping.js +17 -0
  293. package/build/esm/mapping/DataValueMapping.js.map +1 -0
  294. package/build/esm/mapping/DurationMapping.d.ts +23 -0
  295. package/build/esm/mapping/DurationMapping.d.ts.map +1 -0
  296. package/build/esm/mapping/DurationMapping.js +38 -0
  297. package/build/esm/mapping/DurationMapping.js.map +1 -0
  298. package/build/esm/mapping/PropertyValueMapping.d.ts +47 -0
  299. package/build/esm/mapping/PropertyValueMapping.d.ts.map +1 -0
  300. package/build/esm/mapping/PropertyValueMapping.js +17 -0
  301. package/build/esm/mapping/PropertyValueMapping.js.map +1 -0
  302. package/build/esm/object/Attachment.d.ts +25 -0
  303. package/build/esm/object/Attachment.d.ts.map +1 -0
  304. package/build/esm/object/Attachment.js +17 -0
  305. package/build/esm/object/Attachment.js.map +1 -0
  306. package/build/esm/object/FetchPageArgs.d.ts +36 -0
  307. package/build/esm/object/FetchPageArgs.d.ts.map +1 -0
  308. package/build/esm/object/FetchPageArgs.js +17 -0
  309. package/build/esm/object/FetchPageArgs.js.map +1 -0
  310. package/build/esm/object/FetchPageResult.d.ts +15 -0
  311. package/build/esm/object/FetchPageResult.d.ts.map +1 -0
  312. package/build/esm/object/FetchPageResult.js +17 -0
  313. package/build/esm/object/FetchPageResult.js.map +1 -0
  314. package/build/esm/object/ObjectDefinitions.test.d.ts +2 -0
  315. package/build/esm/object/ObjectDefinitions.test.d.ts.map +1 -0
  316. package/build/esm/object/ObjectDefinitions.test.js +23 -0
  317. package/build/esm/object/ObjectDefinitions.test.js.map +1 -0
  318. package/build/esm/object/Result.d.ts +22 -0
  319. package/build/esm/object/Result.d.ts.map +1 -0
  320. package/build/esm/object/Result.js +32 -0
  321. package/build/esm/object/Result.js.map +1 -0
  322. package/build/esm/objectSet/BaseObjectSet.d.ts +7 -0
  323. package/build/esm/objectSet/BaseObjectSet.d.ts.map +1 -0
  324. package/build/esm/objectSet/BaseObjectSet.js +17 -0
  325. package/build/esm/objectSet/BaseObjectSet.js.map +1 -0
  326. package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts +18 -0
  327. package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts.map +1 -0
  328. package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.js +17 -0
  329. package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.js.map +1 -0
  330. package/build/esm/objectSet/ObjectSet.d.ts +145 -0
  331. package/build/esm/objectSet/ObjectSet.d.ts.map +1 -0
  332. package/build/esm/objectSet/ObjectSet.js +17 -0
  333. package/build/esm/objectSet/ObjectSet.js.map +1 -0
  334. package/build/esm/ontology/ActionDefinition.d.ts +37 -32
  335. package/build/esm/ontology/ActionDefinition.d.ts.map +1 -1
  336. package/build/esm/ontology/ActionDefinition.js +17 -0
  337. package/build/esm/ontology/ActionDefinition.js.map +1 -0
  338. package/build/esm/ontology/InterfaceDefinition.d.ts +9 -3
  339. package/build/esm/ontology/InterfaceDefinition.d.ts.map +1 -1
  340. package/build/esm/ontology/InterfaceDefinition.js +17 -0
  341. package/build/esm/ontology/InterfaceDefinition.js.map +1 -0
  342. package/build/esm/ontology/ObjectOrInterface.d.ts +2 -2
  343. package/build/esm/ontology/ObjectOrInterface.d.ts.map +1 -1
  344. package/build/esm/ontology/ObjectOrInterface.js +17 -0
  345. package/build/esm/ontology/ObjectOrInterface.js.map +1 -0
  346. package/build/esm/ontology/ObjectTypeDefinition.d.ts +57 -41
  347. package/build/esm/ontology/ObjectTypeDefinition.d.ts.map +1 -1
  348. package/build/esm/ontology/ObjectTypeDefinition.js +17 -0
  349. package/build/esm/ontology/ObjectTypeDefinition.js.map +1 -0
  350. package/build/esm/ontology/OntologyMetadata.js +17 -0
  351. package/build/esm/ontology/OntologyMetadata.js.map +1 -0
  352. package/build/esm/ontology/PrimaryKeyTypes.js +17 -0
  353. package/build/esm/ontology/PrimaryKeyTypes.js.map +1 -0
  354. package/build/esm/ontology/QueryDefinition.d.ts +26 -18
  355. package/build/esm/ontology/QueryDefinition.d.ts.map +1 -1
  356. package/build/esm/ontology/QueryDefinition.js +17 -0
  357. package/build/esm/ontology/QueryDefinition.js.map +1 -0
  358. package/build/esm/ontology/VersionString.js +17 -0
  359. package/build/esm/ontology/VersionString.js.map +1 -0
  360. package/build/esm/ontology/WirePropertyTypes.js +17 -0
  361. package/build/esm/ontology/WirePropertyTypes.js.map +1 -0
  362. package/build/esm/public/unstable.d.ts +6 -0
  363. package/build/esm/public/unstable.d.ts.map +1 -0
  364. package/build/esm/public/unstable.js +19 -0
  365. package/build/esm/public/unstable.js.map +1 -0
  366. package/build/esm/queries/Queries.d.ts +41 -0
  367. package/build/esm/queries/Queries.d.ts.map +1 -0
  368. package/build/esm/queries/Queries.js +17 -0
  369. package/build/esm/queries/Queries.js.map +1 -0
  370. package/build/esm/timeseries/timeseries.d.ts +89 -0
  371. package/build/esm/timeseries/timeseries.d.ts.map +1 -0
  372. package/build/esm/timeseries/timeseries.js +22 -0
  373. package/build/esm/timeseries/timeseries.js.map +1 -0
  374. package/build/esm/util/LinkUtils.d.ts +5 -0
  375. package/build/esm/util/LinkUtils.d.ts.map +1 -0
  376. package/build/esm/util/LinkUtils.js +17 -0
  377. package/build/esm/util/LinkUtils.js.map +1 -0
  378. package/package.json +11 -12
  379. package/build/cjs/index.cjs +0 -4
  380. package/build/cjs/index.cjs.map +0 -1
  381. package/build/cjs/index.d.cts +0 -11
  382. package/build/cjs/index.d.ts.map +0 -1
  383. package/build/cjs/ontology/ActionDefinition.d.cts +0 -41
  384. package/build/cjs/ontology/ActionDefinition.d.ts.map +0 -1
  385. package/build/cjs/ontology/InterfaceDefinition.d.cts +0 -6
  386. package/build/cjs/ontology/InterfaceDefinition.d.ts.map +0 -1
  387. package/build/cjs/ontology/ObjectOrInterface.d.cts +0 -5
  388. package/build/cjs/ontology/ObjectOrInterface.d.ts.map +0 -1
  389. package/build/cjs/ontology/ObjectTypeDefinition.d.cts +0 -67
  390. package/build/cjs/ontology/ObjectTypeDefinition.d.ts.map +0 -1
  391. package/build/cjs/ontology/QueryDefinition.d.ts.map +0 -1
  392. package/build/cjs/ontology/index.d.cts +0 -7
  393. package/build/cjs/ontology/index.d.ts.map +0 -1
  394. package/build/esm/ontology/index.d.ts +0 -7
  395. package/build/esm/ontology/index.d.ts.map +0 -1
  396. /package/build/{cjs/OsdkMetadata.d.cts → browser/OsdkMetadata.d.ts} +0 -0
  397. /package/build/{cjs → browser}/OsdkMetadata.d.ts.map +0 -0
  398. /package/build/{cjs/junk.test.d.cts → browser/junk.test.d.ts} +0 -0
  399. /package/build/{cjs → browser}/junk.test.d.ts.map +0 -0
  400. /package/build/{cjs/ontology/OntologyMetadata.d.cts → browser/ontology/OntologyMetadata.d.ts} +0 -0
  401. /package/build/{cjs → browser}/ontology/OntologyMetadata.d.ts.map +0 -0
  402. /package/build/{cjs/ontology/PrimaryKeyTypes.d.cts → browser/ontology/PrimaryKeyTypes.d.ts} +0 -0
  403. /package/build/{cjs → browser}/ontology/PrimaryKeyTypes.d.ts.map +0 -0
  404. /package/build/{cjs/ontology/VersionString.d.cts → browser/ontology/VersionString.d.ts} +0 -0
  405. /package/build/{cjs → browser}/ontology/VersionString.d.ts.map +0 -0
  406. /package/build/{cjs/ontology/WirePropertyTypes.d.cts → browser/ontology/WirePropertyTypes.d.ts} +0 -0
  407. /package/build/{cjs → browser}/ontology/WirePropertyTypes.d.ts.map +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,131 @@
1
1
  # @osdk/api
2
2
 
3
+ ## 2.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - @osdk/shared.net@2.0.1
8
+
9
+ ## 2.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - 3affe49: Placeholder for breaking changes
14
+ - 9b0617d: Legacy types were removed
15
+ - 1252d94: ESM Only
16
+ - fe9547e: All types from @osdk/client.api merged into @osdk/api
17
+ - 56df85a: We now generate minimal object and interface types
18
+
19
+ ### Minor Changes
20
+
21
+ - dc25fb4: Code generation now uses MinQueryDef
22
+ - b946e00: Emitted action definition is minimal size now
23
+ - a2c7b37: Add docs for object sets and attachments.
24
+ - 0ea1a17: Fixes an issue where properties may not be inferred correctly when directly used in a return statement
25
+ - dc25fb4: Improve query generics
26
+ - 94105a5: Updates return type of actions to improve ease of use
27
+ - dc25fb4: Rename MinimumActionDefinition to MinActionDef
28
+ - a2c7b37: Enables better tree shaking
29
+ - dc25fb4: Further simplify types
30
+ - e6ade8b: Adds fetchMetadata method to client
31
+ - dc25fb4: Renamed definition types to metadata
32
+ - dc25fb4: Fixes edge cases in inferred return types especially when changing object types
33
+ - a2c7b37: Internal refactor for TimeSeriesProperty
34
+ - 795777a: Change how queries are executed, now use executeFunction call instead
35
+ - 95f9247: Adds In filter to Where clauses
36
+ - d2f75f9: Adding support for arguments in asyncIter similar to fetchPage. Arguments that are not permitted in asyncIter are nextPageToken and pageSize.
37
+ - b7cd0a1: Exposes unstable experimental features directly on client
38
+ - 512ee35: Exposed editedObjectTypes for all action results and split edits based on edit type.
39
+ - e86c505: Removed unused test file
40
+ - dc25fb4: Modified return type of fetchMetadata to return Object/Interface Definitions
41
+ - 0ce2858: Improves casting between Foo.ObjectSet and ObjectSet<Foo>
42
+ - dc25fb4: Expose parameters on action metadata
43
+ - 7c2db00: Updates QueryDefinition to include an optional generic argument
44
+ - dc25fb4: Simplified types
45
+ - dc25fb4: Updates return types of fetchMetadata to be Action and Query Definitions
46
+ - fc28eae: Fetching interfaces learns $\_\_EXPERIMENTAL_selectedObjectTypes
47
+ - dc25fb4: Renamed Min_Definition to \_Definition
48
+ - a9923f3: Adds exactDistinct to aggregations
49
+ - 1f633f7: Removed dependency on @osdk/client.api
50
+ - d4d6605: Audited and cleaned up deps
51
+ - 64818dc: Drop support for internal gateway package
52
+
53
+ ### Patch Changes
54
+
55
+ - Updated dependencies [1252d94]
56
+ - Updated dependencies [01724ae]
57
+ - Updated dependencies [d4d6605]
58
+ - Updated dependencies [64818dc]
59
+ - @osdk/shared.net@2.0.0
60
+
61
+ ## 2.0.0-beta.16
62
+
63
+ ### Minor Changes
64
+
65
+ - dc25fb4: Improve query generics
66
+ - dc25fb4: Further simplify types
67
+
68
+ ### Patch Changes
69
+
70
+ - @osdk/shared.net@2.0.0-beta.6
71
+
72
+ ## 2.0.0-beta.15
73
+
74
+ ### Minor Changes
75
+
76
+ - dc25fb4: Simplified types
77
+
78
+ ## 2.0.0-beta.14
79
+
80
+ ### Major Changes
81
+
82
+ - fe9547e: All types from @osdk/client.api merged into @osdk/api
83
+
84
+ ### Minor Changes
85
+
86
+ - a2c7b37: Enables better tree shaking
87
+ - 1f633f7: Removed dependency on @osdk/client.api
88
+ - d4d6605: Audited and cleaned up deps
89
+
90
+ ### Patch Changes
91
+
92
+ - Updated dependencies [d4d6605]
93
+ - @osdk/shared.net@2.0.0-beta.5
94
+
95
+ ## 2.0.0-beta.13
96
+
97
+ ### Minor Changes
98
+
99
+ - 1488144: Renamed definition types to metadata
100
+ - c28792e: Modified return type of fetchMetadata to return Object/Interface Definitions
101
+ - 26ee3bd: Updates return types of fetchMetadata to be Action and Query Definitions
102
+ - 6ab5d2e: Renamed Min_Definition to \_Definition
103
+
104
+ ### Patch Changes
105
+
106
+ - @osdk/shared.net@2.0.0-beta.4
107
+
108
+ ## 2.0.0-beta.12
109
+
110
+ ## 2.0.0-beta.11
111
+
112
+ ## 2.0.0-beta.10
113
+
114
+ ### Major Changes
115
+
116
+ - 1252d94: ESM Only
117
+ - 56df85a: We now generate minimal object and interface types
118
+
119
+ ### Minor Changes
120
+
121
+ - dc25fb4: Code generation now uses MinQueryDef
122
+ - dc25fb4: Rename MinimumActionDefinition to MinActionDef
123
+
124
+ ### Patch Changes
125
+
126
+ - Updated dependencies [1252d94]
127
+ - @osdk/shared.net@2.0.0-beta.3
128
+
3
129
  ## 2.0.0-beta.9
4
130
 
5
131
  ### Minor Changes
@@ -0,0 +1,16 @@
1
+ import type { PropertyValueWireToClient } from "./mapping/PropertyValueMapping.js";
2
+ import type { ObjectMetadata } from "./ontology/ObjectTypeDefinition.js";
3
+ type MaybeArray<T extends {
4
+ multiplicity?: boolean | undefined;
5
+ }, U> = T["multiplicity"] extends true ? Array<U> : U;
6
+ type MaybeNullable<T extends ObjectMetadata.Property, U> = T["nullable"] extends true ? U | undefined : U;
7
+ type Raw<T> = T extends Array<any> ? T[0] : T;
8
+ type Converted<T> = T extends Array<any> ? T[1] : T;
9
+ /**
10
+ * @param {T} ObjectMetadata.Property in literal form
11
+ * @param {STRICTLY_ENFORCE_NULLABLE} S for strict. If false, always `|undefined`
12
+ */
13
+ export type OsdkObjectPropertyType<T extends ObjectMetadata.Property, STRICTLY_ENFORCE_NULLABLE extends boolean = true> = STRICTLY_ENFORCE_NULLABLE extends false ? MaybeArray<T, Converted<PropertyValueWireToClient[T["type"]]>> | undefined : MaybeNullable<T, MaybeArray<T, Converted<PropertyValueWireToClient[T["type"]]>>>;
14
+ export type OsdkObjectRawPropertyType<T extends ObjectMetadata.Property> = MaybeNullable<T, MaybeArray<T, Raw<PropertyValueWireToClient[T["type"]]>>>;
15
+ export {};
16
+ //# sourceMappingURL=Definitions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Definitions.d.ts","sourceRoot":"","sources":["../../src/Definitions.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAEzE,KAAK,UAAU,CAAC,CAAC,SAAS;IAAE,YAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,EAAE,CAAC,IACjE,CAAC,CAAC,cAAc,CAAC,SAAS,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAEhD,KAAK,aAAa,CAAC,CAAC,SAAS,cAAc,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,SACtE,IAAI,GAAG,CAAC,GAAG,SAAS,GAClB,CAAC,CAAC;AAEN,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAC9C,KAAK,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAEpD;;;GAGG;AACH,MAAM,MAAM,sBAAsB,CAChC,CAAC,SAAS,cAAc,CAAC,QAAQ,EACjC,yBAAyB,SAAS,OAAO,GAAG,IAAI,IAC9C,yBAAyB,SAAS,KAAK,GACvC,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,yBAAyB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,GAC1E,aAAa,CACb,CAAC,EACD,UAAU,CAAC,CAAC,EAAE,SAAS,CAAC,yBAAyB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAC/D,CAAC;AAEJ,MAAM,MAAM,yBAAyB,CAAC,CAAC,SAAS,cAAc,CAAC,QAAQ,IACrE,aAAa,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,EAAE,GAAG,CAAC,yBAAyB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,17 @@
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
+ export {};
17
+ //# sourceMappingURL=Definitions.js.map
@@ -0,0 +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":[]}
@@ -0,0 +1,13 @@
1
+ import type { PropertyValueWireToClient } from "./mapping/PropertyValueMapping.js";
2
+ import type { ObjectOrInterfaceDefinition } from "./ontology/ObjectOrInterface.js";
3
+ import type { ObjectTypeDefinition } from "./ontology/ObjectTypeDefinition.js";
4
+ import type { PrimaryKeyTypes } from "./ontology/PrimaryKeyTypes.js";
5
+ import type { OsdkObjectPrimaryKeyType } from "./OsdkObjectPrimaryKeyType.js";
6
+ export type OsdkBase<Q extends ObjectOrInterfaceDefinition> = {
7
+ readonly $apiName: Q["apiName"];
8
+ readonly $objectType: string;
9
+ readonly $primaryKey: PrimaryKeyType<Q>;
10
+ readonly $title: string | undefined;
11
+ };
12
+ export type PrimaryKeyType<Q extends ObjectOrInterfaceDefinition> = (Q extends ObjectTypeDefinition ? OsdkObjectPrimaryKeyType<Q> : unknown) & PropertyValueWireToClient[PrimaryKeyTypes];
13
+ //# sourceMappingURL=OsdkBase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OsdkBase.d.ts","sourceRoot":"","sources":["../../src/OsdkBase.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE9E,MAAM,MAAM,QAAQ,CAClB,CAAC,SAAS,2BAA2B,IACnC;IACF,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC;IAEhC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IAExC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,2BAA2B,IAC5D,CAAC,CAAC,SAAS,oBAAoB,GAAG,wBAAwB,CAAC,CAAC,CAAC,GAC3D,OAAO,CAAC,GAGV,yBAAyB,CAAC,eAAe,CAAC,CAAC"}
@@ -0,0 +1,17 @@
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
+ export {};
17
+ //# sourceMappingURL=OsdkBase.js.map
@@ -0,0 +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":[]}
@@ -0,0 +1,17 @@
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
+ export {};
17
+ //# sourceMappingURL=OsdkMetadata.js.map
@@ -0,0 +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":[]}
@@ -0,0 +1,8 @@
1
+ import type { PropertyValueWireToClient } from "./mapping/PropertyValueMapping.js";
2
+ import type { PrimaryKeyTypes } from "./ontology/PrimaryKeyTypes.js";
3
+ export type OsdkObject<N extends string> = {
4
+ readonly $apiName: N;
5
+ readonly $objectType: string;
6
+ readonly $primaryKey: PropertyValueWireToClient[PrimaryKeyTypes];
7
+ };
8
+ //# sourceMappingURL=OsdkObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OsdkObject.d.ts","sourceRoot":"","sources":["../../src/OsdkObject.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAErE,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,IAAI;IACzC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;IACrB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,yBAAyB,CAAC,eAAe,CAAC,CAAC;CAClE,CAAC"}
@@ -0,0 +1,17 @@
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
+ export {};
17
+ //# sourceMappingURL=OsdkObject.js.map
@@ -0,0 +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":[]}
@@ -0,0 +1,36 @@
1
+ import type { OsdkObjectLinksObject } from "./definitions/LinkDefinitions.js";
2
+ import type { UnionIfTrue } from "./object/FetchPageResult.js";
3
+ import type { InterfaceDefinition } from "./ontology/InterfaceDefinition.js";
4
+ import type { ObjectOrInterfaceDefinition, PropertyKeys } from "./ontology/ObjectOrInterface.js";
5
+ import type { CompileTimeMetadata, ObjectTypeDefinition } from "./ontology/ObjectTypeDefinition.js";
6
+ import type { OsdkBase } from "./OsdkBase.js";
7
+ type SpecialOsdkPropParams = "$all" | "$rid" | "$strict" | "$notStrict";
8
+ type ValidOsdkPropParams<Q extends ObjectOrInterfaceDefinition> = SpecialOsdkPropParams | PropertyKeys<Q>;
9
+ export type ApiNameAsString<T extends ObjectOrInterfaceDefinition> = CompileTimeMetadata<T>["apiName"];
10
+ export type JustProps<T extends ObjectOrInterfaceDefinition, P extends ValidOsdkPropParams<T>> = P extends "$all" ? PropertyKeys<T> : Exclude<P, SpecialOsdkPropParams>;
11
+ export type PropMapToObject<FROM extends ObjectOrInterfaceDefinition, TO extends ObjectTypeDefinition> = NonNullable<CompileTimeMetadata<TO>["interfaceMap"]>[ApiNameAsString<FROM>];
12
+ export type MapPropNamesToObjectType<FROM extends ObjectOrInterfaceDefinition, TO extends ObjectTypeDefinition, P extends ValidOsdkPropParams<FROM>> = PropMapToObject<FROM, TO>[JustProps<FROM, P> & keyof PropMapToObject<FROM, TO>];
13
+ export type PropMapToInterface<FROM extends ObjectTypeDefinition, TO extends InterfaceDefinition> = NonNullable<CompileTimeMetadata<FROM>["inverseInterfaceMap"]>[ApiNameAsString<TO>];
14
+ export type MapPropNamesToInterface<FROM extends ObjectTypeDefinition, TO extends InterfaceDefinition, P extends ValidOsdkPropParams<FROM>> = PropMapToInterface<FROM, TO>[JustProps<FROM, P> & keyof PropMapToInterface<FROM, TO>];
15
+ /**
16
+ * @param FROM - the interface or object type to convert from
17
+ * @param TO - the interface or object type to convert to
18
+ * @param P - the property(s) to convert
19
+ */
20
+ export type ConvertProps<FROM extends ObjectOrInterfaceDefinition, TO extends ValidToFrom<FROM>, P extends ValidOsdkPropParams<FROM>> = TO extends FROM ? P : TO extends ObjectTypeDefinition ? (UnionIfTrue<MapPropNamesToObjectType<FROM, TO, P>, P extends "$rid" ? true : false, "$rid">) : TO extends InterfaceDefinition ? FROM extends ObjectTypeDefinition ? (UnionIfTrue<MapPropNamesToInterface<FROM, TO, P>, P extends "$rid" ? true : false, "$rid">) : never : never;
21
+ /** DO NOT EXPORT FROM PACKAGE */
22
+ export type ValidToFrom<FROM extends ObjectOrInterfaceDefinition> = FROM extends InterfaceDefinition ? ObjectOrInterfaceDefinition : InterfaceDefinition;
23
+ export type IsNever<T> = [T] extends [never] ? true : false;
24
+ type GetPropsKeys<Q extends ObjectOrInterfaceDefinition, P extends ValidOsdkPropParams<Q>> = P extends "$all" ? PropertyKeys<Q> : Exclude<P, "$strict" | "$notStrict" | "$rid">;
25
+ type GetProps<Q extends ObjectOrInterfaceDefinition, P extends ValidOsdkPropParams<Q>> = P extends "$notStrict" ? CompileTimeMetadata<Q>["props"] : CompileTimeMetadata<Q>["strictProps"];
26
+ export type Osdk<Q extends ObjectOrInterfaceDefinition, P extends ValidOsdkPropParams<Q> = "$all"> = OsdkBase<Q> & Pick<GetProps<Q, P>, GetPropsKeys<Q, P>> & {
27
+ readonly $link: Q extends {
28
+ linksType?: any;
29
+ } ? Q["linksType"] : Q extends ObjectTypeDefinition ? OsdkObjectLinksObject<Q> : never;
30
+ readonly $as: <NEW_Q extends ValidToFrom<Q>>(type: NEW_Q | string) => Osdk<NEW_Q, ConvertProps<Q, NEW_Q, P>>;
31
+ } & (IsNever<P> extends true ? {} : string extends P ? {} : "$rid" extends P ? {
32
+ readonly $rid: string;
33
+ } : {});
34
+ export type OsdkObjectOrInterfaceFrom<Q extends ObjectOrInterfaceDefinition, P extends string = PropertyKeys<Q>> = Osdk<Q, P>;
35
+ export {};
36
+ //# sourceMappingURL=OsdkObjectFrom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OsdkObjectFrom.d.ts","sourceRoot":"","sources":["../../src/OsdkObjectFrom.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,17 @@
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
+ export {};
17
+ //# sourceMappingURL=OsdkObjectFrom.js.map
@@ -0,0 +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":[]}
@@ -0,0 +1,4 @@
1
+ import type { PropertyValueWireToClient } from "./mapping/PropertyValueMapping.js";
2
+ import type { CompileTimeMetadata, ObjectTypeDefinition } from "./ontology/ObjectTypeDefinition.js";
3
+ export type OsdkObjectPrimaryKeyType<Q extends ObjectTypeDefinition> = PropertyValueWireToClient[CompileTimeMetadata<Q>["primaryKeyType"]];
4
+ //# sourceMappingURL=OsdkObjectPrimaryKeyType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OsdkObjectPrimaryKeyType.d.ts","sourceRoot":"","sources":["../../src/OsdkObjectPrimaryKeyType.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,oCAAoC,CAAC;AAE5C,MAAM,MAAM,wBAAwB,CAClC,CAAC,SAAS,oBAAoB,IAC5B,yBAAyB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,17 @@
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
+ export {};
17
+ //# sourceMappingURL=OsdkObjectPrimaryKeyType.js.map
@@ -0,0 +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":[]}
@@ -0,0 +1,6 @@
1
+ export interface PageResult<T> {
2
+ data: T[];
3
+ nextPageToken: string | undefined;
4
+ totalCount: string;
5
+ }
6
+ //# sourceMappingURL=PageResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageResult.d.ts","sourceRoot":"","sources":["../../src/PageResult.ts"],"names":[],"mappings":"AAkBA,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,17 @@
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
+ export {};
17
+ //# sourceMappingURL=PageResult.js.map
@@ -0,0 +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":[]}
@@ -0,0 +1,81 @@
1
+ export type ActionResults = (ObjectEdits | LargeScaleObjectEdits) & {
2
+ editedObjectTypes: Array<String>;
3
+ };
4
+ interface ObjectEdits {
5
+ type: "edits";
6
+ addedObjects: Array<ObjectReference>;
7
+ modifiedObjects: Array<ObjectReference>;
8
+ addedLinks: Array<LinkReference>;
9
+ deletedObjectsCount: number;
10
+ deletedLinksCount: number;
11
+ }
12
+ interface LargeScaleObjectEdits {
13
+ type: "largeScaleEdits";
14
+ addedObjects?: never;
15
+ modifiedObjects?: never;
16
+ addedLinks?: never;
17
+ deletedObjectsCount?: never;
18
+ deletedLinksCount?: never;
19
+ }
20
+ type LinkReference = {
21
+ linkTypeApiNameAtoB: string;
22
+ linkTypeApiNameBtoA: string;
23
+ aSideObject: ObjectReference;
24
+ bSideObject: ObjectReference;
25
+ };
26
+ interface ObjectReference {
27
+ primaryKey: string | number;
28
+ objectType: string;
29
+ }
30
+ export interface ValidateActionResponseV2 {
31
+ result: "VALID" | "INVALID";
32
+ submissionCriteria: Array<{
33
+ configuredFailureMessage?: string;
34
+ result: "VALID" | "INVALID";
35
+ }>;
36
+ parameters: Record<string, {
37
+ result: "VALID" | "INVALID";
38
+ evaluatedConstraints: Array<ParameterEvaluatedConstraint>;
39
+ required: boolean;
40
+ }>;
41
+ }
42
+ type ParameterEvaluatedConstraint = {
43
+ type: "arraySize";
44
+ lt?: any;
45
+ lte?: any;
46
+ gt?: any;
47
+ gte?: any;
48
+ } | {
49
+ type: "groupMember";
50
+ } | {
51
+ type: "objectPropertyValue";
52
+ } | {
53
+ type: "objectQueryResult";
54
+ } | {
55
+ type: "oneOf";
56
+ options: Array<{
57
+ displayName?: string;
58
+ value?: any;
59
+ }>;
60
+ otherValuesAllowed: boolean;
61
+ } | {
62
+ type: "range";
63
+ lt?: any;
64
+ lte?: any;
65
+ gt?: any;
66
+ gte?: any;
67
+ } | {
68
+ type: "stringLength";
69
+ lt?: any;
70
+ lte?: any;
71
+ gt?: any;
72
+ gte?: any;
73
+ } | {
74
+ type: "stringRegexMatch";
75
+ regex: string;
76
+ configuredFailureMessage?: string;
77
+ } | {
78
+ type: "unevaluable";
79
+ };
80
+ export {};
81
+ //# sourceMappingURL=ActionResults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionResults.d.ts","sourceRoot":"","sources":["../../../src/actions/ActionResults.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,17 @@
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
+ export {};
17
+ //# sourceMappingURL=ActionResults.js.map
@@ -0,0 +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":[]}
@@ -0,0 +1,7 @@
1
+ import type { ActionEditResponse, ActionValidationResponse, ApplyActionOptions, ApplyBatchActionOptions } from "./Actions.js";
2
+ export type ActionReturnTypeForOptions<Op extends ApplyActionOptions | ApplyBatchActionOptions> = Op extends {
3
+ $validateOnly: true;
4
+ } ? ActionValidationResponse : Op extends {
5
+ $returnEdits: true;
6
+ } ? ActionEditResponse : undefined;
7
+ //# sourceMappingURL=ActionReturnTypeForOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionReturnTypeForOptions.d.ts","sourceRoot":"","sources":["../../../src/actions/ActionReturnTypeForOptions.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,EAClB,uBAAuB,EACxB,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,0BAA0B,CACpC,EAAE,SAAS,kBAAkB,GAAG,uBAAuB,IACrD,EAAE,SAAS;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,GAAG,wBAAwB,GAC7D,EAAE,SAAS;IAAE,YAAY,EAAE,IAAI,CAAA;CAAE,GAAG,kBAAkB,GACtD,SAAS,CAAC"}
@@ -0,0 +1,17 @@
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
+ export {};
17
+ //# sourceMappingURL=ActionReturnTypeForOptions.js.map
@@ -0,0 +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":[]}
@@ -0,0 +1,36 @@
1
+ import type { DataValueClientToWire } from "../mapping/DataValueMapping.js";
2
+ import type { BaseObjectSet } from "../objectSet/BaseObjectSet.js";
3
+ import type { ObjectTypeDefinition } from "../ontology/ObjectTypeDefinition.js";
4
+ import type { OsdkBase } from "../OsdkBase.js";
5
+ import type { OsdkObjectPrimaryKeyType } from "../OsdkObjectPrimaryKeyType.js";
6
+ import type { ActionResults, ValidateActionResponseV2 } from "./ActionResults.js";
7
+ export type ApplyActionOptions = {
8
+ $returnEdits?: true;
9
+ $validateOnly?: false;
10
+ } | {
11
+ $validateOnly?: true;
12
+ $returnEdits?: false;
13
+ };
14
+ export type ApplyBatchActionOptions = {
15
+ $returnEdits?: boolean;
16
+ };
17
+ /**
18
+ * Helper types for converting action definition parameter types to typescript types
19
+ */
20
+ export declare namespace ActionParam {
21
+ /**
22
+ * Helper type to convert action definition parameter primitives to typescript types
23
+ */
24
+ type PrimitiveType<T extends keyof DataValueClientToWire> = DataValueClientToWire[T];
25
+ /**
26
+ * Helper type to convert action definition parameter object types to typescript types
27
+ */
28
+ type ObjectType<T extends ObjectTypeDefinition> = OsdkBase<T> | OsdkObjectPrimaryKeyType<T>;
29
+ /**
30
+ * Helper type to convert action definition parameter object sets to typescript types
31
+ */
32
+ type ObjectSetType<T extends ObjectTypeDefinition> = BaseObjectSet<T>;
33
+ }
34
+ export type ActionEditResponse = ActionResults;
35
+ export type ActionValidationResponse = ValidateActionResponseV2;
36
+ //# sourceMappingURL=Actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../src/actions/Actions.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EACzB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,kBAAkB,GAC1B;IAAE,YAAY,CAAC,EAAE,IAAI,CAAC;IAAC,aAAa,CAAC,EAAE,KAAK,CAAA;CAAE,GAC9C;IACA,aAAa,CAAC,EAAE,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB,CAAC;AAEJ,MAAM,MAAM,uBAAuB,GAAG;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEjE;;GAEG;AACH,yBAAiB,WAAW,CAAC;IAC3B;;OAEG;IACH,KAAY,aAAa,CAAC,CAAC,SAAS,MAAM,qBAAqB,IAC7D,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAE3B;;OAEG;IACH,KAAY,UAAU,CAAC,CAAC,SAAS,oBAAoB,IACjD,QAAQ,CAAC,CAAC,CAAC,GACX,wBAAwB,CAAC,CAAC,CAAC,CAAC;IAEhC;;OAEG;IACH,KAAY,aAAa,CAAC,CAAC,SAAS,oBAAoB,IAAI,aAAa,CACvE,CAAC,CACF,CAAC;CACH;AAED,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAC/C,MAAM,MAAM,wBAAwB,GAAG,wBAAwB,CAAC"}
@@ -0,0 +1,17 @@
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
+ export {};
17
+ //# sourceMappingURL=Actions.js.map