@yuno-payments/dashboard-api-mfe 1.4.1 → 1.4.3-15460

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.
Files changed (28) hide show
  1. package/build/cjs/index.js +39 -205
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/types/api/api.d.ts +3 -2
  4. package/build/cjs/types/mutations/smart-routing/smart-routing.mutation.d.ts +4 -3
  5. package/build/cjs/types/queries/index.d.ts +1 -0
  6. package/build/cjs/types/queries/onboarding/index.d.ts +1 -0
  7. package/build/cjs/types/queries/onboarding/onboarding.query.d.ts +7 -0
  8. package/build/cjs/types/queries/onboarding/onboarding.query.test.d.ts +1 -0
  9. package/build/cjs/types/types/checkout/styling/styling.d.ts +31 -0
  10. package/build/cjs/types/types/index.d.ts +1 -0
  11. package/build/cjs/types/types/installments/installments.d.ts +1 -1
  12. package/build/cjs/types/types/onboarding/index.d.ts +1 -0
  13. package/build/cjs/types/types/onboarding/onboarding.d.ts +7 -0
  14. package/build/esm/index.js +39 -205
  15. package/build/esm/index.js.map +1 -1
  16. package/build/esm/types/api/api.d.ts +3 -2
  17. package/build/esm/types/mutations/smart-routing/smart-routing.mutation.d.ts +4 -3
  18. package/build/esm/types/queries/index.d.ts +1 -0
  19. package/build/esm/types/queries/onboarding/index.d.ts +1 -0
  20. package/build/esm/types/queries/onboarding/onboarding.query.d.ts +7 -0
  21. package/build/esm/types/queries/onboarding/onboarding.query.test.d.ts +1 -0
  22. package/build/esm/types/types/checkout/styling/styling.d.ts +31 -0
  23. package/build/esm/types/types/index.d.ts +1 -0
  24. package/build/esm/types/types/installments/installments.d.ts +1 -1
  25. package/build/esm/types/types/onboarding/index.d.ts +1 -0
  26. package/build/esm/types/types/onboarding/onboarding.d.ts +7 -0
  27. package/build/index.d.ts +55 -8
  28. package/package.json +1 -1
