@equinor/fusion-framework-module-services 0.0.0-next-20230915111233

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 (546) hide show
  1. package/.turbo/turbo-build.log +4 -0
  2. package/CHANGELOG.md +1470 -0
  3. package/LICENSE +21 -0
  4. package/dist/esm/bookmarks/api-models.js +2 -0
  5. package/dist/esm/bookmarks/api-models.js.map +1 -0
  6. package/dist/esm/bookmarks/client.js +48 -0
  7. package/dist/esm/bookmarks/client.js.map +1 -0
  8. package/dist/esm/bookmarks/delete/client.js +4 -0
  9. package/dist/esm/bookmarks/delete/client.js.map +1 -0
  10. package/dist/esm/bookmarks/delete/generate-endpoint.js +17 -0
  11. package/dist/esm/bookmarks/delete/generate-endpoint.js.map +1 -0
  12. package/dist/esm/bookmarks/delete/generate-parameters.js +7 -0
  13. package/dist/esm/bookmarks/delete/generate-parameters.js.map +1 -0
  14. package/dist/esm/bookmarks/delete/index.js +5 -0
  15. package/dist/esm/bookmarks/delete/index.js.map +1 -0
  16. package/dist/esm/bookmarks/delete/types-v1.js +2 -0
  17. package/dist/esm/bookmarks/delete/types-v1.js.map +1 -0
  18. package/dist/esm/bookmarks/delete/types.js +2 -0
  19. package/dist/esm/bookmarks/delete/types.js.map +1 -0
  20. package/dist/esm/bookmarks/favorites/delete/client.js +4 -0
  21. package/dist/esm/bookmarks/favorites/delete/client.js.map +1 -0
  22. package/dist/esm/bookmarks/favorites/delete/generate-endpoint.js +12 -0
  23. package/dist/esm/bookmarks/favorites/delete/generate-endpoint.js.map +1 -0
  24. package/dist/esm/bookmarks/favorites/delete/generate-parameters.js +7 -0
  25. package/dist/esm/bookmarks/favorites/delete/generate-parameters.js.map +1 -0
  26. package/dist/esm/bookmarks/favorites/delete/index.js +5 -0
  27. package/dist/esm/bookmarks/favorites/delete/index.js.map +1 -0
  28. package/dist/esm/bookmarks/favorites/delete/types-v1.js +2 -0
  29. package/dist/esm/bookmarks/favorites/delete/types-v1.js.map +1 -0
  30. package/dist/esm/bookmarks/favorites/delete/types.js +2 -0
  31. package/dist/esm/bookmarks/favorites/delete/types.js.map +1 -0
  32. package/dist/esm/bookmarks/favorites/head/client.js +4 -0
  33. package/dist/esm/bookmarks/favorites/head/client.js.map +1 -0
  34. package/dist/esm/bookmarks/favorites/head/generate-endpoint.js +12 -0
  35. package/dist/esm/bookmarks/favorites/head/generate-endpoint.js.map +1 -0
  36. package/dist/esm/bookmarks/favorites/head/generate-parameters.js +9 -0
  37. package/dist/esm/bookmarks/favorites/head/generate-parameters.js.map +1 -0
  38. package/dist/esm/bookmarks/favorites/head/index.js +5 -0
  39. package/dist/esm/bookmarks/favorites/head/index.js.map +1 -0
  40. package/dist/esm/bookmarks/favorites/head/types.js +2 -0
  41. package/dist/esm/bookmarks/favorites/head/types.js.map +1 -0
  42. package/dist/esm/bookmarks/favorites/post/client.js +4 -0
  43. package/dist/esm/bookmarks/favorites/post/client.js.map +1 -0
  44. package/dist/esm/bookmarks/favorites/post/generate-endpoint.js +11 -0
  45. package/dist/esm/bookmarks/favorites/post/generate-endpoint.js.map +1 -0
  46. package/dist/esm/bookmarks/favorites/post/generate-parameters.js +9 -0
  47. package/dist/esm/bookmarks/favorites/post/generate-parameters.js.map +1 -0
  48. package/dist/esm/bookmarks/favorites/post/index.js +5 -0
  49. package/dist/esm/bookmarks/favorites/post/index.js.map +1 -0
  50. package/dist/esm/bookmarks/favorites/post/types.js +2 -0
  51. package/dist/esm/bookmarks/favorites/post/types.js.map +1 -0
  52. package/dist/esm/bookmarks/get/client.js +4 -0
  53. package/dist/esm/bookmarks/get/client.js.map +1 -0
  54. package/dist/esm/bookmarks/get/generate-endpoint.js +17 -0
  55. package/dist/esm/bookmarks/get/generate-endpoint.js.map +1 -0
  56. package/dist/esm/bookmarks/get/generate-parameters.js +6 -0
  57. package/dist/esm/bookmarks/get/generate-parameters.js.map +1 -0
  58. package/dist/esm/bookmarks/get/index.js +5 -0
  59. package/dist/esm/bookmarks/get/index.js.map +1 -0
  60. package/dist/esm/bookmarks/get/types.js +2 -0
  61. package/dist/esm/bookmarks/get/types.js.map +1 -0
  62. package/dist/esm/bookmarks/getAll/client.js +4 -0
  63. package/dist/esm/bookmarks/getAll/client.js.map +1 -0
  64. package/dist/esm/bookmarks/getAll/generate-endpoint.js +11 -0
  65. package/dist/esm/bookmarks/getAll/generate-endpoint.js.map +1 -0
  66. package/dist/esm/bookmarks/getAll/generate-parameters.js +6 -0
  67. package/dist/esm/bookmarks/getAll/generate-parameters.js.map +1 -0
  68. package/dist/esm/bookmarks/getAll/index.js +5 -0
  69. package/dist/esm/bookmarks/getAll/index.js.map +1 -0
  70. package/dist/esm/bookmarks/getAll/types.js +2 -0
  71. package/dist/esm/bookmarks/getAll/types.js.map +1 -0
  72. package/dist/esm/bookmarks/index.js +4 -0
  73. package/dist/esm/bookmarks/index.js.map +1 -0
  74. package/dist/esm/bookmarks/patch/client.js +4 -0
  75. package/dist/esm/bookmarks/patch/client.js.map +1 -0
  76. package/dist/esm/bookmarks/patch/generate-endpoint.js +11 -0
  77. package/dist/esm/bookmarks/patch/generate-endpoint.js.map +1 -0
  78. package/dist/esm/bookmarks/patch/generate-parameters.js +9 -0
  79. package/dist/esm/bookmarks/patch/generate-parameters.js.map +1 -0
  80. package/dist/esm/bookmarks/patch/index.js +5 -0
  81. package/dist/esm/bookmarks/patch/index.js.map +1 -0
  82. package/dist/esm/bookmarks/patch/types.js +2 -0
  83. package/dist/esm/bookmarks/patch/types.js.map +1 -0
  84. package/dist/esm/bookmarks/post/client.js +4 -0
  85. package/dist/esm/bookmarks/post/client.js.map +1 -0
  86. package/dist/esm/bookmarks/post/generate-endpoint.js +11 -0
  87. package/dist/esm/bookmarks/post/generate-endpoint.js.map +1 -0
  88. package/dist/esm/bookmarks/post/generate-parameters.js +9 -0
  89. package/dist/esm/bookmarks/post/generate-parameters.js.map +1 -0
  90. package/dist/esm/bookmarks/post/index.js +5 -0
  91. package/dist/esm/bookmarks/post/index.js.map +1 -0
  92. package/dist/esm/bookmarks/post/types.js +2 -0
  93. package/dist/esm/bookmarks/post/types.js.map +1 -0
  94. package/dist/esm/bookmarks/types.js +2 -0
  95. package/dist/esm/bookmarks/types.js.map +1 -0
  96. package/dist/esm/configurator.js +3 -0
  97. package/dist/esm/configurator.js.map +1 -0
  98. package/dist/esm/context/api-models.js +2 -0
  99. package/dist/esm/context/api-models.js.map +1 -0
  100. package/dist/esm/context/client.js +27 -0
  101. package/dist/esm/context/client.js.map +1 -0
  102. package/dist/esm/context/get/client.js +4 -0
  103. package/dist/esm/context/get/client.js.map +1 -0
  104. package/dist/esm/context/get/generate-endpoint.js +18 -0
  105. package/dist/esm/context/get/generate-endpoint.js.map +1 -0
  106. package/dist/esm/context/get/generate-parameters.js +7 -0
  107. package/dist/esm/context/get/generate-parameters.js.map +1 -0
  108. package/dist/esm/context/get/index.js +6 -0
  109. package/dist/esm/context/get/index.js.map +1 -0
  110. package/dist/esm/context/get/types.js +2 -0
  111. package/dist/esm/context/get/types.js.map +1 -0
  112. package/dist/esm/context/index.js +5 -0
  113. package/dist/esm/context/index.js.map +1 -0
  114. package/dist/esm/context/query/client.js +4 -0
  115. package/dist/esm/context/query/client.js.map +1 -0
  116. package/dist/esm/context/query/generate-endpoint.js +49 -0
  117. package/dist/esm/context/query/generate-endpoint.js.map +1 -0
  118. package/dist/esm/context/query/generate-parameters.js +7 -0
  119. package/dist/esm/context/query/generate-parameters.js.map +1 -0
  120. package/dist/esm/context/query/index.js +6 -0
  121. package/dist/esm/context/query/index.js.map +1 -0
  122. package/dist/esm/context/query/types.js +2 -0
  123. package/dist/esm/context/query/types.js.map +1 -0
  124. package/dist/esm/context/related/client.js +4 -0
  125. package/dist/esm/context/related/client.js.map +1 -0
  126. package/dist/esm/context/related/generate-endpoint.js +46 -0
  127. package/dist/esm/context/related/generate-endpoint.js.map +1 -0
  128. package/dist/esm/context/related/generate-parameters.js +7 -0
  129. package/dist/esm/context/related/generate-parameters.js.map +1 -0
  130. package/dist/esm/context/related/index.js +6 -0
  131. package/dist/esm/context/related/index.js.map +1 -0
  132. package/dist/esm/context/related/types.js +2 -0
  133. package/dist/esm/context/related/types.js.map +1 -0
  134. package/dist/esm/context/static.js +6 -0
  135. package/dist/esm/context/static.js.map +1 -0
  136. package/dist/esm/context/types.js +2 -0
  137. package/dist/esm/context/types.js.map +1 -0
  138. package/dist/esm/errors.js +7 -0
  139. package/dist/esm/errors.js.map +1 -0
  140. package/dist/esm/index.js +5 -0
  141. package/dist/esm/index.js.map +1 -0
  142. package/dist/esm/module.js +51 -0
  143. package/dist/esm/module.js.map +1 -0
  144. package/dist/esm/notification/api-models.js +2 -0
  145. package/dist/esm/notification/api-models.js.map +1 -0
  146. package/dist/esm/notification/client.js +43 -0
  147. package/dist/esm/notification/client.js.map +1 -0
  148. package/dist/esm/notification/index.js +5 -0
  149. package/dist/esm/notification/index.js.map +1 -0
  150. package/dist/esm/notification/notification/delete/client.js +4 -0
  151. package/dist/esm/notification/notification/delete/client.js.map +1 -0
  152. package/dist/esm/notification/notification/delete/generate-endpoint.js +18 -0
  153. package/dist/esm/notification/notification/delete/generate-endpoint.js.map +1 -0
  154. package/dist/esm/notification/notification/delete/generate-parameters.js +10 -0
  155. package/dist/esm/notification/notification/delete/generate-parameters.js.map +1 -0
  156. package/dist/esm/notification/notification/delete/index.js +6 -0
  157. package/dist/esm/notification/notification/delete/index.js.map +1 -0
  158. package/dist/esm/notification/notification/delete/types.js +2 -0
  159. package/dist/esm/notification/notification/delete/types.js.map +1 -0
  160. package/dist/esm/notification/notification/get/client.js +4 -0
  161. package/dist/esm/notification/notification/get/client.js.map +1 -0
  162. package/dist/esm/notification/notification/get/generate-endpoint.js +18 -0
  163. package/dist/esm/notification/notification/get/generate-endpoint.js.map +1 -0
  164. package/dist/esm/notification/notification/get/generate-parameters.js +7 -0
  165. package/dist/esm/notification/notification/get/generate-parameters.js.map +1 -0
  166. package/dist/esm/notification/notification/get/index.js +6 -0
  167. package/dist/esm/notification/notification/get/index.js.map +1 -0
  168. package/dist/esm/notification/notification/get/types.js +2 -0
  169. package/dist/esm/notification/notification/get/types.js.map +1 -0
  170. package/dist/esm/notification/notification/getAll/client.js +4 -0
  171. package/dist/esm/notification/notification/getAll/client.js.map +1 -0
  172. package/dist/esm/notification/notification/getAll/generate-endpoint.js +18 -0
  173. package/dist/esm/notification/notification/getAll/generate-endpoint.js.map +1 -0
  174. package/dist/esm/notification/notification/getAll/generate-parameters.js +7 -0
  175. package/dist/esm/notification/notification/getAll/generate-parameters.js.map +1 -0
  176. package/dist/esm/notification/notification/getAll/index.js +6 -0
  177. package/dist/esm/notification/notification/getAll/index.js.map +1 -0
  178. package/dist/esm/notification/notification/getAll/types.js +2 -0
  179. package/dist/esm/notification/notification/getAll/types.js.map +1 -0
  180. package/dist/esm/notification/notification/index.js +6 -0
  181. package/dist/esm/notification/notification/index.js.map +1 -0
  182. package/dist/esm/notification/notification/patch/client.js +4 -0
  183. package/dist/esm/notification/notification/patch/client.js.map +1 -0
  184. package/dist/esm/notification/notification/patch/generate-endpoint.js +18 -0
  185. package/dist/esm/notification/notification/patch/generate-endpoint.js.map +1 -0
  186. package/dist/esm/notification/notification/patch/generate-parameters.js +10 -0
  187. package/dist/esm/notification/notification/patch/generate-parameters.js.map +1 -0
  188. package/dist/esm/notification/notification/patch/index.js +6 -0
  189. package/dist/esm/notification/notification/patch/index.js.map +1 -0
  190. package/dist/esm/notification/notification/patch/types.js +2 -0
  191. package/dist/esm/notification/notification/patch/types.js.map +1 -0
  192. package/dist/esm/notification/notification/post/client.js +4 -0
  193. package/dist/esm/notification/notification/post/client.js.map +1 -0
  194. package/dist/esm/notification/notification/post/generate-endpoint.js +18 -0
  195. package/dist/esm/notification/notification/post/generate-endpoint.js.map +1 -0
  196. package/dist/esm/notification/notification/post/generate-parameters.js +10 -0
  197. package/dist/esm/notification/notification/post/generate-parameters.js.map +1 -0
  198. package/dist/esm/notification/notification/post/index.js +6 -0
  199. package/dist/esm/notification/notification/post/index.js.map +1 -0
  200. package/dist/esm/notification/notification/post/types.js +2 -0
  201. package/dist/esm/notification/notification/post/types.js.map +1 -0
  202. package/dist/esm/notification/settings/get/client.js +4 -0
  203. package/dist/esm/notification/settings/get/client.js.map +1 -0
  204. package/dist/esm/notification/settings/get/generate-endpoint.js +18 -0
  205. package/dist/esm/notification/settings/get/generate-endpoint.js.map +1 -0
  206. package/dist/esm/notification/settings/get/generate-parameters.js +7 -0
  207. package/dist/esm/notification/settings/get/generate-parameters.js.map +1 -0
  208. package/dist/esm/notification/settings/get/index.js +6 -0
  209. package/dist/esm/notification/settings/get/index.js.map +1 -0
  210. package/dist/esm/notification/settings/get/types.js +2 -0
  211. package/dist/esm/notification/settings/get/types.js.map +1 -0
  212. package/dist/esm/notification/settings/put/client.js +4 -0
  213. package/dist/esm/notification/settings/put/client.js.map +1 -0
  214. package/dist/esm/notification/settings/put/generate-endpoint.js +18 -0
  215. package/dist/esm/notification/settings/put/generate-endpoint.js.map +1 -0
  216. package/dist/esm/notification/settings/put/generate-parameters.js +10 -0
  217. package/dist/esm/notification/settings/put/generate-parameters.js.map +1 -0
  218. package/dist/esm/notification/settings/put/index.js +6 -0
  219. package/dist/esm/notification/settings/put/index.js.map +1 -0
  220. package/dist/esm/notification/settings/put/types.js +2 -0
  221. package/dist/esm/notification/settings/put/types.js.map +1 -0
  222. package/dist/esm/notification/static.js +6 -0
  223. package/dist/esm/notification/static.js.map +1 -0
  224. package/dist/esm/notification/types.js +2 -0
  225. package/dist/esm/notification/types.js.map +1 -0
  226. package/dist/esm/people/api-models.js +2 -0
  227. package/dist/esm/people/api-models.js.map +1 -0
  228. package/dist/esm/people/api-models.v2.js +2 -0
  229. package/dist/esm/people/api-models.v2.js.map +1 -0
  230. package/dist/esm/people/api-models.v4.js +2 -0
  231. package/dist/esm/people/api-models.v4.js.map +1 -0
  232. package/dist/esm/people/client.js +26 -0
  233. package/dist/esm/people/client.js.map +1 -0
  234. package/dist/esm/people/index.js +4 -0
  235. package/dist/esm/people/index.js.map +1 -0
  236. package/dist/esm/people/person-details/client.js +4 -0
  237. package/dist/esm/people/person-details/client.js.map +1 -0
  238. package/dist/esm/people/person-details/generate-endpoint.js +21 -0
  239. package/dist/esm/people/person-details/generate-endpoint.js.map +1 -0
  240. package/dist/esm/people/person-details/generate-parameters.js +7 -0
  241. package/dist/esm/people/person-details/generate-parameters.js.map +1 -0
  242. package/dist/esm/people/person-details/index.js +5 -0
  243. package/dist/esm/people/person-details/index.js.map +1 -0
  244. package/dist/esm/people/person-details/types.js +2 -0
  245. package/dist/esm/people/person-details/types.js.map +1 -0
  246. package/dist/esm/people/person-photo/client.js +4 -0
  247. package/dist/esm/people/person-photo/client.js.map +1 -0
  248. package/dist/esm/people/person-photo/generate-endpoint.js +18 -0
  249. package/dist/esm/people/person-photo/generate-endpoint.js.map +1 -0
  250. package/dist/esm/people/person-photo/generate-parameters.js +7 -0
  251. package/dist/esm/people/person-photo/generate-parameters.js.map +1 -0
  252. package/dist/esm/people/person-photo/index.js +5 -0
  253. package/dist/esm/people/person-photo/index.js.map +1 -0
  254. package/dist/esm/people/person-photo/types.js +2 -0
  255. package/dist/esm/people/person-photo/types.js.map +1 -0
  256. package/dist/esm/people/query/client.js +4 -0
  257. package/dist/esm/people/query/client.js.map +1 -0
  258. package/dist/esm/people/query/generate-endpoint.js +19 -0
  259. package/dist/esm/people/query/generate-endpoint.js.map +1 -0
  260. package/dist/esm/people/query/generate-parameters.js +7 -0
  261. package/dist/esm/people/query/generate-parameters.js.map +1 -0
  262. package/dist/esm/people/query/index.js +5 -0
  263. package/dist/esm/people/query/index.js.map +1 -0
  264. package/dist/esm/people/query/types.js +2 -0
  265. package/dist/esm/people/query/types.js.map +1 -0
  266. package/dist/esm/people/static.js +6 -0
  267. package/dist/esm/people/static.js.map +1 -0
  268. package/dist/esm/provider.js +70 -0
  269. package/dist/esm/provider.js.map +1 -0
  270. package/dist/esm/types.js +2 -0
  271. package/dist/esm/types.js.map +1 -0
  272. package/dist/esm/version.js +2 -0
  273. package/dist/esm/version.js.map +1 -0
  274. package/dist/tsconfig.tsbuildinfo +1 -0
  275. package/dist/types/bookmarks/api-models.d.ts +42 -0
  276. package/dist/types/bookmarks/client.d.ts +24 -0
  277. package/dist/types/bookmarks/delete/client.d.ts +5 -0
  278. package/dist/types/bookmarks/delete/generate-endpoint.d.ts +2 -0
  279. package/dist/types/bookmarks/delete/generate-parameters.d.ts +4 -0
  280. package/dist/types/bookmarks/delete/index.d.ts +4 -0
  281. package/dist/types/bookmarks/delete/types-v1.d.ts +3 -0
  282. package/dist/types/bookmarks/delete/types.d.ts +15 -0
  283. package/dist/types/bookmarks/favorites/delete/client.d.ts +5 -0
  284. package/dist/types/bookmarks/favorites/delete/generate-endpoint.d.ts +2 -0
  285. package/dist/types/bookmarks/favorites/delete/generate-parameters.d.ts +4 -0
  286. package/dist/types/bookmarks/favorites/delete/index.d.ts +4 -0
  287. package/dist/types/bookmarks/favorites/delete/types-v1.d.ts +3 -0
  288. package/dist/types/bookmarks/favorites/delete/types.d.ts +15 -0
  289. package/dist/types/bookmarks/favorites/head/client.d.ts +5 -0
  290. package/dist/types/bookmarks/favorites/head/generate-endpoint.d.ts +2 -0
  291. package/dist/types/bookmarks/favorites/head/generate-parameters.d.ts +4 -0
  292. package/dist/types/bookmarks/favorites/head/index.d.ts +4 -0
  293. package/dist/types/bookmarks/favorites/head/types.d.ts +17 -0
  294. package/dist/types/bookmarks/favorites/post/client.d.ts +5 -0
  295. package/dist/types/bookmarks/favorites/post/generate-endpoint.d.ts +2 -0
  296. package/dist/types/bookmarks/favorites/post/generate-parameters.d.ts +4 -0
  297. package/dist/types/bookmarks/favorites/post/index.d.ts +4 -0
  298. package/dist/types/bookmarks/favorites/post/types.d.ts +17 -0
  299. package/dist/types/bookmarks/get/client.d.ts +5 -0
  300. package/dist/types/bookmarks/get/generate-endpoint.d.ts +2 -0
  301. package/dist/types/bookmarks/get/generate-parameters.d.ts +4 -0
  302. package/dist/types/bookmarks/get/index.d.ts +4 -0
  303. package/dist/types/bookmarks/get/types.d.ts +19 -0
  304. package/dist/types/bookmarks/getAll/client.d.ts +5 -0
  305. package/dist/types/bookmarks/getAll/generate-endpoint.d.ts +1 -0
  306. package/dist/types/bookmarks/getAll/generate-parameters.d.ts +3 -0
  307. package/dist/types/bookmarks/getAll/index.d.ts +4 -0
  308. package/dist/types/bookmarks/getAll/types.d.ts +10 -0
  309. package/dist/types/bookmarks/index.d.ts +3 -0
  310. package/dist/types/bookmarks/patch/client.d.ts +5 -0
  311. package/dist/types/bookmarks/patch/generate-endpoint.d.ts +2 -0
  312. package/dist/types/bookmarks/patch/generate-parameters.d.ts +4 -0
  313. package/dist/types/bookmarks/patch/index.d.ts +4 -0
  314. package/dist/types/bookmarks/patch/types.d.ts +19 -0
  315. package/dist/types/bookmarks/post/client.d.ts +5 -0
  316. package/dist/types/bookmarks/post/generate-endpoint.d.ts +2 -0
  317. package/dist/types/bookmarks/post/generate-parameters.d.ts +4 -0
  318. package/dist/types/bookmarks/post/index.d.ts +4 -0
  319. package/dist/types/bookmarks/post/types.d.ts +28 -0
  320. package/dist/types/bookmarks/types.d.ts +1 -0
  321. package/dist/types/configurator.d.ts +6 -0
  322. package/dist/types/context/api-models.d.ts +31 -0
  323. package/dist/types/context/client.d.ts +16 -0
  324. package/dist/types/context/get/client.d.ts +4 -0
  325. package/dist/types/context/get/generate-endpoint.d.ts +2 -0
  326. package/dist/types/context/get/generate-parameters.d.ts +4 -0
  327. package/dist/types/context/get/index.d.ts +5 -0
  328. package/dist/types/context/get/types.d.ts +19 -0
  329. package/dist/types/context/index.d.ts +4 -0
  330. package/dist/types/context/query/client.d.ts +4 -0
  331. package/dist/types/context/query/generate-endpoint.d.ts +3 -0
  332. package/dist/types/context/query/generate-parameters.d.ts +4 -0
  333. package/dist/types/context/query/index.d.ts +5 -0
  334. package/dist/types/context/query/types.d.ts +32 -0
  335. package/dist/types/context/related/client.d.ts +4 -0
  336. package/dist/types/context/related/generate-endpoint.d.ts +3 -0
  337. package/dist/types/context/related/generate-parameters.d.ts +4 -0
  338. package/dist/types/context/related/index.d.ts +5 -0
  339. package/dist/types/context/related/types.d.ts +33 -0
  340. package/dist/types/context/static.d.ts +4 -0
  341. package/dist/types/context/types.d.ts +1 -0
  342. package/dist/types/errors.d.ts +4 -0
  343. package/dist/types/index.d.ts +5 -0
  344. package/dist/types/module.d.ts +20 -0
  345. package/dist/types/notification/api-models.d.ts +54 -0
  346. package/dist/types/notification/client.d.ts +24 -0
  347. package/dist/types/notification/index.d.ts +4 -0
  348. package/dist/types/notification/notification/delete/client.d.ts +5 -0
  349. package/dist/types/notification/notification/delete/generate-endpoint.d.ts +2 -0
  350. package/dist/types/notification/notification/delete/generate-parameters.d.ts +5 -0
  351. package/dist/types/notification/notification/delete/index.d.ts +5 -0
  352. package/dist/types/notification/notification/delete/types.d.ts +21 -0
  353. package/dist/types/notification/notification/get/client.d.ts +5 -0
  354. package/dist/types/notification/notification/get/generate-endpoint.d.ts +2 -0
  355. package/dist/types/notification/notification/get/generate-parameters.d.ts +5 -0
  356. package/dist/types/notification/notification/get/index.d.ts +5 -0
  357. package/dist/types/notification/notification/get/types.d.ts +21 -0
  358. package/dist/types/notification/notification/getAll/client.d.ts +5 -0
  359. package/dist/types/notification/notification/getAll/generate-endpoint.d.ts +2 -0
  360. package/dist/types/notification/notification/getAll/generate-parameters.d.ts +5 -0
  361. package/dist/types/notification/notification/getAll/index.d.ts +5 -0
  362. package/dist/types/notification/notification/getAll/types.d.ts +21 -0
  363. package/dist/types/notification/notification/index.d.ts +5 -0
  364. package/dist/types/notification/notification/patch/client.d.ts +5 -0
  365. package/dist/types/notification/notification/patch/generate-endpoint.d.ts +2 -0
  366. package/dist/types/notification/notification/patch/generate-parameters.d.ts +5 -0
  367. package/dist/types/notification/notification/patch/index.d.ts +5 -0
  368. package/dist/types/notification/notification/patch/types.d.ts +22 -0
  369. package/dist/types/notification/notification/post/client.d.ts +5 -0
  370. package/dist/types/notification/notification/post/generate-endpoint.d.ts +2 -0
  371. package/dist/types/notification/notification/post/generate-parameters.d.ts +5 -0
  372. package/dist/types/notification/notification/post/index.d.ts +5 -0
  373. package/dist/types/notification/notification/post/types.d.ts +33 -0
  374. package/dist/types/notification/settings/get/client.d.ts +5 -0
  375. package/dist/types/notification/settings/get/generate-endpoint.d.ts +2 -0
  376. package/dist/types/notification/settings/get/generate-parameters.d.ts +5 -0
  377. package/dist/types/notification/settings/get/index.d.ts +5 -0
  378. package/dist/types/notification/settings/get/types.d.ts +21 -0
  379. package/dist/types/notification/settings/put/client.d.ts +5 -0
  380. package/dist/types/notification/settings/put/generate-endpoint.d.ts +2 -0
  381. package/dist/types/notification/settings/put/generate-parameters.d.ts +5 -0
  382. package/dist/types/notification/settings/put/index.d.ts +5 -0
  383. package/dist/types/notification/settings/put/types.d.ts +17 -0
  384. package/dist/types/notification/static.d.ts +4 -0
  385. package/dist/types/notification/types.d.ts +1 -0
  386. package/dist/types/people/api-models.d.ts +34 -0
  387. package/dist/types/people/api-models.v2.d.ts +25 -0
  388. package/dist/types/people/api-models.v4.d.ts +81 -0
  389. package/dist/types/people/client.d.ts +15 -0
  390. package/dist/types/people/index.d.ts +3 -0
  391. package/dist/types/people/person-details/client.d.ts +5 -0
  392. package/dist/types/people/person-details/generate-endpoint.d.ts +2 -0
  393. package/dist/types/people/person-details/generate-parameters.d.ts +5 -0
  394. package/dist/types/people/person-details/index.d.ts +4 -0
  395. package/dist/types/people/person-details/types.d.ts +30 -0
  396. package/dist/types/people/person-photo/client.d.ts +5 -0
  397. package/dist/types/people/person-photo/generate-endpoint.d.ts +2 -0
  398. package/dist/types/people/person-photo/generate-parameters.d.ts +5 -0
  399. package/dist/types/people/person-photo/index.d.ts +4 -0
  400. package/dist/types/people/person-photo/types.d.ts +16 -0
  401. package/dist/types/people/query/client.d.ts +5 -0
  402. package/dist/types/people/query/generate-endpoint.d.ts +2 -0
  403. package/dist/types/people/query/generate-parameters.d.ts +5 -0
  404. package/dist/types/people/query/index.d.ts +4 -0
  405. package/dist/types/people/query/types.d.ts +17 -0
  406. package/dist/types/people/static.d.ts +4 -0
  407. package/dist/types/provider.d.ts +37 -0
  408. package/dist/types/types.d.ts +17 -0
  409. package/dist/types/version.d.ts +1 -0
  410. package/package.json +85 -0
  411. package/src/bookmarks/api-models.ts +46 -0
  412. package/src/bookmarks/client.ts +132 -0
  413. package/src/bookmarks/delete/client.ts +35 -0
  414. package/src/bookmarks/delete/generate-endpoint.ts +24 -0
  415. package/src/bookmarks/delete/generate-parameters.ts +25 -0
  416. package/src/bookmarks/delete/index.ts +6 -0
  417. package/src/bookmarks/delete/types-v1.ts +2 -0
  418. package/src/bookmarks/delete/types.ts +35 -0
  419. package/src/bookmarks/favorites/delete/client.ts +35 -0
  420. package/src/bookmarks/favorites/delete/generate-endpoint.ts +19 -0
  421. package/src/bookmarks/favorites/delete/generate-parameters.ts +25 -0
  422. package/src/bookmarks/favorites/delete/index.ts +6 -0
  423. package/src/bookmarks/favorites/delete/types-v1.ts +2 -0
  424. package/src/bookmarks/favorites/delete/types.ts +33 -0
  425. package/src/bookmarks/favorites/head/client.ts +35 -0
  426. package/src/bookmarks/favorites/head/generate-endpoint.ts +19 -0
  427. package/src/bookmarks/favorites/head/generate-parameters.ts +28 -0
  428. package/src/bookmarks/favorites/head/index.ts +6 -0
  429. package/src/bookmarks/favorites/head/types.ts +35 -0
  430. package/src/bookmarks/favorites/post/client.ts +35 -0
  431. package/src/bookmarks/favorites/post/generate-endpoint.ts +18 -0
  432. package/src/bookmarks/favorites/post/generate-parameters.ts +28 -0
  433. package/src/bookmarks/favorites/post/index.ts +6 -0
  434. package/src/bookmarks/favorites/post/types.ts +35 -0
  435. package/src/bookmarks/get/client.ts +30 -0
  436. package/src/bookmarks/get/generate-endpoint.ts +24 -0
  437. package/src/bookmarks/get/generate-parameters.ts +18 -0
  438. package/src/bookmarks/get/index.ts +6 -0
  439. package/src/bookmarks/get/types.ts +39 -0
  440. package/src/bookmarks/getAll/client.ts +30 -0
  441. package/src/bookmarks/getAll/generate-endpoint.ts +15 -0
  442. package/src/bookmarks/getAll/generate-parameters.ts +18 -0
  443. package/src/bookmarks/getAll/index.ts +6 -0
  444. package/src/bookmarks/getAll/types.ts +21 -0
  445. package/src/bookmarks/index.ts +4 -0
  446. package/src/bookmarks/patch/client.ts +30 -0
  447. package/src/bookmarks/patch/generate-endpoint.ts +18 -0
  448. package/src/bookmarks/patch/generate-parameters.ts +28 -0
  449. package/src/bookmarks/patch/index.ts +6 -0
  450. package/src/bookmarks/patch/types.ts +45 -0
  451. package/src/bookmarks/post/client.ts +30 -0
  452. package/src/bookmarks/post/generate-endpoint.ts +18 -0
  453. package/src/bookmarks/post/generate-parameters.ts +28 -0
  454. package/src/bookmarks/post/index.ts +6 -0
  455. package/src/bookmarks/post/types.ts +58 -0
  456. package/src/bookmarks/types.ts +1 -0
  457. package/src/configurator.ts +8 -0
  458. package/src/context/api-models.ts +42 -0
  459. package/src/context/client.ts +76 -0
  460. package/src/context/get/client.ts +33 -0
  461. package/src/context/get/generate-endpoint.ts +25 -0
  462. package/src/context/get/generate-parameters.ts +23 -0
  463. package/src/context/get/index.ts +8 -0
  464. package/src/context/get/types.ts +45 -0
  465. package/src/context/index.ts +6 -0
  466. package/src/context/query/client.ts +35 -0
  467. package/src/context/query/generate-endpoint.ts +67 -0
  468. package/src/context/query/generate-parameters.ts +23 -0
  469. package/src/context/query/index.ts +8 -0
  470. package/src/context/query/types.ts +56 -0
  471. package/src/context/related/client.ts +35 -0
  472. package/src/context/related/generate-endpoint.ts +63 -0
  473. package/src/context/related/generate-parameters.ts +23 -0
  474. package/src/context/related/index.ts +8 -0
  475. package/src/context/related/types.ts +61 -0
  476. package/src/context/static.ts +6 -0
  477. package/src/context/types.ts +1 -0
  478. package/src/errors.ts +8 -0
  479. package/src/index.ts +6 -0
  480. package/src/module.ts +104 -0
  481. package/src/notification/api-models.ts +70 -0
  482. package/src/notification/client.ts +170 -0
  483. package/src/notification/index.ts +6 -0
  484. package/src/notification/notification/delete/client.ts +37 -0
  485. package/src/notification/notification/delete/generate-endpoint.ts +24 -0
  486. package/src/notification/notification/delete/generate-parameters.ts +32 -0
  487. package/src/notification/notification/delete/index.ts +8 -0
  488. package/src/notification/notification/delete/types.ts +44 -0
  489. package/src/notification/notification/get/client.ts +33 -0
  490. package/src/notification/notification/get/generate-endpoint.ts +25 -0
  491. package/src/notification/notification/get/generate-parameters.ts +22 -0
  492. package/src/notification/notification/get/index.ts +8 -0
  493. package/src/notification/notification/get/types.ts +44 -0
  494. package/src/notification/notification/getAll/client.ts +37 -0
  495. package/src/notification/notification/getAll/generate-endpoint.ts +25 -0
  496. package/src/notification/notification/getAll/generate-parameters.ts +22 -0
  497. package/src/notification/notification/getAll/index.ts +8 -0
  498. package/src/notification/notification/getAll/types.ts +44 -0
  499. package/src/notification/notification/index.ts +5 -0
  500. package/src/notification/notification/patch/client.ts +37 -0
  501. package/src/notification/notification/patch/generate-endpoint.ts +24 -0
  502. package/src/notification/notification/patch/generate-parameters.ts +32 -0
  503. package/src/notification/notification/patch/index.ts +8 -0
  504. package/src/notification/notification/patch/types.ts +45 -0
  505. package/src/notification/notification/post/client.ts +37 -0
  506. package/src/notification/notification/post/generate-endpoint.ts +25 -0
  507. package/src/notification/notification/post/generate-parameters.ts +32 -0
  508. package/src/notification/notification/post/index.ts +8 -0
  509. package/src/notification/notification/post/types.ts +57 -0
  510. package/src/notification/settings/get/client.ts +37 -0
  511. package/src/notification/settings/get/generate-endpoint.ts +25 -0
  512. package/src/notification/settings/get/generate-parameters.ts +22 -0
  513. package/src/notification/settings/get/index.ts +8 -0
  514. package/src/notification/settings/get/types.ts +44 -0
  515. package/src/notification/settings/put/client.ts +37 -0
  516. package/src/notification/settings/put/generate-endpoint.ts +25 -0
  517. package/src/notification/settings/put/generate-parameters.ts +34 -0
  518. package/src/notification/settings/put/index.ts +8 -0
  519. package/src/notification/settings/put/types.ts +38 -0
  520. package/src/notification/static.ts +6 -0
  521. package/src/notification/types.ts +1 -0
  522. package/src/people/api-models.ts +52 -0
  523. package/src/people/api-models.v2.ts +31 -0
  524. package/src/people/api-models.v4.ts +100 -0
  525. package/src/people/client.ts +109 -0
  526. package/src/people/index.ts +5 -0
  527. package/src/people/person-details/client.ts +33 -0
  528. package/src/people/person-details/generate-endpoint.ts +28 -0
  529. package/src/people/person-details/generate-parameters.ts +22 -0
  530. package/src/people/person-details/index.ts +6 -0
  531. package/src/people/person-details/types.ts +54 -0
  532. package/src/people/person-photo/client.ts +33 -0
  533. package/src/people/person-photo/generate-endpoint.ts +25 -0
  534. package/src/people/person-photo/generate-parameters.ts +22 -0
  535. package/src/people/person-photo/index.ts +6 -0
  536. package/src/people/person-photo/types.ts +24 -0
  537. package/src/people/query/client.ts +33 -0
  538. package/src/people/query/generate-endpoint.ts +26 -0
  539. package/src/people/query/generate-parameters.ts +22 -0
  540. package/src/people/query/index.ts +6 -0
  541. package/src/people/query/types.ts +28 -0
  542. package/src/people/static.ts +4 -0
  543. package/src/provider.ts +115 -0
  544. package/src/types.ts +46 -0
  545. package/src/version.ts +2 -0
  546. package/tsconfig.json +38 -0
