@performant-software/core-data 2.1.3-beta.4 → 2.1.3-beta.5

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 (393) hide show
  1. package/dist/index.cjs112.js +1 -1
  2. package/dist/index.cjs128.js +1 -1
  3. package/dist/index.cjs284.js +1 -1
  4. package/dist/index.cjs284.js.map +1 -1
  5. package/dist/index.cjs285.js +1 -1
  6. package/dist/index.cjs285.js.map +1 -1
  7. package/dist/index.cjs286.js +1 -1
  8. package/dist/index.cjs286.js.map +1 -1
  9. package/dist/index.cjs287.js +1 -1
  10. package/dist/index.cjs287.js.map +1 -1
  11. package/dist/index.cjs288.js +1 -1
  12. package/dist/index.cjs288.js.map +1 -1
  13. package/dist/index.cjs289.js +1 -1
  14. package/dist/index.cjs289.js.map +1 -1
  15. package/dist/index.cjs322.js +1 -1
  16. package/dist/index.cjs323.js +1 -1
  17. package/dist/index.cjs324.js +1 -1
  18. package/dist/index.cjs342.js +1 -1
  19. package/dist/index.cjs355.js +1 -1
  20. package/dist/index.cjs357.js +1 -1
  21. package/dist/index.cjs361.js +1 -1
  22. package/dist/index.cjs364.js +1 -1
  23. package/dist/index.cjs365.js +1 -1
  24. package/dist/index.cjs366.js +1 -1
  25. package/dist/index.cjs370.js +1 -1
  26. package/dist/index.cjs371.js +1 -1
  27. package/dist/index.cjs372.js +1 -1
  28. package/dist/index.cjs373.js +1 -1
  29. package/dist/index.cjs376.js +1 -1
  30. package/dist/index.cjs378.js +1 -1
  31. package/dist/index.cjs379.js +1 -1
  32. package/dist/index.cjs409.js +1 -1
  33. package/dist/index.cjs409.js.map +1 -1
  34. package/dist/index.cjs410.js +1 -1
  35. package/dist/index.cjs410.js.map +1 -1
  36. package/dist/index.cjs411.js +1 -1
  37. package/dist/index.cjs411.js.map +1 -1
  38. package/dist/index.cjs417.js +1 -1
  39. package/dist/index.cjs417.js.map +1 -1
  40. package/dist/index.cjs418.js +1 -1
  41. package/dist/index.cjs418.js.map +1 -1
  42. package/dist/index.cjs419.js +1 -1
  43. package/dist/index.cjs420.js +1 -1
  44. package/dist/index.cjs420.js.map +1 -1
  45. package/dist/index.cjs421.js +1 -1
  46. package/dist/index.cjs421.js.map +1 -1
  47. package/dist/index.cjs422.js +1 -1
  48. package/dist/index.cjs422.js.map +1 -1
  49. package/dist/index.cjs423.js +1 -1
  50. package/dist/index.cjs423.js.map +1 -1
  51. package/dist/index.cjs424.js +1 -1
  52. package/dist/index.cjs424.js.map +1 -1
  53. package/dist/index.cjs425.js +1 -1
  54. package/dist/index.cjs425.js.map +1 -1
  55. package/dist/index.cjs426.js +1 -1
  56. package/dist/index.cjs426.js.map +1 -1
  57. package/dist/index.cjs427.js +1 -1
  58. package/dist/index.cjs427.js.map +1 -1
  59. package/dist/index.cjs428.js +1 -1
  60. package/dist/index.cjs428.js.map +1 -1
  61. package/dist/index.cjs429.js +1 -1
  62. package/dist/index.cjs429.js.map +1 -1
  63. package/dist/index.cjs43.js +1 -1
  64. package/dist/index.cjs430.js +1 -1
  65. package/dist/index.cjs430.js.map +1 -1
  66. package/dist/index.cjs431.js +1 -1
  67. package/dist/index.cjs431.js.map +1 -1
  68. package/dist/index.cjs432.js +1 -1
  69. package/dist/index.cjs432.js.map +1 -1
  70. package/dist/index.cjs433.js +1 -1
  71. package/dist/index.cjs433.js.map +1 -1
  72. package/dist/index.cjs434.js +1 -1
  73. package/dist/index.cjs434.js.map +1 -1
  74. package/dist/index.cjs435.js +1 -1
  75. package/dist/index.cjs435.js.map +1 -1
  76. package/dist/index.cjs436.js +1 -1
  77. package/dist/index.cjs436.js.map +1 -1
  78. package/dist/index.cjs437.js +1 -1
  79. package/dist/index.cjs437.js.map +1 -1
  80. package/dist/index.cjs438.js +1 -1
  81. package/dist/index.cjs439.js +1 -1
  82. package/dist/index.cjs439.js.map +1 -1
  83. package/dist/index.cjs440.js +1 -1
  84. package/dist/index.cjs440.js.map +1 -1
  85. package/dist/index.cjs441.js +1 -1
  86. package/dist/index.cjs441.js.map +1 -1
  87. package/dist/index.cjs442.js +1 -1
  88. package/dist/index.cjs442.js.map +1 -1
  89. package/dist/index.cjs443.js +1 -1
  90. package/dist/index.cjs443.js.map +1 -1
  91. package/dist/index.cjs444.js +1 -1
  92. package/dist/index.cjs444.js.map +1 -1
  93. package/dist/index.cjs445.js +1 -1
  94. package/dist/index.cjs445.js.map +1 -1
  95. package/dist/index.cjs446.js +1 -1
  96. package/dist/index.cjs446.js.map +1 -1
  97. package/dist/index.cjs447.js +1 -1
  98. package/dist/index.cjs447.js.map +1 -1
  99. package/dist/index.cjs448.js +1 -1
  100. package/dist/index.cjs448.js.map +1 -1
  101. package/dist/index.cjs449.js +1 -1
  102. package/dist/index.cjs449.js.map +1 -1
  103. package/dist/index.cjs450.js +1 -1
  104. package/dist/index.cjs450.js.map +1 -1
  105. package/dist/index.cjs451.js +1 -1
  106. package/dist/index.cjs453.js +1 -1
  107. package/dist/index.cjs454.js +1 -1
  108. package/dist/index.cjs455.js +1 -1
  109. package/dist/index.cjs456.js +1 -1
  110. package/dist/index.cjs458.js +1 -1
  111. package/dist/index.cjs458.js.map +1 -1
  112. package/dist/index.cjs459.js +1 -1
  113. package/dist/index.cjs459.js.map +1 -1
  114. package/dist/index.cjs460.js +1 -2
  115. package/dist/index.cjs460.js.map +1 -1
  116. package/dist/index.cjs461.js +2 -1
  117. package/dist/index.cjs461.js.map +1 -1
  118. package/dist/index.cjs462.js +1 -1
  119. package/dist/index.cjs463.js +1 -38
  120. package/dist/index.cjs463.js.map +1 -1
  121. package/dist/index.cjs464.js +38 -1
  122. package/dist/index.cjs464.js.map +1 -1
  123. package/dist/index.cjs465.js +1 -1
  124. package/dist/index.cjs465.js.map +1 -1
  125. package/dist/index.cjs466.js +1 -1
  126. package/dist/index.cjs466.js.map +1 -1
  127. package/dist/index.cjs467.js +1 -1
  128. package/dist/index.cjs467.js.map +1 -1
  129. package/dist/index.cjs486.js +1 -1
  130. package/dist/index.cjs488.js +1 -1
  131. package/dist/index.cjs490.js +1 -1
  132. package/dist/index.cjs490.js.map +1 -1
  133. package/dist/index.cjs491.js +7 -1
  134. package/dist/index.cjs491.js.map +1 -1
  135. package/dist/index.cjs492.js +1 -1
  136. package/dist/index.cjs492.js.map +1 -1
  137. package/dist/index.cjs493.js +1 -1
  138. package/dist/index.cjs493.js.map +1 -1
  139. package/dist/index.cjs494.js +1 -1
  140. package/dist/index.cjs494.js.map +1 -1
  141. package/dist/index.cjs495.js +1 -7
  142. package/dist/index.cjs495.js.map +1 -1
  143. package/dist/index.cjs496.js +1 -1
  144. package/dist/index.cjs496.js.map +1 -1
  145. package/dist/index.cjs497.js +1 -1
  146. package/dist/index.cjs497.js.map +1 -1
  147. package/dist/index.cjs498.js +1 -1
  148. package/dist/index.cjs498.js.map +1 -1
  149. package/dist/index.cjs499.js +1 -1
  150. package/dist/index.cjs499.js.map +1 -1
  151. package/dist/index.cjs500.js +1 -1
  152. package/dist/index.cjs500.js.map +1 -1
  153. package/dist/index.cjs506.js +1 -1
  154. package/dist/index.cjs506.js.map +1 -1
  155. package/dist/index.cjs510.js +1 -1
  156. package/dist/index.cjs510.js.map +1 -1
  157. package/dist/index.cjs511.js +1 -1
  158. package/dist/index.cjs511.js.map +1 -1
  159. package/dist/index.cjs512.js +1 -1
  160. package/dist/index.cjs512.js.map +1 -1
  161. package/dist/index.cjs513.js +1 -1
  162. package/dist/index.cjs513.js.map +1 -1
  163. package/dist/index.cjs514.js +1 -1
  164. package/dist/index.cjs515.js +1 -1
  165. package/dist/index.cjs515.js.map +1 -1
  166. package/dist/index.cjs516.js +1 -1
  167. package/dist/index.cjs517.js +1 -1
  168. package/dist/index.cjs518.js +1 -1
  169. package/dist/index.cjs521.js +1 -1
  170. package/dist/index.cjs522.js +1 -1
  171. package/dist/index.cjs524.js +1 -1
  172. package/dist/index.cjs525.js +1 -1
  173. package/dist/index.cjs525.js.map +1 -1
  174. package/dist/index.cjs526.js +1 -1
  175. package/dist/index.cjs530.js +1 -1
  176. package/dist/index.cjs531.js +1 -1
  177. package/dist/index.cjs531.js.map +1 -1
  178. package/dist/index.cjs538.js +1 -1
  179. package/dist/index.cjs539.js +1 -1
  180. package/dist/index.cjs540.js +1 -1
  181. package/dist/index.cjs540.js.map +1 -1
  182. package/dist/index.cjs545.js +1 -1
  183. package/dist/index.cjs545.js.map +1 -1
  184. package/dist/index.cjs549.js +1 -1
  185. package/dist/index.cjs550.js +1 -1
  186. package/dist/index.es112.js +3 -3
  187. package/dist/index.es128.js +3 -3
  188. package/dist/index.es284.js +27 -3
  189. package/dist/index.es284.js.map +1 -1
  190. package/dist/index.es285.js +29 -8
  191. package/dist/index.es285.js.map +1 -1
  192. package/dist/index.es286.js +5 -7
  193. package/dist/index.es286.js.map +1 -1
  194. package/dist/index.es287.js +3 -27
  195. package/dist/index.es287.js.map +1 -1
  196. package/dist/index.es288.js +8 -29
  197. package/dist/index.es288.js.map +1 -1
  198. package/dist/index.es289.js +7 -5
  199. package/dist/index.es289.js.map +1 -1
  200. package/dist/index.es322.js +1 -1
  201. package/dist/index.es323.js +1 -1
  202. package/dist/index.es324.js +1 -1
  203. package/dist/index.es342.js +1 -1
  204. package/dist/index.es355.js +1 -1
  205. package/dist/index.es357.js +1 -1
  206. package/dist/index.es361.js +2 -2
  207. package/dist/index.es364.js +17 -17
  208. package/dist/index.es365.js +5 -5
  209. package/dist/index.es366.js +11 -11
  210. package/dist/index.es370.js +1 -1
  211. package/dist/index.es371.js +4 -4
  212. package/dist/index.es372.js +1 -1
  213. package/dist/index.es373.js +1 -1
  214. package/dist/index.es376.js +1 -1
  215. package/dist/index.es378.js +5 -5
  216. package/dist/index.es379.js +1 -1
  217. package/dist/index.es409.js +8 -3
  218. package/dist/index.es409.js.map +1 -1
  219. package/dist/index.es410.js +3 -6
  220. package/dist/index.es410.js.map +1 -1
  221. package/dist/index.es411.js +4 -6
  222. package/dist/index.es411.js.map +1 -1
  223. package/dist/index.es417.js +7 -2
  224. package/dist/index.es417.js.map +1 -1
  225. package/dist/index.es418.js +2 -7
  226. package/dist/index.es418.js.map +1 -1
  227. package/dist/index.es419.js +2 -2
  228. package/dist/index.es420.js +20 -94
  229. package/dist/index.es420.js.map +1 -1
  230. package/dist/index.es421.js +2 -275
  231. package/dist/index.es421.js.map +1 -1
  232. package/dist/index.es422.js +87 -120
  233. package/dist/index.es422.js.map +1 -1
  234. package/dist/index.es423.js +218 -111
  235. package/dist/index.es423.js.map +1 -1
  236. package/dist/index.es424.js +36 -38
  237. package/dist/index.es424.js.map +1 -1
  238. package/dist/index.es425.js +114 -74
  239. package/dist/index.es425.js.map +1 -1
  240. package/dist/index.es426.js +63 -65
  241. package/dist/index.es426.js.map +1 -1
  242. package/dist/index.es427.js +35 -35
  243. package/dist/index.es427.js.map +1 -1
  244. package/dist/index.es428.js +72 -56
  245. package/dist/index.es428.js.map +1 -1
  246. package/dist/index.es429.js +78 -67
  247. package/dist/index.es429.js.map +1 -1
  248. package/dist/index.es43.js +1 -1
  249. package/dist/index.es430.js +29 -29
  250. package/dist/index.es430.js.map +1 -1
  251. package/dist/index.es431.js +58 -58
  252. package/dist/index.es431.js.map +1 -1
  253. package/dist/index.es432.js +62 -70
  254. package/dist/index.es432.js.map +1 -1
  255. package/dist/index.es433.js +44 -58
  256. package/dist/index.es433.js.map +1 -1
  257. package/dist/index.es434.js +54 -57
  258. package/dist/index.es434.js.map +1 -1
  259. package/dist/index.es435.js +119 -21
  260. package/dist/index.es435.js.map +1 -1
  261. package/dist/index.es436.js +128 -2
  262. package/dist/index.es436.js.map +1 -1
  263. package/dist/index.es437.js +27 -15
  264. package/dist/index.es437.js.map +1 -1
  265. package/dist/index.es438.js +2 -2
  266. package/dist/index.es439.js +17 -39
  267. package/dist/index.es439.js.map +1 -1
  268. package/dist/index.es440.js +2 -43
  269. package/dist/index.es440.js.map +1 -1
  270. package/dist/index.es441.js +32 -32
  271. package/dist/index.es441.js.map +1 -1
  272. package/dist/index.es442.js +34 -34
  273. package/dist/index.es442.js.map +1 -1
  274. package/dist/index.es443.js +29 -29
  275. package/dist/index.es443.js.map +1 -1
  276. package/dist/index.es444.js +29 -29
  277. package/dist/index.es444.js.map +1 -1
  278. package/dist/index.es445.js +25 -25
  279. package/dist/index.es445.js.map +1 -1
  280. package/dist/index.es446.js +25 -25
  281. package/dist/index.es446.js.map +1 -1
  282. package/dist/index.es447.js +27 -28
  283. package/dist/index.es447.js.map +1 -1
  284. package/dist/index.es448.js +35 -33
  285. package/dist/index.es448.js.map +1 -1
  286. package/dist/index.es449.js +44 -2
  287. package/dist/index.es449.js.map +1 -1
  288. package/dist/index.es450.js +39 -20
  289. package/dist/index.es450.js.map +1 -1
  290. package/dist/index.es451.js +2 -2
  291. package/dist/index.es453.js +1 -1
  292. package/dist/index.es454.js +1 -1
  293. package/dist/index.es455.js +2 -2
  294. package/dist/index.es456.js +1 -1
  295. package/dist/index.es457.js +2 -2
  296. package/dist/index.es458.js +2 -14
  297. package/dist/index.es458.js.map +1 -1
  298. package/dist/index.es459.js +11 -9
  299. package/dist/index.es459.js.map +1 -1
  300. package/dist/index.es460.js +10 -10
  301. package/dist/index.es460.js.map +1 -1
  302. package/dist/index.es461.js +12 -2
  303. package/dist/index.es461.js.map +1 -1
  304. package/dist/index.es462.js +2 -2
  305. package/dist/index.es463.js +65 -55
  306. package/dist/index.es463.js.map +1 -1
  307. package/dist/index.es464.js +54 -8
  308. package/dist/index.es464.js.map +1 -1
  309. package/dist/index.es465.js +9 -14
  310. package/dist/index.es465.js.map +1 -1
  311. package/dist/index.es466.js +14 -60
  312. package/dist/index.es466.js.map +1 -1
  313. package/dist/index.es467.js +59 -64
  314. package/dist/index.es467.js.map +1 -1
  315. package/dist/index.es486.js +1 -1
  316. package/dist/index.es488.js +1 -1
  317. package/dist/index.es489.js +2 -2
  318. package/dist/index.es490.js +2 -148
  319. package/dist/index.es490.js.map +1 -1
  320. package/dist/index.es491.js +225 -2
  321. package/dist/index.es491.js.map +1 -1
  322. package/dist/index.es492.js +74 -78
  323. package/dist/index.es492.js.map +1 -1
  324. package/dist/index.es493.js +129 -2
  325. package/dist/index.es493.js.map +1 -1
  326. package/dist/index.es494.js +134 -2
  327. package/dist/index.es494.js.map +1 -1
  328. package/dist/index.es495.js +80 -176
  329. package/dist/index.es495.js.map +1 -1
  330. package/dist/index.es496.js +83 -82
  331. package/dist/index.es496.js.map +1 -1
  332. package/dist/index.es497.js +2 -129
  333. package/dist/index.es497.js.map +1 -1
  334. package/dist/index.es498.js +2 -134
  335. package/dist/index.es498.js.map +1 -1
  336. package/dist/index.es499.js +2 -129
  337. package/dist/index.es499.js.map +1 -1
  338. package/dist/index.es500.js +2 -135
  339. package/dist/index.es500.js.map +1 -1
  340. package/dist/index.es501.js +2 -2
  341. package/dist/index.es502.js +2 -2
  342. package/dist/index.es503.js +2 -2
  343. package/dist/index.es504.js +2 -2
  344. package/dist/index.es505.js +2 -2
  345. package/dist/index.es506.js +148 -2
  346. package/dist/index.es506.js.map +1 -1
  347. package/dist/index.es507.js +2 -2
  348. package/dist/index.es508.js +2 -2
  349. package/dist/index.es509.js +2 -2
  350. package/dist/index.es510.js +131 -2
  351. package/dist/index.es510.js.map +1 -1
  352. package/dist/index.es511.js +128 -2
  353. package/dist/index.es511.js.map +1 -1
  354. package/dist/index.es512.js +2 -131
  355. package/dist/index.es512.js.map +1 -1
  356. package/dist/index.es513.js +2 -128
  357. package/dist/index.es513.js.map +1 -1
  358. package/dist/index.es514.js +2 -2
  359. package/dist/index.es515.js +14 -2
  360. package/dist/index.es515.js.map +1 -1
  361. package/dist/index.es516.js +2 -2
  362. package/dist/index.es517.js +2 -2
  363. package/dist/index.es518.js +2 -2
  364. package/dist/index.es520.js +2 -2
  365. package/dist/index.es521.js +2 -2
  366. package/dist/index.es522.js +2 -2
  367. package/dist/index.es523.js +2 -2
  368. package/dist/index.es524.js +2 -2
  369. package/dist/index.es525.js +2 -14
  370. package/dist/index.es525.js.map +1 -1
  371. package/dist/index.es526.js +2 -2
  372. package/dist/index.es527.js +2 -2
  373. package/dist/index.es528.js +2 -2
  374. package/dist/index.es529.js +2 -2
  375. package/dist/index.es530.js +2 -2
  376. package/dist/index.es531.js +138 -2
  377. package/dist/index.es531.js.map +1 -1
  378. package/dist/index.es538.js +2 -2
  379. package/dist/index.es539.js +2 -2
  380. package/dist/index.es540.js +2 -30
  381. package/dist/index.es540.js.map +1 -1
  382. package/dist/index.es541.js +2 -2
  383. package/dist/index.es542.js +2 -2
  384. package/dist/index.es543.js +2 -2
  385. package/dist/index.es544.js +2 -2
  386. package/dist/index.es545.js +30 -2
  387. package/dist/index.es545.js.map +1 -1
  388. package/dist/index.es546.js +2 -2
  389. package/dist/index.es547.js +2 -2
  390. package/dist/index.es548.js +2 -2
  391. package/dist/index.es549.js +2 -2
  392. package/dist/index.es550.js +2 -2
  393. package/package.json +2 -2
