@memori.ai/memori-api-client 0.8.0 → 0.8.2
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 +19 -0
- package/dist/backend/invitation.d.ts +9 -0
- package/dist/memori-api-client.cjs.development.js +12 -0
- package/dist/memori-api-client.cjs.development.js.map +1 -1
- package/dist/memori-api-client.cjs.production.min.js +1 -1
- package/dist/memori-api-client.cjs.production.min.js.map +1 -1
- package/dist/memori-api-client.esm.js +12 -0
- package/dist/memori-api-client.esm.js.map +1 -1
- package/dist/types.d.ts +17 -0
- package/package.json +1 -1
- package/src/backend/invitation.ts +11 -0
- package/src/types.ts +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [0.8.2](https://github.com/memori-ai/memori-api-client/compare/v0.8.1...v0.8.2) (2023-01-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add getMemoriInvitations api ([22d33a1](https://github.com/memori-ai/memori-api-client/commit/22d33a1c8c3be29e1ee896eaf725cbd3fa7fc37b))
|
|
9
|
+
|
|
10
|
+
## [0.8.1](https://github.com/memori-ai/memori-api-client/compare/v0.8.0...v0.8.1) (2023-01-05)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Changes
|
|
14
|
+
|
|
15
|
+
* add new MemoriSpec attrs ([c96a42e](https://github.com/memori-ai/memori-api-client/commit/c96a42e7a17fd3714c07f7deb70a300fb3770fad))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Maintenance
|
|
19
|
+
|
|
20
|
+
* update dist ([88e7522](https://github.com/memori-ai/memori-api-client/commit/88e752202baac2af89aca4bccfb7d2dd90518a49))
|
|
21
|
+
|
|
3
22
|
## [0.8.0](https://github.com/memori-ai/memori-api-client/compare/v0.7.0...v0.8.0) (2023-01-04)
|
|
4
23
|
|
|
5
24
|
|
|
@@ -8,6 +8,15 @@ declare const _default: (apiUrl: string) => {
|
|
|
8
8
|
getSentInvitations: (authToken: string) => Promise<ResponseSpec & {
|
|
9
9
|
invitations: Invitation[];
|
|
10
10
|
}>;
|
|
11
|
+
/**
|
|
12
|
+
* Gets a list of invitations sent for the specified Memori object
|
|
13
|
+
* @param {string} authToken - The login token
|
|
14
|
+
* @param {string} memoriId - The ID of the Memori object
|
|
15
|
+
* @returns The list of Invitation objects.
|
|
16
|
+
*/
|
|
17
|
+
getMemoriInvitations: (authToken: string, memoriId: string) => Promise<ResponseSpec & {
|
|
18
|
+
invitations: Invitation[];
|
|
19
|
+
}>;
|
|
11
20
|
/**
|
|
12
21
|
* Gets a list of invitations received by the currently logged in User.
|
|
13
22
|
* @param {string} authToken - The login token
|
|
@@ -1014,6 +1014,18 @@ var invitation = (function (apiUrl) {
|
|
|
1014
1014
|
});
|
|
1015
1015
|
},
|
|
1016
1016
|
|
|
1017
|
+
/**
|
|
1018
|
+
* Gets a list of invitations sent for the specified Memori object
|
|
1019
|
+
* @param {string} authToken - The login token
|
|
1020
|
+
* @param {string} memoriId - The ID of the Memori object
|
|
1021
|
+
* @returns The list of Invitation objects.
|
|
1022
|
+
*/
|
|
1023
|
+
getMemoriInvitations: function getMemoriInvitations(authToken, memoriId) {
|
|
1024
|
+
return apiFetcher("/MemoriInvitations/" + authToken + "/" + memoriId, {
|
|
1025
|
+
apiUrl: apiUrl
|
|
1026
|
+
});
|
|
1027
|
+
},
|
|
1028
|
+
|
|
1017
1029
|
/**
|
|
1018
1030
|
* Gets a list of invitations received by the currently logged in User.
|
|
1019
1031
|
* @param {string} authToken - The login token
|