@yuno-payments/dashboard-api-mfe 0.41.0-beta.2 → 0.41.2-DAS-12434.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.
@@ -1,5 +1,6 @@
1
1
  import { UseMutationResult } from '@tanstack/react-query';
2
2
  import { OrganizationConfig } from '../../types';
3
3
  import { AxiosResponse } from 'axios';
4
- export declare function usePostOrganizationConfigs(): UseMutationResult<AxiosResponse<OrganizationConfig.PostConfigsResponse>, unknown, OrganizationConfig.PostConfigsRequest>;
5
- export declare function usePutOrganizationConfigsByAccount(): UseMutationResult<AxiosResponse<OrganizationConfig.PutConfigsByAccountResponse>, unknown, OrganizationConfig.PutConfigsByAccountRequest>;
4
+ import { BFFErrorResponse } from '../smart-routing';
5
+ export declare function usePostOrganizationConfigs(): UseMutationResult<AxiosResponse<OrganizationConfig.PostConfigsResponse>, BFFErrorResponse, OrganizationConfig.PostConfigsRequest>;
6
+ export declare function usePutOrganizationConfigsByAccount(): UseMutationResult<AxiosResponse<OrganizationConfig.PutConfigsByAccountResponse>, BFFErrorResponse, OrganizationConfig.PutConfigsByAccountRequest>;
@@ -1,3 +1,4 @@
1
1
  import { UseQueryResult } from '@tanstack/react-query';
2
2
  import { OrganizationConfig } from '../../types';
3
- export declare function useGetOrganizationConfigs(): UseQueryResult<OrganizationConfig.GetConfigsResponse, unknown>;
3
+ import { BFFErrorResponse } from '../../mutations';
4
+ export declare function useGetOrganizationConfigs(): UseQueryResult<OrganizationConfig.GetConfigsResponse, BFFErrorResponse>;
@@ -51,22 +51,27 @@ export declare namespace Connection {
51
51
  }
52
52
  ];
53
53
  };
54
- interface NetworkTokensOnboardingData {
55
- name: string;
56
- legal_name: string;
57
- website: string;
58
- identification_type: string;
59
- identification_number: string;
60
- address_line_1: string;
61
- address_line_2: string;
62
- city: string;
63
- state: string;
64
- country: string;
65
- zip_code: string;
66
- phone: string;
67
- contact_first_name: string;
68
- contact_last_name: string;
69
- contact_email: string;
54
+ interface NetworkTokensOnboardingMerchantData {
55
+ network_token: NetworkTokensOnboardingData | null;
70
56
  account_codes: string[];
71
57
  }
58
+ interface NetworkTokensOnboardingData {
59
+ name: string | null;
60
+ legal_name: string | null;
61
+ website: string | null;
62
+ identification_type: string | null;
63
+ identification_number: string | null;
64
+ address_line_1: string | null;
65
+ address_line_2: string | null;
66
+ city: string | null;
67
+ state: string | null;
68
+ country: string | null;
69
+ zip_code: string | null;
70
+ phone: string | null;
71
+ contact_first_name: string | null;
72
+ contact_last_name: string | null;
73
+ contact_email: string | null;
74
+ merchant_category_code: string | null;
75
+ merchant_country_code: string | null;
76
+ }
72
77
  }
@@ -2,7 +2,7 @@ export declare namespace OrganizationConfig {
2
2
  enum ConfigType {
3
3
  YUNO_SMART_TOKENS = "YUNO_SMART_TOKENS",
4
4
  CUSTOM_ROUTING_RULES = "CUSTOM_ROUTING_RULES",
5
- CUSTOM_RETRY_WITH_PAN = "CUSTOM_RETRY_WITH_PAN"
5
+ CUSTOM_RETRY_DECLINED_WITH_PAN = "CUSTOM_RETRY_DECLINED_WITH_PAN"
6
6
  }
7
7
  interface OrganizationConfigItem {
8
8
  id: number;
package/build/index.d.ts CHANGED
@@ -1083,24 +1083,29 @@ declare namespace Connection {
1083
1083
  }
1084
1084
  ];
1085
1085
  };
