@looker/api-explorer 0.9.45 → 0.9.48

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 (302) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/lib/ApiExplorer.js.map +1 -1
  3. package/lib/App.js.map +1 -1
  4. package/lib/StandaloneApiExplorer.js.map +1 -1
  5. package/lib/components/Banner/Banner.js.map +1 -1
  6. package/lib/components/Banner/index.js.map +1 -1
  7. package/lib/components/DocActivityType/DocActivityType.js.map +1 -1
  8. package/lib/components/DocActivityType/index.js.map +1 -1
  9. package/lib/components/DocCode/DocCode.js.map +1 -1
  10. package/lib/components/DocCode/index.js.map +1 -1
  11. package/lib/components/DocMarkdown/DocMarkdown.js.map +1 -1
  12. package/lib/components/DocMarkdown/index.js.map +1 -1
  13. package/lib/components/DocMarkdown/utils.js.map +1 -1
  14. package/lib/components/DocMethodSummary/DocMethodSummary.js.map +1 -1
  15. package/lib/components/DocMethodSummary/DocSummaryStatus.js.map +1 -1
  16. package/lib/components/DocMethodSummary/index.js.map +1 -1
  17. package/lib/components/DocMethodSummary/utils.js.map +1 -1
  18. package/lib/components/DocPseudo/DocParam.js.map +1 -1
  19. package/lib/components/DocPseudo/DocParams.js.map +1 -1
  20. package/lib/components/DocPseudo/DocPrimaryResponse.js.map +1 -1
  21. package/lib/components/DocPseudo/DocPseudo.js.map +1 -1
  22. package/lib/components/DocPseudo/index.js.map +1 -1
  23. package/lib/components/DocRateLimited/DocRateLimited.js.map +1 -1
  24. package/lib/components/DocRateLimited/index.js.map +1 -1
  25. package/lib/components/DocReferences/DocReferences.js.map +1 -1
  26. package/lib/components/DocReferences/index.js.map +1 -1
  27. package/lib/components/DocReferences/utils.js.map +1 -1
  28. package/lib/components/DocSDKs/DocDeclarations.js.map +1 -1
  29. package/lib/components/DocSDKs/DocSDKs.js.map +1 -1
  30. package/lib/components/DocSDKs/index.js.map +1 -1
  31. package/lib/components/DocSDKs/utils.js.map +1 -1
  32. package/lib/components/DocSchema/DocSchema.js.map +1 -1
  33. package/lib/components/DocSchema/index.js.map +1 -1
  34. package/lib/components/DocSdkUsage/DocSdkExampleCell.js.map +1 -1
  35. package/lib/components/DocSdkUsage/DocSdkUsage.js.map +1 -1
  36. package/lib/components/DocSdkUsage/index.js.map +1 -1
  37. package/lib/components/DocSdkUsage/utils.js.map +1 -1
  38. package/lib/components/DocSource/DocSource.js.map +1 -1
  39. package/lib/components/DocSource/index.js.map +1 -1
  40. package/lib/components/DocStatus/DocStatus.js.map +1 -1
  41. package/lib/components/DocStatus/index.js.map +1 -1
  42. package/lib/components/DocTitle/DocTitle.js.map +1 -1
  43. package/lib/components/DocTitle/index.js.map +1 -1
  44. package/lib/components/DocTypeSummary/DocTypeSummary.js.map +1 -1
  45. package/lib/components/DocTypeSummary/index.js.map +1 -1
  46. package/lib/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
  47. package/lib/components/ErrorBoundary/components/SomethingWentWrong/SomethingWentWrong.js.map +1 -1
  48. package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js.map +1 -1
  49. package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/index.js.map +1 -1
  50. package/lib/components/ErrorBoundary/components/SomethingWentWrong/components/index.js.map +1 -1
  51. package/lib/components/ErrorBoundary/components/SomethingWentWrong/index.js.map +1 -1
  52. package/lib/components/ErrorBoundary/index.js.map +1 -1
  53. package/lib/components/ExploreType/ExploreProperty.js.map +1 -1
  54. package/lib/components/ExploreType/ExploreType.js.map +1 -1
  55. package/lib/components/ExploreType/exploreUtils.js.map +1 -1
  56. package/lib/components/ExploreType/index.js.map +1 -1
  57. package/lib/components/Header/Header.js.map +1 -1
  58. package/lib/components/Header/index.js.map +1 -1
  59. package/lib/components/Link/Link.js.map +1 -1
  60. package/lib/components/Link/index.js.map +1 -1
  61. package/lib/components/SelectorContainer/ApiSpecSelector.js.map +1 -1
  62. package/lib/components/SelectorContainer/SdkLanguageSelector.js.map +1 -1
  63. package/lib/components/SelectorContainer/SelectorContainer.js.map +1 -1
  64. package/lib/components/SelectorContainer/index.js.map +1 -1
  65. package/lib/components/SelectorContainer/utils.js.map +1 -1
  66. package/lib/components/SideNav/SearchMessage.js.map +1 -1
  67. package/lib/components/SideNav/SideNav.js.map +1 -1
  68. package/lib/components/SideNav/SideNavMethodTags.js.map +1 -1
  69. package/lib/components/SideNav/SideNavMethods.js.map +1 -1
  70. package/lib/components/SideNav/SideNavTypeTags.js.map +1 -1
  71. package/lib/components/SideNav/SideNavTypes.js.map +1 -1
  72. package/lib/components/SideNav/index.js.map +1 -1
  73. package/lib/components/SideNav/searchUtils.js.map +1 -1
  74. package/lib/components/common/Loader.js.map +1 -1
  75. package/lib/components/common/common.js.map +1 -1
  76. package/lib/components/common/index.js.map +1 -1
  77. package/lib/components/index.js.map +1 -1
  78. package/lib/esm/ApiExplorer.js.map +1 -1
  79. package/lib/esm/App.js.map +1 -1
  80. package/lib/esm/StandaloneApiExplorer.js.map +1 -1
  81. package/lib/esm/components/Banner/Banner.js.map +1 -1
  82. package/lib/esm/components/Banner/index.js.map +1 -1
  83. package/lib/esm/components/DocActivityType/DocActivityType.js.map +1 -1
  84. package/lib/esm/components/DocActivityType/index.js.map +1 -1
  85. package/lib/esm/components/DocCode/DocCode.js.map +1 -1
  86. package/lib/esm/components/DocCode/index.js.map +1 -1
  87. package/lib/esm/components/DocMarkdown/DocMarkdown.js.map +1 -1
  88. package/lib/esm/components/DocMarkdown/index.js.map +1 -1
  89. package/lib/esm/components/DocMarkdown/utils.js.map +1 -1
  90. package/lib/esm/components/DocMethodSummary/DocMethodSummary.js.map +1 -1
  91. package/lib/esm/components/DocMethodSummary/DocSummaryStatus.js.map +1 -1
  92. package/lib/esm/components/DocMethodSummary/index.js.map +1 -1
  93. package/lib/esm/components/DocMethodSummary/utils.js.map +1 -1
  94. package/lib/esm/components/DocPseudo/DocParam.js.map +1 -1
  95. package/lib/esm/components/DocPseudo/DocParams.js.map +1 -1
  96. package/lib/esm/components/DocPseudo/DocPrimaryResponse.js.map +1 -1
  97. package/lib/esm/components/DocPseudo/DocPseudo.js.map +1 -1
  98. package/lib/esm/components/DocPseudo/index.js.map +1 -1
  99. package/lib/esm/components/DocRateLimited/DocRateLimited.js.map +1 -1
  100. package/lib/esm/components/DocRateLimited/index.js.map +1 -1
  101. package/lib/esm/components/DocReferences/DocReferences.js.map +1 -1
  102. package/lib/esm/components/DocReferences/index.js.map +1 -1
  103. package/lib/esm/components/DocReferences/utils.js.map +1 -1
  104. package/lib/esm/components/DocSDKs/DocDeclarations.js.map +1 -1
  105. package/lib/esm/components/DocSDKs/DocSDKs.js.map +1 -1
  106. package/lib/esm/components/DocSDKs/index.js.map +1 -1
  107. package/lib/esm/components/DocSDKs/utils.js.map +1 -1
  108. package/lib/esm/components/DocSchema/DocSchema.js.map +1 -1
  109. package/lib/esm/components/DocSchema/index.js.map +1 -1
  110. package/lib/esm/components/DocSdkUsage/DocSdkExampleCell.js.map +1 -1
  111. package/lib/esm/components/DocSdkUsage/DocSdkUsage.js.map +1 -1
  112. package/lib/esm/components/DocSdkUsage/index.js.map +1 -1
  113. package/lib/esm/components/DocSdkUsage/utils.js.map +1 -1
  114. package/lib/esm/components/DocSource/DocSource.js.map +1 -1
  115. package/lib/esm/components/DocSource/index.js.map +1 -1
  116. package/lib/esm/components/DocStatus/DocStatus.js.map +1 -1
  117. package/lib/esm/components/DocStatus/index.js.map +1 -1
  118. package/lib/esm/components/DocTitle/DocTitle.js.map +1 -1
  119. package/lib/esm/components/DocTitle/index.js.map +1 -1
  120. package/lib/esm/components/DocTypeSummary/DocTypeSummary.js.map +1 -1
  121. package/lib/esm/components/DocTypeSummary/index.js.map +1 -1
  122. package/lib/esm/components/ErrorBoundary/ErrorBoundary.js.map +1 -1
  123. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/SomethingWentWrong.js.map +1 -1
  124. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/SomethingWentWrongGraphic.js.map +1 -1
  125. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/SomethingWentWrongGraphic/index.js.map +1 -1
  126. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/components/index.js.map +1 -1
  127. package/lib/esm/components/ErrorBoundary/components/SomethingWentWrong/index.js.map +1 -1
  128. package/lib/esm/components/ErrorBoundary/index.js.map +1 -1
  129. package/lib/esm/components/ExploreType/ExploreProperty.js.map +1 -1
  130. package/lib/esm/components/ExploreType/ExploreType.js.map +1 -1
  131. package/lib/esm/components/ExploreType/exploreUtils.js.map +1 -1
  132. package/lib/esm/components/ExploreType/index.js.map +1 -1
  133. package/lib/esm/components/Header/Header.js.map +1 -1
  134. package/lib/esm/components/Header/index.js.map +1 -1
  135. package/lib/esm/components/Link/Link.js.map +1 -1
  136. package/lib/esm/components/Link/index.js.map +1 -1
  137. package/lib/esm/components/SelectorContainer/ApiSpecSelector.js.map +1 -1
  138. package/lib/esm/components/SelectorContainer/SdkLanguageSelector.js.map +1 -1
  139. package/lib/esm/components/SelectorContainer/SelectorContainer.js.map +1 -1
  140. package/lib/esm/components/SelectorContainer/index.js.map +1 -1
  141. package/lib/esm/components/SelectorContainer/utils.js.map +1 -1
  142. package/lib/esm/components/SideNav/SearchMessage.js.map +1 -1
  143. package/lib/esm/components/SideNav/SideNav.js.map +1 -1
  144. package/lib/esm/components/SideNav/SideNavMethodTags.js.map +1 -1
  145. package/lib/esm/components/SideNav/SideNavMethods.js.map +1 -1
  146. package/lib/esm/components/SideNav/SideNavTypeTags.js.map +1 -1
  147. package/lib/esm/components/SideNav/SideNavTypes.js.map +1 -1
  148. package/lib/esm/components/SideNav/index.js.map +1 -1
  149. package/lib/esm/components/SideNav/searchUtils.js.map +1 -1
  150. package/lib/esm/components/common/Loader.js.map +1 -1
  151. package/lib/esm/components/common/common.js.map +1 -1
  152. package/lib/esm/components/common/index.js.map +1 -1
  153. package/lib/esm/components/index.js.map +1 -1
  154. package/lib/esm/index.js.map +1 -1
  155. package/lib/esm/routes/AppRouter.js.map +1 -1
  156. package/lib/esm/routes/index.js.map +1 -1
  157. package/lib/esm/scenes/DiffScene/DiffScene.js.map +1 -1
  158. package/lib/esm/scenes/DiffScene/DocDiff/DiffBanner.js.map +1 -1
  159. package/lib/esm/scenes/DiffScene/DocDiff/DiffItem.js.map +1 -1
  160. package/lib/esm/scenes/DiffScene/DocDiff/DiffLegend.js.map +1 -1
  161. package/lib/esm/scenes/DiffScene/DocDiff/DocDiff.js.map +1 -1
  162. package/lib/esm/scenes/DiffScene/DocDiff/docDiffUtils.js.map +1 -1
  163. package/lib/esm/scenes/DiffScene/DocDiff/index.js.map +1 -1
  164. package/lib/esm/scenes/DiffScene/diffUtils.js.map +1 -1
  165. package/lib/esm/scenes/DiffScene/index.js.map +1 -1
  166. package/lib/esm/scenes/ErrorDetailScene/ErrorDetailScene.js.map +1 -1
  167. package/lib/esm/scenes/ErrorDetailScene/index.js.map +1 -1
  168. package/lib/esm/scenes/HomeScene/HomeScene.js.map +1 -1
  169. package/lib/esm/scenes/HomeScene/index.js.map +1 -1
  170. package/lib/esm/scenes/MethodScene/MethodScene.js.map +1 -1
  171. package/lib/esm/scenes/MethodScene/components/DocOperation.js.map +1 -1
  172. package/lib/esm/scenes/MethodScene/components/DocRequestBody.js.map +1 -1
  173. package/lib/esm/scenes/MethodScene/components/DocResponses/DocResponseTypes.js.map +1 -1
  174. package/lib/esm/scenes/MethodScene/components/DocResponses/DocResponses.js.map +1 -1
  175. package/lib/esm/scenes/MethodScene/components/DocResponses/index.js.map +1 -1
  176. package/lib/esm/scenes/MethodScene/components/DocResponses/utils.js.map +1 -1
  177. package/lib/esm/scenes/MethodScene/components/index.js.map +1 -1
  178. package/lib/esm/scenes/MethodScene/index.js.map +1 -1
  179. package/lib/esm/scenes/MethodTagScene/MethodTagScene.js.map +1 -1
  180. package/lib/esm/scenes/MethodTagScene/index.js.map +1 -1
  181. package/lib/esm/scenes/MethodTagScene/utils.js.map +1 -1
  182. package/lib/esm/scenes/TypeScene/TypeScene.js.map +1 -1
  183. package/lib/esm/scenes/TypeScene/index.js.map +1 -1
  184. package/lib/esm/scenes/TypeTagScene/TypeTagScene.js.map +1 -1
  185. package/lib/esm/scenes/TypeTagScene/index.js.map +1 -1
  186. package/lib/esm/scenes/TypeTagScene/utils.js.map +1 -1
  187. package/lib/esm/scenes/index.js.map +1 -1
  188. package/lib/esm/scenes/utils/hooks/index.js.map +1 -1
  189. package/lib/esm/scenes/utils/hooks/tagStoreSync.js.map +1 -1
  190. package/lib/esm/scenes/utils/index.js.map +1 -1
  191. package/lib/esm/state/index.js.map +1 -1
  192. package/lib/esm/state/lodes/index.js.map +1 -1
  193. package/lib/esm/state/lodes/sagas.js.map +1 -1
  194. package/lib/esm/state/lodes/selectors.js.map +1 -1
  195. package/lib/esm/state/lodes/slice.js.map +1 -1
  196. package/lib/esm/state/settings/index.js.map +1 -1
  197. package/lib/esm/state/settings/sagas.js.map +1 -1
  198. package/lib/esm/state/settings/selectors.js.map +1 -1
  199. package/lib/esm/state/settings/slice.js.map +1 -1
  200. package/lib/esm/state/specs/index.js.map +1 -1
  201. package/lib/esm/state/specs/sagas.js.map +1 -1
  202. package/lib/esm/state/specs/selectors.js.map +1 -1
  203. package/lib/esm/state/specs/slice.js.map +1 -1
  204. package/lib/esm/state/store.js.map +1 -1
  205. package/lib/esm/test-data/declarations.js.map +1 -1
  206. package/lib/esm/test-data/examples.js.map +1 -1
  207. package/lib/esm/test-data/index.js.map +1 -1
  208. package/lib/esm/test-data/sdkLanguages.js.map +1 -1
  209. package/lib/esm/test-data/specs.js.map +1 -1
  210. package/lib/esm/test-utils/index.js.map +1 -1
  211. package/lib/esm/test-utils/lodes.js.map +1 -1
  212. package/lib/esm/test-utils/redux.js.map +1 -1
  213. package/lib/esm/test-utils/router.js.map +1 -1
  214. package/lib/esm/utils/adaptorUtils.js.map +1 -1
  215. package/lib/esm/utils/apixAdaptor.js.map +1 -1
  216. package/lib/esm/utils/highlight.js.map +1 -1
  217. package/lib/esm/utils/hooks/globalStoreSync.js.map +1 -1
  218. package/lib/esm/utils/hooks/index.js.map +1 -1
  219. package/lib/esm/utils/hooks/navigation.js.map +1 -1
  220. package/lib/esm/utils/hooks/useQuery.js.map +1 -1
  221. package/lib/esm/utils/index.js.map +1 -1
  222. package/lib/esm/utils/lodeUtils.js.map +1 -1
  223. package/lib/esm/utils/path.js.map +1 -1
  224. package/lib/esm/utils/sdkLanguage.js.map +1 -1
  225. package/lib/esm/utils/useWindowSize.js.map +1 -1
  226. package/lib/index.js.map +1 -1
  227. package/lib/routes/AppRouter.js.map +1 -1
  228. package/lib/routes/index.js.map +1 -1
  229. package/lib/scenes/DiffScene/DiffScene.js.map +1 -1
  230. package/lib/scenes/DiffScene/DocDiff/DiffBanner.js.map +1 -1
  231. package/lib/scenes/DiffScene/DocDiff/DiffItem.js.map +1 -1
  232. package/lib/scenes/DiffScene/DocDiff/DiffLegend.js.map +1 -1
  233. package/lib/scenes/DiffScene/DocDiff/DocDiff.js.map +1 -1
  234. package/lib/scenes/DiffScene/DocDiff/docDiffUtils.js.map +1 -1
  235. package/lib/scenes/DiffScene/DocDiff/index.js.map +1 -1
  236. package/lib/scenes/DiffScene/diffUtils.js.map +1 -1
  237. package/lib/scenes/DiffScene/index.js.map +1 -1
  238. package/lib/scenes/ErrorDetailScene/ErrorDetailScene.js.map +1 -1
  239. package/lib/scenes/ErrorDetailScene/index.js.map +1 -1
  240. package/lib/scenes/HomeScene/HomeScene.js.map +1 -1
  241. package/lib/scenes/HomeScene/index.js.map +1 -1
  242. package/lib/scenes/MethodScene/MethodScene.js.map +1 -1
  243. package/lib/scenes/MethodScene/components/DocOperation.js.map +1 -1
  244. package/lib/scenes/MethodScene/components/DocRequestBody.js.map +1 -1
  245. package/lib/scenes/MethodScene/components/DocResponses/DocResponseTypes.js.map +1 -1
  246. package/lib/scenes/MethodScene/components/DocResponses/DocResponses.js.map +1 -1
  247. package/lib/scenes/MethodScene/components/DocResponses/index.js.map +1 -1
  248. package/lib/scenes/MethodScene/components/DocResponses/utils.js.map +1 -1
  249. package/lib/scenes/MethodScene/components/index.js.map +1 -1
  250. package/lib/scenes/MethodScene/index.js.map +1 -1
  251. package/lib/scenes/MethodTagScene/MethodTagScene.js.map +1 -1
  252. package/lib/scenes/MethodTagScene/index.js.map +1 -1
  253. package/lib/scenes/MethodTagScene/utils.js.map +1 -1
  254. package/lib/scenes/TypeScene/TypeScene.js.map +1 -1
  255. package/lib/scenes/TypeScene/index.js.map +1 -1
  256. package/lib/scenes/TypeTagScene/TypeTagScene.js.map +1 -1
  257. package/lib/scenes/TypeTagScene/index.js.map +1 -1
  258. package/lib/scenes/TypeTagScene/utils.js.map +1 -1
  259. package/lib/scenes/index.js.map +1 -1
  260. package/lib/scenes/utils/hooks/index.js.map +1 -1
  261. package/lib/scenes/utils/hooks/tagStoreSync.js.map +1 -1
  262. package/lib/scenes/utils/index.js.map +1 -1
  263. package/lib/state/index.js.map +1 -1
  264. package/lib/state/lodes/index.js.map +1 -1
  265. package/lib/state/lodes/sagas.js.map +1 -1
  266. package/lib/state/lodes/selectors.js.map +1 -1
  267. package/lib/state/lodes/slice.d.ts +1 -5
  268. package/lib/state/lodes/slice.js.map +1 -1
  269. package/lib/state/settings/index.js.map +1 -1
  270. package/lib/state/settings/sagas.js.map +1 -1
  271. package/lib/state/settings/selectors.d.ts +1 -1
  272. package/lib/state/settings/selectors.js.map +1 -1
  273. package/lib/state/settings/slice.d.ts +2 -9
  274. package/lib/state/settings/slice.js.map +1 -1
  275. package/lib/state/specs/index.js.map +1 -1
  276. package/lib/state/specs/sagas.js.map +1 -1
  277. package/lib/state/specs/selectors.js.map +1 -1
  278. package/lib/state/specs/slice.d.ts +1 -8
  279. package/lib/state/specs/slice.js.map +1 -1
  280. package/lib/state/store.js.map +1 -1
  281. package/lib/test-data/declarations.js.map +1 -1
  282. package/lib/test-data/examples.js.map +1 -1
  283. package/lib/test-data/index.js.map +1 -1
  284. package/lib/test-data/sdkLanguages.js.map +1 -1
  285. package/lib/test-data/specs.js.map +1 -1
  286. package/lib/test-utils/index.js.map +1 -1
  287. package/lib/test-utils/lodes.js.map +1 -1
  288. package/lib/test-utils/redux.js.map +1 -1
  289. package/lib/test-utils/router.js.map +1 -1
  290. package/lib/utils/adaptorUtils.js.map +1 -1
  291. package/lib/utils/apixAdaptor.js.map +1 -1
  292. package/lib/utils/highlight.js.map +1 -1
  293. package/lib/utils/hooks/globalStoreSync.js.map +1 -1
  294. package/lib/utils/hooks/index.js.map +1 -1
  295. package/lib/utils/hooks/navigation.js.map +1 -1
  296. package/lib/utils/hooks/useQuery.js.map +1 -1
  297. package/lib/utils/index.js.map +1 -1
  298. package/lib/utils/lodeUtils.js.map +1 -1
  299. package/lib/utils/path.js.map +1 -1
  300. package/lib/utils/sdkLanguage.js.map +1 -1
  301. package/lib/utils/useWindowSize.js.map +1 -1
  302. package/package.json +8 -8
