@recomnext/node 0.3.4-dev.94b8290b → 0.4.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.
Files changed (2) hide show
  1. package/README.md +2 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -30,6 +30,7 @@ const client = new RecomnextClient({
30
30
  const { items } = await client.recommendations.userToItem('user-123', {
31
31
  count: 10,
32
32
  scenario: 'home-for-you',
33
+ country: 'IN', // optional ISO-2; omit for global ranking
33
34
  });
34
35
 
35
36
  // Ingest items
@@ -39,7 +40,7 @@ await client.ingestion.upsertItems([
39
40
 
40
41
  // Log interactions
41
42
  await client.ingestion.logInteractions([
42
- { userId: 'user-123', itemId: 'prod-1', type: 'view' },
43
+ { userId: 'user-123', itemId: 'prod-1', type: 'view', country: 'IN' },
43
44
  ]);
44
45
 
45
46
  // Log impressions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recomnext/node",
3
- "version": "0.3.4-dev.94b8290b",
3
+ "version": "0.4.0",
4
4
  "description": "Node.js server SDK for the recomnext recommendation engine",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",