@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/CHANGELOG.md +7 -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/package.json +1 -1
- package/src/backend/invitation.ts +11 -0
package/package.json
CHANGED
|
@@ -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
|