@@ -116,6 +116,7 @@ export declare class Api extends HttpClient {
116
116
  getConnectionsByPaymentMethod<T>(accountCode: string, paymentMethod: string): Promise<AxiosResponse<T>>;
117
117
  getHashPylon<T>(): Promise<AxiosResponse<T>>;
118
118
  getConnections<T>(): Promise<AxiosResponse<T, any>>;
119
+ getOnboardingStatus<T>(accountCode: string): Promise<AxiosResponse<T, any>>;
119
120
  postValidateStatusConnection<T>({ payload, accountCode, }: {
120
121
  payload: any;
121
122
  accountCode: any;
@@ -194,9 +195,9 @@ export declare class Api extends HttpClient {
194
195
  name: string;
195
196
  code: string;
196
197
  }, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, any>>;
197
- postSmartRoutingCreateWorkflow<T>(accountCode: string, data: any): Promise<AxiosResponse<T, any>>;
198
+ postSmartRoutingCreateWorkflow<T>(accountCode: string, data: any, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, any>>;
198
199
  postSmartRoutingPublishVersion<T>(accountCode: string, versionCode: string, organizationCode: string, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, any>>;
199
- deleteSmartRoutingVersion<T>(accountCode: string, versionCode: string): Promise<AxiosResponse<T, any>>;
200
+ deleteSmartRoutingVersion<T>(accountCode: string, versionCode: string, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, any>>;
200
201
  postSmartRoutingDuplicateVersion<T>(accountCode: string, versionCode: string, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, any>>;
201
202
  getSmartRoutingDeclinedGroup<T>(accountCode: string, routingType?: SmartRouting.RoutingType): Promise<AxiosResponse<T, any>>;
202
203
  updateSmartRoutingDeclinedGroup<T>(accountCode: string, declineId: string, payload: any): Promise<AxiosResponse<T, any>>;
@@ -13,9 +13,10 @@ export declare function useSaveVersion({ data, accountCode, routingType, }: {
13
13
  accountCode: string;
14
14
  routingType?: SmartRouting.RoutingType;
15
15
  }, options?: any): UseMutationResult<SmartRouting.WorkflowVersion, unknown>;
16
- export declare function useDeleteVersion({ versionCode, accountCode }: {
17
- versionCode: any;
18
- accountCode: any;
16
+ export declare function useDeleteVersion({ versionCode, accountCode, routingType, }: {
17
+ versionCode: string;
18
+ accountCode: string;
19
+ routingType?: SmartRouting.RoutingType;
19
20
  }, options?: any): UseMutationResult<SmartRouting.WorkflowVersion, unknown>;
20
21
  export declare function useDuplicateVersion({ versionCode, accountCode, routingType, }: {
21
22
  versionCode: string | number;
@@ -31,5 +31,6 @@ export * from './smart-recovery';
31
31
  export * from './network-tokens';
32
32
  export * from './template-reporting';
33
33
  export * from './organization-config';
34
+ export * from './onboarding';
34
35
  export * from './recipients';
35
36
  export * from './installments';
@@ -0,0 +1 @@
1
+ export * from './onboarding.query';
@@ -0,0 +1,7 @@
1
+ import { Onboarding } from '../../types';
2
+ import { CustomAxiosResponse } from '../../utils/handler-error';
3
+ export interface UseGetOnboardingStatusParams {
4
+ accountCode: string;
5
+ enabled?: boolean;
6
+ }
7
+ export declare function useGetOnboardingStatus({ accountCode, enabled, }: UseGetOnboardingStatusParams): import("@tanstack/react-query").UseQueryResult<Onboarding.OnboardingStatus, CustomAxiosResponse<null>>;
@@ -66,6 +66,36 @@ export declare namespace Styling {
66
66
  }
67
67
  export {};
68
68
  }
69
+ export interface PaymentLinkStyles {
70
+ panel?: {
71
+ left?: {
72
+ logo_url?: string | null;
73
+ background?: {
74
+ color?: string;
75
+ };
76
+ };
77
+ };
78
+ checkbox?: {
79
+ color?: string;
80
+ };
81
+ border?: {
82
+ color?: string;
83
+ };
84
+ radio_button?: {
85
+ color?: string;
86
+ };
87
+ button?: {
88
+ text?: {
89
+ color?: string;
90
+ };
91
+ background?: {
92
+ color?: string;
93
+ hover?: {
94
+ color?: string;
95
+ };
96
+ };
97
+ };
98
+ }
69
99
  export declare namespace StylingSettings {
70
100
  interface UpdateSettings {
71
101
  styles: {
@@ -124,6 +154,7 @@ export declare namespace StylingSettings {
124
154
  flags?: {
125
155
  force_default_styles?: boolean;
126
156
  };
157
+ payment_link_styles?: PaymentLinkStyles;
127
158
  }
128
159
  interface UpdateSettingsResponse extends UpdateSettings {
129
160
  external_fonts: {
@@ -32,5 +32,6 @@ export * from './ai';
32
32
  export * from './smart-recovery';
33
33
  export * from './template-reporting';
34
34
  export * from './organization-config';
35
+ export * from './onboarding';
35
36
  export * from './recipients';
36
37
  export * from './installments';
@@ -78,7 +78,7 @@ export declare namespace Installments {
78
78
  message?: string;
79
79
  }
80
80
  interface SearchInstallmentsPlansRequest {
81
- account_id?: string[];
81
+ account_ids?: string[];
82
82
  country_code?: string[];
83
83
  brand?: string[];
84
84
  name?: string;
@@ -0,0 +1 @@
1
+ export * from './onboarding';
@@ -0,0 +1,7 @@
1
+ export declare namespace Onboarding {
2
+ interface OnboardingStatus {
3
+ has_connection: boolean;
4
+ has_routing: boolean;
5
+ has_checkout_active: boolean;
6
+ }
7
+ }