@osdk/api 2.0.0-beta.12 → 2.0.0-beta.14

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 (392) hide show
  1. package/CHANGELOG.md +30 -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.d.ts +4 -0
  11. package/build/browser/OsdkMetadata.d.ts.map +1 -0
  12. package/build/browser/OsdkMetadata.js +17 -0
  13. package/build/browser/OsdkMetadata.js.map +1 -0
  14. package/build/browser/OsdkObject.d.ts +8 -0
  15. package/build/browser/OsdkObject.d.ts.map +1 -0
  16. package/build/browser/OsdkObject.js +17 -0
  17. package/build/browser/OsdkObject.js.map +1 -0
  18. package/build/browser/OsdkObjectFrom.d.ts +36 -0
  19. package/build/browser/OsdkObjectFrom.d.ts.map +1 -0
  20. package/build/browser/OsdkObjectFrom.js +17 -0
  21. package/build/browser/OsdkObjectFrom.js.map +1 -0
  22. package/build/browser/OsdkObjectPrimaryKeyType.d.ts +4 -0
  23. package/build/browser/OsdkObjectPrimaryKeyType.d.ts.map +1 -0
  24. package/build/browser/OsdkObjectPrimaryKeyType.js +17 -0
  25. package/build/browser/OsdkObjectPrimaryKeyType.js.map +1 -0
  26. package/build/browser/PageResult.d.ts +6 -0
  27. package/build/browser/PageResult.d.ts.map +1 -0
  28. package/build/browser/PageResult.js +17 -0
  29. package/build/browser/PageResult.js.map +1 -0
  30. package/build/browser/actions/ActionResults.d.ts +81 -0
  31. package/build/browser/actions/ActionResults.d.ts.map +1 -0
  32. package/build/browser/actions/ActionResults.js +17 -0
  33. package/build/browser/actions/ActionResults.js.map +1 -0
  34. package/build/browser/actions/ActionReturnTypeForOptions.d.ts +7 -0
  35. package/build/browser/actions/ActionReturnTypeForOptions.d.ts.map +1 -0
  36. package/build/browser/actions/ActionReturnTypeForOptions.js +17 -0
  37. package/build/browser/actions/ActionReturnTypeForOptions.js.map +1 -0
  38. package/build/browser/actions/Actions.d.ts +36 -0
  39. package/build/browser/actions/Actions.d.ts.map +1 -0
  40. package/build/browser/actions/Actions.js +17 -0
  41. package/build/browser/actions/Actions.js.map +1 -0
  42. package/build/browser/aggregate/AggregatableKeys.d.ts +16 -0
  43. package/build/browser/aggregate/AggregatableKeys.d.ts.map +1 -0
  44. package/build/browser/aggregate/AggregatableKeys.js +17 -0
  45. package/build/browser/aggregate/AggregatableKeys.js.map +1 -0
  46. package/build/browser/aggregate/AggregateOpts.d.ts +10 -0
  47. package/build/browser/aggregate/AggregateOpts.d.ts.map +1 -0
  48. package/build/browser/aggregate/AggregateOpts.js +17 -0
  49. package/build/browser/aggregate/AggregateOpts.js.map +1 -0
  50. package/build/browser/aggregate/AggregateOptsThatErrors.d.ts +17 -0
  51. package/build/browser/aggregate/AggregateOptsThatErrors.d.ts.map +1 -0
  52. package/build/browser/aggregate/AggregateOptsThatErrors.js +17 -0
  53. package/build/browser/aggregate/AggregateOptsThatErrors.js.map +1 -0
  54. package/build/browser/aggregate/AggregationResultsWithGroups.d.ts +17 -0
  55. package/build/browser/aggregate/AggregationResultsWithGroups.d.ts.map +1 -0
  56. package/build/browser/aggregate/AggregationResultsWithGroups.js +17 -0
  57. package/build/browser/aggregate/AggregationResultsWithGroups.js.map +1 -0
  58. package/build/browser/aggregate/AggregationResultsWithoutGroups.d.ts +13 -0
  59. package/build/browser/aggregate/AggregationResultsWithoutGroups.d.ts.map +1 -0
  60. package/build/browser/aggregate/AggregationResultsWithoutGroups.js +17 -0
  61. package/build/browser/aggregate/AggregationResultsWithoutGroups.js.map +1 -0
  62. package/build/browser/aggregate/AggregationsClause.d.ts +10 -0
  63. package/build/browser/aggregate/AggregationsClause.d.ts.map +1 -0
  64. package/build/browser/aggregate/AggregationsClause.js +17 -0
  65. package/build/browser/aggregate/AggregationsClause.js.map +1 -0
  66. package/build/browser/aggregate/AggregationsClause.test.d.ts +47 -0
  67. package/build/browser/aggregate/AggregationsClause.test.d.ts.map +1 -0
  68. package/build/browser/aggregate/AggregationsClause.test.js +20 -0
  69. package/build/browser/aggregate/AggregationsClause.test.js.map +1 -0
  70. package/build/browser/aggregate/AggregationsResults.d.ts +7 -0
  71. package/build/browser/aggregate/AggregationsResults.d.ts.map +1 -0
  72. package/build/browser/aggregate/AggregationsResults.js +17 -0
  73. package/build/browser/aggregate/AggregationsResults.js.map +1 -0
  74. package/build/browser/aggregate/WhereClause.d.ts +78 -0
  75. package/build/browser/aggregate/WhereClause.d.ts.map +1 -0
  76. package/build/browser/aggregate/WhereClause.js +40 -0
  77. package/build/browser/aggregate/WhereClause.js.map +1 -0
  78. package/build/browser/definitions/LinkDefinitions.d.ts +21 -0
  79. package/build/browser/definitions/LinkDefinitions.d.ts.map +1 -0
  80. package/build/browser/definitions/LinkDefinitions.js +17 -0
  81. package/build/browser/definitions/LinkDefinitions.js.map +1 -0
  82. package/build/browser/definitions/LinkDefinitions.test.d.ts +2 -0
  83. package/build/browser/definitions/LinkDefinitions.test.d.ts.map +1 -0
  84. package/build/browser/definitions/LinkDefinitions.test.js +25 -0
  85. package/build/browser/definitions/LinkDefinitions.test.js.map +1 -0
  86. package/build/browser/groupby/GroupByClause.d.ts +73 -0
  87. package/build/browser/groupby/GroupByClause.d.ts.map +1 -0
  88. package/build/browser/groupby/GroupByClause.js +22 -0
  89. package/build/browser/groupby/GroupByClause.js.map +1 -0
  90. package/build/browser/groupby/GroupByClause.test.d.ts +24 -0
  91. package/build/browser/groupby/GroupByClause.test.d.ts.map +1 -0
  92. package/build/browser/groupby/GroupByClause.test.js +20 -0
  93. package/build/browser/groupby/GroupByClause.test.js.map +1 -0
  94. package/build/browser/groupby/GroupByMapper.d.ts +14 -0
  95. package/build/browser/groupby/GroupByMapper.d.ts.map +1 -0
  96. package/build/browser/groupby/GroupByMapper.js +17 -0
  97. package/build/browser/groupby/GroupByMapper.js.map +1 -0
  98. package/build/browser/index.d.ts +43 -0
  99. package/build/browser/index.d.ts.map +1 -0
  100. package/build/browser/index.js +19 -2
  101. package/build/browser/index.js.map +1 -1
  102. package/build/browser/junk.test.d.ts +2 -0
  103. package/build/browser/junk.test.d.ts.map +1 -0
  104. package/build/browser/junk.test.js +22 -0
  105. package/build/browser/junk.test.js.map +1 -0
  106. package/build/browser/mapping/DataValueMapping.d.ts +71 -0
  107. package/build/browser/mapping/DataValueMapping.d.ts.map +1 -0
  108. package/build/browser/mapping/DataValueMapping.js +17 -0
  109. package/build/browser/mapping/DataValueMapping.js.map +1 -0
  110. package/build/browser/mapping/DurationMapping.d.ts +23 -0
  111. package/build/browser/mapping/DurationMapping.d.ts.map +1 -0
  112. package/build/browser/mapping/DurationMapping.js +38 -0
  113. package/build/browser/mapping/DurationMapping.js.map +1 -0
  114. package/build/browser/mapping/PropertyValueMapping.d.ts +47 -0
  115. package/build/browser/mapping/PropertyValueMapping.d.ts.map +1 -0
  116. package/build/browser/mapping/PropertyValueMapping.js +17 -0
  117. package/build/browser/mapping/PropertyValueMapping.js.map +1 -0
  118. package/build/browser/object/Attachment.d.ts +25 -0
  119. package/build/browser/object/Attachment.d.ts.map +1 -0
  120. package/build/browser/object/Attachment.js +17 -0
  121. package/build/browser/object/Attachment.js.map +1 -0
  122. package/build/browser/object/FetchPageArgs.d.ts +34 -0
  123. package/build/browser/object/FetchPageArgs.d.ts.map +1 -0
  124. package/build/browser/object/FetchPageArgs.js +17 -0
  125. package/build/browser/object/FetchPageArgs.js.map +1 -0
  126. package/build/browser/object/FetchPageResult.d.ts +15 -0
  127. package/build/browser/object/FetchPageResult.d.ts.map +1 -0
  128. package/build/browser/object/FetchPageResult.js +17 -0
  129. package/build/browser/object/FetchPageResult.js.map +1 -0
  130. package/build/browser/object/ObjectDefinitions.test.d.ts +2 -0
  131. package/build/browser/object/ObjectDefinitions.test.d.ts.map +1 -0
  132. package/build/browser/object/ObjectDefinitions.test.js +23 -0
  133. package/build/browser/object/ObjectDefinitions.test.js.map +1 -0
  134. package/build/browser/object/Result.d.ts +22 -0
  135. package/build/browser/object/Result.d.ts.map +1 -0
  136. package/build/browser/object/Result.js +32 -0
  137. package/build/browser/object/Result.js.map +1 -0
  138. package/build/browser/objectSet/BaseObjectSet.d.ts +7 -0
  139. package/build/browser/objectSet/BaseObjectSet.d.ts.map +1 -0
  140. package/build/browser/objectSet/BaseObjectSet.js +17 -0
  141. package/build/browser/objectSet/BaseObjectSet.js.map +1 -0
  142. package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts +18 -0
  143. package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts.map +1 -0
  144. package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.js +17 -0
  145. package/build/browser/objectSet/EXPERIMENTAL_ObjectSetListener.js.map +1 -0
  146. package/build/browser/objectSet/ObjectSet.d.ts +145 -0
  147. package/build/browser/objectSet/ObjectSet.d.ts.map +1 -0
  148. package/build/browser/objectSet/ObjectSet.js +17 -0
  149. package/build/browser/objectSet/ObjectSet.js.map +1 -0
  150. package/build/browser/ontology/ActionDefinition.d.ts +46 -0
  151. package/build/browser/ontology/ActionDefinition.d.ts.map +1 -0
  152. package/build/browser/ontology/ActionDefinition.js +17 -0
  153. package/build/browser/ontology/ActionDefinition.js.map +1 -0
  154. package/build/browser/ontology/InterfaceDefinition.d.ts +12 -0
  155. package/build/browser/ontology/InterfaceDefinition.d.ts.map +1 -0
  156. package/build/browser/ontology/InterfaceDefinition.js +17 -0
  157. package/build/browser/ontology/InterfaceDefinition.js.map +1 -0
  158. package/build/browser/ontology/ObjectOrInterface.d.ts +5 -0
  159. package/build/browser/ontology/ObjectOrInterface.d.ts.map +1 -0
  160. package/build/browser/ontology/ObjectOrInterface.js +17 -0
  161. package/build/browser/ontology/ObjectOrInterface.js.map +1 -0
  162. package/build/browser/ontology/ObjectTypeDefinition.d.ts +85 -0
  163. package/build/browser/ontology/ObjectTypeDefinition.d.ts.map +1 -0
  164. package/build/browser/ontology/ObjectTypeDefinition.js +17 -0
  165. package/build/browser/ontology/ObjectTypeDefinition.js.map +1 -0
  166. package/build/browser/ontology/OntologyMetadata.d.ts +7 -0
  167. package/build/browser/ontology/OntologyMetadata.d.ts.map +1 -0
  168. package/build/browser/ontology/OntologyMetadata.js +17 -0
  169. package/build/browser/ontology/OntologyMetadata.js.map +1 -0
  170. package/build/browser/ontology/PrimaryKeyTypes.d.ts +2 -0
  171. package/build/browser/ontology/PrimaryKeyTypes.d.ts.map +1 -0
  172. package/build/browser/ontology/PrimaryKeyTypes.js +17 -0
  173. package/build/browser/ontology/PrimaryKeyTypes.js.map +1 -0
  174. package/build/browser/ontology/QueryDefinition.d.ts +68 -0
  175. package/build/browser/ontology/QueryDefinition.d.ts.map +1 -0
  176. package/build/browser/ontology/QueryDefinition.js +17 -0
  177. package/build/browser/ontology/QueryDefinition.js.map +1 -0
  178. package/build/browser/ontology/VersionString.d.ts +2 -0
  179. package/build/browser/ontology/VersionString.d.ts.map +1 -0
  180. package/build/browser/ontology/VersionString.js +17 -0
  181. package/build/browser/ontology/VersionString.js.map +1 -0
  182. package/build/browser/ontology/WirePropertyTypes.d.ts +2 -0
  183. package/build/browser/ontology/WirePropertyTypes.d.ts.map +1 -0
  184. package/build/browser/ontology/WirePropertyTypes.js +17 -0
  185. package/build/browser/ontology/WirePropertyTypes.js.map +1 -0
  186. package/build/browser/public/unstable.d.ts +6 -0
  187. package/build/browser/public/unstable.d.ts.map +1 -0
  188. package/build/browser/public/unstable.js +19 -0
  189. package/build/browser/public/unstable.js.map +1 -0
  190. package/build/browser/queries/Queries.d.ts +41 -0
  191. package/build/browser/queries/Queries.d.ts.map +1 -0
  192. package/build/browser/queries/Queries.js +17 -0
  193. package/build/browser/queries/Queries.js.map +1 -0
  194. package/build/browser/timeseries/timeseries.d.ts +89 -0
  195. package/build/browser/timeseries/timeseries.d.ts.map +1 -0
  196. package/build/browser/timeseries/timeseries.js +22 -0
  197. package/build/browser/timeseries/timeseries.js.map +1 -0
  198. package/build/browser/util/LinkUtils.d.ts +5 -0
  199. package/build/browser/util/LinkUtils.d.ts.map +1 -0
  200. package/build/browser/util/LinkUtils.js +17 -0
  201. package/build/browser/util/LinkUtils.js.map +1 -0
  202. package/build/esm/Definitions.d.ts +16 -0
  203. package/build/esm/Definitions.d.ts.map +1 -0
  204. package/build/esm/Definitions.js +17 -0
  205. package/build/esm/Definitions.js.map +1 -0
  206. package/build/esm/OsdkBase.d.ts +13 -0
  207. package/build/esm/OsdkBase.d.ts.map +1 -0
  208. package/build/esm/OsdkBase.js +17 -0
  209. package/build/esm/OsdkBase.js.map +1 -0
  210. package/build/esm/OsdkMetadata.js +17 -0
  211. package/build/esm/OsdkMetadata.js.map +1 -0
  212. package/build/esm/OsdkObject.d.ts +8 -0
  213. package/build/esm/OsdkObject.d.ts.map +1 -0
  214. package/build/esm/OsdkObject.js +17 -0
  215. package/build/esm/OsdkObject.js.map +1 -0
  216. package/build/esm/OsdkObjectFrom.d.ts +36 -0
  217. package/build/esm/OsdkObjectFrom.d.ts.map +1 -0
  218. package/build/esm/OsdkObjectFrom.js +17 -0
  219. package/build/esm/OsdkObjectFrom.js.map +1 -0
  220. package/build/esm/OsdkObjectPrimaryKeyType.d.ts +4 -0
  221. package/build/esm/OsdkObjectPrimaryKeyType.d.ts.map +1 -0
  222. package/build/esm/OsdkObjectPrimaryKeyType.js +17 -0
  223. package/build/esm/OsdkObjectPrimaryKeyType.js.map +1 -0
  224. package/build/esm/PageResult.d.ts +6 -0
  225. package/build/esm/PageResult.d.ts.map +1 -0
  226. package/build/esm/PageResult.js +17 -0
  227. package/build/esm/PageResult.js.map +1 -0
  228. package/build/esm/actions/ActionResults.d.ts +81 -0
  229. package/build/esm/actions/ActionResults.d.ts.map +1 -0
  230. package/build/esm/actions/ActionResults.js +17 -0
  231. package/build/esm/actions/ActionResults.js.map +1 -0
  232. package/build/esm/actions/ActionReturnTypeForOptions.d.ts +7 -0
  233. package/build/esm/actions/ActionReturnTypeForOptions.d.ts.map +1 -0
  234. package/build/esm/actions/ActionReturnTypeForOptions.js +17 -0
  235. package/build/esm/actions/ActionReturnTypeForOptions.js.map +1 -0
  236. package/build/esm/actions/Actions.d.ts +36 -0
  237. package/build/esm/actions/Actions.d.ts.map +1 -0
  238. package/build/esm/actions/Actions.js +17 -0
  239. package/build/esm/actions/Actions.js.map +1 -0
  240. package/build/esm/aggregate/AggregatableKeys.d.ts +16 -0
  241. package/build/esm/aggregate/AggregatableKeys.d.ts.map +1 -0
  242. package/build/esm/aggregate/AggregatableKeys.js +17 -0
  243. package/build/esm/aggregate/AggregatableKeys.js.map +1 -0
  244. package/build/esm/aggregate/AggregateOpts.d.ts +10 -0
  245. package/build/esm/aggregate/AggregateOpts.d.ts.map +1 -0
  246. package/build/esm/aggregate/AggregateOpts.js +17 -0
  247. package/build/esm/aggregate/AggregateOpts.js.map +1 -0
  248. package/build/esm/aggregate/AggregateOptsThatErrors.d.ts +17 -0
  249. package/build/esm/aggregate/AggregateOptsThatErrors.d.ts.map +1 -0
  250. package/build/esm/aggregate/AggregateOptsThatErrors.js +17 -0
  251. package/build/esm/aggregate/AggregateOptsThatErrors.js.map +1 -0
  252. package/build/esm/aggregate/AggregationResultsWithGroups.d.ts +17 -0
  253. package/build/esm/aggregate/AggregationResultsWithGroups.d.ts.map +1 -0
  254. package/build/esm/aggregate/AggregationResultsWithGroups.js +17 -0
  255. package/build/esm/aggregate/AggregationResultsWithGroups.js.map +1 -0
  256. package/build/esm/aggregate/AggregationResultsWithoutGroups.d.ts +13 -0
  257. package/build/esm/aggregate/AggregationResultsWithoutGroups.d.ts.map +1 -0
  258. package/build/esm/aggregate/AggregationResultsWithoutGroups.js +17 -0
  259. package/build/esm/aggregate/AggregationResultsWithoutGroups.js.map +1 -0
  260. package/build/esm/aggregate/AggregationsClause.d.ts +10 -0
  261. package/build/esm/aggregate/AggregationsClause.d.ts.map +1 -0
  262. package/build/esm/aggregate/AggregationsClause.js +17 -0
  263. package/build/esm/aggregate/AggregationsClause.js.map +1 -0
  264. package/build/esm/aggregate/AggregationsClause.test.d.ts +47 -0
  265. package/build/esm/aggregate/AggregationsClause.test.d.ts.map +1 -0
  266. package/build/esm/aggregate/AggregationsClause.test.js +20 -0
  267. package/build/esm/aggregate/AggregationsClause.test.js.map +1 -0
  268. package/build/esm/aggregate/AggregationsResults.d.ts +7 -0
  269. package/build/esm/aggregate/AggregationsResults.d.ts.map +1 -0
  270. package/build/esm/aggregate/AggregationsResults.js +17 -0
  271. package/build/esm/aggregate/AggregationsResults.js.map +1 -0
  272. package/build/esm/aggregate/WhereClause.d.ts +78 -0
  273. package/build/esm/aggregate/WhereClause.d.ts.map +1 -0
  274. package/build/esm/aggregate/WhereClause.js +40 -0
  275. package/build/esm/aggregate/WhereClause.js.map +1 -0
  276. package/build/esm/definitions/LinkDefinitions.d.ts +21 -0
  277. package/build/esm/definitions/LinkDefinitions.d.ts.map +1 -0
  278. package/build/esm/definitions/LinkDefinitions.js +17 -0
  279. package/build/esm/definitions/LinkDefinitions.js.map +1 -0
  280. package/build/esm/definitions/LinkDefinitions.test.d.ts +2 -0
  281. package/build/esm/definitions/LinkDefinitions.test.d.ts.map +1 -0
  282. package/build/esm/definitions/LinkDefinitions.test.js +25 -0
  283. package/build/esm/definitions/LinkDefinitions.test.js.map +1 -0
  284. package/build/esm/groupby/GroupByClause.d.ts +73 -0
  285. package/build/esm/groupby/GroupByClause.d.ts.map +1 -0
  286. package/build/esm/groupby/GroupByClause.js +22 -0
  287. package/build/esm/groupby/GroupByClause.js.map +1 -0
  288. package/build/esm/groupby/GroupByClause.test.d.ts +24 -0
  289. package/build/esm/groupby/GroupByClause.test.d.ts.map +1 -0
  290. package/build/esm/groupby/GroupByClause.test.js +20 -0
  291. package/build/esm/groupby/GroupByClause.test.js.map +1 -0
  292. package/build/esm/groupby/GroupByMapper.d.ts +14 -0
  293. package/build/esm/groupby/GroupByMapper.d.ts.map +1 -0
  294. package/build/esm/groupby/GroupByMapper.js +17 -0
  295. package/build/esm/groupby/GroupByMapper.js.map +1 -0
  296. package/build/esm/index.d.ts +38 -6
  297. package/build/esm/index.d.ts.map +1 -1
  298. package/build/esm/index.js +19 -2
  299. package/build/esm/index.js.map +1 -1
  300. package/build/esm/junk.test.js +22 -0
  301. package/build/esm/junk.test.js.map +1 -0
  302. package/build/esm/mapping/DataValueMapping.d.ts +71 -0
  303. package/build/esm/mapping/DataValueMapping.d.ts.map +1 -0
  304. package/build/esm/mapping/DataValueMapping.js +17 -0
  305. package/build/esm/mapping/DataValueMapping.js.map +1 -0
  306. package/build/esm/mapping/DurationMapping.d.ts +23 -0
  307. package/build/esm/mapping/DurationMapping.d.ts.map +1 -0
  308. package/build/esm/mapping/DurationMapping.js +38 -0
  309. package/build/esm/mapping/DurationMapping.js.map +1 -0
  310. package/build/esm/mapping/PropertyValueMapping.d.ts +47 -0
  311. package/build/esm/mapping/PropertyValueMapping.d.ts.map +1 -0
  312. package/build/esm/mapping/PropertyValueMapping.js +17 -0
  313. package/build/esm/mapping/PropertyValueMapping.js.map +1 -0
  314. package/build/esm/object/Attachment.d.ts +25 -0
  315. package/build/esm/object/Attachment.d.ts.map +1 -0
  316. package/build/esm/object/Attachment.js +17 -0
  317. package/build/esm/object/Attachment.js.map +1 -0
  318. package/build/esm/object/FetchPageArgs.d.ts +34 -0
  319. package/build/esm/object/FetchPageArgs.d.ts.map +1 -0
  320. package/build/esm/object/FetchPageArgs.js +17 -0
  321. package/build/esm/object/FetchPageArgs.js.map +1 -0
  322. package/build/esm/object/FetchPageResult.d.ts +15 -0
  323. package/build/esm/object/FetchPageResult.d.ts.map +1 -0
  324. package/build/esm/object/FetchPageResult.js +17 -0
  325. package/build/esm/object/FetchPageResult.js.map +1 -0
  326. package/build/esm/object/ObjectDefinitions.test.d.ts +2 -0
  327. package/build/esm/object/ObjectDefinitions.test.d.ts.map +1 -0
  328. package/build/esm/object/ObjectDefinitions.test.js +23 -0
  329. package/build/esm/object/ObjectDefinitions.test.js.map +1 -0
  330. package/build/esm/object/Result.d.ts +22 -0
  331. package/build/esm/object/Result.d.ts.map +1 -0
  332. package/build/esm/object/Result.js +32 -0
  333. package/build/esm/object/Result.js.map +1 -0
  334. package/build/esm/objectSet/BaseObjectSet.d.ts +7 -0
  335. package/build/esm/objectSet/BaseObjectSet.d.ts.map +1 -0
  336. package/build/esm/objectSet/BaseObjectSet.js +17 -0
  337. package/build/esm/objectSet/BaseObjectSet.js.map +1 -0
  338. package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts +18 -0
  339. package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.d.ts.map +1 -0
  340. package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.js +17 -0
  341. package/build/esm/objectSet/EXPERIMENTAL_ObjectSetListener.js.map +1 -0
  342. package/build/esm/objectSet/ObjectSet.d.ts +145 -0
  343. package/build/esm/objectSet/ObjectSet.d.ts.map +1 -0
  344. package/build/esm/objectSet/ObjectSet.js +17 -0
  345. package/build/esm/objectSet/ObjectSet.js.map +1 -0
  346. package/build/esm/ontology/ActionDefinition.d.ts +34 -30
  347. package/build/esm/ontology/ActionDefinition.d.ts.map +1 -1
  348. package/build/esm/ontology/ActionDefinition.js +17 -0
  349. package/build/esm/ontology/ActionDefinition.js.map +1 -0
  350. package/build/esm/ontology/InterfaceDefinition.d.ts +4 -4
  351. package/build/esm/ontology/InterfaceDefinition.d.ts.map +1 -1
  352. package/build/esm/ontology/InterfaceDefinition.js +17 -0
  353. package/build/esm/ontology/InterfaceDefinition.js.map +1 -0
  354. package/build/esm/ontology/ObjectOrInterface.d.ts +3 -5
  355. package/build/esm/ontology/ObjectOrInterface.d.ts.map +1 -1
  356. package/build/esm/ontology/ObjectOrInterface.js +17 -0
  357. package/build/esm/ontology/ObjectOrInterface.js.map +1 -0
  358. package/build/esm/ontology/ObjectTypeDefinition.d.ts +30 -21
  359. package/build/esm/ontology/ObjectTypeDefinition.d.ts.map +1 -1
  360. package/build/esm/ontology/ObjectTypeDefinition.js +17 -0
  361. package/build/esm/ontology/ObjectTypeDefinition.js.map +1 -0
  362. package/build/esm/ontology/OntologyMetadata.js +17 -0
  363. package/build/esm/ontology/OntologyMetadata.js.map +1 -0
  364. package/build/esm/ontology/PrimaryKeyTypes.js +17 -0
  365. package/build/esm/ontology/PrimaryKeyTypes.js.map +1 -0
  366. package/build/esm/ontology/QueryDefinition.d.ts +10 -9
  367. package/build/esm/ontology/QueryDefinition.d.ts.map +1 -1
  368. package/build/esm/ontology/QueryDefinition.js +17 -0
  369. package/build/esm/ontology/QueryDefinition.js.map +1 -0
  370. package/build/esm/ontology/VersionString.js +17 -0
  371. package/build/esm/ontology/VersionString.js.map +1 -0
  372. package/build/esm/ontology/WirePropertyTypes.js +17 -0
  373. package/build/esm/ontology/WirePropertyTypes.js.map +1 -0
  374. package/build/esm/public/unstable.d.ts +6 -0
  375. package/build/esm/public/unstable.d.ts.map +1 -0
  376. package/build/esm/public/unstable.js +19 -0
  377. package/build/esm/public/unstable.js.map +1 -0
  378. package/build/esm/queries/Queries.d.ts +41 -0
  379. package/build/esm/queries/Queries.d.ts.map +1 -0
  380. package/build/esm/queries/Queries.js +17 -0
  381. package/build/esm/queries/Queries.js.map +1 -0
  382. package/build/esm/timeseries/timeseries.d.ts +89 -0
  383. package/build/esm/timeseries/timeseries.d.ts.map +1 -0
  384. package/build/esm/timeseries/timeseries.js +22 -0
  385. package/build/esm/timeseries/timeseries.js.map +1 -0
  386. package/build/esm/util/LinkUtils.d.ts +5 -0
  387. package/build/esm/util/LinkUtils.d.ts.map +1 -0
  388. package/build/esm/util/LinkUtils.js +17 -0
  389. package/build/esm/util/LinkUtils.js.map +1 -0
  390. package/package.json +9 -7
  391. package/build/esm/ontology/index.d.ts +0 -7
  392. package/build/esm/ontology/index.d.ts.map +0 -1
