@osdk/faux 0.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (401) hide show
  1. package/CHANGELOG.md +1047 -0
  2. package/build/browser/BaseError.js +21 -0
  3. package/build/browser/BaseError.js.map +1 -0
  4. package/build/browser/FauxFoundry/BaseOsdkObjectType.js +2 -0
  5. package/build/browser/FauxFoundry/BaseOsdkObjectType.js.map +1 -0
  6. package/build/browser/FauxFoundry/BaseServerObject.js +30 -0
  7. package/build/browser/FauxFoundry/BaseServerObject.js.map +1 -0
  8. package/build/browser/FauxFoundry/FauxActionImpl.js +2 -0
  9. package/build/browser/FauxFoundry/FauxActionImpl.js.map +1 -0
  10. package/build/browser/FauxFoundry/FauxAttachmentStore.js +60 -0
  11. package/build/browser/FauxFoundry/FauxAttachmentStore.js.map +1 -0
  12. package/build/browser/FauxFoundry/FauxDataStore.js +470 -0
  13. package/build/browser/FauxFoundry/FauxDataStore.js.map +1 -0
  14. package/build/browser/FauxFoundry/FauxDataStore.test.js +190 -0
  15. package/build/browser/FauxFoundry/FauxDataStore.test.js.map +1 -0
  16. package/build/browser/FauxFoundry/FauxDataStoreBatch.js +125 -0
  17. package/build/browser/FauxFoundry/FauxDataStoreBatch.js.map +1 -0
  18. package/build/browser/FauxFoundry/FauxFoundry.js +87 -0
  19. package/build/browser/FauxFoundry/FauxFoundry.js.map +1 -0
  20. package/build/browser/FauxFoundry/FauxOntology.js +228 -0
  21. package/build/browser/FauxFoundry/FauxOntology.js.map +1 -0
  22. package/build/browser/FauxFoundry/FauxQueryImpl.js +2 -0
  23. package/build/browser/FauxFoundry/FauxQueryImpl.js.map +1 -0
  24. package/build/browser/FauxFoundry/ObjectLocator.js +29 -0
  25. package/build/browser/FauxFoundry/ObjectLocator.js.map +1 -0
  26. package/build/browser/FauxFoundry/filterObjects.js +122 -0
  27. package/build/browser/FauxFoundry/filterObjects.js.map +1 -0
  28. package/build/browser/FauxFoundry/filterTimeSeriesData.js +70 -0
  29. package/build/browser/FauxFoundry/filterTimeSeriesData.js.map +1 -0
  30. package/build/browser/FauxFoundry/filterTimeSeriesData.test.js +116 -0
  31. package/build/browser/FauxFoundry/filterTimeSeriesData.test.js.map +1 -0
  32. package/build/browser/FauxFoundry/getObjectsFromSet.js +217 -0
  33. package/build/browser/FauxFoundry/getObjectsFromSet.js.map +1 -0
  34. package/build/browser/FauxFoundry/typeHelpers/ActionTypeBuilder.js +64 -0
  35. package/build/browser/FauxFoundry/typeHelpers/ActionTypeBuilder.js.map +1 -0
  36. package/build/browser/FauxFoundry/typeHelpers/JustProps.js +2 -0
  37. package/build/browser/FauxFoundry/typeHelpers/JustProps.js.map +1 -0
  38. package/build/browser/FauxFoundry/typeHelpers/TH_ActionDefinition.js +2 -0
  39. package/build/browser/FauxFoundry/typeHelpers/TH_ActionDefinition.js.map +1 -0
  40. package/build/browser/FauxFoundry/typeHelpers/TH_ActionParameterV2.js +25 -0
  41. package/build/browser/FauxFoundry/typeHelpers/TH_ActionParameterV2.js.map +1 -0
  42. package/build/browser/FauxFoundry/typeHelpers/TH_ActionTypeV2.js +35 -0
  43. package/build/browser/FauxFoundry/typeHelpers/TH_ActionTypeV2.js.map +1 -0
  44. package/build/browser/FauxFoundry/typeHelpers/TH_ApplyActionRequestV2.js +2 -0
  45. package/build/browser/FauxFoundry/typeHelpers/TH_ApplyActionRequestV2.js.map +1 -0
  46. package/build/browser/FauxFoundry/typeHelpers/TH_ObjectTypeFullMetadata.js +2 -0
  47. package/build/browser/FauxFoundry/typeHelpers/TH_ObjectTypeFullMetadata.js.map +1 -0
  48. package/build/browser/FauxFoundry/typeHelpers/ToObjectTypeDefinition.js +2 -0
  49. package/build/browser/FauxFoundry/typeHelpers/ToObjectTypeDefinition.js.map +1 -0
  50. package/build/browser/FauxFoundry/typeHelpers/index.js +20 -0
  51. package/build/browser/FauxFoundry/typeHelpers/index.js.map +1 -0
  52. package/build/browser/FauxFoundry/validateAction.js +245 -0
  53. package/build/browser/FauxFoundry/validateAction.js.map +1 -0
  54. package/build/browser/defaultOntologyForConjure.js +25 -0
  55. package/build/browser/defaultOntologyForConjure.js.map +1 -0
  56. package/build/browser/defaultOntologyMetadata.js +23 -0
  57. package/build/browser/defaultOntologyMetadata.js.map +1 -0
  58. package/build/browser/errors.js +134 -0
  59. package/build/browser/errors.js.map +1 -0
  60. package/build/browser/filterObjects.js +86 -0
  61. package/build/browser/filterObjects.js.map +1 -0
  62. package/build/browser/handlers/authHandlerMiddleware.js +41 -0
  63. package/build/browser/handlers/authHandlerMiddleware.js.map +1 -0
  64. package/build/browser/handlers/createActionHandlers.js +49 -0
  65. package/build/browser/handlers/createActionHandlers.js.map +1 -0
  66. package/build/browser/handlers/createAttachmentHandlers.js +88 -0
  67. package/build/browser/handlers/createAttachmentHandlers.js.map +1 -0
  68. package/build/browser/handlers/createFauxFoundryHandlers.js +29 -0
  69. package/build/browser/handlers/createFauxFoundryHandlers.js.map +1 -0
  70. package/build/browser/handlers/createLoadObjectsHandlers.js +91 -0
  71. package/build/browser/handlers/createLoadObjectsHandlers.js.map +1 -0
  72. package/build/browser/handlers/createMediaRefHandlers.js +70 -0
  73. package/build/browser/handlers/createMediaRefHandlers.js.map +1 -0
  74. package/build/browser/handlers/createMultipassServerHandlers.js +67 -0
  75. package/build/browser/handlers/createMultipassServerHandlers.js.map +1 -0
  76. package/build/browser/handlers/createObjectSetHandlers.js +50 -0
  77. package/build/browser/handlers/createObjectSetHandlers.js.map +1 -0
  78. package/build/browser/handlers/createOntologyHandlers.js +122 -0
  79. package/build/browser/handlers/createOntologyHandlers.js.map +1 -0
  80. package/build/browser/handlers/createQueryHandlers.js +38 -0
  81. package/build/browser/handlers/createQueryHandlers.js.map +1 -0
  82. package/build/browser/handlers/createTimeseriesAndGeotimeHandlers.js +95 -0
  83. package/build/browser/handlers/createTimeseriesAndGeotimeHandlers.js.map +1 -0
  84. package/build/browser/handlers/util/getPaginationParams.js +33 -0
  85. package/build/browser/handlers/util/getPaginationParams.js.map +1 -0
  86. package/build/browser/handlers/util/handleOpenApiCall.js +85 -0
  87. package/build/browser/handlers/util/handleOpenApiCall.js.map +1 -0
  88. package/build/browser/handlers/util/loadAll.js +24 -0
  89. package/build/browser/handlers/util/loadAll.js.map +1 -0
  90. package/build/browser/handlers/util/pageThroughResponseSearchParams.js +39 -0
  91. package/build/browser/handlers/util/pageThroughResponseSearchParams.js.map +1 -0
  92. package/build/browser/handlers/util/requireParam.js +29 -0
  93. package/build/browser/handlers/util/requireParam.js.map +1 -0
  94. package/build/browser/handlers/util/requireSearchParams.js +29 -0
  95. package/build/browser/handlers/util/requireSearchParams.js.map +1 -0
  96. package/build/browser/index.js +29 -0
  97. package/build/browser/index.js.map +1 -0
  98. package/build/browser/mock/OntologiesV2/ActionTypesV2.js +21 -0
  99. package/build/browser/mock/OntologiesV2/ActionTypesV2.js.map +1 -0
  100. package/build/browser/mock/OntologiesV2/Actions.js +21 -0
  101. package/build/browser/mock/OntologiesV2/Actions.js.map +1 -0
  102. package/build/browser/mock/OntologiesV2/AttachmentPropertiesV2.js +21 -0
  103. package/build/browser/mock/OntologiesV2/AttachmentPropertiesV2.js.map +1 -0
  104. package/build/browser/mock/OntologiesV2/Attachments.js +22 -0
  105. package/build/browser/mock/OntologiesV2/Attachments.js.map +1 -0
  106. package/build/browser/mock/OntologiesV2/LinkedObjectsV2.js +21 -0
  107. package/build/browser/mock/OntologiesV2/LinkedObjectsV2.js.map +1 -0
  108. package/build/browser/mock/OntologiesV2/MediaReferenceProperties.js +22 -0
  109. package/build/browser/mock/OntologiesV2/MediaReferenceProperties.js.map +1 -0
  110. package/build/browser/mock/OntologiesV2/ObjectTypesV2.js +24 -0
  111. package/build/browser/mock/OntologiesV2/ObjectTypesV2.js.map +1 -0
  112. package/build/browser/mock/OntologiesV2/OntologiesV2.js +27 -0
  113. package/build/browser/mock/OntologiesV2/OntologiesV2.js.map +1 -0
  114. package/build/browser/mock/OntologiesV2/OntologyInterfaces.js +21 -0
  115. package/build/browser/mock/OntologiesV2/OntologyInterfaces.js.map +1 -0
  116. package/build/browser/mock/OntologiesV2/OntologyObjectSets.js +22 -0
  117. package/build/browser/mock/OntologiesV2/OntologyObjectSets.js.map +1 -0
  118. package/build/browser/mock/OntologiesV2/OntologyObjectsV2.js +21 -0
  119. package/build/browser/mock/OntologiesV2/OntologyObjectsV2.js.map +1 -0
  120. package/build/browser/mock/OntologiesV2/Queries.js +20 -0
  121. package/build/browser/mock/OntologiesV2/Queries.js.map +1 -0
  122. package/build/browser/mock/OntologiesV2/QueryTypes.js +21 -0
  123. package/build/browser/mock/OntologiesV2/QueryTypes.js.map +1 -0
  124. package/build/browser/mock/OntologiesV2/TimeSeriesPropertiesV2.js +22 -0
  125. package/build/browser/mock/OntologiesV2/TimeSeriesPropertiesV2.js.map +1 -0
  126. package/build/browser/mock/OntologiesV2/TimeSeriesValueBankProperties.js +21 -0
  127. package/build/browser/mock/OntologiesV2/TimeSeriesValueBankProperties.js.map +1 -0
  128. package/build/browser/mock/OntologiesV2/index.js +32 -0
  129. package/build/browser/mock/OntologiesV2/index.js.map +1 -0
  130. package/build/browser/mock/index.js +18 -0
  131. package/build/browser/mock/index.js.map +1 -0
  132. package/build/browser/withoutRid.js +24 -0
  133. package/build/browser/withoutRid.js.map +1 -0
  134. package/build/cjs/index.cjs +2983 -0
  135. package/build/cjs/index.cjs.map +1 -0
  136. package/build/cjs/index.d.cts +562 -0
  137. package/build/esm/BaseError.js +21 -0
  138. package/build/esm/BaseError.js.map +1 -0
  139. package/build/esm/FauxFoundry/BaseOsdkObjectType.js +2 -0
  140. package/build/esm/FauxFoundry/BaseOsdkObjectType.js.map +1 -0
  141. package/build/esm/FauxFoundry/BaseServerObject.js +30 -0
  142. package/build/esm/FauxFoundry/BaseServerObject.js.map +1 -0
  143. package/build/esm/FauxFoundry/FauxActionImpl.js +2 -0
  144. package/build/esm/FauxFoundry/FauxActionImpl.js.map +1 -0
  145. package/build/esm/FauxFoundry/FauxAttachmentStore.js +60 -0
  146. package/build/esm/FauxFoundry/FauxAttachmentStore.js.map +1 -0
  147. package/build/esm/FauxFoundry/FauxDataStore.js +470 -0
  148. package/build/esm/FauxFoundry/FauxDataStore.js.map +1 -0
  149. package/build/esm/FauxFoundry/FauxDataStore.test.js +190 -0
  150. package/build/esm/FauxFoundry/FauxDataStore.test.js.map +1 -0
  151. package/build/esm/FauxFoundry/FauxDataStoreBatch.js +125 -0
  152. package/build/esm/FauxFoundry/FauxDataStoreBatch.js.map +1 -0
  153. package/build/esm/FauxFoundry/FauxFoundry.js +87 -0
  154. package/build/esm/FauxFoundry/FauxFoundry.js.map +1 -0
  155. package/build/esm/FauxFoundry/FauxOntology.js +228 -0
  156. package/build/esm/FauxFoundry/FauxOntology.js.map +1 -0
  157. package/build/esm/FauxFoundry/FauxQueryImpl.js +2 -0
  158. package/build/esm/FauxFoundry/FauxQueryImpl.js.map +1 -0
  159. package/build/esm/FauxFoundry/ObjectLocator.js +29 -0
  160. package/build/esm/FauxFoundry/ObjectLocator.js.map +1 -0
  161. package/build/esm/FauxFoundry/filterObjects.js +122 -0
  162. package/build/esm/FauxFoundry/filterObjects.js.map +1 -0
  163. package/build/esm/FauxFoundry/filterTimeSeriesData.js +70 -0
  164. package/build/esm/FauxFoundry/filterTimeSeriesData.js.map +1 -0
  165. package/build/esm/FauxFoundry/filterTimeSeriesData.test.js +116 -0
  166. package/build/esm/FauxFoundry/filterTimeSeriesData.test.js.map +1 -0
  167. package/build/esm/FauxFoundry/getObjectsFromSet.js +217 -0
  168. package/build/esm/FauxFoundry/getObjectsFromSet.js.map +1 -0
  169. package/build/esm/FauxFoundry/typeHelpers/ActionTypeBuilder.js +64 -0
  170. package/build/esm/FauxFoundry/typeHelpers/ActionTypeBuilder.js.map +1 -0
  171. package/build/esm/FauxFoundry/typeHelpers/JustProps.js +2 -0
  172. package/build/esm/FauxFoundry/typeHelpers/JustProps.js.map +1 -0
  173. package/build/esm/FauxFoundry/typeHelpers/TH_ActionDefinition.js +2 -0
  174. package/build/esm/FauxFoundry/typeHelpers/TH_ActionDefinition.js.map +1 -0
  175. package/build/esm/FauxFoundry/typeHelpers/TH_ActionParameterV2.js +25 -0
  176. package/build/esm/FauxFoundry/typeHelpers/TH_ActionParameterV2.js.map +1 -0
  177. package/build/esm/FauxFoundry/typeHelpers/TH_ActionTypeV2.js +35 -0
  178. package/build/esm/FauxFoundry/typeHelpers/TH_ActionTypeV2.js.map +1 -0
  179. package/build/esm/FauxFoundry/typeHelpers/TH_ApplyActionRequestV2.js +2 -0
  180. package/build/esm/FauxFoundry/typeHelpers/TH_ApplyActionRequestV2.js.map +1 -0
  181. package/build/esm/FauxFoundry/typeHelpers/TH_ObjectTypeFullMetadata.js +2 -0
  182. package/build/esm/FauxFoundry/typeHelpers/TH_ObjectTypeFullMetadata.js.map +1 -0
  183. package/build/esm/FauxFoundry/typeHelpers/ToObjectTypeDefinition.js +2 -0
  184. package/build/esm/FauxFoundry/typeHelpers/ToObjectTypeDefinition.js.map +1 -0
  185. package/build/esm/FauxFoundry/typeHelpers/index.js +20 -0
  186. package/build/esm/FauxFoundry/typeHelpers/index.js.map +1 -0
  187. package/build/esm/FauxFoundry/validateAction.js +245 -0
  188. package/build/esm/FauxFoundry/validateAction.js.map +1 -0
  189. package/build/esm/defaultOntologyForConjure.js +25 -0
  190. package/build/esm/defaultOntologyForConjure.js.map +1 -0
  191. package/build/esm/defaultOntologyMetadata.js +23 -0
  192. package/build/esm/defaultOntologyMetadata.js.map +1 -0
  193. package/build/esm/errors.js +134 -0
  194. package/build/esm/errors.js.map +1 -0
  195. package/build/esm/filterObjects.js +86 -0
  196. package/build/esm/filterObjects.js.map +1 -0
  197. package/build/esm/handlers/authHandlerMiddleware.js +41 -0
  198. package/build/esm/handlers/authHandlerMiddleware.js.map +1 -0
  199. package/build/esm/handlers/createActionHandlers.js +49 -0
  200. package/build/esm/handlers/createActionHandlers.js.map +1 -0
  201. package/build/esm/handlers/createAttachmentHandlers.js +88 -0
  202. package/build/esm/handlers/createAttachmentHandlers.js.map +1 -0
  203. package/build/esm/handlers/createFauxFoundryHandlers.js +29 -0
  204. package/build/esm/handlers/createFauxFoundryHandlers.js.map +1 -0
  205. package/build/esm/handlers/createLoadObjectsHandlers.js +91 -0
  206. package/build/esm/handlers/createLoadObjectsHandlers.js.map +1 -0
  207. package/build/esm/handlers/createMediaRefHandlers.js +70 -0
  208. package/build/esm/handlers/createMediaRefHandlers.js.map +1 -0
  209. package/build/esm/handlers/createMultipassServerHandlers.js +67 -0
  210. package/build/esm/handlers/createMultipassServerHandlers.js.map +1 -0
  211. package/build/esm/handlers/createObjectSetHandlers.js +50 -0
  212. package/build/esm/handlers/createObjectSetHandlers.js.map +1 -0
  213. package/build/esm/handlers/createOntologyHandlers.js +122 -0
  214. package/build/esm/handlers/createOntologyHandlers.js.map +1 -0
  215. package/build/esm/handlers/createQueryHandlers.js +38 -0
  216. package/build/esm/handlers/createQueryHandlers.js.map +1 -0
  217. package/build/esm/handlers/createTimeseriesAndGeotimeHandlers.js +95 -0
  218. package/build/esm/handlers/createTimeseriesAndGeotimeHandlers.js.map +1 -0
  219. package/build/esm/handlers/util/getPaginationParams.js +33 -0
  220. package/build/esm/handlers/util/getPaginationParams.js.map +1 -0
  221. package/build/esm/handlers/util/handleOpenApiCall.js +85 -0
  222. package/build/esm/handlers/util/handleOpenApiCall.js.map +1 -0
  223. package/build/esm/handlers/util/loadAll.js +24 -0
  224. package/build/esm/handlers/util/loadAll.js.map +1 -0
  225. package/build/esm/handlers/util/pageThroughResponseSearchParams.js +39 -0
  226. package/build/esm/handlers/util/pageThroughResponseSearchParams.js.map +1 -0
  227. package/build/esm/handlers/util/requireParam.js +29 -0
  228. package/build/esm/handlers/util/requireParam.js.map +1 -0
  229. package/build/esm/handlers/util/requireSearchParams.js +29 -0
  230. package/build/esm/handlers/util/requireSearchParams.js.map +1 -0
  231. package/build/esm/index.js +29 -0
  232. package/build/esm/index.js.map +1 -0
  233. package/build/esm/mock/OntologiesV2/ActionTypesV2.js +21 -0
  234. package/build/esm/mock/OntologiesV2/ActionTypesV2.js.map +1 -0
  235. package/build/esm/mock/OntologiesV2/Actions.js +21 -0
  236. package/build/esm/mock/OntologiesV2/Actions.js.map +1 -0
  237. package/build/esm/mock/OntologiesV2/AttachmentPropertiesV2.js +21 -0
  238. package/build/esm/mock/OntologiesV2/AttachmentPropertiesV2.js.map +1 -0
  239. package/build/esm/mock/OntologiesV2/Attachments.js +22 -0
  240. package/build/esm/mock/OntologiesV2/Attachments.js.map +1 -0
  241. package/build/esm/mock/OntologiesV2/LinkedObjectsV2.js +21 -0
  242. package/build/esm/mock/OntologiesV2/LinkedObjectsV2.js.map +1 -0
  243. package/build/esm/mock/OntologiesV2/MediaReferenceProperties.js +22 -0
  244. package/build/esm/mock/OntologiesV2/MediaReferenceProperties.js.map +1 -0
  245. package/build/esm/mock/OntologiesV2/ObjectTypesV2.js +24 -0
  246. package/build/esm/mock/OntologiesV2/ObjectTypesV2.js.map +1 -0
  247. package/build/esm/mock/OntologiesV2/OntologiesV2.js +27 -0
  248. package/build/esm/mock/OntologiesV2/OntologiesV2.js.map +1 -0
  249. package/build/esm/mock/OntologiesV2/OntologyInterfaces.js +21 -0
  250. package/build/esm/mock/OntologiesV2/OntologyInterfaces.js.map +1 -0
  251. package/build/esm/mock/OntologiesV2/OntologyObjectSets.js +22 -0
  252. package/build/esm/mock/OntologiesV2/OntologyObjectSets.js.map +1 -0
  253. package/build/esm/mock/OntologiesV2/OntologyObjectsV2.js +21 -0
  254. package/build/esm/mock/OntologiesV2/OntologyObjectsV2.js.map +1 -0
  255. package/build/esm/mock/OntologiesV2/Queries.js +20 -0
  256. package/build/esm/mock/OntologiesV2/Queries.js.map +1 -0
  257. package/build/esm/mock/OntologiesV2/QueryTypes.js +21 -0
  258. package/build/esm/mock/OntologiesV2/QueryTypes.js.map +1 -0
  259. package/build/esm/mock/OntologiesV2/TimeSeriesPropertiesV2.js +22 -0
  260. package/build/esm/mock/OntologiesV2/TimeSeriesPropertiesV2.js.map +1 -0
  261. package/build/esm/mock/OntologiesV2/TimeSeriesValueBankProperties.js +21 -0
  262. package/build/esm/mock/OntologiesV2/TimeSeriesValueBankProperties.js.map +1 -0
  263. package/build/esm/mock/OntologiesV2/index.js +32 -0
  264. package/build/esm/mock/OntologiesV2/index.js.map +1 -0
  265. package/build/esm/mock/index.js +18 -0
  266. package/build/esm/mock/index.js.map +1 -0
  267. package/build/esm/withoutRid.js +24 -0
  268. package/build/esm/withoutRid.js.map +1 -0
  269. package/build/types/BaseError.d.ts +7 -0
  270. package/build/types/BaseError.d.ts.map +1 -0
  271. package/build/types/FauxFoundry/BaseOsdkObjectType.d.ts +5 -0
  272. package/build/types/FauxFoundry/BaseOsdkObjectType.d.ts.map +1 -0
  273. package/build/types/FauxFoundry/BaseServerObject.d.ts +18 -0
  274. package/build/types/FauxFoundry/BaseServerObject.d.ts.map +1 -0
  275. package/build/types/FauxFoundry/FauxActionImpl.d.ts +8 -0
  276. package/build/types/FauxFoundry/FauxActionImpl.d.ts.map +1 -0
  277. package/build/types/FauxFoundry/FauxAttachmentStore.d.ts +10 -0
  278. package/build/types/FauxFoundry/FauxAttachmentStore.d.ts.map +1 -0
  279. package/build/types/FauxFoundry/FauxDataStore.d.ts +70 -0
  280. package/build/types/FauxFoundry/FauxDataStore.d.ts.map +1 -0
  281. package/build/types/FauxFoundry/FauxDataStore.test.d.ts +1 -0
  282. package/build/types/FauxFoundry/FauxDataStore.test.d.ts.map +1 -0
  283. package/build/types/FauxFoundry/FauxDataStoreBatch.d.ts +22 -0
  284. package/build/types/FauxFoundry/FauxDataStoreBatch.d.ts.map +1 -0
  285. package/build/types/FauxFoundry/FauxFoundry.d.ts +25 -0
  286. package/build/types/FauxFoundry/FauxFoundry.d.ts.map +1 -0
  287. package/build/types/FauxFoundry/FauxOntology.d.ts +39 -0
  288. package/build/types/FauxFoundry/FauxOntology.d.ts.map +1 -0
  289. package/build/types/FauxFoundry/FauxQueryImpl.d.ts +5 -0
  290. package/build/types/FauxFoundry/FauxQueryImpl.d.ts.map +1 -0
  291. package/build/types/FauxFoundry/ObjectLocator.d.ts +11 -0
  292. package/build/types/FauxFoundry/ObjectLocator.d.ts.map +1 -0
  293. package/build/types/FauxFoundry/filterObjects.d.ts +3 -0
  294. package/build/types/FauxFoundry/filterObjects.d.ts.map +1 -0
  295. package/build/types/FauxFoundry/filterTimeSeriesData.d.ts +2 -0
  296. package/build/types/FauxFoundry/filterTimeSeriesData.d.ts.map +1 -0
  297. package/build/types/FauxFoundry/filterTimeSeriesData.test.d.ts +1 -0
  298. package/build/types/FauxFoundry/filterTimeSeriesData.test.d.ts.map +1 -0
  299. package/build/types/FauxFoundry/getObjectsFromSet.d.ts +6 -0
  300. package/build/types/FauxFoundry/getObjectsFromSet.d.ts.map +1 -0
  301. package/build/types/FauxFoundry/typeHelpers/ActionTypeBuilder.d.ts +27 -0
  302. package/build/types/FauxFoundry/typeHelpers/ActionTypeBuilder.d.ts.map +1 -0
  303. package/build/types/FauxFoundry/typeHelpers/JustProps.d.ts +4 -0
  304. package/build/types/FauxFoundry/typeHelpers/JustProps.d.ts.map +1 -0
  305. package/build/types/FauxFoundry/typeHelpers/TH_ActionDefinition.d.ts +43 -0
  306. package/build/types/FauxFoundry/typeHelpers/TH_ActionDefinition.d.ts.map +1 -0
  307. package/build/types/FauxFoundry/typeHelpers/TH_ActionParameterV2.d.ts +15 -0
  308. package/build/types/FauxFoundry/typeHelpers/TH_ActionParameterV2.d.ts.map +1 -0
  309. package/build/types/FauxFoundry/typeHelpers/TH_ActionTypeV2.d.ts +8 -0
  310. package/build/types/FauxFoundry/typeHelpers/TH_ActionTypeV2.d.ts.map +1 -0
  311. package/build/types/FauxFoundry/typeHelpers/TH_ApplyActionRequestV2.d.ts +24 -0
  312. package/build/types/FauxFoundry/typeHelpers/TH_ApplyActionRequestV2.d.ts.map +1 -0
  313. package/build/types/FauxFoundry/typeHelpers/TH_ObjectTypeFullMetadata.d.ts +18 -0
  314. package/build/types/FauxFoundry/typeHelpers/TH_ObjectTypeFullMetadata.d.ts.map +1 -0
  315. package/build/types/FauxFoundry/typeHelpers/ToObjectTypeDefinition.d.ts +12 -0
  316. package/build/types/FauxFoundry/typeHelpers/ToObjectTypeDefinition.d.ts.map +1 -0
  317. package/build/types/FauxFoundry/typeHelpers/index.d.ts +10 -0
  318. package/build/types/FauxFoundry/typeHelpers/index.d.ts.map +1 -0
  319. package/build/types/FauxFoundry/validateAction.d.ts +9 -0
  320. package/build/types/FauxFoundry/validateAction.d.ts.map +1 -0
  321. package/build/types/defaultOntologyForConjure.d.ts +7 -0
  322. package/build/types/defaultOntologyForConjure.d.ts.map +1 -0
  323. package/build/types/defaultOntologyMetadata.d.ts +2 -0
  324. package/build/types/defaultOntologyMetadata.d.ts.map +1 -0
  325. package/build/types/errors.d.ts +14 -0
  326. package/build/types/errors.d.ts.map +1 -0
  327. package/build/types/filterObjects.d.ts +8 -0
  328. package/build/types/filterObjects.d.ts.map +1 -0
  329. package/build/types/handlers/authHandlerMiddleware.d.ts +5 -0
  330. package/build/types/handlers/authHandlerMiddleware.d.ts.map +1 -0
  331. package/build/types/handlers/createActionHandlers.d.ts +3 -0
  332. package/build/types/handlers/createActionHandlers.d.ts.map +1 -0
  333. package/build/types/handlers/createAttachmentHandlers.d.ts +2 -0
  334. package/build/types/handlers/createAttachmentHandlers.d.ts.map +1 -0
  335. package/build/types/handlers/createFauxFoundryHandlers.d.ts +4 -0
  336. package/build/types/handlers/createFauxFoundryHandlers.d.ts.map +1 -0
  337. package/build/types/handlers/createLoadObjectsHandlers.d.ts +2 -0
  338. package/build/types/handlers/createLoadObjectsHandlers.d.ts.map +1 -0
  339. package/build/types/handlers/createMediaRefHandlers.d.ts +2 -0
  340. package/build/types/handlers/createMediaRefHandlers.d.ts.map +1 -0
  341. package/build/types/handlers/createMultipassServerHandlers.d.ts +2 -0
  342. package/build/types/handlers/createMultipassServerHandlers.d.ts.map +1 -0
  343. package/build/types/handlers/createObjectSetHandlers.d.ts +3 -0
  344. package/build/types/handlers/createObjectSetHandlers.d.ts.map +1 -0
  345. package/build/types/handlers/createOntologyHandlers.d.ts +4 -0
  346. package/build/types/handlers/createOntologyHandlers.d.ts.map +1 -0
  347. package/build/types/handlers/createQueryHandlers.d.ts +2 -0
  348. package/build/types/handlers/createQueryHandlers.d.ts.map +1 -0
  349. package/build/types/handlers/createTimeseriesAndGeotimeHandlers.d.ts +2 -0
  350. package/build/types/handlers/createTimeseriesAndGeotimeHandlers.d.ts.map +1 -0
  351. package/build/types/handlers/util/getPaginationParams.d.ts +11 -0
  352. package/build/types/handlers/util/getPaginationParams.d.ts.map +1 -0
  353. package/build/types/handlers/util/handleOpenApiCall.d.ts +49 -0
  354. package/build/types/handlers/util/handleOpenApiCall.d.ts.map +1 -0
  355. package/build/types/handlers/util/loadAll.d.ts +1 -0
  356. package/build/types/handlers/util/loadAll.d.ts.map +1 -0
  357. package/build/types/handlers/util/pageThroughResponseSearchParams.d.ts +20 -0
  358. package/build/types/handlers/util/pageThroughResponseSearchParams.d.ts.map +1 -0
  359. package/build/types/handlers/util/requireParam.d.ts +8 -0
  360. package/build/types/handlers/util/requireParam.d.ts.map +1 -0
  361. package/build/types/handlers/util/requireSearchParams.d.ts +2 -0
  362. package/build/types/handlers/util/requireSearchParams.d.ts.map +1 -0
  363. package/build/types/index.d.ts +14 -0
  364. package/build/types/index.d.ts.map +1 -0
  365. package/build/types/mock/OntologiesV2/ActionTypesV2.d.ts +4 -0
  366. package/build/types/mock/OntologiesV2/ActionTypesV2.d.ts.map +1 -0
  367. package/build/types/mock/OntologiesV2/Actions.d.ts +4 -0
  368. package/build/types/mock/OntologiesV2/Actions.d.ts.map +1 -0
  369. package/build/types/mock/OntologiesV2/AttachmentPropertiesV2.d.ts +4 -0
  370. package/build/types/mock/OntologiesV2/AttachmentPropertiesV2.d.ts.map +1 -0
  371. package/build/types/mock/OntologiesV2/Attachments.d.ts +5 -0
  372. package/build/types/mock/OntologiesV2/Attachments.d.ts.map +1 -0
  373. package/build/types/mock/OntologiesV2/LinkedObjectsV2.d.ts +4 -0
  374. package/build/types/mock/OntologiesV2/LinkedObjectsV2.d.ts.map +1 -0
  375. package/build/types/mock/OntologiesV2/MediaReferenceProperties.d.ts +5 -0
  376. package/build/types/mock/OntologiesV2/MediaReferenceProperties.d.ts.map +1 -0
  377. package/build/types/mock/OntologiesV2/ObjectTypesV2.d.ts +7 -0
  378. package/build/types/mock/OntologiesV2/ObjectTypesV2.d.ts.map +1 -0
  379. package/build/types/mock/OntologiesV2/OntologiesV2.d.ts +9 -0
  380. package/build/types/mock/OntologiesV2/OntologiesV2.d.ts.map +1 -0
  381. package/build/types/mock/OntologiesV2/OntologyInterfaces.d.ts +4 -0
  382. package/build/types/mock/OntologiesV2/OntologyInterfaces.d.ts.map +1 -0
  383. package/build/types/mock/OntologiesV2/OntologyObjectSets.d.ts +5 -0
  384. package/build/types/mock/OntologiesV2/OntologyObjectSets.d.ts.map +1 -0
  385. package/build/types/mock/OntologiesV2/OntologyObjectsV2.d.ts +4 -0
  386. package/build/types/mock/OntologiesV2/OntologyObjectsV2.d.ts.map +1 -0
  387. package/build/types/mock/OntologiesV2/Queries.d.ts +3 -0
  388. package/build/types/mock/OntologiesV2/Queries.d.ts.map +1 -0
  389. package/build/types/mock/OntologiesV2/QueryTypes.d.ts +4 -0
  390. package/build/types/mock/OntologiesV2/QueryTypes.d.ts.map +1 -0
  391. package/build/types/mock/OntologiesV2/TimeSeriesPropertiesV2.d.ts +5 -0
  392. package/build/types/mock/OntologiesV2/TimeSeriesPropertiesV2.d.ts.map +1 -0
  393. package/build/types/mock/OntologiesV2/TimeSeriesValueBankProperties.d.ts +4 -0
  394. package/build/types/mock/OntologiesV2/TimeSeriesValueBankProperties.d.ts.map +1 -0
  395. package/build/types/mock/OntologiesV2/index.d.ts +15 -0
  396. package/build/types/mock/OntologiesV2/index.d.ts.map +1 -0
  397. package/build/types/mock/index.d.ts +1 -0
  398. package/build/types/mock/index.d.ts.map +1 -0
  399. package/build/types/withoutRid.d.ts +3 -0
  400. package/build/types/withoutRid.d.ts.map +1 -0
  401. package/package.json +88 -0
