@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,49 @@
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
+ import { ApplyActionFailedError } from "../errors.js";
18
+ import { OntologiesV2 } from "../mock/index.js";
19
+ import { OpenApiCallError } from "./util/handleOpenApiCall.js";
20
+ export const createActionHandlers = (baseUrl, fauxFoundry) => [
21
+ /**
22
+ * Apply an Action
23
+ */
24
+ OntologiesV2.Actions.apply(baseUrl, async ({
25
+ params: {
26
+ ontologyApiName,
27
+ actionType
28
+ },
29
+ request
30
+ }) => {
31
+ const response = fauxFoundry.getDataStore(ontologyApiName).applyAction(actionType, await request.json());
32
+
33
+ // this is just for the legacy code that registered `undefined` as the return
34
+ // value causing this code path. Once we get rid of the uses of
35
+ // `createLazyDoNothingActionImpl` this should be removed.
36
+ if (!response) {
37
+ throw new OpenApiCallError(400, ApplyActionFailedError);
38
+ }
39
+ return response;
40
+ }), OntologiesV2.Actions.applyBatch(baseUrl, async ({
41
+ params: {
42
+ ontologyApiName,
43
+ actionType
44
+ },
45
+ request
46
+ }) => {
47
+ return fauxFoundry.getDataStore(ontologyApiName).batchApplyAction(actionType, await request.json());
48
+ })];
49
+ //# sourceMappingURL=createActionHandlers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createActionHandlers.js","names":["ApplyActionFailedError","OntologiesV2","OpenApiCallError","createActionHandlers","baseUrl","fauxFoundry","Actions","apply","params","ontologyApiName","actionType","request","response","getDataStore","applyAction","json","applyBatch","batchApplyAction"],"sources":["createActionHandlers.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { RequestHandler } from \"msw\";\nimport { ApplyActionFailedError } from \"../errors.js\";\nimport type { FauxFoundry } from \"../FauxFoundry/FauxFoundry.js\";\nimport { OntologiesV2 } from \"../mock/index.js\";\nimport { OpenApiCallError } from \"./util/handleOpenApiCall.js\";\n\nexport const createActionHandlers = (\n baseUrl: string,\n fauxFoundry: FauxFoundry,\n): Array<RequestHandler> => [\n /**\n * Apply an Action\n */\n OntologiesV2.Actions.apply(\n baseUrl,\n async ({ params: { ontologyApiName, actionType }, request }) => {\n const response = fauxFoundry\n .getDataStore(ontologyApiName)\n .applyAction(actionType, await request.json());\n\n // this is just for the legacy code that registered `undefined` as the return\n // value causing this code path. Once we get rid of the uses of\n // `createLazyDoNothingActionImpl` this should be removed.\n if (!response) {\n throw new OpenApiCallError(400, ApplyActionFailedError);\n }\n\n return response;\n },\n ),\n\n OntologiesV2.Actions.applyBatch(\n baseUrl,\n async ({ params: { ontologyApiName, actionType }, request }) => {\n return fauxFoundry\n .getDataStore(ontologyApiName)\n .batchApplyAction(actionType, await request.json());\n },\n ),\n];\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,sBAAsB,QAAQ,cAAc;AAErD,SAASC,YAAY,QAAQ,kBAAkB;AAC/C,SAASC,gBAAgB,QAAQ,6BAA6B;AAE9D,OAAO,MAAMC,oBAAoB,GAAGA,CAClCC,OAAe,EACfC,WAAwB,KACE;AAC1B;AACF;AACA;AACEJ,YAAY,CAACK,OAAO,CAACC,KAAK,CACxBH,OAAO,EACP,OAAO;EAAEI,MAAM,EAAE;IAAEC,eAAe;IAAEC;EAAW,CAAC;EAAEC;AAAQ,CAAC,KAAK;EAC9D,MAAMC,QAAQ,GAAGP,WAAW,CACzBQ,YAAY,CAACJ,eAAe,CAAC,CAC7BK,WAAW,CAACJ,UAAU,EAAE,MAAMC,OAAO,CAACI,IAAI,CAAC,CAAC,CAAC;;EAEhD;EACA;EACA;EACA,IAAI,CAACH,QAAQ,EAAE;IACb,MAAM,IAAIV,gBAAgB,CAAC,GAAG,EAAEF,sBAAsB,CAAC;EACzD;EAEA,OAAOY,QAAQ;AACjB,CACF,CAAC,EAEDX,YAAY,CAACK,OAAO,CAACU,UAAU,CAC7BZ,OAAO,EACP,OAAO;EAAEI,MAAM,EAAE;IAAEC,eAAe;IAAEC;EAAW,CAAC;EAAEC;AAAQ,CAAC,KAAK;EAC9D,OAAON,WAAW,CACfQ,YAAY,CAACJ,eAAe,CAAC,CAC7BQ,gBAAgB,CAACP,UAAU,EAAE,MAAMC,OAAO,CAACI,IAAI,CAAC,CAAC,CAAC;AACvD,CACF,CAAC,CACF","ignoreList":[]}
@@ -0,0 +1,88 @@
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
+ /* eslint-disable @typescript-eslint/require-await */
18
+
19
+ import { randomUUID } from "node:crypto";
20
+ import { OntologiesV2 } from "../mock/index.js";
21
+ import { requireSearchParams } from "./util/requireSearchParams.js";
22
+ export const createAttachmentHandlers = (baseUrl, fauxFoundry) => [
23
+ /**
24
+ * Upload attachment
25
+ */
26
+ OntologiesV2.Attachments.upload(baseUrl, async ({
27
+ request
28
+ }) => {
29
+ const {
30
+ filename
31
+ } = requireSearchParams(["filename"], request);
32
+ return fauxFoundry.attachments.registerAttachment({
33
+ buffer: await request.arrayBuffer(),
34
+ filename,
35
+ mediaType: request.headers.get("Content-Type") ?? "application/octet-stream",
36
+ rid: `ri.attachments.main.attachment.${randomUUID()}`
37
+ });
38
+ }),
39
+ /**
40
+ * Get attachment metadata V1
41
+ */
42
+
43
+ OntologiesV2.Attachments.get(baseUrl, async ({
44
+ params
45
+ }) => {
46
+ return fauxFoundry.attachments.getAttachmentMetadataByRid(params.attachmentRid);
47
+ }),
48
+ /**
49
+ * Get attachment metadata V2
50
+ */
51
+
52
+ OntologiesV2.AttachmentPropertiesV2.getAttachment(baseUrl, async ({
53
+ params: {
54
+ ontologyApiName,
55
+ primaryKey,
56
+ objectType,
57
+ propertyName
58
+ }
59
+ }) => {
60
+ return {
61
+ ...fauxFoundry.getDataStore(ontologyApiName).getAttachmentMetadata(objectType, primaryKey, propertyName),
62
+ type: "single"
63
+ };
64
+ }),
65
+ /**
66
+ * Read attachment content V1
67
+ */
68
+
69
+ OntologiesV2.Attachments.read(baseUrl, async ({
70
+ params
71
+ }) => {
72
+ return new Response(fauxFoundry.attachments.getAttachmentBuffer(params.attachmentRid));
73
+ }),
74
+ /**
75
+ * Read attachment content V2
76
+ */
77
+
78
+ OntologiesV2.AttachmentPropertiesV2.readAttachment(baseUrl, async ({
79
+ params: {
80
+ ontologyApiName,
81
+ primaryKey,
82
+ objectType,
83
+ propertyName
84
+ }
85
+ }) => {
86
+ return new Response(fauxFoundry.getDataStore(ontologyApiName).getAttachmentBuffer(objectType, primaryKey, propertyName));
87
+ })];
88
+ //# sourceMappingURL=createAttachmentHandlers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createAttachmentHandlers.js","names":["randomUUID","OntologiesV2","requireSearchParams","createAttachmentHandlers","baseUrl","fauxFoundry","Attachments","upload","request","filename","attachments","registerAttachment","buffer","arrayBuffer","mediaType","headers","get","rid","params","getAttachmentMetadataByRid","attachmentRid","AttachmentPropertiesV2","getAttachment","ontologyApiName","primaryKey","objectType","propertyName","getDataStore","getAttachmentMetadata","type","read","Response","getAttachmentBuffer","readAttachment"],"sources":["createAttachmentHandlers.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* eslint-disable @typescript-eslint/require-await */\n\nimport { randomUUID } from \"node:crypto\";\nimport { OntologiesV2 } from \"../mock/index.js\";\nimport type { FauxFoundryHandlersFactory } from \"./createFauxFoundryHandlers.js\";\nimport { requireSearchParams } from \"./util/requireSearchParams.js\";\n\nexport const createAttachmentHandlers: FauxFoundryHandlersFactory = (\n baseUrl,\n fauxFoundry,\n) => [\n /**\n * Upload attachment\n */\n OntologiesV2.Attachments.upload(\n baseUrl,\n async ({ request }) => {\n const { filename } = requireSearchParams([\"filename\"], request);\n\n return fauxFoundry.attachments.registerAttachment({\n buffer: await request.arrayBuffer(),\n filename,\n mediaType: request.headers.get(\"Content-Type\")\n ?? \"application/octet-stream\",\n rid: `ri.attachments.main.attachment.${randomUUID()}`,\n });\n },\n ),\n\n /**\n * Get attachment metadata V1\n */\n\n OntologiesV2.Attachments.get(\n baseUrl,\n async ({ params }) => {\n return fauxFoundry\n .attachments\n .getAttachmentMetadataByRid(params.attachmentRid);\n },\n ),\n\n /**\n * Get attachment metadata V2\n */\n\n OntologiesV2.AttachmentPropertiesV2.getAttachment(\n baseUrl,\n async (\n { params: { ontologyApiName, primaryKey, objectType, propertyName } },\n ) => {\n return {\n ...fauxFoundry.getDataStore(ontologyApiName)\n .getAttachmentMetadata(objectType, primaryKey, propertyName),\n type: \"single\" as const,\n };\n },\n ),\n\n /**\n * Read attachment content V1\n */\n\n OntologiesV2.Attachments.read(\n baseUrl,\n async ({ params }) => {\n return new Response(fauxFoundry\n .attachments.getAttachmentBuffer(params.attachmentRid));\n },\n ),\n\n /**\n * Read attachment content V2\n */\n\n OntologiesV2.AttachmentPropertiesV2.readAttachment(\n baseUrl,\n async (\n { params: { ontologyApiName, primaryKey, objectType, propertyName } },\n ) => {\n return new Response(\n fauxFoundry.getDataStore(ontologyApiName).getAttachmentBuffer(\n objectType,\n primaryKey,\n propertyName,\n ),\n );\n },\n ),\n];\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,SAASA,UAAU,QAAQ,aAAa;AACxC,SAASC,YAAY,QAAQ,kBAAkB;AAE/C,SAASC,mBAAmB,QAAQ,+BAA+B;AAEnE,OAAO,MAAMC,wBAAoD,GAAGA,CAClEC,OAAO,EACPC,WAAW,KACR;AACH;AACF;AACA;AACEJ,YAAY,CAACK,WAAW,CAACC,MAAM,CAC7BH,OAAO,EACP,OAAO;EAAEI;AAAQ,CAAC,KAAK;EACrB,MAAM;IAAEC;EAAS,CAAC,GAAGP,mBAAmB,CAAC,CAAC,UAAU,CAAC,EAAEM,OAAO,CAAC;EAE/D,OAAOH,WAAW,CAACK,WAAW,CAACC,kBAAkB,CAAC;IAChDC,MAAM,EAAE,MAAMJ,OAAO,CA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,CAC3DP,UAAU,EACVD,UAAU,EACVE,YACF,CACF,CAAC;AACH,CACF,CAAC,CACF","ignoreList":[]}
@@ -0,0 +1,29 @@
1
+ /*
2
+ * Copyright 2025 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
+ import { createActionHandlers } from "./createActionHandlers.js";
18
+ import { createAttachmentHandlers } from "./createAttachmentHandlers.js";
19
+ import { createLoadObjectsHandlers } from "./createLoadObjectsHandlers.js";
20
+ import { createMediaRefHandlers } from "./createMediaRefHandlers.js";
21
+ import { createMultipassServerHandlers } from "./createMultipassServerHandlers.js";
22
+ import { createObjectSetHandlers } from "./createObjectSetHandlers.js";
23
+ import { createOntologyHandlers } from "./createOntologyHandlers.js";
24
+ import { createQueryHandlers } from "./createQueryHandlers.js";
25
+ import { createTimeseriesAndGeotimeHandlers } from "./createTimeseriesAndGeotimeHandlers.js";
26
+ export function createFauxFoundryHandlers(baseUrl, fauxFoundry) {
27
+ return [createMultipassServerHandlers, createActionHandlers, createObjectSetHandlers, createOntologyHandlers, createQueryHandlers, createLoadObjectsHandlers, createTimeseriesAndGeotimeHandlers, createAttachmentHandlers, createMediaRefHandlers].flatMap(x => x(baseUrl, fauxFoundry));
28
+ }
29
+ //# sourceMappingURL=createFauxFoundryHandlers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createFauxFoundryHandlers.js","names":["createActionHandlers","createAttachmentHandlers","createLoadObjectsHandlers","createMediaRefHandlers","createMultipassServerHandlers","createObjectSetHandlers","createOntologyHandlers","createQueryHandlers","createTimeseriesAndGeotimeHandlers","createFauxFoundryHandlers","baseUrl","fauxFoundry","flatMap","x"],"sources":["createFauxFoundryHandlers.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { RequestHandler } from \"msw\";\nimport type { FauxFoundry } from \"../FauxFoundry/FauxFoundry.js\";\nimport { createActionHandlers } from \"./createActionHandlers.js\";\nimport { createAttachmentHandlers } from \"./createAttachmentHandlers.js\";\nimport { createLoadObjectsHandlers } from \"./createLoadObjectsHandlers.js\";\nimport { createMediaRefHandlers } from \"./createMediaRefHandlers.js\";\nimport { createMultipassServerHandlers } from \"./createMultipassServerHandlers.js\";\nimport { createObjectSetHandlers } from \"./createObjectSetHandlers.js\";\nimport { createOntologyHandlers } from \"./createOntologyHandlers.js\";\nimport { createQueryHandlers } from \"./createQueryHandlers.js\";\nimport { createTimeseriesAndGeotimeHandlers } from \"./createTimeseriesAndGeotimeHandlers.js\";\n\nexport type FauxFoundryHandlersFactory = (\n baseUrl: string,\n fauxFoundry: FauxFoundry,\n) => Array<RequestHandler>;\n\nexport function createFauxFoundryHandlers(\n baseUrl: string,\n fauxFoundry: FauxFoundry,\n): Array<RequestHandler> {\n return [\n createMultipassServerHandlers,\n createActionHandlers,\n createObjectSetHandlers,\n createOntologyHandlers,\n createQueryHandlers,\n createLoadObjectsHandlers,\n createTimeseriesAndGeotimeHandlers,\n createAttachmentHandlers,\n createMediaRefHandlers,\n ].flatMap(x => x(baseUrl, fauxFoundry));\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,oBAAoB,QAAQ,2BAA2B;AAChE,SAASC,wBAAwB,QAAQ,+BAA+B;AACxE,SAASC,yBAAyB,QAAQ,gCAAgC;AAC1E,SAASC,sBAAsB,QAAQ,6BAA6B;AACpE,SAASC,6BAA6B,QAAQ,oCAAoC;AAClF,SAASC,uBAAuB,QAAQ,8BAA8B;AACtE,SAASC,sBAAsB,QAAQ,6BAA6B;AACpE,SAASC,mBAAmB,QAAQ,0BAA0B;AAC9D,SAASC,kCAAkC,QAAQ,yCAAyC;AAO5F,OAAO,SAASC,yBAAyBA,CACvCC,OAAe,EACfC,WAAwB,EACD;EACvB,OAAO,CACLP,6BAA6B,EAC7BJ,oBAAoB,EACpBK,uBAAuB,EACvBC,sBAAsB,EACtBC,mBAAmB,EACnBL,yBAAyB,EACzBM,kCAAkC,EAClCP,wBAAwB,EACxBE,sBAAsB,CACvB,CAACS,OAAO,CAACC,CAAC,IAAIA,CAAC,CAACH,OAAO,EAAEC,WAAW,CAAC,CAAC;AACzC","ignoreList":[]}
@@ -0,0 +1,91 @@
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
+ /* eslint-disable @typescript-eslint/require-await */
18
+
19
+ import { InvalidRequest } from "../errors.js";
20
+ import { subSelectProperties, subSelectPropertiesUrl } from "../filterObjects.js";
21
+ import { OntologiesV2 } from "../mock/index.js";
22
+ import { getPaginationParamsFromUrl } from "./util/getPaginationParams.js";
23
+ import { OpenApiCallError } from "./util/handleOpenApiCall.js";
24
+ import { pageThroughResponseSearchParams } from "./util/pageThroughResponseSearchParams.js";
25
+ export const createLoadObjectsHandlers = (baseUrl, fauxFoundry) => [
26
+ /**
27
+ * Load object
28
+ */
29
+ OntologiesV2.OntologyObjectsV2.get(baseUrl, async ({
30
+ request,
31
+ params: {
32
+ ontologyApiName,
33
+ objectType,
34
+ primaryKey
35
+ }
36
+ }) => {
37
+ return subSelectPropertiesUrl(fauxFoundry.getDataStore(ontologyApiName).getObjectOrThrow(objectType, primaryKey), new URL(request.url));
38
+ }),
39
+ /**
40
+ * Load all objects
41
+ */
42
+ OntologiesV2.OntologyObjectsV2.list(baseUrl, async ({
43
+ request,
44
+ params: {
45
+ ontologyApiName,
46
+ objectType
47
+ }
48
+ }) => {
49
+ const loadObjects = pageThroughResponseSearchParams(fauxFoundry.getDataStore(ontologyApiName).getObjectsOfType(objectType), getPaginationParamsFromUrl(request), true);
50
+ if (loadObjects) {
51
+ return subSelectProperties(loadObjects, new URL(request.url), true);
52
+ }
53
+ throw new OpenApiCallError(400, InvalidRequest("Invalid Request"));
54
+ }),
55
+ /**
56
+ * List Linked Objects
57
+ */
58
+ OntologiesV2.LinkedObjectsV2.listLinkedObjects(baseUrl, async ({
59
+ request,
60
+ params: {
61
+ primaryKey,
62
+ linkType,
63
+ objectType,
64
+ ontologyApiName
65
+ }
66
+ }) => {
67
+ const linkResults = fauxFoundry.getDataStore(ontologyApiName).getLinksOrThrow(objectType, primaryKey, linkType);
68
+ const objects = pageThroughResponseSearchParams(linkResults, getPaginationParamsFromUrl(request), true);
69
+ if (objects) {
70
+ return subSelectProperties(objects, new URL(request.url), false);
71
+ }
72
+ throw new OpenApiCallError(400, InvalidRequest("Invalid Request"));
73
+ }),
74
+ /**
75
+ * Get specific Linked Object
76
+ */
77
+
78
+ OntologiesV2.LinkedObjectsV2.getLinkedObject(baseUrl, async ({
79
+ request,
80
+ params: {
81
+ ontologyApiName,
82
+ objectType,
83
+ primaryKey,
84
+ linkType,
85
+ targetPrimaryKey
86
+ }
87
+ }) => {
88
+ const object = fauxFoundry.getDataStore(ontologyApiName).getLinkOrThrow(objectType, primaryKey, linkType, targetPrimaryKey);
89
+ return subSelectPropertiesUrl(object, new URL(request.url));
90
+ })];
91
+ //# sourceMappingURL=createLoadObjectsHandlers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createLoadObjectsHandlers.js","names":["InvalidRequest","subSelectProperties","subSelectPropertiesUrl","OntologiesV2","getPaginationParamsFromUrl","OpenApiCallError","pageThroughResponseSearchParams","createLoadObjectsHandlers","baseUrl","fauxFoundry","OntologyObjectsV2","get","request","params","ontologyApiName","objectType","primaryKey","getDataStore","getObjectOrThrow","URL","url","list","loadObjects","getObjectsOfType","LinkedObjectsV2","listLinkedObjects","linkType","linkResults","getLinksOrThrow","objects","getLinkedObject","targetPrimaryKey","object","getLinkOrThrow"],"sources":["createLoadObjectsHandlers.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* eslint-disable @typescript-eslint/require-await */\n\nimport { InvalidRequest } from \"../errors.js\";\nimport {\n subSelectProperties,\n subSelectPropertiesUrl,\n} from \"../filterObjects.js\";\nimport { OntologiesV2 } from \"../mock/index.js\";\nimport type { FauxFoundryHandlersFactory } from \"./createFauxFoundryHandlers.js\";\nimport { getPaginationParamsFromUrl } from \"./util/getPaginationParams.js\";\nimport { OpenApiCallError } from \"./util/handleOpenApiCall.js\";\nimport { pageThroughResponseSearchParams } from \"./util/pageThroughResponseSearchParams.js\";\n\nexport const createLoadObjectsHandlers: FauxFoundryHandlersFactory = (\n baseUrl,\n fauxFoundry,\n) => [\n /**\n * Load object\n */\n OntologiesV2.OntologyObjectsV2.get(\n baseUrl,\n async (\n { request, params: { ontologyApiName, objectType, primaryKey } },\n ) => {\n return subSelectPropertiesUrl(\n fauxFoundry\n .getDataStore(ontologyApiName)\n .getObjectOrThrow(objectType, primaryKey),\n new URL(request.url),\n );\n },\n ),\n\n /**\n * Load all objects\n */\n OntologiesV2.OntologyObjectsV2.list(\n baseUrl,\n async ({ request, params: { ontologyApiName, objectType } }) => {\n const loadObjects = pageThroughResponseSearchParams(\n fauxFoundry\n .getDataStore(ontologyApiName)\n .getObjectsOfType(objectType),\n getPaginationParamsFromUrl(request),\n true,\n );\n\n if (loadObjects) {\n return subSelectProperties(loadObjects, new URL(request.url), true);\n }\n throw new OpenApiCallError(400, InvalidRequest(\"Invalid Request\"));\n },\n ),\n\n /**\n * List Linked Objects\n */\n OntologiesV2.LinkedObjectsV2.listLinkedObjects(\n baseUrl,\n async (\n {\n request,\n params: { primaryKey, linkType, objectType, ontologyApiName },\n },\n ) => {\n const linkResults = fauxFoundry\n .getDataStore(ontologyApiName)\n .getLinksOrThrow(objectType, primaryKey, linkType);\n\n const objects = pageThroughResponseSearchParams(\n linkResults,\n getPaginationParamsFromUrl(request),\n true,\n );\n\n if (objects) {\n return subSelectProperties(objects, new URL(request.url), false);\n }\n throw new OpenApiCallError(400, InvalidRequest(\"Invalid Request\"));\n },\n ),\n\n /**\n * Get specific Linked Object\n */\n\n OntologiesV2.LinkedObjectsV2.getLinkedObject(\n baseUrl,\n async (\n {\n request,\n params: {\n ontologyApiName,\n objectType,\n primaryKey,\n linkType,\n targetPrimaryKey,\n },\n },\n ) => {\n const object = fauxFoundry\n .getDataStore(ontologyApiName)\n .getLinkOrThrow(objectType, primaryKey, linkType, targetPrimaryKey);\n\n return subSelectPropertiesUrl(\n object,\n new URL(request.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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
+ /* eslint-disable @typescript-eslint/require-await */
18
+
19
+ import { OntologiesV2 } from "../mock/index.js";
20
+ import { requireSearchParams } from "./util/requireSearchParams.js";
21
+ export const createMediaRefHandlers = (baseUrl, fauxFoundry) => [
22
+ /**
23
+ * Load media metadata
24
+ */
25
+ OntologiesV2.MediaReferenceProperties.getMediaMetadata(baseUrl, async ({
26
+ params: {
27
+ ontologyApiName,
28
+ objectType,
29
+ primaryKey,
30
+ propertyName
31
+ }
32
+ }) => {
33
+ return fauxFoundry.getDataStore(ontologyApiName).getMediaOrThrow(objectType, primaryKey, propertyName).metaData;
34
+ }),
35
+ /**
36
+ * Read media content
37
+ */
38
+ OntologiesV2.MediaReferenceProperties.getMediaContent(baseUrl, async ({
39
+ params: {
40
+ ontologyApiName,
41
+ objectType,
42
+ primaryKey,
43
+ propertyName
44
+ }
45
+ }) => {
46
+ const {
47
+ content,
48
+ metaData: {
49
+ mediaType
50
+ }
51
+ } = fauxFoundry.getDataStore(ontologyApiName).getMediaOrThrow(objectType, primaryKey, propertyName);
52
+ return new Response(content, {
53
+ headers: {
54
+ "Content-Type": mediaType
55
+ }
56
+ });
57
+ }), OntologiesV2.MediaReferenceProperties.upload(baseUrl, async ({
58
+ params: {
59
+ ontologyApiName,
60
+ objectType,
61
+ propertyName
62
+ },
63
+ request
64
+ }) => {
65
+ const {
66
+ mediaItemPath
67
+ } = requireSearchParams(["mediaItemPath"], request);
68
+ return fauxFoundry.getDataStore(ontologyApiName).registerMedia(objectType, propertyName, await request.arrayBuffer(), request.headers.get("Content-Type") ?? "application/octet-stream", mediaItemPath);
69
+ })];
70
+ //# sourceMappingURL=createMediaRefHandlers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createMediaRefHandlers.js","names":["OntologiesV2","requireSearchParams","createMediaRefHandlers","baseUrl","fauxFoundry","MediaReferenceProperties","getMediaMetadata","params","ontologyApiName","objectType","primaryKey","propertyName","getDataStore","getMediaOrThrow","metaData","getMediaContent","content","mediaType","Response","headers","upload","request","mediaItemPath","registerMedia","arrayBuffer","get"],"sources":["createMediaRefHandlers.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/* eslint-disable @typescript-eslint/require-await */\n\nimport { OntologiesV2 } from \"../mock/index.js\";\nimport type { FauxFoundryHandlersFactory } from \"./createFauxFoundryHandlers.js\";\nimport { requireSearchParams } from \"./util/requireSearchParams.js\";\n\nexport const createMediaRefHandlers: FauxFoundryHandlersFactory = (\n baseUrl,\n fauxFoundry,\n) => [\n /**\n * Load media metadata\n */\n OntologiesV2.MediaReferenceProperties.getMediaMetadata(\n baseUrl,\n async (\n { params: { ontologyApiName, objectType, primaryKey, propertyName } },\n ) => {\n return fauxFoundry\n .getDataStore(ontologyApiName)\n .getMediaOrThrow(objectType, primaryKey, propertyName)\n .metaData;\n },\n ),\n /**\n * Read media content\n */\n OntologiesV2.MediaReferenceProperties.getMediaContent(\n baseUrl,\n async (\n { params: { ontologyApiName, objectType, primaryKey, propertyName } },\n ) => {\n const { content, metaData: { mediaType } } = fauxFoundry\n .getDataStore(ontologyApiName)\n .getMediaOrThrow(objectType, primaryKey, propertyName);\n\n return new Response(content, {\n headers: { \"Content-Type\": mediaType },\n });\n },\n ),\n\n OntologiesV2.MediaReferenceProperties.upload(\n baseUrl,\n async (\n { params: { ontologyApiName, objectType, propertyName }, request },\n ) => {\n const { mediaItemPath } = requireSearchParams([\"mediaItemPath\"], request);\n\n return fauxFoundry\n .getDataStore(ontologyApiName)\n .registerMedia(\n objectType,\n propertyName,\n await request.arrayBuffer(),\n request.headers.get(\"Content-Type\") ?? \"application/octet-stream\",\n mediaItemPath,\n );\n },\n ),\n];\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,SAASA,YAAY,QAAQ,kBAAkB;AAE/C,SAASC,mBAAmB,QAAQ,+BAA+B;AAEnE,OAAO,MAAMC,sBAAkD,GAAGA,CAChEC,OAAO,EACPC,WAAW,KACR;AACH;AACF;AACA;AACEJ,YAAY,CAACK,wBAAwB,CAACC,gBAAgB,CACpDH,OAAO,EACP,OACE;EAAEI,MAAM,EAAE;IAAEC,eAAe;IAAEC,UAAU;IAAEC,UAAU;IAAEC;EAAa;AAAE,CAAC,KAClE;EACH,OAAOP,WAAW,CACfQ,YAAY,CAACJ,eAAe,CAAC,CAC7BK,eAAe,CAACJ,UAAU,EAAEC,UAAU,EAAEC,YAAY,CAAC,CACrDG,QAAQ;AACb,CACF,CAAC;AACD;AACF;AACA;AACEd,YAAY,CAACK,wBAAwB,CAACU,eAAe,CACnDZ,OAAO,EACP,OACE;EAAEI,MAAM,EAAE;IAAEC,eAAe;IAAEC,UAAU;IAAEC,UAAU;IAAEC;EAAa;AAAE,CAAC,KAClE;EACH,MAAM;IAAEK,OAAO;IAAEF,QAAQ,EAAE;MAAEG;IAAU;EAAE,CAAC,GAAGb,WAAW,CACrDQ,YAAY,CAACJ,eAAe,CAAC,CAC7BK,eAAe,CAACJ,UAAU,EAAEC,UAAU,EAAEC,YAAY,CAAC;EAExD,OAAO,IAAIO,QAAQ,CAACF,OAAO,EAAE;IAC3BG,OAAO,EAAE;MAAE,cAAc,EAAEF;IAAU;EACvC,CAAC,CAAC;AACJ,CACF,CAAC,EAEDjB,YAAY,CAACK,wBAAwB,CAACe,MAAM,CAC1CjB,OAAO,EACP,OACE;EAAEI,MAAM,EAAE;IAAEC,eAAe;IAAEC,UAAU;IAAEE;EAAa,CAAC;EAAEU;AAAQ,CAAC,KAC/D;EACH,MAAM;IAAEC;EAAc,CAAC,GAAGrB,mBAAmB,CAAC,CAAC,eAAe,CAAC,EAAEoB,OAAO,CAAC;EAEzE,OAAOjB,WAAW,CACfQ,YAAY,CAACJ,eAAe,CAAC,CAC7Be,aAAa,CACZd,UAAU,EACVE,YAAY,EACZ,MAAMU,OAAO,CAACG,WAAW,CAAC,CAAC,EAC3BH,OAAO,CAACF,OAAO,CAACM,GAAG,CAAC,cAAc,CAAC,IAAI,0BAA0B,EACjEH,aACF,CAAC;AACL,CACF,CAAC,CACF","ignoreList":[]}
@@ -0,0 +1,67 @@
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
+ import { http, HttpResponse } from "msw";
18
+ export const createMultipassServerHandlers = baseUrl => [http.post(`${baseUrl}/multipass/api/oauth2/token`, async req => {
19
+ const body = await req.request.text();
20
+ const parsedBody = new URLSearchParams(body);
21
+ const parsedBodyArray = Array.from(parsedBody.entries());
22
+ if (parsedBody.get("grant_type") === "client_credentials" && parsedBody.get("client_id") === "myClientId" && parsedBody.get("client_secret") === "myClientSecret" && parsedBody.get("scopes")?.includes("offline_access") && parsedBodyArray.length === 4) {
23
+ return HttpResponse.json({
24
+ access_token: "myAccessToken",
25
+ token_type: "bearer",
26
+ refresh_token: "myRefreshToken",
27
+ expires_in: 3600
28
+ });
29
+ }
30
+ if (parsedBody.get("client_id") === "myClientId" && parsedBody.get("grant_type") === "authorization_code" && parsedBody.get("code") === "callBackCode" && parsedBody.get("redirect_uri") === "localhost" && parsedBody.get("code_verifier") === "01020304" && parsedBodyArray.length === 5) {
31
+ return HttpResponse.json({
32
+ access_token: "myAccessToken",
33
+ token_type: "bearer",
34
+ refresh_token: "myRefreshToken",
35
+ expires_in: 3600
36
+ });
37
+ }
38
+ if (parsedBody.get("client_id") === "myClientId" && parsedBody.get("grant_type") === "refresh_token" && parsedBody.get("refresh_token") === "myRefreshToken" && parsedBodyArray.length === 3) {
39
+ return HttpResponse.json({
40
+ access_token: "refreshedAccessToken",
41
+ token_type: "bearer",
42
+ refresh_token: "refreshedRefreshToken",
43
+ expires_in: 3600
44
+ });
45
+ }
46
+ return HttpResponse.json({
47
+ message: "Invalid request body"
48
+ }, {
49
+ status: 400
50
+ });
51
+ }), http.post("https://stack.palantir.com/multipass/api/oauth2/revoke_token", async req => {
52
+ const body = await req.request.text();
53
+ const parsedBody = new URLSearchParams(body);
54
+ const parsedBodyArray = Array.from(parsedBody.entries());
55
+ if (parsedBodyArray.length === 3 && parsedBody.get("client_id") === "myClientId" && parsedBody.get("client_secret") === "myClientSecret" && parsedBody.get("token") === "myAccessToken") {
56
+ return HttpResponse.json({});
57
+ }
58
+ if (parsedBodyArray.length === 2 && parsedBody.get("client_id") === "myClientId" && parsedBody.get("token") === "myAccessToken") {
59
+ return HttpResponse.json({});
60
+ }
61
+ return HttpResponse.json({
62
+ message: "Invalid request body"
63
+ }, {
64
+ status: 400
65
+ });
66
+ })];
67
+ //# sourceMappingURL=createMultipassServerHandlers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createMultipassServerHandlers.js","names":["http","HttpResponse","createMultipassServerHandlers","baseUrl","post","req","body","request","text","parsedBody","URLSearchParams","parsedBodyArray","Array","from","entries","get","includes","length","json","access_token","token_type","refresh_token","expires_in","message","status"],"sources":["createMultipassServerHandlers.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { http, HttpResponse } from \"msw\";\nimport type { FauxFoundryHandlersFactory } from \"./createFauxFoundryHandlers.js\";\n\nexport const createMultipassServerHandlers: FauxFoundryHandlersFactory = (\n baseUrl,\n fauxFoundry,\n) => [\n http.post(\n `${baseUrl}/multipass/api/oauth2/token`,\n async (req) => {\n const body = await req.request.text();\n const parsedBody = new URLSearchParams(body);\n const parsedBodyArray = Array.from(parsedBody.entries());\n\n if (\n parsedBody.get(\"grant_type\") === \"client_credentials\"\n && parsedBody.get(\"client_id\") === \"myClientId\"\n && parsedBody.get(\"client_secret\") === \"myClientSecret\"\n && parsedBody.get(\"scopes\")?.includes(\"offline_access\")\n && parsedBodyArray.length === 4\n ) {\n return HttpResponse.json({\n access_token: \"myAccessToken\",\n token_type: \"bearer\",\n refresh_token: \"myRefreshToken\",\n expires_in: 3600,\n });\n }\n\n if (\n parsedBody.get(\"client_id\") === \"myClientId\"\n && parsedBody.get(\"grant_type\") === \"authorization_code\"\n && parsedBody.get(\"code\") === \"callBackCode\"\n && parsedBody.get(\"redirect_uri\") === \"localhost\"\n && parsedBody.get(\"code_verifier\") === \"01020304\"\n && parsedBodyArray.length === 5\n ) {\n return HttpResponse.json({\n access_token: \"myAccessToken\",\n token_type: \"bearer\",\n refresh_token: \"myRefreshToken\",\n expires_in: 3600,\n });\n }\n\n if (\n parsedBody.get(\"client_id\") === \"myClientId\"\n && parsedBody.get(\"grant_type\") === \"refresh_token\"\n && parsedBody.get(\"refresh_token\") === \"myRefreshToken\"\n && parsedBodyArray.length === 3\n ) {\n return HttpResponse.json(\n {\n access_token: \"refreshedAccessToken\",\n token_type: \"bearer\",\n refresh_token: \"refreshedRefreshToken\",\n expires_in: 3600,\n },\n );\n }\n\n return HttpResponse.json(\n { message: \"Invalid request body\" },\n { status: 400 },\n );\n },\n ),\n\n http.post(\n \"https://stack.palantir.com/multipass/api/oauth2/revoke_token\",\n async (req) => {\n const body = await req.request.text();\n const parsedBody = new URLSearchParams(body);\n const parsedBodyArray = Array.from(parsedBody.entries());\n if (\n parsedBodyArray.length === 3\n && parsedBody.get(\"client_id\") === \"myClientId\"\n && parsedBody.get(\"client_secret\") === \"myClientSecret\"\n && parsedBody.get(\"token\") === \"myAccessToken\"\n ) {\n return HttpResponse.json({});\n }\n\n if (\n parsedBodyArray.length === 2\n && parsedBody.get(\"client_id\") === \"myClientId\"\n && parsedBody.get(\"token\") === \"myAccessToken\"\n ) {\n return HttpResponse.json({});\n }\n\n return HttpResponse.json(\n { message: \"Invalid request body\" },\n { status: 400 },\n );\n },\n ),\n];\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,EAAEC,YAAY,QAAQ,KAAK;AAGxC,OAAO,MAAMC,6BAAyD,GACpEC,OAAO,IAEJ,CACHH,IAAI,CAACI,IAAI,CACP,GAAGD,OAAO,6BAA6B,EACvC,MAAOE,GAAG,IAAK;EACb,MAAMC,IAAI,GAAG,MAAMD,GAAG,CAACE,OAAO,CAACC,IAAI,CAAC,CAAC;EACrC,MAAMC,UAAU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;IAAEC,MAAM,EAAE;EAAI,CAChB,CAAC;AACH,CACF,CAAC,CACF","ignoreList":[]}
@@ -0,0 +1,50 @@
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
+ import { OntologiesV2 } from "../mock/index.js";
18
+ export const createObjectSetHandlers = (baseUrl, fauxFoundry) => [
19
+ /**
20
+ * Load ObjectSet Objects
21
+ */
22
+ OntologiesV2.OntologyObjectSets.load(baseUrl, async ({
23
+ request,
24
+ params
25
+ }) => {
26
+ return fauxFoundry.getDataStore(params.ontologyApiName).getObjectsFromObjectSet(await request.json());
27
+ }),
28
+ /**
29
+ * Aggregate Objects in ObjectSet
30
+ */
31
+ OntologiesV2.OntologyObjectSets.aggregate(baseUrl, async ({
32
+ request
33
+ }) => {
34
+ throw new Error("Not implemented");
35
+ }),
36
+ /**
37
+ * Load interface objectset Objects
38
+ */
39
+ OntologiesV2.OntologyObjectSets.loadMultipleObjectTypes(baseUrl, async ({
40
+ params,
41
+ request
42
+ }) => {
43
+ const pagedResponse = fauxFoundry.getDataStore(params.ontologyApiName).getObjectsFromObjectSet(await request.json());
44
+ const objectApiNames = new Set(pagedResponse.data.map(o => o.__apiName));
45
+ return {
46
+ interfaceToObjectTypeMappings: fauxFoundry.getOntology(params.ontologyApiName).getInterfaceToObjectTypeMappings(objectApiNames),
47
+ ...pagedResponse
48
+ };
49
+ })];
50
+ //# sourceMappingURL=createObjectSetHandlers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createObjectSetHandlers.js","names":["OntologiesV2","createObjectSetHandlers","baseUrl","fauxFoundry","OntologyObjectSets","load","request","params","getDataStore","ontologyApiName","getObjectsFromObjectSet","json","aggregate","Error","loadMultipleObjectTypes","pagedResponse","objectApiNames","Set","data","map","o","__apiName","interfaceToObjectTypeMappings","getOntology","getInterfaceToObjectTypeMappings"],"sources":["createObjectSetHandlers.ts"],"sourcesContent":["/*\n * Copyright 2023 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { RequestHandler } from \"msw\";\nimport type { FauxFoundry } from \"../FauxFoundry/FauxFoundry.js\";\nimport { OntologiesV2 } from \"../mock/index.js\";\n\nexport const createObjectSetHandlers = (\n baseUrl: string,\n fauxFoundry: FauxFoundry,\n): Array<RequestHandler> => [\n /**\n * Load ObjectSet Objects\n */\n OntologiesV2.OntologyObjectSets.load(\n baseUrl,\n async ({ request, params }) => {\n return fauxFoundry\n .getDataStore(params.ontologyApiName)\n .getObjectsFromObjectSet(await request.json());\n },\n ),\n\n /**\n * Aggregate Objects in ObjectSet\n */\n OntologiesV2.OntologyObjectSets.aggregate(\n baseUrl,\n async ({ request }) => {\n throw new Error(\"Not implemented\");\n },\n ),\n\n /**\n * Load interface objectset Objects\n */\n OntologiesV2.OntologyObjectSets.loadMultipleObjectTypes(\n baseUrl,\n async ({ params, request }) => {\n const pagedResponse = fauxFoundry\n .getDataStore(params.ontologyApiName)\n .getObjectsFromObjectSet(await request.json());\n\n const objectApiNames = new Set(pagedResponse.data.map(o => o.__apiName));\n\n return {\n interfaceToObjectTypeMappings: fauxFoundry\n .getOntology(params.ontologyApiName)\n .getInterfaceToObjectTypeMappings(objectApiNames),\n ...pagedResponse,\n };\n },\n ),\n];\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,SAASA,YAAY,QAAQ,kBAAkB;AAE/C,OAAO,MAAMC,uBAAuB,GAAGA,CACrCC,OAAe,EACfC,WAAwB,KACE;AAC1B;AACF;AACA;AACEH,YAAY,CAACI,kBAAkB,CAACC,IAAI,CAClCH,OAAO,EACP,OAAO;EAAEI,OAAO;EAAEC;AAAO,CAAC,KAAK;EAC7B,OAAOJ,WAAW,CACfK,YAAY,CAACD,MAAM,CAACE,eAAe,CAAC,CACpCC,uBAAuB,CAAC,MAAMJ,OAAO,CAACK,IAAI,CAAC,CAAC,CAAC;AAClD,CACF,CAAC;AAED;AACF;AACA;AACEX,YAAY,CAACI,kBAAkB,CAACQ,SAAS,CACvCV,OAAO,EACP,OAAO;EAAEI;AAAQ,CAAC,KAAK;EACrB,MAAM,IAAIO,KAAK,CAAC,iBAAiB,CAAC;AACpC,CACF,CAAC;AAED;AACF;AACA;AACEb,YAAY,CAACI,kBAAkB,CAACU,uBAAuB,CACrDZ,OAAO,EACP,OAAO;EAAEK,MAAM;EAAED;AAAQ,CAAC,KAAK;EAC7B,MAAMS,aAAa,GAAGZ,WAAW,CAC9BK,YAAY,CAACD,MAAM,CAACE,eAAe,CAAC,CACpCC,uBAAuB,CAAC,MAAMJ,OAAO,CAACK,IAAI,CAAC,CAAC,CAAC;EAEhD,MAAMK,cAAc,GAAG,IAAIC,GAAG,CAACF,aAAa,CAACG,IAAI,CAACC,GAAG,CAACC,CAAC,IAAIA,CAAC,CAACC,SAAS,CAAC,CAAC;EAExE,OAAO;IACLC,6BAA6B,EAAEnB,WAAW,CACvCoB,WAAW,CAAChB,MAAM,CAACE,eAAe,CAAC,CACnCe,gCAAgC,CAACR,cAAc,CAAC;IACnD,GAAGD;EACL,CAAC;AACH,CACF,CAAC,CACF","ignoreList":[]}