@equinor/fusion-framework-module-services 2.0.7 → 2.2.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 (227) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/esm/bookmarks/client.js +10 -0
  3. package/dist/esm/bookmarks/client.js.map +1 -1
  4. package/dist/esm/bookmarks/delete/client.js +1 -1
  5. package/dist/esm/bookmarks/delete/client.js.map +1 -1
  6. package/dist/esm/bookmarks/getAll/client.js +4 -0
  7. package/dist/esm/bookmarks/getAll/client.js.map +1 -0
  8. package/dist/esm/bookmarks/getAll/generate-endpoint.js +11 -0
  9. package/dist/esm/bookmarks/getAll/generate-endpoint.js.map +1 -0
  10. package/dist/esm/bookmarks/getAll/generate-parameters.js +6 -0
  11. package/dist/esm/bookmarks/getAll/generate-parameters.js.map +1 -0
  12. package/dist/esm/bookmarks/getAll/index.js +5 -0
  13. package/dist/esm/bookmarks/getAll/index.js.map +1 -0
  14. package/dist/esm/bookmarks/getAll/types.js +2 -0
  15. package/dist/esm/bookmarks/getAll/types.js.map +1 -0
  16. package/dist/esm/bookmarks/patch/client.js +4 -0
  17. package/dist/esm/bookmarks/patch/client.js.map +1 -0
  18. package/dist/esm/bookmarks/patch/generate-endpoint.js +11 -0
  19. package/dist/esm/bookmarks/patch/generate-endpoint.js.map +1 -0
  20. package/dist/esm/bookmarks/patch/generate-parameters.js +9 -0
  21. package/dist/esm/bookmarks/patch/generate-parameters.js.map +1 -0
  22. package/dist/esm/bookmarks/patch/index.js +5 -0
  23. package/dist/esm/bookmarks/patch/index.js.map +1 -0
  24. package/dist/esm/bookmarks/patch/types.js +2 -0
  25. package/dist/esm/bookmarks/patch/types.js.map +1 -0
  26. package/dist/esm/bookmarks/post/generate-endpoint.js +1 -5
  27. package/dist/esm/bookmarks/post/generate-endpoint.js.map +1 -1
  28. package/dist/esm/bookmarks/post/generate-parameters.js.map +1 -1
  29. package/dist/esm/notification/api-models.js +2 -0
  30. package/dist/esm/notification/api-models.js.map +1 -0
  31. package/dist/esm/notification/client.js +43 -0
  32. package/dist/esm/notification/client.js.map +1 -0
  33. package/dist/esm/notification/index.js +5 -0
  34. package/dist/esm/notification/index.js.map +1 -0
  35. package/dist/esm/notification/notification/delete/client.js +4 -0
  36. package/dist/esm/notification/notification/delete/client.js.map +1 -0
  37. package/dist/esm/notification/notification/delete/generate-endpoint.js +18 -0
  38. package/dist/esm/notification/notification/delete/generate-endpoint.js.map +1 -0
  39. package/dist/esm/notification/notification/delete/generate-parameters.js +10 -0
  40. package/dist/esm/notification/notification/delete/generate-parameters.js.map +1 -0
  41. package/dist/esm/notification/notification/delete/index.js +6 -0
  42. package/dist/esm/notification/notification/delete/index.js.map +1 -0
  43. package/dist/esm/notification/notification/delete/types.js +2 -0
  44. package/dist/esm/notification/notification/delete/types.js.map +1 -0
  45. package/dist/esm/notification/notification/get/client.js +4 -0
  46. package/dist/esm/notification/notification/get/client.js.map +1 -0
  47. package/dist/esm/notification/notification/get/generate-endpoint.js +18 -0
  48. package/dist/esm/notification/notification/get/generate-endpoint.js.map +1 -0
  49. package/dist/esm/notification/notification/get/generate-parameters.js +7 -0
  50. package/dist/esm/notification/notification/get/generate-parameters.js.map +1 -0
  51. package/dist/esm/notification/notification/get/index.js +6 -0
  52. package/dist/esm/notification/notification/get/index.js.map +1 -0
  53. package/dist/esm/notification/notification/get/types.js +2 -0
  54. package/dist/esm/notification/notification/get/types.js.map +1 -0
  55. package/dist/esm/notification/notification/getAll/client.js +4 -0
  56. package/dist/esm/notification/notification/getAll/client.js.map +1 -0
  57. package/dist/esm/notification/notification/getAll/generate-endpoint.js +18 -0
  58. package/dist/esm/notification/notification/getAll/generate-endpoint.js.map +1 -0
  59. package/dist/esm/notification/notification/getAll/generate-parameters.js +7 -0
  60. package/dist/esm/notification/notification/getAll/generate-parameters.js.map +1 -0
  61. package/dist/esm/notification/notification/getAll/index.js +6 -0
  62. package/dist/esm/notification/notification/getAll/index.js.map +1 -0
  63. package/dist/esm/notification/notification/getAll/types.js +2 -0
  64. package/dist/esm/notification/notification/getAll/types.js.map +1 -0
  65. package/dist/esm/notification/notification/index.js +6 -0
  66. package/dist/esm/notification/notification/index.js.map +1 -0
  67. package/dist/esm/notification/notification/patch/client.js +4 -0
  68. package/dist/esm/notification/notification/patch/client.js.map +1 -0
  69. package/dist/esm/notification/notification/patch/generate-endpoint.js +18 -0
  70. package/dist/esm/notification/notification/patch/generate-endpoint.js.map +1 -0
  71. package/dist/esm/notification/notification/patch/generate-parameters.js +10 -0
  72. package/dist/esm/notification/notification/patch/generate-parameters.js.map +1 -0
  73. package/dist/esm/notification/notification/patch/index.js +6 -0
  74. package/dist/esm/notification/notification/patch/index.js.map +1 -0
  75. package/dist/esm/notification/notification/patch/types.js +2 -0
  76. package/dist/esm/notification/notification/patch/types.js.map +1 -0
  77. package/dist/esm/notification/notification/post/client.js +4 -0
  78. package/dist/esm/notification/notification/post/client.js.map +1 -0
  79. package/dist/esm/notification/notification/post/generate-endpoint.js +18 -0
  80. package/dist/esm/notification/notification/post/generate-endpoint.js.map +1 -0
  81. package/dist/esm/notification/notification/post/generate-parameters.js +10 -0
  82. package/dist/esm/notification/notification/post/generate-parameters.js.map +1 -0
  83. package/dist/esm/notification/notification/post/index.js +6 -0
  84. package/dist/esm/notification/notification/post/index.js.map +1 -0
  85. package/dist/esm/notification/notification/post/types.js +2 -0
  86. package/dist/esm/notification/notification/post/types.js.map +1 -0
  87. package/dist/esm/notification/settings/get/client.js +4 -0
  88. package/dist/esm/notification/settings/get/client.js.map +1 -0
  89. package/dist/esm/notification/settings/get/generate-endpoint.js +18 -0
  90. package/dist/esm/notification/settings/get/generate-endpoint.js.map +1 -0
  91. package/dist/esm/notification/settings/get/generate-parameters.js +7 -0
  92. package/dist/esm/notification/settings/get/generate-parameters.js.map +1 -0
  93. package/dist/esm/notification/settings/get/index.js +6 -0
  94. package/dist/esm/notification/settings/get/index.js.map +1 -0
  95. package/dist/esm/notification/settings/get/types.js +2 -0
  96. package/dist/esm/notification/settings/get/types.js.map +1 -0
  97. package/dist/esm/notification/settings/put/client.js +4 -0
  98. package/dist/esm/notification/settings/put/client.js.map +1 -0
  99. package/dist/esm/notification/settings/put/generate-endpoint.js +18 -0
  100. package/dist/esm/notification/settings/put/generate-endpoint.js.map +1 -0
  101. package/dist/esm/notification/settings/put/generate-parameters.js +10 -0
  102. package/dist/esm/notification/settings/put/generate-parameters.js.map +1 -0
  103. package/dist/esm/notification/settings/put/index.js +6 -0
  104. package/dist/esm/notification/settings/put/index.js.map +1 -0
  105. package/dist/esm/notification/settings/put/types.js +2 -0
  106. package/dist/esm/notification/settings/put/types.js.map +1 -0
  107. package/dist/esm/notification/static.js +6 -0
  108. package/dist/esm/notification/static.js.map +1 -0
  109. package/dist/esm/notification/types.js +2 -0
  110. package/dist/esm/notification/types.js.map +1 -0
  111. package/dist/esm/provider.js +7 -0
  112. package/dist/esm/provider.js.map +1 -1
  113. package/dist/tsconfig.tsbuildinfo +1 -1
  114. package/dist/types/bookmarks/api-models.d.ts +2 -2
  115. package/dist/types/bookmarks/client.d.ts +4 -0
  116. package/dist/types/bookmarks/getAll/client.d.ts +5 -0
  117. package/dist/types/bookmarks/getAll/generate-endpoint.d.ts +1 -0
  118. package/dist/types/bookmarks/getAll/generate-parameters.d.ts +3 -0
  119. package/dist/types/bookmarks/getAll/index.d.ts +4 -0
  120. package/dist/types/bookmarks/getAll/types.d.ts +10 -0
  121. package/dist/types/bookmarks/patch/client.d.ts +5 -0
  122. package/dist/types/bookmarks/patch/generate-endpoint.d.ts +2 -0
  123. package/dist/types/bookmarks/patch/generate-parameters.d.ts +4 -0
  124. package/dist/types/bookmarks/patch/index.d.ts +4 -0
  125. package/dist/types/bookmarks/patch/types.d.ts +19 -0
  126. package/dist/types/bookmarks/post/types.d.ts +2 -3
  127. package/dist/types/notification/api-models.d.ts +54 -0
  128. package/dist/types/notification/client.d.ts +24 -0
  129. package/dist/types/notification/index.d.ts +4 -0
  130. package/dist/types/notification/notification/delete/client.d.ts +5 -0
  131. package/dist/types/notification/notification/delete/generate-endpoint.d.ts +2 -0
  132. package/dist/types/notification/notification/delete/generate-parameters.d.ts +5 -0
  133. package/dist/types/notification/notification/delete/index.d.ts +5 -0
  134. package/dist/types/notification/notification/delete/types.d.ts +21 -0
  135. package/dist/types/notification/notification/get/client.d.ts +5 -0
  136. package/dist/types/notification/notification/get/generate-endpoint.d.ts +2 -0
  137. package/dist/types/notification/notification/get/generate-parameters.d.ts +5 -0
  138. package/dist/types/notification/notification/get/index.d.ts +5 -0
  139. package/dist/types/notification/notification/get/types.d.ts +21 -0
  140. package/dist/types/notification/notification/getAll/client.d.ts +5 -0
  141. package/dist/types/notification/notification/getAll/generate-endpoint.d.ts +2 -0
  142. package/dist/types/notification/notification/getAll/generate-parameters.d.ts +5 -0
  143. package/dist/types/notification/notification/getAll/index.d.ts +5 -0
  144. package/dist/types/notification/notification/getAll/types.d.ts +21 -0
  145. package/dist/types/notification/notification/index.d.ts +5 -0
  146. package/dist/types/notification/notification/patch/client.d.ts +5 -0
  147. package/dist/types/notification/notification/patch/generate-endpoint.d.ts +2 -0
  148. package/dist/types/notification/notification/patch/generate-parameters.d.ts +5 -0
  149. package/dist/types/notification/notification/patch/index.d.ts +5 -0
  150. package/dist/types/notification/notification/patch/types.d.ts +22 -0
  151. package/dist/types/notification/notification/post/client.d.ts +5 -0
  152. package/dist/types/notification/notification/post/generate-endpoint.d.ts +2 -0
  153. package/dist/types/notification/notification/post/generate-parameters.d.ts +5 -0
  154. package/dist/types/notification/notification/post/index.d.ts +5 -0
  155. package/dist/types/notification/notification/post/types.d.ts +33 -0
  156. package/dist/types/notification/settings/get/client.d.ts +5 -0
  157. package/dist/types/notification/settings/get/generate-endpoint.d.ts +2 -0
  158. package/dist/types/notification/settings/get/generate-parameters.d.ts +5 -0
  159. package/dist/types/notification/settings/get/index.d.ts +5 -0
  160. package/dist/types/notification/settings/get/types.d.ts +21 -0
  161. package/dist/types/notification/settings/put/client.d.ts +5 -0
  162. package/dist/types/notification/settings/put/generate-endpoint.d.ts +2 -0
  163. package/dist/types/notification/settings/put/generate-parameters.d.ts +5 -0
  164. package/dist/types/notification/settings/put/index.d.ts +5 -0
  165. package/dist/types/notification/settings/put/types.d.ts +17 -0
  166. package/dist/types/notification/static.d.ts +4 -0
  167. package/dist/types/notification/types.d.ts +1 -0
  168. package/dist/types/provider.d.ts +2 -0
  169. package/package.json +12 -4
  170. package/src/bookmarks/api-models.ts +2 -2
  171. package/src/bookmarks/client.ts +30 -2
  172. package/src/bookmarks/delete/client.ts +1 -1
  173. package/src/bookmarks/getAll/client.ts +30 -0
  174. package/src/bookmarks/getAll/generate-endpoint.ts +15 -0
  175. package/src/bookmarks/getAll/generate-parameters.ts +18 -0
  176. package/src/bookmarks/getAll/index.ts +6 -0
  177. package/src/bookmarks/getAll/types.ts +21 -0
  178. package/src/bookmarks/patch/client.ts +30 -0
  179. package/src/bookmarks/patch/generate-endpoint.ts +18 -0
  180. package/src/bookmarks/patch/generate-parameters.ts +28 -0
  181. package/src/bookmarks/patch/index.ts +6 -0
  182. package/src/bookmarks/patch/types.ts +45 -0
  183. package/src/bookmarks/post/generate-endpoint.ts +1 -5
  184. package/src/bookmarks/post/generate-parameters.ts +0 -2
  185. package/src/bookmarks/post/types.ts +2 -2
  186. package/src/notification/api-models.ts +70 -0
  187. package/src/notification/client.ts +167 -0
  188. package/src/notification/index.ts +6 -0
  189. package/src/notification/notification/delete/client.ts +37 -0
  190. package/src/notification/notification/delete/generate-endpoint.ts +24 -0
  191. package/src/notification/notification/delete/generate-parameters.ts +32 -0
  192. package/src/notification/notification/delete/index.ts +8 -0
  193. package/src/notification/notification/delete/types.ts +44 -0
  194. package/src/notification/notification/get/client.ts +33 -0
  195. package/src/notification/notification/get/generate-endpoint.ts +25 -0
  196. package/src/notification/notification/get/generate-parameters.ts +22 -0
  197. package/src/notification/notification/get/index.ts +8 -0
  198. package/src/notification/notification/get/types.ts +44 -0
  199. package/src/notification/notification/getAll/client.ts +37 -0
  200. package/src/notification/notification/getAll/generate-endpoint.ts +25 -0
  201. package/src/notification/notification/getAll/generate-parameters.ts +22 -0
  202. package/src/notification/notification/getAll/index.ts +8 -0
  203. package/src/notification/notification/getAll/types.ts +44 -0
  204. package/src/notification/notification/index.ts +5 -0
  205. package/src/notification/notification/patch/client.ts +37 -0
  206. package/src/notification/notification/patch/generate-endpoint.ts +24 -0
  207. package/src/notification/notification/patch/generate-parameters.ts +32 -0
  208. package/src/notification/notification/patch/index.ts +8 -0
  209. package/src/notification/notification/patch/types.ts +45 -0
  210. package/src/notification/notification/post/client.ts +37 -0
  211. package/src/notification/notification/post/generate-endpoint.ts +25 -0
  212. package/src/notification/notification/post/generate-parameters.ts +32 -0
  213. package/src/notification/notification/post/index.ts +8 -0
  214. package/src/notification/notification/post/types.ts +57 -0
  215. package/src/notification/settings/get/client.ts +37 -0
  216. package/src/notification/settings/get/generate-endpoint.ts +25 -0
  217. package/src/notification/settings/get/generate-parameters.ts +22 -0
  218. package/src/notification/settings/get/index.ts +8 -0
  219. package/src/notification/settings/get/types.ts +44 -0
  220. package/src/notification/settings/put/client.ts +37 -0
  221. package/src/notification/settings/put/generate-endpoint.ts +25 -0
  222. package/src/notification/settings/put/generate-parameters.ts +34 -0
  223. package/src/notification/settings/put/index.ts +8 -0
  224. package/src/notification/settings/put/types.ts +38 -0
  225. package/src/notification/static.ts +6 -0
  226. package/src/notification/types.ts +5 -0
  227. package/src/provider.ts +8 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
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.2.0 (2023-03-27)
7
+
8
+ ### Features
9
+
10
+ - **services:** Added notification api service ([8a40606](https://github.com/equinor/fusion-framework/commit/8a406068d69903e0d7ebc76079ed12caeac540f1))
11
+
12
+ ## 2.1.0 (2023-03-22)
13
+
14
+ ### Features
15
+
16
+ - added put and getAll endpoints to the bookmark api client ([b9deb40](https://github.com/equinor/fusion-framework/commit/b9deb406460cea2f0fa34eb688d4e427bfb2f9b5))
17
+
18
+ ### Bug Fixes
19
+
20
+ - **pr:** Fixing pr comments ([4ee3fb3](https://github.com/equinor/fusion-framework/commit/4ee3fb3b509c7b7560378e18ee51d9c1759a8685))
21
+
6
22
  ## [2.0.7](https://github.com/equinor/fusion-framework/compare/@equinor/fusion-framework-module-services@2.0.6...@equinor/fusion-framework-module-services@2.0.7) (2023-03-20)
7
23
 
8
24
  **Note:** Version bump only for package @equinor/fusion-framework-module-services
@@ -1,6 +1,8 @@
1
1
  import deleteBookmark from './delete/client';
2
2
  import getBookmark from './get/client';
3
3
  import postBookmark from './post/client';
4
+ import patchBookmark from './patch';
5
+ import getAllBookmarks from './getAll';
4
6
  export class BookmarksApiClient {
5
7
  constructor(_client, _method) {
6
8
  this._client = _client;
@@ -10,10 +12,18 @@ export class BookmarksApiClient {
10
12
  const fn = getBookmark(this._client, version, this._method);
11
13
  return fn(...args);
12
14
  }
15
+ getAll(version) {
16
+ const fn = getAllBookmarks(this._client, version, this._method);
17
+ return fn();
18
+ }
13
19
  post(version, ...args) {
14
20
  const fn = postBookmark(this._client, version, this._method);
15
21
  return fn(...args);
16
22
  }
23
+ patch(version, ...args) {
24
+ const fn = patchBookmark(this._client, version, this._method);
25
+ return fn(...args);
26
+ }
17
27
  delete(version, ...args) {
18
28
  const fn = deleteBookmark(this._client, version, this._method);
19
29
  return fn(...args);
@@ -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;AAEzC,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,CAA6B,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACxF,OAAO,EAAE,CAAU,GAAG,IAAI,CAAC,CAAC;IAChC,CAAC;IAMM,IAAI,CACP,OAAiB,EACjB,GAAG,IAA+E;QAElF,MAAM,EAAE,GAAG,YAAY,CAA6B,IAAI,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QACzF,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;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,4 +1,4 @@
1
1
  import { generateParameters } from './generate-parameters';
2
- export const deleteBookmark = (client, version, method = 'json') => (args, init) => client[method](...generateParameters(version, args, init));
2
+ export const deleteBookmark = (client, version, method = 'fetch') => (args, init) => client[method](...generateParameters(version, args, init));
3
3
  export default deleteBookmark;
4
4
  //# sourceMappingURL=client.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../src/bookmarks/delete/client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAc3D,MAAM,CAAC,MAAM,cAAc,GACvB,CAKI,MAAe,EACf,OAAiB,EACjB,SAAkB,MAAiB,EACrC,EAAE,CACJ,CACI,IAAkC,EAClC,IAA0C,EACO,EAAE,CACnD,MAAM,CAAC,MAAM,CAAC,CACV,GAAG,kBAAkB,CAA6B,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CACpB,CAAC;AAE/D,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../src/bookmarks/delete/client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAc3D,MAAM,CAAC,MAAM,cAAc,GACvB,CAKI,MAAe,EACf,OAAiB,EACjB,SAAkB,OAAkB,EACtC,EAAE,CACJ,CACI,IAAkC,EAClC,IAA0C,EACO,EAAE,CACnD,MAAM,CAAC,MAAM,CAAC,CACV,GAAG,kBAAkB,CAA6B,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CACpB,CAAC;AAE/D,eAAe,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { generateParameters } from './generate-parameters';
2
+ export const getAllBookmarks = (client, version, method = 'json') => (init) => client[method](...generateParameters(version, init));
3
+ export default getAllBookmarks;
4
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../src/bookmarks/getAll/client.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAS3D,MAAM,CAAC,MAAM,eAAe,GACxB,CAKI,MAAe,EACf,OAAiB,EACjB,SAAkB,MAAiB,EACrC,EAAE,CACJ,CACI,IAA0C,EACgB,EAAE,CAC5D,MAAM,CAAC,MAAM,CAAC,CACV,GAAG,kBAAkB,CAA6B,OAAO,EAAE,IAAI,CAAC,CACL,CAAC;AAExE,eAAe,eAAe,CAAC"}
@@ -0,0 +1,11 @@
1
+ export const generateEndpoint = (version) => {
2
+ switch (version) {
3
+ case 'v1':
4
+ default: {
5
+ const params = new URLSearchParams();
6
+ params.append('api-version', version);
7
+ return `persons/me/bookmarks/?${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/getAll/generate-endpoint.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAA+B,OAAiB,EAAE,EAAE;IAChF,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,yBAAyB,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;SACpD;KACJ;AACL,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { generateEndpoint } from './generate-endpoint';
2
+ export const generateParameters = (version, init) => {
3
+ const path = generateEndpoint(version);
4
+ return [path, init];
5
+ };
6
+ //# sourceMappingURL=generate-parameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-parameters.js","sourceRoot":"","sources":["../../../../src/bookmarks/getAll/generate-parameters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAK9B,OAAiB,EACjB,IAA0C,EACN,EAAE;IACtC,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACvC,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACxB,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './types';
2
+ export { getAllBookmarks, 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/getAll/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEpD,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/getAll/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { generateParameters } from './generate-parameters';
2
+ export const putBookmark = (client, version, method = 'json') => (args, init) => client[method](...generateParameters(version, args, init));
3
+ export default putBookmark;
4
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../src/bookmarks/patch/client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAS3D,MAAM,CAAC,MAAM,WAAW,GACpB,CAKI,MAAe,EACf,OAAiB,EACjB,SAAkB,MAAiB,EACrC,EAAE,CACJ,CACI,IAA+B,EAC/B,IAA0C,EACa,EAAE,CACzD,MAAM,CAAC,MAAM,CAAC,CACV,GAAG,kBAAkB,CAA6B,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CACd,CAAC;AAErE,eAAe,WAAW,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 `/bookmarks/${_args.id}?${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/patch/generate-endpoint.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,OAAiB,EACjB,KAAgC,EAClC,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,cAAc,KAAK,CAAC,EAAE,IAAI,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;SACrD;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: 'patch', 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/patch/generate-parameters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAK9B,OAAiB,EACjB,IAA+B,EAC/B,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"}
@@ -0,0 +1,5 @@
1
+ export * from './types';
2
+ export { putBookmark, default } from './client';
3
+ export { generateEndpoint as generatePutEndpoint } from './generate-endpoint';
4
+ export { generateParameters as generatePutParameters } from './generate-parameters';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/bookmarks/patch/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAEhD,OAAO,EAAE,gBAAgB,IAAI,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,kBAAkB,IAAI,qBAAqB,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/patch/types.ts"],"names":[],"mappings":""}
@@ -1,10 +1,6 @@
1
1
  export const generateEndpoint = (version, _args) => {
2
2
  switch (version) {
3
- case 'v1': {
4
- const params = new URLSearchParams();
5
- params.append('api-version', '1.0');
6
- return `/bookmarks?${String(params)}`;
7
- }
3
+ case 'v1':
8
4
  default: {
9
5
  const params = new URLSearchParams();
10
6
  params.append('api-version', version);
@@ -1 +1 @@
1
- {"version":3,"file":"generate-endpoint.js","sourceRoot":"","sources":["../../../../src/bookmarks/post/generate-endpoint.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,OAAiB,EACjB,KAAiC,EACnC,EAAE;IACA,QAAQ,OAAO,EAAE;QACb,KAAK,IAAI,CAAC,CAAC;YACP,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;YACpC,OAAO,cAAc,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;SACzC;QACD,OAAO,CAAC,CAAC;YACL,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;YACrC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;YACtC,OAAO,cAAc,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;SACzC;KACJ;AACL,CAAC,CAAC"}
1
+ {"version":3,"file":"generate-endpoint.js","sourceRoot":"","sources":["../../../../src/bookmarks/post/generate-endpoint.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC5B,OAAiB,EACjB,KAAiC,EACnC,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,cAAc,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;SACzC;KACJ;AACL,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"generate-parameters.js","sourceRoot":"","sources":["../../../../src/bookmarks/post/generate-parameters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAK9B,OAAiB,EACjB,IAAgC,EAChC,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,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"}
1
+ {"version":3,"file":"generate-parameters.js","sourceRoot":"","sources":["../../../../src/bookmarks/post/generate-parameters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAIvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAK9B,OAAiB,EACjB,IAAgC,EAChC,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,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
@@ -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 '@equinor/fusion-framework-module-services/notification';
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,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,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"}