@@ -0,0 +1,18 @@
1
+ import { UnsupportedApiVersion } from '../../../errors';
2
+ import { ApiVersion } from '../..';
3
+ export const generateEndpoint = (version, args) => {
4
+ var _a;
5
+ const apiVersion = (_a = ApiVersion[version]) !== null && _a !== void 0 ? _a : version;
6
+ switch (apiVersion) {
7
+ case ApiVersion.v2:
8
+ throw new UnsupportedApiVersion(version);
9
+ case ApiVersion.v1:
10
+ default: {
11
+ const { id } = args;
12
+ const params = new URLSearchParams();
13
+ params.append('api-version', apiVersion);
14
+ return `/notification/${id}/?${String(params)}`;
15
+ }
16
+ }
17
+ };
18
+ //# sourceMappingURL=generate-endpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-endpoint.js","sourceRoot":"","sources":["../../../../../src/notification/notification/get/generate-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAOnC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,OAAiB,EACjB,IAAmC,EACrC,EAAE;;IACA,MAAM,UAAU,GAAG,MAAA,UAAU,CAAC,OAAkC,CAAC,mCAAI,OAAO,CAAC;IAC7E,QAAQ,UAAU,EAAE;QAChB,KAAK,UAAU,CAAC,EAAE;YACd,MAAM,IAAI,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAC7C,KAAK,UAAU,CAAC,EAAE,CAAC;QACnB,OAAO,CAAC,CAAC;YACL,MAAM,EAAE,EAAE,EAAE,GAAG,IAAsB,CAAC;YACtC,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;YACzC,OAAO,iBAAiB,EAAE,KAAK,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;SACnD;KACJ;AACL,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { generateEndpoint } from './generate-endpoint';
2
+ export const generateParameters = (version, args, init) => {
3
+ const path = generateEndpoint(version, args);
4
+ return [path, init];
5
+ };
6
+ export default generateParameters;
7
+ //# sourceMappingURL=generate-parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-parameters.js","sourceRoot":"","sources":["../../../../../src/notification/notification/get/generate-parameters.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAK9B,OAAiB,EACjB,IAAmC,EACnC,IAA0C,EACN,EAAE;IACtC,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC7C,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACxB,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { ApiVersion } from '../..';
2
+ export { generateEndpoint } from './generate-endpoint';
3
+ export { generateParameters } from './generate-parameters';
4
+ export * from './types';
5
+ export { getNotificationById, default } from './client';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/notification/notification/get/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { ApiVersion } from '../../static';
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/notification/notification/get/types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { generateParameters } from './generate-parameters';
2
+ export const getNotifications = (client, version, method = 'json') => (args, init) => client[method](...generateParameters(version, args, init));
3
+ export default getNotifications;
4
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../src/notification/notification/getAll/client.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAc3D,MAAM,CAAC,MAAM,gBAAgB,GACzB,CAKI,MAAe,EACf,OAAiB,EACjB,SAAkB,MAAiB,EACrC,EAAE,CACJ,CACI,IAAoC,EACpC,IAAoC,EACQ,EAAE,CAC9C,MAAM,CAAC,MAAM,CAAC,CACV,GAAG,kBAAkB,CAAuB,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CACnB,CAAC;AAE1D,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { UnsupportedApiVersion } from '../../../errors';
2
+ import { ApiVersion } from '../..';
3
+ export const generateEndpoint = (version, args) => {
4
+ var _a;
5
+ const apiVersion = (_a = ApiVersion[version]) !== null && _a !== void 0 ? _a : version;
6
+ switch (apiVersion) {
7
+ case ApiVersion.v2:
8
+ throw new UnsupportedApiVersion(version);
9
+ case ApiVersion.v1:
10
+ default: {
11
+ const { userId } = args;
12
+ const params = new URLSearchParams();
13
+ params.append('api-version', apiVersion);
14
+ return `/person/${userId}/notifications/?${String(params)}`;
15
+ }
16
+ }
17
+ };
18
+ //# sourceMappingURL=generate-endpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-endpoint.js","sourceRoot":"","sources":["../../../../../src/notification/notification/getAll/generate-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAOnC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,OAAiB,EACjB,IAAoC,EACtC,EAAE;;IACA,MAAM,UAAU,GAAG,MAAA,UAAU,CAAC,OAAkC,CAAC,mCAAI,OAAO,CAAC;IAC7E,QAAQ,UAAU,EAAE;QAChB,KAAK,UAAU,CAAC,EAAE;YACd,MAAM,IAAI,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAC7C,KAAK,UAAU,CAAC,EAAE,CAAC;QACnB,OAAO,CAAC,CAAC;YACL,MAAM,EAAE,MAAM,EAAE,GAAG,IAA0B,CAAC;YAC9C,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;YACzC,OAAO,WAAW,MAAM,mBAAmB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;SAC/D;KACJ;AACL,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { generateEndpoint } from './generate-endpoint';
2
+ export const generateParameters = (version, args, init) => {
3
+ const path = generateEndpoint(version, args);
4
+ return [path, init];
5
+ };
6
+ export default generateParameters;
7
+ //# sourceMappingURL=generate-parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-parameters.js","sourceRoot":"","sources":["../../../../../src/notification/notification/getAll/generate-parameters.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAK9B,OAAiB,EACjB,IAAoC,EACpC,IAA0C,EACN,EAAE;IACtC,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC7C,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACxB,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { ApiVersion } from '../..';
2
+ export { generateEndpoint } from './generate-endpoint';
3
+ export { generateParameters } from './generate-parameters';
4
+ export * from './types';
5
+ export { getNotifications, default } from './client';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/notification/notification/getAll/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { ApiVersion } from '../../static';
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/notification/notification/getAll/types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { getNotificationById } from './get/client';
2
+ export { createNotification } from './post/client';
3
+ export { updateSeenByUser } from './patch/client';
4
+ export { getNotifications } from './getAll/client';
5
+ export { deleteNotification } from './delete/client';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/notification/notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { generateParameters } from './generate-parameters';
2
+ export const updateSeenByUser = (client, version, method = 'json') => (args, init) => client[method](...generateParameters(version, args, init));
3
+ export default updateSeenByUser;
4
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../src/notification/notification/patch/client.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAc3D,MAAM,CAAC,MAAM,gBAAgB,GACzB,CAKI,MAAe,EACf,OAAiB,EACjB,SAAkB,MAAiB,EACrC,EAAE,CACJ,CACI,IAAqC,EACrC,IAAoC,EACS,EAAE,CAC/C,MAAM,CAAC,MAAM,CAAC,CACV,GAAG,kBAAkB,CAAuB,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAClB,CAAC;AAE3D,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { UnsupportedApiVersion } from '../../../errors';
2
+ import { ApiVersion } from '../..';
3
+ export const generateEndpoint = (version, args) => {
4
+ var _a;
5
+ const apiVersion = (_a = ApiVersion[version]) !== null && _a !== void 0 ? _a : version;
6
+ switch (apiVersion) {
7
+ case ApiVersion.v2:
8
+ throw new UnsupportedApiVersion(version);
9
+ case ApiVersion.v1:
10
+ default: {
11
+ const { id } = args;
12
+ const params = new URLSearchParams();
13
+ params.append('api-version', apiVersion);
14
+ return `/notification/${id}/?${String(params)}`;
15
+ }
16
+ }
17
+ };
18
+ //# sourceMappingURL=generate-endpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-endpoint.js","sourceRoot":"","sources":["../../../../../src/notification/notification/patch/generate-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAMnC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,OAAiB,EACjB,IAAqC,EACvC,EAAE;;IACA,MAAM,UAAU,GAAG,MAAA,UAAU,CAAC,OAAkC,CAAC,mCAAI,OAAO,CAAC;IAC7E,QAAQ,UAAU,EAAE;QAChB,KAAK,UAAU,CAAC,EAAE;YACd,MAAM,IAAI,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAC7C,KAAK,UAAU,CAAC,EAAE,CAAC;QACnB,OAAO,CAAC,CAAC;YACL,MAAM,EAAE,EAAE,EAAE,GAAG,IAAsB,CAAC;YACtC,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;YACzC,OAAO,iBAAiB,EAAE,KAAK,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;SACnD;KACJ;AACL,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { generateEndpoint } from './generate-endpoint';
2
+ export const generateParameters = (version, args, init) => {
3
+ const path = generateEndpoint(version, args);
4
+ const headers = new Headers();
5
+ headers.append('content-type', 'application/json');
6
+ const requestParams = Object.assign({}, { method: 'patch', body: JSON.stringify(args), headers: headers }, init);
7
+ return [path, requestParams];
8
+ };
9
+ export default generateParameters;
10
+ //# sourceMappingURL=generate-parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-parameters.js","sourceRoot":"","sources":["../../../../../src/notification/notification/patch/generate-parameters.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAK9B,OAAiB,EACjB,IAAqC,EACrC,IAA0C,EACN,EAAE;IACtC,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAE7C,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;IAC9B,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;IAEnD,MAAM,aAAa,GAAwC,MAAM,CAAC,MAAM,CACpE,EAAE,EACF,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EACjE,IAAI,CACP,CAAC;IAEF,OAAO,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;AACjC,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { ApiVersion } from '../..';
2
+ export { generateEndpoint } from './generate-endpoint';
3
+ export { generateParameters } from './generate-parameters';
4
+ export * from './types';
5
+ export { updateSeenByUser as getNotificationById, default } from './client';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/notification/notification/patch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,gBAAgB,IAAI,mBAAmB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { ApiVersion } from '../../static';
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/notification/notification/patch/types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { generateParameters } from './generate-parameters';
2
+ export const createNotification = (client, version, method = 'json') => (args, init) => client[method](...generateParameters(version, args, init));
3
+ export default createNotification;
4
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../src/notification/notification/post/client.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAc3D,MAAM,CAAC,MAAM,kBAAkB,GAC3B,CAKI,MAAe,EACf,OAAiB,EACjB,SAAkB,MAAiB,EACrC,EAAE,CACJ,CACI,IAAoC,EACpC,IAAoC,EACQ,EAAE,CAC9C,MAAM,CAAC,MAAM,CAAC,CACV,GAAG,kBAAkB,CAAuB,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CACnB,CAAC;AAE1D,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { UnsupportedApiVersion } from '../../../errors';
2
+ import { ApiVersion } from '../..';
3
+ export const generateEndpoint = (version, args) => {
4
+ var _a;
5
+ const apiVersion = (_a = ApiVersion[version]) !== null && _a !== void 0 ? _a : version;
6
+ switch (apiVersion) {
7
+ case ApiVersion.v2:
8
+ throw new UnsupportedApiVersion(version);
9
+ case ApiVersion.v1:
10
+ default: {
11
+ const { userId } = args;
12
+ const params = new URLSearchParams();
13
+ params.append('api-version', apiVersion);
14
+ return `/person/${userId}/notifications/?${String(params)}`;
15
+ }
16
+ }
17
+ };
18
+ //# sourceMappingURL=generate-endpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-endpoint.js","sourceRoot":"","sources":["../../../../../src/notification/notification/post/generate-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAOnC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,OAAiB,EACjB,IAAoC,EACtC,EAAE;;IACA,MAAM,UAAU,GAAG,MAAA,UAAU,CAAC,OAAkC,CAAC,mCAAI,OAAO,CAAC;IAC7E,QAAQ,UAAU,EAAE;QAChB,KAAK,UAAU,CAAC,EAAE;YACd,MAAM,IAAI,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAC7C,KAAK,UAAU,CAAC,EAAE,CAAC;QACnB,OAAO,CAAC,CAAC;YACL,MAAM,EAAE,MAAM,EAAE,GAAG,IAA0B,CAAC;YAC9C,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;YACzC,OAAO,WAAW,MAAM,mBAAmB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;SAC/D;KACJ;AACL,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { generateEndpoint } from './generate-endpoint';
2
+ export const generateParameters = (version, args, init) => {
3
+ const path = generateEndpoint(version, args);
4
+ const headers = new Headers();
5
+ headers.append('content-type', 'application/json');
6
+ const requestParams = Object.assign({}, { method: 'post', body: JSON.stringify(args), headers: headers }, init);
7
+ return [path, requestParams];
8
+ };
9
+ export default generateParameters;
10
+ //# sourceMappingURL=generate-parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-parameters.js","sourceRoot":"","sources":["../../../../../src/notification/notification/post/generate-parameters.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAK9B,OAAiB,EACjB,IAAoC,EACpC,IAA0C,EACN,EAAE;IACtC,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAE7C,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;IAC9B,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;IAEnD,MAAM,aAAa,GAAwC,MAAM,CAAC,MAAM,CACpE,EAAE,EACF,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAChE,IAAI,CACP,CAAC;IAEF,OAAO,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;AACjC,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { ApiVersion } from '../..';
2
+ export { generateEndpoint } from './generate-endpoint';
3
+ export { generateParameters } from './generate-parameters';
4
+ export * from './types';
5
+ export { createNotification as getNotificationById, default } from './client';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/notification/notification/post/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,kBAAkB,IAAI,mBAAmB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { ApiVersion } from '../../static';
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/notification/notification/post/types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { generateParameters } from './generate-parameters';
2
+ export const getUserNotificationSettings = (client, version, method = 'json') => (args, init) => client[method](...generateParameters(version, args, init));
3
+ export default getUserNotificationSettings;
4
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../src/notification/settings/get/client.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAc3D,MAAM,CAAC,MAAM,2BAA2B,GACpC,CAKI,MAAe,EACf,OAAiB,EACjB,SAAkB,MAAiB,EACrC,EAAE,CACJ,CACI,IAA+C,EAC/C,IAAoC,EACoB,EAAE,CAC1D,MAAM,CAAC,MAAM,CAAC,CACV,GAAG,kBAAkB,CAAuB,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CACP,CAAC;AAEtE,eAAe,2BAA2B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { UnsupportedApiVersion } from '../../../errors';
2
+ import { ApiVersion } from '../..';
3
+ export const generateEndpoint = (version, args) => {
4
+ var _a;
5
+ const apiVersion = (_a = ApiVersion[version]) !== null && _a !== void 0 ? _a : version;
6
+ switch (apiVersion) {
7
+ case ApiVersion.v2:
8
+ throw new UnsupportedApiVersion(version);
9
+ case ApiVersion.v1:
10
+ default: {
11
+ const { userId } = args;
12
+ const params = new URLSearchParams();
13
+ params.append('api-version', apiVersion);
14
+ return `/person/${userId}/notifications/settings/?${String(params)}`;
15
+ }
16
+ }
17
+ };
18
+ //# sourceMappingURL=generate-endpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-endpoint.js","sourceRoot":"","sources":["../../../../../src/notification/settings/get/generate-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAOnC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,OAAiB,EACjB,IAA+C,EACjD,EAAE;;IACA,MAAM,UAAU,GAAG,MAAA,UAAU,CAAC,OAAkC,CAAC,mCAAI,OAAO,CAAC;IAC7E,QAAQ,UAAU,EAAE;QAChB,KAAK,UAAU,CAAC,EAAE;YACd,MAAM,IAAI,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAC7C,KAAK,UAAU,CAAC,EAAE,CAAC;QACnB,OAAO,CAAC,CAAC;YACL,MAAM,EAAE,MAAM,EAAE,GAAG,IAA0B,CAAC;YAC9C,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;YACzC,OAAO,WAAW,MAAM,4BAA4B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;SACxE;KACJ;AACL,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { generateEndpoint } from './generate-endpoint';
2
+ export const generateParameters = (version, args, init) => {
3
+ const path = generateEndpoint(version, args);
4
+ return [path, init];
5
+ };
6
+ export default generateParameters;
7
+ //# sourceMappingURL=generate-parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-parameters.js","sourceRoot":"","sources":["../../../../../src/notification/settings/get/generate-parameters.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAK9B,OAAiB,EACjB,IAA+C,EAC/C,IAA0C,EACN,EAAE;IACtC,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC7C,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACxB,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { ApiVersion } from '../..';
2
+ export { generateEndpoint } from './generate-endpoint';
3
+ export { generateParameters } from './generate-parameters';
4
+ export * from './types';
5
+ export { getUserNotificationSettings, default } from './client';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/notification/settings/get/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { ApiVersion } from '../../static';
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/notification/settings/get/types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { generateParameters } from './generate-parameters';
2
+ export const updateUserNotificationSettings = (client, version, method = 'json') => (args, init) => client[method](...generateParameters(version, args, init));
3
+ export default updateUserNotificationSettings;
4
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../src/notification/settings/put/client.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAc3D,MAAM,CAAC,MAAM,8BAA8B,GACvC,CAKI,MAAe,EACf,OAAiB,EACjB,SAAkB,MAAiB,EACrC,EAAE,CACJ,CACI,IAA+C,EAC/C,IAAoC,EACmB,EAAE,CACzD,MAAM,CAAC,MAAM,CAAC,CACV,GAAG,kBAAkB,CAAuB,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CACR,CAAC;AAErE,eAAe,8BAA8B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { UnsupportedApiVersion } from '../../../errors';
2
+ import { ApiVersion } from '../..';
3
+ export const generateEndpoint = (version, args) => {
4
+ var _a;
5
+ const apiVersion = (_a = ApiVersion[version]) !== null && _a !== void 0 ? _a : version;
6
+ switch (apiVersion) {
7
+ case ApiVersion.v2:
8
+ throw new UnsupportedApiVersion(version);
9
+ case ApiVersion.v1:
10
+ default: {
11
+ const { userId } = args;
12
+ const params = new URLSearchParams();
13
+ params.append('api-version', apiVersion);
14
+ return `/person/${userId}/notifications/settings/?${String(params)}`;
15
+ }
16
+ }
17
+ };
18
+ //# sourceMappingURL=generate-endpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-endpoint.js","sourceRoot":"","sources":["../../../../../src/notification/settings/put/generate-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAOnC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,OAAiB,EACjB,IAA+C,EACjD,EAAE;;IACA,MAAM,UAAU,GAAG,MAAA,UAAU,CAAC,OAAkC,CAAC,mCAAI,OAAO,CAAC;IAC7E,QAAQ,UAAU,EAAE;QAChB,KAAK,UAAU,CAAC,EAAE;YACd,MAAM,IAAI,qBAAqB,CAAC,OAAO,CAAC,CAAC;QAC7C,KAAK,UAAU,CAAC,EAAE,CAAC;QACnB,OAAO,CAAC,CAAC;YACL,MAAM,EAAE,MAAM,EAAE,GAAG,IAA0B,CAAC;YAC9C,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;YACzC,OAAO,WAAW,MAAM,4BAA4B,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;SACxE;KACJ;AACL,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { generateEndpoint } from './generate-endpoint';
2
+ export const generateParameters = (version, args, init) => {
3
+ const path = generateEndpoint(version, args);
4
+ const headers = new Headers();
5
+ headers.append('content-type', 'application/json');
6
+ const requestParams = Object.assign({}, { method: 'put', body: JSON.stringify(args), headers: headers }, init);
7
+ return [path, requestParams];
8
+ };
9
+ export default generateParameters;
10
+ //# sourceMappingURL=generate-parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-parameters.js","sourceRoot":"","sources":["../../../../../src/notification/settings/put/generate-parameters.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAK9B,OAAiB,EACjB,IAA+C,EAC/C,IAA0C,EACN,EAAE;IACtC,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAI7C,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;IAC9B,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;IAEnD,MAAM,aAAa,GAAwC,MAAM,CAAC,MAAM,CACpE,EAAE,EACF,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,EAC/D,IAAI,CACP,CAAC;IAEF,OAAO,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;AACjC,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { ApiVersion } from '../..';
2
+ export { generateEndpoint } from './generate-endpoint';
3
+ export { generateParameters } from './generate-parameters';
4
+ export * from './types';
5
+ export { updateUserNotificationSettings, default } from './client';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/notification/settings/put/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAEnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,8BAA8B,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { ApiVersion } from '../../static';
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/notification/settings/put/types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,6 @@
1
+ export var ApiVersion;
2
+ (function (ApiVersion) {
3
+ ApiVersion["v1"] = "1.0";
4
+ ApiVersion["v2"] = "2.0";
5
+ })(ApiVersion || (ApiVersion = {}));
6
+ //# sourceMappingURL=static.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static.js","sourceRoot":"","sources":["../../../src/notification/static.ts"],"names":[],"mappings":"AACA,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IAClB,wBAAY,CAAA;IAEZ,wBAAY,CAAA;AAChB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/notification/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { ApiVersion } from './static';
2
+ //# sourceMappingURL=api-models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-models.js","sourceRoot":"","sources":["../../../src/people/api-models.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=api-models.v2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-models.v2.js","sourceRoot":"","sources":["../../../src/people/api-models.v2.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=api-models.v4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-models.v4.js","sourceRoot":"","sources":["../../../src/people/api-models.v4.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ import { ApiVersion } from './static';
2
+ import { client as personDetailClient, } from './person-details';
3
+ import { client as personQueryClient, } from './query';
4
+ import { client as personPhotoClient, } from './person-photo';
5
+ export class PeopleApiClient {
6
+ get Version() {
7
+ return ApiVersion;
8
+ }
9
+ constructor(_client) {
10
+ this._client = _client;
11
+ }
12
+ get(version, method, args, init) {
13
+ const fn = personDetailClient(this._client, version, method);
14
+ return fn(args, init);
15
+ }
16
+ query(version, method, args, init) {
17
+ const fn = personQueryClient(this._client, version, method);
18
+ return fn(args, init);
19
+ }
20
+ photo(version, method, args, init) {
21
+ const fn = personPhotoClient(this._client, version, method);
22
+ return fn(args, init);
23
+ }
24
+ }
25
+ export default PeopleApiClient;
26
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/people/client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,EACH,MAAM,IAAI,kBAAkB,GAK/B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACH,MAAM,IAAI,iBAAiB,GAK9B,MAAM,SAAS,CAAC;AAEjB,OAAO,EACH,MAAM,IAAI,iBAAiB,GAK9B,MAAM,gBAAgB,CAAC;AAExB,MAAM,OAAO,eAAe;IAIxB,IAAI,OAAO;QACP,OAAO,UAAU,CAAC;IACtB,CAAC;IAED,YAAsB,OAAgB;QAAhB,YAAO,GAAP,OAAO,CAAS;IAAG,CAAC;IAKnC,GAAG,CAMN,OAAiB,EACjB,MAAe,EACf,IAAW,EACX,IAA0C;QAE1C,MAAM,EAAE,GAAG,kBAAkB,CACzB,IAAI,CAAC,OAAO,EACZ,OAAO,EACP,MAAM,CACT,CAAC;QACF,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC1B,CAAC;IAKM,KAAK,CAMR,OAAiB,EACjB,MAAe,EACf,IAAW,EACX,IAA0C;QAE1C,MAAM,EAAE,GAAG,iBAAiB,CAA6B,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QACxF,OAAO,EAAE,CAAU,IAAI,EAAE,IAAI,CAAC,CAAC;IACnC,CAAC;IAKM,KAAK,CAMR,OAAiB,EACjB,MAAe,EACf,IAAW,EACX,IAA0C;QAE1C,MAAM,EAAE,GAAG,iBAAiB,CAA6B,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;QACxF,OAAO,EAAE,CAAU,IAAI,EAAE,IAAI,CAAC,CAAC;IACnC,CAAC;CACJ;AAYD,eAAe,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { PeopleApiClient, default } from './client';
2
+ export { ApiVersion } from './static';
3
+ export * from './api-models';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/people/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,cAAc,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { generateParameters } from './generate-parameters';
2
+ export const client = (client, version, method = 'json') => (args, init) => client[method](...generateParameters(version, args, init));
3
+ export default client;
4
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../src/people/person-details/client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAW3D,MAAM,CAAC,MAAM,MAAM,GACf,CAMI,MAAe,EACf,OAAiB,EACjB,SAAkB,MAAiB,EACrC,EAAE,CACJ,CACI,IAAW,EACX,IAAoC,EACE,EAAE,CACxC,MAAM,CAAC,MAAM,CAAC,CACV,GAAG,kBAAkB,CAAuB,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CACzB,CAAC;AAEpD,eAAe,MAAM,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { UnsupportedApiVersion } from '../../errors';
2
+ import { ApiVersion } from '../static';
3
+ export const generateEndpoint = (version, args) => {
4
+ var _a;
5
+ const apiVersion = (_a = ApiVersion[version]) !== null && _a !== void 0 ? _a : version;
6
+ switch (apiVersion) {
7
+ case ApiVersion.v4: {
8
+ const { azureId, expand } = args;
9
+ const params = new URLSearchParams();
10
+ params.append('api-version', apiVersion);
11
+ if (expand) {
12
+ params.append('$expand', expand.join(','));
13
+ }
14
+ return `/persons/${azureId}?${String(params)}`;
15
+ }
16
+ default: {
17
+ throw new UnsupportedApiVersion(version);
18
+ }
19
+ }
20
+ };
21
+ //# sourceMappingURL=generate-endpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-endpoint.js","sourceRoot":"","sources":["../../../../src/people/person-details/generate-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAOvC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,OAAiB,EACjB,IAA8B,EAChC,EAAE;;IACA,MAAM,UAAU,GAAG,MAAA,UAAU,CAAC,OAAkC,CAAC,mCAAI,OAAO,CAAC;IAC7E,QAAQ,UAAU,EAAE;QAChB,KAAK,UAAU,CAAC,EAAE,CAAC,CAAC;YAChB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;YACjC,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;YACzC,IAAI,MAAM,EAAE;gBACR,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;aAC9C;YACD,OAAO,YAAY,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;SAClD;QACD,OAAO,CAAC,CAAC;YACL,MAAM,IAAI,qBAAqB,CAAC,OAAO,CAAC,CAAC;SAC5C;KACJ;AACL,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { generateEndpoint } from './generate-endpoint';
2
+ export const generateParameters = (version, args, init) => {
3
+ const path = generateEndpoint(version, args);
4
+ return [path, init];
5
+ };
6
+ export default generateParameters;
7
+ //# sourceMappingURL=generate-parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-parameters.js","sourceRoot":"","sources":["../../../../src/people/person-details/generate-parameters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAMvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAK9B,OAAiB,EACjB,IAA8B,EAC9B,IAA0C,EACN,EAAE;IACtC,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC7C,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACxB,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { client, default } from './client';
2
+ export { generateEndpoint } from './generate-endpoint';
3
+ export { generateParameters } from './generate-parameters';
4
+ export * from './types';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/people/person-details/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAE3D,cAAc,SAAS,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { ApiVersion } from '../static';
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/people/person-details/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { generateParameters } from './generate-parameters';
2
+ export const client = (client, version, method = 'blob') => (args, init) => client[method](...generateParameters(version, args, init));
3
+ export default client;
4
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../src/people/person-photo/client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAW3D,MAAM,CAAC,MAAM,MAAM,GACf,CAMI,MAAe,EACf,OAAiB,EACjB,SAAkB,MAAiB,EACrC,EAAE,CACJ,CACI,IAAW,EACX,IAAoC,EACX,EAAE,CAC3B,MAAM,CAAC,MAAM,CAAC,CACV,GAAG,kBAAkB,CAAuB,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CACtC,CAAC;AAEvC,eAAe,MAAM,CAAC"}