@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.
- package/CHANGELOG.md +16 -0
- package/dist/esm/bookmarks/client.js +10 -0
- package/dist/esm/bookmarks/client.js.map +1 -1
- package/dist/esm/bookmarks/delete/client.js +1 -1
- package/dist/esm/bookmarks/delete/client.js.map +1 -1
- package/dist/esm/bookmarks/getAll/client.js +4 -0
- package/dist/esm/bookmarks/getAll/client.js.map +1 -0
- package/dist/esm/bookmarks/getAll/generate-endpoint.js +11 -0
- package/dist/esm/bookmarks/getAll/generate-endpoint.js.map +1 -0
- package/dist/esm/bookmarks/getAll/generate-parameters.js +6 -0
- package/dist/esm/bookmarks/getAll/generate-parameters.js.map +1 -0
- package/dist/esm/bookmarks/getAll/index.js +5 -0
- package/dist/esm/bookmarks/getAll/index.js.map +1 -0
- package/dist/esm/bookmarks/getAll/types.js +2 -0
- package/dist/esm/bookmarks/getAll/types.js.map +1 -0
- package/dist/esm/bookmarks/patch/client.js +4 -0
- package/dist/esm/bookmarks/patch/client.js.map +1 -0
- package/dist/esm/bookmarks/patch/generate-endpoint.js +11 -0
- package/dist/esm/bookmarks/patch/generate-endpoint.js.map +1 -0
- package/dist/esm/bookmarks/patch/generate-parameters.js +9 -0
- package/dist/esm/bookmarks/patch/generate-parameters.js.map +1 -0
- package/dist/esm/bookmarks/patch/index.js +5 -0
- package/dist/esm/bookmarks/patch/index.js.map +1 -0
- package/dist/esm/bookmarks/patch/types.js +2 -0
- package/dist/esm/bookmarks/patch/types.js.map +1 -0
- package/dist/esm/bookmarks/post/generate-endpoint.js +1 -5
- package/dist/esm/bookmarks/post/generate-endpoint.js.map +1 -1
- package/dist/esm/bookmarks/post/generate-parameters.js.map +1 -1
- package/dist/esm/notification/api-models.js +2 -0
- package/dist/esm/notification/api-models.js.map +1 -0
- package/dist/esm/notification/client.js +43 -0
- package/dist/esm/notification/client.js.map +1 -0
- package/dist/esm/notification/index.js +5 -0
- package/dist/esm/notification/index.js.map +1 -0
- package/dist/esm/notification/notification/delete/client.js +4 -0
- package/dist/esm/notification/notification/delete/client.js.map +1 -0
- package/dist/esm/notification/notification/delete/generate-endpoint.js +18 -0
- package/dist/esm/notification/notification/delete/generate-endpoint.js.map +1 -0
- package/dist/esm/notification/notification/delete/generate-parameters.js +10 -0
- package/dist/esm/notification/notification/delete/generate-parameters.js.map +1 -0
- package/dist/esm/notification/notification/delete/index.js +6 -0
- package/dist/esm/notification/notification/delete/index.js.map +1 -0
- package/dist/esm/notification/notification/delete/types.js +2 -0
- package/dist/esm/notification/notification/delete/types.js.map +1 -0
- package/dist/esm/notification/notification/get/client.js +4 -0
- package/dist/esm/notification/notification/get/client.js.map +1 -0
- package/dist/esm/notification/notification/get/generate-endpoint.js +18 -0
- package/dist/esm/notification/notification/get/generate-endpoint.js.map +1 -0
- package/dist/esm/notification/notification/get/generate-parameters.js +7 -0
- package/dist/esm/notification/notification/get/generate-parameters.js.map +1 -0
- package/dist/esm/notification/notification/get/index.js +6 -0
- package/dist/esm/notification/notification/get/index.js.map +1 -0
- package/dist/esm/notification/notification/get/types.js +2 -0
- package/dist/esm/notification/notification/get/types.js.map +1 -0
- package/dist/esm/notification/notification/getAll/client.js +4 -0
- package/dist/esm/notification/notification/getAll/client.js.map +1 -0
- package/dist/esm/notification/notification/getAll/generate-endpoint.js +18 -0
- package/dist/esm/notification/notification/getAll/generate-endpoint.js.map +1 -0
- package/dist/esm/notification/notification/getAll/generate-parameters.js +7 -0
- package/dist/esm/notification/notification/getAll/generate-parameters.js.map +1 -0
- package/dist/esm/notification/notification/getAll/index.js +6 -0
- package/dist/esm/notification/notification/getAll/index.js.map +1 -0
- package/dist/esm/notification/notification/getAll/types.js +2 -0
- package/dist/esm/notification/notification/getAll/types.js.map +1 -0
- package/dist/esm/notification/notification/index.js +6 -0
- package/dist/esm/notification/notification/index.js.map +1 -0
- package/dist/esm/notification/notification/patch/client.js +4 -0
- package/dist/esm/notification/notification/patch/client.js.map +1 -0
- package/dist/esm/notification/notification/patch/generate-endpoint.js +18 -0
- package/dist/esm/notification/notification/patch/generate-endpoint.js.map +1 -0
- package/dist/esm/notification/notification/patch/generate-parameters.js +10 -0
- package/dist/esm/notification/notification/patch/generate-parameters.js.map +1 -0
- package/dist/esm/notification/notification/patch/index.js +6 -0
- package/dist/esm/notification/notification/patch/index.js.map +1 -0
- package/dist/esm/notification/notification/patch/types.js +2 -0
- package/dist/esm/notification/notification/patch/types.js.map +1 -0
- package/dist/esm/notification/notification/post/client.js +4 -0
- package/dist/esm/notification/notification/post/client.js.map +1 -0
- package/dist/esm/notification/notification/post/generate-endpoint.js +18 -0
- package/dist/esm/notification/notification/post/generate-endpoint.js.map +1 -0
- package/dist/esm/notification/notification/post/generate-parameters.js +10 -0
- package/dist/esm/notification/notification/post/generate-parameters.js.map +1 -0
- package/dist/esm/notification/notification/post/index.js +6 -0
- package/dist/esm/notification/notification/post/index.js.map +1 -0
- package/dist/esm/notification/notification/post/types.js +2 -0
- package/dist/esm/notification/notification/post/types.js.map +1 -0
- package/dist/esm/notification/settings/get/client.js +4 -0
- package/dist/esm/notification/settings/get/client.js.map +1 -0
- package/dist/esm/notification/settings/get/generate-endpoint.js +18 -0
- package/dist/esm/notification/settings/get/generate-endpoint.js.map +1 -0
- package/dist/esm/notification/settings/get/generate-parameters.js +7 -0
- package/dist/esm/notification/settings/get/generate-parameters.js.map +1 -0
- package/dist/esm/notification/settings/get/index.js +6 -0
- package/dist/esm/notification/settings/get/index.js.map +1 -0
- package/dist/esm/notification/settings/get/types.js +2 -0
- package/dist/esm/notification/settings/get/types.js.map +1 -0
- package/dist/esm/notification/settings/put/client.js +4 -0
- package/dist/esm/notification/settings/put/client.js.map +1 -0
- package/dist/esm/notification/settings/put/generate-endpoint.js +18 -0
- package/dist/esm/notification/settings/put/generate-endpoint.js.map +1 -0
- package/dist/esm/notification/settings/put/generate-parameters.js +10 -0
- package/dist/esm/notification/settings/put/generate-parameters.js.map +1 -0
- package/dist/esm/notification/settings/put/index.js +6 -0
- package/dist/esm/notification/settings/put/index.js.map +1 -0
- package/dist/esm/notification/settings/put/types.js +2 -0
- package/dist/esm/notification/settings/put/types.js.map +1 -0
- package/dist/esm/notification/static.js +6 -0
- package/dist/esm/notification/static.js.map +1 -0
- package/dist/esm/notification/types.js +2 -0
- package/dist/esm/notification/types.js.map +1 -0
- package/dist/esm/provider.js +7 -0
- package/dist/esm/provider.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/bookmarks/api-models.d.ts +2 -2
- package/dist/types/bookmarks/client.d.ts +4 -0
- package/dist/types/bookmarks/getAll/client.d.ts +5 -0
- package/dist/types/bookmarks/getAll/generate-endpoint.d.ts +1 -0
- package/dist/types/bookmarks/getAll/generate-parameters.d.ts +3 -0
- package/dist/types/bookmarks/getAll/index.d.ts +4 -0
- package/dist/types/bookmarks/getAll/types.d.ts +10 -0
- package/dist/types/bookmarks/patch/client.d.ts +5 -0
- package/dist/types/bookmarks/patch/generate-endpoint.d.ts +2 -0
- package/dist/types/bookmarks/patch/generate-parameters.d.ts +4 -0
- package/dist/types/bookmarks/patch/index.d.ts +4 -0
- package/dist/types/bookmarks/patch/types.d.ts +19 -0
- package/dist/types/bookmarks/post/types.d.ts +2 -3
- package/dist/types/notification/api-models.d.ts +54 -0
- package/dist/types/notification/client.d.ts +24 -0
- package/dist/types/notification/index.d.ts +4 -0
- package/dist/types/notification/notification/delete/client.d.ts +5 -0
- package/dist/types/notification/notification/delete/generate-endpoint.d.ts +2 -0
- package/dist/types/notification/notification/delete/generate-parameters.d.ts +5 -0
- package/dist/types/notification/notification/delete/index.d.ts +5 -0
- package/dist/types/notification/notification/delete/types.d.ts +21 -0
- package/dist/types/notification/notification/get/client.d.ts +5 -0
- package/dist/types/notification/notification/get/generate-endpoint.d.ts +2 -0
- package/dist/types/notification/notification/get/generate-parameters.d.ts +5 -0
- package/dist/types/notification/notification/get/index.d.ts +5 -0
- package/dist/types/notification/notification/get/types.d.ts +21 -0
- package/dist/types/notification/notification/getAll/client.d.ts +5 -0
- package/dist/types/notification/notification/getAll/generate-endpoint.d.ts +2 -0
- package/dist/types/notification/notification/getAll/generate-parameters.d.ts +5 -0
- package/dist/types/notification/notification/getAll/index.d.ts +5 -0
- package/dist/types/notification/notification/getAll/types.d.ts +21 -0
- package/dist/types/notification/notification/index.d.ts +5 -0
- package/dist/types/notification/notification/patch/client.d.ts +5 -0
- package/dist/types/notification/notification/patch/generate-endpoint.d.ts +2 -0
- package/dist/types/notification/notification/patch/generate-parameters.d.ts +5 -0
- package/dist/types/notification/notification/patch/index.d.ts +5 -0
- package/dist/types/notification/notification/patch/types.d.ts +22 -0
- package/dist/types/notification/notification/post/client.d.ts +5 -0
- package/dist/types/notification/notification/post/generate-endpoint.d.ts +2 -0
- package/dist/types/notification/notification/post/generate-parameters.d.ts +5 -0
- package/dist/types/notification/notification/post/index.d.ts +5 -0
- package/dist/types/notification/notification/post/types.d.ts +33 -0
- package/dist/types/notification/settings/get/client.d.ts +5 -0
- package/dist/types/notification/settings/get/generate-endpoint.d.ts +2 -0
- package/dist/types/notification/settings/get/generate-parameters.d.ts +5 -0
- package/dist/types/notification/settings/get/index.d.ts +5 -0
- package/dist/types/notification/settings/get/types.d.ts +21 -0
- package/dist/types/notification/settings/put/client.d.ts +5 -0
- package/dist/types/notification/settings/put/generate-endpoint.d.ts +2 -0
- package/dist/types/notification/settings/put/generate-parameters.d.ts +5 -0
- package/dist/types/notification/settings/put/index.d.ts +5 -0
- package/dist/types/notification/settings/put/types.d.ts +17 -0
- package/dist/types/notification/static.d.ts +4 -0
- package/dist/types/notification/types.d.ts +1 -0
- package/dist/types/provider.d.ts +2 -0
- package/package.json +12 -4
- package/src/bookmarks/api-models.ts +2 -2
- package/src/bookmarks/client.ts +30 -2
- package/src/bookmarks/delete/client.ts +1 -1
- package/src/bookmarks/getAll/client.ts +30 -0
- package/src/bookmarks/getAll/generate-endpoint.ts +15 -0
- package/src/bookmarks/getAll/generate-parameters.ts +18 -0
- package/src/bookmarks/getAll/index.ts +6 -0
- package/src/bookmarks/getAll/types.ts +21 -0
- package/src/bookmarks/patch/client.ts +30 -0
- package/src/bookmarks/patch/generate-endpoint.ts +18 -0
- package/src/bookmarks/patch/generate-parameters.ts +28 -0
- package/src/bookmarks/patch/index.ts +6 -0
- package/src/bookmarks/patch/types.ts +45 -0
- package/src/bookmarks/post/generate-endpoint.ts +1 -5
- package/src/bookmarks/post/generate-parameters.ts +0 -2
- package/src/bookmarks/post/types.ts +2 -2
- package/src/notification/api-models.ts +70 -0
- package/src/notification/client.ts +167 -0
- package/src/notification/index.ts +6 -0
- package/src/notification/notification/delete/client.ts +37 -0
- package/src/notification/notification/delete/generate-endpoint.ts +24 -0
- package/src/notification/notification/delete/generate-parameters.ts +32 -0
- package/src/notification/notification/delete/index.ts +8 -0
- package/src/notification/notification/delete/types.ts +44 -0
- package/src/notification/notification/get/client.ts +33 -0
- package/src/notification/notification/get/generate-endpoint.ts +25 -0
- package/src/notification/notification/get/generate-parameters.ts +22 -0
- package/src/notification/notification/get/index.ts +8 -0
- package/src/notification/notification/get/types.ts +44 -0
- package/src/notification/notification/getAll/client.ts +37 -0
- package/src/notification/notification/getAll/generate-endpoint.ts +25 -0
- package/src/notification/notification/getAll/generate-parameters.ts +22 -0
- package/src/notification/notification/getAll/index.ts +8 -0
- package/src/notification/notification/getAll/types.ts +44 -0
- package/src/notification/notification/index.ts +5 -0
- package/src/notification/notification/patch/client.ts +37 -0
- package/src/notification/notification/patch/generate-endpoint.ts +24 -0
- package/src/notification/notification/patch/generate-parameters.ts +32 -0
- package/src/notification/notification/patch/index.ts +8 -0
- package/src/notification/notification/patch/types.ts +45 -0
- package/src/notification/notification/post/client.ts +37 -0
- package/src/notification/notification/post/generate-endpoint.ts +25 -0
- package/src/notification/notification/post/generate-parameters.ts +32 -0
- package/src/notification/notification/post/index.ts +8 -0
- package/src/notification/notification/post/types.ts +57 -0
- package/src/notification/settings/get/client.ts +37 -0
- package/src/notification/settings/get/generate-endpoint.ts +25 -0
- package/src/notification/settings/get/generate-parameters.ts +22 -0
- package/src/notification/settings/get/index.ts +8 -0
- package/src/notification/settings/get/types.ts +44 -0
- package/src/notification/settings/put/client.ts +37 -0
- package/src/notification/settings/put/generate-endpoint.ts +25 -0
- package/src/notification/settings/put/generate-parameters.ts +34 -0
- package/src/notification/settings/put/index.ts +8 -0
- package/src/notification/settings/put/types.ts +38 -0
- package/src/notification/static.ts +6 -0
- package/src/notification/types.ts +5 -0
- 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;
|
|
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 = '
|
|
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,
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/bookmarks/getAll/types.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
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
|
|
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;
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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"}
|