@memori.ai/memori-api-client 6.6.2 → 6.7.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 +7 -0
- package/dist/engine/chatLogs.d.ts +2 -2
- package/dist/engine/chatLogs.js +3 -2
- package/dist/engine/chatLogs.js.map +1 -1
- package/dist/engine.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/types.d.ts +7 -0
- package/esm/engine/chatLogs.d.ts +2 -2
- package/esm/engine/chatLogs.js +3 -2
- package/esm/engine/chatLogs.js.map +1 -1
- package/esm/engine.d.ts +2 -2
- package/esm/index.d.ts +2 -2
- package/esm/types.d.ts +7 -0
- package/package.json +1 -1
- package/src/engine/chatLogs.ts +12 -16
- package/src/types.ts +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [6.7.0](https://github.com/memori-ai/memori-api-client/compare/v6.6.2...v6.7.0) (2025-07-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* new chatlog paged filters ([d3e2891](https://github.com/memori-ai/memori-api-client/commit/d3e2891d708b9bfb17cf9b8fdabe5e9f9d7d6358))
|
|
9
|
+
|
|
3
10
|
## [6.6.2](https://github.com/memori-ai/memori-api-client/compare/v6.6.1...v6.6.2) (2025-07-03)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChatLog, ResponseSpec } from '../types';
|
|
1
|
+
import { ChatLog, ChatLogFilters, ResponseSpec } from '../types';
|
|
2
2
|
declare const _default: (apiUrl: string) => {
|
|
3
3
|
getChatLogs: (sessionId: string, dateFrom?: string, dateTo?: string) => Promise<ResponseSpec & {
|
|
4
4
|
chatLogs: ChatLog[];
|
|
5
5
|
}>;
|
|
6
|
-
getChatLogsPaged: (sessionId: string,
|
|
6
|
+
getChatLogsPaged: (sessionId: string, filters?: ChatLogFilters) => Promise<ResponseSpec & {
|
|
7
7
|
chatLogs: ChatLog[];
|
|
8
8
|
}>;
|
|
9
9
|
getChatLogsByUser: (sessionId: string, dateFrom?: string, dateTo?: string) => Promise<ResponseSpec & {
|
package/dist/engine/chatLogs.js
CHANGED
|
@@ -6,9 +6,10 @@ exports.default = (apiUrl) => ({
|
|
|
6
6
|
method: 'GET',
|
|
7
7
|
apiUrl,
|
|
8
8
|
}),
|
|
9
|
-
getChatLogsPaged: async (sessionId,
|
|
10
|
-
method: '
|
|
9
|
+
getChatLogsPaged: async (sessionId, filters) => (0, apiFetcher_1.apiFetcher)(`/ChatLogsPaged/${sessionId}`, {
|
|
10
|
+
method: 'POST',
|
|
11
11
|
apiUrl,
|
|
12
|
+
body: filters,
|
|
12
13
|
}),
|
|
13
14
|
getChatLogsByUser: async (sessionId, dateFrom, dateTo) => (0, apiFetcher_1.apiFetcher)(`/CurrentUserChatLogs/${sessionId}${dateFrom ? `/${dateFrom}` : ''}${dateFrom && dateTo ? `/${dateTo}` : ''}`, {
|
|
14
15
|
method: 'GET',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatLogs.js","sourceRoot":"","sources":["../../src/engine/chatLogs.ts"],"names":[],"mappings":";;AACA,8CAA2C;AAQ3C,kBAAe,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC;IAOlC,WAAW,EAAE,KAAK,EAAE,SAAiB,EAAE,QAAiB,EAAE,MAAe,EAAE,EAAE,CAC3E,IAAA,uBAAU,EACR,aAAa,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,GACrD,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EACtC,EAAE,EACF;QACE,MAAM,EAAE,KAAK;QACb,MAAM;KACP,CAKF;IAUH,gBAAgB,EAAE,KAAK,
|
|
1
|
+
{"version":3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AE,CACF,IAAA,uBAAU,EACR,iBAAiB,SAAS,IAAI,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,GACnE,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EACtC,EAAE,EACF;QACE,MAAM,EAAE,KAAK;QACb,MAAM;KACP,CAKF;IAQH,cAAc,EAAE,KAAK,EACnB,SAAiB,EACjB,QAAiB,EACjB,MAAe,EACf,EAAE,CACF,IAAA,uBAAU,EACR,aAAa,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,GACrD,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EACtC,EAAE,EACF;QACE,MAAM,EAAE,QAAQ;QAChB,MAAM;KACP,CACuB;IAO5B,aAAa,EAAE,KAAK,EAAE,SAAiB,EAAE,SAAiB,EAAE,EAAE,CAC5D,IAAA,uBAAU,EAAC,YAAY,SAAS,IAAI,SAAS,EAAE,EAAE;QAC/C,MAAM,EAAE,QAAQ;QAChB,MAAM;KACP,CAA0B;CAC9B,CAAC,CAAC"}
|
package/dist/engine.d.ts
CHANGED
|
@@ -192,7 +192,7 @@ declare const _default: (apiUrl: string) => {
|
|
|
192
192
|
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
193
193
|
chatLogs: import("./types").ChatLog[];
|
|
194
194
|
}>;
|
|
195
|
-
getChatLogsPaged: (sessionId: string,
|
|
195
|
+
getChatLogsPaged: (sessionId: string, filters?: import("./types").ChatLogFilters | undefined) => Promise<import("./types").ResponseSpec & {
|
|
196
196
|
chatLogs: import("./types").ChatLog[];
|
|
197
197
|
}>;
|
|
198
198
|
getChatLogsByUser: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
@@ -210,7 +210,7 @@ declare const _default: (apiUrl: string) => {
|
|
|
210
210
|
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
211
211
|
chatLogs: import("./types").ChatLog[];
|
|
212
212
|
}>;
|
|
213
|
-
getChatLogsPaged: (sessionId: string,
|
|
213
|
+
getChatLogsPaged: (sessionId: string, filters?: import("./types").ChatLogFilters | undefined) => Promise<import("./types").ResponseSpec & {
|
|
214
214
|
chatLogs: import("./types").ChatLog[];
|
|
215
215
|
}>;
|
|
216
216
|
getChatLogsByUser: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
package/dist/index.d.ts
CHANGED
|
@@ -201,7 +201,7 @@ declare const api: (backendEndpoint?: string, engineEndpoint?: string) => {
|
|
|
201
201
|
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
202
202
|
chatLogs: import("./types").ChatLog[];
|
|
203
203
|
}>;
|
|
204
|
-
getChatLogsPaged: (sessionId: string,
|
|
204
|
+
getChatLogsPaged: (sessionId: string, filters?: import("./types").ChatLogFilters | undefined) => Promise<import("./types").ResponseSpec & {
|
|
205
205
|
chatLogs: import("./types").ChatLog[];
|
|
206
206
|
}>;
|
|
207
207
|
getChatLogsByUser: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
@@ -219,7 +219,7 @@ declare const api: (backendEndpoint?: string, engineEndpoint?: string) => {
|
|
|
219
219
|
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
220
220
|
chatLogs: import("./types").ChatLog[];
|
|
221
221
|
}>;
|
|
222
|
-
getChatLogsPaged: (sessionId: string,
|
|
222
|
+
getChatLogsPaged: (sessionId: string, filters?: import("./types").ChatLogFilters | undefined) => Promise<import("./types").ResponseSpec & {
|
|
223
223
|
chatLogs: import("./types").ChatLog[];
|
|
224
224
|
}>;
|
|
225
225
|
getChatLogsByUser: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
package/dist/types.d.ts
CHANGED
|
@@ -649,6 +649,13 @@ export declare type ChatLog = {
|
|
|
649
649
|
boardOfExperts?: boolean;
|
|
650
650
|
lines: ChatLogLine[];
|
|
651
651
|
};
|
|
652
|
+
export interface ChatLogFilters {
|
|
653
|
+
strDateFrom?: string;
|
|
654
|
+
strDateTo?: string;
|
|
655
|
+
showChatsWithNoHistory?: boolean;
|
|
656
|
+
from: number;
|
|
657
|
+
howMany: number;
|
|
658
|
+
}
|
|
652
659
|
export declare type Utterance = {
|
|
653
660
|
utteranceID?: string;
|
|
654
661
|
text: string;
|
package/esm/engine/chatLogs.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ChatLog, ResponseSpec } from '../types';
|
|
1
|
+
import { ChatLog, ChatLogFilters, ResponseSpec } from '../types';
|
|
2
2
|
declare const _default: (apiUrl: string) => {
|
|
3
3
|
getChatLogs: (sessionId: string, dateFrom?: string, dateTo?: string) => Promise<ResponseSpec & {
|
|
4
4
|
chatLogs: ChatLog[];
|
|
5
5
|
}>;
|
|
6
|
-
getChatLogsPaged: (sessionId: string,
|
|
6
|
+
getChatLogsPaged: (sessionId: string, filters?: ChatLogFilters) => Promise<ResponseSpec & {
|
|
7
7
|
chatLogs: ChatLog[];
|
|
8
8
|
}>;
|
|
9
9
|
getChatLogsByUser: (sessionId: string, dateFrom?: string, dateTo?: string) => Promise<ResponseSpec & {
|
package/esm/engine/chatLogs.js
CHANGED
|
@@ -4,9 +4,10 @@ export default (apiUrl) => ({
|
|
|
4
4
|
method: 'GET',
|
|
5
5
|
apiUrl,
|
|
6
6
|
}),
|
|
7
|
-
getChatLogsPaged: async (sessionId,
|
|
8
|
-
method: '
|
|
7
|
+
getChatLogsPaged: async (sessionId, filters) => apiFetcher(`/ChatLogsPaged/${sessionId}`, {
|
|
8
|
+
method: 'POST',
|
|
9
9
|
apiUrl,
|
|
10
|
+
body: filters,
|
|
10
11
|
}),
|
|
11
12
|
getChatLogsByUser: async (sessionId, dateFrom, dateTo) => apiFetcher(`/CurrentUserChatLogs/${sessionId}${dateFrom ? `/${dateFrom}` : ''}${dateFrom && dateTo ? `/${dateTo}` : ''}`, {
|
|
12
13
|
method: 'GET',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatLogs.js","sourceRoot":"","sources":["../../src/engine/chatLogs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,eAAe,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC;IAOlC,WAAW,EAAE,KAAK,EAAE,SAAiB,EAAE,QAAiB,EAAE,MAAe,EAAE,EAAE,CAC3E,UAAU,CACR,aAAa,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,GACrD,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EACtC,EAAE,EACF;QACE,MAAM,EAAE,KAAK;QACb,MAAM;KACP,CAKF;IAUH,gBAAgB,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"chatLogs.js","sourceRoot":"","sources":["../../src/engine/chatLogs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,eAAe,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC;IAOlC,WAAW,EAAE,KAAK,EAAE,SAAiB,EAAE,QAAiB,EAAE,MAAe,EAAE,EAAE,CAC3E,UAAU,CACR,aAAa,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,GACrD,QAA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aAAa,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,GACrD,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EACtC,EAAE,EACF;QACE,MAAM,EAAE,QAAQ;QAChB,MAAM;KACP,CACuB;IAO5B,aAAa,EAAE,KAAK,EAAE,SAAiB,EAAE,SAAiB,EAAE,EAAE,CAC5D,UAAU,CAAC,YAAY,SAAS,IAAI,SAAS,EAAE,EAAE;QAC/C,MAAM,EAAE,QAAQ;QAChB,MAAM;KACP,CAA0B;CAC9B,CAAC,CAAC"}
|
package/esm/engine.d.ts
CHANGED
|
@@ -192,7 +192,7 @@ declare const _default: (apiUrl: string) => {
|
|
|
192
192
|
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
193
193
|
chatLogs: import("./types").ChatLog[];
|
|
194
194
|
}>;
|
|
195
|
-
getChatLogsPaged: (sessionId: string,
|
|
195
|
+
getChatLogsPaged: (sessionId: string, filters?: import("./types").ChatLogFilters | undefined) => Promise<import("./types").ResponseSpec & {
|
|
196
196
|
chatLogs: import("./types").ChatLog[];
|
|
197
197
|
}>;
|
|
198
198
|
getChatLogsByUser: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
@@ -210,7 +210,7 @@ declare const _default: (apiUrl: string) => {
|
|
|
210
210
|
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
211
211
|
chatLogs: import("./types").ChatLog[];
|
|
212
212
|
}>;
|
|
213
|
-
getChatLogsPaged: (sessionId: string,
|
|
213
|
+
getChatLogsPaged: (sessionId: string, filters?: import("./types").ChatLogFilters | undefined) => Promise<import("./types").ResponseSpec & {
|
|
214
214
|
chatLogs: import("./types").ChatLog[];
|
|
215
215
|
}>;
|
|
216
216
|
getChatLogsByUser: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
package/esm/index.d.ts
CHANGED
|
@@ -201,7 +201,7 @@ declare const api: (backendEndpoint?: string, engineEndpoint?: string) => {
|
|
|
201
201
|
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
202
202
|
chatLogs: import("./types").ChatLog[];
|
|
203
203
|
}>;
|
|
204
|
-
getChatLogsPaged: (sessionId: string,
|
|
204
|
+
getChatLogsPaged: (sessionId: string, filters?: import("./types").ChatLogFilters | undefined) => Promise<import("./types").ResponseSpec & {
|
|
205
205
|
chatLogs: import("./types").ChatLog[];
|
|
206
206
|
}>;
|
|
207
207
|
getChatLogsByUser: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
@@ -219,7 +219,7 @@ declare const api: (backendEndpoint?: string, engineEndpoint?: string) => {
|
|
|
219
219
|
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
220
220
|
chatLogs: import("./types").ChatLog[];
|
|
221
221
|
}>;
|
|
222
|
-
getChatLogsPaged: (sessionId: string,
|
|
222
|
+
getChatLogsPaged: (sessionId: string, filters?: import("./types").ChatLogFilters | undefined) => Promise<import("./types").ResponseSpec & {
|
|
223
223
|
chatLogs: import("./types").ChatLog[];
|
|
224
224
|
}>;
|
|
225
225
|
getChatLogsByUser: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
package/esm/types.d.ts
CHANGED
|
@@ -649,6 +649,13 @@ export declare type ChatLog = {
|
|
|
649
649
|
boardOfExperts?: boolean;
|
|
650
650
|
lines: ChatLogLine[];
|
|
651
651
|
};
|
|
652
|
+
export interface ChatLogFilters {
|
|
653
|
+
strDateFrom?: string;
|
|
654
|
+
strDateTo?: string;
|
|
655
|
+
showChatsWithNoHistory?: boolean;
|
|
656
|
+
from: number;
|
|
657
|
+
howMany: number;
|
|
658
|
+
}
|
|
652
659
|
export declare type Utterance = {
|
|
653
660
|
utteranceID?: string;
|
|
654
661
|
text: string;
|
package/package.json
CHANGED
package/src/engine/chatLogs.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChatLog, ResponseSpec } from '../types';
|
|
1
|
+
import { ChatLog, ChatLogFilters, ResponseSpec } from '../types';
|
|
2
2
|
import { apiFetcher } from '../apiFetcher';
|
|
3
3
|
|
|
4
4
|
/*************************
|
|
@@ -37,20 +37,12 @@ export default (apiUrl: string) => ({
|
|
|
37
37
|
* @param {number} from The starting index for pagination
|
|
38
38
|
* @param {number} howMany The number of items to retrieve
|
|
39
39
|
*/
|
|
40
|
-
getChatLogsPaged: async (
|
|
41
|
-
sessionId
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
) =>
|
|
47
|
-
apiFetcher(
|
|
48
|
-
`/ChatLogsPaged/${sessionId}/${dateFrom}/${dateTo}/${from}/${howMany}`,
|
|
49
|
-
{
|
|
50
|
-
method: 'GET',
|
|
51
|
-
apiUrl,
|
|
52
|
-
}
|
|
53
|
-
) as Promise<
|
|
40
|
+
getChatLogsPaged: async (sessionId: string, filters?: ChatLogFilters) =>
|
|
41
|
+
apiFetcher(`/ChatLogsPaged/${sessionId}`, {
|
|
42
|
+
method: 'POST',
|
|
43
|
+
apiUrl,
|
|
44
|
+
body: filters,
|
|
45
|
+
}) as Promise<
|
|
54
46
|
ResponseSpec & {
|
|
55
47
|
chatLogs: ChatLog[];
|
|
56
48
|
}
|
|
@@ -62,7 +54,11 @@ export default (apiUrl: string) => ({
|
|
|
62
54
|
* @param {?string} dateFrom The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
|
|
63
55
|
* @param {?string} dateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
|
|
64
56
|
*/
|
|
65
|
-
getChatLogsByUser: async (
|
|
57
|
+
getChatLogsByUser: async (
|
|
58
|
+
sessionId: string,
|
|
59
|
+
dateFrom?: string,
|
|
60
|
+
dateTo?: string
|
|
61
|
+
) =>
|
|
66
62
|
apiFetcher(
|
|
67
63
|
`/CurrentUserChatLogs/${sessionId}${dateFrom ? `/${dateFrom}` : ''}${
|
|
68
64
|
dateFrom && dateTo ? `/${dateTo}` : ''
|
package/src/types.ts
CHANGED
|
@@ -1115,6 +1115,14 @@ export declare type ChatLog = {
|
|
|
1115
1115
|
lines: ChatLogLine[];
|
|
1116
1116
|
};
|
|
1117
1117
|
|
|
1118
|
+
export interface ChatLogFilters {
|
|
1119
|
+
strDateFrom?: string;
|
|
1120
|
+
strDateTo?: string;
|
|
1121
|
+
showChatsWithNoHistory?: boolean;
|
|
1122
|
+
from: number;
|
|
1123
|
+
howMany: number;
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1118
1126
|
export declare type Utterance = {
|
|
1119
1127
|
/**
|
|
1120
1128
|
* Utterance object ID.
|