@yuno-payments/dashboard-api-mfe 0.36.57 → 0.36.59-beta.4

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.
@@ -5,4 +5,9 @@ export declare const environment: {
5
5
  BFF_URL_STG: string | undefined;
6
6
  BFF_URL_DEV: string | undefined;
7
7
  BFF_URL_LOCAL: string | undefined;
8
+ WS_URL_LOCAL: string | undefined;
9
+ WS_URL_PROD: string | undefined;
10
+ WS_URL_SBX: string | undefined;
11
+ WS_URL_STG: string | undefined;
12
+ WS_URL_DEV: string | undefined;
8
13
  };
@@ -1,5 +1,6 @@
1
1
  import { UseMutationResult } from '@tanstack/react-query';
2
2
  import { AxiosError } from 'axios';
3
+ import { ChartGPTChart, ChartGPTExecuteResponse } from '../../queries';
3
4
  export interface CreateChartGPTChartPayload {
4
5
  user_prompt: string;
5
6
  }
@@ -24,7 +25,11 @@ export interface CreateAndExecuteChartPayload {
24
25
  user_prompt: string;
25
26
  }
26
27
  export interface CreateAndExecuteChartResult {
27
- chart_id: string;
28
+ chart_id?: string;
29
+ execution?: ChartGPTExecuteResponse;
30
+ chart?: ChartGPTChart;
31
+ status?: string;
32
+ type?: string;
28
33
  }
29
34
  export declare function useCreateChart(): UseMutationResult<CreateChartGPTChartResponse, AxiosError<ErrorChartGPTResponse>, CreateChartGPTChartPayload>;
