@yuno-payments/dashboard-api-mfe 0.36.6 → 0.36.16
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/build/cjs/index.js +7 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +6 -4
- package/build/cjs/types/msw/handlers/insights.d.ts +1 -0
- package/build/cjs/types/msw/handlers/payments.d.ts +1 -0
- package/build/cjs/types/msw/mocks/payments/payments.mock.d.ts +92 -0
- package/build/cjs/types/msw/mocks/payments/transaction-details.mock.d.ts +579 -0
- package/build/cjs/types/mutations/ai/ai.mutation.d.ts +2 -1
- package/build/cjs/types/queries/data-report/data-report.query.d.ts +1 -1
- package/build/cjs/types/queries/feature-flags/index.d.ts +1 -2
- package/build/cjs/types/queries/index.d.ts +1 -0
- package/build/cjs/types/queries/translation/index.d.ts +1 -0
- package/build/cjs/types/queries/translation/translation.query.d.ts +5 -0
- package/build/cjs/types/types/ai/ai.d.ts +26 -0
- package/build/cjs/types/types/ai/index.d.ts +1 -0
- package/build/cjs/types/types/index.d.ts +2 -0
- package/build/cjs/types/types/payment/payment.d.ts +3 -1
- package/build/cjs/types/types/translation/index.d.ts +1 -0
- package/build/cjs/types/types/translation/translation.d.ts +8 -0
- package/build/esm/index.js +7 -7
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +6 -4
- package/build/esm/types/msw/handlers/insights.d.ts +1 -0
- package/build/esm/types/msw/handlers/payments.d.ts +1 -0
- package/build/esm/types/msw/mocks/payments/payments.mock.d.ts +92 -0
- package/build/esm/types/msw/mocks/payments/transaction-details.mock.d.ts +579 -0
- package/build/esm/types/mutations/ai/ai.mutation.d.ts +2 -1
- package/build/esm/types/queries/data-report/data-report.query.d.ts +1 -1
- package/build/esm/types/queries/feature-flags/index.d.ts +1 -2
- package/build/esm/types/queries/index.d.ts +1 -0
- package/build/esm/types/queries/translation/index.d.ts +1 -0
- package/build/esm/types/queries/translation/translation.query.d.ts +5 -0
- package/build/esm/types/types/ai/ai.d.ts +26 -0
- package/build/esm/types/types/ai/index.d.ts +1 -0
- package/build/esm/types/types/index.d.ts +2 -0
- package/build/esm/types/types/payment/payment.d.ts +3 -1
- package/build/esm/types/types/translation/index.d.ts +1 -0
- package/build/esm/types/types/translation/translation.d.ts +8 -0
- package/build/index.d.ts +50 -8
- package/package.json +1 -1
- /package/build/cjs/types/msw/{handlers.d.ts → handlers/index.d.ts} +0 -0
- /package/build/esm/types/msw/{handlers.d.ts → handlers/index.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
2
|
-
import { SmartRouting } from '../../types';
|
|
2
|
+
import { AI, SmartRouting } from '../../types';
|
|
3
3
|
import { AxiosError } from 'axios';
|
|
4
4
|
interface CreateAIsResponse {
|
|
5
5
|
code: string;
|
|
@@ -24,4 +24,5 @@ export interface ErrorRoutingAIResponse {
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
export declare function useAICreateWorkflow(organizationCode: string, options?: Omit<UseMutationOptions<CreateAIsResponse, AxiosError<ErrorRoutingAIResponse>, SmartRouting.PayloadAIWorkflowCreate, unknown> | undefined, 'mutationKey' | 'mutationFn'>): UseMutationResult<CreateAIsResponse, AxiosError<ErrorRoutingAIResponse>, SmartRouting.PayloadAIWorkflowCreate>;
|
|
27
|
+
export declare function useGenerateFeedback(options?: Omit<UseMutationOptions<any, AxiosError<ErrorRoutingAIResponse>, AI.AIGenerate, unknown> | undefined, 'mutationKey' | 'mutationFn'>): UseMutationResult<any, AxiosError<ErrorRoutingAIResponse>, AI.AIGenerate>;
|
|
27
28
|
export {};
|
|
@@ -3,7 +3,7 @@ import { DataReport } from '../../types';
|
|
|
3
3
|
export declare function useGetSmartRoutingDataReport(params: {
|
|
4
4
|
[a: string]: number;
|
|
5
5
|
}): UseQueryResult<any, unknown>;
|
|
6
|
-
export declare function useInsightsConversionRateMetricsV2(params: DataReport.InsightMetricParams, path: string): UseQueryResult<any, unknown>;
|
|
6
|
+
export declare function useInsightsConversionRateMetricsV2(params: DataReport.InsightMetricParams, path: string, enabled?: boolean): UseQueryResult<any, unknown>;
|
|
7
7
|
export declare function useViewMoreMetrics(params: DataReport.InsightMetricParams, type: any): UseQueryResult<any, unknown>;
|
|
8
8
|
export declare function useInsightsFallbackMetrics(params: DataReport.InsightMetricParams): UseQueryResult<any, unknown>;
|
|
9
9
|
export declare function useInsightsVolumeMetrics(account_codes: string, params: DataReport.InsightMetricParams, enabled?: boolean): UseQueryResult<any, unknown>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { FeatureFlags } from '../../types/feature-flags/intex';
|
|
3
3
|
export interface FeatureFlagsResult {
|
|
4
|
-
|
|
4
|
+
[key: string]: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare function useFeatureFlags(data: FeatureFlags.Request): UseQueryResult<FeatureFlagsResult, unknown>;
|
|
7
|
-
export declare const ALL_FEATURE_FLAGS: string[];
|
|
8
7
|
export declare function useAllFeatureFlags(body: FeatureFlags.RequestAll): UseQueryResult<FeatureFlagsResult, unknown>;
|
|
9
8
|
export declare function useCachedFeatureFlag(name: string): UseQueryResult<FeatureFlagsResult>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './translation.query';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { AxiosError } from 'axios';
|
|
3
|
+
import { Translation } from '../../types';
|
|
4
|
+
export declare function useGetLanguages(): UseQueryResult<Translation.Languages, AxiosError>;
|
|
5
|
+
export declare function useGetTranslations(): UseQueryResult<Translation.Translations, AxiosError>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { SmartRouting } from '../smart-routing';
|
|
2
|
+
export declare namespace AI {
|
|
3
|
+
/**
|
|
4
|
+
* @description Payload for AI generation feedback
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* code: '123', // code of the workflow, not the version code
|
|
8
|
+
* generated_json: [{
|
|
9
|
+
* type: 'condition',
|
|
10
|
+
* value: '123'
|
|
11
|
+
* }],
|
|
12
|
+
* status: 'ACCEPTED' | 'REJECTED' | 'FRONT_FAILED'
|
|
13
|
+
*/
|
|
14
|
+
type AIGenerate = {
|
|
15
|
+
code: string;
|
|
16
|
+
generated_json: {
|
|
17
|
+
condition_sets: SmartRouting.ConditionItem[];
|
|
18
|
+
};
|
|
19
|
+
status: AIGenerateStatus;
|
|
20
|
+
};
|
|
21
|
+
enum AIGenerateStatus {
|
|
22
|
+
ACCEPTED = "ACCEPTED",
|
|
23
|
+
REFUSED = "REJECTED",
|
|
24
|
+
FRONT_FAILED = "FRONT_FAILED"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ai';
|
|
@@ -93,6 +93,7 @@ export declare namespace Payment {
|
|
|
93
93
|
payment_method: PaymentMethod;
|
|
94
94
|
customer_payer: CustomerPayer;
|
|
95
95
|
order: Order;
|
|
96
|
+
test_credential: boolean;
|
|
96
97
|
}
|
|
97
98
|
interface PaymentV2 {
|
|
98
99
|
organization_code: string;
|
|
@@ -118,6 +119,7 @@ export declare namespace Payment {
|
|
|
118
119
|
trace_id: string;
|
|
119
120
|
subscription_code: string;
|
|
120
121
|
merchant_reference: string;
|
|
122
|
+
test_credential: boolean;
|
|
121
123
|
}
|
|
122
124
|
interface TransactionPayment {
|
|
123
125
|
code: string;
|
|
@@ -138,7 +140,7 @@ export declare namespace Payment {
|
|
|
138
140
|
three_ds_electronic_commerce_indicator?: string;
|
|
139
141
|
three_ds_transaction_id?: string;
|
|
140
142
|
}
|
|
141
|
-
interface PaymentItem extends Pick<Payment, 'code' | 'description' | 'country' | 'status' | 'amount' | 'created_at' | 'updated_at'> {
|
|
143
|
+
interface PaymentItem extends Pick<Payment, 'code' | 'description' | 'country' | 'status' | 'amount' | 'created_at' | 'updated_at' | 'test_credential'> {
|
|
142
144
|
idempotency_key: string;
|
|
143
145
|
organization_code: string;
|
|
144
146
|
order_id: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './translation';
|