@memori.ai/memori-api-client 0.10.2 → 0.11.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 CHANGED
@@ -1,5 +1,19 @@
1
1
 
2
2
 
3
+ ## [0.11.0](https://github.com/memori-ai/memori-api-client/compare/v0.10.3...v0.11.0) (2023-02-01)
4
+
5
+
6
+ ### Features
7
+
8
+ * update apis + types ([7c412d5](https://github.com/memori-ai/memori-api-client/commit/7c412d515af76a386642a50f3a9d73d148e37b56))
9
+
10
+ ## [0.10.3](https://github.com/memori-ai/memori-api-client/compare/v0.10.2...v0.10.3) (2023-01-23)
11
+
12
+
13
+ ### Features
14
+
15
+ * add completion flag in dialog state ([9d7b417](https://github.com/memori-ai/memori-api-client/commit/9d7b4170fe1bbfe575cd9dff1165ad01525e898c))
16
+
3
17
  ## [0.10.2](https://github.com/memori-ai/memori-api-client/compare/v0.10.1...v0.10.2) (2023-01-20)
4
18
 
5
19
 
@@ -9,6 +9,14 @@ declare const _default: (apiUrl: string) => {
9
9
  getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<ResponseSpec & {
10
10
  chatLogs: ChatLog[];
11
11
  }>;
12
+ /**
13
+ * Gets the Chat Log objects for the Memori of the current session recorded during a specific other session.
14
+ * @param {string} sessionId The session ID
15
+ * @param {string} chatLogSessionID The session ID for which Chat Log objects are being searched
16
+ */
17
+ getSessionChatLogs: (sessionId: string, chatLogSessionID: string) => Promise<ResponseSpec & {
18
+ chatLogs: ChatLog[];
19
+ }>;
12
20
  /**
13
21
  * Removes all Chat Log objects in a specific date internval.
14
22
  * @param {string} sessionId The session ID
@@ -1,10 +1,22 @@
1
- import { ResponseSpec } from '../types';
1
+ import { ResponseSpec, CorrelationPair } from '../types';
2
2
  declare const _default: (apiUrl: string) => {
3
3
  /**
4
4
  * Lists all Correlation Pair objects.
5
5
  * @param {string} sessionId The session ID
6
+ * @param {number=} from The starting index
7
+ * @param {number=} howMany The number of items to return
6
8
  */
7
- getCorrelationPairs: (sessionId: string) => Promise<ResponseSpec>;
9
+ getCorrelationPairs: (sessionId: string, from?: number | undefined, howMany?: number | undefined) => Promise<ResponseSpec & {
10
+ correlationPairs: CorrelationPair[];
11
+ }>;
12
+ /**
13
+ * Adds a new Correlation Pair object.
14
+ * @param {string} sessionId The session ID
15
+ * @param {CorrelationPair} correlationPair The Correlation Pair object
16
+ */
17
+ postCorrelationPair: (sessionId: string, correlationPair: CorrelationPair) => Promise<ResponseSpec & {
18
+ correlationPair: CorrelationPair;
19
+ }>;
8
20
  /**
9
21
  * Removes an existing Correlation Pair object.
10
22
  * @param {string} sessionId The session ID
@@ -1,40 +1,4 @@
1
- import { ResponseSpec } from '../types';
2
- export interface ImportCSVParams {
3
- includedRows?: number[];
4
- hasHeaders?: boolean;
5
- headerNames?: string[];
6
- forceImport?: boolean;
7
- questionColumnName: string;
8
- answerColumnName: string;
9
- contextVarsToMatchColumnName?: string;
10
- contextVarsToSetColumnName?: string;
11
- csvSeparator?: string;
12
- questionTitleVariantsSeparator?: string;
13
- }
14
- export interface ExportCSVParams {
15
- newLine: '\n' | '\r\n';
16
- hasHeaders?: boolean;
17
- questionColumnName: string;
18
- answerColumnName: string;
19
- contextVarsToMatchColumnName?: string;
20
- contextVarsToSetColumnName?: string;
21
- csvSeparator?: string;
22
- questionTitleVariantsSeparator?: string;
23
- }
24
- export interface ImportReponse {
25
- importID: string;
26
- importedMemories?: number;
27
- importWarnings?: {
28
- warningType: 'Existing Similar Memory' | 'Internal Error';
29
- rowNumber?: number;
30
- csvRow: string;
31
- text?: string;
32
- similarTexts?: {
33
- text: string;
34
- similarityLevel: 'HIGH' | 'MEDIUM' | 'LOW';
35
- }[];
36
- }[];
37
- }
1
+ import { ResponseSpec, ImportReponse, ImportCSVParams, ExportCSVParams } from '../types';
38
2
  declare const _default: (apiUrl: string) => {
39
3
  /**
40
4
  * Imports memories from a CSV file.
@@ -3,8 +3,9 @@ declare const _default: (apiUrl: string) => {
3
3
  /**
4
4
  * Lists all Memory objects.
5
5
  * @param {string} sessionId The session ID
6
+ * @param {string=} type Optional type of the Memory objects to list: ALL, CONTENTS, DEFAULTS, DRAFTS
6
7
  */
7
- getMemories: (sessionId: string) => Promise<ResponseSpec & {
8
+ getMemories: (sessionId: string, type?: "ALL" | "CONTENTS" | "DEFAULTS" | "DRAFTS" | undefined) => Promise<ResponseSpec & {
8
9
  memories: Memory[];
9
10
  }>;
10
11
  /**
@@ -12,7 +13,7 @@ declare const _default: (apiUrl: string) => {
12
13
  * @param {string} sessionId The session ID
13
14
  * @param {number} from The starting index
14
15
  * @param {number} howMany The number of items to return
15
- * @param {string=} type Optional type of the Memory objects to list: ALL, CONTENTS, DEFAULTS
16
+ * @param {string=} type Optional type of the Memory objects to list: ALL, CONTENTS, DEFAULTS, DRAFTS
16
17
  */
17
18
  getMemoriesPaginated: (sessionId: string, from: number, howMany: number, type?: "ALL" | "CONTENTS" | "DEFAULTS" | "DRAFTS" | undefined) => Promise<ResponseSpec & {
18
19
  count: number;
@@ -43,7 +44,7 @@ declare const _default: (apiUrl: string) => {
43
44
  * @param {string} sessionId The session ID
44
45
  * @param {Memory} memory The Memory object
45
46
  */
46
- postMemory: (sessionId: string, memory: Memory) => Promise<ResponseSpec & {
47
+ postMemory: (sessionId: string, memory: Omit<Memory, 'memoryID'>) => Promise<ResponseSpec & {
47
48
  memoryID: string;
48
49
  }>;
49
50
  /**
@@ -15,6 +15,14 @@ declare const _default: (apiUrl: string) => {
15
15
  count: number;
16
16
  unansweredQuestions: UnansweredQuestion[];
17
17
  }>;
18
+ /**
19
+ * Adds a new Unanswered Question object.
20
+ * @param {string} sessionId The session ID
21
+ * @param {UnansweredQuestion} unansweredQuestion The Unanswered Question object
22
+ */
23
+ postUnansweredQuestion: (sessionId: string, unansweredQuestion: UnansweredQuestion) => Promise<ResponseSpec & {
24
+ unansweredQuestion: UnansweredQuestion;
25
+ }>;
18
26
  /**
19
27
  * Removes an existing Unanswered Question object.
20
28
  * @param {string} sessionId The session ID
@@ -1227,14 +1227,16 @@ var correlationPairs = (function (apiUrl) {
1227
1227
  /**
1228
1228
  * Lists all Correlation Pair objects.
1229
1229
  * @param {string} sessionId The session ID
1230
+ * @param {number=} from The starting index
1231
+ * @param {number=} howMany The number of items to return
1230
1232
  */
1231
1233
  getCorrelationPairs: function () {
1232
- var _getCorrelationPairs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sessionId) {
1234
+ var _getCorrelationPairs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sessionId, from, howMany) {
1233
1235
  return _regeneratorRuntime().wrap(function _callee$(_context) {
1234
1236
  while (1) {
1235
1237
  switch (_context.prev = _context.next) {
1236
1238
  case 0:
1237
- return _context.abrupt("return", apiFetcher("/CorrelationPairs/" + sessionId, {
1239
+ return _context.abrupt("return", apiFetcher("/CorrelationPairs/" + sessionId + (from ? "/" + from + (howMany ? "/" + howMany : '') : ''), {
1238
1240
  method: 'GET',
1239
1241
  apiUrl: apiUrl
1240
1242
  }));
@@ -1247,7 +1249,7 @@ var correlationPairs = (function (apiUrl) {
1247
1249
  }, _callee);
1248
1250
  }));
1249
1251
 
1250
- function getCorrelationPairs(_x) {
1252
+ function getCorrelationPairs(_x, _x2, _x3) {
1251
1253
  return _getCorrelationPairs.apply(this, arguments);
1252
1254
  }
1253
1255
 
@@ -1255,19 +1257,20 @@ var correlationPairs = (function (apiUrl) {
1255
1257
  }(),
1256
1258
 
1257
1259
  /**
1258
- * Removes an existing Correlation Pair object.
1260
+ * Adds a new Correlation Pair object.
1259
1261
  * @param {string} sessionId The session ID
1260
- * @param {string} pairId The Correlation Pair object ID
1262
+ * @param {CorrelationPair} correlationPair The Correlation Pair object
1261
1263
  */
1262
- deleteCorrelationPair: function () {
1263
- var _deleteCorrelationPair = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, pairId) {
1264
+ postCorrelationPair: function () {
1265
+ var _postCorrelationPair = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, correlationPair) {
1264
1266
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1265
1267
  while (1) {
1266
1268
  switch (_context2.prev = _context2.next) {
1267
1269
  case 0:
1268
- return _context2.abrupt("return", apiFetcher("/CorrelationPair/" + sessionId + "/" + pairId, {
1269
- method: 'GET',
1270
- apiUrl: apiUrl
1270
+ return _context2.abrupt("return", apiFetcher("/CorrelationPair/" + sessionId, {
1271
+ method: 'POST',
1272
+ apiUrl: apiUrl,
1273
+ body: correlationPair
1271
1274
  }));
1272
1275
 
1273
1276
  case 1:
@@ -1278,7 +1281,38 @@ var correlationPairs = (function (apiUrl) {
1278
1281
  }, _callee2);
1279
1282
  }));
1280
1283
 
1281
- function deleteCorrelationPair(_x2, _x3) {
1284
+ function postCorrelationPair(_x4, _x5) {
1285
+ return _postCorrelationPair.apply(this, arguments);
1286
+ }
1287
+
1288
+ return postCorrelationPair;
1289
+ }(),
1290
+
1291
+ /**
1292
+ * Removes an existing Correlation Pair object.
1293
+ * @param {string} sessionId The session ID
1294
+ * @param {string} pairId The Correlation Pair object ID
1295
+ */
1296
+ deleteCorrelationPair: function () {
1297
+ var _deleteCorrelationPair = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sessionId, pairId) {
1298
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
1299
+ while (1) {
1300
+ switch (_context3.prev = _context3.next) {
1301
+ case 0:
1302
+ return _context3.abrupt("return", apiFetcher("/CorrelationPair/" + sessionId + "/" + pairId, {
1303
+ method: 'DELETE',
1304
+ apiUrl: apiUrl
1305
+ }));
1306
+
1307
+ case 1:
1308
+ case "end":
1309
+ return _context3.stop();
1310
+ }
1311
+ }
1312
+ }, _callee3);
1313
+ }));
1314
+
1315
+ function deleteCorrelationPair(_x6, _x7) {
1282
1316
  return _deleteCorrelationPair.apply(this, arguments);
1283
1317
  }
1284
1318
 
@@ -2358,14 +2392,15 @@ var memories = (function (apiUrl) {
2358
2392
  /**
2359
2393
  * Lists all Memory objects.
2360
2394
  * @param {string} sessionId The session ID
2395
+ * @param {string=} type Optional type of the Memory objects to list: ALL, CONTENTS, DEFAULTS, DRAFTS
2361
2396
  */
2362
2397
  getMemories: function () {
2363
- var _getMemories = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sessionId) {
2398
+ var _getMemories = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sessionId, type) {
2364
2399
  return _regeneratorRuntime().wrap(function _callee$(_context) {
2365
2400
  while (1) {
2366
2401
  switch (_context.prev = _context.next) {
2367
2402
  case 0:
2368
- return _context.abrupt("return", apiFetcher("/Memories/" + sessionId, {
2403
+ return _context.abrupt("return", apiFetcher("/Memories/" + sessionId + (type ? "/" + type : ''), {
2369
2404
  method: 'GET',
2370
2405
  apiUrl: apiUrl
2371
2406
  }));
@@ -2378,7 +2413,7 @@ var memories = (function (apiUrl) {
2378
2413
  }, _callee);
2379
2414
  }));
2380
2415
 
2381
- function getMemories(_x) {
2416
+ function getMemories(_x, _x2) {
2382
2417
  return _getMemories.apply(this, arguments);
2383
2418
  }
2384
2419
 
@@ -2390,7 +2425,7 @@ var memories = (function (apiUrl) {
2390
2425
  * @param {string} sessionId The session ID
2391
2426
  * @param {number} from The starting index
2392
2427
  * @param {number} howMany The number of items to return
2393
- * @param {string=} type Optional type of the Memory objects to list: ALL, CONTENTS, DEFAULTS
2428
+ * @param {string=} type Optional type of the Memory objects to list: ALL, CONTENTS, DEFAULTS, DRAFTS
2394
2429
  */
2395
2430
  getMemoriesPaginated: function () {
2396
2431
  var _getMemoriesPaginated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, from, howMany, type) {
@@ -2411,7 +2446,7 @@ var memories = (function (apiUrl) {
2411
2446
  }, _callee2);
2412
2447
  }));
2413
2448
 
2414
- function getMemoriesPaginated(_x2, _x3, _x4, _x5) {
2449
+ function getMemoriesPaginated(_x3, _x4, _x5, _x6) {
2415
2450
  return _getMemoriesPaginated.apply(this, arguments);
2416
2451
  }
2417
2452
 
@@ -2442,7 +2477,7 @@ var memories = (function (apiUrl) {
2442
2477
  }, _callee3);
2443
2478
  }));
2444
2479
 
2445
- function getMemory(_x6, _x7) {
2480
+ function getMemory(_x7, _x8) {
2446
2481
  return _getMemory.apply(this, arguments);
2447
2482
  }
2448
2483
 
@@ -2474,7 +2509,7 @@ var memories = (function (apiUrl) {
2474
2509
  }, _callee4);
2475
2510
  }));
2476
2511
 
2477
- function patchMemory(_x8, _x9) {
2512
+ function patchMemory(_x9, _x10) {
2478
2513
  return _patchMemory.apply(this, arguments);
2479
2514
  }
2480
2515
 
@@ -2505,7 +2540,7 @@ var memories = (function (apiUrl) {
2505
2540
  }, _callee5);
2506
2541
  }));
2507
2542
 
2508
- function deleteMemory(_x10, _x11) {
2543
+ function deleteMemory(_x11, _x12) {
2509
2544
  return _deleteMemory.apply(this, arguments);
2510
2545
  }
2511
2546
 
@@ -2537,7 +2572,7 @@ var memories = (function (apiUrl) {
2537
2572
  }, _callee6);
2538
2573
  }));
2539
2574
 
2540
- function postMemory(_x12, _x13) {
2575
+ function postMemory(_x13, _x14) {
2541
2576
  return _postMemory.apply(this, arguments);
2542
2577
  }
2543
2578
 
@@ -2568,7 +2603,7 @@ var memories = (function (apiUrl) {
2568
2603
  }, _callee7);
2569
2604
  }));
2570
2605
 
2571
- function getMemoryAccess(_x14, _x15) {
2606
+ function getMemoryAccess(_x15, _x16) {
2572
2607
  return _getMemoryAccess.apply(this, arguments);
2573
2608
  }
2574
2609
 
@@ -3557,31 +3592,63 @@ var unansweredQuestions = (function (apiUrl) {
3557
3592
  return getUnansweredQuestionsPaginated;
3558
3593
  }(),
3559
3594
 
3595
+ /**
3596
+ * Adds a new Unanswered Question object.
3597
+ * @param {string} sessionId The session ID
3598
+ * @param {UnansweredQuestion} unansweredQuestion The Unanswered Question object
3599
+ */
3600
+ postUnansweredQuestion: function () {
3601
+ var _postUnansweredQuestion = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sessionId, unansweredQuestion) {
3602
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
3603
+ while (1) {
3604
+ switch (_context3.prev = _context3.next) {
3605
+ case 0:
3606
+ return _context3.abrupt("return", apiFetcher("/UnansweredQuestion/" + sessionId, {
3607
+ method: 'POST',
3608
+ apiUrl: apiUrl,
3609
+ body: unansweredQuestion
3610
+ }));
3611
+
3612
+ case 1:
3613
+ case "end":
3614
+ return _context3.stop();
3615
+ }
3616
+ }
3617
+ }, _callee3);
3618
+ }));
3619
+
3620
+ function postUnansweredQuestion(_x5, _x6) {
3621
+ return _postUnansweredQuestion.apply(this, arguments);
3622
+ }
3623
+
3624
+ return postUnansweredQuestion;
3625
+ }(),
3626
+
3560
3627
  /**
3561
3628
  * Removes an existing Unanswered Question object.
3562
3629
  * @param {string} sessionId The session ID
3563
3630
  * @param {string} unansweredQuestionId The Unanswered Question object ID
3564
3631
  */
3565
3632
  deleteUnansweredQuestion: function () {
3566
- var _deleteUnansweredQuestion = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sessionId, unansweredQuestionId) {
3567
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
3633
+ var _deleteUnansweredQuestion = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(sessionId, unansweredQuestionId) {
3634
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
3568
3635
  while (1) {
3569
- switch (_context3.prev = _context3.next) {
3636
+ switch (_context4.prev = _context4.next) {
3570
3637
  case 0:
3571
- return _context3.abrupt("return", apiFetcher("/UnansweredQuestion/" + sessionId + "/" + unansweredQuestionId, {
3638
+ return _context4.abrupt("return", apiFetcher("/UnansweredQuestion/" + sessionId + "/" + unansweredQuestionId, {
3572
3639
  method: 'DELETE',
3573
3640
  apiUrl: apiUrl
3574
3641
  }));
3575
3642
 
3576
3643
  case 1:
3577
3644
  case "end":
3578
- return _context3.stop();
3645
+ return _context4.stop();
3579
3646
  }
3580
3647
  }
3581
- }, _callee3);
3648
+ }, _callee4);
3582
3649
  }));
3583
3650
 
3584
- function deleteUnansweredQuestion(_x5, _x6) {
3651
+ function deleteUnansweredQuestion(_x7, _x8) {
3585
3652
  return _deleteUnansweredQuestion.apply(this, arguments);
3586
3653
  }
3587
3654
 
@@ -3898,6 +3965,37 @@ var chatLogs = (function (apiUrl) {
3898
3965
  return getChatLogs;
3899
3966
  }(),
3900
3967
 
3968
+ /**
3969
+ * Gets the Chat Log objects for the Memori of the current session recorded during a specific other session.
3970
+ * @param {string} sessionId The session ID
3971
+ * @param {string} chatLogSessionID The session ID for which Chat Log objects are being searched
3972
+ */
3973
+ getSessionChatLogs: function () {
3974
+ var _getSessionChatLogs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, chatLogSessionID) {
3975
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
3976
+ while (1) {
3977
+ switch (_context2.prev = _context2.next) {
3978
+ case 0:
3979
+ return _context2.abrupt("return", apiFetcher("/SessionChatLogs/" + sessionId + "/" + chatLogSessionID, {
3980
+ method: 'GET',
3981
+ apiUrl: apiUrl
3982
+ }));
3983
+
3984
+ case 1:
3985
+ case "end":
3986
+ return _context2.stop();
3987
+ }
3988
+ }
3989
+ }, _callee2);
3990
+ }));
3991
+
3992
+ function getSessionChatLogs(_x4, _x5) {
3993
+ return _getSessionChatLogs.apply(this, arguments);
3994
+ }
3995
+
3996
+ return getSessionChatLogs;
3997
+ }(),
3998
+
3901
3999
  /**
3902
4000
  * Removes all Chat Log objects in a specific date internval.
3903
4001
  * @param {string} sessionId The session ID
@@ -3905,25 +4003,25 @@ var chatLogs = (function (apiUrl) {
3905
4003
  * @param {?string} dateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
3906
4004
  */
3907
4005
  deleteChatLogs: function () {
3908
- var _deleteChatLogs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, dateFrom, dateTo) {
3909
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
4006
+ var _deleteChatLogs = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sessionId, dateFrom, dateTo) {
4007
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
3910
4008
  while (1) {
3911
- switch (_context2.prev = _context2.next) {
4009
+ switch (_context3.prev = _context3.next) {
3912
4010
  case 0:
3913
- return _context2.abrupt("return", apiFetcher("/ChatLogs/" + sessionId + (dateFrom ? "/" + dateFrom : '') + (dateFrom && dateTo ? "/" + dateTo : ''), {
4011
+ return _context3.abrupt("return", apiFetcher("/ChatLogs/" + sessionId + (dateFrom ? "/" + dateFrom : '') + (dateFrom && dateTo ? "/" + dateTo : ''), {
3914
4012
  method: 'DELETE',
3915
4013
  apiUrl: apiUrl
3916
4014
  }));
3917
4015
 
3918
4016
  case 1:
3919
4017
  case "end":
3920
- return _context2.stop();
4018
+ return _context3.stop();
3921
4019
  }
3922
4020
  }
3923
- }, _callee2);
4021
+ }, _callee3);
3924
4022
  }));
3925
4023
 
3926
- function deleteChatLogs(_x4, _x5, _x6) {
4024
+ function deleteChatLogs(_x6, _x7, _x8) {
3927
4025
  return _deleteChatLogs.apply(this, arguments);
3928
4026
  }
3929
4027
 
@@ -3936,25 +4034,25 @@ var chatLogs = (function (apiUrl) {
3936
4034
  * @param {string} chatLogId The Chat Log object ID
3937
4035
  */
3938
4036
  deleteChatLog: function () {
3939
- var _deleteChatLog = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(sessionId, chatLogId) {
3940
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
4037
+ var _deleteChatLog = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(sessionId, chatLogId) {
4038
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
3941
4039
  while (1) {
3942
- switch (_context3.prev = _context3.next) {
4040
+ switch (_context4.prev = _context4.next) {
3943
4041
  case 0:
3944
- return _context3.abrupt("return", apiFetcher("/ChatLog/" + sessionId + "/" + chatLogId, {
4042
+ return _context4.abrupt("return", apiFetcher("/ChatLog/" + sessionId + "/" + chatLogId, {
3945
4043
  method: 'DELETE',
3946
4044
  apiUrl: apiUrl
3947
4045
  }));
3948
4046
 
3949
4047
  case 1:
3950
4048
  case "end":
3951
- return _context3.stop();
4049
+ return _context4.stop();
3952
4050
  }
3953
4051
  }
3954
- }, _callee3);
4052
+ }, _callee4);
3955
4053
  }));
3956
4054
 
3957
- function deleteChatLog(_x7, _x8) {
4055
+ function deleteChatLog(_x9, _x10) {
3958
4056
  return _deleteChatLog.apply(this, arguments);
3959
4057
  }
3960
4058