@dynamic-labs/sdk-api 0.0.204 → 0.0.206

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.204",
3
+ "version": "0.0.206",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var runtime = require('../runtime.cjs');
6
6
  var GateRuleFilter = require('./GateRuleFilter.cjs');
7
7
  var GateRuleType = require('./GateRuleType.cjs');
8
+ var TokenAddress = require('./TokenAddress.cjs');
8
9
 
9
10
  /* tslint:disable */
10
11
  function GateRuleFromJSON(json) {
@@ -16,7 +17,7 @@ function GateRuleFromJSONTyped(json, ignoreDiscriminator) {
16
17
  }
17
18
  return {
18
19
  'type': GateRuleType.GateRuleTypeFromJSON(json['type']),
19
- 'contractAddress': json['contractAddress'],
20
+ 'address': TokenAddress.TokenAddressFromJSON(json['address']),
20
21
  'filter': !runtime.exists(json, 'filter') ? undefined : GateRuleFilter.GateRuleFilterFromJSON(json['filter']),
21
22
  };
22
23
  }
@@ -29,7 +30,7 @@ function GateRuleToJSON(value) {
29
30
  }
30
31
  return {
31
32
  'type': GateRuleType.GateRuleTypeToJSON(value.type),
32
- 'contractAddress': value.contractAddress,
33
+ 'address': TokenAddress.TokenAddressToJSON(value.address),
33
34
  'filter': GateRuleFilter.GateRuleFilterToJSON(value.filter),
34
35
  };
35
36
  }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import { GateRuleFilter } from './GateRuleFilter';
13
13
  import { GateRuleType } from './GateRuleType';
14
+ import { TokenAddress } from './TokenAddress';
14
15
  /**
15
16
  * Definition for a single rule in a Gate. This will check for the presence of a token or NFT, given the contract address, in the wallet of a user being evaluated. For multi-wallet users, we will check all wallets. If a filter is defined, then we will also check that the filter checks apply to the user
16
17
  * @export
@@ -24,11 +25,11 @@ export interface GateRule {
24
25
  */
25
26
  type: GateRuleType;
26
27
  /**
27
- * This contains the smart contract address of the token or NFT being used to evaluate users to be verified.
28
- * @type {string}
28
+ *
29
+ * @type {TokenAddress}
29
30
  * @memberof GateRule
30
31
  */
31
- contractAddress: string;
32
+ address: TokenAddress;
32
33
  /**
33
34
  *
34
35
  * @type {GateRuleFilter}
@@ -1,6 +1,7 @@
1
1
  import { exists } from '../runtime.js';
2
2
  import { GateRuleFilterFromJSON, GateRuleFilterToJSON } from './GateRuleFilter.js';
3
3
  import { GateRuleTypeFromJSON, GateRuleTypeToJSON } from './GateRuleType.js';
4
+ import { TokenAddressFromJSON, TokenAddressToJSON } from './TokenAddress.js';
4
5
 
5
6
  /* tslint:disable */
6
7
  function GateRuleFromJSON(json) {
@@ -12,7 +13,7 @@ function GateRuleFromJSONTyped(json, ignoreDiscriminator) {
12
13
  }
13
14
  return {
14
15
  'type': GateRuleTypeFromJSON(json['type']),
15
- 'contractAddress': json['contractAddress'],
16
+ 'address': TokenAddressFromJSON(json['address']),
16
17
  'filter': !exists(json, 'filter') ? undefined : GateRuleFilterFromJSON(json['filter']),
17
18
  };
18
19
  }
@@ -25,7 +26,7 @@ function GateRuleToJSON(value) {
25
26
  }
26
27
  return {
27
28
  'type': GateRuleTypeToJSON(value.type),
28
- 'contractAddress': value.contractAddress,
29
+ 'address': TokenAddressToJSON(value.address),
29
30
  'filter': GateRuleFilterToJSON(value.filter),
30
31
  };
31
32
  }
@@ -32,6 +32,7 @@ exports.SubscriptionAdvancedScopeEnum = void 0;
32
32
  SubscriptionAdvancedScopeEnum["AnalyticsVisits"] = "analytics_visits";
33
33
  SubscriptionAdvancedScopeEnum["Captcha"] = "captcha";
34
34
  SubscriptionAdvancedScopeEnum["SigninWithEmail"] = "signin_with_email";
35
+ SubscriptionAdvancedScopeEnum["Gating"] = "gating";
35
36
  })(exports.SubscriptionAdvancedScopeEnum || (exports.SubscriptionAdvancedScopeEnum = {}));
36
37
  function SubscriptionAdvancedScopeEnumFromJSON(json) {
37
38
  return SubscriptionAdvancedScopeEnumFromJSONTyped(json);
@@ -24,7 +24,8 @@ export declare enum SubscriptionAdvancedScopeEnum {
24
24
  AnalyticsUsers = "analytics_users",
25
25
  AnalyticsVisits = "analytics_visits",
26
26
  Captcha = "captcha",
27
- SigninWithEmail = "signin_with_email"
27
+ SigninWithEmail = "signin_with_email",
28
+ Gating = "gating"
28
29
  }
29
30
  export declare function SubscriptionAdvancedScopeEnumFromJSON(json: any): SubscriptionAdvancedScopeEnum;
30
31
  export declare function SubscriptionAdvancedScopeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionAdvancedScopeEnum;
@@ -28,6 +28,7 @@ var SubscriptionAdvancedScopeEnum;
28
28
  SubscriptionAdvancedScopeEnum["AnalyticsVisits"] = "analytics_visits";
29
29
  SubscriptionAdvancedScopeEnum["Captcha"] = "captcha";
30
30
  SubscriptionAdvancedScopeEnum["SigninWithEmail"] = "signin_with_email";
31
+ SubscriptionAdvancedScopeEnum["Gating"] = "gating";
31
32
  })(SubscriptionAdvancedScopeEnum || (SubscriptionAdvancedScopeEnum = {}));
32
33
  function SubscriptionAdvancedScopeEnumFromJSON(json) {
33
34
  return SubscriptionAdvancedScopeEnumFromJSONTyped(json);