@yuno-payments/dashboard-api-mfe 1.2.2 → 1.2.4-beta.1

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 (32) hide show
  1. package/build/cjs/index.js +4 -4
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/types/api/api.d.ts +3 -0
  4. package/build/cjs/types/msw/mocks/installments/installments.mock.d.ts +3 -0
  5. package/build/cjs/types/mutations/installments/installments.mutation.d.ts +6 -0
  6. package/build/cjs/types/queries/installments/installments.query.d.ts +1 -0
  7. package/build/cjs/types/queries/smart-routing/smart-routing.query.d.ts +0 -3
  8. package/build/cjs/types/types/checkout/checkout.d.ts +1 -0
  9. package/build/cjs/types/types/installments/installments.d.ts +40 -0
  10. package/build/cjs/types/utils/index.d.ts +3 -0
  11. package/build/cjs/types/utils/use-account-code.d.ts +1 -0
  12. package/build/cjs/types/utils/use-account-code.test.d.ts +1 -0
  13. package/build/cjs/types/utils/use-is-testing.d.ts +3 -0
  14. package/build/cjs/types/utils/use-is-testing.test.d.ts +1 -0
  15. package/build/cjs/types/yuno-dashboard-api-mfe.d.ts +1 -0
  16. package/build/esm/index.js +5 -5
  17. package/build/esm/index.js.map +1 -1
  18. package/build/esm/types/api/api.d.ts +3 -0
  19. package/build/esm/types/msw/mocks/installments/installments.mock.d.ts +3 -0
  20. package/build/esm/types/mutations/installments/installments.mutation.d.ts +6 -0
  21. package/build/esm/types/queries/installments/installments.query.d.ts +1 -0
  22. package/build/esm/types/queries/smart-routing/smart-routing.query.d.ts +0 -3
  23. package/build/esm/types/types/checkout/checkout.d.ts +1 -0
  24. package/build/esm/types/types/installments/installments.d.ts +40 -0
  25. package/build/esm/types/utils/index.d.ts +3 -0
  26. package/build/esm/types/utils/use-account-code.d.ts +1 -0
  27. package/build/esm/types/utils/use-account-code.test.d.ts +1 -0
  28. package/build/esm/types/utils/use-is-testing.d.ts +3 -0
  29. package/build/esm/types/utils/use-is-testing.test.d.ts +1 -0
  30. package/build/esm/types/yuno-dashboard-api-mfe.d.ts +1 -0
  31. package/build/index.d.ts +61 -4
  32. package/package.json +1 -1