@@ -1,228 +1,132 @@
1
- import { commonjsGlobal as d } from "./index.es141.js";
2
- import { __exports as p } from "./index.es542.js";
3
- import { __require as g } from "./index.es366.js";
4
- import { __require as x } from "./index.es492.js";
5
- var y;
6
- function P() {
7
- if (y)
8
- return p;
9
- y = 1;
10
- var v = d && d.__extends || /* @__PURE__ */ function() {
11
- var s = function(o, t) {
12
- return s = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, i) {
13
- r.__proto__ = i;
14
- } || function(r, i) {
15
- for (var n in i)
16
- Object.prototype.hasOwnProperty.call(i, n) && (r[n] = i[n]);
17
- }, s(o, t);
18
- };
19
- return function(o, t) {
20
- if (typeof t != "function" && t !== null)
21
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
22
- s(o, t);
23
- function r() {
24
- this.constructor = o;
25
- }
26
- o.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
27
- };
28
- }(), f = d && d.__awaiter || function(s, o, t, r) {
29
- function i(n) {
30
- return n instanceof t ? n : new t(function(a) {
31
- a(n);
1
+ import { commonjsGlobal as c } from "./index.es141.js";
2
+ import { __exports as s } from "./index.es543.js";
3
+ import { __require as S } from "./index.es424.js";
4
+ import { __require as q } from "./index.es494.js";
5
+ var v;
6
+ function g() {
7
+ if (v)
8
+ return s;
9
+ v = 1;
10
+ var _ = c && c.__awaiter || function(r, l, n, a) {
11
+ function i(t) {
12
+ return t instanceof n ? t : new n(function(u) {
13
+ u(t);
32
14
  });
33
15
  }
34
- return new (t || (t = Promise))(function(n, a) {
35
- function c(u) {
16
+ return new (n || (n = Promise))(function(t, u) {
17
+ function f(o) {
36
18
  try {
37
- e(r.next(u));
38
- } catch (m) {
39
- a(m);
19
+ e(a.next(o));
20
+ } catch (h) {
21
+ u(h);
40
22
  }
41
23
  }
42
- function h(u) {
24
+ function y(o) {
43
25
  try {
44
- e(r.throw(u));
45
- } catch (m) {
46
- a(m);
26
+ e(a.throw(o));
27
+ } catch (h) {
28
+ u(h);
47
29
  }
48
30
  }
49
- function e(u) {
50
- u.done ? n(u.value) : i(u.value).then(c, h);
31
+ function e(o) {
32
+ o.done ? t(o.value) : i(o.value).then(f, y);
51
33
  }
52
- e((r = r.apply(s, o || [])).next());
34
+ e((a = a.apply(r, l || [])).next());
53
35
  });
54
- }, l = d && d.__generator || function(s, o) {
55
- var t = { label: 0, sent: function() {
56
- if (n[0] & 1)
57
- throw n[1];
58
- return n[1];
59
- }, trys: [], ops: [] }, r, i, n, a;
60
- return a = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (a[Symbol.iterator] = function() {
36
+ }, d = c && c.__generator || function(r, l) {
37
+ var n = { label: 0, sent: function() {
38
+ if (t[0] & 1)
39
+ throw t[1];
40
+ return t[1];
41
+ }, trys: [], ops: [] }, a, i, t, u;
42
+ return u = { next: f(0), throw: f(1), return: f(2) }, typeof Symbol == "function" && (u[Symbol.iterator] = function() {
61
43
  return this;
62
- }), a;
63
- function c(e) {
64
- return function(u) {
65
- return h([e, u]);
44
+ }), u;
45
+ function f(e) {
46
+ return function(o) {
47
+ return y([e, o]);
66
48
  };
67
49
  }
68
- function h(e) {
69
- if (r)
50
+ function y(e) {
51
+ if (a)
70
52
  throw new TypeError("Generator is already executing.");
71
- for (; t; )
53
+ for (; n; )
72
54
  try {
73
- if (r = 1, i && (n = e[0] & 2 ? i.return : e[0] ? i.throw || ((n = i.return) && n.call(i), 0) : i.next) && !(n = n.call(i, e[1])).done)
74
- return n;
75
- switch (i = 0, n && (e = [e[0] & 2, n.value]), e[0]) {
55
+ if (a = 1, i && (t = e[0] & 2 ? i.return : e[0] ? i.throw || ((t = i.return) && t.call(i), 0) : i.next) && !(t = t.call(i, e[1])).done)
56
+ return t;
57
+ switch (i = 0, t && (e = [e[0] & 2, t.value]), e[0]) {
76
58
  case 0:
77
59
  case 1:
78
- n = e;
60
+ t = e;
79
61
  break;
80
62
  case 4:
81
- return t.label++, { value: e[1], done: !1 };
63
+ return n.label++, { value: e[1], done: !1 };
82
64
  case 5:
83
- t.label++, i = e[1], e = [0];
65
+ n.label++, i = e[1], e = [0];
84
66
  continue;
85
67
  case 7:
86
- e = t.ops.pop(), t.trys.pop();
68
+ e = n.ops.pop(), n.trys.pop();
87
69
  continue;
88
70
  default:
89
- if (n = t.trys, !(n = n.length > 0 && n[n.length - 1]) && (e[0] === 6 || e[0] === 2)) {
90
- t = 0;
71
+ if (t = n.trys, !(t = t.length > 0 && t[t.length - 1]) && (e[0] === 6 || e[0] === 2)) {
72
+ n = 0;
91
73
  continue;
92
74
  }
93
- if (e[0] === 3 && (!n || e[1] > n[0] && e[1] < n[3])) {
94
- t.label = e[1];
75
+ if (e[0] === 3 && (!t || e[1] > t[0] && e[1] < t[3])) {
76
+ n.label = e[1];
95
77
  break;
96
78
  }
97
- if (e[0] === 6 && t.label < n[1]) {
98
- t.label = n[1], n = e;
79
+ if (e[0] === 6 && n.label < t[1]) {
80
+ n.label = t[1], t = e;
99
81
  break;
100
82
  }
101
- if (n && t.label < n[2]) {
102
- t.label = n[2], t.ops.push(e);
83
+ if (t && n.label < t[2]) {
84
+ n.label = t[2], n.ops.push(e);
103
85
  break;
104
86
  }
105
- n[2] && t.ops.pop(), t.trys.pop();
87
+ t[2] && n.ops.pop(), n.trys.pop();
106
88
  continue;
107
89
  }
108
- e = o.call(s, t);
109
- } catch (u) {
110
- e = [6, u], i = 0;
90
+ e = l.call(r, n);
91
+ } catch (o) {
92
+ e = [6, o], i = 0;
111
93
  } finally {
112
- r = n = 0;
94
+ a = t = 0;
113
95
  }
114
96
  if (e[0] & 5)
115
97
  throw e[1];
116
98
  return { value: e[0] ? e[1] : void 0, done: !0 };
117
99
  }
100
+ }, m = c && c.__importDefault || function(r) {
101
+ return r && r.__esModule ? r : { default: r };
118
102
  };
119
- Object.defineProperty(p, "__esModule", { value: !0 });
120
- var _ = g(), w = x(), b = (
103
+ Object.defineProperty(s, "__esModule", { value: !0 });
104
+ var b = m(S()), p = m(q()), w = (
121
105
  /** @class */
122
- function(s) {
123
- v(o, s);
124
- function o(t, r, i) {
125
- return s.call(this, t, r, i) || this;
106
+ function() {
107
+ function r(l, n, a) {
108
+ this.collectionName = l, this.synonymId = n, this.apiCall = a;
126
109
  }
127
- return o.prototype.create = function(t, r) {
128
- return r === void 0 && (r = {}), f(this, void 0, void 0, function() {
129
- return l(this, function(i) {
130
- if (!t)
131
- throw new Error("No document provided");
132
- return [2, this.apiCall.post(this.endpointPath(), t, r)];
133
- });
134
- });
135
- }, o.prototype.upsert = function(t, r) {
136
- return r === void 0 && (r = {}), f(this, void 0, void 0, function() {
137
- return l(this, function(i) {
138
- if (!t)
139
- throw new Error("No document provided");
140
- return [2, this.apiCall.post(this.endpointPath(), t, Object.assign({}, r, { action: "upsert" }))];
141
- });
142
- });
143
- }, o.prototype.update = function(t, r) {
144
- return r === void 0 && (r = {}), f(this, void 0, void 0, function() {
145
- return l(this, function(i) {
146
- if (!t)
147
- throw new Error("No document provided");
148
- return r.filter_by != null ? [2, this.apiCall.patch(this.endpointPath(), t, Object.assign({}, r))] : [2, this.apiCall.post(this.endpointPath(), t, Object.assign({}, r, { action: "update" }))];
149
- });
150
- });
151
- }, o.prototype.delete = function(t) {
152
- return t === void 0 && (t = {}), f(this, void 0, void 0, function() {
153
- return l(this, function(r) {
154
- return typeof t == "string" ? [2, this.apiCall.delete(this.endpointPath(t), t)] : [2, this.apiCall.delete(this.endpointPath(), t)];
155
- });
156
- });
157
- }, o.prototype.createMany = function(t, r) {
158
- return r === void 0 && (r = {}), f(this, void 0, void 0, function() {
159
- return l(this, function(i) {
160
- return this.configuration.logger.warn("createMany is deprecated and will be removed in a future version. Use import instead, which now takes both an array of documents or a JSONL string of documents"), [2, this.import(t, r)];
161
- });
162
- });
163
- }, o.prototype.import = function(t, r) {
164
- return r === void 0 && (r = {}), f(this, void 0, void 0, function() {
165
- var i, n, a, c;
166
- return l(this, function(h) {
167
- switch (h.label) {
168
- case 0:
169
- if (Array.isArray(t))
170
- try {
171
- i = t.map(function(e) {
172
- return JSON.stringify(e);
173
- }).join(`
174
- `);
175
- } catch (e) {
176
- throw RangeError instanceof e && (e != null && e.includes("Too many properties to enumerate")) ? new Error("".concat(e, `
177
- It looks like you have reached a Node.js limit that restricts the number of keys in an Object: https://stackoverflow.com/questions/9282869/are-there-limits-to-the-number-of-properties-in-a-javascript-object
178
-
179
- Please try reducing the number of keys in your document, or using CURL to import your data.
180
- `)) : new Error(e);
181
- }
182
- else
183
- i = t;
184
- return [4, this.apiCall.performRequest("post", this.endpointPath("import"), {
185
- queryParameters: r,
186
- bodyParameters: i,
187
- additionalHeaders: { "Content-Type": "text/plain" },
188
- skipConnectionTimeout: !0
189
- // We never want to client-side-timeout on an import and retry, since imports are syncronous and we want to let them take as long as it takes to complete fully
190
- })];
191
- case 1:
192
- if (n = h.sent(), Array.isArray(t)) {
193
- if (a = n.split(`
194
- `).map(function(e) {
195
- return JSON.parse(e);
196
- }), c = a.filter(function(e) {
197
- return e.success === !1;
198
- }), c.length > 0)
199
- throw new _.ImportError("".concat(a.length - c.length, " documents imported successfully, ").concat(c.length, " documents failed during import. Use `error.importResults` from the raised exception to get a detailed error reason for each document."), a);
200
- return [2, a];
201
- } else
202
- return [2, n];
203
- }
204
- });
205
- });
206
- }, o.prototype.export = function(t) {
207
- return t === void 0 && (t = {}), f(this, void 0, void 0, function() {
208
- return l(this, function(r) {
209
- return [2, this.apiCall.get(this.endpointPath("export"), t)];
110
+ return r.prototype.retrieve = function() {
111
+ return _(this, void 0, void 0, function() {
112
+ return d(this, function(l) {
113
+ return [2, this.apiCall.get(this.endpointPath())];
210
114
  });
211
115
  });
212
- }, o.prototype.exportStream = function(t) {
213
- return t === void 0 && (t = {}), f(this, void 0, void 0, function() {
214
- return l(this, function(r) {
215
- return [2, this.apiCall.get(this.endpointPath("export"), t, {
216
- responseType: "stream"
217
- })];
116
+ }, r.prototype.delete = function() {
117
+ return _(this, void 0, void 0, function() {
118
+ return d(this, function(l) {
119
+ return [2, this.apiCall.delete(this.endpointPath())];
218
120
  });
219
121
  });
220
- }, o;
221
- }(w.SearchOnlyDocuments)
122
+ }, r.prototype.endpointPath = function() {
123
+ return "".concat(b.default.RESOURCEPATH, "/").concat(this.collectionName).concat(p.default.RESOURCEPATH, "/").concat(this.synonymId);
124
+ }, r;
125
+ }()
222
126
  );
223
- return p.default = b, p;
127
+ return s.default = w, s;
224
128
  }
225
129
  export {
226
- P as __require
130
+ g as __require
227
131
  };
228
132
  //# sourceMappingURL=index.es495.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es495.js","sources":["../../../node_modules/typesense/lib/Typesense/Documents.js"],"sourcesContent":["\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Errors_1 = require(\"./Errors\");\nvar SearchOnlyDocuments_1 = require(\"./SearchOnlyDocuments\");\nvar Documents = /** @class */ (function (_super) {\n __extends(Documents, _super);\n function Documents(collectionName, apiCall, configuration) {\n return _super.call(this, collectionName, apiCall, configuration) || this;\n }\n Documents.prototype.create = function (document, options) {\n if (options === void 0) { options = {}; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n if (!document)\n throw new Error(\"No document provided\");\n return [2 /*return*/, this.apiCall.post(this.endpointPath(), document, options)];\n });\n });\n };\n Documents.prototype.upsert = function (document, options) {\n if (options === void 0) { options = {}; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n if (!document)\n throw new Error(\"No document provided\");\n return [2 /*return*/, this.apiCall.post(this.endpointPath(), document, Object.assign({}, options, { action: \"upsert\" }))];\n });\n });\n };\n Documents.prototype.update = function (document, options) {\n if (options === void 0) { options = {}; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n if (!document)\n throw new Error(\"No document provided\");\n if (options[\"filter_by\"] != null) {\n return [2 /*return*/, this.apiCall.patch(this.endpointPath(), document, Object.assign({}, options))];\n }\n else {\n return [2 /*return*/, this.apiCall.post(this.endpointPath(), document, Object.assign({}, options, { action: \"update\" }))];\n }\n return [2 /*return*/];\n });\n });\n };\n Documents.prototype.delete = function (idOrQuery) {\n if (idOrQuery === void 0) { idOrQuery = {}; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n if (typeof idOrQuery === \"string\") {\n return [2 /*return*/, this.apiCall.delete(this.endpointPath(idOrQuery), idOrQuery)];\n }\n else {\n return [2 /*return*/, this.apiCall.delete(this.endpointPath(), idOrQuery)];\n }\n return [2 /*return*/];\n });\n });\n };\n Documents.prototype.createMany = function (documents, options) {\n if (options === void 0) { options = {}; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n this.configuration.logger.warn(\"createMany is deprecated and will be removed in a future version. Use import instead, which now takes both an array of documents or a JSONL string of documents\");\n return [2 /*return*/, this.import(documents, options)];\n });\n });\n };\n Documents.prototype.import = function (documents, options) {\n if (options === void 0) { options = {}; }\n return __awaiter(this, void 0, void 0, function () {\n var documentsInJSONLFormat, resultsInJSONLFormat, resultsInJSONFormat, failedItems;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (Array.isArray(documents)) {\n try {\n documentsInJSONLFormat = documents\n .map(function (document) { return JSON.stringify(document); })\n .join(\"\\n\");\n }\n catch (error) {\n // if rangeerror, throw custom error message\n if (RangeError instanceof error &&\n (error === null || error === void 0 ? void 0 : error.includes(\"Too many properties to enumerate\"))) {\n throw new Error(\"\".concat(error, \"\\n It looks like you have reached a Node.js limit that restricts the number of keys in an Object: https://stackoverflow.com/questions/9282869/are-there-limits-to-the-number-of-properties-in-a-javascript-object\\n\\n Please try reducing the number of keys in your document, or using CURL to import your data.\\n \"));\n }\n // else, throw the non-range error anyways\n throw new Error(error);\n }\n }\n else {\n documentsInJSONLFormat = documents;\n }\n return [4 /*yield*/, this.apiCall.performRequest(\"post\", this.endpointPath(\"import\"), {\n queryParameters: options,\n bodyParameters: documentsInJSONLFormat,\n additionalHeaders: { \"Content-Type\": \"text/plain\" },\n skipConnectionTimeout: true, // We never want to client-side-timeout on an import and retry, since imports are syncronous and we want to let them take as long as it takes to complete fully\n })];\n case 1:\n resultsInJSONLFormat = _a.sent();\n if (Array.isArray(documents)) {\n resultsInJSONFormat = resultsInJSONLFormat\n .split(\"\\n\")\n .map(function (r) { return JSON.parse(r); });\n failedItems = resultsInJSONFormat.filter(function (r) { return r.success === false; });\n if (failedItems.length > 0) {\n throw new Errors_1.ImportError(\"\".concat(resultsInJSONFormat.length - failedItems.length, \" documents imported successfully, \").concat(failedItems.length, \" documents failed during import. Use `error.importResults` from the raised exception to get a detailed error reason for each document.\"), resultsInJSONFormat);\n }\n else {\n return [2 /*return*/, resultsInJSONFormat];\n }\n }\n else {\n return [2 /*return*/, resultsInJSONLFormat];\n }\n return [2 /*return*/];\n }\n });\n });\n };\n /**\n * Returns a JSONL string for all the documents in this collection\n */\n Documents.prototype.export = function (options) {\n if (options === void 0) { options = {}; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.apiCall.get(this.endpointPath(\"export\"), options)];\n });\n });\n };\n /**\n * Returns a NodeJS readable stream of JSONL for all the documents in this collection.\n */\n Documents.prototype.exportStream = function (options) {\n if (options === void 0) { options = {}; }\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.apiCall.get(this.endpointPath(\"export\"), options, {\n responseType: \"stream\",\n })];\n });\n });\n };\n return Documents;\n}(SearchOnlyDocuments_1.SearchOnlyDocuments));\nexports.default = Documents;\n//# sourceMappingURL=Documents.js.map"],"names":["__extends","this","extendStatics","d","b","p","__","__awaiter","thisArg","_arguments","P","generator","adopt","value","resolve","reject","fulfilled","step","e","rejected","result","__generator","body","_","t","f","y","g","verb","n","v","op","Documents_1","Errors_1","require$$0","SearchOnlyDocuments_1","require$$1","Documents","_super","collectionName","apiCall","configuration","document","options","_a","idOrQuery","documents","documentsInJSONLFormat","resultsInJSONLFormat","resultsInJSONFormat","failedItems","error","r"],"mappings":";;;;;;;;;AACA,MAAIA,IAAaC,KAAQA,EAAK,aAA2B,2BAAA;AACjD,QAAAC,IAAgB,SAAUC,GAAGC,GAAG;AAChB,aAAAF,IAAA,OAAO,kBAClB,EAAE,WAAW,gBAAgB,SAAS,SAAUC,GAAGC,GAAG;AAAED,QAAAA,EAAE,YAAYC;AAAAA,MAAA,KACvE,SAAUD,GAAGC,GAAG;AAAE,iBAASC,KAAKD;AAAG,UAAI,OAAO,UAAU,eAAe,KAAKA,GAAGC,CAAC,MAAGF,EAAEE,CA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GAKLX,EAAU,UAAU,SAAS,SAAUM,GAAS;AAC5C,eAAIA,MAAY,WAAUA,IAAU,CAAA,IAC7BpC,EAAU,MAAM,QAAQ,QAAQ,WAAY;AACxC,iBAAAc,EAAY,MAAM,SAAUuB,GAAI;AAC5B,mBAAA,CAAC,GAAc,KAAK,QAAQ,IAAI,KAAK,aAAa,QAAQ,GAAGD,CAAO,CAAC;AAAA,UAAA,CAC/E;AAAA,QAAA,CACJ;AAAA,MAAA,GAKLN,EAAU,UAAU,eAAe,SAAUM,GAAS;AAClD,eAAIA,MAAY,WAAUA,IAAU,CAAA,IAC7BpC,EAAU,MAAM,QAAQ,QAAQ,WAAY;AACxC,iBAAAc,EAAY,MAAM,SAAUuB,GAAI;AAC5B,mBAAA,CAAC,GAAc,KAAK,QAAQ,IAAI,KAAK,aAAa,QAAQ,GAAGD,GAAS;AAAA,cACrE,cAAc;AAAA,YACjB,CAAA,CAAC;AAAA,UAAA,CACT;AAAA,QAAA,CACJ;AAAA,MAAA,GAEEN;AAAAA,IAAA,EACTF,EAAsB,mBAAmB;AAAA;AAC3CH,SAAAA,EAAA,UAAkBK;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es495.js","sources":["../../../node_modules/typesense/lib/Typesense/Synonym.js"],"sourcesContent":["\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Collections_1 = __importDefault(require(\"./Collections\"));\nvar Synonyms_1 = __importDefault(require(\"./Synonyms\"));\nvar Synonym = /** @class */ (function () {\n function Synonym(collectionName, synonymId, apiCall) {\n this.collectionName = collectionName;\n this.synonymId = synonymId;\n this.apiCall = apiCall;\n }\n Synonym.prototype.retrieve = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.apiCall.get(this.endpointPath())];\n });\n });\n };\n Synonym.prototype.delete = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n return [2 /*return*/, this.apiCall.delete(this.endpointPath())];\n });\n });\n };\n Synonym.prototype.endpointPath = function () {\n return \"\".concat(Collections_1.default.RESOURCEPATH, \"/\").concat(this.collectionName).concat(Synonyms_1.default.RESOURCEPATH, \"/\").concat(this.synonymId);\n };\n return Synonym;\n}());\nexports.default = Synonym;\n//# sourceMappingURL=Synonym.js.map"],"names":["__awaiter","this","thisArg","_arguments","P","generator","adopt","value","resolve","reject","fulfilled","step","e","rejected","result","__generator","body","_","f","y","g","verb","n","v","op","__importDefault","mod","Synonym_1","Collections_1","require$$0","Synonyms_1","require$$1","Synonym","collectionName","synonymId","apiCall","_a"],"mappings":";;;;;;;;;AACA,MAAIA,IAAaC,KAAQA,EAAK,aAAc,SAAUC,GAASC,GAAYC,GAAGC,GAAW;AACrF,aAASC,EAAMC,GAAO;AAAE,aAAOA,aAAiBH,IAAIG,IAAQ,IAAIH,EAAE,SAAUI,GAAS;AAAE,QAAAA,EAAQD,CAAK;AAAA,MAAA,CAAI;AAAA,IAAG;AAC3G,WAAO,KAAKH,MAAMA,IAAI,UAAU,SAAUI,GAASC,GAAQ;AACvD,eAASC,EAAUH,GAAO;AAAM,YAAA;AAAO,UAAAI,EAAAN,EAAU,KAAKE,CAAK,CAAC;AAAA,iBAAYK,GAAG;AAAE,UAAAH,EAAOG,CAAC;AAAA,QAAG;AAAA,MAAE;AAC1F,eAASC,EAASN,GAAO;AAAM,YAAA;AAAE,UAAAI,EAAKN,EAAU,MAASE,CAAK,CAAC;AAAA,iBAAYK,GAAG;AAAE,UAAAH,EAAOG,CAAC;AAAA,QAAG;AAAA,MAAE;AAC7F,eAASD,EAAKG,GAAQ;AAAS,QAAAA,EAAA,OAAON,EAAQM,EAAO,KAAK,IAAIR,EAAMQ,EAAO,KAAK,EAAE,KAAKJ,GAAWG,CAAQ;AAAA,MAAG;AACvG,MAAAF,GAAAN,IAA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import { __require as O } from "./index.es422.js";
4
- var b;
5
- function x() {
6
- if (b)
2
+ import { __exports as s } from "./index.es544.js";
3
+ import { __require as D } from "./index.es424.js";
4
+ import { __require as C } from "./index.es491.js";
5
+ var p;
6
+ function R() {
7
+ if (p)
7
8
  return s;
8
- b = 1;
9
- var v = l && l.__awaiter || function(n, u, r, o) {
10
- function i(e) {
11
- return e instanceof r ? e : new r(function(c) {
12
- c(e);
9
+ p = 1;
10
+ var h = l && l.__awaiter || function(r, a, n, u) {
11
+ function i(t) {
12
+ return t instanceof n ? t : new n(function(c) {
13
+ c(t);
13
14
  });
14
15
  }
15
- return new (r || (r = Promise))(function(e, c) {
16
- function f(a) {
16
+ return new (n || (n = Promise))(function(t, c) {
17
+ function f(o) {
17
18
  try {
18
- t(o.next(a));
19
- } catch (d) {
20
- c(d);
19
+ e(u.next(o));
20
+ } catch (m) {
21
+ c(m);
21
22
  }
22
23
  }
23
- function h(a) {
24
+ function _(o) {
24
25
  try {
25
- t(o.throw(a));
26
- } catch (d) {
27
- c(d);
26
+ e(u.throw(o));
27
+ } catch (m) {
28
+ c(m);
28
29
  }
29
30
  }
30
- function t(a) {
31
- a.done ? e(a.value) : i(a.value).then(f, h);
31
+ function e(o) {
32
+ o.done ? t(o.value) : i(o.value).then(f, _);
32
33
  }
33
- t((o = o.apply(n, u || [])).next());
34
+ e((u = u.apply(r, a || [])).next());
34
35
  });
35
- }, _ = l && l.__generator || function(n, u) {
36
- var r = { label: 0, sent: function() {
37
- if (e[0] & 1)
38
- throw e[1];
39
- return e[1];
40
- }, trys: [], ops: [] }, o, i, e, c;
36
+ }, d = l && l.__generator || function(r, a) {
37
+ var n = { label: 0, sent: function() {
38
+ if (t[0] & 1)
39
+ throw t[1];
40
+ return t[1];
41
+ }, trys: [], ops: [] }, u, i, t, c;
41
42
  return c = { next: f(0), throw: f(1), return: f(2) }, typeof Symbol == "function" && (c[Symbol.iterator] = function() {
42
43
  return this;
43
44
  }), c;
44
- function f(t) {
45
- return function(a) {
46
- return h([t, a]);
45
+ function f(e) {
46
+ return function(o) {
47
+ return _([e, o]);
47
48
  };
48
49
  }
49
- function h(t) {
50
- if (o)
50
+ function _(e) {
51
+ if (u)
51
52
  throw new TypeError("Generator is already executing.");
52
- for (; r; )
53
+ for (; n; )
53
54
  try {
54
- if (o = 1, i && (e = t[0] & 2 ? i.return : t[0] ? i.throw || ((e = i.return) && e.call(i), 0) : i.next) && !(e = e.call(i, t[1])).done)
55
- return e;
56
- switch (i = 0, e && (t = [t[0] & 2, e.value]), t[0]) {
55
+ if (u = 1, i && (t = e[0] & 2 ? i.return : e[0] ? i.throw || ((t = i.return) && t.call(i), 0) : i.next) && !(t = t.call(i, e[1])).done)
56
+ return t;
57
+ switch (i = 0, t && (e = [e[0] & 2, t.value]), e[0]) {
57
58
  case 0:
58
59
  case 1:
59
- e = t;
60
+ t = e;
60
61
  break;
61
62
  case 4:
62
- return r.label++, { value: t[1], done: !1 };
63
+ return n.label++, { value: e[1], done: !1 };
63
64
  case 5:
64
- r.label++, i = t[1], t = [0];
65
+ n.label++, i = e[1], e = [0];
65
66
  continue;
66
67
  case 7:
67
- t = r.ops.pop(), r.trys.pop();
68
+ e = n.ops.pop(), n.trys.pop();
68
69
  continue;
69
70
  default:
70
- if (e = r.trys, !(e = e.length > 0 && e[e.length - 1]) && (t[0] === 6 || t[0] === 2)) {
71
- r = 0;
71
+ if (t = n.trys, !(t = t.length > 0 && t[t.length - 1]) && (e[0] === 6 || e[0] === 2)) {
72
+ n = 0;
72
73
  continue;
73
74
  }
74
- if (t[0] === 3 && (!e || t[1] > e[0] && t[1] < e[3])) {
75
- r.label = t[1];
75
+ if (e[0] === 3 && (!t || e[1] > t[0] && e[1] < t[3])) {
76
+ n.label = e[1];
76
77
  break;
77
78
  }
78
- if (t[0] === 6 && r.label < e[1]) {
79
- r.label = e[1], e = t;
79
+ if (e[0] === 6 && n.label < t[1]) {
80
+ n.label = t[1], t = e;
80
81
  break;
81
82
  }
82
- if (e && r.label < e[2]) {
83
- r.label = e[2], r.ops.push(t);
83
+ if (t && n.label < t[2]) {
84
+ n.label = t[2], n.ops.push(e);
84
85
  break;
85
86
  }
86
- e[2] && r.ops.pop(), r.trys.pop();
87
+ t[2] && n.ops.pop(), n.trys.pop();
87
88
  continue;
88
89
  }
89
- t = u.call(n, r);
90
- } catch (a) {
91
- t = [6, a], i = 0;
90
+ e = a.call(r, n);
91
+ } catch (o) {
92
+ e = [6, o], i = 0;
92
93
  } finally {
93
- o = e = 0;
94
+ u = t = 0;
94
95
  }
95
- if (t[0] & 5)
96
- throw t[1];
97
- return { value: t[0] ? t[1] : void 0, done: !0 };
96
+ if (e[0] & 5)
97
+ throw e[1];
98
+ return { value: e[0] ? e[1] : void 0, done: !0 };
98
99
  }
99
- }, y = l && l.__importDefault || function(n) {
100
- return n && n.__esModule ? n : { default: n };
100
+ }, v = l && l.__importDefault || function(r) {
101
+ return r && r.__esModule ? r : { default: r };
101
102
  };
102
- Object.defineProperty(s, "__esModule", { value: !0 });
103
- var p = y(O()), m = "/overrides", w = (
103
+ Object.defineProperty(s, "__esModule", { value: !0 }), s.Document = void 0;
104
+ var y = v(D()), b = v(C()), w = (
104
105
  /** @class */
105
106
  function() {
106
- function n(u, r) {
107
- this.collectionName = u, this.apiCall = r;
107
+ function r(a, n, u) {
108
+ this.collectionName = a, this.documentId = n, this.apiCall = u;
108
109
  }
109
- return n.prototype.upsert = function(u, r) {
110
- return v(this, void 0, void 0, function() {
111
- return _(this, function(o) {
112
- return [2, this.apiCall.put(this.endpointPath(u), r)];
110
+ return r.prototype.retrieve = function() {
111
+ return h(this, void 0, void 0, function() {
112
+ return d(this, function(a) {
113
+ return [2, this.apiCall.get(this.endpointPath())];
113
114
  });
114
115
  });
115
- }, n.prototype.retrieve = function() {
116
- return v(this, void 0, void 0, function() {
117
- return _(this, function(u) {
118
- return [2, this.apiCall.get(this.endpointPath())];
116
+ }, r.prototype.delete = function() {
117
+ return h(this, void 0, void 0, function() {
118
+ return d(this, function(a) {
119
+ return [2, this.apiCall.delete(this.endpointPath())];
120
+ });
121
+ });
122
+ }, r.prototype.update = function(a, n) {
123
+ return n === void 0 && (n = {}), h(this, void 0, void 0, function() {
124
+ return d(this, function(u) {
125
+ return [2, this.apiCall.patch(this.endpointPath(), a, n)];
119
126
  });
120
127
  });
121
- }, n.prototype.endpointPath = function(u) {
122
- return "".concat(p.default.RESOURCEPATH, "/").concat(this.collectionName).concat(n.RESOURCEPATH).concat(u === void 0 ? "" : "/" + u);
123
- }, Object.defineProperty(n, "RESOURCEPATH", {
124
- get: function() {
125
- return m;
126
- },
127
- enumerable: !1,
128
- configurable: !0
129
- }), n;
128
+ }, r.prototype.endpointPath = function() {
129
+ return "".concat(y.default.RESOURCEPATH, "/").concat(this.collectionName).concat(b.default.RESOURCEPATH, "/").concat(this.documentId);
130
+ }, r;
130
131
  }()
131
132
  );
132
- return s.default = w, s;
133
+ return s.Document = w, s;
133
134
  }
134
135
  export {
135
- x as __require
136
+ R as __require
136
137
  };
137
138
  //# sourceMappingURL=index.es496.js.map