@@ -1 +1 @@
1
- {"version":3,"file":"slice.js","names":["defaultLodesState","examples","undefined","declarations","lodesSlice","createSlice","name","initialState","reducers","initLodesAction","_state","_action","initLodesSuccessAction","state","action","payload","initLodesFailureAction","error","lodeActions","actions","useActions","useLodeActions","useStoreState","useLodesStoreState","createSliceHooks","saga"],"sources":["../../../../src/state/lodes/slice.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport { createSliceHooks } from '@looker/redux'\nimport type { IDeclarationMine, IExampleMine } from '@looker/sdk-codegen'\nimport type { PayloadAction } from '@reduxjs/toolkit'\nimport { createSlice } from '@reduxjs/toolkit'\n\nimport { saga } from './sagas'\n\nexport interface LodesState {\n examples?: IExampleMine\n declarations?: IDeclarationMine\n error?: Error\n}\n\nexport const defaultLodesState: LodesState = {\n examples: undefined,\n declarations: undefined,\n}\n\nexport interface InitPayload {\n examplesLodeUrl?: string\n declarationsLodeUrl?: string\n}\n\ntype InitSuccessAction = LodesState\n\nexport const lodesSlice = createSlice({\n name: 'lodes',\n initialState: defaultLodesState,\n reducers: {\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n initLodesAction(_state, _action: PayloadAction<InitPayload>) {},\n initLodesSuccessAction(state, action: PayloadAction<InitSuccessAction>) {\n state.examples = action.payload.examples\n state.declarations = action.payload.declarations\n },\n initLodesFailureAction(state, action: PayloadAction<Error>) {\n state.error = action.payload\n },\n },\n})\n\nexport const lodeActions = lodesSlice.actions\nexport const { useActions: useLodeActions, useStoreState: useLodesStoreState } =\n createSliceHooks(lodesSlice, saga)\n"],"mappings":";;;;;;AAyBA;AAGA;AAEA;AAQO,IAAMA,iBAA6B,GAAG;EAC3CC,QAAQ,EAAEC,SAAS;EACnBC,YAAY,EAAED;AAChB,CAAC;AAAA;AASM,IAAME,UAAU,GAAG,IAAAC,oBAAW,EAAC;EACpCC,IAAI,EAAE,OAAO;EACbC,YAAY,EAAEP,iBAAiB;EAC/BQ,QAAQ,EAAE;IAERC,eAAe,CAACC,MAAM,EAAEC,OAAmC,EAAE,CAAC,CAAC;IAC/DC,sBAAsB,CAACC,KAAK,EAAEC,MAAwC,EAAE;MACtED,KAAK,CAACZ,QAAQ,GAAGa,MAAM,CAACC,OAAO,CAACd,QAAQ;MACxCY,KAAK,CAACV,YAAY,GAAGW,MAAM,CAACC,OAAO,CAACZ,YAAY;IAClD,CAAC;IACDa,sBAAsB,CAACH,KAAK,EAAEC,MAA4B,EAAE;MAC1DD,KAAK,CAACI,KAAK,GAAGH,MAAM,CAACC,OAAO;IAC9B;EACF;AACF,CAAC,CAAC;AAAA;AAEK,IAAMG,WAAW,GAAGd,UAAU,CAACe,OAAO;AAAA;AACtC,IAAM;EAAEC,UAAU,EAAEC,cAAc;EAAEC,aAAa,EAAEC;AAAmB,CAAC,GAC5E,IAAAC,uBAAgB,EAACpB,UAAU,EAAEqB,WAAI,CAAC;AAAA;AAAA"}
1
+ {"version":3,"file":"slice.js","names":["_redux","require","_toolkit","_sagas","defaultLodesState","examples","undefined","declarations","exports","lodesSlice","createSlice","name","initialState","reducers","initLodesAction","_state","_action","initLodesSuccessAction","state","action","payload","initLodesFailureAction","error","lodeActions","actions","useActions","useLodeActions","useStoreState","useLodesStoreState","createSliceHooks","saga"],"sources":["../../../../src/state/lodes/slice.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport { createSliceHooks } from '@looker/redux'\nimport type { IDeclarationMine, IExampleMine } from '@looker/sdk-codegen'\nimport type { PayloadAction } from '@reduxjs/toolkit'\nimport { createSlice } from '@reduxjs/toolkit'\n\nimport { saga } from './sagas'\n\nexport interface LodesState {\n examples?: IExampleMine\n declarations?: IDeclarationMine\n error?: Error\n}\n\nexport const defaultLodesState: LodesState = {\n examples: undefined,\n declarations: undefined,\n}\n\nexport interface InitPayload {\n examplesLodeUrl?: string\n declarationsLodeUrl?: string\n}\n\ntype InitSuccessAction = LodesState\n\nexport const lodesSlice = createSlice({\n name: 'lodes',\n initialState: defaultLodesState,\n reducers: {\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n initLodesAction(_state, _action: PayloadAction<InitPayload>) {},\n initLodesSuccessAction(state, action: PayloadAction<InitSuccessAction>) {\n state.examples = action.payload.examples\n state.declarations = action.payload.declarations\n },\n initLodesFailureAction(state, action: PayloadAction<Error>) {\n state.error = action.payload\n },\n },\n})\n\nexport const lodeActions = lodesSlice.actions\nexport const { useActions: useLodeActions, useStoreState: useLodesStoreState } =\n createSliceHooks(lodesSlice, saga)\n"],"mappings":";;;;;;AAyBA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,QAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AAQO,IAAMG,iBAA6B,GAAG;EAC3CC,QAAQ,EAAEC,SAAS;EACnBC,YAAY,EAAED;AAChB,CAAC;AAAAE,OAAA,CAAAJ,iBAAA,GAAAA,iBAAA;AASM,IAAMK,UAAU,GAAG,IAAAC,oBAAW,EAAC;EACpCC,IAAI,EAAE,OAAO;EACbC,YAAY,EAAER,iBAAiB;EAC/BS,QAAQ,EAAE;IAERC,eAAeA,CAACC,MAAM,EAAEC,OAAmC,EAAE,CAAC,CAAC;IAC/DC,sBAAsBA,CAACC,KAAK,EAAEC,MAAwC,EAAE;MACtED,KAAK,CAACb,QAAQ,GAAGc,MAAM,CAACC,OAAO,CAACf,QAAQ;MACxCa,KAAK,CAACX,YAAY,GAAGY,MAAM,CAACC,OAAO,CAACb,YAAY;IAClD,CAAC;IACDc,sBAAsBA,CAACH,KAAK,EAAEC,MAA4B,EAAE;MAC1DD,KAAK,CAACI,KAAK,GAAGH,MAAM,CAACC,OAAO;IAC9B;EACF;AACF,CAAC,CAAC;AAAAZ,OAAA,CAAAC,UAAA,GAAAA,UAAA;AAEK,IAAMc,WAAW,GAAGd,UAAU,CAACe,OAAO;AAAAhB,OAAA,CAAAe,WAAA,GAAAA,WAAA;AACtC,IAAM;EAAEE,UAAU,EAAEC,cAAc;EAAEC,aAAa,EAAEC;AAAmB,CAAC,GAC5E,IAAAC,uBAAgB,EAACpB,UAAU,EAAEqB,WAAI,CAAC;AAAAtB,OAAA,CAAAoB,kBAAA,GAAAA,kBAAA;AAAApB,OAAA,CAAAkB,cAAA,GAAAA,cAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/state/settings/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './selectors'\nexport * from './slice'\n"],"mappings":";;;;;AAyBA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":["_selectors","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_slice"],"sources":["../../../../src/state/settings/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './selectors'\nexport * from './slice'\n"],"mappings":";;;;;AAyBA,IAAAA,UAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,UAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,UAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,MAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,MAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,MAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,MAAA,CAAAL,GAAA;IAAA;EAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"sagas.js","names":["serializeToLocalStorageSaga","adaptor","getEnvAdaptor","settings","select","state","sdkLanguage","localStorageSetItem","StoreConstants","LOCALSTORAGE_SETTINGS_KEY","JSON","stringify","deserializeLocalStorage","localStorageGetItem","defaultSettings","parse","initSaga","initSettingsSuccessAction","initSettingsFailureAction","settingActions","call","put","error","saga","initSettingsAction","setSdkLanguageAction","takeEvery"],"sources":["../../../../src/state/settings/sagas.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport { takeEvery, call, put, select } from 'typed-redux-saga'\n\nimport { getEnvAdaptor } from '@looker/extension-utils'\nimport { StoreConstants } from '@looker/run-it'\nimport type { RootState } from '../store'\nimport { settingActions, defaultSettings } from './slice'\n\n/**\n * Serializes state to local storage\n */\nfunction* serializeToLocalStorageSaga() {\n const adaptor = getEnvAdaptor()\n const settings = yield* select((state: RootState) => ({\n sdkLanguage: state.settings.sdkLanguage,\n }))\n adaptor.localStorageSetItem(\n StoreConstants.LOCALSTORAGE_SETTINGS_KEY,\n JSON.stringify(settings)\n )\n}\n\n/**\n * Returns default settings overridden with any persisted state in local storage\n */\nasync function deserializeLocalStorage() {\n const adaptor = getEnvAdaptor()\n const settings = await adaptor.localStorageGetItem(\n StoreConstants.LOCALSTORAGE_SETTINGS_KEY\n )\n return settings\n ? { ...defaultSettings, ...JSON.parse(settings) }\n : defaultSettings\n}\n\n/**\n * Initializes the store with default settings and existing persisted settings\n */\nfunction* initSaga() {\n const { initSettingsSuccessAction, initSettingsFailureAction } =\n settingActions\n try {\n const settings = yield* call(deserializeLocalStorage)\n yield* put(initSettingsSuccessAction(settings))\n } catch (error: any) {\n yield* put(initSettingsFailureAction(error))\n }\n}\n\nexport function* saga() {\n const { initSettingsAction, setSdkLanguageAction } = settingActions\n\n yield* takeEvery(initSettingsAction, initSaga)\n yield* takeEvery(setSdkLanguageAction, serializeToLocalStorageSaga)\n}\n"],"mappings":";;;;;;AAyBA;AAEA;AACA;AAEA;AAAyD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAKzD,UAAUA,2BAA2B,GAAG;EACtC,IAAMC,OAAO,GAAG,IAAAC,6BAAa,GAAE;EAC/B,IAAMC,QAAQ,GAAG,OAAO,IAAAC,sBAAM,EAAEC,KAAgB,KAAM;IACpDC,WAAW,EAAED,KAAK,CAACF,QAAQ,CAACG;EAC9B,CAAC,CAAC,CAAC;EACHL,OAAO,CAACM,mBAAmB,CACzBC,qBAAc,CAACC,yBAAyB,EACxCC,IAAI,CAACC,SAAS,CAACR,QAAQ,CAAC,CACzB;AACH;AAAC,SAKcS,uBAAuB;EAAA;AAAA;AAAA;EAAA,6CAAtC,aAAyC;IACvC,IAAMX,OAAO,GAAG,IAAAC,6BAAa,GAAE;IAC/B,IAAMC,QAAQ,SAASF,OAAO,CAACY,mBAAmB,CAChDL,qBAAc,CAACC,yBAAyB,CACzC;IACD,OAAON,QAAQ,mCACNW,sBAAe,GAAKJ,IAAI,CAACK,KAAK,CAACZ,QAAQ,CAAC,IAC7CW,sBAAe;EACrB,CAAC;EAAA;AAAA;AAKD,UAAUE,QAAQ,GAAG;EACnB,IAAM;IAAEC,yBAAyB;IAAEC;EAA0B,CAAC,GAC5DC,qBAAc;EAChB,IAAI;IACF,IAAMhB,QAAQ,GAAG,OAAO,IAAAiB,oBAAI,EAACR,uBAAuB,CAAC;IACrD,OAAO,IAAAS,mBAAG,EAACJ,yBAAyB,CAACd,QAAQ,CAAC,CAAC;EACjD,CAAC,CAAC,OAAOmB,KAAU,EAAE;IACnB,OAAO,IAAAD,mBAAG,EAACH,yBAAyB,CAACI,KAAK,CAAC,CAAC;EAC9C;AACF;AAEO,UAAUC,IAAI,GAAG;EACtB,IAAM;IAAEC,kBAAkB;IAAEC;EAAqB,CAAC,GAAGN,qBAAc;EAEnE,OAAO,IAAAO,yBAAS,EAACF,kBAAkB,EAAER,QAAQ,CAAC;EAC9C,OAAO,IAAAU,yBAAS,EAACD,oBAAoB,EAAEzB,2BAA2B,CAAC;AACrE"}
1
+ {"version":3,"file":"sagas.js","names":["_typedReduxSaga","require","_extensionUtils","_runIt","_slice","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","asyncGeneratorStep","gen","resolve","reject","_next","_throw","info","error","done","Promise","then","_asyncToGenerator","fn","self","args","err","serializeToLocalStorageSaga","adaptor","getEnvAdaptor","settings","select","state","sdkLanguage","localStorageSetItem","StoreConstants","LOCALSTORAGE_SETTINGS_KEY","JSON","stringify","deserializeLocalStorage","_deserializeLocalStorage","localStorageGetItem","defaultSettings","parse","initSaga","initSettingsSuccessAction","initSettingsFailureAction","settingActions","put","saga","initSettingsAction","setSdkLanguageAction","takeEvery"],"sources":["../../../../src/state/settings/sagas.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport { takeEvery, call, put, select } from 'typed-redux-saga'\n\nimport { getEnvAdaptor } from '@looker/extension-utils'\nimport { StoreConstants } from '@looker/run-it'\nimport type { RootState } from '../store'\nimport { settingActions, defaultSettings } from './slice'\n\n/**\n * Serializes state to local storage\n */\nfunction* serializeToLocalStorageSaga() {\n const adaptor = getEnvAdaptor()\n const settings = yield* select((state: RootState) => ({\n sdkLanguage: state.settings.sdkLanguage,\n }))\n adaptor.localStorageSetItem(\n StoreConstants.LOCALSTORAGE_SETTINGS_KEY,\n JSON.stringify(settings)\n )\n}\n\n/**\n * Returns default settings overridden with any persisted state in local storage\n */\nasync function deserializeLocalStorage() {\n const adaptor = getEnvAdaptor()\n const settings = await adaptor.localStorageGetItem(\n StoreConstants.LOCALSTORAGE_SETTINGS_KEY\n )\n return settings\n ? { ...defaultSettings, ...JSON.parse(settings) }\n : defaultSettings\n}\n\n/**\n * Initializes the store with default settings and existing persisted settings\n */\nfunction* initSaga() {\n const { initSettingsSuccessAction, initSettingsFailureAction } =\n settingActions\n try {\n const settings = yield* call(deserializeLocalStorage)\n yield* put(initSettingsSuccessAction(settings))\n } catch (error: any) {\n yield* put(initSettingsFailureAction(error))\n }\n}\n\nexport function* saga() {\n const { initSettingsAction, setSdkLanguageAction } = settingActions\n\n yield* takeEvery(initSettingsAction, initSaga)\n yield* takeEvery(setSdkLanguageAction, serializeToLocalStorageSaga)\n}\n"],"mappings":";;;;;;AAyBA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S,mBAAG,EAACH,yBAAyB,CAACf,QAAQ,CAAC,CAAC;EACjD,CAAC,CAAC,OAAOZ,KAAU,EAAE;IACnB,OAAO,IAAA8B,mBAAG,EAACF,yBAAyB,CAAC5B,KAAK,CAAC,CAAC;EAC9C;AACF;AAEO,UAAU+B,IAAIA,CAAA,EAAG;EACtB,IAAM;IAAEC,kBAAkB;IAAEC;EAAqB,CAAC,GAAGJ,qBAAc;EAEnE,OAAO,IAAAK,yBAAS,EAACF,kBAAkB,EAAEN,QAAQ,CAAC;EAC9C,OAAO,IAAAQ,yBAAS,EAACD,oBAAoB,EAAExB,2BAA2B,CAAC;AACrE"}
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.js","names":["selectSettingsState","state","settings","selectSdkLanguage","sdkLanguage","selectSearchPattern","searchPattern","selectSearchCriteria","searchCriteria","selectTagFilter","tagFilter","isInitialized","initialized"],"sources":["../../../../src/state/settings/selectors.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { RootState } from '../store'\n\nconst selectSettingsState = (state: RootState) => state.settings\n\nexport const selectSdkLanguage = (state: RootState) =>\n selectSettingsState(state).sdkLanguage\n\nexport const selectSearchPattern = (state: RootState) =>\n selectSettingsState(state).searchPattern\n\nexport const selectSearchCriteria = (state: RootState) =>\n selectSettingsState(state).searchCriteria\n\nexport const selectTagFilter = (state: RootState) =>\n selectSettingsState(state).tagFilter\n\nexport const isInitialized = (state: RootState) =>\n selectSettingsState(state).initialized\n"],"mappings":";;;;;;AA2BA,IAAMA,mBAAmB,GAAIC,KAAgB,IAAKA,KAAK,CAACC,QAAQ;AAEzD,IAAMC,iBAAiB,GAAIF,KAAgB,IAChDD,mBAAmB,CAACC,KAAK,CAAC,CAACG,WAAW;AAAA;AAEjC,IAAMC,mBAAmB,GAAIJ,KAAgB,IAClDD,mBAAmB,CAACC,KAAK,CAAC,CAACK,aAAa;AAAA;AAEnC,IAAMC,oBAAoB,GAAIN,KAAgB,IACnDD,mBAAmB,CAACC,KAAK,CAAC,CAACO,cAAc;AAAA;AAEpC,IAAMC,eAAe,GAAIR,KAAgB,IAC9CD,mBAAmB,CAACC,KAAK,CAAC,CAACS,SAAS;AAAA;AAE/B,IAAMC,aAAa,GAAIV,KAAgB,IAC5CD,mBAAmB,CAACC,KAAK,CAAC,CAACW,WAAW;AAAA"}
1
+ {"version":3,"file":"selectors.js","names":["selectSettingsState","state","settings","selectSdkLanguage","sdkLanguage","exports","selectSearchPattern","searchPattern","selectSearchCriteria","searchCriteria","selectTagFilter","tagFilter","isInitialized","initialized"],"sources":["../../../../src/state/settings/selectors.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { RootState } from '../store'\n\nconst selectSettingsState = (state: RootState) => state.settings\n\nexport const selectSdkLanguage = (state: RootState) =>\n selectSettingsState(state).sdkLanguage\n\nexport const selectSearchPattern = (state: RootState) =>\n selectSettingsState(state).searchPattern\n\nexport const selectSearchCriteria = (state: RootState) =>\n selectSettingsState(state).searchCriteria\n\nexport const selectTagFilter = (state: RootState) =>\n selectSettingsState(state).tagFilter\n\nexport const isInitialized = (state: RootState) =>\n selectSettingsState(state).initialized\n"],"mappings":";;;;;;AA2BA,IAAMA,mBAAmB,GAAIC,KAAgB,IAAKA,KAAK,CAACC,QAAQ;AAEzD,IAAMC,iBAAiB,GAAIF,KAAgB,IAChDD,mBAAmB,CAACC,KAAK,CAAC,CAACG,WAAW;AAAAC,OAAA,CAAAF,iBAAA,GAAAA,iBAAA;AAEjC,IAAMG,mBAAmB,GAAIL,KAAgB,IAClDD,mBAAmB,CAACC,KAAK,CAAC,CAACM,aAAa;AAAAF,OAAA,CAAAC,mBAAA,GAAAA,mBAAA;AAEnC,IAAME,oBAAoB,GAAIP,KAAgB,IACnDD,mBAAmB,CAACC,KAAK,CAAC,CAACQ,cAAc;AAAAJ,OAAA,CAAAG,oBAAA,GAAAA,oBAAA;AAEpC,IAAME,eAAe,GAAIT,KAAgB,IAC9CD,mBAAmB,CAACC,KAAK,CAAC,CAACU,SAAS;AAAAN,OAAA,CAAAK,eAAA,GAAAA,eAAA;AAE/B,IAAME,aAAa,GAAIX,KAAgB,IAC5CD,mBAAmB,CAACC,KAAK,CAAC,CAACY,WAAW;AAAAR,OAAA,CAAAO,aAAA,GAAAA,aAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"slice.js","names":["defaultSettings","sdkLanguage","searchPattern","searchCriteria","setToCriteria","SearchAll","tagFilter","defaultSettingsState","initialized","settingsSlice","createSlice","name","initialState","reducers","initSettingsAction","initSettingsSuccessAction","state","action","payload","initSettingsFailureAction","error","setSdkLanguageAction","setSearchPatternAction","setTagFilterAction","settingActions","actions","useActions","useSettingActions","useStoreState","useSettingStoreState","createSliceHooks","saga"],"sources":["../../../../src/state/settings/slice.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport { createSlice } from '@reduxjs/toolkit'\nimport type { PayloadAction } from '@reduxjs/toolkit'\nimport { createSliceHooks } from '@looker/redux'\nimport type { SearchCriterionTerm } from '@looker/sdk-codegen'\nimport { SearchAll, setToCriteria } from '@looker/sdk-codegen'\n\nimport { saga } from './sagas'\n\nexport interface UserDefinedSettings {\n sdkLanguage: string\n}\n\nexport interface SettingState extends UserDefinedSettings {\n searchPattern: string\n searchCriteria: SearchCriterionTerm[]\n tagFilter: string\n initialized: boolean\n error?: Error\n}\n\nexport const defaultSettings = {\n sdkLanguage: 'Python',\n searchPattern: '',\n searchCriteria: setToCriteria(SearchAll) as SearchCriterionTerm[],\n tagFilter: 'ALL',\n}\n\nexport const defaultSettingsState: SettingState = {\n ...defaultSettings,\n initialized: false,\n}\n\ntype SetSearchPatternAction = Pick<SettingState, 'searchPattern'>\ntype SetSdkLanguageAction = Pick<SettingState, 'sdkLanguage'>\ntype SetTagFilterAction = Pick<SettingState, 'tagFilter'>\n\nexport type InitSuccessPayload = UserDefinedSettings\n\nexport const settingsSlice = createSlice({\n name: 'settings',\n initialState: defaultSettingsState,\n reducers: {\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n initSettingsAction() {},\n initSettingsSuccessAction(\n state,\n action: PayloadAction<InitSuccessPayload>\n ) {\n state.sdkLanguage = action.payload.sdkLanguage\n state.initialized = true\n },\n initSettingsFailureAction(state, action: PayloadAction<Error>) {\n state.error = action.payload\n state.initialized = false\n },\n setSdkLanguageAction(state, action: PayloadAction<SetSdkLanguageAction>) {\n state.sdkLanguage = action.payload.sdkLanguage\n },\n setSearchPatternAction(\n state,\n action: PayloadAction<SetSearchPatternAction>\n ) {\n state.searchPattern = action.payload.searchPattern\n },\n setTagFilterAction(state, action: PayloadAction<SetTagFilterAction>) {\n state.tagFilter = action.payload.tagFilter\n },\n },\n})\n\nexport const settingActions = settingsSlice.actions\nexport const {\n useActions: useSettingActions,\n useStoreState: useSettingStoreState,\n} = createSliceHooks(settingsSlice, saga)\n"],"mappings":";;;;;;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C,UAAU,EAAEC,iBAAiB;EAC7BC,aAAa,EAAEC;AACjB,CAAC,GAAG,IAAAC,uBAAgB,EAACrB,aAAa,EAAEsB,WAAI,CAAC;AAAA;AAAA"}
1
+ {"version":3,"file":"slice.js","names":["_toolkit","require","_redux","_sdkCodegen","_sagas","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","defaultSettings","sdkLanguage","searchPattern","searchCriteria","setToCriteria","SearchAll","tagFilter","exports","defaultSettingsState","initialized","settingsSlice","createSlice","name","initialState","reducers","initSettingsAction","initSettingsSuccessAction","state","action","payload","initSettingsFailureAction","error","setSdkLanguageAction","setSearchPatternAction","setTagFilterAction","settingActions","actions","useActions","useSettingActions","useStoreState","useSettingStoreState","createSliceHooks","saga"],"sources":["../../../../src/state/settings/slice.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport { createSlice } from '@reduxjs/toolkit'\nimport type { PayloadAction } from '@reduxjs/toolkit'\nimport { createSliceHooks } from '@looker/redux'\nimport type { SearchCriterionTerm } from '@looker/sdk-codegen'\nimport { SearchAll, setToCriteria } from '@looker/sdk-codegen'\n\nimport { saga } from './sagas'\n\nexport interface UserDefinedSettings {\n sdkLanguage: string\n}\n\nexport interface SettingState extends UserDefinedSettings {\n searchPattern: string\n searchCriteria: SearchCriterionTerm[]\n tagFilter: string\n initialized: boolean\n error?: Error\n}\n\nexport const defaultSettings = {\n sdkLanguage: 'Python',\n searchPattern: '',\n searchCriteria: setToCriteria(SearchAll) as SearchCriterionTerm[],\n tagFilter: 'ALL',\n}\n\nexport const defaultSettingsState: SettingState = {\n ...defaultSettings,\n initialized: false,\n}\n\ntype SetSearchPatternAction = Pick<SettingState, 'searchPattern'>\ntype SetSdkLanguageAction = Pick<SettingState, 'sdkLanguage'>\ntype SetTagFilterAction = Pick<SettingState, 'tagFilter'>\n\nexport type InitSuccessPayload = UserDefinedSettings\n\nexport const settingsSlice = createSlice({\n name: 'settings',\n initialState: defaultSettingsState,\n reducers: {\n // eslint-disable-next-line @typescript-eslint/no-empty-function\n initSettingsAction() {},\n initSettingsSuccessAction(\n state,\n action: PayloadAction<InitSuccessPayload>\n ) {\n state.sdkLanguage = action.payload.sdkLanguage\n state.initialized = true\n },\n initSettingsFailureAction(state, action: PayloadAction<Error>) {\n state.error = action.payload\n state.initialized = false\n },\n setSdkLanguageAction(state, action: PayloadAction<SetSdkLanguageAction>) {\n state.sdkLanguage = action.payload.sdkLanguage\n },\n setSearchPatternAction(\n state,\n action: PayloadAction<SetSearchPatternAction>\n ) {\n state.searchPattern = action.payload.searchPattern\n },\n setTagFilterAction(state, action: PayloadAction<SetTagFilterAction>) {\n state.tagFilter = action.payload.tagFilter\n },\n },\n})\n\nexport const settingActions = settingsSlice.actions\nexport const {\n useActions: useSettingActions,\n useStoreState: useSettingStoreState,\n} = createSliceHooks(settingsSlice, saga)\n"],"mappings":";;;;;;AAyBA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AAA8B,SAAAI,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,WAAAF,SAAA,CAAAD,CAAA,IAAAC,SAAA,CAAAD,CAAA,QAAAA,CAAA,OAAAf,OAAA,CAAAI,MAAA,CAAAc,MAAA,OAAAC,OAAA,WAAAC,GAAA,IAAAC,eAAA,CAAAP,MAAA,EAAAM,GAAA,EAAAF,MAAA,CAAAE,GAAA,SAAAhB,MAAA,CAAAkB,yBAAA,GAAAlB,MAAA,CAAAmB,gBAAA,CAAAT,MAAA,EAAAV,MAAA,CAAAkB,yBAAA,CAAAJ,MAAA,KAAAlB,OAAA,CAAAI,MAAA,CAAAc,MAAA,GAAAC,OAAA,WAAAC,GAAA,IAAAhB,MAAA,CAAAoB,cAAA,CAAAV,MAAA,EAAAM,GAAA,EAAAhB,MA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EAAEL,oBAAoB;EAClCM,QAAQ,EAAE;IAERC,kBAAkBA,CAAA,EAAG,CAAC,CAAC;IACvBC,yBAAyBA,CACvBC,KAAK,EACLC,MAAyC,EACzC;MACAD,KAAK,CAAChB,WAAW,GAAGiB,MAAM,CAACC,OAAO,CAAClB,WAAW;MAC9CgB,KAAK,CAACR,WAAW,GAAG,IAAI;IAC1B,CAAC;IACDW,yBAAyBA,CAACH,KAAK,EAAEC,MAA4B,EAAE;MAC7DD,KAAK,CAACI,KAAK,GAAGH,MAAM,CAACC,OAAO;MAC5BF,KAAK,CAACR,WAAW,GAAG,KAAK;IAC3B,CAAC;IACDa,oBAAoBA,CAACL,KAAK,EAAEC,MAA2C,EAAE;MACvED,KAAK,CAAChB,WAAW,GAAGiB,MAAM,CAACC,OAAO,CAAClB,WAAW;IAChD,CAAC;IACDsB,sBAAsBA,CACpBN,KAAK,EACLC,MAA6C,EAC7C;MACAD,KAAK,CAACf,aAAa,GAAGgB,MAAM,CAACC,OAAO,CAACjB,aAAa;IACpD,CAAC;IACDsB,kBAAkBA,CAACP,KAAK,EAAEC,MAAyC,EAAE;MACnED,KAAK,CAACX,SAAS,GAAGY,MAAM,CAACC,OAAO,CAACb,SAAS;IAC5C;EACF;AACF,CAAC,CAAC;AAAAC,OAAA,CAAAG,aAAA,GAAAA,aAAA;AAEK,IAAMe,cAAc,GAAGf,aAAa,CAACgB,OAAO;AAAAnB,OAAA,CAAAkB,cAAA,GAAAA,cAAA;AAC5C,IAAM;EACXE,UAAU,EAAEC,iBAAiB;EAC7BC,aAAa,EAAEC;AACjB,CAAC,GAAG,IAAAC,uBAAgB,EAACrB,aAAa,EAAEsB,WAAI,CAAC;AAAAzB,OAAA,CAAAuB,oBAAA,GAAAA,oBAAA;AAAAvB,OAAA,CAAAqB,iBAAA,GAAAA,iBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../../src/state/specs/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './selectors'\nexport * from './slice'\n"],"mappings":";;;;;AAyBA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":["_selectors","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_slice"],"sources":["../../../../src/state/specs/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './selectors'\nexport * from './slice'\n"],"mappings":";;;;;AAyBA,IAAAA,UAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,UAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,UAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,MAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,MAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,MAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,MAAA,CAAAL,GAAA;IAAA;EAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"sagas.js","names":["initSaga","action","initSpecsSuccessAction","initSpecsFailureAction","specActions","adaptor","getApixAdaptor","specs","call","currentSpecKey","payload","specKey","Object","values","find","spec","status","key","put","error","Error","message","setCurrentSpecSaga","setCurrentSpecSuccessAction","setCurrentSpecFailureAction","select","state","newSpec","api","saga","initSpecsAction","setCurrentSpecAction","takeEvery"],"sources":["../../../../src/state/specs/sagas.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { SpecItem, SpecList } from '@looker/sdk-codegen'\nimport { call, put, takeEvery, select } from 'typed-redux-saga'\nimport type { PayloadAction } from '@reduxjs/toolkit'\n\nimport { getApixAdaptor } from '../../utils'\nimport type { RootState } from '../store'\nimport type { InitSpecsAction, SetCurrentSpecAction } from './slice'\nimport { specActions } from './slice'\n\nfunction* initSaga(action: PayloadAction<InitSpecsAction>) {\n const { initSpecsSuccessAction, initSpecsFailureAction } = specActions\n const adaptor = getApixAdaptor()\n\n try {\n const specs: SpecList = yield* call([adaptor, 'fetchSpecList'])\n let currentSpecKey = action.payload.specKey\n if (!currentSpecKey || !specs[currentSpecKey]) {\n // if current spec key is invalid or not assigned, default to the first \"current\" spec\n currentSpecKey = Object.values(specs).find(\n (spec) => spec.status === 'current'\n )!.key\n }\n const spec = yield* call([adaptor, 'fetchSpec'], specs[currentSpecKey])\n specs[currentSpecKey] = spec\n yield* put(initSpecsSuccessAction({ specs, currentSpecKey }))\n } catch (error: any) {\n yield* put(initSpecsFailureAction(new Error(error.message)))\n }\n}\n\nfunction* setCurrentSpecSaga(action: PayloadAction<SetCurrentSpecAction>) {\n const { setCurrentSpecSuccessAction, setCurrentSpecFailureAction } =\n specActions\n const adaptor = getApixAdaptor()\n const spec: SpecItem = yield* select(\n (state: RootState) => state.specs.specs[action.payload.currentSpecKey]\n )\n\n try {\n const newSpec = yield* call([adaptor, 'fetchSpec'], spec)\n yield* put(\n setCurrentSpecSuccessAction({\n api: newSpec.api!,\n currentSpecKey: action.payload.currentSpecKey,\n })\n )\n } catch (error: any) {\n yield put(setCurrentSpecFailureAction(new Error(error.message)))\n }\n}\n\nexport function* saga() {\n const { initSpecsAction, setCurrentSpecAction } = specActions\n\n yield* takeEvery(initSpecsAction, initSaga)\n yield* takeEvery(setCurrentSpecAction, setCurrentSpecSaga)\n}\n"],"mappings":";;;;;;AA0BA;AAGA;AAGA;AAEA,UAAUA,QAAQ,CAACC,MAAsC,EAAE;EACzD,IAAM;IAAEC,sBAAsB;IAAEC;EAAuB,CAAC,GAAGC,kBAAW;EACtE,IAAMC,OAAO,GAAG,IAAAC,qBAAc,GAAE;EAEhC,IAAI;IACF,IAAMC,KAAe,GAAG,OAAO,IAAAC,oBAAI,EAAC,CAACH,OAAO,EAAE,eAAe,CAAC,CAAC;IAC/D,IAAII,cAAc,GAAGR,MAAM,CAACS,OAAO,CAACC,OAAO;IAC3C,IAAI,CAACF,cAAc,IAAI,CAACF,KAAK,CAACE,cAAc,CAAC,EAAE;MAE7CA,cAAc,GAAGG,MAAM,CAACC,MAAM,CAACN,KAAK,CAAC,CAACO,IAAI,CAC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AM;IAAEC,eAAe;IAAEC;EAAqB,CAAC,GAAG3B,kBAAW;EAE7D,OAAO,IAAA4B,yBAAS,EAACF,eAAe,EAAE9B,QAAQ,CAAC;EAC3C,OAAO,IAAAgC,yBAAS,EAACD,oBAAoB,EAAET,kBAAkB,CAAC;AAC5D"}
1
+ {"version":3,"file":"sagas.js","names":["_typedReduxSaga","require","_utils","_slice","initSaga","action","initSpecsSuccessAction","initSpecsFailureAction","specActions","adaptor","getApixAdaptor","specs","call","currentSpecKey","payload","specKey","Object","values","find","spec","status","key","put","error","Error","message","setCurrentSpecSaga","setCurrentSpecSuccessAction","setCurrentSpecFailureAction","select","state","newSpec","api","saga","initSpecsAction","setCurrentSpecAction","takeEvery"],"sources":["../../../../src/state/specs/sagas.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { SpecItem, SpecList } from '@looker/sdk-codegen'\nimport { call, put, takeEvery, select } from 'typed-redux-saga'\nimport type { PayloadAction } from '@reduxjs/toolkit'\n\nimport { getApixAdaptor } from '../../utils'\nimport type { RootState } from '../store'\nimport type { InitSpecsAction, SetCurrentSpecAction } from './slice'\nimport { specActions } from './slice'\n\nfunction* initSaga(action: PayloadAction<InitSpecsAction>) {\n const { initSpecsSuccessAction, initSpecsFailureAction } = specActions\n const adaptor = getApixAdaptor()\n\n try {\n const specs: SpecList = yield* call([adaptor, 'fetchSpecList'])\n let currentSpecKey = action.payload.specKey\n if (!currentSpecKey || !specs[currentSpecKey]) {\n // if current spec key is invalid or not assigned, default to the first \"current\" spec\n currentSpecKey = Object.values(specs).find(\n (spec) => spec.status === 'current'\n )!.key\n }\n const spec = yield* call([adaptor, 'fetchSpec'], specs[currentSpecKey])\n specs[currentSpecKey] = spec\n yield* put(initSpecsSuccessAction({ specs, currentSpecKey }))\n } catch (error: any) {\n yield* put(initSpecsFailureAction(new Error(error.message)))\n }\n}\n\nfunction* setCurrentSpecSaga(action: PayloadAction<SetCurrentSpecAction>) {\n const { setCurrentSpecSuccessAction, setCurrentSpecFailureAction } =\n specActions\n const adaptor = getApixAdaptor()\n const spec: SpecItem = yield* select(\n (state: RootState) => state.specs.specs[action.payload.currentSpecKey]\n )\n\n try {\n const newSpec = yield* call([adaptor, 'fetchSpec'], spec)\n yield* put(\n setCurrentSpecSuccessAction({\n api: newSpec.api!,\n currentSpecKey: action.payload.currentSpecKey,\n })\n )\n } catch (error: any) {\n yield put(setCurrentSpecFailureAction(new Error(error.message)))\n }\n}\n\nexport function* saga() {\n const { initSpecsAction, setCurrentSpecAction } = specActions\n\n yield* takeEvery(initSpecsAction, initSaga)\n yield* takeEvery(setCurrentSpecAction, setCurrentSpecSaga)\n}\n"],"mappings":";;;;;;AA0BA,IAAAA,eAAA,GAAAC,OAAA;AAGA,IAAAC,MAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAF,OAAA;AAEA,UAAUG,QAAQA,CAACC,MAAsC,EAAE;EACzD,IAAM;IAAEC,sBAAs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AAO,EAAE,WAAW,CAAC,EAAEU,IAAI,CAAC;IACzD,OAAO,IAAAG,mBAAG,EACRK,2BAA2B,CAAC;MAC1BK,GAAG,EAAED,OAAO,CAACC,GAAI;MACjBnB,cAAc,EAAER,MAAM,CAACS,OAAO,CAACD;IACjC,CAAC,CAAC,CACH;EACH,CAAC,CAAC,OAAOU,KAAU,EAAE;IACnB,MAAM,IAAAD,mBAAG,EAACM,2BAA2B,CAAC,IAAIJ,KAAK,CAACD,KAAK,CAACE,OAAO,CAAC,CAAC,CAAC;EAClE;AACF;AAEO,UAAUQ,IAAIA,CAAA,EAAG;EACtB,IAAM;IAAEC,eAAe;IAAEC;EAAqB,CAAC,GAAG3B,kBAAW;EAE7D,OAAO,IAAA4B,yBAAS,EAACF,eAAe,EAAE9B,QAAQ,CAAC;EAC3C,OAAO,IAAAgC,yBAAS,EAACD,oBAAoB,EAAET,kBAAkB,CAAC;AAC5D"}
@@ -1 +1 @@
1
- {"version":3,"file":"selectors.js","names":["selectSpecsState","state","specs","selectSpecs","selectCurrentSpec","specState","currentSpecKey"],"sources":["../../../../src/state/specs/selectors.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { SpecItem } from '@looker/sdk-codegen'\n\nimport type { RootState } from '../store'\n\nconst selectSpecsState = (state: RootState) => state.specs\n\nexport const selectSpecs = (state: RootState) => selectSpecsState(state).specs\n\nexport const selectCurrentSpec = (state: RootState): SpecItem => {\n const specState = selectSpecsState(state)\n return specState.specs[specState.currentSpecKey]\n}\n"],"mappings":";;;;;;AA6BA,IAAMA,gBAAgB,GAAIC,KAAgB,IAAKA,KAAK,CAACC,KAAK;AAEnD,IAAMC,WAAW,GAAIF,KAAgB,IAAKD,gBAAgB,CAACC,KAAK,CAAC,CAACC,KAAK;AAAA;AAEvE,IAAME,iBAAiB,GAAIH,KAAgB,IAAe;EAC/D,IAAMI,SAAS,GAAGL,gBAAgB,CAACC,KAAK,CAAC;EACzC,OAAOI,SAAS,CAACH,KAAK,CAACG,SAAS,CAACC,cAAc,CAAC;AAClD,CAAC;AAAA"}
1
+ {"version":3,"file":"selectors.js","names":["selectSpecsState","state","specs","selectSpecs","exports","selectCurrentSpec","specState","currentSpecKey"],"sources":["../../../../src/state/specs/selectors.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { SpecItem } from '@looker/sdk-codegen'\n\nimport type { RootState } from '../store'\n\nconst selectSpecsState = (state: RootState) => state.specs\n\nexport const selectSpecs = (state: RootState) => selectSpecsState(state).specs\n\nexport const selectCurrentSpec = (state: RootState): SpecItem => {\n const specState = selectSpecsState(state)\n return specState.specs[specState.currentSpecKey]\n}\n"],"mappings":";;;;;;AA6BA,IAAMA,gBAAgB,GAAIC,KAAgB,IAAKA,KAAK,CAACC,KAAK;AAEnD,IAAMC,WAAW,GAAIF,KAAgB,IAAKD,gBAAgB,CAACC,KAAK,CAAC,CAACC,KAAK;AAAAE,OAAA,CAAAD,WAAA,GAAAA,WAAA;AAEvE,IAAME,iBAAiB,GAAIJ,KAAgB,IAAe;EAC/D,IAAMK,SAAS,GAAGN,gBAAgB,CAACC,KAAK,CAAC;EACzC,OAAOK,SAAS,CAACJ,KAAK,CAACI,SAAS,CAACC,cAAc,CAAC;AAClD,CAAC;AAAAH,OAAA,CAAAC,iBAAA,GAAAA,iBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"slice.js","names":["defaultSpecsState","specs","currentSpecKey","working","description","undefined","specsSlice","createSlice","name","initialState","reducers","initSpecsAction","state","_action","initSpecsSuccessAction","action","payload","initSpecsFailureAction","error","setCurrentSpecAction","setCurrentSpecSuccessAction","api","setCurrentSpecFailureAction","specActions","actions","useActions","useSpecActions","useStoreState","useSpecStoreState","createSliceHooks","saga"],"sources":["../../../../src/state/specs/slice.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { PayloadAction } from '@reduxjs/toolkit'\nimport { createSlice } from '@reduxjs/toolkit'\nimport type { ApiModel, SpecList } from '@looker/sdk-codegen'\nimport { createSliceHooks } from '@looker/redux'\n\nimport { saga } from './sagas'\n\nexport interface SpecState {\n specs: SpecList\n currentSpecKey: string\n error?: Error\n working: boolean\n description?: string\n}\n\nexport const defaultSpecsState: SpecState = {\n specs: {},\n currentSpecKey: '',\n working: true,\n description: undefined,\n}\n\nexport interface InitSpecsAction {\n specKey: string | null\n}\n\nexport interface InitSpecsSuccessPayload {\n specs: SpecList\n currentSpecKey: string\n}\n\nexport interface SetCurrentSpecAction {\n currentSpecKey: string\n}\n\ninterface SetCurrentSpecSuccessAction {\n api: ApiModel\n currentSpecKey: string\n}\n\nexport const specsSlice = createSlice({\n name: 'specs',\n initialState: defaultSpecsState,\n reducers: {\n initSpecsAction(state, _action: PayloadAction<InitSpecsAction>) {\n state.working = true\n state.description = 'Fetching specifications...'\n },\n initSpecsSuccessAction(\n state,\n action: PayloadAction<InitSpecsSuccessPayload>\n ) {\n state.specs = action.payload.specs\n state.currentSpecKey = action.payload.currentSpecKey\n state.working = false\n state.description = undefined\n },\n initSpecsFailureAction(state, action: PayloadAction<Error>) {\n state.working = false\n state.error = action.payload\n },\n setCurrentSpecAction(state, action: PayloadAction<SetCurrentSpecAction>) {\n state.working = true\n state.description = `Fetching API ${action.payload.currentSpecKey} spec`\n },\n setCurrentSpecSuccessAction(\n state,\n action: PayloadAction<SetCurrentSpecSuccessAction>\n ) {\n state.currentSpecKey = action.payload.currentSpecKey\n state.specs[state.currentSpecKey].api = action.payload.api\n state.description = undefined\n state.working = false\n },\n setCurrentSpecFailureAction(state, action: PayloadAction<Error>) {\n state.working = false\n state.error = action.payload\n },\n },\n})\n\nexport const specActions = specsSlice.actions\nexport const { useActions: useSpecActions, useStoreState: useSpecStoreState } =\n createSliceHooks(specsSlice, saga)\n"],"mappings":";;;;;;AA0BA;AAEA;AAEA;AAUO,IAAMA,iBAA4B,GAAG;EAC1CC,KAAK,EAAE,CAAC,CAAC;EACTC,cAAc,EAAE,EAAE;EAClBC,OAAO,EAAE,IAAI;EACbC,WAAW,EAAEC;AACf,CAAC;AAAA;AAoBM,IAAMC,UAAU,GAAG,IAAAC,oBAAW,EAAC;EACpCC,IAAI,EAAE,OAAO;EACbC,YAAY,EAAET,iBAAiB;EAC/BU,QAAQ,EAAE;IACRC,eAAe,CAACC,KAAK,EAAEC,OAAuC,EAAE;MAC9DD,KAAK,CAACT,OAAO,GAAG,IAAI;MACpBS,KAAK,CAACR,WAAW,GAAG,4BAA4B;IAClD,CAAC;IACDU,sBAAsB,CACpBF,KAAK,EACLG,MAA8C,EAC9C;MACAH,KAAK,CAACX,KAAK,GAAGc,MAAM,CAACC,OAAO,CAACf,KAAK;MAClCW,KAAK,CAACV,cAAc,GAAGa,MAAM,CAACC,OAAO,CAACd,cAAc;MACpDU,KAAK,CAACT,OAAO,GAAG,KAAK;MACrBS,KAAK,CAACR,WAAW,GAAGC,SAAS;IAC/B,CAAC;IACDY,sBAAsB,CAACL,KAAK,EAAEG,MAA4B,EAAE;MAC1DH,KAAK,CAACT,OAAO,GAAG,KAAK;MACrBS,KAAK,CAACM,KAAK,GAAGH,MAAM,CAACC,OAAO;IAC9B,CAAC;IACDG,oBAAoB,CAACP,KAAK,EAAEG,MAA2C,EAAE;MACvEH,KAAK,CAACT,OAAO,GAAG,IAAI;MACpBS,KAAK,CAACR,WAAW,0BAAmBW,MAAM,CAACC,OAAO,CAACd,cAAc,UAAO;IAC1E,CAAC;IACDkB,2BAA2B,CACzBR,KAAK,EACLG,MAAkD,EAClD;MACAH,KAAK,CAACV,cAAc,GAAGa,MAAM,CAACC,OAAO,CAACd,cAAc;MACpDU,KAAK,CAACX,KAAK,CAACW,KAAK,CAACV,cAAc,CAAC,CAACmB,GAAG,GAAGN,MAAM,CAACC,OAAO,CAACK,GAAG;MAC1DT,KAAK,CAACR,WAAW,GAAGC,SAAS;MAC7BO,KAAK,CAACT,OAAO,GAAG,KAAK;IACvB,CAAC;IACDmB,2BAA2B,CAACV,KAAK,EAAEG,MAA4B,EAAE;MAC/DH,KAAK,CAACT,OAAO,GAAG,KAAK;MACrBS,KAAK,CAACM,KAAK,GAAGH,MAAM,CAACC,OAAO;IAC9B;EACF;AACF,CAAC,CAAC;AAAA;AAEK,IAAMO,WAAW,GAAGjB,UAAU,CAACkB,OAAO;AAAA;AACtC,IAAM;EAAEC,UAAU,EAAEC,cAAc;EAAEC,aAAa,EAAEC;AAAkB,CAAC,GAC3E,IAAAC,uBAAgB,EAACvB,UAAU,EAAEwB,WAAI,CAAC;AAAA;AAAA"}
1
+ {"version":3,"file":"slice.js","names":["_toolkit","require","_redux","_sagas","defaultSpecsState","specs","currentSpecKey","working","description","undefined","exports","specsSlice","createSlice","name","initialState","reducers","initSpecsAction","state","_action","initSpecsSuccessAction","action","payload","initSpecsFailureAction","error","setCurrentSpecAction","concat","setCurrentSpecSuccessAction","api","setCurrentSpecFailureAction","specActions","actions","useActions","useSpecActions","useStoreState","useSpecStoreState","createSliceHooks","saga"],"sources":["../../../../src/state/specs/slice.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { PayloadAction } from '@reduxjs/toolkit'\nimport { createSlice } from '@reduxjs/toolkit'\nimport type { ApiModel, SpecList } from '@looker/sdk-codegen'\nimport { createSliceHooks } from '@looker/redux'\n\nimport { saga } from './sagas'\n\nexport interface SpecState {\n specs: SpecList\n currentSpecKey: string\n error?: Error\n working: boolean\n description?: string\n}\n\nexport const defaultSpecsState: SpecState = {\n specs: {},\n currentSpecKey: '',\n working: true,\n description: undefined,\n}\n\nexport interface InitSpecsAction {\n specKey: string | null\n}\n\nexport interface InitSpecsSuccessPayload {\n specs: SpecList\n currentSpecKey: string\n}\n\nexport interface SetCurrentSpecAction {\n currentSpecKey: string\n}\n\ninterface SetCurrentSpecSuccessAction {\n api: ApiModel\n currentSpecKey: string\n}\n\nexport const specsSlice = createSlice({\n name: 'specs',\n initialState: defaultSpecsState,\n reducers: {\n initSpecsAction(state, _action: PayloadAction<InitSpecsAction>) {\n state.working = true\n state.description = 'Fetching specifications...'\n },\n initSpecsSuccessAction(\n state,\n action: PayloadAction<InitSpecsSuccessPayload>\n ) {\n state.specs = action.payload.specs\n state.currentSpecKey = action.payload.currentSpecKey\n state.working = false\n state.description = undefined\n },\n initSpecsFailureAction(state, action: PayloadAction<Error>) {\n state.working = false\n state.error = action.payload\n },\n setCurrentSpecAction(state, action: PayloadAction<SetCurrentSpecAction>) {\n state.working = true\n state.description = `Fetching API ${action.payload.currentSpecKey} spec`\n },\n setCurrentSpecSuccessAction(\n state,\n action: PayloadAction<SetCurrentSpecSuccessAction>\n ) {\n state.currentSpecKey = action.payload.currentSpecKey\n state.specs[state.currentSpecKey].api = action.payload.api\n state.description = undefined\n state.working = false\n },\n setCurrentSpecFailureAction(state, action: PayloadAction<Error>) {\n state.working = false\n state.error = action.payload\n },\n },\n})\n\nexport const specActions = specsSlice.actions\nexport const { useActions: useSpecActions, useStoreState: useSpecStoreState } =\n createSliceHooks(specsSlice, saga)\n"],"mappings":";;;;;;AA0BA,IAAAA,QAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AAUO,IAAMG,iBAA4B,GAAG;EAC1CC,KAAK,EAAE,CAAC,CAAC;EACTC,cAAc,EAAE,EAAE;EAClBC,OAAO,EAAE,IAAI;EACbC,WAAW,EAAEC;AACf,CAAC;AAAAC,OAAA,CAAAN,iBAAA,GAAAA,iBAAA;AAoBM,IAAMO,UAAU,GAAG,IAAAC,oBAAW,EAAC;EACpCC,IAAI,EAAE,OAAO;EACbC,YAAY,EAAEV,iBAAiB;EAC/BW,QAAQ,EAAE;IACRC,eAAeA,CAACC,KAAK,EAAEC,OAAuC,EAAE;MAC9DD,KAAK,CAACV,OAAO,GAAG,IAAI;MACpBU,KAAK,CAACT,WAAW,GAAG,4BA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;EAAEE,UAAU,EAAEC,cAAc;EAAEC,aAAa,EAAEC;AAAkB,CAAC,GAC3E,IAAAC,uBAAgB,EAACxB,UAAU,EAAEyB,WAAI,CAAC;AAAA1B,OAAA,CAAAwB,iBAAA,GAAAA,iBAAA;AAAAxB,OAAA,CAAAsB,cAAA,GAAAA,cAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"store.js","names":["isInitSuccessAction","action","payload","specs","actionSanitizer","_id","sanitizeSpecs","stateSanitizer","state","_index","specList","map","spec","api","undefined","specContent","devTools","process","env","NODE_ENV","store","createStore","preloadedState","settings","defaultSettingsState","lodes","defaultLodesState","defaultSpecsState","reducer","settingsSlice","lodesSlice","specsSlice"],"sources":["../../../src/state/store.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport { createStore } from '@looker/redux'\nimport type { DevToolsEnhancerOptions, PayloadAction } from '@reduxjs/toolkit'\nimport type { Action } from 'redux'\nimport map from 'lodash/map'\nimport type { SpecList } from '@looker/sdk-codegen'\n\nimport type { SettingState } from './settings'\nimport { defaultSettingsState, settingsSlice } from './settings'\nimport type { LodesState } from './lodes'\nimport { lodesSlice, defaultLodesState } from './lodes'\nimport type { SpecState, InitSpecsSuccessPayload } from './specs'\nimport { defaultSpecsState, specsSlice } from './specs'\n\nconst isInitSuccessAction = (\n action: any\n): action is PayloadAction<InitSpecsSuccessPayload> => !!action.payload?.specs\n\nconst actionSanitizer = <A extends Partial<Action>>(\n action: A,\n _id: number\n): A => {\n if (isInitSuccessAction(action)) {\n action = {\n ...action,\n payload: {\n ...action.payload,\n specs: sanitizeSpecs(action.payload.specs),\n },\n }\n }\n return action\n}\n\nconst stateSanitizer = <S extends Partial<RootState>>(\n state: S,\n _index: number\n): S => {\n if (state.specs) {\n return {\n ...state,\n specs: {\n ...state.specs,\n specs: sanitizeSpecs(state.specs.specs),\n },\n }\n }\n return state\n}\n\nconst sanitizeSpecs = (specList: SpecList) =>\n map(specList, (spec) => ({\n ...spec,\n api: spec.api ? '<api>' : undefined,\n specContent: spec.specContent ? '<specContent>' : undefined,\n })) as unknown as SpecList\n\nconst devTools =\n process.env.NODE_ENV !== 'production'\n ? ({ actionSanitizer, stateSanitizer } as DevToolsEnhancerOptions)\n : false\n\nexport const store = createStore({\n devTools,\n preloadedState: {\n settings: defaultSettingsState,\n lodes: defaultLodesState,\n specs: defaultSpecsState,\n },\n reducer: {\n settings: settingsSlice.reducer,\n lodes: lodesSlice.reducer,\n specs: specsSlice.reducer,\n },\n})\n\nexport interface RootState {\n settings: SettingState\n lodes: LodesState\n specs: SpecState\n}\n"],"mappings":";;;;;;AAyBA;AAGA;AAIA;AAEA;AAEA;AAAuD;AAAA;AAAA;AAAA;AAAA;AAAA;AAEvD,IAAMA,mBAAmB,GACvBC,MAAW;EAAA;EAAA,OAC0C,CAAC,qBAACA,MAAM,CAACC,OAAO,4CAAd,gBAAgBC,KAAK;AAAA;AAE9E,IAAMC,eAAe,GAAG,C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_interopRequireDefault","_settings","_lodes","_specs","obj","__esModule","default","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","isInitSuccessAction","action","_action$payload","payload","specs","actionSanitizer","_id","sanitizeSpecs","stateSanitizer","state","_index","specList","map","spec","api","specContent","devTools","process","env","NODE_ENV","store","createStore","preloadedState","settings","defaultSettingsState","lodes","defaultLodesState","defaultSpecsState","reducer","settingsSlice","lodesSlice","specsSlice","exports"],"sources":["../../../src/state/store.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport { createStore } from '@looker/redux'\nimport type { DevToolsEnhancerOptions, PayloadAction } from '@reduxjs/toolkit'\nimport type { Action } from 'redux'\nimport map from 'lodash/map'\nimport type { SpecList } from '@looker/sdk-codegen'\n\nimport type { SettingState } from './settings'\nimport { defaultSettingsState, settingsSlice } from './settings'\nimport type { LodesState } from './lodes'\nimport { lodesSlice, defaultLodesState } from './lodes'\nimport type { SpecState, InitSpecsSuccessPayload } from './specs'\nimport { defaultSpecsState, specsSlice } from './specs'\n\nconst isInitSuccessAction = (\n action: any\n): action is PayloadAction<InitSpecsSuccessPayload> => !!action.payload?.specs\n\nconst actionSanitizer = <A extends Partial<Action>>(\n action: A,\n _id: number\n): A => {\n if (isInitSuccessAction(action)) {\n action = {\n ...action,\n payload: {\n ...action.payload,\n specs: sanitizeSpecs(action.payload.specs),\n },\n }\n }\n return action\n}\n\nconst stateSanitizer = <S extends Partial<RootState>>(\n state: S,\n _index: number\n): S => {\n if (state.specs) {\n return {\n ...state,\n specs: {\n ...state.specs,\n specs: sanitizeSpecs(state.specs.specs),\n },\n }\n }\n return state\n}\n\nconst sanitizeSpecs = (specList: SpecList) =>\n map(specList, (spec) => ({\n ...spec,\n api: spec.api ? '<api>' : undefined,\n specContent: spec.specContent ? '<specContent>' : undefined,\n })) as unknown as SpecList\n\nconst devTools =\n process.env.NODE_ENV !== 'production'\n ? ({ actionSanitizer, stateSanitizer } as DevToolsEnhancerOptions)\n : false\n\nexport const store = createStore({\n devTools,\n preloadedState: {\n settings: defaultSettingsState,\n lodes: defaultLodesState,\n specs: defaultSpecsState,\n },\n reducer: {\n settings: settingsSlice.reducer,\n lodes: lodesSlice.reducer,\n specs: specsSlice.reducer,\n },\n})\n\nexport interface RootState {\n settings: SettingState\n lodes: LodesState\n specs: SpecState\n}\n"],"mappings":";;;;;;AAyBA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,IAAA,GAAAC,sBAAA,CAAAF,OAAA;AAIA,IAAAG,SAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AAEA,IAAAK,MAAA,GAAAL,OAAA;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AjC,aAAA,CAAAA,aAAA,KACKsC,KAAK;MACRL,KAAK,EAAAjC,aAAA,CAAAA,aAAA,KACAsC,KAAK,CAACL,KAAK;QACdA,KAAK,EAAEG,aAAa,CAACE,KAAK,CAACL,KAAK,CAACA,KAAK;MAAC;IACxC;EAEL;EACA,OAAOK,KAAK;AACd,CAAC;AAED,IAAMF,aAAa,GAAII,QAAkB,IACvC,IAAAC,YAAG,EAACD,QAAQ,EAAGE,IAAI,IAAA1C,aAAA,CAAAA,aAAA,KACd0C,IAAI;EACPC,GAAG,EAAED,IAAI,CAACC,GAAG,GAAG,OAAO,GAAGnB,SAAS;EACnCoB,WAAW,EAAEF,IAAI,CAACE,WAAW,GAAG,eAAe,GAAGpB;AAAS,EAC3D,CAAwB;AAE5B,IAAMqB,QAAQ,GACZC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,GAChC;EAAEd,eAAe;EAAEG;AAAe,CAAC,GACpC,KAAK;AAEJ,IAAMY,KAAK,GAAG,IAAAC,kBAAW,EAAC;EAC/BL,QAAQ;EACRM,cAAc,EAAE;IACdC,QAAQ,EAAEC,8BAAoB;IAC9BC,KAAK,EAAEC,wBAAiB;IACxBtB,KAAK,EAAEuB;EACT,CAAC;EACDC,OAAO,EAAE;IACPL,QAAQ,EAAEM,uBAAa,CAACD,OAAO;IAC/BH,KAAK,EAAEK,iBAAU,CAACF,OAAO;IACzBxB,KAAK,EAAE2B,iBAAU,CAACH;EACpB;AACF,CAAC,CAAC;AAAAI,OAAA,CAAAZ,KAAA,GAAAA,KAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"declarations.js","names":["declarations","commitHash","remoteOrigin","types","FullLode","line","sourceFile","methods","getLoded"],"sources":["../../../src/test-data/declarations.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { IDeclarationMine } from '@looker/sdk-codegen'\n\nexport const declarations: IDeclarationMine = {\n commitHash: '1e9348b797c2f3760d03c1f94c60f18e534e8298',\n remoteOrigin: 'https://github.com/looker-open-source/sdk-codegen',\n types: {\n FullLode: {\n line: 40,\n sourceFile: 'packages/api-explorer/src/utils/lodeUtils.ts',\n },\n },\n methods: {\n getLoded: {\n line: 45,\n sourceFile: 'packages/api-explorer/src/utils/lodeUtils.ts',\n },\n },\n}\n"],"mappings":";;;;;;AA2BO,IAAMA,YAA8B,GAAG;EAC5CC,UAAU,EAAE,0CAA0C;EACtDC,YAAY,EAAE,mDAAmD;EACjEC,KAAK,EAAE;IACLC,QAAQ,EAAE;MACRC,IAAI,EAAE,EAAE;MACRC,UAAU,EAAE;IACd;EACF,CAAC;EACDC,OAAO,EAAE;IACPC,QAAQ,EAAE;MACRH,IAAI,EAAE,EAAE;MACRC,UAAU,EAAE;IACd;EACF;AACF,CAAC;AAAA"}
1
+ {"version":3,"file":"declarations.js","names":["declarations","commitHash","remoteOrigin","types","FullLode","line","sourceFile","methods","getLoded","exports"],"sources":["../../../src/test-data/declarations.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { IDeclarationMine } from '@looker/sdk-codegen'\n\nexport const declarations: IDeclarationMine = {\n commitHash: '1e9348b797c2f3760d03c1f94c60f18e534e8298',\n remoteOrigin: 'https://github.com/looker-open-source/sdk-codegen',\n types: {\n FullLode: {\n line: 40,\n sourceFile: 'packages/api-explorer/src/utils/lodeUtils.ts',\n },\n },\n methods: {\n getLoded: {\n line: 45,\n sourceFile: 'packages/api-explorer/src/utils/lodeUtils.ts',\n },\n },\n}\n"],"mappings":";;;;;;AA2BO,IAAMA,YAA8B,GAAG;EAC5CC,UAAU,EAAE,0CAA0C;EACtDC,YAAY,EAAE,mDAAmD;EACjEC,KAAK,EAAE;IACLC,QAAQ,EAAE;MACRC,IAAI,EAAE,EAAE;MACRC,UAAU,EAAE;IACd;EACF,CAAC;EACDC,OAAO,EAAE;IACPC,QAAQ,EAAE;MACRH,IAAI,EAAE,EAAE;MACRC,UAAU,EAAE;IACd;EACF;AACF,CAAC;AAAAG,OAAA,CAAAT,YAAA,GAAAA,YAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"examples.js","names":["examples"],"sources":["../../../src/test-data/examples.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { IExampleMine } from '@looker/sdk-codegen'\n\n// prettier-ignore\nexport const examples: IExampleMine = {\n 'commitHash': 'aea042439d2358a61bbf705528d6006d694d5ea5',\n 'remoteOrigin': 'https://github.com/looker-open-source/sdk-codegen',\n 'summaries': {\n 'packages/sdk-codegen/src/codeGenerators.ts': {\n 'summary': '`codeGenerators.ts`',\n 'sourceFile': 'packages/sdk-codegen/src/codeGenerators.ts'\n },\n 'packages/sdk-codegen/src/codeGen.ts': {\n 'summary': 'codeGen.ts',\n 'sourceFile': 'packages/sdk-codegen/src/codeGen.ts'\n },\n 'packages/sdk-codegen/src/typescript.gen.ts': {\n 'summary': 'TypeScript',\n 'sourceFile': 'packages/sdk-codegen/src/typescript.gen.ts'\n },\n 'packages/sdk-codegen/src/python.gen.ts': {\n 'summary': 'Python',\n 'sourceFile': 'packages/sdk-codegen/src/python.gen.ts'\n },\n 'packages/sdk-rtl/src/apiSettings.ts': {\n 'summary': '`apiSettings.ts`',\n 'sourceFile': 'packages/sdk-rtl/src/apiSettings.ts'\n },\n 'packages/sdk-rtl/src/transport.ts': {\n 'summary': 'transport.ts',\n 'sourceFile': 'packages/sdk-rtl/src/transport.ts'\n },\n 'packages/sdk-rtl/src/nodeSession.ts': {\n 'summary': '`NodeSession`',\n 'sourceFile': 'packages/sdk-rtl/src/nodeSession.ts'\n },\n 'packages/sdk-rtl/src/CSRFSession.ts': {\n 'summary': '`CSRFSession`',\n 'sourceFile': 'packages/sdk-rtl/src/CSRFSession.ts'\n },\n 'packages/sdk-rtl/src/browserSession.ts': {\n 'summary': '`BrowserSession`',\n 'sourceFile': 'packages/sdk-rtl/src/browserSession.ts'\n },\n 'packages/sdk-rtl/src/oauthSession.ts': {\n 'summary': '`OAuthSession`',\n 'sourceFile': 'packages/sdk-rtl/src/oauthSession.ts'\n },\n 'packages/sdk-rtl/src/proxySession.ts': {\n 'summary': '`ProxySession`',\n 'sourceFile': 'packages/sdk-rtl/src/proxySession.ts'\n },\n 'packages/sdk-codegen/src/sdkModels.ts': {\n 'summary': '`sdkModels.ts`',\n 'sourceFile': 'packages/sdk-codegen/src/sdkModels.ts'\n },\n 'packages/sdk/src/sdk/4.0/methods.ts': {\n 'summary': '`methods.ts`',\n 'sourceFile': 'packages/sdk/src/sdk/4.0/methods.ts'\n },\n 'packages/sdk/src/sdk/4.0/models.ts': {\n 'summary': '`models.ts`',\n 'sourceFile': 'packages/sdk/src/sdk/4.0/models.ts'\n },\n 'packages/sdk/src/sdk/4.0/streams.ts': {\n 'summary': '`streams.ts`',\n 'sourceFile': 'packages/sdk/src/sdk/4.0/streams.ts'\n },\n 'packages/sdk-rtl/src/constants.ts': {\n 'summary': '`constants.ts`',\n 'sourceFile': 'packages/sdk-rtl/src/constants.ts'\n },\n 'packages/sdk-codegen-scripts/src/reformatter.ts': {\n 'summary': '`reformatter.ts`',\n 'sourceFile': 'packages/sdk-codegen-scripts/src/reformatter.ts'\n },\n 'packages/sdk-codegen/src/sdkModels.spec.ts': {\n 'summary': '`sdkModels.spec.ts`',\n 'sourceFile': 'packages/sdk-codegen/src/sdkModels.spec.ts'\n },\n 'packages/sdk-codegen/src/python.gen.spec.ts': {\n 'summary': '`python.gen.spec.ts`',\n 'sourceFile': 'packages/sdk-codegen/src/python.gen.spec.ts'\n },\n 'packages/sdk/src/test/methods.spec.ts': {\n 'summary': '`methods.spec.ts`',\n 'sourceFile': 'packages/sdk/src/test/methods.spec.ts'\n },\n 'python/tests/integration/api40/test_methods.py': {\n 'summary': '`test_methods.py`',\n 'sourceFile': 'python/tests/integration/api40/test_methods.py'\n },\n 'packages/sdk-codegen-scripts/scripts/register.ts': {\n 'summary': 'OAuth application registration',\n 'sourceFile': 'packages/sdk-codegen-scripts/scripts/register.ts'\n },\n 'packages/run-it/src/utils/RunItSDK.ts': {\n 'summary': 'RunItSDK',\n 'sourceFile': 'packages/run-it/src/utils/RunItSDK.ts'\n },\n 'packages/run-it/src/scenes/OAuthScene/OAuthScene.tsx': {\n 'summary': 'OAuthScene',\n 'sourceFile': 'packages/run-it/src/scenes/OAuthScene/OAuthScene.tsx'\n },\n 'examples/python/test_connection.py': {\n 'summary': 'Test a specified connection',\n 'sourceFile': 'examples/python/test_connection.py'\n },\n 'examples/python/soft_delete_dashboard.py': {\n 'summary': 'Soft delete dashboard',\n 'sourceFile': 'examples/python/soft_delete_dashboard.py'\n },\n 'examples/python/download_tile.py': {\n 'summary': 'Download dashboard tile in specified format',\n 'sourceFile': 'examples/python/download_tile.py'\n },\n 'examples/python/download_look.py': {\n 'summary': 'Download look in specified format',\n 'sourceFile': 'examples/python/download_look.py'\n },\n 'examples/python/download_dashboard_pdf.py': {\n 'summary': 'Generate and download dashboard PDFs',\n 'sourceFile': 'examples/python/download_dashboard_pdf.py'\n },\n 'examples/python/logout_all_users.py': {\n 'summary': 'Disable all active user sessions',\n 'sourceFile': 'examples/python/logout_all_users.py'\n },\n 'examples/ruby/logout_all_users.rb': {\n 'summary': 'Logout all users on the instance',\n 'sourceFile': 'examples/ruby/logout_all_users.rb'\n },\n 'examples/ruby/disable_users.rb': {\n 'summary': 'Disable users in the instance',\n 'sourceFile': 'examples/ruby/disable_users.rb'\n },\n 'examples/ruby/users_list_and_auth_types.rb': {\n 'summary': 'Get a list of all users and their auth credentials',\n 'sourceFile': 'examples/ruby/users_list_and_auth_types.rb'\n },\n 'examples/ruby/all_users_to_group.rb': {\n 'summary': 'Add all users to a group',\n 'sourceFile': 'examples/ruby/all_users_to_group.rb'\n },\n 'examples/ruby/all_git_branches.rb': {\n 'summary': 'Get a list of all the Git branches in the projects',\n 'sourceFile': 'examples/ruby/all_git_branches.rb'\n },\n 'examples/ruby/validate_projects.rb': {\n 'summary': 'Validates the Looker **Projects** (LookML)',\n 'sourceFile': 'examples/ruby/validate_projects.rb'\n },\n 'examples/ruby/list_files_per_project.rb': {\n 'summary': 'Get a list of all files per projects',\n 'sourceFile': 'examples/ruby/list_files_per_project.rb'\n },\n 'examples/ruby/render_look_png.rb': {\n 'summary': 'Render a Look as in PNG format',\n 'sourceFile': 'examples/ruby/render_look_png.rb'\n },\n 'examples/ruby/schedule_once_to_gcs.rb': {\n 'summary': 'Create a schedule to run once to Google Cloud Storage',\n 'sourceFile': 'examples/ruby/schedule_once_to_gcs.rb'\n },\n 'examples/ruby/stream_to_s3.rb': {\n 'summary': 'Stream results to S3 bucket',\n 'sourceFile': 'examples/ruby/stream_to_s3.rb'\n },\n 'examples/ruby/rerun_failed_email_schedules.rb': {\n 'summary': 'Re-run the failed schedules to email',\n 'sourceFile': 'examples/ruby/rerun_failed_email_schedules.rb'\n },\n 'examples/ruby/download_dashboard.rb': {\n 'summary': 'Download all dashboard tiles as tabs in one Excel file',\n 'sourceFile': 'examples/ruby/download_dashboard.rb'\n },\n 'examples/ruby/test_integrations.rb': {\n 'summary': 'Test the integrations',\n 'sourceFile': 'examples/ruby/test_integrations.rb'\n },\n 'examples/ruby/update_look.rb': {\n 'summary': 'Template to update Look',\n 'sourceFile': 'examples/ruby/update_look.rb'\n },\n 'examples/ruby/dev_vs_prod.rb': {\n 'summary': 'Automated testing for Look output between Development mode and Production mode',\n 'sourceFile': 'examples/ruby/dev_vs_prod.rb'\n },\n 'examples/ruby/validate_content.rb': {\n 'summary': 'Validates the Looker **Content**',\n 'sourceFile': 'examples/ruby/validate_content.rb'\n },\n 'examples/ruby/delete_unused_content.rb': {\n 'summary': 'Delete old Looks',\n 'sourceFile': 'examples/ruby/delete_unused_content.rb'\n },\n 'examples/ruby/kill_all_running_queries.rb': {\n 'summary': 'Kill all running queries in the instance',\n 'sourceFile': 'examples/ruby/kill_all_running_queries.rb'\n },\n 'examples/ruby/test_all_connections.rb': {\n 'summary': 'Test database connections',\n 'sourceFile': 'examples/ruby/test_all_connections.rb'\n },\n 'examples/ruby/create_themes.rb': {\n 'summary': 'Create Looker Themes for your dashboards',\n 'sourceFile': 'examples/ruby/create_themes.rb'\n },\n 'examples/typescript/dual.ts': {\n 'summary': 'multiple APIs',\n 'sourceFile': 'examples/typescript/dual.ts'\n },\n 'examples/typescript/customConfigReader.ts': {\n 'summary': 'custom configReader',\n 'sourceFile': 'examples/typescript/customConfigReader.ts'\n },\n 'examples/typescript/utils.ts': {\n 'summary': 'SDK utilities',\n 'sourceFile': 'examples/typescript/utils.ts'\n },\n 'examples/typescript/sudoAsUser.ts': {\n 'summary': 'sudo as user',\n 'sourceFile': 'examples/typescript/sudoAsUser.ts'\n },\n 'examples/typescript/downloadTile.ts': {\n 'summary': 'downloadTile.ts example',\n 'sourceFile': 'examples/typescript/downloadTile.ts'\n },\n 'examples/typescript/downloadDashboard.ts': {\n 'summary': 'download a dashboard by name',\n 'sourceFile': 'examples/typescript/downloadDashboard.ts'\n },\n 'packages/api-explorer/src/components/ExploreType/ExploreType.tsx': {\n 'summary': '`ExploreType`',\n 'sourceFile': 'packages/api-explorer/src/components/ExploreType/ExploreType.tsx'\n },\n 'packages/api-explorer/src/components/ExploreType/ExploreProperty.tsx': {\n 'summary': '`ExploreProperty`',\n 'sourceFile': 'packages/api-explorer/src/components/ExploreType/ExploreProperty.tsx'\n },\n 'packages/run-it/src/utils/RunItSDK.spec.ts': {\n 'summary': 'RunItSDK tests',\n 'sourceFile': 'packages/run-it/src/utils/RunItSDK.spec.ts'\n },\n 'packages/sdk-codegen/src/kotlin.gen.ts': {\n 'summary': 'Kotlin',\n 'sourceFile': 'packages/sdk-codegen/src/kotlin.gen.ts'\n },\n 'packages/sdk-codegen/src/swift.gen.ts': {\n 'summary': 'Swift',\n 'sourceFile': 'packages/sdk-codegen/src/swift.gen.ts'\n },\n 'packages/sdk-codegen/src/csharp.gen.ts': {\n 'summary': 'C#',\n 'sourceFile': 'packages/sdk-codegen/src/csharp.gen.ts'\n },\n 'packages/sdk-codegen/src/go.gen.ts': {\n 'summary': 'Go',\n 'sourceFile': 'packages/sdk-codegen/src/go.gen.ts'\n },\n 'packages/sdk-codegen-scripts/src/sdkGen.ts': {\n 'summary': 'sdkGen.ts',\n 'sourceFile': 'packages/sdk-codegen-scripts/src/sdkGen.ts'\n },\n 'packages/sdk-codegen-scripts/src/legacy.ts': {\n 'summary': 'legacy.ts',\n 'sourceFile': 'packages/sdk-codegen-scripts/src/legacy.ts'\n },\n 'packages/sdk-codegen-scripts/src/specConvert.ts': {\n 'summary': 'specConvert.ts',\n 'sourceFile': 'packages/sdk-codegen-scripts/src/specConvert.ts'\n },\n 'packages/sdk-codegen-scripts/src/yamlToJson.ts': {\n 'summary': 'yamlToJson.ts',\n 'sourceFile': 'packages/sdk-codegen-scripts/src/yamlToJson.ts'\n },\n 'packages/sdk-rtl/src/nodeSettings.ts': {\n 'summary': 'NodeSettingsIniFile() and NodeSettings()',\n 'sourceFile': 'packages/sdk-rtl/src/nodeSettings.ts'\n },\n 'packages/wholly-sheet/src/WhollySheet.ts': {\n 'summary': '`WhollySheet.ts`',\n 'sourceFile': 'packages/wholly-sheet/src/WhollySheet.ts'\n },\n 'examples/python/hackathon_app/sheets.py': {\n 'summary': 'sheets.py',\n 'sourceFile': 'examples/python/hackathon_app/sheets.py'\n },\n 'packages/wholly-sheet/src/SheetSDK.ts': {\n 'summary': '`SheetSDK.ts`',\n 'sourceFile': 'packages/wholly-sheet/src/SheetSDK.ts'\n },\n 'packages/wholly-sheet/src/RowModel.ts': {\n 'summary': '`RowModel`',\n 'sourceFile': 'packages/wholly-sheet/src/RowModel.ts'\n },\n 'packages/wholly-sheet/src/WhollySheet.spec.ts': {\n 'summary': '`WhollySheet.spec.ts`',\n 'sourceFile': 'packages/wholly-sheet/src/WhollySheet.spec.ts'\n },\n 'packages/wholly-sheet/src/RowModel.spec.ts': {\n 'summary': '`RowModel.spec.ts`',\n 'sourceFile': 'packages/wholly-sheet/src/RowModel.spec.ts'\n },\n 'swift/looker/Tests/lookerTests/modelsTests.swift': {\n 'summary': 'modelsTests.swift',\n 'sourceFile': 'swift/looker/Tests/lookerTests/modelsTests.swift'\n }\n },\n 'nuggets': {\n 'run_look': {\n 'operationId': 'run_look',\n 'calls': {\n '.py': [\n {\n 'sourceFile': 'examples/python/lookersdk-flask/app/looker.py',\n 'column': 15,\n 'line': 28\n },\n {\n 'sourceFile': 'examples/python/lookersdk-flask/app/looker.py',\n 'column': 15,\n 'line': 33\n },\n {\n 'sourceFile': 'python/tests/integration/test_methods.py',\n 'column': 13,\n 'line': 480\n },\n {\n 'sourceFile': 'python/tests/integration/test_methods.py',\n 'column': 13,\n 'line': 483\n },\n {\n 'sourceFile': 'python/tests/integration/test_methods.py',\n 'column': 13,\n 'line': 486\n }\n ],\n '.rb': [\n {\n 'sourceFile': 'examples/ruby/dev_vs_prod.rb',\n 'column': 22,\n 'line': 27\n },\n {\n 'sourceFile': 'examples/ruby/dev_vs_prod.rb',\n 'column': 20,\n 'line': 28\n },\n {\n 'sourceFile': 'examples/ruby/dev_vs_prod.rb',\n 'column': 21,\n 'line': 36\n },\n {\n 'sourceFile': 'examples/ruby/dev_vs_prod.rb',\n 'column': 19,\n 'line': 37\n },\n {\n 'sourceFile': 'examples/ruby/rerun_failed_email_schedules.rb',\n 'column': 19,\n 'line': 15\n }\n ],\n '.ts': [\n {\n 'sourceFile': 'packages/sdk-codegen/src/python.gen.spec.ts',\n 'column': 35,\n 'line': 831\n },\n {\n 'sourceFile': 'packages/sdk-codegen/src/typescript.gen.spec.ts',\n 'column': 52,\n 'line': 183\n },\n {\n 'sourceFile': 'packages/sdk-codegen/src/typescript.gen.spec.ts',\n 'column': 52,\n 'line': 234\n }\n ]\n }\n },\n }\n}\n"],"mappings":";;;;;;AA4BO,IAAMA,QAAsB,GAAG;EACpC,YAAY,EAAE,0CAA0C;EACxD,cAAc,EAAE,mDAAmD;EACnE,WAAW,EAAE;IACX,4CAA4C,EAAE;MAC5C,SAAS,EAAE,qBAAqB;MAChC,YAAY,EAAE;IAChB,CAAC;IACD,qCAAqC,EAAE;MACrC,SAAS,EAAE,YAAY;MACvB,YAAY,EAAE;IAChB,CAAC;IACD,4CAA4C,EAAE;MAC5C,SAAS,EAAE,YAAY;MACvB,YAAY,EAAE;IAChB,CAAC;IACD,wCAAwC,EAAE;MACxC,SAAS,EAAE,QAAQ;MACnB,YAAY,EAAE;IAChB,CAAC;IACD,qCAAqC,EAAE;MACrC,SAAS,EAAE,kBAAkB;MAC7B,YAAY,EAAE;IAChB,CAAC;IACD,mCAAmC,EAAE;MACnC,SAAS,EAAE,cAAc;MACzB,YAAY,EAAE;IAChB,CAAC;IACD,qCAAqC,EAAE;MACrC,SAAS,EAAE,eAAe;MAC1B,YAAY,EAAE;IAChB,CAAC;IACD,qCAAqC,EAAE;MACrC,SAAS,EAAE,eAAe;MAC1B,YAAY,EAAE;IAChB,CAAC;IACD,wCAAwC,EAAE;MACxC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AAE,iDAAiD;UAC/D,QAAQ,EAAE,EAAE;UACZ,MAAM,EAAE;QACV,CAAC,EACD;UACE,YAAY,EAAE,iDAAiD;UAC/D,QAAQ,EAAE,EAAE;UACZ,MAAM,EAAE;QACV,CAAC;MAEL;IACF;EACF;AACF,CAAC;AAAA"}
1
+ {"version":3,"file":"examples.js","names":["examples","exports"],"sources":["../../../src/test-data/examples.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { IExampleMine } from '@looker/sdk-codegen'\n\n// prettier-ignore\nexport const examples: IExampleMine = {\n 'commitHash': 'aea042439d2358a61bbf705528d6006d694d5ea5',\n 'remoteOrigin': 'https://github.com/looker-open-source/sdk-codegen',\n 'summaries': {\n 'packages/sdk-codegen/src/codeGenerators.ts': {\n 'summary': '`codeGenerators.ts`',\n 'sourceFile': 'packages/sdk-codegen/src/codeGenerators.ts'\n },\n 'packages/sdk-codegen/src/codeGen.ts': {\n 'summary': 'codeGen.ts',\n 'sourceFile': 'packages/sdk-codegen/src/codeGen.ts'\n },\n 'packages/sdk-codegen/src/typescript.gen.ts': {\n 'summary': 'TypeScript',\n 'sourceFile': 'packages/sdk-codegen/src/typescript.gen.ts'\n },\n 'packages/sdk-codegen/src/python.gen.ts': {\n 'summary': 'Python',\n 'sourceFile': 'packages/sdk-codegen/src/python.gen.ts'\n },\n 'packages/sdk-rtl/src/apiSettings.ts': {\n 'summary': '`apiSettings.ts`',\n 'sourceFile': 'packages/sdk-rtl/src/apiSettings.ts'\n },\n 'packages/sdk-rtl/src/transport.ts': {\n 'summary': 'transport.ts',\n 'sourceFile': 'packages/sdk-rtl/src/transport.ts'\n },\n 'packages/sdk-rtl/src/nodeSession.ts': {\n 'summary': '`NodeSession`',\n 'sourceFile': 'packages/sdk-rtl/src/nodeSession.ts'\n },\n 'packages/sdk-rtl/src/CSRFSession.ts': {\n 'summary': '`CSRFSession`',\n 'sourceFile': 'packages/sdk-rtl/src/CSRFSession.ts'\n },\n 'packages/sdk-rtl/src/browserSession.ts': {\n 'summary': '`BrowserSession`',\n 'sourceFile': 'packages/sdk-rtl/src/browserSession.ts'\n },\n 'packages/sdk-rtl/src/oauthSession.ts': {\n 'summary': '`OAuthSession`',\n 'sourceFile': 'packages/sdk-rtl/src/oauthSession.ts'\n },\n 'packages/sdk-rtl/src/proxySession.ts': {\n 'summary': '`ProxySession`',\n 'sourceFile': 'packages/sdk-rtl/src/proxySession.ts'\n },\n 'packages/sdk-codegen/src/sdkModels.ts': {\n 'summary': '`sdkModels.ts`',\n 'sourceFile': 'packages/sdk-codegen/src/sdkModels.ts'\n },\n 'packages/sdk/src/sdk/4.0/methods.ts': {\n 'summary': '`methods.ts`',\n 'sourceFile': 'packages/sdk/src/sdk/4.0/methods.ts'\n },\n 'packages/sdk/src/sdk/4.0/models.ts': {\n 'summary': '`models.ts`',\n 'sourceFile': 'packages/sdk/src/sdk/4.0/models.ts'\n },\n 'packages/sdk/src/sdk/4.0/streams.ts': {\n 'summary': '`streams.ts`',\n 'sourceFile': 'packages/sdk/src/sdk/4.0/streams.ts'\n },\n 'packages/sdk-rtl/src/constants.ts': {\n 'summary': '`constants.ts`',\n 'sourceFile': 'packages/sdk-rtl/src/constants.ts'\n },\n 'packages/sdk-codegen-scripts/src/reformatter.ts': {\n 'summary': '`reformatter.ts`',\n 'sourceFile': 'packages/sdk-codegen-scripts/src/reformatter.ts'\n },\n 'packages/sdk-codegen/src/sdkModels.spec.ts': {\n 'summary': '`sdkModels.spec.ts`',\n 'sourceFile': 'packages/sdk-codegen/src/sdkModels.spec.ts'\n },\n 'packages/sdk-codegen/src/python.gen.spec.ts': {\n 'summary': '`python.gen.spec.ts`',\n 'sourceFile': 'packages/sdk-codegen/src/python.gen.spec.ts'\n },\n 'packages/sdk/src/test/methods.spec.ts': {\n 'summary': '`methods.spec.ts`',\n 'sourceFile': 'packages/sdk/src/test/methods.spec.ts'\n },\n 'python/tests/integration/api40/test_methods.py': {\n 'summary': '`test_methods.py`',\n 'sourceFile': 'python/tests/integration/api40/test_methods.py'\n },\n 'packages/sdk-codegen-scripts/scripts/register.ts': {\n 'summary': 'OAuth application registration',\n 'sourceFile': 'packages/sdk-codegen-scripts/scripts/register.ts'\n },\n 'packages/run-it/src/utils/RunItSDK.ts': {\n 'summary': 'RunItSDK',\n 'sourceFile': 'packages/run-it/src/utils/RunItSDK.ts'\n },\n 'packages/run-it/src/scenes/OAuthScene/OAuthScene.tsx': {\n 'summary': 'OAuthScene',\n 'sourceFile': 'packages/run-it/src/scenes/OAuthScene/OAuthScene.tsx'\n },\n 'examples/python/test_connection.py': {\n 'summary': 'Test a specified connection',\n 'sourceFile': 'examples/python/test_connection.py'\n },\n 'examples/python/soft_delete_dashboard.py': {\n 'summary': 'Soft delete dashboard',\n 'sourceFile': 'examples/python/soft_delete_dashboard.py'\n },\n 'examples/python/download_tile.py': {\n 'summary': 'Download dashboard tile in specified format',\n 'sourceFile': 'examples/python/download_tile.py'\n },\n 'examples/python/download_look.py': {\n 'summary': 'Download look in specified format',\n 'sourceFile': 'examples/python/download_look.py'\n },\n 'examples/python/download_dashboard_pdf.py': {\n 'summary': 'Generate and download dashboard PDFs',\n 'sourceFile': 'examples/python/download_dashboard_pdf.py'\n },\n 'examples/python/logout_all_users.py': {\n 'summary': 'Disable all active user sessions',\n 'sourceFile': 'examples/python/logout_all_users.py'\n },\n 'examples/ruby/logout_all_users.rb': {\n 'summary': 'Logout all users on the instance',\n 'sourceFile': 'examples/ruby/logout_all_users.rb'\n },\n 'examples/ruby/disable_users.rb': {\n 'summary': 'Disable users in the instance',\n 'sourceFile': 'examples/ruby/disable_users.rb'\n },\n 'examples/ruby/users_list_and_auth_types.rb': {\n 'summary': 'Get a list of all users and their auth credentials',\n 'sourceFile': 'examples/ruby/users_list_and_auth_types.rb'\n },\n 'examples/ruby/all_users_to_group.rb': {\n 'summary': 'Add all users to a group',\n 'sourceFile': 'examples/ruby/all_users_to_group.rb'\n },\n 'examples/ruby/all_git_branches.rb': {\n 'summary': 'Get a list of all the Git branches in the projects',\n 'sourceFile': 'examples/ruby/all_git_branches.rb'\n },\n 'examples/ruby/validate_projects.rb': {\n 'summary': 'Validates the Looker **Projects** (LookML)',\n 'sourceFile': 'examples/ruby/validate_projects.rb'\n },\n 'examples/ruby/list_files_per_project.rb': {\n 'summary': 'Get a list of all files per projects',\n 'sourceFile': 'examples/ruby/list_files_per_project.rb'\n },\n 'examples/ruby/render_look_png.rb': {\n 'summary': 'Render a Look as in PNG format',\n 'sourceFile': 'examples/ruby/render_look_png.rb'\n },\n 'examples/ruby/schedule_once_to_gcs.rb': {\n 'summary': 'Create a schedule to run once to Google Cloud Storage',\n 'sourceFile': 'examples/ruby/schedule_once_to_gcs.rb'\n },\n 'examples/ruby/stream_to_s3.rb': {\n 'summary': 'Stream results to S3 bucket',\n 'sourceFile': 'examples/ruby/stream_to_s3.rb'\n },\n 'examples/ruby/rerun_failed_email_schedules.rb': {\n 'summary': 'Re-run the failed schedules to email',\n 'sourceFile': 'examples/ruby/rerun_failed_email_schedules.rb'\n },\n 'examples/ruby/download_dashboard.rb': {\n 'summary': 'Download all dashboard tiles as tabs in one Excel file',\n 'sourceFile': 'examples/ruby/download_dashboard.rb'\n },\n 'examples/ruby/test_integrations.rb': {\n 'summary': 'Test the integrations',\n 'sourceFile': 'examples/ruby/test_integrations.rb'\n },\n 'examples/ruby/update_look.rb': {\n 'summary': 'Template to update Look',\n 'sourceFile': 'examples/ruby/update_look.rb'\n },\n 'examples/ruby/dev_vs_prod.rb': {\n 'summary': 'Automated testing for Look output between Development mode and Production mode',\n 'sourceFile': 'examples/ruby/dev_vs_prod.rb'\n },\n 'examples/ruby/validate_content.rb': {\n 'summary': 'Validates the Looker **Content**',\n 'sourceFile': 'examples/ruby/validate_content.rb'\n },\n 'examples/ruby/delete_unused_content.rb': {\n 'summary': 'Delete old Looks',\n 'sourceFile': 'examples/ruby/delete_unused_content.rb'\n },\n 'examples/ruby/kill_all_running_queries.rb': {\n 'summary': 'Kill all running queries in the instance',\n 'sourceFile': 'examples/ruby/kill_all_running_queries.rb'\n },\n 'examples/ruby/test_all_connections.rb': {\n 'summary': 'Test database connections',\n 'sourceFile': 'examples/ruby/test_all_connections.rb'\n },\n 'examples/ruby/create_themes.rb': {\n 'summary': 'Create Looker Themes for your dashboards',\n 'sourceFile': 'examples/ruby/create_themes.rb'\n },\n 'examples/typescript/dual.ts': {\n 'summary': 'multiple APIs',\n 'sourceFile': 'examples/typescript/dual.ts'\n },\n 'examples/typescript/customConfigReader.ts': {\n 'summary': 'custom configReader',\n 'sourceFile': 'examples/typescript/customConfigReader.ts'\n },\n 'examples/typescript/utils.ts': {\n 'summary': 'SDK utilities',\n 'sourceFile': 'examples/typescript/utils.ts'\n },\n 'examples/typescript/sudoAsUser.ts': {\n 'summary': 'sudo as user',\n 'sourceFile': 'examples/typescript/sudoAsUser.ts'\n },\n 'examples/typescript/downloadTile.ts': {\n 'summary': 'downloadTile.ts example',\n 'sourceFile': 'examples/typescript/downloadTile.ts'\n },\n 'examples/typescript/downloadDashboard.ts': {\n 'summary': 'download a dashboard by name',\n 'sourceFile': 'examples/typescript/downloadDashboard.ts'\n },\n 'packages/api-explorer/src/components/ExploreType/ExploreType.tsx': {\n 'summary': '`ExploreType`',\n 'sourceFile': 'packages/api-explorer/src/components/ExploreType/ExploreType.tsx'\n },\n 'packages/api-explorer/src/components/ExploreType/ExploreProperty.tsx': {\n 'summary': '`ExploreProperty`',\n 'sourceFile': 'packages/api-explorer/src/components/ExploreType/ExploreProperty.tsx'\n },\n 'packages/run-it/src/utils/RunItSDK.spec.ts': {\n 'summary': 'RunItSDK tests',\n 'sourceFile': 'packages/run-it/src/utils/RunItSDK.spec.ts'\n },\n 'packages/sdk-codegen/src/kotlin.gen.ts': {\n 'summary': 'Kotlin',\n 'sourceFile': 'packages/sdk-codegen/src/kotlin.gen.ts'\n },\n 'packages/sdk-codegen/src/swift.gen.ts': {\n 'summary': 'Swift',\n 'sourceFile': 'packages/sdk-codegen/src/swift.gen.ts'\n },\n 'packages/sdk-codegen/src/csharp.gen.ts': {\n 'summary': 'C#',\n 'sourceFile': 'packages/sdk-codegen/src/csharp.gen.ts'\n },\n 'packages/sdk-codegen/src/go.gen.ts': {\n 'summary': 'Go',\n 'sourceFile': 'packages/sdk-codegen/src/go.gen.ts'\n },\n 'packages/sdk-codegen-scripts/src/sdkGen.ts': {\n 'summary': 'sdkGen.ts',\n 'sourceFile': 'packages/sdk-codegen-scripts/src/sdkGen.ts'\n },\n 'packages/sdk-codegen-scripts/src/legacy.ts': {\n 'summary': 'legacy.ts',\n 'sourceFile': 'packages/sdk-codegen-scripts/src/legacy.ts'\n },\n 'packages/sdk-codegen-scripts/src/specConvert.ts': {\n 'summary': 'specConvert.ts',\n 'sourceFile': 'packages/sdk-codegen-scripts/src/specConvert.ts'\n },\n 'packages/sdk-codegen-scripts/src/yamlToJson.ts': {\n 'summary': 'yamlToJson.ts',\n 'sourceFile': 'packages/sdk-codegen-scripts/src/yamlToJson.ts'\n },\n 'packages/sdk-rtl/src/nodeSettings.ts': {\n 'summary': 'NodeSettingsIniFile() and NodeSettings()',\n 'sourceFile': 'packages/sdk-rtl/src/nodeSettings.ts'\n },\n 'packages/wholly-sheet/src/WhollySheet.ts': {\n 'summary': '`WhollySheet.ts`',\n 'sourceFile': 'packages/wholly-sheet/src/WhollySheet.ts'\n },\n 'examples/python/hackathon_app/sheets.py': {\n 'summary': 'sheets.py',\n 'sourceFile': 'examples/python/hackathon_app/sheets.py'\n },\n 'packages/wholly-sheet/src/SheetSDK.ts': {\n 'summary': '`SheetSDK.ts`',\n 'sourceFile': 'packages/wholly-sheet/src/SheetSDK.ts'\n },\n 'packages/wholly-sheet/src/RowModel.ts': {\n 'summary': '`RowModel`',\n 'sourceFile': 'packages/wholly-sheet/src/RowModel.ts'\n },\n 'packages/wholly-sheet/src/WhollySheet.spec.ts': {\n 'summary': '`WhollySheet.spec.ts`',\n 'sourceFile': 'packages/wholly-sheet/src/WhollySheet.spec.ts'\n },\n 'packages/wholly-sheet/src/RowModel.spec.ts': {\n 'summary': '`RowModel.spec.ts`',\n 'sourceFile': 'packages/wholly-sheet/src/RowModel.spec.ts'\n },\n 'swift/looker/Tests/lookerTests/modelsTests.swift': {\n 'summary': 'modelsTests.swift',\n 'sourceFile': 'swift/looker/Tests/lookerTests/modelsTests.swift'\n }\n },\n 'nuggets': {\n 'run_look': {\n 'operationId': 'run_look',\n 'calls': {\n '.py': [\n {\n 'sourceFile': 'examples/python/lookersdk-flask/app/looker.py',\n 'column': 15,\n 'line': 28\n },\n {\n 'sourceFile': 'examples/python/lookersdk-flask/app/looker.py',\n 'column': 15,\n 'line': 33\n },\n {\n 'sourceFile': 'python/tests/integration/test_methods.py',\n 'column': 13,\n 'line': 480\n },\n {\n 'sourceFile': 'python/tests/integration/test_methods.py',\n 'column': 13,\n 'line': 483\n },\n {\n 'sourceFile': 'python/tests/integration/test_methods.py',\n 'column': 13,\n 'line': 486\n }\n ],\n '.rb': [\n {\n 'sourceFile': 'examples/ruby/dev_vs_prod.rb',\n 'column': 22,\n 'line': 27\n },\n {\n 'sourceFile': 'examples/ruby/dev_vs_prod.rb',\n 'column': 20,\n 'line': 28\n },\n {\n 'sourceFile': 'examples/ruby/dev_vs_prod.rb',\n 'column': 21,\n 'line': 36\n },\n {\n 'sourceFile': 'examples/ruby/dev_vs_prod.rb',\n 'column': 19,\n 'line': 37\n },\n {\n 'sourceFile': 'examples/ruby/rerun_failed_email_schedules.rb',\n 'column': 19,\n 'line': 15\n }\n ],\n '.ts': [\n {\n 'sourceFile': 'packages/sdk-codegen/src/python.gen.spec.ts',\n 'column': 35,\n 'line': 831\n },\n {\n 'sourceFile': 'packages/sdk-codegen/src/typescript.gen.spec.ts',\n 'column': 52,\n 'line': 183\n },\n {\n 'sourceFile': 'packages/sdk-codegen/src/typescript.gen.spec.ts',\n 'column': 52,\n 'line': 234\n }\n ]\n }\n },\n }\n}\n"],"mappings":";;;;;;AA4BO,IAAMA,QAAsB,GAAG;EACpC,YAAY,EAAE,0CAA0C;EACxD,cAAc,EAAE,mDAAmD;EACnE,WAAW,EAAE;IACX,4CAA4C,EAAE;MAC5C,SAAS,EAAE,qBAAqB;MAChC,YAAY,EAAE;IAChB,CAAC;IACD,qCAAqC,EAAE;MACrC,SAAS,EAAE,YAAY;MACvB,YAAY,EAAE;IAChB,CAAC;IACD,4CAA4C,EAAE;MAC5C,SAAS,EAAE,YAAY;MACvB,YAAY,EAAE;IAChB,CAAC;IACD,wCAAwC,EAAE;MACxC,SAAS,EAAE,QAAQ;MACnB,YAAY,EAAE;IAChB,CAAC;IACD,qCAAqC,EAAE;MACrC,SAAS,EAAE,kBAAkB;MAC7B,YAAY,EAAE;IAChB,CAAC;IACD,mCAAmC,EAAE;MACnC,SAAS,EAAE,cAAc;MACzB,YAAY,EAAE;IAChB,CAAC;IACD,qCAAqC,EAAE;MACrC,SAAS,EAAE,eAAe;MAC1B,YAAY,EAAE;IAChB,CAA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ACL;UACE,YAAY,EAAE,6CAA6C;UAC3D,QAAQ,EAAE,EAAE;UACZ,MAAM,EAAE;QACV,CAAC,EACD;UACE,YAAY,EAAE,iDAAiD;UAC/D,QAAQ,EAAE,EAAE;UACZ,MAAM,EAAE;QACV,CAAC,EACD;UACE,YAAY,EAAE,iDAAiD;UAC/D,QAAQ,EAAE,EAAE;UACZ,MAAM,EAAE;QACV,CAAC;MAEL;IACF;EACF;AACF,CAAC;AAAAC,OAAA,CAAAD,QAAA,GAAAA,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/test-data/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './specs'\nexport { examples } from './examples'\nexport * from './declarations'\nexport * from './sdkLanguages'\n"],"mappings":";;;;;;;;;;;;;;AAyBA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AACA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":["_specs","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_examples","_declarations","_sdkLanguages"],"sources":["../../../src/test-data/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './specs'\nexport { examples } from './examples'\nexport * from './declarations'\nexport * from './sdkLanguages'\n"],"mappings":";;;;;;;;;;;;;;AAyBA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAA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sdkLanguageMapping","py","ts","cs","kt","swift","go","all","languages","Object","values"],"sources":["../../../src/test-data/sdkLanguages.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport const sdkLanguageMapping = {\n py: 'Python',\n ts: 'TypeScript',\n cs: 'C#',\n kt: 'Kotlin',\n swift: 'Swift',\n go: 'Go',\n all: 'All',\n}\n\nexport const languages = Object.values(sdkLanguageMapping)\n"],"mappings":";;;;;;AAyBO,IAAMA,kBAAkB,GAAG;EAChCC,EAAE,EAAE,QAAQ;EACZC,EAAE,EAAE,YAAY;EAChBC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,QAAQ;EACZC,KAAK,EAAE,OAAO;EACdC,EAAE,EAAE,IAAI;EACRC,GAAG,EAAE;AACP,CAAC;AAAA;AAEM,IAAMC,SAAS,GAAGC,MAAM,CAACC,MAAM,CAACV,kBAAkB,CAAC;AAAA"}
1
+ {"version":3,"file":"sdkLanguages.js","names":["sdkLanguageMapping","py","ts","cs","kt","swift","go","all","exports","languages","Object","values"],"sources":["../../../src/test-data/sdkLanguages.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2022 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport const sdkLanguageMapping = {\n py: 'Python',\n ts: 'TypeScript',\n cs: 'C#',\n kt: 'Kotlin',\n swift: 'Swift',\n go: 'Go',\n all: 'All',\n}\n\nexport const languages = Object.values(sdkLanguageMapping)\n"],"mappings":";;;;;;AAyBO,IAAMA,kBAAkB,GAAG;EAChCC,EAAE,EAAE,QAAQ;EACZC,EAAE,EAAE,YAAY;EAChBC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,QAAQ;EACZC,KAAK,EAAE,OAAO;EACdC,EAAE,EAAE,IAAI;EACRC,GAAG,EAAE;AACP,CAAC;AAAAC,OAAA,CAAAR,kBAAA,GAAAA,kBAAA;AAEM,IAAMS,SAAS,GAAGC,MAAM,CAACC,MAAM,CAACX,kBAAkB,CAAC;AAAAQ,OAAA,CAAAC,SAAA,GAAAA,SAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"specs.js","names":["specs","key","isDefault","status","specURL","specContent","require","version","api","ApiModel","fromJson","api40","getLoadedSpecs","loadedSpecs","specState","defaultSpecsState"],"sources":["../../../src/test-data/specs.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { SpecList } from '@looker/sdk-codegen'\nimport { ApiModel } from '@looker/sdk-codegen'\nimport type { SpecState } from '../state'\nimport { defaultSpecsState } from '../state'\n\nexport const specs: SpecList = {\n '3.1': {\n key: '3.1',\n isDefault: false,\n status: 'current',\n specURL: 'https://self-signed.looker.com:19999/api/3.1/swagger.json',\n specContent: require('../../../../spec/Looker.3.1.oas.json'),\n version: '3.1',\n },\n '4.0': {\n key: '4.0',\n isDefault: true,\n status: 'experimental',\n specURL: 'https://self-signed.looker.com:19999/api/4.0/swagger.json',\n specContent: require('../../../../spec/Looker.4.0.oas.json'),\n version: '4.0',\n },\n}\n\nexport const api = ApiModel.fromJson(specs['3.1'].specContent)\nexport const api40 = ApiModel.fromJson(specs['4.0'].specContent)\n\nexport const getLoadedSpecs = () => {\n const loadedSpecs = { ...specs }\n loadedSpecs['3.1'].api = api\n loadedSpecs['4.0'].api = api40\n return loadedSpecs\n}\n\nexport const specState: SpecState = {\n ...defaultSpecsState,\n specs: getLoadedSpecs(),\n}\n"],"mappings":";;;;;;AA0BA;AAEA;AAA4C;AAAA;AAAA;AAAA;AAAA;AAErC,IAAMA,KAAe,GAAG;EAC7B,KAAK,EAAE;IACLC,GAAG,EAAE,KAAK;IACVC,SAAS,EAAE,KAAK;IAChBC,MAAM,EAAE,SAAS;IACjBC,OAAO,EAAE,2DAA2D;IACpEC,WAAW,EAAEC,OAAO,CAAC,sCAAsC,CAAC;IAC5DC,OAAO,EAAE;EACX,CAAC;EACD,KAAK,EAAE;IACLN,GAAG,EAAE,KAAK;IACVC,SAAS,EAAE,IAAI;IACfC,MAAM,EAAE,cAAc;IACtBC,OAAO,EAAE,2DAA2D;IACpEC,WAAW,EAAEC,OAAO,CAAC,sCAAsC,CAAC;IAC5DC,OAAO,EAAE;EACX;AACF,CAAC;AAAA;AAEM,IAAMC,GAAG,GAAGC,oBAAQ,CAACC,QAAQ,CAACV,KAAK,CAAC,KAAK,CAAC,CAACK,WAAW,CAAC;AAAA;AACvD,IAAMM,KAAK,GAAGF,oBAAQ,CAACC,QAAQ,CAACV,KAAK,CAAC,KAAK,CAAC,CAACK,WAAW,CAAC;AAAA;AAEzD,IAAMO,cAAc,GAAG,MAAM;EAClC,IAAMC,WAAW,qBAAQb,KAAK,CAAE;EAChCa,WAAW,CAAC,KAAK,CAAC,CAACL,GAAG,GAAGA,GAAG;EAC5BK,WAAW,CAAC,KAAK,CAAC,CAACL,GAAG,GAAGG,KAAK;EAC9B,OAAOE,WAAW;AACpB,CAAC;AAAA;AAEM,IAAMC,SAAoB,mCAC5BC,wBAAiB;EACpBf,KAAK,EAAEY,cAAc;AAAE,EACxB;AAAA"}
1
+ {"version":3,"file":"specs.js","names":["_sdkCodegen","require","_state","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","specs","isDefault","status","specURL","specContent","version","exports","api","ApiModel","fromJson","api40","getLoadedSpecs","loadedSpecs","specState","defaultSpecsState"],"sources":["../../../src/test-data/specs.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { SpecList } from '@looker/sdk-codegen'\nimport { ApiModel } from '@looker/sdk-codegen'\nimport type { SpecState } from '../state'\nimport { defaultSpecsState } from '../state'\n\nexport const specs: SpecList = {\n '3.1': {\n key: '3.1',\n isDefault: false,\n status: 'current',\n specURL: 'https://self-signed.looker.com:19999/api/3.1/swagger.json',\n specContent: require('../../../../spec/Looker.3.1.oas.json'),\n version: '3.1',\n },\n '4.0': {\n key: '4.0',\n isDefault: true,\n status: 'experimental',\n specURL: 'https://self-signed.looker.com:19999/api/4.0/swagger.json',\n specContent: require('../../../../spec/Looker.4.0.oas.json'),\n version: '4.0',\n },\n}\n\nexport const api = ApiModel.fromJson(specs['3.1'].specContent)\nexport const api40 = ApiModel.fromJson(specs['4.0'].specContent)\n\nexport const getLoadedSpecs = () => {\n const loadedSpecs = { ...specs }\n loadedSpecs['3.1'].api = api\n loadedSpecs['4.0'].api = api40\n return loadedSpecs\n}\n\nexport const specState: SpecState = {\n ...defaultSpecsState,\n specs: getLoadedSpecs(),\n}\n"],"mappings":";;;;;;AA0BA,IAAAA,WAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAA4C,SAAAE,QAAAC,MAAA,EAAAC,cAAA,QAAAC,IAAA,GAAAC,MAAA,CAAAD,IAAA,CAAAF,MAAA,OAAAG,MAAA,CAAAC,qBAAA,QAAAC,OAAA,GAAAF,MAAA,CAAAC,qBAAA,CAAAJ,MAAA,GAAAC,cAAA,KAAAI,OAAA,GAAAA,OAAA,CAAAC,MAAA,WAAAC,GAAA,WAAAJ,MAAA,CAAAK,wBAAA,CAAAR,MAAA,EAAAO,GAAA,EAAAE,UAAA,OAAAP,IAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,IAAA,EAAAG,OAAA,YAAAH,IAAA;AAAA,SAAAU,cAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,WAAAF,SAAA,CAAAD,CAAA,IAAAC,SAAA,CAAAD,CAAA,QAAAA,CAAA,OAAAf,OAAA,CAAAI,MAAA,CAAAc,MAAA,OAAAC,OAAA,WAAAC,GAAA,IAAAC,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AS;IACjBC,OAAO,EAAE,2DAA2D;IACpEC,WAAW,EAAEjD,OAAO,CAAC,sCAAsC,CAAC;IAC5DkD,OAAO,EAAE;EACX,CAAC;EACD,KAAK,EAAE;IACL5B,GAAG,EAAE,KAAK;IACVwB,SAAS,EAAE,IAAI;IACfC,MAAM,EAAE,cAAc;IACtBC,OAAO,EAAE,2DAA2D;IACpEC,WAAW,EAAEjD,OAAO,CAAC,sCAAsC,CAAC;IAC5DkD,OAAO,EAAE;EACX;AACF,CAAC;AAAAC,OAAA,CAAAN,KAAA,GAAAA,KAAA;AAEM,IAAMO,GAAG,GAAGC,oBAAQ,CAACC,QAAQ,CAACT,KAAK,CAAC,KAAK,CAAC,CAACI,WAAW,CAAC;AAAAE,OAAA,CAAAC,GAAA,GAAAA,GAAA;AACvD,IAAMG,KAAK,GAAGF,oBAAQ,CAACC,QAAQ,CAACT,KAAK,CAAC,KAAK,CAAC,CAACI,WAAW,CAAC;AAAAE,OAAA,CAAAI,KAAA,GAAAA,KAAA;AAEzD,IAAMC,cAAc,GAAGA,CAAA,KAAM;EAClC,IAAMC,WAAW,GAAA1C,aAAA,KAAQ8B,KAAK,CAAE;EAChCY,WAAW,CAAC,KAAK,CAAC,CAACL,GAAG,GAAGA,GAAG;EAC5BK,WAAW,CAAC,KAAK,CAAC,CAACL,GAAG,GAAGG,KAAK;EAC9B,OAAOE,WAAW;AACpB,CAAC;AAAAN,OAAA,CAAAK,cAAA,GAAAA,cAAA;AAEM,IAAME,SAAoB,GAAA3C,aAAA,CAAAA,aAAA,KAC5B4C,wBAAiB;EACpBd,KAAK,EAAEW,cAAc;AAAE,EACxB;AAAAL,OAAA,CAAAO,SAAA,GAAAA,SAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/test-utils/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './lodes'\nexport * from './router'\nexport * from './redux'\n"],"mappings":";;;;;AAyBA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;AACA;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":["_lodes","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_router","_redux"],"sources":["../../../src/test-utils/index.ts"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nexport * from './lodes'\nexport * from './router'\nexport * from './redux'\n"],"mappings":";;;;;AAyBA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,OAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,OAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,OAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAC,OAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,MAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,MAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,MAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAE,MAAA,CAAAN,GAAA;IAAA;EAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"lodes.js","names":["renderWithLode","consumers","examples","declarations","options","store","createTestStore","lodes","renderWithTheme","withReduxProvider"],"sources":["../../../src/test-utils/lodes.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { IDeclarationMine, IExampleMine } from '@looker/sdk-codegen'\nimport type { ReactElement } from 'react'\nimport type { RenderOptions } from '@testing-library/react'\nimport { renderWithTheme } from '@looker/components-test-utils'\n\nimport { createTestStore, withReduxProvider } from './redux'\n\nexport const renderWithLode = (\n consumers: ReactElement<any>,\n examples: IExampleMine,\n declarations?: IDeclarationMine,\n options?: Omit<RenderOptions, 'queries'>\n) => {\n const store = createTestStore({ lodes: { examples, declarations } })\n return renderWithTheme(withReduxProvider(consumers, store), options)\n}\n"],"mappings":";;;;;;AA4BA;AAEA;AAEO,IAAMA,cAAc,GAAG,CAC5BC,SAA4B,EAC5BC,QAAsB,EACtBC,YAA+B,EAC/BC,OAAwC,KACrC;EACH,IAAMC,KAAK,GAAG,IAAAC,sBAAe,EAAC;IAAEC,KAAK,EAAE;MAAEL,QAAQ;MAAEC;IAAa;EAAE,CAAC,CAAC;EACpE,OAAO,IAAAK,oCAAe,EAAC,IAAAC,wBAAiB,EAACR,SAAS,EAAEI,KAAK,CAAC,EAAED,OAAO,CAAC;AACtE,CAAC;AAAA"}
1
+ {"version":3,"file":"lodes.js","names":["_componentsTestUtils","require","_redux","renderWithLode","consumers","examples","declarations","options","store","createTestStore","lodes","renderWithTheme","withReduxProvider","exports"],"sources":["../../../src/test-utils/lodes.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\nimport type { IDeclarationMine, IExampleMine } from '@looker/sdk-codegen'\nimport type { ReactElement } from 'react'\nimport type { RenderOptions } from '@testing-library/react'\nimport { renderWithTheme } from '@looker/components-test-utils'\n\nimport { createTestStore, withReduxProvider } from './redux'\n\nexport const renderWithLode = (\n consumers: ReactElement<any>,\n examples: IExampleMine,\n declarations?: IDeclarationMine,\n options?: Omit<RenderOptions, 'queries'>\n) => {\n const store = createTestStore({ lodes: { examples, declarations } })\n return renderWithTheme(withReduxProvider(consumers, store), options)\n}\n"],"mappings":";;;;;;AA4BA,IAAAA,oBAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAEO,IAAME,cAAc,GAAGA,CAC5BC,SAA4B,EAC5BC,QAAsB,EACtBC,YAA+B,EAC/BC,OAAwC,KACrC;EACH,IAAMC,KAAK,GAAG,IAAAC,sBAAe,EAAC;IAAEC,KAAK,EAAE;MAAEL,QAAQ;MAAEC;IAAa;EAAE,CAAC,CAAC;EACpE,OAAO,IAAAK,oCAAe,EAAC,IAAAC,wBAAiB,EAACR,SAAS,EAAEI,KAAK,CAAC,EAAED,OAAO,CAAC;AACtE,CAAC;AAAAM,OAAA,CAAAV,cAAA,GAAAA,cAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"redux.js","names":["withReduxProvider","consumers","store","createTestStore","registerEnvAdaptor","BrowserAdaptor","initRunItSdk","renderWithReduxProvider","options","renderWithTheme","renderWithRouterAndReduxProvider","initialEntries","renderWithRouter","preloadedState","settings","defaultSettingsState","lodes","defaultLodesState","specs","defaultSpecsState","overrides","createStore","specState","reducer","settingsSlice","lodesSlice","specsSlice"],"sources":["../../../src/test-utils/redux.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { ReactElement } from 'react'\nimport React from 'react'\nimport { Provider } from 'react-redux'\nimport type { Store } from 'redux'\nimport { renderWithTheme } from '@looker/components-test-utils'\nimport type { RenderOptions } from '@testing-library/react'\nimport { createStore } from '@looker/redux'\nimport { BrowserAdaptor, registerEnvAdaptor } from '@looker/extension-utils'\nimport { initRunItSdk } from '@looker/run-it'\n\nimport type { LodesState, RootState, SettingState, SpecState } from '../state'\nimport {\n settingsSlice,\n defaultLodesState,\n defaultSettingsState,\n lodesSlice,\n defaultSpecsState,\n specsSlice,\n} from '../state'\nimport { specState } from '../test-data'\nimport { renderWithRouter } from './router'\n\nexport const withReduxProvider = (\n consumers: ReactElement<any>,\n store: Store<RootState> = createTestStore()\n) => {\n registerEnvAdaptor(new BrowserAdaptor(initRunItSdk()))\n return <Provider store={store}>{consumers}</Provider>\n}\n\nexport const renderWithReduxProvider = (\n consumers: ReactElement<any>,\n store?: Store<RootState>,\n options?: Omit<RenderOptions, 'queries'>\n) => renderWithTheme(withReduxProvider(consumers, store), options)\n\nexport const renderWithRouterAndReduxProvider = (\n consumers: ReactElement<any>,\n initialEntries: string[] = ['/'],\n store?: Store<RootState>,\n options?: Omit<RenderOptions, 'queries'>\n) =>\n renderWithRouter(withReduxProvider(consumers, store), initialEntries, options)\n\nexport const preloadedState: RootState = {\n settings: defaultSettingsState,\n lodes: defaultLodesState,\n specs: defaultSpecsState,\n}\n\ntype DeepPartial<T> = {\n [P in keyof T]?: DeepPartial<T[P]>\n}\n\nexport const createTestStore = (overrides?: DeepPartial<RootState>) =>\n createStore({\n preloadedState: {\n settings: {\n ...preloadedState.settings,\n ...overrides?.settings,\n } as SettingState,\n lodes: {\n ...defaultLodesState,\n ...overrides?.lodes,\n } as LodesState,\n specs: {\n ...specState,\n ...overrides?.specs,\n } as SpecState,\n },\n reducer: {\n settings: settingsSlice.reducer,\n lodes: lodesSlice.reducer,\n specs: specsSlice.reducer,\n },\n })\n"],"mappings":";;;;;;AA2BA;AACA;AAEA;AAEA;AACA;AACA;AAGA;AAQA;AACA;AAA2C;AAAA;AAAA;AAAA;AAAA;AAAA;AAEpC,IAAMA,iBAAiB,GAAG,SAApBA,iBAAiB,CAC5BC,SAA4B,EAEzB;EAAA,IADHC,KAAuB,uEAAGC,eAAe,EAAE;EAE3C,IAAAC,kCAAkB,EAAC,IAAIC,8BAAc,CAAC,IAAAC,mBAAY,GAAE,CAAC,CAAC;EACtD,OAAO,6BAAC,oBAAQ;IAAC,KAAK,EAAEJ;EAAM,GAAED,SAAS,CAAY;AACvD,CAAC;AAAA;AAEM,IAAMM,uBAAuB,GAAG,CACrCN,SAA4B,EAC5BC,KAAwB,EACxBM,OAAwC,KACrC,IAAAC,oCAAe,EAACT,iBAAiB,CAACC,SAAS,EAAEC,KAAK,CAAC,EAAEM,OAAO,CAAC;AAAA;AAE3D,IAAME,gCAAgC,GAAG,SAAnCA,gCAAgC,CAC3CT,SAA4B;EAAA,IAC5BU,cAAwB,uEAAG,CAAC,GAAG,CAAC;EAAA,IAChCT,KAAwB;EAAA,IACxBM,OAAwC;EAAA,OAExC,IAAAI,wBAAgB,EAACZ,iBAAiB,CAACC,SAAS,EAAEC,KAAK,CAAC,EAAES,cAAc,EAAEH,OAAO,CAAC;AAAA;AAAA;AAEzE,IAAMK,cAAyB,GAAG;EACvCC,QAAQ,EAAEC,2BAAoB;EAC9BC,KAAK,EAAEC,wBAAiB;EACxBC,KAAK,EAAEC;AACT,CAAC;AAAA;AAMM,IAAMhB,eAAe,GAAIiB,SAAkC,IAChE,IAAAC,kBAAW,EAAC;EACVR,cAAc,EAAE;IACdC,QAAQ,kCACHD,cAAc,CAACC,QAAQ,GACvBM,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEN,QAAQ,CACP;IACjBE,KAAK,kCACAC,wBAAiB,GACjBG,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEJ,KAAK,CACN;IACfE,KAAK,kCACAI,mBAAS,GACTF,SAAS,aAATA,SAAS,uBAATA,SAAS,CAAEF,KAAK;EAEvB,CAAC;EACDK,OAAO,EAAE;IACPT,QAAQ,EAAEU,oBAAa,CAACD,OAAO;IAC/BP,KAAK,EAAES,iBAAU,CAACF,OAAO;IACzBL,KAAK,EAAEQ,iBAAU,CAACH;EACpB;AACF,CAAC,CAAC;AAAA"}
1
+ {"version":3,"file":"redux.js","names":["_react","_interopRequireDefault","require","_reactRedux","_componentsTestUtils","_redux","_extensionUtils","_runIt","_state","_testData","_router","obj","__esModule","default","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","value","_toPropertyKey","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","withReduxProvider","consumers","store","createTestStore","registerEnvAdaptor","BrowserAdaptor","initRunItSdk","createElement","Provider","exports","renderWithReduxProvider","options","renderWithTheme","renderWithRouterAndReduxProvider","initialEntries","renderWithRouter","preloadedState","settings","defaultSettingsState","lodes","defaultLodesState","specs","defaultSpecsState","overrides","createStore","specState","reducer","settingsSlice","lodesSlice","specsSlice"],"sources":["../../../src/test-utils/redux.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { ReactElement } from 'react'\nimport React from 'react'\nimport { Provider } from 'react-redux'\nimport type { Store } from 'redux'\nimport { renderWithTheme } from '@looker/components-test-utils'\nimport type { RenderOptions } from '@testing-library/react'\nimport { createStore } from '@looker/redux'\nimport { BrowserAdaptor, registerEnvAdaptor } from '@looker/extension-utils'\nimport { initRunItSdk } from '@looker/run-it'\n\nimport type { LodesState, RootState, SettingState, SpecState } from '../state'\nimport {\n settingsSlice,\n defaultLodesState,\n defaultSettingsState,\n lodesSlice,\n defaultSpecsState,\n specsSlice,\n} from '../state'\nimport { specState } from '../test-data'\nimport { renderWithRouter } from './router'\n\nexport const withReduxProvider = (\n consumers: ReactElement<any>,\n store: Store<RootState> = createTestStore()\n) => {\n registerEnvAdaptor(new BrowserAdaptor(initRunItSdk()))\n return <Provider store={store}>{consumers}</Provider>\n}\n\nexport const renderWithReduxProvider = (\n consumers: ReactElement<any>,\n store?: Store<RootState>,\n options?: Omit<RenderOptions, 'queries'>\n) => renderWithTheme(withReduxProvider(consumers, store), options)\n\nexport const renderWithRouterAndReduxProvider = (\n consumers: ReactElement<any>,\n initialEntries: string[] = ['/'],\n store?: Store<RootState>,\n options?: Omit<RenderOptions, 'queries'>\n) =>\n renderWithRouter(withReduxProvider(consumers, store), initialEntries, options)\n\nexport const preloadedState: RootState = {\n settings: defaultSettingsState,\n lodes: defaultLodesState,\n specs: defaultSpecsState,\n}\n\ntype DeepPartial<T> = {\n [P in keyof T]?: DeepPartial<T[P]>\n}\n\nexport const createTestStore = (overrides?: DeepPartial<RootState>) =>\n createStore({\n preloadedState: {\n settings: {\n ...preloadedState.settings,\n ...overrides?.settings,\n } as SettingState,\n lodes: {\n ...defaultLodesState,\n ...overrides?.lodes,\n } as LodesState,\n specs: {\n ...specState,\n ...overrides?.specs,\n } as SpecState,\n },\n reducer: {\n settings: settingsSlice.reducer,\n lodes: lodesSlice.reducer,\n specs: specsSlice.reducer,\n },\n })\n"],"mappings":";;;;;;AA2BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,oBAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AAGA,IAAAM,MAAA,GAAAN,OAAA;AAQA,IAAAO,SAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AAA2C,SAAAD,uBAAAU,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,QA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names":["withRouter","children","initialEntries","renderWithRouter","options","renderWithTheme"],"sources":["../../../src/test-utils/router.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { ReactElement } from 'react'\nimport React from 'react'\nimport { MemoryRouter } from 'react-router-dom'\nimport type { RenderOptions } from '@testing-library/react'\nimport { renderWithTheme } from '@looker/components-test-utils'\n\nexport const withRouter = (\n children: ReactElement<any> | ReactElement[],\n initialEntries: string[] = ['/']\n) => <MemoryRouter initialEntries={initialEntries}>{children}</MemoryRouter>\n\nexport const renderWithRouter = (\n children: ReactElement<any> | ReactElement[],\n initialEntries?: string[],\n options?: Omit<RenderOptions, 'queries'>\n) => renderWithTheme(withRouter(children, initialEntries), options)\n"],"mappings":";;;;;;AA2BA;AACA;AAEA;AAA+D;AAExD,IAAMA,UAAU,GAAG,SAAbA,UAAU,CACrBC,QAA4C;EAAA,IAC5CC,cAAwB,uEAAG,CAAC,GAAG,CAAC;EAAA,OAC7B,6BAAC,4BAAY;IAAC,cAAc,EAAEA;EAAe,GAAED,QAAQ,CAAgB;AAAA;AAAA;AAErE,IAAME,gBAAgB,GAAG,CAC9BF,QAA4C,EAC5CC,cAAyB,EACzBE,OAAwC,KACrC,IAAAC,oCAAe,EAACL,UAAU,CAACC,QAAQ,EAAEC,cAAc,CAAC,EAAEE,OAAO,CAAC;AAAA"}
1
+ {"version":3,"file":"router.js","names":["_react","_interopRequireDefault","require","_reactRouterDom","_componentsTestUtils","obj","__esModule","default","withRouter","children","initialEntries","arguments","length","undefined","createElement","MemoryRouter","exports","renderWithRouter","options","renderWithTheme"],"sources":["../../../src/test-utils/router.tsx"],"sourcesContent":["/*\n\n MIT License\n\n Copyright (c) 2021 Looker Data Sciences, Inc.\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n\n */\n\nimport type { ReactElement } from 'react'\nimport React from 'react'\nimport { MemoryRouter } from 'react-router-dom'\nimport type { RenderOptions } from '@testing-library/react'\nimport { renderWithTheme } from '@looker/components-test-utils'\n\nexport const withRouter = (\n children: ReactElement<any> | ReactElement[],\n initialEntries: string[] = ['/']\n) => <MemoryRouter initialEntries={initialEntries}>{children}</MemoryRouter>\n\nexport const renderWithRouter = (\n children: ReactElement<any> | ReactElement[],\n initialEntries?: string[],\n options?: Omit<RenderOptions, 'queries'>\n) => renderWithTheme(withRouter(children, initialEntries), options)\n"],"mappings":";;;;;;AA2BA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AAEA,IAAAE,oBAAA,GAAAF,OAAA;AAA+D,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAExD,IAAMG,UAAU,GAAG,SAAbA,UAAUA,CACrBC,QAA4C;EAAA,IAC5CC,cAAwB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,GAAG,CAAC;EAAA,OAC7BX,MAAA,CAAAO,OAAA,CAAAO,aAAA,CAACX,eAAA,CAAAY,YAAY;IAACL,cAAc,EAAEA;EAAe,GAAED,QAAQ,CAAgB;AAAA;AAAAO,OAAA,CAAAR,UAAA,GAAAA,UAAA;AAErE,IAAMS,gBAAgB,GAAGA,CAC9BR,QAA4C,EAC5CC,cAAyB,EACzBQ,OAAwC,KACrC,IAAAC,oCAAe,EAACX,UAAU,CAACC,QAAQ,EAAEC,cAAc,CAAC,EAAEQ,OAAO,CAAC;AAAAF,OAAA,CAAAC,gBAAA,GAAAA,gBAAA"}