@equinor/fusion-framework-module-services 2.1.0 → 2.3.0

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 (239) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/esm/bookmarks/client.js +15 -0
  3. package/dist/esm/bookmarks/client.js.map +1 -1
  4. package/dist/esm/bookmarks/favorites/delete/client.js +4 -0
  5. package/dist/esm/bookmarks/favorites/delete/client.js.map +1 -0
  6. package/dist/esm/bookmarks/favorites/delete/generate-endpoint.js +12 -0
  7. package/dist/esm/bookmarks/favorites/delete/generate-endpoint.js.map +1 -0
  8. package/dist/esm/bookmarks/favorites/delete/generate-parameters.js +7 -0
  9. package/dist/esm/bookmarks/favorites/delete/generate-parameters.js.map +1 -0
  10. package/dist/esm/bookmarks/favorites/delete/index.js +5 -0
  11. package/dist/esm/bookmarks/favorites/delete/index.js.map +1 -0
  12. package/dist/esm/bookmarks/favorites/delete/types-v1.js +2 -0
  13. package/dist/esm/bookmarks/favorites/delete/types-v1.js.map +1 -0
  14. package/dist/esm/bookmarks/favorites/delete/types.js +2 -0
  15. package/dist/esm/bookmarks/favorites/delete/types.js.map +1 -0
  16. package/dist/esm/bookmarks/favorites/head/client.js +4 -0
  17. package/dist/esm/bookmarks/favorites/head/client.js.map +1 -0
  18. package/dist/esm/bookmarks/favorites/head/generate-endpoint.js +12 -0
  19. package/dist/esm/bookmarks/favorites/head/generate-endpoint.js.map +1 -0
  20. package/dist/esm/bookmarks/favorites/head/generate-parameters.js +9 -0
  21. package/dist/esm/bookmarks/favorites/head/generate-parameters.js.map +1 -0
  22. package/dist/esm/bookmarks/favorites/head/index.js +5 -0
  23. package/dist/esm/bookmarks/favorites/head/index.js.map +1 -0
  24. package/dist/esm/bookmarks/favorites/head/types.js +2 -0
  25. package/dist/esm/bookmarks/favorites/head/types.js.map +1 -0
  26. package/dist/esm/bookmarks/favorites/post/client.js +4 -0
  27. package/dist/esm/bookmarks/favorites/post/client.js.map +1 -0
  28. package/dist/esm/bookmarks/favorites/post/generate-endpoint.js +11 -0
  29. package/dist/esm/bookmarks/favorites/post/generate-endpoint.js.map +1 -0
  30. package/dist/esm/bookmarks/favorites/post/generate-parameters.js +9 -0
  31. package/dist/esm/bookmarks/favorites/post/generate-parameters.js.map +1 -0
  32. package/dist/esm/bookmarks/favorites/post/index.js +5 -0
  33. package/dist/esm/bookmarks/favorites/post/index.js.map +1 -0
  34. package/dist/esm/bookmarks/favorites/post/types.js +2 -0
  35. package/dist/esm/bookmarks/favorites/post/types.js.map +1 -0
  36. package/dist/esm/notification/api-models.js +2 -0
  37. package/dist/esm/notification/api-models.js.map +1 -0
  38. package/dist/esm/notification/client.js +43 -0
  39. package/dist/esm/notification/client.js.map +1 -0
  40. package/dist/esm/notification/index.js +5 -0
  41. package/dist/esm/notification/index.js.map +1 -0
  42. package/dist/esm/notification/notification/delete/client.js +4 -0
  43. package/dist/esm/notification/notification/delete/client.js.map +1 -0
  44. package/dist/esm/notification/notification/delete/generate-endpoint.js +18 -0
  45. package/dist/esm/notification/notification/delete/generate-endpoint.js.map +1 -0
  46. package/dist/esm/notification/notification/delete/generate-parameters.js +10 -0
  47. package/dist/esm/notification/notification/delete/generate-parameters.js.map +1 -0
  48. package/dist/esm/notification/notification/delete/index.js +6 -0
  49. package/dist/esm/notification/notification/delete/index.js.map +1 -0
  50. package/dist/esm/notification/notification/delete/types.js +2 -0
  51. package/dist/esm/notification/notification/delete/types.js.map +1 -0
  52. package/dist/esm/notification/notification/get/client.js +4 -0
  53. package/dist/esm/notification/notification/get/client.js.map +1 -0
  54. package/dist/esm/notification/notification/get/generate-endpoint.js +18 -0
  55. package/dist/esm/notification/notification/get/generate-endpoint.js.map +1 -0
  56. package/dist/esm/notification/notification/get/generate-parameters.js +7 -0
  57. package/dist/esm/notification/notification/get/generate-parameters.js.map +1 -0
  58. package/dist/esm/notification/notification/get/index.js +6 -0
  59. package/dist/esm/notification/notification/get/index.js.map +1 -0
  60. package/dist/esm/notification/notification/get/types.js +2 -0
  61. package/dist/esm/notification/notification/get/types.js.map +1 -0
  62. package/dist/esm/notification/notification/getAll/client.js +4 -0
  63. package/dist/esm/notification/notification/getAll/client.js.map +1 -0
  64. package/dist/esm/notification/notification/getAll/generate-endpoint.js +18 -0
  65. package/dist/esm/notification/notification/getAll/generate-endpoint.js.map +1 -0
  66. package/dist/esm/notification/notification/getAll/generate-parameters.js +7 -0
  67. package/dist/esm/notification/notification/getAll/generate-parameters.js.map +1 -0
  68. package/dist/esm/notification/notification/getAll/index.js +6 -0
  69. package/dist/esm/notification/notification/getAll/index.js.map +1 -0
  70. package/dist/esm/notification/notification/getAll/types.js +2 -0
  71. package/dist/esm/notification/notification/getAll/types.js.map +1 -0
  72. package/dist/esm/notification/notification/index.js +6 -0
  73. package/dist/esm/notification/notification/index.js.map +1 -0
  74. package/dist/esm/notification/notification/patch/client.js +4 -0
  75. package/dist/esm/notification/notification/patch/client.js.map +1 -0
  76. package/dist/esm/notification/notification/patch/generate-endpoint.js +18 -0
  77. package/dist/esm/notification/notification/patch/generate-endpoint.js.map +1 -0
  78. package/dist/esm/notification/notification/patch/generate-parameters.js +10 -0
  79. package/dist/esm/notification/notification/patch/generate-parameters.js.map +1 -0
  80. package/dist/esm/notification/notification/patch/index.js +6 -0
  81. package/dist/esm/notification/notification/patch/index.js.map +1 -0
  82. package/dist/esm/notification/notification/patch/types.js +2 -0
  83. package/dist/esm/notification/notification/patch/types.js.map +1 -0
  84. package/dist/esm/notification/notification/post/client.js +4 -0
  85. package/dist/esm/notification/notification/post/client.js.map +1 -0
  86. package/dist/esm/notification/notification/post/generate-endpoint.js +18 -0
  87. package/dist/esm/notification/notification/post/generate-endpoint.js.map +1 -0
  88. package/dist/esm/notification/notification/post/generate-parameters.js +10 -0
  89. package/dist/esm/notification/notification/post/generate-parameters.js.map +1 -0
  90. package/dist/esm/notification/notification/post/index.js +6 -0
  91. package/dist/esm/notification/notification/post/index.js.map +1 -0
  92. package/dist/esm/notification/notification/post/types.js +2 -0
  93. package/dist/esm/notification/notification/post/types.js.map +1 -0
  94. package/dist/esm/notification/settings/get/client.js +4 -0
  95. package/dist/esm/notification/settings/get/client.js.map +1 -0
  96. package/dist/esm/notification/settings/get/generate-endpoint.js +18 -0
  97. package/dist/esm/notification/settings/get/generate-endpoint.js.map +1 -0
  98. package/dist/esm/notification/settings/get/generate-parameters.js +7 -0
  99. package/dist/esm/notification/settings/get/generate-parameters.js.map +1 -0
  100. package/dist/esm/notification/settings/get/index.js +6 -0
  101. package/dist/esm/notification/settings/get/index.js.map +1 -0
  102. package/dist/esm/notification/settings/get/types.js +2 -0
  103. package/dist/esm/notification/settings/get/types.js.map +1 -0
  104. package/dist/esm/notification/settings/put/client.js +4 -0
  105. package/dist/esm/notification/settings/put/client.js.map +1 -0
  106. package/dist/esm/notification/settings/put/generate-endpoint.js +18 -0
  107. package/dist/esm/notification/settings/put/generate-endpoint.js.map +1 -0
  108. package/dist/esm/notification/settings/put/generate-parameters.js +10 -0
  109. package/dist/esm/notification/settings/put/generate-parameters.js.map +1 -0
  110. package/dist/esm/notification/settings/put/index.js +6 -0
  111. package/dist/esm/notification/settings/put/index.js.map +1 -0
  112. package/dist/esm/notification/settings/put/types.js +2 -0
  113. package/dist/esm/notification/settings/put/types.js.map +1 -0
  114. package/dist/esm/notification/static.js +6 -0
  115. package/dist/esm/notification/static.js.map +1 -0
  116. package/dist/esm/notification/types.js +2 -0
  117. package/dist/esm/notification/types.js.map +1 -0
  118. package/dist/esm/provider.js +7 -0
  119. package/dist/esm/provider.js.map +1 -1
  120. package/dist/tsconfig.tsbuildinfo +1 -1
  121. package/dist/types/bookmarks/client.d.ts +6 -0
  122. package/dist/types/bookmarks/favorites/delete/client.d.ts +5 -0
  123. package/dist/types/bookmarks/favorites/delete/generate-endpoint.d.ts +2 -0
  124. package/dist/types/bookmarks/favorites/delete/generate-parameters.d.ts +4 -0
  125. package/dist/types/bookmarks/favorites/delete/index.d.ts +4 -0
  126. package/dist/types/bookmarks/favorites/delete/types-v1.d.ts +3 -0
  127. package/dist/types/bookmarks/favorites/delete/types.d.ts +15 -0
  128. package/dist/types/bookmarks/favorites/head/client.d.ts +5 -0
  129. package/dist/types/bookmarks/favorites/head/generate-endpoint.d.ts +2 -0
  130. package/dist/types/bookmarks/favorites/head/generate-parameters.d.ts +4 -0
  131. package/dist/types/bookmarks/favorites/head/index.d.ts +4 -0
  132. package/dist/types/bookmarks/favorites/head/types.d.ts +17 -0
  133. package/dist/types/bookmarks/favorites/post/client.d.ts +5 -0
  134. package/dist/types/bookmarks/favorites/post/generate-endpoint.d.ts +2 -0
  135. package/dist/types/bookmarks/favorites/post/generate-parameters.d.ts +4 -0
  136. package/dist/types/bookmarks/favorites/post/index.d.ts +4 -0
  137. package/dist/types/bookmarks/favorites/post/types.d.ts +17 -0
  138. package/dist/types/notification/api-models.d.ts +54 -0
  139. package/dist/types/notification/client.d.ts +24 -0
  140. package/dist/types/notification/index.d.ts +4 -0
  141. package/dist/types/notification/notification/delete/client.d.ts +5 -0
  142. package/dist/types/notification/notification/delete/generate-endpoint.d.ts +2 -0
  143. package/dist/types/notification/notification/delete/generate-parameters.d.ts +5 -0
  144. package/dist/types/notification/notification/delete/index.d.ts +5 -0
  145. package/dist/types/notification/notification/delete/types.d.ts +21 -0
  146. package/dist/types/notification/notification/get/client.d.ts +5 -0
  147. package/dist/types/notification/notification/get/generate-endpoint.d.ts +2 -0
  148. package/dist/types/notification/notification/get/generate-parameters.d.ts +5 -0
  149. package/dist/types/notification/notification/get/index.d.ts +5 -0
  150. package/dist/types/notification/notification/get/types.d.ts +21 -0
  151. package/dist/types/notification/notification/getAll/client.d.ts +5 -0
  152. package/dist/types/notification/notification/getAll/generate-endpoint.d.ts +2 -0
  153. package/dist/types/notification/notification/getAll/generate-parameters.d.ts +5 -0
  154. package/dist/types/notification/notification/getAll/index.d.ts +5 -0
  155. package/dist/types/notification/notification/getAll/types.d.ts +21 -0
  156. package/dist/types/notification/notification/index.d.ts +5 -0
  157. package/dist/types/notification/notification/patch/client.d.ts +5 -0
  158. package/dist/types/notification/notification/patch/generate-endpoint.d.ts +2 -0
  159. package/dist/types/notification/notification/patch/generate-parameters.d.ts +5 -0
  160. package/dist/types/notification/notification/patch/index.d.ts +5 -0
  161. package/dist/types/notification/notification/patch/types.d.ts +22 -0
  162. package/dist/types/notification/notification/post/client.d.ts +5 -0
  163. package/dist/types/notification/notification/post/generate-endpoint.d.ts +2 -0
  164. package/dist/types/notification/notification/post/generate-parameters.d.ts +5 -0
  165. package/dist/types/notification/notification/post/index.d.ts +5 -0
  166. package/dist/types/notification/notification/post/types.d.ts +33 -0
  167. package/dist/types/notification/settings/get/client.d.ts +5 -0
  168. package/dist/types/notification/settings/get/generate-endpoint.d.ts +2 -0
  169. package/dist/types/notification/settings/get/generate-parameters.d.ts +5 -0
  170. package/dist/types/notification/settings/get/index.d.ts +5 -0
  171. package/dist/types/notification/settings/get/types.d.ts +21 -0
  172. package/dist/types/notification/settings/put/client.d.ts +5 -0
  173. package/dist/types/notification/settings/put/generate-endpoint.d.ts +2 -0
  174. package/dist/types/notification/settings/put/generate-parameters.d.ts +5 -0
  175. package/dist/types/notification/settings/put/index.d.ts +5 -0
  176. package/dist/types/notification/settings/put/types.d.ts +17 -0
  177. package/dist/types/notification/static.d.ts +4 -0
  178. package/dist/types/notification/types.d.ts +1 -0
  179. package/dist/types/provider.d.ts +2 -0
  180. package/package.json +6 -2
  181. package/src/bookmarks/client.ts +54 -0
  182. package/src/bookmarks/favorites/delete/client.ts +35 -0
  183. package/src/bookmarks/favorites/delete/generate-endpoint.ts +19 -0
  184. package/src/bookmarks/favorites/delete/generate-parameters.ts +25 -0
  185. package/src/bookmarks/favorites/delete/index.ts +6 -0
  186. package/src/bookmarks/favorites/delete/types-v1.ts +2 -0
  187. package/src/bookmarks/favorites/delete/types.ts +33 -0
  188. package/src/bookmarks/favorites/head/client.ts +35 -0
  189. package/src/bookmarks/favorites/head/generate-endpoint.ts +19 -0
  190. package/src/bookmarks/favorites/head/generate-parameters.ts +28 -0
  191. package/src/bookmarks/favorites/head/index.ts +6 -0
  192. package/src/bookmarks/favorites/head/types.ts +35 -0
  193. package/src/bookmarks/favorites/post/client.ts +35 -0
  194. package/src/bookmarks/favorites/post/generate-endpoint.ts +18 -0
  195. package/src/bookmarks/favorites/post/generate-parameters.ts +28 -0
  196. package/src/bookmarks/favorites/post/index.ts +6 -0
  197. package/src/bookmarks/favorites/post/types.ts +35 -0
  198. package/src/notification/api-models.ts +70 -0
  199. package/src/notification/client.ts +167 -0
  200. package/src/notification/index.ts +6 -0
  201. package/src/notification/notification/delete/client.ts +37 -0
  202. package/src/notification/notification/delete/generate-endpoint.ts +24 -0
  203. package/src/notification/notification/delete/generate-parameters.ts +32 -0
  204. package/src/notification/notification/delete/index.ts +8 -0
  205. package/src/notification/notification/delete/types.ts +44 -0
  206. package/src/notification/notification/get/client.ts +33 -0
  207. package/src/notification/notification/get/generate-endpoint.ts +25 -0
  208. package/src/notification/notification/get/generate-parameters.ts +22 -0
  209. package/src/notification/notification/get/index.ts +8 -0
  210. package/src/notification/notification/get/types.ts +44 -0
  211. package/src/notification/notification/getAll/client.ts +37 -0
  212. package/src/notification/notification/getAll/generate-endpoint.ts +25 -0
  213. package/src/notification/notification/getAll/generate-parameters.ts +22 -0
  214. package/src/notification/notification/getAll/index.ts +8 -0
  215. package/src/notification/notification/getAll/types.ts +44 -0
  216. package/src/notification/notification/index.ts +5 -0
  217. package/src/notification/notification/patch/client.ts +37 -0
  218. package/src/notification/notification/patch/generate-endpoint.ts +24 -0
  219. package/src/notification/notification/patch/generate-parameters.ts +32 -0
  220. package/src/notification/notification/patch/index.ts +8 -0
  221. package/src/notification/notification/patch/types.ts +45 -0
  222. package/src/notification/notification/post/client.ts +37 -0
  223. package/src/notification/notification/post/generate-endpoint.ts +25 -0
  224. package/src/notification/notification/post/generate-parameters.ts +32 -0
  225. package/src/notification/notification/post/index.ts +8 -0
  226. package/src/notification/notification/post/types.ts +57 -0
  227. package/src/notification/settings/get/client.ts +37 -0
  228. package/src/notification/settings/get/generate-endpoint.ts +25 -0
  229. package/src/notification/settings/get/generate-parameters.ts +22 -0
  230. package/src/notification/settings/get/index.ts +8 -0
  231. package/src/notification/settings/get/types.ts +44 -0
  232. package/src/notification/settings/put/client.ts +37 -0
  233. package/src/notification/settings/put/generate-endpoint.ts +25 -0
  234. package/src/notification/settings/put/generate-parameters.ts +34 -0
  235. package/src/notification/settings/put/index.ts +8 -0
  236. package/src/notification/settings/put/types.ts +38 -0
  237. package/src/notification/static.ts +6 -0
  238. package/src/notification/types.ts +5 -0
  239. package/src/provider.ts +8 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,24 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.3.0](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-services@2.2.0...@equinor/fusion-framework-module-services@2.3.0) (2023-03-28)