@@ -0,0 +1,15 @@
1
+ import type { DefaultToFalse } from "../definitions/LinkDefinitions.js";
2
+ import type { ObjectOrInterfaceDefinition, PropertyKeys } from "../ontology/ObjectOrInterface.js";
3
+ import type { IsNever, Osdk } from "../OsdkObjectFrom.js";
4
+ import type { PageResult } from "../PageResult.js";
5
+ import type { NullabilityAdherence } from "./FetchPageArgs.js";
6
+ /** exposed for a test */
7
+ export type RespectNullability<S extends NullabilityAdherence> = S extends false ? false : true;
8
+ /** exposed for a test */
9
+ export type UnionIfFalse<S extends string, JUST_S_IF_TRUE extends boolean, E> = IsNever<S> extends true ? never : JUST_S_IF_TRUE extends true ? S : S | E;
10
+ /** exposed for a test */
11
+ export type UnionIfTrue<S extends string, UNION_IF_TRUE extends boolean, E extends string> = IsNever<S> extends true ? never : UNION_IF_TRUE extends true ? S | E : S;
12
+ export type FetchPageResult<Q extends ObjectOrInterfaceDefinition, L extends PropertyKeys<Q>, R extends boolean, S extends NullabilityAdherence> = PageResult<SingleOsdkResult<Q, L, R, S>>;
13
+ export type SingleOsdkResult<Q extends ObjectOrInterfaceDefinition, L extends PropertyKeys<Q>, R extends boolean, S extends NullabilityAdherence> = Osdk<Q, (IsAny<L> extends true ? PropertyKeys<Q> : L) | (S extends false ? "$notStrict" : never) | (DefaultToFalse<R> extends false ? never : "$rid")>;
14
+ export type IsAny<T> = unknown extends T ? [keyof T] extends [never] ? false : true : false;
15
+ //# sourceMappingURL=FetchPageResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FetchPageResult.d.ts","sourceRoot":"","sources":["../../../src/object/FetchPageResult.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,KAAK,EACV,2BAA2B,EAC3B,YAAY,EACb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC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AAG,YAAY,GAAG,KAAK,CAAC,GACxC,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC,CACrD,CAAC;AAEF,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,OAAO,SAAS,CAAC,GACpC,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,IAAI,GACxC,KAAK,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=FetchPageResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FetchPageResult.js","names":[],"sources":["FetchPageResult.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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ObjectDefinitions.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectDefinitions.test.d.ts","sourceRoot":"","sources":["../../../src/object/ObjectDefinitions.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright 2023 Palantir Technologies, Inc. All rights reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { describe, expectTypeOf, it } from "vitest";
17
+ describe("Object definitions", () => {
18
+ it("correctly upgrades attachment types at conversion time", () => {
19
+ expectTypeOf().toEqualTypeOf();
20
+ expectTypeOf().toEqualTypeOf();
21
+ });
22
+ });
23
+ //# sourceMappingURL=ObjectDefinitions.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectDefinitions.test.js","names":["describe","expectTypeOf","it","toEqualTypeOf"],"sources":["ObjectDefinitions.test.js"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { describe, expectTypeOf, it } from \"vitest\";\ndescribe(\"Object definitions\", () => {\n it(\"correctly upgrades attachment types at conversion time\", () => {\n const attachment = {\n type: \"attachment\",\n };\n const attachmentArray = {\n type: \"attachment\",\n multiplicity: true,\n };\n expectTypeOf().toEqualTypeOf();\n expectTypeOf()\n .toEqualTypeOf();\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;AACnDF,QAAQ,CAAC,oBAAoB,EAAE,MAAM;EACjCE,EAAE,CAAC,wDAAwD,EAAE,MAAM;IAQ/DD,YAAY,CAAC,CAAC,CAACE,aAAa,CAAC,CAAC;IAC9BF,YAAY,CAAC,CAAC,CACTE,aAAa,CAAC,CAAC;EACxB,CAAC,CAAC;AACN,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ export type ErrorResult = {
2
+ error: Error;
3
+ value?: never;
4
+ };
5
+ export type OkResult<V> = {
6
+ value: V;
7
+ error?: never;
8
+ };
9
+ export type Result<V> = OkResult<V> | ErrorResult;
10
+ /**
11
+ * Check if a result was successfully received
12
+ * @param a - result wrapped value
13
+ * @returns whether a result has a value in it
14
+ */
15
+ export declare function isOk<X>(a: Result<X>): a is OkResult<X>;
16
+ /**
17
+ * Check if a result contains an error value
18
+ * @param a Result wrapped value
19
+ * @returns whether a result has an error in it
20
+ */
21
+ export declare function isError<X>(a: Result<X>): a is ErrorResult;
22
+ //# sourceMappingURL=Result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Result.d.ts","sourceRoot":"","sources":["../../../src/object/Result.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAC1D,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;IAAE,KAAK,EAAE,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AACtD,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC;AAElD;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,QAAQ,CAAC,CAAC,CAAC,CAEtD;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,WAAW,CAEzD"}
@@ -0,0 +1,32 @@
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
+ /**
17
+ * Check if a result was successfully received
18
+ * @param a - result wrapped value
19
+ * @returns whether a result has a value in it
20
+ */
21
+ export function isOk(a) {
22
+ return "value" in a;
23
+ }
24
+ /**
25
+ * Check if a result contains an error value
26
+ * @param a Result wrapped value
27
+ * @returns whether a result has an error in it
28
+ */
29
+ export function isError(a) {
30
+ return "error" in a;
31
+ }
32
+ //# sourceMappingURL=Result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Result.js","names":["isOk","a","isError"],"sources":["Result.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 */\n/**\n * Check if a result was successfully received\n * @param a - result wrapped value\n * @returns whether a result has a value in it\n */\nexport function isOk(a) {\n return (\"value\" in a);\n}\n/**\n * Check if a result contains an error value\n * @param a Result wrapped value\n * @returns whether a result has an error in it\n */\nexport function isError(a) {\n return (\"error\" in a);\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASA,IAAIA,CAACC,CAAC,EAAE;EACpB,OAAQ,OAAO,IAAIA,CAAC;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,OAAOA,CAACD,CAAC,EAAE;EACvB,OAAQ,OAAO,IAAIA,CAAC;AACxB","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ import type { ObjectOrInterfaceDefinition } from "../ontology/ObjectOrInterface.js";
2
+ declare const ObjectSetType: unique symbol;
3
+ export interface BaseObjectSet<Q extends ObjectOrInterfaceDefinition> {
4
+ readonly [ObjectSetType]: Q;
5
+ }
6
+ export {};
7
+ //# sourceMappingURL=BaseObjectSet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseObjectSet.d.ts","sourceRoot":"","sources":["../../../src/objectSet/BaseObjectSet.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAEpF,OAAO,CAAC,MAAM,aAAa,EAAE,OAAO,MAAM,CAAC;AAG3C,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,2BAA2B;IAClE,QAAQ,CAAC,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;CAC7B"}
@@ -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=BaseObjectSet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseObjectSet.js","names":[],"sources":["BaseObjectSet.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,18 @@
1
+ import type { ObjectOrInterfaceDefinition } from "../ontology/ObjectOrInterface.js";
2
+ import type { OsdkObjectOrInterfaceFrom } from "../OsdkObjectFrom.js";
3
+ export interface EXPERIMENTAL_ObjectSetListener<O extends ObjectOrInterfaceDefinition> {
4
+ /**
5
+ * Specific objects have changed and can be immediately updated
6
+ */
7
+ onChange?: (objects: Array<OsdkObjectOrInterfaceFrom<O>>) => void;
8
+ /**
9
+ * The ObjectSet has become outdated and should be re-fetched in its entirety.
10
+ * This is also sent when the subscription is first initialized.
11
+ */
12
+ onOutOfDate?: () => void;
13
+ /**
14
+ * There was a fatal error with the subscription process
15
+ */
16
+ onError?: (error: unknown) => void;
17
+ }
18
+ //# sourceMappingURL=EXPERIMENTAL_ObjectSetListener.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EXPERIMENTAL_ObjectSetListener.d.ts","sourceRoot":"","sources":["../../../src/objectSet/EXPERIMENTAL_ObjectSetListener.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEtE,MAAM,WAAW,8BAA8B,CAC7C,CAAC,SAAS,2BAA2B;IAErC;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAElE;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACpC"}
@@ -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=EXPERIMENTAL_ObjectSetListener.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EXPERIMENTAL_ObjectSetListener.js","names":[],"sources":["EXPERIMENTAL_ObjectSetListener.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,145 @@
1
+ import type { AggregateOpts } from "../aggregate/AggregateOpts.js";
2
+ import type { AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy } from "../aggregate/AggregateOptsThatErrors.js";
3
+ import type { AggregationsResults } from "../aggregate/AggregationsResults.js";
4
+ import type { WhereClause } from "../aggregate/WhereClause.js";
5
+ import type { AsyncIterArgs, Augments, FetchPageArgs, NullabilityAdherence, NullabilityAdherenceDefault, SelectArg } from "../object/FetchPageArgs.js";
6
+ import type { FetchPageResult, SingleOsdkResult } from "../object/FetchPageResult.js";
7
+ import type { Result } from "../object/Result.js";
8
+ import type { InterfaceDefinition } from "../ontology/InterfaceDefinition.js";
9
+ import type { ObjectOrInterfaceDefinition, PropertyKeys } from "../ontology/ObjectOrInterface.js";
10
+ import type { CompileTimeMetadata, ObjectTypeDefinition } from "../ontology/ObjectTypeDefinition.js";
11
+ import type { PrimaryKeyType } from "../OsdkBase.js";
12
+ import type { __EXPERIMENTAL__NOT_SUPPORTED_YET_subscribe, EXPERIMENTAL_ObjectSetListener } from "../public/unstable.js";
13
+ import type { LinkedType, LinkNames } from "../util/LinkUtils.js";
14
+ import type { BaseObjectSet } from "./BaseObjectSet.js";
15
+ export interface MinimalObjectSet<Q extends ObjectOrInterfaceDefinition> extends BaseObjectSet<Q> {
16
+ /**
17
+ * Gets a page of objects of this type, with a result wrapper
18
+ * @param args - Args to specify next page token and page size, if applicable
19
+ * @example
20
+ * const myObjs = await objectSet.fetchPage({
21
+ $pageSize: 10,
22
+ $nextPageToken: "nextPage"
23
+ });
24
+ const myObjsResult = myObjs.data;
25
+
26
+ * @returns a page of objects
27
+ */
28
+ readonly fetchPage: <L extends PropertyKeys<Q>, R extends boolean, const A extends Augments, S extends NullabilityAdherence = NullabilityAdherenceDefault>(args?: FetchPageArgs<Q, L, R, A, S>) => Promise<FetchPageResult<Q, L, R, S>>;
29
+ /**
30
+ * Gets a page of objects of this type, with a result wrapper
31
+ * @param args - Args to specify next page token and page size, if applicable
32
+ * @example
33
+ * const myObjs = await objectSet.fetchPage({
34
+ $pageSize: 10,
35
+ $nextPageToken: "nextPage"
36
+ });
37
+
38
+ if(isOk(myObjs)){
39
+ const myObjsResult = myObjs.value.data;
40
+ }
41
+ * @returns a page of objects, wrapped in a result wrapper
42
+ */
43
+ readonly fetchPageWithErrors: <L extends PropertyKeys<Q>, R extends boolean, const A extends Augments, S extends NullabilityAdherence = NullabilityAdherenceDefault>(args?: FetchPageArgs<Q, L, R, A, S>) => Promise<Result<FetchPageResult<Q, L, R, S>>>;
44
+ /**
45
+ * Allows you to filter an object set with a given clause
46
+ * @param clause - Takes a filter clause
47
+ * @example
48
+ * await client(Office).where({
49
+ meetingRooms: { $contains: "Grand Central" },
50
+ meetingRoomCapacities: { $contains: 30 },
51
+ });
52
+ * @returns an objectSet
53
+ */
54
+ readonly where: (clause: WhereClause<Q>) => this;
55
+ /**
56
+ * Returns an async iterator to load all objects of this type
57
+ * @example
58
+ * for await (const obj of myObjectSet.asyncIter()){
59
+ * // Handle obj
60
+ * }
61
+ * @returns an async iterator to load all objects
62
+ */
63
+ readonly asyncIter: <L extends PropertyKeys<Q>, R extends boolean, const A extends Augments, S extends NullabilityAdherence = NullabilityAdherenceDefault>(args?: AsyncIterArgs<Q, L, R, A, S>) => AsyncIterableIterator<SingleOsdkResult<Q, L, R, S>>;
64
+ }
65
+ export interface InterfaceObjectSet<Q extends InterfaceDefinition<any, any>> extends MinimalObjectSet<Q> {
66
+ }
67
+ export interface ObjectSet<Q extends ObjectOrInterfaceDefinition = any, _UNUSED = any> extends MinimalObjectSet<Q> {
68
+ /**
69
+ * Aggregate on a field in an object type
70
+ * @param req - an aggregation request where you can select fields and choose how to aggregate, e.g., max, min, avg, and also choose
71
+ * whether or not you order your results. You can also specify a groupBy field to group your aggregations
72
+ * @example
73
+ * const testAggregateCountWithGroups = await client(BoundariesUsState)
74
+ .aggregate({
75
+ $select: {
76
+ $count: "unordered",
77
+ "latitude:max": "unordered",
78
+ "latitude:min": "unordered",
79
+ "latitude:avg": "unordered",
80
+ },
81
+ $groupBy: {
82
+ usState: "exact",
83
+ longitude: {
84
+ $fixedWidth: 10,
85
+ },
86
+ },
87
+ });
88
+
89
+ * @returns aggregation results, sorted in the groups based on the groupBy clause (if applicable)
90
+ */
91
+ readonly aggregate: <AO extends AggregateOpts<Q>>(req: AggregateOptsThatErrorsAndDisallowsOrderingWithMultipleGroupBy<Q, AO>) => Promise<AggregationsResults<Q, AO>>;
92
+ /**
93
+ * Unions object sets together
94
+ * @param objectSets - objectSets you want to union with
95
+ * @example
96
+ * const unionObjectSet = complexFilteredEmployeeObjectSet.union(
97
+ simpleFilteredEmployeeObjectSet,
98
+ );
99
+ * @returns the unioned object set
100
+ */
101
+ readonly union: (...objectSets: ReadonlyArray<CompileTimeMetadata<Q>["objectSet"]>) => this;
102
+ /**
103
+ * Computes the intersection of object sets
104
+ * @param objectSets - objectSets you want to intersect with
105
+ * @example
106
+ * const intersectedObjectSet = complexFilteredEmployeeObjectSet.intersect(
107
+ simpleFilteredEmployeeObjectSet,
108
+ );
109
+ * @returns the intersected object set
110
+ */
111
+ readonly intersect: (...objectSets: ReadonlyArray<CompileTimeMetadata<Q>["objectSet"]>) => this;
112
+ /**
113
+ * Computes the subtraction of object sets
114
+ * @param objectSets - objectSets you want to subtract from
115
+ * @example
116
+ * const subtractObjectSet = complexFilteredEmployeeObjectSet.subtract(
117
+ simpleFilteredEmployeeObjectSet,
118
+ );
119
+ * @returns the subtract object set
120
+ */
121
+ readonly subtract: (...objectSets: ReadonlyArray<CompileTimeMetadata<Q>["objectSet"]>) => this;
122
+ /**
123
+ * Pivots the object set over to all its linked objects of the specified type
124
+ * @param type - The linked object type you want to pivot to
125
+ * @returns an object set of the specified linked type
126
+ */
127
+ readonly pivotTo: <L extends LinkNames<Q>>(type: L) => CompileTimeMetadata<LinkedType<Q, L>>["objectSet"];
128
+ /**
129
+ * Fetches one object with the specified primary key, without a result wrapper
130
+ */
131
+ readonly fetchOne: Q extends ObjectTypeDefinition<any, any> ? <const L extends PropertyKeys<Q>, const R extends boolean, const S extends false | "throw" = NullabilityAdherenceDefault>(primaryKey: PrimaryKeyType<Q>, options?: SelectArg<Q, L, R, S>) => Promise<SingleOsdkResult<Q, L, R, S>> : never;
132
+ /**
133
+ * Fetches one object with the specified primary key, with a result wrapper
134
+ */
135
+ readonly fetchOneWithErrors: Q extends ObjectTypeDefinition<any, any> ? <L extends PropertyKeys<Q>, R extends boolean, S extends false | "throw" = NullabilityAdherenceDefault>(primaryKey: PrimaryKeyType<Q>, options?: SelectArg<Q, L, R, S>) => Promise<Result<SingleOsdkResult<Q, L, R, S>>> : never;
136
+ /**
137
+ * WARNING. THIS METHOD IS EXPERIMENTAL AND NOT SUPPORTED YET.
138
+ *
139
+ * It may change at any time and does not follow semantic versioning. Use at your own risk.
140
+ *
141
+ * @alpha
142
+ */
143
+ readonly [__EXPERIMENTAL__NOT_SUPPORTED_YET_subscribe]: (listener: EXPERIMENTAL_ObjectSetListener<Q>) => () => unknown;
144
+ }
145
+ //# sourceMappingURL=ObjectSet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectSet.d.ts","sourceRoot":"","sources":["../../../src/objectSet/ObjectSet.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,8DAA8D,EAAE,MAAM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B,OAAO,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAC5B,OAAO,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,GACxC,KAAK,CAAC;IAEV;;OAEG;IACH,QAAQ,CAAC,kBAAkB,EAAE,CAAC,SAAS,oBAAoB,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,CACpE,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,EACzB,CAAC,SAAS,OAAO,EACjB,CAAC,SAAS,KAAK,GAAG,OAAO,GAAG,2BAA2B,EAEvD,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC,EAC7B,OAAO,CAAC,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,KAC5B,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAChD,KAAK,CAAC;IAEV;;;;;;OAMG;IACH,QAAQ,CAAC,CAAC,2CAA2C,CAAC,EAAE,CACtD,QAAQ,EAAE,8BAA8B,CAAC,CAAC,CAAC,KACxC,MAAM,OAAO,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=ObjectSet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ObjectSet.js","names":[],"sources":["ObjectSet.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,42 +1,46 @@
1
1
  import type { OsdkMetadata } from "../OsdkMetadata.js";
