@dynamic-labs/sdk-api 0.0.550 → 0.0.551

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.550",
3
+ "version": "0.0.551",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -14,8 +14,8 @@ function AnalyticsSessionsByDateSessionsFromJSONTyped(json, ignoreDiscriminator)
14
14
  }
15
15
  return {
16
16
  'count': !runtime.exists(json, 'count') ? undefined : json['count'],
17
- 'date': !runtime.exists(json, 'date') ? undefined : json['date'],
18
17
  'uniqueUsers': !runtime.exists(json, 'uniqueUsers') ? undefined : json['uniqueUsers'],
18
+ 'date': !runtime.exists(json, 'date') ? undefined : json['date'],
19
19
  };
20
20
  }
21
21
  function AnalyticsSessionsByDateSessionsToJSON(value) {
@@ -27,8 +27,8 @@ function AnalyticsSessionsByDateSessionsToJSON(value) {
27
27
  }
28
28
  return {
29
29
  'count': value.count,
30
- 'date': value.date,
31
30
  'uniqueUsers': value.uniqueUsers,
31
+ 'date': value.date,
32
32
  };
33
33
  }
34
34
 
@@ -10,8 +10,8 @@ function AnalyticsSessionsByDateSessionsFromJSONTyped(json, ignoreDiscriminator)
10
10
  }
11
11
  return {
12
12
  'count': !exists(json, 'count') ? undefined : json['count'],
13
- 'date': !exists(json, 'date') ? undefined : json['date'],
14
13
  'uniqueUsers': !exists(json, 'uniqueUsers') ? undefined : json['uniqueUsers'],
14
+ 'date': !exists(json, 'date') ? undefined : json['date'],
15
15
  };
16
16
  }
17
17
  function AnalyticsSessionsByDateSessionsToJSON(value) {
@@ -23,8 +23,8 @@ function AnalyticsSessionsByDateSessionsToJSON(value) {
23
23
  }
24
24
  return {
25
25
  'count': value.count,
26
- 'date': value.date,
27
26
  'uniqueUsers': value.uniqueUsers,
27
+ 'date': value.date,
28
28
  };
29
29
  }
30
30
 
@@ -16,6 +16,7 @@ function SessionFromJSONTyped(json, ignoreDiscriminator) {
16
16
  'id': !runtime.exists(json, 'id') ? undefined : json['id'],
17
17
  'createdAt': !runtime.exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
18
18
  'ipAddress': !runtime.exists(json, 'ipAddress') ? undefined : json['ipAddress'],
19
+ 'userAgent': !runtime.exists(json, 'userAgent') ? undefined : json['userAgent'],
19
20
  'revokedAt': !runtime.exists(json, 'revokedAt') ? undefined : (json['revokedAt'] === null ? null : new Date(json['revokedAt'])),
20
21
  };
21
22
  }
@@ -30,6 +31,7 @@ function SessionToJSON(value) {
30
31
  'id': value.id,
31
32
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
32
33
  'ipAddress': value.ipAddress,
34
+ 'userAgent': value.userAgent,
33
35
  'revokedAt': value.revokedAt === undefined ? undefined : (value.revokedAt === null ? null : value.revokedAt.toISOString()),
34
36
  };
35
37
  }
@@ -33,6 +33,12 @@ export interface Session {
33
33
  * @memberof Session
34
34
  */
35
35
  ipAddress?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof Session
40
+ */
41
+ userAgent?: string | null;
36
42
  /**
37
43
  *
38
44
  * @type {Date}
@@ -12,6 +12,7 @@ function SessionFromJSONTyped(json, ignoreDiscriminator) {
12
12
  'id': !exists(json, 'id') ? undefined : json['id'],
13
13
  'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
14
14
  'ipAddress': !exists(json, 'ipAddress') ? undefined : json['ipAddress'],
15
+ 'userAgent': !exists(json, 'userAgent') ? undefined : json['userAgent'],
15
16
  'revokedAt': !exists(json, 'revokedAt') ? undefined : (json['revokedAt'] === null ? null : new Date(json['revokedAt'])),
16
17
  };
17
18
  }
@@ -26,6 +27,7 @@ function SessionToJSON(value) {
26
27
  'id': value.id,
27
28
  'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
28
29
  'ipAddress': value.ipAddress,
30
+ 'userAgent': value.userAgent,
29
31
  'revokedAt': value.revokedAt === undefined ? undefined : (value.revokedAt === null ? null : value.revokedAt.toISOString()),
30
32
  };
31
33
  }