7
+
8
+ ### Features
9
+
10
+ - **bookmark-client:** added verify users bookmark ([971835c](https://github.com/equinor/fusion-framework/commit/971835c801f46fc4bebd3d1b97ca8cd83c085a77))
11
+ - **Bookmark-Client:** Enable to add bookmark favorites ([83dd966](https://github.com/equinor/fusion-framework/commit/83dd966ef1d609f0be44373ee16344810ae9beb4))
12
+
13
+ ### Bug Fixes
14
+
15
+ - **bookmark-client:** fix import ([7c7d585](https://github.com/equinor/fusion-framework/commit/7c7d585b6eb53688e5ce9f80474eac3275576290))
16
+ - **bookmark-client:** renamed id to bookmarkId ([590ad69](https://github.com/equinor/fusion-framework/commit/590ad69cfca579ec65accb5dab47c69968aade95))
17
+
18
+ ## 2.2.0 (2023-03-27)
19
+
20
+ ### Features
21
+
22
+ - **services:** Added notification api service ([8a40606](https://github.com/equinor/fusion-framework/commit/8a406068d69903e0d7ebc76079ed12caeac540f1))
23
+
6
24
  ## 2.1.0 (2023-03-22)
7
25
 
8
26
  ### Features
@@ -3,6 +3,9 @@ import getBookmark from './get/client';
3
3
  import postBookmark from './post/client';
4
4
  import patchBookmark from './patch';
5
5
  import getAllBookmarks from './getAll';
6
+ import addBookmarkFavorite from './favorites/post';
7
+ import deleteBookmarkFavorite from './favorites/delete';
8
+ import verifyBookmarkFavorite from './favorites/head';
6
9
  export class BookmarksApiClient {
7
10
  constructor(_client, _method) {
8
11
  this._client = _client;
@@ -28,6 +31,18 @@ export class BookmarksApiClient {
28
31
  const fn = deleteBookmark(this._client, version, this._method);
29
32
  return fn(...args);
30
33
  }
34
+ addFavorite(version, ...args) {
35
+ const fn = addBookmarkFavorite(this._client, version, this._method);
36
+ return fn(...args);
37
+ }
38
+ removeFavorite(version, ...args) {
39
+ const fn = deleteBookmarkFavorite(this._client, version, this._method);
40
+ return fn(...args);
41
+ }
42
+ verifyFavorite(version, ...args) {
43
+ const fn = verifyBookmarkFavorite(this._client, version, this._method);
44
+ return fn(...args);
45
+ }
31
46
  }
32
47
  export default BookmarksApiClient;
33
48
  //# sourceMappingURL=client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/bookmarks/client.ts"],"names":[],"mappings":"AAGA,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAE7C,OAAO,WAAW,MAAM,cAAc,CAAC;AAGvC,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,aAIN,MAAM,SAAS,CAAC;AACjB,OAAO,eAAgE,MAAM,UAAU,CAAC;AAExF,MAAM,OAAO,kBAAkB;IAK3B,YAAsB,OAAgB,EAAY,OAAgB;QAA5C,YAAO,GAAP,OAAO,CAAS;QAAY,YAAO,GAAP,OAAO,CAAS;IAAG,CAAC;IAM/D,GAAG,CACN,OAAiB,EACjB,GAAG,IAA+E;QAElF,MAAM,EAAE,GAAG,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5D,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;IAKM,MAAM,CACT,OAAiB;QAEjB,MAAM,EAAE,GAAG,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAChE,OAAO,EAAE,EAAW,CAAC;IACzB,CAAC;IAMM,IAAI,CACP,OAAiB,EACjB,GAAG,IAA+E;QAElF,MAAM,EAAE,GAAG,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7D,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;IAMM,KAAK,CACR,OAAiB,EACjB,GAAG,IAAgF;QAEnF,MAAM,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;IAEM,MAAM,CACT,OAAiB,EACjB,GAAG,IAAwE;QAE3E,MAAM,EAAE,GAAG,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/D,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;CACJ;AAED,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/bookmarks/client.ts"],"names":[],"mappings":"AAGA,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAE7C,OAAO,WAAW,MAAM,cAAc,CAAC;AAGvC,OAAO,YAAY,MAAM,eAAe,CAAC;AACzC,OAAO,aAIN,MAAM,SAAS,CAAC;AACjB,OAAO,eAAgE,MAAM,UAAU,CAAC;AACxF,OAAO,mBAGN,MAAM,kBAAkB,CAAC;AAC1B,OAAO,sBAGN,MAAM,oBAAoB,CAAC;AAC5B,OAAO,sBAGN,MAAM,kBAAkB,CAAC;AAE1B,MAAM,OAAO,kBAAkB;IAK3B,YAAsB,OAAgB,EAAY,OAAgB;QAA5C,YAAO,GAAP,OAAO,CAAS;QAAY,YAAO,GAAP,OAAO,CAAS;IAAG,CAAC;IAM/D,GAAG,CACN,OAAiB,EACjB,GAAG,IAA+E;QAElF,MAAM,EAAE,GAAG,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5D,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;IAKM,MAAM,CACT,OAAiB;QAEjB,MAAM,EAAE,GAAG,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAChE,OAAO,EAAE,EAAW,CAAC;IACzB,CAAC;IAMM,IAAI,CACP,OAAiB,EACjB,GAAG,IAA+E;QAElF,MAAM,EAAE,GAAG,YAAY,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7D,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;IAMM,KAAK,CACR,OAAiB,EACjB,GAAG,IAAgF;QAEnF,MAAM,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;IAMM,MAAM,CACT,OAAiB,EACjB,GAAG,IAAwE;QAE3E,MAAM,EAAE,GAAG,cAAc,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/D,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;IAMM,WAAW,CACd,OAAiB,EACjB,GAAG,IAA6E;QAEhF,MAAM,EAAE,GAAG,mBAAmB,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACpE,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;IAOM,cAAc,CACjB,OAAiB,EACjB,GAAG,IAAgF;QAEnF,MAAM,EAAE,GAAG,sBAAsB,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACvE,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;IAOM,cAAc,CACjB,OAAiB,EACjB,GAAG,IAA6E;QAEhF,MAAM,EAAE,GAAG,sBAAsB,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACvE,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;CACJ;AAED,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { generateParameters } from './generate-parameters';
2
+ export const deleteBookmarkFavorite = (client, version, method = 'fetch') => (args, init) => client[method](...generateParameters(version, args, init));
3
+ export default deleteBookmarkFavorite;
4
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../src/bookmarks/favorites/delete/client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAc3D,MAAM,CAAC,MAAM,sBAAsB,GAC/B,CAKI,MAAe,EACf,OAAiB,EACjB,SAAkB,OAAkB,EACtC,EAAE,CACJ,CACI,IAA0C,EAC1C,IAA0C,EACe,EAAE,CAC3D,MAAM,CAAC,MAAM,CAAC,CACV,GAAG,kBAAkB,CAA6B,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CACZ,CAAC;AAEvE,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,12 @@
1
+ export const generateEndpoint = (version, args) => {
2
+ switch (version) {
3
+ case 'v1':
4
+ default: {
5
+ const { bookmarkId } = args;
6
+ const params = new URLSearchParams();
7
+ params.append('api-version', '1.0');
8
+ return `/persons/me/bookmarks/favorites/${bookmarkId}/?${String(params)}`;
9
+ }
10
+ }
11
+ };
12
+ //# sourceMappingURL=generate-endpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-endpoint.js","sourceRoot":"","sources":["../../../../../src/bookmarks/favorites/delete/generate-endpoint.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,OAAiB,EACjB,IAA0C,EAC5C,EAAE;IACA,QAAQ,OAAO,EAAE;QACb,KAAK,IAAI,CAAC;QACV,OAAO,CAAC,CAAC;YACL,MAAM,EAAE,UAAU,EAAE,GAAG,IAA8B,CAAC;YACtD,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;YACpC,OAAO,mCAAmC,UAAU,KAAK,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;SAC7E;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
+ const requestParams = Object.assign({}, { method: 'Delete' }, init);
5
+ return [path, requestParams];
6
+ };
7
+ //# sourceMappingURL=generate-parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-parameters.js","sourceRoot":"","sources":["../../../../../src/bookmarks/favorites/delete/generate-parameters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAK9B,OAAiB,EACjB,IAA0C,EAC1C,IAA0C,EACN,EAAE;IACtC,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAE7C,MAAM,aAAa,GAAwC,MAAM,CAAC,MAAM,CACpE,EAAE,EACF,EAAE,MAAM,EAAE,QAAQ,EAAE,EACpB,IAAI,CACP,CAAC;IAEF,OAAO,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;AACjC,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './types';
2
+ export { deleteBookmarkFavorite as deleteBookmark, default } from './client';
3
+ export { generateEndpoint } from './generate-endpoint';
4
+ export { generateParameters } from './generate-parameters';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/bookmarks/favorites/delete/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,sBAAsB,IAAI,cAAc,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types-v1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-v1.js","sourceRoot":"","sources":["../../../../../src/bookmarks/favorites/delete/types-v1.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/bookmarks/favorites/delete/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { generateParameters } from './generate-parameters';
2
+ export const verifyBookmarkFavorite = (client, version, method = 'json') => (args, init) => client[method](...generateParameters(version, args, init));
3
+ export default verifyBookmarkFavorite;
4
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../src/bookmarks/favorites/head/client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAc3D,MAAM,CAAC,MAAM,sBAAsB,GAC/B,CAKI,MAAe,EACf,OAAiB,EACjB,SAAkB,MAAiB,EACrC,EAAE,CACJ,CACI,IAAwC,EACxC,IAA0C,EACa,EAAE,CACzD,MAAM,CAAC,MAAM,CAAC,CACV,GAAG,kBAAkB,CAA6B,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CACd,CAAC;AAErE,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,12 @@
1
+ export const generateEndpoint = (version, args) => {
2
+ switch (version) {
3
+ case 'v1':
4
+ default: {
5
+ const { bookmarkId } = args;
6
+ const params = new URLSearchParams();
7
+ params.append('api-version', version);
8
+ return `/persons/me/bookmarks/favorites/${bookmarkId}?${String(params)}`;
9
+ }
10
+ }
11
+ };
12
+ //# sourceMappingURL=generate-endpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-endpoint.js","sourceRoot":"","sources":["../../../../../src/bookmarks/favorites/head/generate-endpoint.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,OAAiB,EACjB,IAAwC,EAC1C,EAAE;IACA,QAAQ,OAAO,EAAE;QACb,KAAK,IAAI,CAAC;QACV,OAAO,CAAC,CAAC;YACL,MAAM,EAAE,UAAU,EAAE,GAAG,IAA8B,CAAC;YACtD,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;YACtC,OAAO,mCAAmC,UAAU,IAAI,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;SAC5E;KACJ;AACL,CAAC,CAAC"}
@@ -0,0 +1,9 @@
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: 'head', headers: headers }, init);
7
+ return [path, requestParams];
8
+ };
9
+ //# sourceMappingURL=generate-parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-parameters.js","sourceRoot":"","sources":["../../../../../src/bookmarks/favorites/head/generate-parameters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAK9B,OAAiB,EACjB,IAAwC,EACxC,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,OAAO,EAAE,OAAO,EAAE,EACpC,IAAI,CACP,CAAC;IAEF,OAAO,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;AACjC,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './types';
2
+ export { verifyBookmarkFavorite, default } from './client';
3
+ export { generateEndpoint } from './generate-endpoint';
4
+ export { generateParameters } from './generate-parameters';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/bookmarks/favorites/head/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/bookmarks/favorites/head/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { generateParameters } from './generate-parameters';
2
+ export const addBookmarkFavorite = (client, version, method = 'json') => (args, init) => client[method](...generateParameters(version, args, init));
3
+ export default addBookmarkFavorite;
4
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../src/bookmarks/favorites/post/client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAc3D,MAAM,CAAC,MAAM,mBAAmB,GAC5B,CAKI,MAAe,EACf,OAAiB,EACjB,SAAkB,MAAiB,EACrC,EAAE,CACJ,CACI,IAAwC,EACxC,IAA0C,EACa,EAAE,CACzD,MAAM,CAAC,MAAM,CAAC,CACV,GAAG,kBAAkB,CAA6B,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CACd,CAAC;AAErE,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,11 @@
1
+ export const generateEndpoint = (version, _args) => {
2
+ switch (version) {
3
+ case 'v1':
4
+ default: {
5
+ const params = new URLSearchParams();
6
+ params.append('api-version', version);
7
+ return `/persons/me/bookmarks/favorites?${String(params)}`;
8
+ }
9
+ }
10
+ };
11
+ //# sourceMappingURL=generate-endpoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-endpoint.js","sourceRoot":"","sources":["../../../../../src/bookmarks/favorites/post/generate-endpoint.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,OAAiB,EACjB,KAAyC,EAC3C,EAAE;IACA,QAAQ,OAAO,EAAE;QACb,KAAK,IAAI,CAAC;QACV,OAAO,CAAC,CAAC;YACL,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;YACtC,OAAO,mCAAmC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;SAC9D;KACJ;AACL,CAAC,CAAC"}
@@ -0,0 +1,9 @@
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
+ //# sourceMappingURL=generate-parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-parameters.js","sourceRoot":"","sources":["../../../../../src/bookmarks/favorites/post/generate-parameters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAK9B,OAAiB,EACjB,IAAwC,EACxC,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"}
@@ -0,0 +1,5 @@
1
+ export * from './types';
2
+ export { addBookmarkFavorite, default } from './client';
3
+ export { generateEndpoint } from './generate-endpoint';
4
+ export { generateParameters } from './generate-parameters';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/bookmarks/favorites/post/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAExD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/bookmarks/favorites/post/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/notification/api-models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { createNotification, deleteNotification, getNotificationById, getNotifications, updateSeenByUser, } from './notification';
2
+ import { ApiVersion } from './static';
3
+ import updateUserNotificationSettings from './settings/put';
4
+ import getUserNotificationSettings from './settings/get';
5
+ export class NotificationApiClient {
6
+ get Version() {
7
+ return ApiVersion;
8
+ }
9
+ constructor(_client, _method) {
10
+ this._client = _client;
11
+ this._method = _method;
12
+ }
13
+ getAll(version, ...args) {
14
+ const fn = getNotifications(this._client, version, this._method);
15
+ return fn(...args);
16
+ }
17
+ getById(version, ...args) {
18
+ const fn = getNotificationById(this._client, version, this._method);
19
+ return fn(...args);
20
+ }
21
+ setSeenByUser(version, ...args) {
22
+ const fn = updateSeenByUser(this._client, version, this._method);
23
+ return fn(...args);
24
+ }
25
+ create(version, ...args) {
26
+ const fn = createNotification(this._client, version, this._method);
27
+ return fn(...args);
28
+ }
29
+ delete(version, ...args) {
30
+ const fn = deleteNotification(this._client, version, this._method);
31
+ return fn(...args);
32
+ }
33
+ getSettings(version, ...args) {
34
+ const fn = getUserNotificationSettings(this._client, version, this._method);
35
+ return fn(...args);
36
+ }
37
+ updateSettings(version, ...args) {
38
+ const fn = updateUserNotificationSettings(this._client, version, this._method);
39
+ return fn(...args);
40
+ }
41
+ }
42
+ export default NotificationApiClient;
43
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/notification/client.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAKtC,OAAO,8BAGN,MAAM,gBAAgB,CAAC;AACxB,OAAO,2BAGN,MAAM,gBAAgB,CAAC;AAExB,MAAM,OAAO,qBAAqB;IAI9B,IAAI,OAAO;QACP,OAAO,UAAU,CAAC;IACtB,CAAC;IAED,YAAsB,OAAgB,EAAY,OAAgB;QAA5C,YAAO,GAAP,OAAO,CAAS;QAAY,YAAO,GAAP,OAAO,CAAS;IAAG,CAAC;IAM/D,MAAM,CAIT,OAAiB,EACjB,GAAG,IAAyE;QAE5E,MAAM,EAAE,GAAG,gBAAgB,CACvB,IAAI,CAAC,OAAO,EACZ,OAAO,EACP,IAAI,CAAC,OAAO,CACf,CAAC;QACF,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;IAMM,OAAO,CAIV,OAAiB,EACjB,GAAG,IAAwE;QAE3E,MAAM,EAAE,GAAG,mBAAmB,CAC1B,IAAI,CAAC,OAAO,EACZ,OAAO,EACP,IAAI,CAAC,OAAO,CACf,CAAC;QACF,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;IAMM,aAAa,CAIhB,OAAiB,EACjB,GAAG,IAA0E;QAE7E,MAAM,EAAE,GAAG,gBAAgB,CACvB,IAAI,CAAC,OAAO,EACZ,OAAO,EACP,IAAI,CAAC,OAAO,CACf,CAAC;QACF,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;IAMM,MAAM,CAIT,OAAiB,EACjB,GAAG,IAAyE;QAE5E,MAAM,EAAE,GAAG,kBAAkB,CACzB,IAAI,CAAC,OAAO,EACZ,OAAO,EACP,IAAI,CAAC,OAAO,CACf,CAAC;QACF,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;IAMM,MAAM,CAIT,OAAiB,EACjB,GAAG,IAA2E;QAE9E,MAAM,EAAE,GAAG,kBAAkB,CACzB,IAAI,CAAC,OAAO,EACZ,OAAO,EACP,IAAI,CAAC,OAAO,CACf,CAAC;QACF,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;IAKM,WAAW,CAId,OAAiB,EACjB,GAAG,IAAoF;QAEvF,MAAM,EAAE,GAAG,2BAA2B,CAClC,IAAI,CAAC,OAAO,EACZ,OAAO,EACP,IAAI,CAAC,OAAO,CACf,CAAC;QACF,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;IAKM,cAAc,CAIjB,OAAiB,EACjB,GAAG,IAAoF;QAEvF,MAAM,EAAE,GAAG,8BAA8B,CACrC,IAAI,CAAC,OAAO,EACZ,OAAO,EACP,IAAI,CAAC,OAAO,CACf,CAAC;QACF,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;CACJ;AAED,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export { NotificationApiClient, default } from './client';
2
+ export { ApiVersion } from './static';
3
+ export * from './api-models';
4
+ export * from './types';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/notification/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { generateParameters } from './generate-parameters';
2
+ export const deleteNotification = (client, version, method = 'json') => (args, init) => client[method](...generateParameters(version, args, init));
3
+ export default deleteNotification;
4
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../src/notification/notification/delete/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,IAAsC,EACtC,IAAoC,EACU,EAAE,CAChD,MAAM,CAAC,MAAM,CAAC,CACV,GAAG,kBAAkB,CAAuB,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CACjB,CAAC;AAE5D,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { UnsupportedApiVersion } from '@equinor/fusion-framework-module-services/errors';
2
+ import { ApiVersion } from '@equinor/fusion-framework-module-services/notification';
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/delete/generate-endpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kDAAkD,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC;AAMpF,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,OAAiB,EACjB,IAAsC,EACxC,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: 'delete', 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/delete/generate-parameters.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAK9B,OAAiB,EACjB,IAAsC,EACtC,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,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,EACtC,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 '@equinor/fusion-framework-module-services/notification';
2
+ export { generateEndpoint } from './generate-endpoint';
3
+ export { generateParameters } from './generate-parameters';
4
+ export * from './types';
5
+ export { deleteNotification as getNotificationById, default } from './client';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/notification/notification/delete/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC;AAEpF,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/delete/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 getNotificationById = (client, version, method = 'json') => (args, init) => client[method](...generateParameters(version, args, init));
3
+ export default getNotificationById;
4
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../src/notification/notification/get/client.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAU3D,MAAM,CAAC,MAAM,mBAAmB,GAC5B,CAKI,MAAe,EACf,OAAiB,EACjB,SAAkB,MAAiB,EACrC,EAAE,CACJ,CACI,IAAmC,EACnC,IAAoC,EACO,EAAE,CAC7C,MAAM,CAAC,MAAM,CAAC,CACV,GAAG,kBAAkB,CAAuB,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CACpB,CAAC;AAEzD,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { UnsupportedApiVersion } from '@equinor/fusion-framework-module-services/errors';
2
+ import { ApiVersion } from '@equinor/fusion-framework-module-services/notification';
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,kDAAkD,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC;AAOpF,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 '@equinor/fusion-framework-module-services/notification';
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,wDAAwD,CAAC;AAEpF,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 '@equinor/fusion-framework-module-services/errors';
2
+ import { ApiVersion } from '@equinor/fusion-framework-module-services/notification';
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,kDAAkD,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC;AAOpF,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 '@equinor/fusion-framework-module-services/notification';
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,wDAAwD,CAAC;AAEpF,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 '@equinor/fusion-framework-module-services/errors';
2
+ import { ApiVersion } from '@equinor/fusion-framework-module-services/notification';
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,kDAAkD,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,wDAAwD,CAAC;AAMpF,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