1086
- interface NetworkTokensOnboardingData {
1087
- name: string;
1088
- legal_name: string;
1089
- website: string;
1090
- identification_type: string;
1091
- identification_number: string;
1092
- address_line_1: string;
1093
- address_line_2: string;
1094
- city: string;
1095
- state: string;
1096
- country: string;
1097
- zip_code: string;
1098
- phone: string;
1099
- contact_first_name: string;
1100
- contact_last_name: string;
1101
- contact_email: string;
1086
+ interface NetworkTokensOnboardingMerchantData {
1087
+ network_token: NetworkTokensOnboardingData | null;
1102
1088
  account_codes: string[];
1103
1089
  }
1090
+ interface NetworkTokensOnboardingData {
1091
+ name: string | null;
1092
+ legal_name: string | null;
1093
+ website: string | null;
1094
+ identification_type: string | null;
1095
+ identification_number: string | null;
1096
+ address_line_1: string | null;
1097
+ address_line_2: string | null;
1098
+ city: string | null;
1099
+ state: string | null;
1100
+ country: string | null;
1101
+ zip_code: string | null;
1102
+ phone: string | null;
1103
+ contact_first_name: string | null;
1104
+ contact_last_name: string | null;
1105
+ contact_email: string | null;
1106
+ merchant_category_code: string | null;
1107
+ merchant_country_code: string | null;
1108
+ }
1104
1109
  }
1105
1110
 
1106
1111
  declare namespace Organization {
@@ -4417,7 +4422,7 @@ declare namespace OrganizationConfig {
4417
4422
  enum ConfigType {
4418
4423
  YUNO_SMART_TOKENS = "YUNO_SMART_TOKENS",
4419
4424
  CUSTOM_ROUTING_RULES = "CUSTOM_ROUTING_RULES",
4420
- CUSTOM_RETRY_WITH_PAN = "CUSTOM_RETRY_WITH_PAN"
4425
+ CUSTOM_RETRY_DECLINED_WITH_PAN = "CUSTOM_RETRY_DECLINED_WITH_PAN"
4421
4426
  }
4422
4427
  interface OrganizationConfigItem {
4423
4428
  id: number;
@@ -5661,7 +5666,7 @@ declare function useSearchTemplateById(templateId: number, payload: TemplateRepo
5661
5666
  declare function useSearchSchedules(payload: TemplateReporting.SearchSchedulesRequest, enabled: boolean): UseQueryResult<TemplateReporting.GetSchedulesListResponse, AxiosError>;
5662
5667
  declare function useSearchScheduleById(scheduleId: number, payload: TemplateReporting.SearchScheduleByIdRequest, enabled: boolean): UseQueryResult<TemplateReporting.ReportSchedule, AxiosError>;
5663
5668
 
5664
- declare function useGetOrganizationConfigs(): UseQueryResult<OrganizationConfig.GetConfigsResponse, unknown>;
5669
+ declare function useGetOrganizationConfigs(): UseQueryResult<OrganizationConfig.GetConfigsResponse, BFFErrorResponse>;
5665
5670
 
5666
5671
  interface CreateChartGPTChartPayload {
5667
5672
  user_prompt: string;
@@ -5729,8 +5734,8 @@ declare function useDeleteSchedule(): UseMutationResult<TemplateReporting.Delete
5729
5734
  payload: TemplateReporting.DeleteScheduleRequest;
5730
5735
  }>;
5731
5736
 
5732
- declare function usePostOrganizationConfigs(): UseMutationResult<AxiosResponse<OrganizationConfig.PostConfigsResponse>, unknown, OrganizationConfig.PostConfigsRequest>;
5733
- declare function usePutOrganizationConfigsByAccount(): UseMutationResult<AxiosResponse<OrganizationConfig.PutConfigsByAccountResponse>, unknown, OrganizationConfig.PutConfigsByAccountRequest>;
5737
+ declare function usePostOrganizationConfigs(): UseMutationResult<AxiosResponse<OrganizationConfig.PostConfigsResponse>, BFFErrorResponse, OrganizationConfig.PostConfigsRequest>;
5738
+ declare function usePutOrganizationConfigsByAccount(): UseMutationResult<AxiosResponse<OrganizationConfig.PutConfigsByAccountResponse>, BFFErrorResponse, OrganizationConfig.PutConfigsByAccountRequest>;
5734
5739
 
5735
5740
  interface S3Payload {
5736
5741
  payload: S3Client.PayloadV2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuno-payments/dashboard-api-mfe",
3
- "version": "0.41.0-beta.2",
3
+ "version": "0.41.2-DAS-12434.1",
4
4
  "types": "build/index.d.ts",
5
5
  "main": "build/cjs/index.js",
6
6
  "module": "build/esm/index.js",