@@ -418,6 +418,9 @@ export declare class Api extends HttpClient {
418
418
  createInstallmentsPlan<T, P = unknown>(payload: P): Promise<AxiosResponse<T>>;
419
419
  updateInstallmentsPlan<T, P = unknown>(code: string, payload: P): Promise<AxiosResponse<T>>;
420
420
  deleteInstallmentsPlan<T>(code: string): Promise<AxiosResponse<T>>;
421
+ searchInstallmentsPlans(payload: Installments.SearchInstallmentsPlansRequest): Promise<AxiosResponse<Installments.SearchInstallmentsPlansResponse>>;
422
+ bulkCreateInstallmentsPlans(payload: Installments.BulkCreateInstallmentsPlansRequest): Promise<AxiosResponse<Installments.BulkCreateInstallmentsPlansResponse>>;
423
+ bulkDeleteInstallmentsPlans(payload: Installments.BulkDeleteInstallmentsPlansRequest): Promise<AxiosResponse<Installments.BulkDeleteInstallmentsPlansResponse>>;
421
424
  firebaseUserSubscribe<T>(payload: FirebaseUserSubscribe): Promise<AxiosResponse<T>>;
422
425
  postUserSettings<T>(payload: TimeZoneCatalog | PaymentsSettings): Promise<AxiosResponse<T>>;
423
426
  postUserSettingsTables<T>(payload: PaymentsSettings, section: string): Promise<AxiosResponse<T>>;
@@ -3,3 +3,6 @@ export declare const installmentsPlansMock: Installments.GetInstallmentsPlansRes
3
3
  export declare const createInstallmentsPlanMock: Installments.CreateInstallmentsPlanResponse;
4
4
  export declare const updateInstallmentsPlanMock: Installments.UpdateInstallmentsPlanResponse;
5
5
  export declare const deleteInstallmentsPlanMock: Installments.DeleteInstallmentsPlanResponse;
6
+ export declare const searchInstallmentsPlansMock: Installments.SearchInstallmentsPlansResponse;
7
+ export declare const bulkCreateInstallmentsPlansMock: Installments.BulkCreateInstallmentsPlansResponse;
8
+ export declare const bulkDeleteInstallmentsPlansMock: Installments.BulkDeleteInstallmentsPlansResponse;
@@ -9,3 +9,9 @@ export declare function useUpdateInstallmentsPlan(): import("@tanstack/react-que
9
9
  export declare function useDeleteInstallmentsPlan(): import("@tanstack/react-query").UseMutationResult<Installments.DeleteInstallmentsPlanResponse, unknown, {
10
10
  code: string;
11
11
  }, unknown>;
12
+ export declare function useBulkCreateInstallmentsPlans(): import("@tanstack/react-query").UseMutationResult<Installments.BulkCreateInstallmentsPlansResponse, unknown, {
13
+ payload: Installments.BulkCreateInstallmentsPlansRequest;
14
+ }, unknown>;
15
+ export declare function useBulkDeleteInstallmentsPlans(): import("@tanstack/react-query").UseMutationResult<Installments.BulkDeleteInstallmentsPlansResponse, unknown, {
16
+ payload: Installments.BulkDeleteInstallmentsPlansRequest;
17
+ }, unknown>;
@@ -1,3 +1,4 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import { Installments } from '../../types';
3
3
  export declare function useGetInstallmentsPlans(accountCode: string, enabled?: boolean, params?: Installments.GetInstallmentsPlansParams): UseQueryResult<Installments.GetInstallmentsPlansResponse, Error>;
4
+ export declare function useSearchInstallmentsPlans(payload: Installments.SearchInstallmentsPlansRequest, enabled?: boolean): UseQueryResult<Installments.SearchInstallmentsPlansResponse, Error>;
@@ -5,9 +5,6 @@ import { BFFErrorResponse } from '../../mutations';
5
5
  export interface ErrorProp {
6
6
  name?: string;
7
7
  }
8
- export declare const useIsTesting: () => {
9
- isTesting: boolean;
10
- };
11
8
  export declare function useGetSmartRoutingMethods(accountCode: string, routingType?: SmartRouting.RoutingType): UseQueryResult<SmartRouting.PaymentMethods & ErrorProp, unknown>;
12
9
  export declare function useGetSmartRoutingWorkflow(accountCode: string, paymentMethod: string, routingType?: SmartRouting.RoutingType): UseQueryResult<SmartRouting.WorkflowVersions & ErrorProp, unknown>;
13
10
  export declare function useGetSmartRoutingConditionTypes(accountCode: string, paymentMethod: string, routingType?: SmartRouting.RoutingType): UseQueryResult<SmartRouting.ConditionTypes & ErrorProp, unknown>;
@@ -172,6 +172,7 @@ export declare namespace Checkout {
172
172
  updated_at: string;
173
173
  }
174
174
  export interface UpdateIsActiveCheckoutParams {
175
+ accountCode?: string;
175
176
  checkoutCode: string;
176
177
  paymentMethods: {
177
178
  is_active: boolean;
@@ -77,4 +77,44 @@ export declare namespace Installments {
77
77
  deleted?: boolean;
78
78
  message?: string;
79
79
  }
80
+ interface SearchInstallmentsPlansRequest {
81
+ account_id?: string[];
82
+ country_code?: string[];
83
+ brand?: string[];
84
+ name?: string;
85
+ merchant_reference?: string;
86
+ issuer?: string;
87
+ bin?: string;
88
+ start_date?: string;
89
+ end_date?: string;
90
+ page?: number;
91
+ size?: number;
92
+ }
93
+ interface SearchInstallmentsPlansResponse {
94
+ data: InstallmentsPlan[];
95
+ total: number;
96
+ page: number;
97
+ size: number;
98
+ }
99
+ interface BulkCreateInstallmentsPlansRequest {
100
+ account_ids: string[];
101
+ name: string;
102
+ source?: string;
103
+ merchant_reference?: string;
104
+ country_code: string;
105
+ amount?: PlanAmount;
106
+ installments_plan?: InstallmentPlanItem[];
107
+ availability?: Availability;
108
+ }
109
+ interface BulkCreateInstallmentsPlansResponse {
110
+ created: InstallmentsPlan[];
111
+ errors: string[];
112
+ }
113
+ interface BulkDeleteInstallmentsPlansRequest {
114
+ codes: string[];
115
+ }
116
+ interface BulkDeleteInstallmentsPlansResponse {
117
+ deleted: string[];
118
+ errors?: string[];
119
+ }
80
120
  }
@@ -0,0 +1,3 @@
1
+ export { useIsTesting } from './use-is-testing';
2
+ export { useLocalStorage, useOrganizationCode } from './use-localstorage';
3
+ export { useAccountCode } from './use-account-code';
@@ -0,0 +1 @@
1
+ export declare const useAccountCode: () => any;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ export declare const useIsTesting: () => {
2
+ isTesting: boolean;
3
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -6,3 +6,4 @@ export * from './store';
6
6
  export * from './types';
7
7
  export * from './constants';
8
8
  export * from './websockets';
9
+ export * from './utils';