2
- import type { MinObjectDef } from "./ObjectTypeDefinition.js";
3
- export interface ActionDefinition<A extends string, K extends string> {
2
+ import type { ObjectTypeDefinition, ReleaseStatus } from "./ObjectTypeDefinition.js";
3
+ export interface ActionMetadata {
4
4
  type: "action";
5
- apiName: A;
5
+ apiName: string;
6
6
  description?: string;
7
7
  displayName?: string;
8
- parameters: Record<any, ActionParameterDefinition<K, any>>;
9
- modifiedEntities?: Partial<Record<K, ActionModifiedEntity>>;
8
+ parameters: Record<any, ActionMetadata.Parameter<any>>;
9
+ modifiedEntities?: Partial<Record<any, {
10
+ created: boolean;
11
+ modified: boolean;
12
+ }>>;
13
+ status: ReleaseStatus;
14
+ rid: string;
10
15
  }
11
- export interface ActionDefMetadata<A extends string, K extends string, T> extends ActionDefinition<A, K> {
16
+ export declare namespace ActionMetadata {
17
+ interface Parameter<T_Target extends ObjectTypeDefinition<any> = never> {
18
+ type: ValidBaseActionParameterTypes | DataType.Object<any> | DataType.ObjectSet<any>;
19
+ description?: string;
20
+ multiplicity?: boolean;
21
+ nullable?: boolean;
22
+ }
23
+ namespace DataType {
24
+ interface Object<T_Target extends ObjectTypeDefinition<any> = never> {
25
+ __OsdkTargetType?: T_Target;
26
+ type: "object";
27
+ object: T_Target["apiName"];
28
+ }
29
+ interface ObjectSet<T_Target extends ObjectTypeDefinition<any> = never> {
30
+ __OsdkTargetType?: T_Target;
31
+ type: "objectSet";
32
+ objectSet: T_Target["apiName"];
33
+ }
34
+ }
35
+ }
36
+ export interface ActionCompileTimeMetadata<T> {
12
37
  signatures: T;
13
38
  }
14
- export interface MinActionDef<A extends string, K extends string, T_signatures = never> {
39
+ export interface ActionDefinition<T_signatures = never> {
15
40
  type: "action";
16
- apiName: A;
41
+ apiName: string;
17
42
  osdkMetadata?: OsdkMetadata;
18
- __DefinitionMetadata?: ActionDefMetadata<A, K, T_signatures>;
19
- }
20
- export interface ActionModifiedEntity {
21
- created: boolean;
22
- modified: boolean;
43
+ __DefinitionMetadata?: ActionCompileTimeMetadata<T_signatures> & ActionMetadata;
23
44
  }
24
45
  export type ValidBaseActionParameterTypes = "boolean" | "string" | "integer" | "long" | "double" | "datetime" | "timestamp" | "attachment" | "marking";
25
- export interface ObjectActionDataType<K extends string, T_Target extends MinObjectDef<any> = never> {
26
- __OsdkTargetType?: T_Target;
27
- type: "object";
28
- object: K;
29
- }
30
- export interface ObjectSetActionDataType<K extends string, T_Target extends MinObjectDef<any> = never> {
31
- __OsdkTargetType?: T_Target;
32
- type: "objectSet";
33
- objectSet: K;
34
- }
35
- export type ValidActionParameterTypes<K extends string = never, T_Target extends MinObjectDef<any> = never> = ValidBaseActionParameterTypes | ObjectActionDataType<K, T_Target> | ObjectSetActionDataType<K, T_Target>;
36
- export interface ActionParameterDefinition<K extends string = never, T_Target extends MinObjectDef<any> = never> {
37
- type: ValidActionParameterTypes<K, T_Target>;
38
- description?: string;
39
- multiplicity?: boolean;
40
- nullable?: boolean;
41
- }
42
46
  //# sourceMappingURL=ActionDefinition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActionDefinition.d.ts","sourceRoot":"","sources":["../../../src/ontology/ActionDefinition.ts"],"names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MAAM,WAAW,gBAAgB,CAC/B,YAAY,GAAG,KAAK;IAEpB,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,oBAAoB,CAAC,EACjB,yBAAyB,CAAC,YAAY,CAAC,GACvC,cAAc,CAAC;CACpB;AAED,MAAM,MAAM,6BAA6B,GACrC,SAAS,GACT,QAAQ,GACR,SAAS,GACT,MAAM,GACN,QAAQ,GACR,UAAU,GACV,WAAW,GACX,YAAY,GACZ,SAAS,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=ActionDefinition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionDefinition.js","names":[],"sources":["ActionDefinition.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,12 +1,12 @@
1
1
  import type { OsdkMetadata } from "../OsdkMetadata.js";
2
- import type { ObjectInterfaceBaseDefinition } from "./ObjectTypeDefinition.js";
3
- export interface InterfaceDefinition<K extends string, N = unknown> extends ObjectInterfaceBaseDefinition<K, N> {
2
+ import type { ObjectInterfaceBaseDefinition, ObjectInterfaceCompileDefinition } from "./ObjectTypeDefinition.js";
3
+ export interface InterfaceMetadata<K extends string, N = unknown> extends ObjectInterfaceBaseDefinition<K, N> {
4
4
  type: "interface";
5
5
  }
6
- export interface MinInterfaceDef<K extends string, N = unknown> {
6
+ export interface InterfaceDefinition<K extends string, N = unknown> {
7
7
  type: "interface";
8
8
  apiName: K;
9
9
  osdkMetadata?: OsdkMetadata;
10
- __DefinitionMetadata?: InterfaceDefinition<K, N>;
10
+ __DefinitionMetadata?: InterfaceMetadata<K, N> & ObjectInterfaceCompileDefinition;
11
11
  }
12
12
  //# sourceMappingURL=InterfaceDefinition.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InterfaceDefinition.d.ts","sourceRoot":"","sources":["../../../src/ontology/InterfaceDefinition.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,2BAA2B,CAAC;AAE/E,MAAM,WAAW,mBAAmB,CAClC,CAAC,SAAS,MAAM,EAChB,CAAC,GAAG,OAAO,CACX,SAAQ,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC;IAC3C,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,GAAG,OAAO;IAC5D,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,CAAC,CAAC;IACX,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,oBAAoB,CAAC,EAAE,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CAClD"}
1
+ {"version":3,"file":"InterfaceDefinition.d.ts","sourceRoot":"","sources":["../../../src/ontology/InterfaceDefinition.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EACV,6BAA6B,EAC7B,gCAAgC,EACjC,MAAM,2BAA2B,CAAC;AAEnC,MAAM,WAAW,iBAAiB,CAChC,CAAC,SAAS,MAAM,EAChB,CAAC,GAAG,OAAO,CACX,SAAQ,6BAA6B,CAAC,CAAC,EAAE,CAAC,CAAC;IAC3C,IAAI,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,GAAG,OAAO;IAChE,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,CAAC,CAAC;IACX,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,oBAAoB,CAAC,EACjB,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,GACvB,gCAAgC,CAAC;CACtC"}
@@ -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=InterfaceDefinition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InterfaceDefinition.js","names":[],"sources":["InterfaceDefinition.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,7 +1,5 @@
1
- import type { MinInterfaceDef } from "./InterfaceDefinition.js";
2
- import type { MinObjectDef } from "./ObjectTypeDefinition.js";
3
- export type ObjectOrInterfaceDefinition<K extends string = any, L extends string = any> = MinObjectDef<K, L> | MinInterfaceDef<K, L>;
4
- /** @deprecated use `PropertyKeys` */
5
- export type ObjectOrInterfacePropertyKeysFrom2<O extends ObjectOrInterfaceDefinition> = keyof NonNullable<O["__DefinitionMetadata"]>["properties"] & string;
1
+ import type { InterfaceDefinition } from "./InterfaceDefinition.js";
2
+ import type { ObjectTypeDefinition } from "./ObjectTypeDefinition.js";
3
+ export type ObjectOrInterfaceDefinition<K extends string = any, L extends string = any> = ObjectTypeDefinition<K, L> | InterfaceDefinition<K, L>;
6
4
  export type PropertyKeys<O extends ObjectOrInterfaceDefinition> = keyof NonNullable<O["__DefinitionMetadata"]>["properties"] & string;
7
5
  //# sourceMappingURL=ObjectOrInterface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ObjectOrInterface.d.ts","sourceRoot":"","sources":["../../../src/ontology/ObjectOrInterface.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,MAAM,MAAM,2BAA2B,CACrC,CAAC,SAAS,MAAM,GAAG,GAAG,EACtB,CAAC,SAAS,MAAM,GAAG,GAAG,IAEpB,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,GAClB,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAE1B,qCAAqC;AACrC,MAAM,MAAM,kCAAkC,CAC5C,CAAC,SAAS,2BAA2B,IACnC,MAAM,WAAW,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,MAAM,CAAC;AAExE,MAAM,MAAM,YAAY,CACtB,CAAC,SAAS,2BAA2B,IACnC,MAAM,WAAW,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"ObjectOrInterface.d.ts","sourceRoot":"","sources":["../../../src/ontology/ObjectOrInterface.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,MAAM,MAAM,2BAA2B,CACrC,CAAC,SAAS,MAAM,GAAG,GAAG,EACtB,CAAC,SAAS,MAAM,GAAG,GAAG,IAEpB,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC,GAC1B,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAE9B,MAAM,MAAM,YAAY,CACtB,CAAC,SAAS,2BAA2B,IACnC,MAAM,WAAW,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,MAAM,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=ObjectOrInterface.js.map