@frontiertower/frontier-sdk 0.3.2 → 0.3.4

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/dist/index.d.mts CHANGED
@@ -394,15 +394,21 @@ declare class ChainAccess {
394
394
  */
395
395
  interface User {
396
396
  /** Unique user identifier */
397
- id: string;
397
+ id: number;
398
398
  /** User's email address */
399
399
  email: string;
400
- /** User's first name (optional) */
401
- firstName?: string;
402
- /** User's last name (optional) */
403
- lastName?: string;
404
- /** Username (optional) */
405
- username?: string;
400
+ /** User's first name */
401
+ firstName: string;
402
+ /** User's last name */
403
+ lastName: string;
404
+ /** Whether user is active */
405
+ isActive: boolean;
406
+ /** Date user joined */
407
+ dateJoined: string;
408
+ /** Whether user is staff */
409
+ isStaff: boolean;
410
+ /** Whether user is superuser */
411
+ isSuperuser: boolean;
406
412
  }
407
413
  /**
408
414
  * Detailed user profile information
@@ -477,37 +483,48 @@ interface PaginatedResponse<T> {
477
483
  */
478
484
  interface ReferralOverview {
479
485
  /** Total number of referrals */
480
- totalReferrals: number;
481
- /** Number of active referrals */
482
- activeReferrals: number;
483
- /** Total rewards earned */
484
- totalRewards: number;
486
+ referralCount: number;
487
+ /** User's ranking */
488
+ ranking: number;
489
+ /** Referral link */
490
+ referralLink: string;
491
+ /** Referral code */
492
+ referralCode: string;
493
+ /** Who referred this user */
494
+ referredBy: string | null;
485
495
  }
486
496
  /**
487
497
  * Detailed referral information
488
498
  */
489
499
  interface ReferralDetails {
490
- /** Referral ID */
491
- id: string;
492
- /** Referred user email */
500
+ /** Name of the referred user */
501
+ name: string;
502
+ /** Email of the referred user */
493
503
  email: string;
494
- /** Referral status */
504
+ /** Date when the referral was made */
505
+ referralDate: string;
506
+ /** Reward information (if any) */
507
+ reward: string;
508
+ /** Status of the referral */
495
509
  status: string;
496
- /** Date of referral */
497
- createdAt: string;
498
- /** Reward amount */
499
- reward?: number;
500
510
  }
501
511
  /**
502
- * User contact information payload
512
+ * Single contact entry
503
513
  */
504
- interface UserContactPayload {
514
+ interface UserContact {
505
515
  /** Contact email */
506
- email?: string;
516
+ email: string;
507
517
  /** Contact phone number */
508
- phoneNumber?: string;
509
- /** Additional contact information */
510
- [key: string]: any;
518
+ phone: string;
519
+ /** Contact name */
520
+ name: string;
521
+ }
522
+ /**
523
+ * User contact information payload
524
+ */
525
+ interface UserContactPayload {
526
+ /** Array of contacts */
527
+ contacts: UserContact[];
511
528
  }
512
529
  /**
513
530
  * User access class for interacting with user information
@@ -669,4 +686,4 @@ interface SDKResponse {
669
686
  error?: string;
670
687
  }
671
688
 
672
- export { ChainAccess, type ChainConfig, type ExecuteCall, FrontierSDK, type GasOverrides, type PaginatedResponse, type ReferralDetails, type ReferralOverview, type SDKRequest, type SDKResponse, type SmartAccount, StorageAccess, type User, UserAccess, type UserContactPayload, type UserOperationReceipt, type UserProfile, WalletAccess };
689
+ export { ChainAccess, type ChainConfig, type ExecuteCall, FrontierSDK, type GasOverrides, type PaginatedResponse, type ReferralDetails, type ReferralOverview, type SDKRequest, type SDKResponse, type SmartAccount, StorageAccess, type User, UserAccess, type UserContact, type UserContactPayload, type UserOperationReceipt, type UserProfile, WalletAccess };
package/dist/index.d.ts CHANGED
@@ -394,15 +394,21 @@ declare class ChainAccess {
394
394
  */
395
395
  interface User {
396
396
  /** Unique user identifier */
397
- id: string;
397
+ id: number;
398
398
  /** User's email address */
399
399
  email: string;
400
- /** User's first name (optional) */
401
- firstName?: string;
402
- /** User's last name (optional) */
403
- lastName?: string;
404
- /** Username (optional) */
405
- username?: string;
400
+ /** User's first name */
401
+ firstName: string;
402
+ /** User's last name */
403
+ lastName: string;
404
+ /** Whether user is active */
405
+ isActive: boolean;
406
+ /** Date user joined */
407
+ dateJoined: string;
408
+ /** Whether user is staff */
409
+ isStaff: boolean;
410
+ /** Whether user is superuser */
411
+ isSuperuser: boolean;
406
412
  }
407
413
  /**
408
414
  * Detailed user profile information
@@ -477,37 +483,48 @@ interface PaginatedResponse<T> {
477
483
  */
478
484
  interface ReferralOverview {
479
485
  /** Total number of referrals */
480
- totalReferrals: number;
481
- /** Number of active referrals */
482
- activeReferrals: number;
483
- /** Total rewards earned */
484
- totalRewards: number;
486
+ referralCount: number;
487
+ /** User's ranking */
488
+ ranking: number;
489
+ /** Referral link */
490
+ referralLink: string;
491
+ /** Referral code */
492
+ referralCode: string;
493
+ /** Who referred this user */
494
+ referredBy: string | null;
485
495
  }
486
496
  /**
487
497
  * Detailed referral information
488
498
  */
489
499
  interface ReferralDetails {
490
- /** Referral ID */
491
- id: string;
492
- /** Referred user email */
500
+ /** Name of the referred user */
501
+ name: string;
502
+ /** Email of the referred user */
493
503
  email: string;
494
- /** Referral status */
504
+ /** Date when the referral was made */
505
+ referralDate: string;
506
+ /** Reward information (if any) */
507
+ reward: string;
508
+ /** Status of the referral */
495
509
  status: string;
496
- /** Date of referral */
497
- createdAt: string;
498
- /** Reward amount */
499
- reward?: number;
500
510
  }
501
511
  /**
502
- * User contact information payload
512
+ * Single contact entry
503
513
  */
504
- interface UserContactPayload {
514
+ interface UserContact {
505
515
  /** Contact email */
506
- email?: string;
516
+ email: string;
507
517
  /** Contact phone number */
508
- phoneNumber?: string;
509
- /** Additional contact information */
510
- [key: string]: any;
518
+ phone: string;
519
+ /** Contact name */
520
+ name: string;
521
+ }
522
+ /**
523
+ * User contact information payload
524
+ */
525
+ interface UserContactPayload {
526
+ /** Array of contacts */
527
+ contacts: UserContact[];
511
528
  }
512
529
  /**
513
530
  * User access class for interacting with user information
@@ -669,4 +686,4 @@ interface SDKResponse {
669
686
  error?: string;
670
687
  }
671
688
 
672
- export { ChainAccess, type ChainConfig, type ExecuteCall, FrontierSDK, type GasOverrides, type PaginatedResponse, type ReferralDetails, type ReferralOverview, type SDKRequest, type SDKResponse, type SmartAccount, StorageAccess, type User, UserAccess, type UserContactPayload, type UserOperationReceipt, type UserProfile, WalletAccess };
689
+ export { ChainAccess, type ChainConfig, type ExecuteCall, FrontierSDK, type GasOverrides, type PaginatedResponse, type ReferralDetails, type ReferralOverview, type SDKRequest, type SDKResponse, type SmartAccount, StorageAccess, type User, UserAccess, type UserContact, type UserContactPayload, type UserOperationReceipt, type UserProfile, WalletAccess };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontiertower/frontier-sdk",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "SDK for building apps on Frontier Wallet",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",