30
35
  export declare function useDeleteChart(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, string>;
@@ -6,7 +6,7 @@ export interface ChartGPTResult {
6
6
  export interface ChartGPTExecuteResponse {
7
7
  status: string;
8
8
  summary: string;
9
- available_types?: string[];
9
+ availableTypes?: string[];
10
10
  results: ChartGPTResult[];
11
11
  sql_query?: string;
12
12
  user_prompt?: string;
package/build/index.d.ts CHANGED
@@ -4443,61 +4443,6 @@ interface ErrorRoutingAIResponse {
4443
4443
  declare function useAICreateWorkflow(organizationCode: string, options?: Omit<UseMutationOptions<CreateAIsResponse, AxiosError<ErrorRoutingAIResponse>, SmartRouting.PayloadAIWorkflowCreate, unknown> | undefined, 'mutationKey' | 'mutationFn'>): UseMutationResult<CreateAIsResponse, AxiosError<ErrorRoutingAIResponse>, SmartRouting.PayloadAIWorkflowCreate>;
4444
4444
  declare function useGenerateFeedback(options?: Omit<UseMutationOptions<any, AxiosError<ErrorRoutingAIResponse>, AI.AIGenerate, unknown> | undefined, 'mutationKey' | 'mutationFn'>): UseMutationResult<any, AxiosError<ErrorRoutingAIResponse>, AI.AIGenerate>;
4445
4445
 
4446
- interface CreateChartGPTChartPayload {
4447
- user_prompt: string;
4448
- }
4449
- interface CreateChartGPTChartResponse {
4450
- [key: string]: any;
4451
- }
4452
- interface ErrorChartGPTResponse {
4453
- errors: {
4454
- message: string;
4455
- code: string;
4456
- params?: string[];
4457
- param?: string;
4458
- }[];
4459
- }
4460
- interface PatchChartGPTChartPayload {
4461
- chart_id: string;
4462
- type: string;
4463
- name: string;
4464
- user_prompt: string;
4465
- }
4466
- interface CreateAndExecuteChartPayload {
4467
- user_prompt: string;
4468
- }
4469
- interface CreateAndExecuteChartResult {
4470
- chart_id: string;
4471
- }
4472
- declare function useCreateChart(): UseMutationResult<CreateChartGPTChartResponse, AxiosError<ErrorChartGPTResponse>, CreateChartGPTChartPayload>;
4473
- declare function useDeleteChart(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, string>;
4474
- declare function usePatchChartName(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, PatchChartGPTChartPayload>;
4475
- declare function useCreateAndExecuteChart(): UseMutationResult<CreateAndExecuteChartResult, AxiosError<ErrorChartGPTResponse>, CreateAndExecuteChartPayload>;
4476
-
4477
- declare namespace AllowedList {
4478
- interface Request {
4479
- ip_address: string;
4480
- }
4481
- interface Response {
4482
- ip_address: string;
4483
- isValid: boolean;
4484
- }
4485
- }
4486
-
4487
- declare namespace FeatureFlags {
4488
- interface Request {
4489
- account_code: string;
4490
- organization_code: string;
4491
- name: string;
4492
- [key: string]: string;
4493
- }
4494
- interface RequestAll {
4495
- account_code: string;
4496
- organization_code: string;
4497
- email: string;
4498
- }
4499
- }
4500
-
4501
4446
  declare function usePostPaymentsLazy(params: GetPaymentsParams): UseQueryResult<Payment.PaymentList, AxiosError<BFFErrorResponse>>;
4502
4447
  declare function usePostPaymentsEvaluated(params: GetPaymentsEvaluatedParams): UseQueryResult<Payment.PaymentList, AxiosError<BFFErrorResponse>>;
4503
4448
  declare function useGetPaymentV2({ paymentCode, enabled, }: {
@@ -4562,6 +4507,16 @@ declare namespace CustomizedApiKeys {
4562
4507
  }
4563
4508
  }
4564
4509
 
4510
+ declare namespace AllowedList {
4511
+ interface Request {
4512
+ ip_address: string;
4513
+ }
4514
+ interface Response {
4515
+ ip_address: string;
4516
+ isValid: boolean;
4517
+ }
4518
+ }
4519
+
4565
4520
  declare function useGetCredentials({ password, accountCode, }: {
4566
4521
  password: string;
4567
4522
  accountCode: string;
@@ -4828,6 +4783,20 @@ type UseGetAllReconciliationsFeesProps = {
4828
4783
  };
4829
4784
  declare function useGetAllReconciliationsFees({ body, params, enabled, }: UseGetAllReconciliationsFeesProps): UseQueryResult<ReconciliationFees.GetAllReconciliationsFeesResponse, Reconciliation.Error>;
4830
4785
 
4786
+ declare namespace FeatureFlags {
4787
+ interface Request {
4788
+ account_code: string;
4789
+ organization_code: string;
4790
+ name: string;
4791
+ [key: string]: string;
4792
+ }
4793
+ interface RequestAll {
4794
+ account_code: string;
4795
+ organization_code: string;
4796
+ email: string;
4797
+ }
4798
+ }
4799
+
4831
4800
  interface FeatureFlagsResult {
4832
4801
  [key: string]: boolean;
4833
4802
  }
@@ -4888,7 +4857,7 @@ interface ChartGPTResult {
4888
4857
  interface ChartGPTExecuteResponse {
4889
4858
  status: string;
4890
4859
  summary: string;
4891
- available_types?: string[];
4860
+ availableTypes?: string[];
4892
4861
  results: ChartGPTResult[];
4893
4862
  sql_query?: string;
4894
4863
  user_prompt?: string;
@@ -4928,6 +4897,41 @@ declare function usePatchAndExecuteChart(chart_id: string, patchPayload: PatchCh
4928
4897
  declare function useGetLanguages(): UseQueryResult<Translation.Languages, AxiosError>;
4929
4898
  declare function useGetTranslations(): UseQueryResult<Translation.Translations, AxiosError>;
4930
4899
 
4900
+ interface CreateChartGPTChartPayload {
4901
+ user_prompt: string;
4902
+ }
4903
+ interface CreateChartGPTChartResponse {
4904
+ [key: string]: any;
4905
+ }
4906
+ interface ErrorChartGPTResponse {
4907
+ errors: {
4908
+ message: string;
4909
+ code: string;
4910
+ params?: string[];
4911
+ param?: string;
4912
+ }[];
4913
+ }
4914
+ interface PatchChartGPTChartPayload {
4915
+ chart_id: string;
4916
+ type: string;
4917
+ name: string;
4918
+ user_prompt: string;
4919
+ }
4920
+ interface CreateAndExecuteChartPayload {
4921
+ user_prompt: string;
4922
+ }
4923
+ interface CreateAndExecuteChartResult {
4924
+ chart_id?: string;
4925
+ execution?: ChartGPTExecuteResponse;
4926
+ chart?: ChartGPTChart;
4927
+ status?: string;
4928
+ type?: string;
4929
+ }
4930
+ declare function useCreateChart(): UseMutationResult<CreateChartGPTChartResponse, AxiosError<ErrorChartGPTResponse>, CreateChartGPTChartPayload>;
4931
+ declare function useDeleteChart(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, string>;
4932
+ declare function usePatchChartName(): UseMutationResult<void, AxiosError<ErrorChartGPTResponse>, PatchChartGPTChartPayload>;
4933
+ declare function useCreateAndExecuteChart(): UseMutationResult<CreateAndExecuteChartResult, AxiosError<ErrorChartGPTResponse>, CreateAndExecuteChartPayload>;
4934
+
4931
4935
  interface S3Payload {
4932
4936
  payload: S3Client.PayloadV2;
4933
4937
  handleSetProgress?: (progress: number) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuno-payments/dashboard-api-mfe",
3
- "version": "0.36.57",
3
+ "version": "0.36.59-beta.4",
4
4
  "types": "build/index.d.ts",
5
5
  "main": "build/cjs/index.js",
6
6
  "module": "build/esm/index.js",