@memori.ai/memori-api-client 0.8.1 → 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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.8.1",
2
+ "version": "0.8.2",
3
3
  "name": "@memori.ai/memori-api-client",
4
4
  "description": "React library to integrate a Memori in your app or website",
5
5
  "license": "Apache-2.0",
@@ -12,6 +12,17 @@ export default (apiUrl: string) => ({
12
12
  apiUrl,
13
13
  }) as Promise<ResponseSpec & { invitations: Invitation[] }>,
14
14
 
15
+ /**
16
+ * Gets a list of invitations sent for the specified Memori object
17
+ * @param {string} authToken - The login token
18
+ * @param {string} memoriId - The ID of the Memori object
19
+ * @returns The list of Invitation objects.
20
+ */
21
+ getMemoriInvitations: (authToken: string, memoriId: string) =>
22
+ apiFetcher(`/MemoriInvitations/${authToken}/${memoriId}`, {
23
+ apiUrl,
24
+ }) as Promise<ResponseSpec & { invitations: Invitation[] }>,
25
+
15
26
  /**
16
27
  * Gets a list of invitations received by the currently logged in User.
17
28
  * @param {string} authToken - The login token