@@ -0,0 +1,18 @@
1
+ import type * as OntologiesV2 from "@osdk/foundry.ontologies";
2
+ /**
3
+ * A simplified type safe version of `OntologyObjectV2` that adds a tiny bit
4
+ * more strictness in that it declares the meaning of values for the `__` prefix
5
+ * props.
6
+ */
7
+ export interface BaseServerObject extends OntologiesV2.OntologyObjectV2 {
8
+ __rid?: string;
9
+ __primaryKey: string | number | boolean;
10
+ __apiName: OntologiesV2.ObjectTypeApiName;
11
+ __title?: string;
12
+ [key: string]: unknown;
13
+ }
14
+ /**
15
+ * Helpful for distinguishing between an object that looks like it is for the server (__apiName)
16
+ * vs one that is for the client ($apiName).
17
+ */
18
+ export declare function isBaseServerObject(obj: unknown): obj is BaseServerObject;
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,iBAAiB,kBAAkB,0BAA2B;;;;;;AAO9D,iBAAiB,yBAAyB,aAAa,iBAAiB;CACtE;CACA;CACA,WAAW,aAAa;CACxB;;AAGD;;;;;AAMD,OAAO,iBAAS,mBAAmBA,eAAe,OAAO","names":["obj: unknown"],"sources":["../../../src/FauxFoundry/BaseServerObject.ts"],"version":3,"file":"BaseServerObject.d.ts"}
@@ -0,0 +1,8 @@
1
+ import type * as OntologiesV2 from "@osdk/foundry.ontologies";
2
+ import type { FauxAttachmentStore } from "./FauxAttachmentStore.js";
3
+ import type { FauxDataStoreBatch } from "./FauxDataStoreBatch.js";
4
+ import type { TH_ApplyActionRequestV2 } from "./typeHelpers/TH_ApplyActionRequestV2.js";
5
+ export type FauxActionImpl<Q extends OntologiesV2.ActionTypeV2 = OntologiesV2.ActionTypeV2> = (batch: FauxDataStoreBatch, payload: TH_ApplyActionRequestV2<Q>, ctx: {
6
+ def: Q
7
+ attachments: FauxAttachmentStore
8
+ }) => unknown;
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,iBAAiB,kBAAkB,0BAA2B;AAC9D,cAAc,2BAA2B,0BAA2B;AACpE,cAAc,0BAA0B,yBAA0B;AAClE,cAAc,+BAA+B,0CAA2C;AAExF,YAAY,eACV,UAAU,aAAa,eAAe,aAAa,iBAEnDA,OAAO,oBACPC,SAAS,wBAAwB,IACjCC,KAAK;CACH,KAAK;CACL,aAAa;AACd","names":["batch: FauxDataStoreBatch","payload: TH_ApplyActionRequestV2<Q>","ctx: {\n def: Q;\n attachments: FauxAttachmentStore;\n }"],"sources":["../../../src/FauxFoundry/FauxActionImpl.ts"],"version":3,"file":"FauxActionImpl.d.ts"}
@@ -0,0 +1,10 @@
1
+ import type * as OntologiesV2 from "@osdk/foundry.ontologies";
2
+ export interface FauxAttachmentInfo extends Omit<OntologiesV2.AttachmentV2, "sizeBytes"> {
3
+ buffer: ArrayBuffer;
4
+ }
5
+ export declare class FauxAttachmentStore {
6
+ #private;
7
+ registerAttachment(attachment: FauxAttachmentInfo): OntologiesV2.AttachmentV2;
8
+ getAttachmentMetadataByRid(attachmentRid: string): OntologiesV2.AttachmentV2;
9
+ getAttachmentBuffer(attachmentRid: string): ArrayBuffer;
10
+ }
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,iBAAiB,kBAAkB,0BAA2B;AAG9D,iBAAiB,2BACP,KAAK,aAAa,cAAc,aAC1C;CACE,QAAQ;AACT;AAED,OAAO,cAAM,oBAAoB;;CAG/B,mBACEA,YAAY,qBACX,aAAa;CAKhB,2BAA2BC,wBAAwB,aAAa;CAsBhE,oBAAoBA,wBAAwB;AAe7C","names":["attachment: FauxAttachmentInfo","attachmentRid: string"],"sources":["../../../src/FauxFoundry/FauxAttachmentStore.ts"],"version":3,"file":"FauxAttachmentStore.d.ts"}
@@ -0,0 +1,70 @@
1
+ import type { CompileTimeMetadata, ObjectTypeDefinition } from "@osdk/api";
2
+ import type { MediaItemRid, MediaReference, MediaType } from "@osdk/foundry.core";
3
+ import type * as OntologiesV2 from "@osdk/foundry.ontologies";
4
+ import type { PagedBodyResponseWithTotal } from "../handlers/util/pageThroughResponseSearchParams.js";
5
+ import { type BaseServerObject } from "./BaseServerObject.js";
6
+ import type { FauxAttachmentStore } from "./FauxAttachmentStore.js";
7
+ import type { FauxOntology } from "./FauxOntology.js";
8
+ import type { JustProps } from "./typeHelpers/JustProps.js";
9
+ export interface MediaMetadataAndContent {
10
+ content: ArrayBuffer;
11
+ mediaRef: MediaReference;
12
+ metaData: OntologiesV2.MediaMetadata;
13
+ }
14
+ type ObjectTypeCreatableWithoutApiName<T extends ObjectTypeDefinition> = OrUndefinedToOptional<JustProps<T>>;
15
+ /**
16
+ * Represents the properties needed to create an object, specifically,
17
+ * the properties of the object and the $apiName
18
+ */
19
+ type ObjectTypeCreatable<T extends ObjectTypeDefinition> = ObjectTypeCreatableWithoutApiName<T> & {
20
+ $apiName: CompileTimeMetadata<T>["apiName"]
21
+ };
22
+ /**
23
+ * Helper type for converting `foo: string | undefined` into `foo?: string`
24
+ */
25
+ type OrUndefinedToOptional<T extends object> = { [K in keyof T as T[K] extends undefined ? K : never]? : T[K] } & { [K in keyof T as T[K] extends undefined ? never : K]? : T[K] };
26
+ export declare class FauxDataStore {
27
+ #private;
28
+ constructor(fauxOntology: FauxOntology, attachments: FauxAttachmentStore);
29
+ /**
30
+ * Removes all data that is associated with a namespace/ontology.
31
+ *
32
+ * Note: does not clear `attachments` nor does it clear the ontology itself.
33
+ */
34
+ clear(): void;
35
+ get ontology(): FauxOntology;
36
+ /**
37
+ * Version for use in places like @osdk/client.
38
+ *
39
+ * @param obj An `Osdk.Instance` like object for the ObjectType in the generics
40
+ */
41
+ registerObject<T extends ObjectTypeDefinition>(objectType: T, obj: ObjectTypeCreatable<T> | ObjectTypeCreatableWithoutApiName<T>): void;
42
+ /**
43
+ * Version of register object generally used in shared.test
44
+ * @param obj A raw server side representation of an object
45
+ *
46
+ * Don't use, its too easy to end up with an any.
47
+ */
48
+ registerObject(obj: BaseServerObject): void;
49
+ replaceObjectOrThrow(x: BaseServerObject): void;
50
+ /** Throws if the object does not already exist */
51
+ unregisterObjectOrThrow(objectType: string, primaryKey: string | number | boolean): void;
52
+ registerLink(src: BaseServerObject, srcLinkName: string, dst: BaseServerObject, destLinkName: string): void;
53
+ unregisterLink(src: BaseServerObject, srcLinkName: string, dst: BaseServerObject, dstLinkName: string): void;
54
+ registerTimeSeriesData(objectType: OntologiesV2.ObjectTypeApiName, primaryKey: string, property: OntologiesV2.PropertyApiName, data: OntologiesV2.TimeSeriesPoint[]): void;
55
+ getTimeSeriesData(objectType: OntologiesV2.ObjectTypeApiName, primaryKey: string, property: OntologiesV2.PropertyApiName, filter?: OntologiesV2.StreamTimeSeriesPointsRequest): OntologiesV2.TimeSeriesPoint[];
56
+ registerMedia(objectType: OntologiesV2.ObjectTypeApiName, property: OntologiesV2.PropertyApiName, content: ArrayBuffer, mediaType: MediaType, path: string | undefined, mediaItemRid?: MediaItemRid): MediaReference;
57
+ getMediaOrThrow(objectType: OntologiesV2.ObjectTypeApiName, primaryKey: string, property: OntologiesV2.PropertyApiName): MediaMetadataAndContent;
58
+ getObject(apiName: string, primaryKey: string | number | boolean): BaseServerObject | undefined;
59
+ getObjectOrThrow(apiName: string, primaryKey: string | number | boolean): BaseServerObject;
60
+ getObjectByRid(rid: string): BaseServerObject | undefined;
61
+ getLinksOrThrow(apiName: string, primaryKey: string | number | boolean, linkApiName: string): BaseServerObject[];
62
+ getLinkOrThrow(objectType: string, primaryKey: string | number | boolean, linkType: string, targetPrimaryKey: string | number | boolean): BaseServerObject;
63
+ getObjectsOfType(apiName: string): Iterable<BaseServerObject>;
64
+ getObjectsFromObjectSet(parsedBody: OntologiesV2.LoadObjectSetV2MultipleObjectTypesRequest | OntologiesV2.LoadObjectSetRequestV2): PagedBodyResponseWithTotal<BaseServerObject>;
65
+ getAttachmentMetadata(objectType: string, primaryKey: string | number | boolean, propertyName: string): OntologiesV2.AttachmentV2;
66
+ getAttachmentBuffer(objectType: string, primaryKey: string | number | boolean, propertyName: string): ArrayBuffer;
67
+ applyAction(actionTypeApiName: string, req: OntologiesV2.ApplyActionRequestV2): OntologiesV2.SyncApplyActionResponseV2;
68
+ batchApplyAction(actionTypeApiName: string, batchReq: OntologiesV2.BatchApplyActionRequestV2): OntologiesV2.BatchApplyActionResponseV2;
69
+ }
70
+ export {};
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,qBAAqB,4BAA4B,WAAY;AAC3E,cACE,cACA,gBACA,iBACK,oBAAqB;AAC5B,iBAAiB,kBAAkB,0BAA2B;AAU9D,cAAc,kCAAkC,qDAAsD;AAEtG,cACO,wBAEA,uBAAwB;AAC/B,cAAc,2BAA2B,0BAA2B;AAEpE,cAAc,oBAAoB,mBAAoB;AAKtD,cAAc,iBAAiB,4BAA6B;AAG5D,iBAAiB,wBAAwB;CACvC,SAAS;CACT,UAAU;CACV,UAAU,aAAa;AACxB;KAEI,kCAAkC,UAAU,wBAC/C,sBAAsB,UAAU;;;;;KAM7B,oBAAoB,UAAU,wBAC/B,kCAAkC,KAClC;CAAE,UAAU,oBAAoB,GAAG;AAAY;;;;KAK9C,sBAAsB,uBAEtB,WAAW,KAAK,EAAE,uBAAuB,cAAa,EAAE,UAGxD,WAAW,KAAK,EAAE,+BAA+B,MAAK,EAAE;AAwB7D,OAAO,cAAM,cAAc;;CAqCzB,YAAYA,cAAc,cAAcC,aAAa;;;;;;CAUrD,AAAO;CAQP,IAAI,YAAY;;;;;;CAyChB,eAAe,UAAU,sBACvBC,YAAY,GACZC,KAAK,oBAAoB,KAAK,kCAAkC;;;;;;;CAQlE,eAAeC,KAAK;CA0GpB,qBAAqBC,GAAG;;CAMxB,wBACEC,oBACAC;CAMF,aACEC,KAAK,kBACLC,qBACAC,KAAK,kBACLC;CAiCF,eACEH,KAAK,kBACLC,qBACAC,KAAK,kBACLE;CAmBF,uBACEC,YAAY,aAAa,mBACzBC,oBACAC,UAAU,aAAa,iBACvBC,MAAM,aAAa;CAerB,kBACEH,YAAY,aAAa,mBACzBC,oBACAC,UAAU,aAAa,iBACvBE,SAAS,aAAa,gCACrB,aAAa;CAuChB,cACEJ,YAAY,aAAa,mBACzBE,UAAU,aAAa,iBACvBG,SAAS,aACTC,WAAW,WACXC,0BAGAC,eAAc,eACb;CA6BH,gBACER,YAAY,aAAa,mBACzBC,oBACAC,UAAU,aAAa,kBACtB;CAkFH,UACEO,iBACAf,wCACC;CAMH,iBACEe,iBACAf,wCACC;CAYH,eAAegB,cAAc;CAU7B,gBACED,iBACAf,uCACAiB,sBACC;CAgCH,eACElB,oBACAC,uCACAkB,kBACAC,8CACC;CAiBH,iBAAiBJ,kBAAkB,SAAS;CAM5C,wBACEK,YACI,aAAa,4CACb,aAAa,yBAChB,2BAA2B;CA6C9B,sBACErB,oBACAC,uCACAqB,uBACC,aAAa;CAKhB,oBACEtB,oBACAC,uCACAqB,uBACC;CAKH,YACEC,2BACAC,KAAK,aAAa,uBACjB,aAAa;CAwChB,iBACED,2BACAE,UAAU,aAAa,4BACtB,aAAa;AAsEjB","names":["fauxOntology: FauxOntology","attachments: FauxAttachmentStore","objectType: T","obj: ObjectTypeCreatable<T> | ObjectTypeCreatableWithoutApiName<T>","obj: BaseServerObject","x: BaseServerObject","objectType: string","primaryKey: string | number | boolean","src: BaseServerObject","srcLinkName: string","dst: BaseServerObject","destLinkName: string","dstLinkName: string","objectType: OntologiesV2.ObjectTypeApiName","primaryKey: string","property: OntologiesV2.PropertyApiName","data: OntologiesV2.TimeSeriesPoint[]","filter?: OntologiesV2.StreamTimeSeriesPointsRequest","content: ArrayBuffer","mediaType: MediaType","path: string | undefined","mediaItemRid: MediaItemRid","apiName: string","rid: string","linkApiName: string","linkType: string","targetPrimaryKey: string | number | boolean","parsedBody:\n | OntologiesV2.LoadObjectSetV2MultipleObjectTypesRequest\n | OntologiesV2.LoadObjectSetRequestV2","propertyName: string","actionTypeApiName: string","req: OntologiesV2.ApplyActionRequestV2","batchReq: OntologiesV2.BatchApplyActionRequestV2"],"sources":["../../../src/FauxFoundry/FauxDataStore.ts"],"version":3,"file":"FauxDataStore.d.ts"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ {"mappings":"","names":[],"sources":["../../../src/FauxFoundry/FauxDataStore.test.ts"],"version":3,"file":"FauxDataStore.test.d.ts"}
@@ -0,0 +1,22 @@
1
+ import type { CompileTimeMetadata, ObjectTypeDefinition, PrimaryKeyType } from "@osdk/api";
2
+ import type * as OntologiesV2 from "@osdk/foundry.ontologies";
3
+ import type { BaseServerObject } from "./BaseServerObject.js";
4
+ import type { FauxDataStore } from "./FauxDataStore.js";
5
+ import type { JustProps } from "./typeHelpers/JustProps.js";
6
+ /**
7
+ * This is separate from the FauxDataStore so that we can in the future support
8
+ * this not-committing on errors. That functionality just does not exist at the moment
9
+ */
10
+ export declare class FauxDataStoreBatch {
11
+ #private;
12
+ objectEdits: OntologiesV2.ObjectEdits;
13
+ constructor(fauxDataStore: FauxDataStore);
14
+ getObject: (objectType: string, primaryKey: string | number | boolean) => BaseServerObject;
15
+ addObject<T extends ObjectTypeDefinition>(objectType: T["apiName"], primaryKey: PrimaryKeyType<T>, update: Omit<JustProps<T>, CompileTimeMetadata<T>["primaryKeyApiName"]>): void;
16
+ addObject(objectType: string, primaryKey: string | number | boolean, object: BaseServerObject): void;
17
+ modifyObject<T extends ObjectTypeDefinition>(objectType: T["apiName"], primaryKey: PrimaryKeyType<T>, update: Partial<JustProps<T>>): void;
18
+ modifyObject(objectType: string, primaryKey: string | number | boolean, update: Partial<BaseServerObject>): void;
19
+ deleteObject: (objectType: string, primaryKey: string | number | boolean) => void;
20
+ addLink: (leftObjectType: string, leftPrimaryKey: string | number | boolean, leftLinkName: string, rightObjectType: string, rightPrimaryKey: string | number | boolean) => void;
21
+ removeLink: (leftObjectType: string, leftPrimaryKey: string | number | boolean, leftLinkName: string, rightObjectType: string, rightPrimaryKey: string | number | boolean) => void;
22
+ }
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cACE,qBACA,sBACA,sBACK,WAAY;AACnB,iBAAiB,kBAAkB,0BAA2B;AAG9D,cAAc,wBAAwB,uBAAwB;AAC9D,cAAc,qBAAqB,oBAAqB;AACxD,cAAc,iBAAiB,4BAA6B;;;;;AAM5D,OAAO,cAAM,mBAAmB;;CAE9B,aAAa,aAAa;CAS1B,YAAYA,eAAe;CAI3B,YACEC,oBACAC,0CACC;CAOH,AAAO,UAAU,UAAU,sBACzBC,YAAY,EAAE,YACdC,YAAY,eAAe,IAC3BC,QAAQ,KAAK,UAAU,IAAI,oBAAoB,GAAG;CAEpD,AAAO,UACLJ,oBACAC,uCACAI,QAAQ;CA2CV,AAAO,aAAa,UAAU,sBAC5BH,YAAY,EAAE,YACdC,YAAY,eAAe,IAC3BG,QAAQ,QAAQ,UAAU;CAE5B,AAAO,aACLN,oBACAC,uCACAM,QAAQ,QAAQ;CA2BlB,eACEP,oBACAC;CAUF,UACEO,wBACAC,2CACAC,sBACAC,yBACAC;CAiCF,aACEJ,wBACAC,2CACAC,sBACAC,yBACAC;AAgBH","names":["fauxDataStore: FauxDataStore","objectType: string","primaryKey: string | number | boolean","objectType: T[\"apiName\"]","primaryKey: PrimaryKeyType<T>","update: Omit<JustProps<T>, CompileTimeMetadata<T>[\"primaryKeyApiName\"]>","object: BaseServerObject","update: Partial<JustProps<T>>","update: Partial<BaseServerObject>","leftObjectType: string","leftPrimaryKey: string | number | boolean","leftLinkName: string","rightObjectType: string","rightPrimaryKey: string | number | boolean"],"sources":["../../../src/FauxFoundry/FauxDataStoreBatch.ts"],"version":3,"file":"FauxDataStoreBatch.d.ts"}
@@ -0,0 +1,25 @@
1
+ import type { Logger } from "@osdk/api";
2
+ import type { Ontology, OntologyV2 } from "@osdk/foundry.ontologies";
3
+ import type { RequestHandler } from "msw";
4
+ import { FauxAttachmentStore } from "./FauxAttachmentStore.js";
5
+ import { FauxDataStore } from "./FauxDataStore.js";
6
+ import { FauxOntology } from "./FauxOntology.js";
7
+ export declare class FauxFoundry {
8
+ #private;
9
+ readonly attachments: FauxAttachmentStore;
10
+ readonly baseUrl: string;
11
+ readonly defaultOntologyRid: any;
12
+ readonly logger: Logger | undefined;
13
+ constructor(baseUrl: string, defaultOntology?: Ontology, { logger }?: {
14
+ logger?: Logger
15
+ });
16
+ get handlers(): RequestHandler[];
17
+ getDefaultOntology(): FauxOntology;
18
+ getDefaultDataStore(): FauxDataStore;
19
+ createOntology(metadata: OntologyV2): FauxOntology;
20
+ registerOntology(ontology: FauxOntology): void;
21
+ getOntology(ontologyApiNameOrRid: string): FauxOntology;
22
+ setDataStore(ontologyApiNameOrRid: string, fauxDataStore: FauxDataStore): void;
23
+ getDataStore(ontologyApiNameOrRid: string): FauxDataStore;
24
+ getEveryOntology(): FauxOntology[];
25
+ }
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,cAAc,WAAY;AACxC,cAAc,UAAU,kBAAkB,0BAA2B;AACrE,cAAc,sBAAsB,KAAM;AAK1C,SAAS,2BAA2B,0BAA2B;AAC/D,SAAS,qBAAqB,oBAAqB;AACnD,SAAS,oBAAoB,mBAAoB;AAEjD,OAAO,cAAM,YAAY;;CAQvB,SAAS,aAAa;CACtB,SAAS;CACT,SAAS;CACT,SAAS,QAAQ;CAEjB,YACEA,iBACAC,kBAAiB,UAMjB,EAAE,QAA6B,GAAnB;EAAE,SAAS;CAAQ;CASjC,IAAI,YAAY;CAIhB,sBAAsB;CAItB,uBAAuB;CAIvB,eAAeC,UAAU,aAAa;CAOtC,iBAAiBC,UAAU;CAY3B,YAAYC,+BAA+B;CAY3C,aACEA,8BACAC,eAAe;CASjB,aAAaD,+BAA+B;CAW5C,oBAAoB;AAGrB","names":["baseUrl: string","defaultOntology: Ontology","metadata: OntologyV2","ontology: FauxOntology","ontologyApiNameOrRid: string","fauxDataStore: FauxDataStore"],"sources":["../../../src/FauxFoundry/FauxFoundry.ts"],"version":3,"file":"FauxFoundry.d.ts"}
@@ -0,0 +1,39 @@
1
+ import { type ObjectTypeDefinition } from "@osdk/api";
2
+ import type * as OntologiesV2 from "@osdk/foundry.ontologies";
3
+ import type { ReadonlyDeep } from "type-fest";
4
+ import type { FauxActionImpl } from "./FauxActionImpl.js";
5
+ import type { FauxQueryImpl } from "./FauxQueryImpl.js";
6
+ import type { TH_ObjectTypeFullMetadata } from "./typeHelpers/TH_ObjectTypeFullMetadata.js";
7
+ /**
8
+ * Currently Unsupported Concepts:
9
+ * - many:many links.
10
+ */
11
+ export declare class FauxOntology {
12
+ #private;
13
+ constructor(ontology: OntologiesV2.OntologyV2);
14
+ get apiName(): OntologiesV2.OntologyApiName;
15
+ getOntologyFullMetadata(): OntologiesV2.OntologyFullMetadata;
16
+ getFilteredOntologyMetadata(request: OntologiesV2.LoadOntologyMetadataRequest): OntologiesV2.OntologyFullMetadata;
17
+ getAllInterfaceTypes(): OntologiesV2.InterfaceType[];
18
+ getAllObjectTypes(): OntologiesV2.ObjectTypeFullMetadata[];
19
+ getAllActionTypes(): OntologiesV2.ActionTypeV2[];
20
+ getAllQueryTypes(): OntologiesV2.QueryTypeV2[];
21
+ getInterfaceType(interfaceType: string): OntologiesV2.InterfaceType;
22
+ getObjectTypeFullMetadata(objectTypeApiName: string): OntologiesV2.ObjectTypeFullMetadata | undefined;
23
+ getObjectTypeFullMetadataOrThrow(objectTypeApiName: string): OntologiesV2.ObjectTypeFullMetadata;
24
+ getActionDef(actionTypeApiName: string): OntologiesV2.ActionTypeV2;
25
+ getActionImpl(actionTypeApiName: string): FauxActionImpl;
26
+ getQueryDef(queryTypeApiNameAndVersion: string): OntologiesV2.QueryTypeV2;
27
+ getQueryImpl(queryTypeApiName: string, version?: string): FauxQueryImpl;
28
+ getInterfaceToObjectTypeMappings(objectApiNames: Iterable<OntologiesV2.ObjectTypeApiName>): Record<OntologiesV2.InterfaceTypeApiName, OntologiesV2.InterfaceToObjectTypeMappings>;
29
+ getLinkTypeSideV2(objectTypeApiName: string, linkTypeName: string): OntologiesV2.LinkTypeSideV2;
30
+ getOtherLinkTypeSideV2OrThrow(objectTypeApiName: string, linkTypeName: string): OntologiesV2.LinkTypeSideV2;
31
+ getBothLinkTypeSides(leftObjectType: string, leftLinkName: string, rightObjectType: string): [OntologiesV2.LinkTypeSideV2, OntologiesV2.LinkTypeSideV2];
32
+ registerObjectType<Q extends ObjectTypeDefinition>(def: TH_ObjectTypeFullMetadata<Q>): void;
33
+ registerObjectType(def: ReadonlyDeep<OntologiesV2.ObjectTypeFullMetadata>): void;
34
+ registerActionType<Q extends OntologiesV2.ActionTypeV2>(def: Q, implementation?: FauxActionImpl<Q>): void;
35
+ registerActionType(def: OntologiesV2.ActionTypeV2, implementation?: FauxActionImpl): void;
36
+ registerQueryType(def: OntologiesV2.QueryTypeV2, implementation?: FauxQueryImpl): void;
37
+ registerInterfaceType(def: OntologiesV2.InterfaceType): void;
38
+ registerSharedPropertyType(def: OntologiesV2.SharedPropertyType): void;
39
+ }
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,4BAA4B,WAAY;AACtD,iBAAiB,kBAAkB,0BAA2B;AAO9D,cAAc,oBAAoB,WAAY;AAS9C,cAAc,sBAAsB,qBAAsB;AAC1D,cAAc,qBAAqB,oBAAqB;AACxD,cAAc,iCAAiC,4CAA6C;;;;;AAM5F,OAAO,cAAM,aAAa;;CAQxB,YAAYA,UAAU,aAAa;CAWnC,IAAI,WAAW,aAAa;CAI5B,2BAA2B,aAAa;CAIxC,4BACEC,SAAS,aAAa,8BACrB,aAAa;CA8BhB,wBAAwB,aAAa;CAIrC,qBAAqB,aAAa;CAIlC,qBAAqB,aAAa;CAIlC,oBAAoB,aAAa;CAIjC,iBAAiBC,wBAAwB,aAAa;CAetD,AAAO,0BACLC,4BACC,aAAa;CAIhB,AAAO,iCACLA,4BACC,aAAa;CAWhB,AAAO,aAAaC,4BAA4B,aAAa;CAW7D,AAAO,cAAcA,4BAA4B;CAMjD,AAAO,YACLC,qCACC,aAAa;CAYhB,AAAO,aACLC,0BACAC,mBACC;CAiBH,AAAO,iCACLC,gBAAgB,SAAS,aAAa,qBACrC,OACD,aAAa,sBACb,aAAa;CA4Bf,AAAO,kBACLL,2BACAM,uBACC,aAAa;CAchB,AAAO,8BACLN,2BACAM,uBACC,aAAa;CAsChB,qBACEC,wBACAC,sBACAC,2BACE,aAAa,gBAAgB,aAAa;CAiB9C,mBAAmB,UAAU,sBAC3BC,KAAK,0BAA0B;CAEjC,mBACEC,KAAK,aAAa,aAAa;CAejC,mBAAmB,UAAU,aAAa,cACxCC,KAAK,GACLC,iBAAiB,eAAe;CAElC,mBACEC,KAAK,aAAa,cAClBC,iBAAiB;CAiBnB,kBACEC,KAAK,aAAa,aAClBC,iBAAiB;CA2BnB,sBAAsBC,KAAK,aAAa;CASxC,2BAA2BC,KAAK,aAAa;AA0C9C","names":["ontology: OntologiesV2.OntologyV2","request: OntologiesV2.LoadOntologyMetadataRequest","interfaceType: string","objectTypeApiName: string","actionTypeApiName: string","queryTypeApiNameAndVersion: string","queryTypeApiName: string","version?: string","objectApiNames: Iterable<OntologiesV2.ObjectTypeApiName>","linkTypeName: string","leftObjectType: string","leftLinkName: string","rightObjectType: string","def: TH_ObjectTypeFullMetadata<Q>","def: ReadonlyDeep<OntologiesV2.ObjectTypeFullMetadata>","def: Q","implementation?: FauxActionImpl<Q>","def: OntologiesV2.ActionTypeV2","implementation?: FauxActionImpl","def: OntologiesV2.QueryTypeV2","implementation?: FauxQueryImpl","def: OntologiesV2.InterfaceType","def: OntologiesV2.SharedPropertyType"],"sources":["../../../src/FauxFoundry/FauxOntology.ts"],"version":3,"file":"FauxOntology.d.ts"}
@@ -0,0 +1,5 @@
1
+ import type * as OntologiesV2 from "@osdk/foundry.ontologies";
2
+ import type { FauxDataStore } from "./FauxDataStore.js";
3
+ export interface FauxQueryImpl {
4
+ (req: OntologiesV2.ExecuteQueryRequest, fauxDataStore: FauxDataStore): OntologiesV2.ExecuteQueryResponse;
5
+ }
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,iBAAiB,kBAAkB,0BAA2B;AAC9D,cAAc,qBAAqB,oBAAqB;AAExD,iBAAiB,cAAc;EAE3BA,KAAK,aAAa,qBAClBC,eAAe,gBACd,aAAa;AACjB","names":["req: OntologiesV2.ExecuteQueryRequest","fauxDataStore: FauxDataStore"],"sources":["../../../src/FauxFoundry/FauxQueryImpl.ts"],"version":3,"file":"FauxQueryImpl.d.ts"}
@@ -0,0 +1,11 @@
1
+ import type * as OntologiesV2 from "@osdk/foundry.ontologies";
2
+ import type { BaseServerObject } from "./BaseServerObject.js";
3
+ export type ObjectLocator<
4
+ T extends OntologiesV2.ObjectTypeApiName = OntologiesV2.ObjectTypeApiName,
5
+ PK extends string = string
6
+ > = `${T}:${PK}`;
7
+ export declare function objectLocator(obj: BaseServerObject): ObjectLocator;
8
+ export declare function parseLocator(locator: ObjectLocator): {
9
+ objectType: string
10
+ primaryKey: string
11
+ };
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,iBAAiB,kBAAkB,0BAA2B;AAE9D,cAAc,wBAAwB,uBAAwB;AAE9D,YAAY;CACV,UAAU,aAAa,oBAAoB,aAAa;CACxD;OACK,KAAK;AAEZ,OAAO,iBAAS,cAAcA,KAAK,mBAAmB;AAItD,OAAO,iBAAS,aACdC,SAAS,gBACR;CAAE;CAAoB;AAAoB","names":["obj: BaseServerObject","locator: ObjectLocator"],"sources":["../../../src/FauxFoundry/ObjectLocator.ts"],"version":3,"file":"ObjectLocator.d.ts"}
@@ -0,0 +1,3 @@
1
+ import type * as OntologiesV2 from "@osdk/foundry.ontologies";
2
+ import type { BaseServerObject } from "./BaseServerObject.js";
3
+ export declare function filterObjects(objects: BaseServerObject[], where: OntologiesV2.SearchJsonQueryV2): BaseServerObject[];
@@ -0,0 +1 @@
1
+ {"mappings":"AAkBA,iBAAiB,kBAAkB,0BAA2B;AAE9D,cAAc,wBAAwB,uBAAwB;AAE9D,OAAO,iBAAS,cACdA,SAAS,oBACTC,OAAO,aAAa,oBACnB","names":["objects: BaseServerObject[]","where: OntologiesV2.SearchJsonQueryV2"],"sources":["../../../src/FauxFoundry/filterObjects.ts"],"version":3,"file":"filterObjects.d.ts"}
@@ -0,0 +1,2 @@
1
+ import type * as OntologiesV2 from "@osdk/foundry.ontologies";
2
+ export declare function filterTimeSeriesData(data: OntologiesV2.TimeSeriesPoint[], { range }: OntologiesV2.StreamTimeSeriesPointsRequest, now?: Date): OntologiesV2.TimeSeriesPoint[];
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,iBAAiB,kBAAkB,0BAA2B;AAkB9D,OAAO,iBAAS,qBACdA,MAAM,aAAa,mBACnB,EAAE,OAAmD,EAA1C,aAAa,+BACxBC,MAAK,OACJ,aAAa","names":["data: OntologiesV2.TimeSeriesPoint[]","now: Date"],"sources":["../../../src/FauxFoundry/filterTimeSeriesData.ts"],"version":3,"file":"filterTimeSeriesData.d.ts"}
@@ -0,0 +1 @@
1
+ {"mappings":"","names":[],"sources":["../../../src/FauxFoundry/filterTimeSeriesData.test.ts"],"version":3,"file":"filterTimeSeriesData.test.d.ts"}
@@ -0,0 +1,6 @@
1
+ import type * as OntologiesV2 from "@osdk/foundry.ontologies";
2
+ import type { BaseServerObject } from "./BaseServerObject.js";
3
+ import type { FauxDataStore } from "./FauxDataStore.js";
4
+ export declare function getObjectsFromSet(ds: FauxDataStore, objectSet: OntologiesV2.ObjectSet, methodInput: BaseServerObject | undefined): Array<BaseServerObject>;
5
+ export declare function getDerivedPropertyValue(ds: FauxDataStore, obj: BaseServerObject, def: OntologiesV2.DerivedPropertyDefinition): any;
6
+ export declare function createOrderBySortFn(orderBy: OntologiesV2.SearchOrderByV2): (a: BaseServerObject | undefined, b: BaseServerObject | undefined) => number;
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,iBAAiB,kBAAkB,0BAA2B;AAE9D,cAAc,wBAAwB,uBAAwB;AAC9D,cAAc,qBAAqB,oBAAqB;AAGxD,OAAO,iBAAS,kBACdA,IAAI,eACJC,WAAW,aAAa,WACxBC,aAAa,+BACZ,MAAM;AA4LT,OAAO,iBAAS,wBACdF,IAAI,eACJG,KAAK,kBACLC,KAAK,aAAa;AA2CpB,OAAO,iBAAS,oBACdC,SAAS,aAAa,mBAyBpBC,GAAG,8BACHC,GAAG","names":["ds: FauxDataStore","objectSet: OntologiesV2.ObjectSet","methodInput: BaseServerObject | undefined","obj: BaseServerObject","def: OntologiesV2.DerivedPropertyDefinition","orderBy: OntologiesV2.SearchOrderByV2","a: BaseServerObject | undefined","b: BaseServerObject | undefined"],"sources":["../../../src/FauxFoundry/getObjectsFromSet.ts"],"version":3,"file":"getObjectsFromSet.d.ts"}
@@ -0,0 +1,27 @@
1
+ import type { ActionParameterV2, ParameterId } from "@osdk/foundry.ontologies";
2
+ import type { Merge } from "type-fest";
3
+ import type { TH_ActionDefinition } from "./TH_ActionDefinition.js";
4
+ import type { SimpleActionParamTypes, TH_ActionParameterV2 } from "./TH_ActionParameterV2.js";
5
+ import type { TH_ActionTypeV2 } from "./TH_ActionTypeV2.js";
6
+ export declare function actionTypeBuilder<P extends Record<ParameterId, ActionParameterV2> = {}>(action: TH_ActionTypeV2<P> | string): ActionTypeBuilder<P>;
7
+ export declare function createActionRid(): string;
8
+ type NEW_P<
9
+ P extends Record<ParameterId, ActionParameterV2>,
10
+ K extends ParameterId,
11
+ V extends ActionParameterV2
12
+ > = Merge<P, { [KK in K] : V }>;
13
+ export interface ActionTypeBuilderResult<P extends Record<ParameterId, ActionParameterV2> = {}> {
14
+ actionTypeV2: TH_ActionTypeV2<P>;
15
+ actionDefinition: TH_ActionDefinition<TH_ActionTypeV2<P>>;
16
+ }
17
+ export declare class ActionTypeBuilder<P extends Record<ParameterId, ActionParameterV2> = {}> {
18
+ private action;
19
+ constructor(action: TH_ActionTypeV2<P> | string);
20
+ addParameter<
21
+ K extends ParameterId,
22
+ V extends ActionParameterV2 | SimpleActionParamTypes,
23
+ R extends boolean = false
24
+ >(paramId: K, parameter: V, required?: R | false): ActionTypeBuilder<NEW_P<P, K, V extends SimpleActionParamTypes ? TH_ActionParameterV2<V, R> : never>>;
25
+ build(): ActionTypeBuilderResult<P>;
26
+ }
27
+ export {};
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,mBAAmB,mBAAmB,0BAA2B;AAG/E,cAAc,aAAa,WAAY;AACvC,cACE,2BAEK,0BAA2B;AAClC,cACE,wBACA,4BACK,2BAA4B;AAEnC,cAAc,uBAAuB,sBAAuB;AAG5D,OAAO,iBAAS,kBACd,UAAU,OAAO,aAAa,qBAAqB,CAAE,GACrDA,QAAQ,gBAAgB,cAAc,kBAAkB;AAI1D,OAAO,iBAAS;KAIX;CACH,UAAU,OAAO,aAAa;CAC9B,UAAU;CACV,UAAU;IACR,MAAM,MAAM,MAAM,KAAI;AAE1B,iBAAiB,wBACf,UAAU,OAAO,aAAa,qBAAqB,CAAE,GACrD;CACA,cAAc,gBAAgB;CAC9B,kBAAkB,oBAAoB,gBAAgB;AACvD;AAED,OAAO,cAAM,kBACX,UAAU,OAAO,aAAa,qBAAqB,CAAE,GACrD;CACA,QAAQ;CAER,YAAYA,QAAQ,gBAAgB;CAWpC;EACE,UAAU;EACV,UAAU,oBAAoB;EAC9B,oBAAoB;GAEpBC,SAAS,GACTC,WAAW,GACXC,WAAU,IAAI,QACb,kBACD,MACE,GACA,GACA,UAAU,yBAAyB,qBAAqB,GAAG;CAgB/D,SAAS,wBAAwB;AAiBlC","names":["action: TH_ActionTypeV2<P> | string","paramId: K","parameter: V","required: R | false"],"sources":["../../../../src/FauxFoundry/typeHelpers/ActionTypeBuilder.ts"],"version":3,"file":"ActionTypeBuilder.d.ts"}
@@ -0,0 +1,4 @@
1
+ import type { CompileTimeMetadata, ObjectTypeDefinition } from "@osdk/api";
2
+ import type { ObjectTypeV2 } from "@osdk/foundry.ontologies";
3
+ import type { ToObjectTypeDefinition } from "./ToObjectTypeDefinition.js";
4
+ export type JustProps<T extends ObjectTypeV2 | ObjectTypeDefinition> = CompileTimeMetadata<T extends ObjectTypeV2 ? ToObjectTypeDefinition<T> : T>["props"];
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,qBAAqB,4BAA4B,WAAY;AAC3E,cAAc,oBAAoB,0BAA2B;AAC7D,cAAc,8BAA8B,6BAA8B;AAE1E,YAAY,UAAU,UAAU,eAAe,wBAC7C,oBACE,UAAU,eAAe,uBAAuB,KAAK,GACrD","names":[],"sources":["../../../../src/FauxFoundry/typeHelpers/JustProps.ts"],"version":3,"file":"JustProps.d.ts"}
@@ -0,0 +1,43 @@
1
+ import type { ActionDefinition, ActionMetadata, ActionParam, ActionReturnTypeForOptions, ApplyActionOptions, ApplyBatchActionOptions, DataValueClientToWire } from "@osdk/api";
2
+ import type { ActionParameterV2, ParameterId } from "@osdk/foundry.ontologies";
3
+ import type { TH_ActionParameterV2 } from "./TH_ActionParameterV2.js";
4
+ import type { TH_ActionTypeV2 } from "./TH_ActionTypeV2.js";
5
+ /**
6
+ * Helper type for converting a "const" `ActionTypeV2` into a "const"
7
+ * `ActionDefinition` for compile time checks
8
+ */
9
+ export interface TH_ActionDefinition<X extends TH_ActionTypeV2<Record<ParameterId, ActionParameterV2>>> extends ActionDefinition<any> {
10
+ __DefinitionMetadata: TH_ActionMetadata<X>;
11
+ }
12
+ export interface TH_ActionMetadata<X extends TH_ActionTypeV2<Record<ParameterId, ActionParameterV2>>> extends ActionMetadata {
13
+ parameters: X extends TH_ActionTypeV2<infer P> ? { [K in keyof P] : P[K] extends TH_ActionParameterV2<infer APT, infer R> ? (APT extends "string" | "integer" ? {
14
+ multiplicity: false
15
+ nullable: R extends true ? false : true
16
+ type: APT
17
+ } : never) : never } : never;
18
+ signatures: Signatures<TH_ActionMetadata<X>["parameters"]>;
19
+ }
20
+ interface Signatures<X extends Record<any, ActionMetadata.Parameter<any>>> {
21
+ applyAction: ActionSignature<X>;
22
+ batchApplyAction: <
23
+ A extends OsdkActionParameters<X>[],
24
+ OP extends ApplyBatchActionOptions
25
+ >(args: A, options?: OP) => Promise<ActionReturnTypeForOptions<OP>>;
26
+ }
27
+ type BaseType<APD extends Pick<ActionMetadata.Parameter<any>, "type">> = APD["type"] extends ActionMetadata.DataType.Object<infer TTargetType> ? ActionParam.ObjectType<TTargetType> : APD["type"] extends ActionMetadata.DataType.ObjectSet<infer TTargetType> ? ActionParam.ObjectSetType<TTargetType> : APD["type"] extends ActionMetadata.DataType.Struct<infer TStructType> ? ActionParam.StructType<TStructType> : APD["type"] extends keyof DataValueClientToWire ? ActionParam.PrimitiveType<APD["type"]> : never;
28
+ type ActionSignature<X extends Record<any, ActionMetadata.Parameter<any>>> = <
29
+ A extends OsdkActionParameters<X>,
30
+ OP extends ApplyActionOptions
31
+ >(args: A, options?: OP) => Promise<ActionReturnTypeForOptions<OP>>;
32
+ type ActionParametersDefinition = Record<any, ActionMetadata.Parameter<any>>;
33
+ type OsdkActionParameters<X extends ActionParametersDefinition> = PartialBy<FullParams<X>, NullableParamKeys<X>>;
34
+ type NullableParamKeys<T extends Record<string, {
35
+ nullable?: boolean
36
+ }>> = keyof { [K in keyof T as T[K]["nullable"] extends true ? K : never] : "" };
37
+ type FullParams<X extends ActionParametersDefinition> = { [P in keyof X] : MaybeArrayType<X[P]> };
38
+ type PartialBy<
39
+ T,
40
+ K extends keyof T
41
+ > = Omit<T, K> & Partial<Pick<T, K>>;
42
+ type MaybeArrayType<APD extends ActionMetadata.Parameter<any>> = APD["multiplicity"] extends true ? Array<BaseType<APD>> : BaseType<APD>;
43
+ export {};
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cACE,kBACA,gBACA,aACA,4BACA,oBACA,yBACA,6BACK,WAAY;AACnB,cAAc,mBAAmB,mBAAmB,0BAA2B;AAC/E,cAAc,4BAA4B,2BAA4B;AACtE,cAAc,uBAAuB,sBAAuB;;;;;AAM5D,iBAAiB,oBACf,UAAU,gBAAgB,OAAO,aAAa,6BACtC,sBAAsB;CAC9B,sBAAsB,kBAAkB;AACzC;AAED,iBAAiB,kBACf,UAAU,gBAAgB,OAAO,aAAa,6BACtC,eAAe;CACvB,YAAY,UAAU,sBAAsB,QACvC,WAAW,KAAI,EAAE,WAAW,2BAA2B,WAAW,MAC9D,YAAY,WAAW,YAAY;EAClC,cAAc;EACd,UAAU,UAAU,OAAO,QAAQ;EACnC,MAAM;CACP;CAOT,YAAY,WAAW,kBAAkB,GAAG;AAC7C;UACS,WAAW,UAAU,YAAY,eAAe,iBAAiB;CACzE,aAAa,gBAAgB;CAE7B;EACE,UAAU,qBAAqB;EAC/B,WAAW;GACXA,MAAM,GAAGC,UAAU,OAAO,QAAQ,2BAA2B;AAChE;KACI,SAAS,YAAY,KAAK,eAAe,gBAAgB,WAC5D,IAAI,gBAAgB,eAAe,SAAS,aAAa,eACrD,YAAY,WAAW,eACvB,IAAI,gBAAgB,eAAe,SAAS,gBAAgB,eAC1D,YAAY,cAAc,eAC5B,IAAI,gBAAgB,eAAe,SAAS,aAAa,eACvD,YAAY,WAAW,eACzB,IAAI,sBAAsB,wBACxB,YAAY,cAAc,IAAI;KAEjC,gBACH,UAAU,YAAY,eAAe;CAErC,UAAU,qBAAqB;CAC/B,WAAW;EAEXD,MAAM,GACNC,UAAU,OACP,QACH,2BAA2B;KAExB,6BAA6B,YAEhC,eAAe;KAEZ,qBACH,UAAU,8BACR,UAAU,WAAW,IAAI,kBAAkB;KAC1C,kBAAkB,UAAU,eAAe;CAAE;AAAoB,eAEjE,WAAW,KAAK,EAAE,GAAG,oBAAoB,OAAO,aAAY;KAE5D,WAAW,UAAU,iCACvB,WAAW,KAAI,eAAe,EAAE;KAE9B;CAAU;CAAG,gBAAgB;IAAK,KAAK,GAAG,KAAK,QAAQ,KAAK,GAAG;KAC/D,eAAe,YAAY,eAAe,kBAC7C,IAAI,wBAAwB,OAAO,MAAM,SAAS,QAAQ,SAAS","names":["args: A","options?: OP"],"sources":["../../../../src/FauxFoundry/typeHelpers/TH_ActionDefinition.ts"],"version":3,"file":"TH_ActionDefinition.d.ts"}
@@ -0,0 +1,15 @@
1
+ import type { ActionParameterV2 } from "@osdk/foundry.ontologies";
2
+ export type SimpleActionParamTypes = "string" | "integer" | "boolean";
3
+ export type TH_ActionParameterV2<
4
+ T extends SimpleActionParamTypes,
5
+ R extends boolean
6
+ > = {
7
+ dataType: {
8
+ type: T
9
+ }
10
+ required: R
11
+ } & ActionParameterV2;
12
+ export declare function createActionParameterV2<
13
+ T extends SimpleActionParamTypes,
14
+ R extends boolean
15
+ >(type: T, required: R): TH_ActionParameterV2<T, R>;
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,yBAAyB,0BAA2B;AAElE,YAAY,yBAAyB,WAAW,YAAY;AAE5D,YAAY;CACV,UAAU;CACV;IAEE;CACA,UAAU;EAAE,MAAM;CAAG;CACrB,UAAU;AACX,IACC;AAEJ,OAAO,iBAAS;CACd,UAAU;CACV;EACAA,MAAM,GAAGC,UAAU,IAAI,qBAAqB,GAAG","names":["type: T","required: R"],"sources":["../../../../src/FauxFoundry/typeHelpers/TH_ActionParameterV2.ts"],"version":3,"file":"TH_ActionParameterV2.d.ts"}
@@ -0,0 +1,8 @@
1
+ import type { ActionParameterV2, ActionTypeApiName, ActionTypeV2, ParameterId } from "@osdk/foundry.ontologies";
2
+ export interface TH_ActionTypeV2<P extends Record<ParameterId, ActionParameterV2>> extends ActionTypeV2 {
3
+ parameters: P;
4
+ }
5
+ export declare function createAction<P extends Record<ParameterId, ActionParameterV2>>({ apiName, parameters, rid, operations, status, description }: Partial<Omit<ActionTypeV2, "apiName" | "parameters">> & {
6
+ apiName: ActionTypeApiName
7
+ parameters: P
8
+ }): TH_ActionTypeV2<P>;
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cACE,mBACA,mBACA,cACA,mBACK,0BAA2B;AAGlC,iBAAiB,gBACf,UAAU,OAAO,aAAa,4BACtB,aAAa;CACrB,YAAY;AACb;AACD,OAAO,iBAAS,aAAa,UAAU,OAAO,aAAa,oBACzD,EACE,SACA,YACA,KACA,YACA,QACA,aAID,EAHE,QAAQ,KAAK,cAAc,YAAY,iBAAiB;CACzD,SAAS;CACT,YAAY;AACb,IACA,gBAAgB","names":[],"sources":["../../../../src/FauxFoundry/typeHelpers/TH_ActionTypeV2.ts"],"version":3,"file":"TH_ActionTypeV2.d.ts"}
@@ -0,0 +1,24 @@
1
+ import type { ActionParam } from "@osdk/api";
2
+ import type { ActionParameterType, ActionParameterV2, ActionTypeV2, ApplyActionRequestV2, AttachmentRid, ParameterId } from "@osdk/foundry.ontologies";
3
+ type TH_ActionParameterType_Primitive<X extends ActionParameterType> = X extends {
4
+ type: "attachment"
5
+ } ? AttachmentRid : ActionParam.PrimitiveType<Exclude<X["type"], "object" | "array" | "objectSet" | "interfaceObject" | "attachment" | "vector">>;
6
+ type TH_ActionParameterType<X extends ActionParameterType> = X extends {
7
+ type: "array"
8
+ } ? TH_ActionParameterType_Primitive<Extract<X, {
9
+ type: "array"
10
+ }>["subType"]>[] : X extends {
11
+ type: "object"
12
+ } ? string | number | boolean : X extends {
13
+ type: "objectSet"
14
+ } ? string : X extends {
15
+ type: "interfaceObject"
16
+ } ? {
17
+ objectTypeApiName: string
18
+ primaryKeyValue: string
19
+ } : TH_ActionParameterType_Primitive<X>;
20
+ type TH_Parameters<X extends Record<ParameterId, ActionParameterV2>> = { [K in keyof X & string as X[K]["required"] extends true ? K : never] : TH_ActionParameterType<X[K]["dataType"]> } & { [K in keyof X & string as X[K]["required"] extends true ? never : K]? : TH_ActionParameterType<X[K]["dataType"]> };
21
+ export type TH_ApplyActionRequestV2<X extends ActionTypeV2> = Omit<ApplyActionRequestV2, "parameters"> & {
22
+ parameters: TH_Parameters<X["parameters"]>
23
+ };
24
+ export {};
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,mBAAmB,WAAY;AAC7C,cACE,qBACA,mBACA,cACA,sBACA,eACA,mBACK,0BAA2B;KAE7B,iCAAiC,UAAU,uBAAuB,UACrE;CAAE,MAAM;AAAc,IAAG,gBACvB,YAAY,cACZ,QACE,EAAE,SACA,WACA,UACA,cACA,oBACA,eACA;KAIH,uBAAuB,UAAU,uBAAuB,UAC3D;CAAE,MAAM;AAAS,IACf,iCAAiC,QAAQ,GAAG;CAAE,MAAM;AAAS,GAAE,gBAC/D,UAAU;CAAE,MAAM;AAAU,gCAC5B,UAAU;CAAE,MAAM;AAAa,aAC/B,UAAU;CAAE,MAAM;AAAmB,IACnC;CAAE;CAA2B;AAAyB,IACxD,iCAAiC;KAEhC,cAAc,UAAU,OAAO,aAAa,yBAE5C,WAAW,cAAc,EAAE,GAAG,oBAAoB,OAAO,aACxD,uBAAuB,EAAE,GAAG,oBAG7B,WAAW,cAAc,EAAE,GAAG,oBAAoB,eAAe,MAChE,uBAAuB,EAAE,GAAG;AAGlC,YAAY,wBAAwB,UAAU,gBAC1C,KAAK,sBAAsB,gBAC3B;CAAE,YAAY,cAAc,EAAE;AAAgB","names":[],"sources":["../../../../src/FauxFoundry/typeHelpers/TH_ApplyActionRequestV2.ts"],"version":3,"file":"TH_ApplyActionRequestV2.d.ts"}
@@ -0,0 +1,18 @@
1
+ import type { CompileTimeMetadata, ObjectMetadata, ObjectTypeDefinition } from "@osdk/api";
2
+ import type * as OntologiesV2 from "@osdk/foundry.ontologies";
3
+ interface TypeHelper_Property<Q extends ObjectMetadata.Property> extends OntologiesV2.PropertyV2 {
4
+ dataType: OntologiesV2.ObjectPropertyType & {
5
+ type: Q["type"]
6
+ };
7
+ }
8
+ type TypeHelper_Properties<Q extends ObjectTypeDefinition> = { [K in keyof CompileTimeMetadata<Q>["properties"]] : TypeHelper_Property<CompileTimeMetadata<Q>["properties"][K]> };
9
+ interface TypeHelper_ObjectType<Q extends ObjectTypeDefinition> extends OntologiesV2.ObjectTypeV2 {
10
+ apiName: Q["apiName"];
11
+ primaryKey: CompileTimeMetadata<Q>["primaryKeyApiName"];
12
+ titleProperty: CompileTimeMetadata<Q>["titleProperty"];
13
+ properties: TypeHelper_Properties<Q>;
14
+ }
15
+ export interface TH_ObjectTypeFullMetadata<Q extends ObjectTypeDefinition> extends OntologiesV2.ObjectTypeFullMetadata {
16
+ objectType: TypeHelper_ObjectType<Q>;
17
+ }
18
+ export {};
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cACE,qBACA,gBACA,4BACK,WAAY;AACnB,iBAAiB,kBAAkB,0BAA2B;UAEpD,oBAAoB,UAAU,eAAe,kBAC7C,aAAa,WACvB;CACE,UAAU,aAAa,qBAAqB;EAAE,MAAM,EAAE;CAAS;AAChE;KAEI,sBAAsB,UAAU,2BAClC,WAAW,oBAAoB,GAAG,iBAAgB,oBACjD,oBAAoB,GAAG,cAAc;UAI/B,sBAAsB,UAAU,8BAChC,aAAa,aACvB;CACE,SAAS,EAAE;CACX,YAAY,oBAAoB,GAAG;CACnC,eAAe,oBAAoB,GAAG;CACtC,YAAY,sBAAsB;AACnC;AAED,iBAAiB,0BAA0B,UAAU,8BAC3C,aAAa,uBACvB;CACE,YAAY,sBAAsB;AACnC","names":[],"sources":["../../../../src/FauxFoundry/typeHelpers/TH_ObjectTypeFullMetadata.ts"],"version":3,"file":"TH_ObjectTypeFullMetadata.d.ts"}
@@ -0,0 +1,12 @@
1
+ import type { ObjectMetadata, PropertyDef, PropertyValueWireToClient } from "@osdk/api";
2
+ import type { ObjectTypeV2, PropertyV2 } from "@osdk/foundry.ontologies";
3
+ type PropertyV2ToWirePropertyTypes<T extends PropertyV2> = T["dataType"]["type"] extends "array" ? never : T["dataType"]["type"] extends "date" ? "timestamp" : Exclude<T["dataType"]["type"], "array" | "date" | "struct" | "cipherText" | "timeseries" | "vector">;
4
+ export type ToObjectTypeDefinition<T extends ObjectTypeV2> = {
5
+ type: "object"
6
+ apiName: T["apiName"]
7
+ __DefinitionMetadata: Omit<ObjectMetadata, "properties"> & {
8
+ props: { [key in keyof T["properties"] & string]? : PropertyValueWireToClient[PropertyV2ToWirePropertyTypes<T["properties"][key]>] } & { [key in T["primaryKey"]] : PropertyValueWireToClient[PropertyV2ToWirePropertyTypes<T["properties"][key]>] }
9
+ properties: { [key in keyof T["properties"] & string] : PropertyDef<PropertyV2ToWirePropertyTypes<T["properties"][key]>> }
10
+ }
11
+ };
12
+ export {};
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cACE,gBACA,aACA,iCACK,WAAY;AACnB,cAAc,cAAc,kBAAkB,0BAA2B;KAEpE,8BAA8B,UAAU,cAC3C,EAAE,YAAY,gBAAgB,kBAC1B,EAAE,YAAY,gBAAgB,SAAS,cACvC,QACA,EAAE,YAAY,SACd,UAAU,SAAS,WAAW,eAAe,eAAe;AAGlE,YAAY,uBAAuB,UAAU,gBAAgB;CAC3D,MAAM;CACN,SAAS,EAAE;CACX,sBAAsB,KAAK,gBAAgB,gBAAgB;EACzD,UAEK,aAAa,EAAE,2BAA0B,0BACxC,8BAA8B,EAAE,cAAc,cAK/C,OAAO,EAAE,iBAAgB,0BACxB,8BAA8B,EAAE,cAAc;EAGpD,eACG,aAAa,EAAE,0BAAyB,YACvC,8BAA8B,EAAE,cAAc;CAGnD;AACF","names":[],"sources":["../../../../src/FauxFoundry/typeHelpers/ToObjectTypeDefinition.ts"],"version":3,"file":"ToObjectTypeDefinition.d.ts"}
@@ -0,0 +1,10 @@
1
+ export { actionTypeBuilder, createActionRid } from "./ActionTypeBuilder.js";
2
+ export type { ActionTypeBuilderResult } from "./ActionTypeBuilder.js";
3
+ export type { JustProps } from "./JustProps.js";
4
+ export type { TH_ActionDefinition as ActionDefinition, TH_ActionMetadata as ActionMetadata } from "./TH_ActionDefinition.js";
5
+ export { createActionParameterV2 } from "./TH_ActionParameterV2.js";
6
+ export type { TH_ActionParameterV2 as ActionParameterV2 } from "./TH_ActionParameterV2.js";
7
+ export { createAction as createActionType } from "./TH_ActionTypeV2.js";
8
+ export type { TH_ActionTypeV2 as ActionTypeV2 } from "./TH_ActionTypeV2.js";
9
+ export type { TH_ApplyActionRequestV2 as ApplyActionRequestV2 } from "./TH_ApplyActionRequestV2.js";
10
+ export type { TH_ObjectTypeFullMetadata as ObjectTypeFullMetadata } from "./TH_ObjectTypeFullMetadata.js";
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,SAAS,mBAAmB,uBAAuB;AACnD,cAAc,+BAA+B;AAC7C,cAAc,iBAAiB;AAC/B,cACE,uBAAuB,kBACvB,qBAAqB,sBAChB;AACP,SAAS,+BAA+B;AACxC,cAAc,wBAAwB,yBAAyB;AAC/D,SAAS,gBAAgB,wBAAwB;AACjD,cAAc,mBAAmB,oBAAoB;AACrD,cAAc,2BAA2B,4BAA4B;AACrE,cAAc,6BAA6B,8BAA8B","names":[],"sources":["../../../../src/FauxFoundry/typeHelpers/index.ts"],"version":3,"file":"index.d.ts"}
@@ -0,0 +1,9 @@
1
+ import type { MediaReference } from "@osdk/foundry.core";
2
+ import type { ActionTypeV2, ApplyActionRequestV2, BatchApplyActionRequestItem, ValidateActionResponseV2 } from "@osdk/foundry.ontologies";
3
+ import type { FauxDataStore } from "./FauxDataStore.js";
4
+ export declare function validateAction(payload: ApplyActionRequestV2 | BatchApplyActionRequestItem, def: ActionTypeV2, dataStore: FauxDataStore): ValidateActionResponseV2;
5
+ export declare function isMediaReference(o: any): o is MediaReference;
6
+ export declare function isInterfaceActionParam(value: any): value is {
7
+ objectTypeApiName: string
8
+ primaryKeyValue: string | number | boolean
9
+ };
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,sBAAsB,oBAAqB;AACzD,cAGE,cACA,sBACA,6BAGA,gCACK,0BAA2B;AAClC,cAAc,qBAAqB,oBAAqB;AAExD,OAAO,iBAAS,eACdA,SAAS,uBAAuB,6BAChCC,KAAK,cACLC,WAAW,gBACV;AAySH,OAAO,iBAAS,iBAAiBC,SAAS,KAAK;AAa/C,OAAO,iBAAS,uBAAuBC,aAAa,SAAS;CAC3D;CACA;AACD","names":["payload: ApplyActionRequestV2 | BatchApplyActionRequestItem","def: ActionTypeV2","dataStore: FauxDataStore","o: any","value: any"],"sources":["../../../src/FauxFoundry/validateAction.ts"],"version":3,"file":"validateAction.d.ts"}
@@ -0,0 +1,7 @@
1
+ export declare const defaultOntologyForConjure: {
2
+ readonly apiName: string
3
+ readonly displayName: string
4
+ readonly description: string
5
+ readonly currentOntologyVersion: "0000000c-aaaa-bbbb-cccc-ddddeeeeffff"
6
+ readonly defaultBranchRid: "ri.ontology.main.branch.99999999-8888-7777-6666-555555555555"
7
+ };
@@ -0,0 +1 @@
1
+ {"mappings":"AAkBA,OAAO,cAAM;UACX;UACA;UACA;UACA,wBAAwB;UACxB,kBACE","names":[],"sources":["../../src/defaultOntologyForConjure.ts"],"version":3,"file":"defaultOntologyForConjure.d.ts"}
@@ -0,0 +1,2 @@
1
+ import type { Ontology } from "@osdk/foundry.ontologies";
2
+ export declare const defaultOntologyMetadata: Ontology;
@@ -0,0 +1 @@
1
+ {"mappings":"AAgBA,cAAc,gBAAgB,0BAA2B;AAEzD,OAAO,cAAMA,yBAAyB","names":["defaultOntologyMetadata: Ontology"],"sources":["../../src/defaultOntologyMetadata.ts"],"version":3,"file":"defaultOntologyMetadata.d.ts"}
@@ -0,0 +1,14 @@
1
+ import type { ActionNotFound, ApplyActionFailed, AttachmentNotFound, AttachmentSizeExceededLimit, InvalidContentType, LinkTypeNotFound as OGLinkTypeNotFound, ObjectNotFound, ObjectTypeNotFound, OntologyNotFound, QueryEncounteredUserFacingError, QueryNotFound } from "@osdk/internal.foundry.ontologies";
2
+ import type { BaseAPIError } from "./BaseError.js";
3
+ export declare function ObjectTypeDoesNotExistError(objectType: string): ObjectTypeNotFound;
4
+ export declare function LinkTypeNotFound(objectType: string, linkType: string): OGLinkTypeNotFound;
5
+ export declare function OntologyNotFoundError(ontology: string): OntologyNotFound;
6
+ export declare function ObjectNotFoundError(objectType: string, primaryKey: string): ObjectNotFound;
7
+ export declare function QueryNotFoundError(queryApiName: string): QueryNotFound;
8
+ export declare function ActionNotFoundError(): ActionNotFound;
9
+ export declare function InvalidRequest(errorName: string): BaseAPIError;
10
+ export declare const ApplyActionFailedError: ApplyActionFailed;
11
+ export declare const ExecuteQueryFailedError: QueryEncounteredUserFacingError;
12
+ export declare const InvalidContentTypeError: InvalidContentType;
13
+ export declare const AttachmentSizeExceededLimitError: AttachmentSizeExceededLimit;
14
+ export declare const AttachmentNotFoundError: AttachmentNotFound;
@@ -0,0 +1 @@
1
+ {"mappings":"AAkBA,cACE,gBACA,mBACA,oBACA,6BACA,oBACA,oBAAoB,oBACpB,gBACA,oBACA,kBACA,iCACA,qBACK,mCAAoC;AAC3C,cAAc,oBAAoB,gBAAiB;AAKnD,OAAO,iBAAS,4BACdA,qBACC;AAYH,OAAO,iBAAS,iBACdA,oBACAC,mBACC;AAYH,OAAO,iBAAS,sBACdC,mBACC;AAYH,OAAO,iBAAS,oBACdF,oBACAG,qBACC;AAcH,OAAO,iBAAS,mBAAmBC,uBAAuB;AAW1D,OAAO,iBAAS,uBAAuB;AAWvC,OAAO,iBAAS,eAAeC,oBAAoB;AASnD,OAAO,cAAMC,wBAAwB;AAOrC,OAAO,cAAMC,yBAAyB;AAYtC,OAAO,cAAMC,yBAAyB;AAOtC,OAAO,cAAMC,kCAAkC;AAU/C,OAAO,cAAMC,yBAAyB","names":["objectType: string","linkType: string","ontology: string","primaryKey: string","queryApiName: string","errorName: string","ApplyActionFailedError: ApplyActionFailed","ExecuteQueryFailedError: QueryEncounteredUserFacingError","InvalidContentTypeError: InvalidContentType","AttachmentSizeExceededLimitError: AttachmentSizeExceededLimit","AttachmentNotFoundError: AttachmentNotFound"],"sources":["../../src/errors.ts"],"version":3,"file":"errors.d.ts"}
@@ -0,0 +1,8 @@
1
+ import type { OntologyObject, OntologyObjectV2 } from "@osdk/foundry.ontologies";
2
+ import type { PagedBodyResponse, PagedBodyResponseWithTotal } from "./handlers/util/pageThroughResponseSearchParams.js";
3
+ export declare function subSelectPropertiesUrl<T extends OntologyObjectV2 | OntologyObject>(object: T, url: URL): T;
4
+ export declare function subSelectProperties<
5
+ T extends OntologyObjectV2,
6
+ TResponse extends PagedBodyResponse<T> | PagedBodyResponseWithTotal<T>,
7
+ TIncludeCount extends (TResponse extends PagedBodyResponseWithTotal<T> ? true : false)
8
+ >(objects: PagedBodyResponse<T>, urlOrProperties: URL | string[], includeCount: TIncludeCount, excludeRid?: boolean): TIncludeCount extends true ? PagedBodyResponseWithTotal<T> : PagedBodyResponse<T>;