@fencyai/js 0.1.87 → 0.1.88

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.
@@ -1,6 +1,8 @@
1
1
  import { getPackageVersion } from '../utils/version';
2
2
  export async function listMemories(params) {
3
3
  try {
4
+ console.log('listMemories');
5
+ console.log('params', params);
4
6
  const response = await listMemoriesApi({
5
7
  baseUrl: params.baseUrl,
6
8
  pk: params.pk,
@@ -8,7 +10,7 @@ export async function listMemories(params) {
8
10
  nextPageToken: params.request.nextPageToken,
9
11
  previousPageToken: params.request.previousPageToken,
10
12
  limit: params.request.limit,
11
- typeName: params.request.typeName,
13
+ typeId: params.request.typeId,
12
14
  title: params.request.title,
13
15
  meta: params.request.meta,
14
16
  });
@@ -30,8 +32,8 @@ async function listMemoriesApi(params) {
30
32
  queryParams.append('previousPageToken', params.previousPageToken);
31
33
  if (params.limit !== undefined)
32
34
  queryParams.append('limit', params.limit.toString());
33
- if (params.typeName)
34
- queryParams.append('typeName', encodeURIComponent(params.typeName));
35
+ if (params.typeId)
36
+ queryParams.append('typeId', encodeURIComponent(params.typeId));
35
37
  if (params.title)
36
38
  queryParams.append('title', encodeURIComponent(params.title));
37
39
  // Handle meta object - encode as key-value pairs
@@ -41,6 +43,7 @@ async function listMemoriesApi(params) {
41
43
  });
42
44
  }
43
45
  const queryString = queryParams.toString();
46
+ console.log('queryString', queryString);
44
47
  const response = await fetch(`${params.baseUrl}/v1/pub/memories?${queryString}`, {
45
48
  method: 'GET',
46
49
  headers: {
@@ -1,5 +1,5 @@
1
1
  export interface ListMemoriesRequest {
2
- typeName?: string;
2
+ typeId?: string;
3
3
  title?: string;
4
4
  meta: Record<string, string>;
5
5
  nextPageToken?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fencyai/js",
3
- "version": "0.1.87",
3
+ "version": "0.1.88",
4
4
  "description": "> TODO: description",
5
5
  "author": "staklau <steinaageklaussen@gmail.com>",
6
6
  "homepage": "",
@@ -42,5 +42,5 @@
42
42
  "ts-jest": "^29.1.1",
43
43
  "typescript": "^5.3.3"
44
44
  },
45
- "gitHead": "737d7ee9226055c284301461a48a14f133b91fb4"
45
+ "gitHead": "811654f1698a4b5bc4f8118d3af05a09d7365e91"
46
46
  }