@dynamic-labs/sdk-api 0.138.0 → 0.139.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.138.0",
3
+ "version": "0.139.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -2,6 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var runtime = require('../runtime.cjs');
5
6
  var ChainEnum = require('./ChainEnum.cjs');
6
7
 
7
8
  /* tslint:disable */
@@ -25,6 +26,7 @@ function WalletListItemFromJSONTyped(json, ignoreDiscriminator) {
25
26
  return {
26
27
  'id': json['id'],
27
28
  'userId': json['userId'],
29
+ 'businessAccountId': !runtime.exists(json, 'businessAccountId') ? undefined : json['businessAccountId'],
28
30
  'name': json['name'],
29
31
  'chain': ChainEnum.ChainEnumFromJSON(json['chain']),
30
32
  'publicKey': json['publicKey'],
@@ -44,6 +46,7 @@ function WalletListItemToJSON(value) {
44
46
  return {
45
47
  'id': value.id,
46
48
  'userId': value.userId,
49
+ 'businessAccountId': value.businessAccountId,
47
50
  'name': value.name,
48
51
  'chain': ChainEnum.ChainEnumToJSON(value.chain),
49
52
  'publicKey': value.publicKey,
@@ -28,6 +28,12 @@ export interface WalletListItem {
28
28
  * @memberof WalletListItem
29
29
  */
30
30
  userId: string | null;
31
+ /**
32
+ * ID of the business account the wallet belongs to, or null if it is in none
33
+ * @type {string}
34
+ * @memberof WalletListItem
35
+ */
36
+ businessAccountId?: string | null;
31
37
  /**
32
38
  *
33
39
  * @type {string}
@@ -1,3 +1,4 @@
1
+ import { exists } from '../runtime.js';
1
2
  import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
2
3
 
3
4
  /* tslint:disable */
@@ -21,6 +22,7 @@ function WalletListItemFromJSONTyped(json, ignoreDiscriminator) {
21
22
  return {
22
23
  'id': json['id'],
23
24
  'userId': json['userId'],
25
+ 'businessAccountId': !exists(json, 'businessAccountId') ? undefined : json['businessAccountId'],
24
26
  'name': json['name'],
25
27
  'chain': ChainEnumFromJSON(json['chain']),
26
28
  'publicKey': json['publicKey'],
@@ -40,6 +42,7 @@ function WalletListItemToJSON(value) {
40
42
  return {
41
43
  'id': value.id,
42
44
  'userId': value.userId,
45
+ 'businessAccountId': value.businessAccountId,
43
46
  'name': value.name,
44
47
  'chain': ChainEnumToJSON(value.chain),
45
48
  'publicKey': value.publicKey,