@memori.ai/memori-api-client 0.4.5 → 0.5.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/dist/backend/memori.d.ts +7 -0
- package/dist/memori-api-client.cjs.development.js +13 -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 +13 -0
- package/dist/memori-api-client.esm.js.map +1 -1
- package/package.json +15 -14
- package/src/backend/memori.ts +12 -0
package/package.json
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.5.0",
|
|
3
|
+
"name": "@memori.ai/memori-api-client",
|
|
4
|
+
"description": "React library to integrate a Memori in your app or website",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"homepage": "https://github.com/memori-ai/memori-api-client#readme",
|
|
7
|
+
"bugs": "https://github.com/memori-ai/memori-api-client/issues",
|
|
8
|
+
"repository": "https://github.com/memori-ai/memori-api-client.git",
|
|
9
|
+
"keywords": [
|
|
10
|
+
"memori",
|
|
11
|
+
"memori-ai",
|
|
12
|
+
"conversational-ai",
|
|
13
|
+
"api-client",
|
|
14
|
+
"api-wrapper"
|
|
15
|
+
],
|
|
16
|
+
"author": "Memori Srl",
|
|
3
17
|
"main": "dist/index.js",
|
|
4
18
|
"typings": "dist/index.d.ts",
|
|
5
19
|
"files": [
|
|
@@ -24,17 +38,6 @@
|
|
|
24
38
|
"prerelase": "tsdx build && git add . && git commit -m 'chore: update dist'",
|
|
25
39
|
"release": "release-it"
|
|
26
40
|
},
|
|
27
|
-
"license": "Apache-2.0",
|
|
28
|
-
"homepage": "https://github.com/memori-ai/memori-api-client#readme",
|
|
29
|
-
"bugs": "https://github.com/memori-ai/memori-api-client/issues",
|
|
30
|
-
"repository": "https://github.com/memori-ai/memori-api-client.git",
|
|
31
|
-
"keywords": [
|
|
32
|
-
"memori",
|
|
33
|
-
"memori-ai",
|
|
34
|
-
"conversational-ai",
|
|
35
|
-
"api-client",
|
|
36
|
-
"api-wrapper"
|
|
37
|
-
],
|
|
38
41
|
"peerDependencies": {},
|
|
39
42
|
"husky": {
|
|
40
43
|
"hooks": {
|
|
@@ -48,8 +51,6 @@
|
|
|
48
51
|
"endOfLine": "lf",
|
|
49
52
|
"trailingComma": "es5"
|
|
50
53
|
},
|
|
51
|
-
"name": "@memori.ai/memori-api-client",
|
|
52
|
-
"author": "Memori Srl",
|
|
53
54
|
"module": "dist/memori-api-client.esm.js",
|
|
54
55
|
"size-limit": [
|
|
55
56
|
{
|
package/src/backend/memori.ts
CHANGED
|
@@ -243,4 +243,16 @@ export default (apiUrl: string) => ({
|
|
|
243
243
|
body: memori,
|
|
244
244
|
method: 'POST',
|
|
245
245
|
}) as Promise<ResponseSpec>,
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Signals that the content of a Memori object has been updated.
|
|
249
|
+
* Consequently, a run of the Content Quality Job will be scheduled as soon as possible.
|
|
250
|
+
* @param {string} authToken - The login token
|
|
251
|
+
* @param {string} memoriID - The ID of the Memori object
|
|
252
|
+
*/
|
|
253
|
+
memoriContentUpdated: (authToken: string, memoriID: string) =>
|
|
254
|
+
apiFetcher(`/MemoriContentUpdated/${authToken}/${memoriID}`, {
|
|
255
|
+
apiUrl,
|
|
256
|
+
method: 'POST',
|
|
257
|
+
}) as Promise<ResponseSpec>,
|
|
246
258
|
});
|