@orderly.network/affiliate 2.8.14 → 2.9.0-alpha.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/dist/index.d.mts CHANGED
@@ -1,7 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import { ReactNode, FC, PropsWithChildren } from 'react';
4
+ import * as _orderly_network_hooks from '@orderly.network/hooks';
4
5
  import { RefferalAPI } from '@orderly.network/hooks';
6
+ import * as _orderly_network_types from '@orderly.network/types';
5
7
 
6
8
  declare const DashboardPage: (props: {
7
9
  classNames?: {
@@ -26,6 +28,35 @@ declare namespace index {
26
28
  export { index_AffiliatePage as AffiliatePage, index_DashboardPage as DashboardPage, index_HomePage as HomePage, index_TraderPage as TraderPage };
27
29
  }
28
30
 
31
+ declare const LandingPage: () => react_jsx_runtime.JSX.Element;
32
+
33
+ declare const MultiLevelAffiliatePage: () => react_jsx_runtime.JSX.Element;
34
+
35
+ declare const useMultiLevelReferralData: () => {
36
+ volumePrerequisite: _orderly_network_types.API.Referral.VolumePrerequisite | undefined;
37
+ maxRebateRate: number | undefined;
38
+ multiLevelRebateInfo: {
39
+ referee_rebate_rate: number;
40
+ referrer_rebate_rate: number;
41
+ referral_code: string;
42
+ max_rebate_rate: number;
43
+ default_referee_rebate_rate: number;
44
+ direct_invites?: number;
45
+ indirect_invites?: number;
46
+ direct_volume?: number;
47
+ indirect_volume?: number;
48
+ direct_rebate?: number;
49
+ indirect_rebate?: number;
50
+ direct_bonus_rebate_rate?: number;
51
+ direct_bonus_rebate?: number;
52
+ } | undefined;
53
+ isMultiLevelEnabled: boolean;
54
+ isMultiLevelReferralUnlocked: boolean | undefined;
55
+ multiLevelRebateInfoMutate: _orderly_network_hooks.KeyedMutator<_orderly_network_types.API.Referral.MultiLevelRebateInfo>;
56
+ isLoading: boolean;
57
+ };
58
+ type MultiLevelReferralData = ReturnType<typeof useMultiLevelReferralData>;
59
+
29
60
  declare enum TabTypes {
30
61
  affiliate = "affiliate",
31
62
  trader = "trader"
@@ -86,7 +117,7 @@ type ReferralContextReturns = {
86
117
  wrongNetwork: boolean;
87
118
  disabledConnect: boolean;
88
119
  generateCode: RefferalAPI.AutoGenerateCode | undefined;
89
- } & ReferralContextProps;
120
+ } & ReferralContextProps & MultiLevelReferralData;
90
121
  declare const ReferralContext: react.Context<ReferralContextReturns>;
91
122
  declare const useReferralContext: () => ReferralContextReturns;
92
123
 
@@ -94,4 +125,4 @@ declare const ReferralProvider: FC<PropsWithChildren<ReferralContextProps>>;
94
125
 
95
126
  declare const AffiliateLayoutWidget: (props: PropsWithChildren) => react_jsx_runtime.JSX.Element;
96
127
 
97
- export { AffiliateLayoutWidget, type BuildNode, type ChartConfig, index as Dashboard, type Overwrite, ReferralContext, type ReferralContextProps, type ReferralContextReturns, ReferralProvider, TabTypes, type UserVolumeType, useReferralContext };
128
+ export { AffiliateLayoutWidget, type BuildNode, type ChartConfig, index as Dashboard, LandingPage, MultiLevelAffiliatePage, type Overwrite, ReferralContext, type ReferralContextProps, type ReferralContextReturns, ReferralProvider, TabTypes, type UserVolumeType, useReferralContext };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as react from 'react';
3
3
  import { ReactNode, FC, PropsWithChildren } from 'react';
4
+ import * as _orderly_network_hooks from '@orderly.network/hooks';
4
5
  import { RefferalAPI } from '@orderly.network/hooks';
6
+ import * as _orderly_network_types from '@orderly.network/types';
5
7
 
6
8
  declare const DashboardPage: (props: {
7
9
  classNames?: {
@@ -26,6 +28,35 @@ declare namespace index {
26
28
  export { index_AffiliatePage as AffiliatePage, index_DashboardPage as DashboardPage, index_HomePage as HomePage, index_TraderPage as TraderPage };
27
29
  }
28
30
 
31
+ declare const LandingPage: () => react_jsx_runtime.JSX.Element;
32
+
33
+ declare const MultiLevelAffiliatePage: () => react_jsx_runtime.JSX.Element;
34
+
35
+ declare const useMultiLevelReferralData: () => {
36
+ volumePrerequisite: _orderly_network_types.API.Referral.VolumePrerequisite | undefined;
37
+ maxRebateRate: number | undefined;
38
+ multiLevelRebateInfo: {
39
+ referee_rebate_rate: number;
40
+ referrer_rebate_rate: number;
41
+ referral_code: string;
42
+ max_rebate_rate: number;
43
+ default_referee_rebate_rate: number;
44
+ direct_invites?: number;
45
+ indirect_invites?: number;
46
+ direct_volume?: number;
47
+ indirect_volume?: number;
48
+ direct_rebate?: number;
49
+ indirect_rebate?: number;
50
+ direct_bonus_rebate_rate?: number;
51
+ direct_bonus_rebate?: number;
52
+ } | undefined;
53
+ isMultiLevelEnabled: boolean;
54
+ isMultiLevelReferralUnlocked: boolean | undefined;
55
+ multiLevelRebateInfoMutate: _orderly_network_hooks.KeyedMutator<_orderly_network_types.API.Referral.MultiLevelRebateInfo>;
56
+ isLoading: boolean;
57
+ };
58
+ type MultiLevelReferralData = ReturnType<typeof useMultiLevelReferralData>;
59
+
29
60
  declare enum TabTypes {
30
61
  affiliate = "affiliate",
31
62
  trader = "trader"
@@ -86,7 +117,7 @@ type ReferralContextReturns = {
86
117
  wrongNetwork: boolean;
87
118
  disabledConnect: boolean;
88
119
  generateCode: RefferalAPI.AutoGenerateCode | undefined;
89
- } & ReferralContextProps;
120
+ } & ReferralContextProps & MultiLevelReferralData;
90
121
  declare const ReferralContext: react.Context<ReferralContextReturns>;
91
122
  declare const useReferralContext: () => ReferralContextReturns;
92
123
 
@@ -94,4 +125,4 @@ declare const ReferralProvider: FC<PropsWithChildren<ReferralContextProps>>;
94
125
 
95
126
  declare const AffiliateLayoutWidget: (props: PropsWithChildren) => react_jsx_runtime.JSX.Element;
96
127
 
97
- export { AffiliateLayoutWidget, type BuildNode, type ChartConfig, index as Dashboard, type Overwrite, ReferralContext, type ReferralContextProps, type ReferralContextReturns, ReferralProvider, TabTypes, type UserVolumeType, useReferralContext };
128
+ export { AffiliateLayoutWidget, type BuildNode, type ChartConfig, index as Dashboard, LandingPage, MultiLevelAffiliatePage, type Overwrite, ReferralContext, type ReferralContextProps, type ReferralContextReturns, ReferralProvider, TabTypes, type UserVolumeType, useReferralContext };