@retinalabsllc/zairusjs 15.0.85 → 15.0.95

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
@@ -63,7 +63,8 @@ interface PipleAuthProps {
63
63
  recaptchaSiteKey?: string;
64
64
  defaultRedirectPath?: string;
65
65
  onAuthRequest: (payload: {
66
- email: string;
66
+ phoneNumber: string;
67
+ country: string;
67
68
  firstName?: string;
68
69
  lastName?: string;
69
70
  organizationName?: string;
@@ -73,12 +74,12 @@ interface PipleAuthProps {
73
74
  }) => Promise<{
74
75
  success: boolean;
75
76
  error?: string;
76
- has2FA?: boolean;
77
77
  hasPasskey?: boolean;
78
+ needsPukSetup?: boolean;
78
79
  passkeyOptions?: any;
79
80
  }>;
80
81
  onVerifyOtp: (payload: {
81
- email: string;
82
+ phoneNumber: string;
82
83
  code?: string;
83
84
  isPasskey?: boolean;
84
85
  passkeyCredential?: any;
@@ -160,17 +161,17 @@ declare const UniversalOrganizationPage: React.FC<UniversalOrganizationPageProps
160
161
  interface UniversalProfileSettingsProps {
161
162
  initialFirstName: string;
162
163
  initialLastName: string;
163
- email: string;
164
+ phoneNumber: string;
164
165
  accountStatus?: string;
165
166
  memberSince?: string | Date | null;
166
167
  isReadOnly?: boolean;
167
168
  bannerProps?: BannerProps;
168
- hasPin?: boolean;
169
- isPinLoading?: boolean;
170
- onSavePin?: (payload: {
171
- action: 'create_pin' | 'change_pin';
172
- oldPin?: string;
173
- newPin: string;
169
+ hasPasscode?: boolean;
170
+ isPasscodeLoading?: boolean;
171
+ onSavePasscode?: (payload: {
172
+ action: 'create_passcode' | 'change_passcode';
173
+ oldPasscode?: string;
174
+ newPasscode: string;
174
175
  }) => Promise<{
175
176
  success: boolean;
176
177
  error?: string;
@@ -258,10 +259,9 @@ interface UniversalHomeViewProps {
258
259
  balanceLabel?: string;
259
260
  balanceAmount: string;
260
261
  balanceCurrency?: string;
261
- cashbackValue: number;
262
- rewardsValue: number;
263
- primaryAction?: HomeActionBtn;
264
- secondaryAction?: HomeActionBtn;
262
+ calculatorAction?: HomeActionBtn;
263
+ buyCryptoAction?: HomeActionBtn;
264
+ referralAction?: HomeActionBtn;
265
265
  notifications?: NotificationItem[];
266
266
  notificationPage?: number;
267
267
  notificationTotalPages?: number;
@@ -312,26 +312,20 @@ interface CardData {
312
312
  type: string;
313
313
  scheme: string;
314
314
  status: string;
315
- tier: string;
315
+ balance: string;
316
316
  currency: string;
317
317
  cardHolderName: string;
318
318
  cardBgSrc: string;
319
319
  networkLogoSrc: string;
320
- preOrder?: boolean;
321
- contentDark?: boolean;
322
- bannerProps?: BannerProps;
323
- prepaid?: boolean;
324
- balance?: string;
320
+ contentDark: boolean;
325
321
  }
326
322
  interface UniversalCardPageProps {
327
323
  cards: CardData[];
328
324
  actionPath?: string;
329
- onReveal?: (cardId: string) => void | Promise<void>;
330
- onFreeze?: (cardId: string) => void | Promise<void>;
331
- onSetLimits?: (cardId: string) => void;
332
- onDelete?: (cardId: string) => void | Promise<void>;
325
+ onReveal?: (cardId: string) => void;
326
+ onFreeze?: (cardId: string) => Promise<void>;
327
+ onDelete?: (cardId: string) => void;
333
328
  onFundCard?: (cardId: string) => void;
334
- onCreateCard?: () => void;
335
329
  }
336
330
  declare const UniversalCardPage: React.FC<UniversalCardPageProps>;
337
331
 
@@ -422,21 +416,19 @@ interface AppBento2Props {
422
416
  declare const AppBento2: React.FC<AppBento2Props>;
423
417
 
424
418
  interface UniversalSecurityPageProps {
425
- has2FA: boolean;
419
+ hasPasscode: boolean;
426
420
  hasPasskey: boolean;
427
- userEmail?: string;
428
- is2FALoading?: boolean;
421
+ isPasscodeLoading?: boolean;
429
422
  isPasskeyLoading?: boolean;
430
423
  onBack: () => void;
431
- onRequest2FASetup?: () => Promise<{
432
- secret: string;
433
- qrCodeUrl: string;
434
- }>;
435
- onVerifyAndEnable2FA?: (otp: string) => Promise<{
436
- success: boolean;
437
- }>;
438
- onVerifyAndDisable2FA?: (otp: string) => Promise<{
424
+ onSavePasscode?: (payload: {
425
+ action: 'create_passcode' | 'change_passcode';
426
+ oldPasscode?: string;
427
+ newPasscode: string;
428
+ }) => Promise<{
439
429
  success: boolean;
430
+ error?: string;
431
+ message?: string;
440
432
  }>;
441
433
  onRequestPasskeySetup?: () => Promise<any>;
442
434
  onVerifyAndEnablePasskey?: (credential: any) => Promise<{
@@ -643,7 +635,7 @@ interface TextInputProps {
643
635
  maxLength?: number;
644
636
  disabled?: boolean;
645
637
  readOnly?: boolean;
646
- type?: 'text' | 'password' | 'email' | 'url';
638
+ type?: 'text' | 'password' | 'email' | 'url' | 'tel';
647
639
  onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
648
640
  }
649
641
  interface NumberInputProps {
@@ -865,6 +857,7 @@ interface UniversalReferralItem {
865
857
  interface UniversalReferralPageProps {
866
858
  referralCode: string | null;
867
859
  totalCount: number;
860
+ referralCoins?: number;
868
861
  referrals: UniversalReferralItem[];
869
862
  isLoading: boolean;
870
863
  currentPage: number;
package/dist/index.d.ts CHANGED
@@ -63,7 +63,8 @@ interface PipleAuthProps {
63
63
  recaptchaSiteKey?: string;
64
64
  defaultRedirectPath?: string;
65
65
  onAuthRequest: (payload: {
66
- email: string;
66
+ phoneNumber: string;
67
+ country: string;
67
68
  firstName?: string;
68
69
  lastName?: string;
69
70
  organizationName?: string;
@@ -73,12 +74,12 @@ interface PipleAuthProps {
73
74
  }) => Promise<{
74
75
  success: boolean;
75
76
  error?: string;
76
- has2FA?: boolean;
77
77
  hasPasskey?: boolean;
78
+ needsPukSetup?: boolean;
78
79
  passkeyOptions?: any;
79
80
  }>;
80
81
  onVerifyOtp: (payload: {
81
- email: string;
82
+ phoneNumber: string;
82
83
  code?: string;
83
84
  isPasskey?: boolean;
84
85
  passkeyCredential?: any;
@@ -160,17 +161,17 @@ declare const UniversalOrganizationPage: React.FC<UniversalOrganizationPageProps
160
161
  interface UniversalProfileSettingsProps {
161
162
  initialFirstName: string;
162
163
  initialLastName: string;
163
- email: string;
164
+ phoneNumber: string;
164
165
  accountStatus?: string;
165
166
  memberSince?: string | Date | null;
166
167
  isReadOnly?: boolean;
167
168
  bannerProps?: BannerProps;
168
- hasPin?: boolean;
169
- isPinLoading?: boolean;
170
- onSavePin?: (payload: {
171
- action: 'create_pin' | 'change_pin';
172
- oldPin?: string;
173
- newPin: string;
169
+ hasPasscode?: boolean;
170
+ isPasscodeLoading?: boolean;
171
+ onSavePasscode?: (payload: {
172
+ action: 'create_passcode' | 'change_passcode';
173
+ oldPasscode?: string;
174
+ newPasscode: string;
174
175
  }) => Promise<{
175
176
  success: boolean;
176
177
  error?: string;
@@ -258,10 +259,9 @@ interface UniversalHomeViewProps {
258
259
  balanceLabel?: string;
259
260
  balanceAmount: string;
260
261
  balanceCurrency?: string;
261
- cashbackValue: number;
262
- rewardsValue: number;
263
- primaryAction?: HomeActionBtn;
264
- secondaryAction?: HomeActionBtn;
262
+ calculatorAction?: HomeActionBtn;
263
+ buyCryptoAction?: HomeActionBtn;
264
+ referralAction?: HomeActionBtn;
265
265
  notifications?: NotificationItem[];
266
266
  notificationPage?: number;
267
267
  notificationTotalPages?: number;
@@ -312,26 +312,20 @@ interface CardData {
312
312
  type: string;
313
313
  scheme: string;
314
314
  status: string;
315
- tier: string;
315
+ balance: string;
316
316
  currency: string;
317
317
  cardHolderName: string;
318
318
  cardBgSrc: string;
319
319
  networkLogoSrc: string;
320
- preOrder?: boolean;
321
- contentDark?: boolean;
322
- bannerProps?: BannerProps;
323
- prepaid?: boolean;
324
- balance?: string;
320
+ contentDark: boolean;
325
321
  }
326
322
  interface UniversalCardPageProps {
327
323
  cards: CardData[];
328
324
  actionPath?: string;
329
- onReveal?: (cardId: string) => void | Promise<void>;
330
- onFreeze?: (cardId: string) => void | Promise<void>;
331
- onSetLimits?: (cardId: string) => void;
332
- onDelete?: (cardId: string) => void | Promise<void>;
325
+ onReveal?: (cardId: string) => void;
326
+ onFreeze?: (cardId: string) => Promise<void>;
327
+ onDelete?: (cardId: string) => void;
333
328
  onFundCard?: (cardId: string) => void;
334
- onCreateCard?: () => void;
335
329
  }
336
330
  declare const UniversalCardPage: React.FC<UniversalCardPageProps>;
337
331
 
@@ -422,21 +416,19 @@ interface AppBento2Props {
422
416
  declare const AppBento2: React.FC<AppBento2Props>;
423
417
 
424
418
  interface UniversalSecurityPageProps {
425
- has2FA: boolean;
419
+ hasPasscode: boolean;
426
420
  hasPasskey: boolean;
427
- userEmail?: string;
428
- is2FALoading?: boolean;
421
+ isPasscodeLoading?: boolean;
429
422
  isPasskeyLoading?: boolean;
430
423
  onBack: () => void;
431
- onRequest2FASetup?: () => Promise<{
432
- secret: string;
433
- qrCodeUrl: string;
434
- }>;
435
- onVerifyAndEnable2FA?: (otp: string) => Promise<{
436
- success: boolean;
437
- }>;
438
- onVerifyAndDisable2FA?: (otp: string) => Promise<{
424
+ onSavePasscode?: (payload: {
425
+ action: 'create_passcode' | 'change_passcode';
426
+ oldPasscode?: string;
427
+ newPasscode: string;
428
+ }) => Promise<{
439
429
  success: boolean;
430
+ error?: string;
431
+ message?: string;
440
432
  }>;
441
433
  onRequestPasskeySetup?: () => Promise<any>;
442
434
  onVerifyAndEnablePasskey?: (credential: any) => Promise<{
@@ -643,7 +635,7 @@ interface TextInputProps {
643
635
  maxLength?: number;
644
636
  disabled?: boolean;
645
637
  readOnly?: boolean;
646
- type?: 'text' | 'password' | 'email' | 'url';
638
+ type?: 'text' | 'password' | 'email' | 'url' | 'tel';
647
639
  onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
648
640
  }
649
641
  interface NumberInputProps {
@@ -865,6 +857,7 @@ interface UniversalReferralItem {
865
857
  interface UniversalReferralPageProps {
866
858
  referralCode: string | null;
867
859
  totalCount: number;
860
+ referralCoins?: number;
868
861
  referrals: UniversalReferralItem[];
869
862
  isLoading: boolean;
870
863
  currentPage: number;