@memori.ai/memori-api-client 5.2.0 → 5.2.1

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,12 @@
1
1
 
2
2
 
3
+ ## [5.2.1](https://github.com/memori-ai/memori-api-client/compare/v5.2.0...v5.2.1) (2024-11-19)
4
+
5
+
6
+ ### Maintenance
7
+
8
+ * add timeZoneOffset in open session additionalInfo ([164e5bb](https://github.com/memori-ai/memori-api-client/commit/164e5bbf157c74c73099c3e04b2232af6d4ea500))
9
+
3
10
  ## [5.2.0](https://github.com/memori-ai/memori-api-client/compare/v5.1.1...v5.2.0) (2024-09-25)
4
11
 
5
12
 
package/dist/types.d.ts CHANGED
@@ -274,6 +274,7 @@ export declare type OpenSession = {
274
274
  loginToken?: string;
275
275
  language?: string;
276
276
  referral?: string;
277
+ timeZoneOffset?: string;
277
278
  };
278
279
  };
279
280
  export declare type MemoriSession = {
package/esm/types.d.ts CHANGED
@@ -274,6 +274,7 @@ export declare type OpenSession = {
274
274
  loginToken?: string;
275
275
  language?: string;
276
276
  referral?: string;
277
+ timeZoneOffset?: string;
277
278
  };
278
279
  };
279
280
  export declare type MemoriSession = {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.2.0",
2
+ "version": "5.2.1",
3
3
  "name": "@memori.ai/memori-api-client",
4
4
  "description": "React library to integrate a Memori in your app or website",
5
5
  "license": "Apache-2.0",
package/src/types.ts CHANGED
@@ -414,9 +414,27 @@ export declare type OpenSession = {
414
414
  forceCloseSessions?: boolean;
415
415
  birthDate?: string;
416
416
  additionalInfo?: {
417
+ /**
418
+ * a valid Memori.AI login token for the user, from which information like
419
+ * the user's unique ID, their birth date and e-mail are retrieved
420
+ * (for age verification and DCM integration purposes)
421
+ */
417
422
  loginToken?: string;
423
+ /**
424
+ * the language ISO code used to open the session
425
+ * (may be different from the Memori language if a translation layer is in place)
426
+ */
418
427
  language?: string;
428
+ /**
429
+ * the referral URL, as reported by the hosting web application
430
+ */
419
431
  referral?: string;
432
+ /**
433
+ * the offset in minutes of the UTC time zone from the user's local time zone.
434
+ * Note: the offset is subtracted from UTC to obtain the user's local time, not added.
435
+ * E.g.: it should be -120 for CEST, not +120.
436
+ */
437
+ timeZoneOffset?: string;
420
438
  };
421
439
  };
422
440
 
@@ -595,9 +613,6 @@ export declare type Asset = {
595
613
  };
596
614
 
597
615
  export type SearchQuery = {
598
-
599
-
600
-
601
616
  /**
602
617
  * @type {string}
603
618
  * Search query. If omitted, either a Date or a Place must be set. Used only for Search, ignored for Random picking and Memory Hints.
@@ -671,7 +686,7 @@ export type SearchQuery = {
671
686
  * @type {number=0}
672
687
  * Index of the first Memory to return. Used for pagination.
673
688
  */
674
- startFrom?: number;
689
+ startFrom?: number;
675
690
 
676
691
  /**
677
692
  * @type {?number=5}