@yuno-payments/dashboard-api-mfe 0.40.5 → 0.40.6
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 +6 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +10 -10
- package/build/cjs/types/mutations/accounts/accounts.mutation.d.ts +7 -7
- package/build/cjs/types/mutations/audit/audit.mutation.d.ts +1 -1
- package/build/cjs/types/mutations/checkouts/checkouts.mutation.d.ts +1 -1
- package/build/cjs/types/mutations/organization-settings/organization-settings.mutations.d.ts +2 -2
- package/build/cjs/types/mutations/payments/payments.mutation.d.ts +2 -2
- package/build/cjs/types/mutations/saml-config/saml-config.query.d.ts +3 -3
- package/build/cjs/types/mutations/settings/settings.mutation.d.ts +4 -4
- package/build/cjs/types/mutations/users/users.mutation.d.ts +6 -6
- package/build/cjs/types/queries/firebase/firebase.query.d.ts +1 -1
- package/build/cjs/types/types/checkout/checkout.d.ts +22 -0
- package/build/esm/index.js +3 -3
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +10 -10
- package/build/esm/types/mutations/accounts/accounts.mutation.d.ts +7 -7
- package/build/esm/types/mutations/audit/audit.mutation.d.ts +1 -1
- package/build/esm/types/mutations/checkouts/checkouts.mutation.d.ts +1 -1
- package/build/esm/types/mutations/organization-settings/organization-settings.mutations.d.ts +2 -2
- package/build/esm/types/mutations/payments/payments.mutation.d.ts +2 -2
- package/build/esm/types/mutations/saml-config/saml-config.query.d.ts +3 -3
- package/build/esm/types/mutations/settings/settings.mutation.d.ts +4 -4
- package/build/esm/types/mutations/users/users.mutation.d.ts +6 -6
- package/build/esm/types/queries/firebase/firebase.query.d.ts +1 -1
- package/build/esm/types/types/checkout/checkout.d.ts +22 -0
- package/build/index.d.ts +59 -37
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ interface S3Payload {
|
|
|
17
17
|
}
|
|
18
18
|
export declare class Api extends HttpClient {
|
|
19
19
|
constructor(config?: AxiosRequestConfig);
|
|
20
|
-
simulateAxiosError(): Promise<AxiosResponse<any, any
|
|
20
|
+
simulateAxiosError(): Promise<AxiosResponse<any, any>>;
|
|
21
21
|
updateReconciliationReportTemplate<T>(payload: Reports.ICreateTemplate): Promise<AxiosResponse<T>>;
|
|
22
22
|
createReconciliationReportTemplate<T>(payload: Reports.ICreateTemplate): Promise<AxiosResponse<T>>;
|
|
23
23
|
getReconciliationTransactions<T>(params: any): Promise<AxiosResponse<T, any>>;
|
|
@@ -221,32 +221,32 @@ export declare class Api extends HttpClient {
|
|
|
221
221
|
updateIsActiveCheckout(args: Checkout.UpdateIsActiveCheckoutParams): Promise<AxiosResponse>;
|
|
222
222
|
getStylingSdkDynamic({ accountCode }: {
|
|
223
223
|
accountCode: any;
|
|
224
|
-
}): Promise<AxiosResponse<Styling.Settings, any
|
|
224
|
+
}): Promise<AxiosResponse<Styling.Settings, any>>;
|
|
225
225
|
/**
|
|
226
226
|
* @deprecated since version 0.36.27. use getStylingSettings instead
|
|
227
227
|
*/
|
|
228
228
|
getStylingTheme({ accountCode }: {
|
|
229
229
|
accountCode: string;
|
|
230
|
-
}): Promise<AxiosResponse<Styling.Theme, any
|
|
230
|
+
}): Promise<AxiosResponse<Styling.Theme, any>>;
|
|
231
231
|
/**
|
|
232
232
|
* @deprecated since version 0.36.27. use changeStylingSettings instead
|
|
233
233
|
*/
|
|
234
|
-
updateStylingTheme({ accountCode, theme }: UpdateStylingThemeParams): Promise<AxiosResponse<unknown, any
|
|
234
|
+
updateStylingTheme({ accountCode, theme }: UpdateStylingThemeParams): Promise<AxiosResponse<unknown, any>>;
|
|
235
235
|
/**
|
|
236
236
|
* @deprecated since version 0.36.27. use getStylingSettingsV2 instead
|
|
237
237
|
*/
|
|
238
238
|
getStylingSettings({ accountCode }: {
|
|
239
239
|
accountCode: any;
|
|
240
|
-
}): Promise<AxiosResponse<Styling.Settings, any
|
|
240
|
+
}): Promise<AxiosResponse<Styling.Settings, any>>;
|
|
241
241
|
getStylingSettingsV2({ accountCode, environment, }: {
|
|
242
242
|
accountCode: string;
|
|
243
243
|
environment?: string;
|
|
244
|
-
}): Promise<AxiosResponse<StylingSettings.UpdateSettingsResponse, any
|
|
244
|
+
}): Promise<AxiosResponse<StylingSettings.UpdateSettingsResponse, any>>;
|
|
245
245
|
changeStylingSettings({ accountCode, environment, payload, }: {
|
|
246
246
|
accountCode: string;
|
|
247
247
|
environment?: string;
|
|
248
248
|
payload: StylingSettings.UpdateSettings;
|
|
249
|
-
}): Promise<AxiosResponse<StylingSettings.UpdateSettingsResponse, any
|
|
249
|
+
}): Promise<AxiosResponse<StylingSettings.UpdateSettingsResponse, any>>;
|
|
250
250
|
emailVerification<T>(email: any): Promise<AxiosResponse<T, any>>;
|
|
251
251
|
createReconciliationsReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
252
252
|
createReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
@@ -442,11 +442,11 @@ export declare class Api extends HttpClient {
|
|
|
442
442
|
getVelocityRules<T>(params: any): Promise<AxiosResponse<T, any>>;
|
|
443
443
|
postChangePaymentsWebhook<T>({ status, paymentCode, }: ChangePaymentsWebhook): Promise<AxiosResponse<T, any>>;
|
|
444
444
|
uploadFileS3ClientBatchRefunds<T>({ payload, handleSetProgress, }: S3Payload): {
|
|
445
|
-
promise: Promise<AxiosResponse<T, any
|
|
445
|
+
promise: Promise<AxiosResponse<T, any>>;
|
|
446
446
|
cancel: () => void;
|
|
447
447
|
};
|
|
448
448
|
uploadFileS3ClientChargeBacks<T>({ payload, handleSetProgress, }: S3Payload): {
|
|
449
|
-
promise: Promise<AxiosResponse<T, any
|
|
449
|
+
promise: Promise<AxiosResponse<T, any>>;
|
|
450
450
|
cancel: () => void;
|
|
451
451
|
};
|
|
452
452
|
batchRefundByFile<T>({ payload, }: {
|
|
@@ -481,7 +481,7 @@ export declare class Api extends HttpClient {
|
|
|
481
481
|
postCustomizedApiKeys<T>(accountCodes: string[]): Promise<AxiosResponse<T, any>>;
|
|
482
482
|
getCustomizedApiKeysProducts<T>(): Promise<AxiosResponse<T, any>>;
|
|
483
483
|
getCustomizedApiKeysToken<T>(code: any, password: any): Promise<AxiosResponse<T, any>>;
|
|
484
|
-
validatePasswordStatus<T>(): Promise<AxiosResponse<T, any
|
|
484
|
+
validatePasswordStatus<T>(): Promise<AxiosResponse<T, any>>;
|
|
485
485
|
deleteCustomizedApiKeys<T>(code: any): Promise<AxiosResponse<T, any>>;
|
|
486
486
|
postCreateInsightsReport<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
487
487
|
getInsightsReport<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
@@ -2,14 +2,14 @@ import { Organization, Webhook } from '../../types';
|
|
|
2
2
|
import { DeleteMutation } from './delete-mutation';
|
|
3
3
|
export declare function usePostWebhookMultiAccount({ onSuccessCallback, }: {
|
|
4
4
|
onSuccessCallback?: (data: any) => void;
|
|
5
|
-
}): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any
|
|
5
|
+
}): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any>, unknown, {
|
|
6
6
|
payload: Webhook.WebHookV2MultiAccount;
|
|
7
7
|
}, {
|
|
8
8
|
payload: Webhook.WebHookV2MultiAccount;
|
|
9
9
|
}>;
|
|
10
10
|
export declare function useDeleteWebhookV2({ onSuccessCallback, }: {
|
|
11
11
|
onSuccessCallback?: (data: any) => void;
|
|
12
|
-
}): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<null, any
|
|
12
|
+
}): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<null, any>, unknown, {
|
|
13
13
|
code: string;
|
|
14
14
|
accountCode: string;
|
|
15
15
|
}, {
|
|
@@ -18,7 +18,7 @@ export declare function useDeleteWebhookV2({ onSuccessCallback, }: {
|
|
|
18
18
|
}>;
|
|
19
19
|
export declare function useUpdateWebhookV2({ onSuccessCallback, }: {
|
|
20
20
|
onSuccessCallback?: (data: any) => void;
|
|
21
|
-
}): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<Webhook.WebHookV2, any
|
|
21
|
+
}): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<Webhook.WebHookV2, any>, unknown, {
|
|
22
22
|
code: string;
|
|
23
23
|
payload: any;
|
|
24
24
|
accountCode: string;
|
|
@@ -27,19 +27,19 @@ export declare function useUpdateWebhookV2({ onSuccessCallback, }: {
|
|
|
27
27
|
payload: any;
|
|
28
28
|
accountCode: string;
|
|
29
29
|
}>;
|
|
30
|
-
export declare function usePostAccount(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<Organization.Account, any
|
|
30
|
+
export declare function usePostAccount(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<Organization.Account, any>, unknown, {
|
|
31
31
|
name: string;
|
|
32
32
|
principal: boolean;
|
|
33
33
|
}, unknown>;
|
|
34
|
-
export declare function usePatchAccountV2(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<Organization.Account, any
|
|
34
|
+
export declare function usePatchAccountV2(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<Organization.Account, any>, unknown, {
|
|
35
35
|
name: string;
|
|
36
36
|
code: string;
|
|
37
37
|
principal: boolean;
|
|
38
38
|
}, unknown>;
|
|
39
|
-
export declare function usePutAccountPrincipal(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<Organization.Account, any
|
|
39
|
+
export declare function usePutAccountPrincipal(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<Organization.Account, any>, unknown, {
|
|
40
40
|
account_code: string;
|
|
41
41
|
}, unknown>;
|
|
42
|
-
export declare function usePutAccountsUserMassive(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<Organization.Account, any
|
|
42
|
+
export declare function usePutAccountsUserMassive(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<Organization.Account, any>, unknown, {
|
|
43
43
|
organizationCode: string;
|
|
44
44
|
userCode: string;
|
|
45
45
|
payload: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Audit } from '../../types';
|
|
2
2
|
export declare function usePostAuditMonitors({ onMutate }: {
|
|
3
3
|
onMutate: any;
|
|
4
|
-
}): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<Audit.AuditMonitors, any
|
|
4
|
+
}): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<Audit.AuditMonitors, any>, unknown, {
|
|
5
5
|
payload: Audit.AuditMonitorsParams;
|
|
6
6
|
}, unknown>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UseMutationOptions } from '@tanstack/react-query';
|
|
2
2
|
import { Checkout } from '../../types';
|
|
3
3
|
import { AxiosResponse } from 'axios';
|
|
4
|
-
export declare function useUpdateIsActiveCheckout(options?: UseMutationOptions<AxiosResponse, unknown, Checkout.UpdateIsActiveCheckoutParams>): import("@tanstack/react-query").UseMutationResult<AxiosResponse<any, any
|
|
4
|
+
export declare function useUpdateIsActiveCheckout(options?: UseMutationOptions<AxiosResponse, unknown, Checkout.UpdateIsActiveCheckoutParams>): import("@tanstack/react-query").UseMutationResult<AxiosResponse<any, any>, unknown, Checkout.UpdateIsActiveCheckoutParams, unknown>;
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated since version 0.28.6. use useChangeStylingSettings instead
|
|
7
7
|
*/
|
package/build/esm/types/mutations/organization-settings/organization-settings.mutations.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { OrganizationSettings } from '../../types';
|
|
2
|
-
export declare function useUpdateMFAConfig(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<OrganizationSettings.MfaConfig, any
|
|
2
|
+
export declare function useUpdateMFAConfig(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<OrganizationSettings.MfaConfig, any>, unknown, {
|
|
3
3
|
payload: OrganizationSettings.MfaConfigRequest;
|
|
4
4
|
organizationCode: string;
|
|
5
5
|
}, unknown>;
|
|
6
|
-
export declare function useExcludeUsers(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<OrganizationSettings.MfaConfig, any
|
|
6
|
+
export declare function useExcludeUsers(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<OrganizationSettings.MfaConfig, any>, unknown, {
|
|
7
7
|
payload: OrganizationSettings.MfaUserExcluded[];
|
|
8
8
|
organizationCode: string;
|
|
9
9
|
}, unknown>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { OperationTransaction, Payment } from '../../types';
|
|
2
|
-
export declare function useCreateOperationTransaction(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<OperationTransaction.Response, any
|
|
2
|
+
export declare function useCreateOperationTransaction(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<OperationTransaction.Response, any>, unknown, {
|
|
3
3
|
payload: OperationTransaction.Request;
|
|
4
4
|
transactionId: string;
|
|
5
5
|
paymentId: string;
|
|
6
6
|
action: OperationTransaction.Actions;
|
|
7
7
|
}, unknown>;
|
|
8
|
-
export declare function useChargebacksUpload(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<Payment.UploadRequest, any
|
|
8
|
+
export declare function useChargebacksUpload(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<Payment.UploadRequest, any>, unknown, {
|
|
9
9
|
payload: Payment.UploadRequest;
|
|
10
10
|
paymentId: string;
|
|
11
11
|
transactionId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { SamlConfig } from '../../types';
|
|
2
|
-
export declare function useCreateSamlConfig(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any
|
|
3
|
-
export declare function useUpdateSamlConfig(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any
|
|
4
|
-
export declare function useDeleteSamlConfig(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any
|
|
2
|
+
export declare function useCreateSamlConfig(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any>, unknown, SamlConfig.SamlConfigRequest, unknown>;
|
|
3
|
+
export declare function useUpdateSamlConfig(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any>, unknown, Partial<SamlConfig.SamlConfigRequest>, unknown>;
|
|
4
|
+
export declare function useDeleteSamlConfig(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any>, unknown, void, unknown>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { PinnedSections, ThemeSettings } from '../../api';
|
|
2
|
-
export declare function usePostUserSettings(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any
|
|
2
|
+
export declare function usePostUserSettings(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any>, unknown, {
|
|
3
3
|
payload: any;
|
|
4
4
|
}, {
|
|
5
5
|
payload: any;
|
|
6
6
|
}>;
|
|
7
|
-
export declare function usePostUserThemeSettings(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any
|
|
8
|
-
export declare function usePostUserSettingsTables(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any
|
|
7
|
+
export declare function usePostUserThemeSettings(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any>, unknown, ThemeSettings, unknown>;
|
|
8
|
+
export declare function usePostUserSettingsTables(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any>, unknown, {
|
|
9
9
|
payload: any;
|
|
10
10
|
section: string;
|
|
11
11
|
}, {
|
|
12
12
|
payload: any;
|
|
13
13
|
section: string;
|
|
14
14
|
}>;
|
|
15
|
-
export declare function usePostUserSettingsPinned(onMutate: any): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any
|
|
15
|
+
export declare function usePostUserSettingsPinned(onMutate: any): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any>, unknown, {
|
|
16
16
|
payload: PinnedSections;
|
|
17
17
|
}, any>;
|
|
@@ -2,15 +2,15 @@ import type { User } from '../../types';
|
|
|
2
2
|
import { UserInviteMultiaccountPayload } from '../../api';
|
|
3
3
|
export declare function useUpdateProfile({ onSuccessCallback, }: {
|
|
4
4
|
onSuccessCallback?: () => void;
|
|
5
|
-
}): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<User.UserResponsePayload, any
|
|
6
|
-
export declare function useInviteUsersMultiaccountMassive(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<User.UserResponseInviteUser, any
|
|
7
|
-
export declare function useUnInviteUsersV2(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<User.UserResponsePayload, any
|
|
5
|
+
}): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<User.UserResponsePayload, any>, unknown, User.UserRequestPayload, User.UserRequestPayload>;
|
|
6
|
+
export declare function useInviteUsersMultiaccountMassive(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<User.UserResponseInviteUser, any>, unknown, UserInviteMultiaccountPayload, unknown>;
|
|
7
|
+
export declare function useUnInviteUsersV2(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<User.UserResponsePayload, any>, unknown, {
|
|
8
8
|
userCode: string;
|
|
9
9
|
organizationCode: string;
|
|
10
10
|
}, unknown>;
|
|
11
|
-
export declare function useCreateUserAuth0(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<User.CreateUserAuth0Response, any
|
|
12
|
-
export declare function usePostCall(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any
|
|
13
|
-
export declare function useLoginMethods(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any
|
|
11
|
+
export declare function useCreateUserAuth0(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<User.CreateUserAuth0Response, any>, unknown, User.CreateUserAuth0Request, unknown>;
|
|
12
|
+
export declare function usePostCall(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any>, unknown, void, unknown>;
|
|
13
|
+
export declare function useLoginMethods(): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<unknown, any>, unknown, {
|
|
14
14
|
methodCode: string;
|
|
15
15
|
enabled: boolean;
|
|
16
16
|
}, unknown>;
|
|
@@ -3,7 +3,7 @@ export declare function useFirebaseUserSubscribe({ onSuccessCallback, }: {
|
|
|
3
3
|
onSuccessCallback?: (data: any) => void;
|
|
4
4
|
}): import("@tanstack/react-query").UseMutationResult<import("axios").AxiosResponse<{
|
|
5
5
|
code: string;
|
|
6
|
-
}, any
|
|
6
|
+
}, any>, unknown, {
|
|
7
7
|
payload: FirebaseUserSubscribe;
|
|
8
8
|
}, {
|
|
9
9
|
payload: FirebaseUserSubscribe;
|
|
@@ -70,6 +70,28 @@ export declare namespace Checkout {
|
|
|
70
70
|
is_active: boolean;
|
|
71
71
|
current_value?: string;
|
|
72
72
|
options?: string[];
|
|
73
|
+
conditions_to_override?: {
|
|
74
|
+
name: string;
|
|
75
|
+
order: number;
|
|
76
|
+
payment_method_data: {
|
|
77
|
+
name: string | null;
|
|
78
|
+
description: string | null;
|
|
79
|
+
logo: string | null;
|
|
80
|
+
};
|
|
81
|
+
conditions: {
|
|
82
|
+
id: number;
|
|
83
|
+
payment_method_condition_set_id: number;
|
|
84
|
+
condition_type: string;
|
|
85
|
+
values: string[];
|
|
86
|
+
conditional: string;
|
|
87
|
+
metadata_key: string | null;
|
|
88
|
+
additional_field_name: string | null;
|
|
89
|
+
complex_name: string | null;
|
|
90
|
+
complex_index: number | null;
|
|
91
|
+
created_at: string;
|
|
92
|
+
updated_at: string;
|
|
93
|
+
}[];
|
|
94
|
+
}[];
|
|
73
95
|
}
|
|
74
96
|
export interface GetRequiredFieldsResponse {
|
|
75
97
|
payment_method: string;
|
package/build/index.d.ts
CHANGED
|
@@ -1621,6 +1621,28 @@ declare namespace Checkout {
|
|
|
1621
1621
|
is_active: boolean;
|
|
1622
1622
|
current_value?: string;
|
|
1623
1623
|
options?: string[];
|
|
1624
|
+
conditions_to_override?: {
|
|
1625
|
+
name: string;
|
|
1626
|
+
order: number;
|
|
1627
|
+
payment_method_data: {
|
|
1628
|
+
name: string | null;
|
|
1629
|
+
description: string | null;
|
|
1630
|
+
logo: string | null;
|
|
1631
|
+
};
|
|
1632
|
+
conditions: {
|
|
1633
|
+
id: number;
|
|
1634
|
+
payment_method_condition_set_id: number;
|
|
1635
|
+
condition_type: string;
|
|
1636
|
+
values: string[];
|
|
1637
|
+
conditional: string;
|
|
1638
|
+
metadata_key: string | null;
|
|
1639
|
+
additional_field_name: string | null;
|
|
1640
|
+
complex_name: string | null;
|
|
1641
|
+
complex_index: number | null;
|
|
1642
|
+
created_at: string;
|
|
1643
|
+
updated_at: string;
|
|
1644
|
+
}[];
|
|
1645
|
+
}[];
|
|
1624
1646
|
}
|
|
1625
1647
|
export interface GetRequiredFieldsResponse {
|
|
1626
1648
|
payment_method: string;
|
|
@@ -4271,14 +4293,14 @@ type DeleteMutation = UseMutationResult<AxiosResponse<Organization.AccountOrgani
|
|
|
4271
4293
|
|
|
4272
4294
|
declare function usePostWebhookMultiAccount({ onSuccessCallback, }: {
|
|
4273
4295
|
onSuccessCallback?: (data: any) => void;
|
|
4274
|
-
}): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any
|
|
4296
|
+
}): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any>, unknown, {
|
|
4275
4297
|
payload: Webhook.WebHookV2MultiAccount;
|
|
4276
4298
|
}, {
|
|
4277
4299
|
payload: Webhook.WebHookV2MultiAccount;
|
|
4278
4300
|
}>;
|
|
4279
4301
|
declare function useDeleteWebhookV2({ onSuccessCallback, }: {
|
|
4280
4302
|
onSuccessCallback?: (data: any) => void;
|
|
4281
|
-
}): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<null, any
|
|
4303
|
+
}): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<null, any>, unknown, {
|
|
4282
4304
|
code: string;
|
|
4283
4305
|
accountCode: string;
|
|
4284
4306
|
}, {
|
|
@@ -4287,7 +4309,7 @@ declare function useDeleteWebhookV2({ onSuccessCallback, }: {
|
|
|
4287
4309
|
}>;
|
|
4288
4310
|
declare function useUpdateWebhookV2({ onSuccessCallback, }: {
|
|
4289
4311
|
onSuccessCallback?: (data: any) => void;
|
|
4290
|
-
}): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<Webhook.WebHookV2, any
|
|
4312
|
+
}): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<Webhook.WebHookV2, any>, unknown, {
|
|
4291
4313
|
code: string;
|
|
4292
4314
|
payload: any;
|
|
4293
4315
|
accountCode: string;
|
|
@@ -4296,19 +4318,19 @@ declare function useUpdateWebhookV2({ onSuccessCallback, }: {
|
|
|
4296
4318
|
payload: any;
|
|
4297
4319
|
accountCode: string;
|
|
4298
4320
|
}>;
|
|
4299
|
-
declare function usePostAccount(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<Organization.Account, any
|
|
4321
|
+
declare function usePostAccount(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<Organization.Account, any>, unknown, {
|
|
4300
4322
|
name: string;
|
|
4301
4323
|
principal: boolean;
|
|
4302
4324
|
}, unknown>;
|
|
4303
|
-
declare function usePatchAccountV2(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<Organization.Account, any
|
|
4325
|
+
declare function usePatchAccountV2(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<Organization.Account, any>, unknown, {
|
|
4304
4326
|
name: string;
|
|
4305
4327
|
code: string;
|
|
4306
4328
|
principal: boolean;
|
|
4307
4329
|
}, unknown>;
|
|
4308
|
-
declare function usePutAccountPrincipal(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<Organization.Account, any
|
|
4330
|
+
declare function usePutAccountPrincipal(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<Organization.Account, any>, unknown, {
|
|
4309
4331
|
account_code: string;
|
|
4310
4332
|
}, unknown>;
|
|
4311
|
-
declare function usePutAccountsUserMassive(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<Organization.Account, any
|
|
4333
|
+
declare function usePutAccountsUserMassive(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<Organization.Account, any>, unknown, {
|
|
4312
4334
|
organizationCode: string;
|
|
4313
4335
|
userCode: string;
|
|
4314
4336
|
payload: {
|
|
@@ -4371,20 +4393,20 @@ declare function useChangePasswordV2(): UseMutationResult<User.ChangePasswordRes
|
|
|
4371
4393
|
|
|
4372
4394
|
declare function useUpdateProfile({ onSuccessCallback, }: {
|
|
4373
4395
|
onSuccessCallback?: () => void;
|
|
4374
|
-
}): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<User.UserResponsePayload, any
|
|
4375
|
-
declare function useInviteUsersMultiaccountMassive(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<User.UserResponseInviteUser, any
|
|
4376
|
-
declare function useUnInviteUsersV2(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<User.UserResponsePayload, any
|
|
4396
|
+
}): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<User.UserResponsePayload, any>, unknown, User.UserRequestPayload, User.UserRequestPayload>;
|
|
4397
|
+
declare function useInviteUsersMultiaccountMassive(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<User.UserResponseInviteUser, any>, unknown, UserInviteMultiaccountPayload, unknown>;
|
|
4398
|
+
declare function useUnInviteUsersV2(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<User.UserResponsePayload, any>, unknown, {
|
|
4377
4399
|
userCode: string;
|
|
4378
4400
|
organizationCode: string;
|
|
4379
4401
|
}, unknown>;
|
|
4380
|
-
declare function useCreateUserAuth0(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<User.CreateUserAuth0Response, any
|
|
4381
|
-
declare function usePostCall(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any
|
|
4382
|
-
declare function useLoginMethods(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any
|
|
4402
|
+
declare function useCreateUserAuth0(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<User.CreateUserAuth0Response, any>, unknown, User.CreateUserAuth0Request, unknown>;
|
|
4403
|
+
declare function usePostCall(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any>, unknown, void, unknown>;
|
|
4404
|
+
declare function useLoginMethods(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any>, unknown, {
|
|
4383
4405
|
methodCode: string;
|
|
4384
4406
|
enabled: boolean;
|
|
4385
4407
|
}, unknown>;
|
|
4386
4408
|
|
|
4387
|
-
declare function useUpdateIsActiveCheckout(options?: UseMutationOptions<AxiosResponse, unknown, Checkout.UpdateIsActiveCheckoutParams>): _tanstack_react_query.UseMutationResult<AxiosResponse<any, any
|
|
4409
|
+
declare function useUpdateIsActiveCheckout(options?: UseMutationOptions<AxiosResponse, unknown, Checkout.UpdateIsActiveCheckoutParams>): _tanstack_react_query.UseMutationResult<AxiosResponse<any, any>, unknown, Checkout.UpdateIsActiveCheckoutParams, unknown>;
|
|
4388
4410
|
/**
|
|
4389
4411
|
* @deprecated since version 0.28.6. use useChangeStylingSettings instead
|
|
4390
4412
|
*/
|
|
@@ -4610,13 +4632,13 @@ interface UpdateStylingThemeParams {
|
|
|
4610
4632
|
|
|
4611
4633
|
declare function useUpdateStylingTheme(): _tanstack_react_query.UseMutationResult<unknown, unknown, UpdateStylingThemeParams, unknown>;
|
|
4612
4634
|
|
|
4613
|
-
declare function useCreateOperationTransaction(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<OperationTransaction.Response, any
|
|
4635
|
+
declare function useCreateOperationTransaction(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<OperationTransaction.Response, any>, unknown, {
|
|
4614
4636
|
payload: OperationTransaction.Request;
|
|
4615
4637
|
transactionId: string;
|
|
4616
4638
|
paymentId: string;
|
|
4617
4639
|
action: OperationTransaction.Actions;
|
|
4618
4640
|
}, unknown>;
|
|
4619
|
-
declare function useChargebacksUpload(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<Payment.UploadRequest, any
|
|
4641
|
+
declare function useChargebacksUpload(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<Payment.UploadRequest, any>, unknown, {
|
|
4620
4642
|
payload: Payment.UploadRequest;
|
|
4621
4643
|
paymentId: string;
|
|
4622
4644
|
transactionId: string;
|
|
@@ -4723,20 +4745,20 @@ declare function useEditPaymentLinks(): _tanstack_react_query.UseMutationResult<
|
|
|
4723
4745
|
paymentLinkCode: string;
|
|
4724
4746
|
}, unknown>;
|
|
4725
4747
|
|
|
4726
|
-
declare function usePostUserSettings(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any
|
|
4748
|
+
declare function usePostUserSettings(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any>, unknown, {
|
|
4727
4749
|
payload: any;
|
|
4728
4750
|
}, {
|
|
4729
4751
|
payload: any;
|
|
4730
4752
|
}>;
|
|
4731
|
-
declare function usePostUserThemeSettings(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any
|
|
4732
|
-
declare function usePostUserSettingsTables(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any
|
|
4753
|
+
declare function usePostUserThemeSettings(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any>, unknown, ThemeSettings, unknown>;
|
|
4754
|
+
declare function usePostUserSettingsTables(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any>, unknown, {
|
|
4733
4755
|
payload: any;
|
|
4734
4756
|
section: string;
|
|
4735
4757
|
}, {
|
|
4736
4758
|
payload: any;
|
|
4737
4759
|
section: string;
|
|
4738
4760
|
}>;
|
|
4739
|
-
declare function usePostUserSettingsPinned(onMutate: any): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any
|
|
4761
|
+
declare function usePostUserSettingsPinned(onMutate: any): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any>, unknown, {
|
|
4740
4762
|
payload: PinnedSections;
|
|
4741
4763
|
}, any>;
|
|
4742
4764
|
|
|
@@ -4836,11 +4858,11 @@ declare function useUploadFileS3ClientBatchRefunds(): {
|
|
|
4836
4858
|
cancelRequest: () => void;
|
|
4837
4859
|
};
|
|
4838
4860
|
|
|
4839
|
-
declare function useUpdateMFAConfig(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<OrganizationSettings.MfaConfig, any
|
|
4861
|
+
declare function useUpdateMFAConfig(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<OrganizationSettings.MfaConfig, any>, unknown, {
|
|
4840
4862
|
payload: OrganizationSettings.MfaConfigRequest;
|
|
4841
4863
|
organizationCode: string;
|
|
4842
4864
|
}, unknown>;
|
|
4843
|
-
declare function useExcludeUsers(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<OrganizationSettings.MfaConfig, any
|
|
4865
|
+
declare function useExcludeUsers(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<OrganizationSettings.MfaConfig, any>, unknown, {
|
|
4844
4866
|
payload: OrganizationSettings.MfaUserExcluded[];
|
|
4845
4867
|
organizationCode: string;
|
|
4846
4868
|
}, unknown>;
|
|
@@ -4880,7 +4902,7 @@ declare function useGetCredentialsMFA(): UseMutationResult<{
|
|
|
4880
4902
|
|
|
4881
4903
|
declare function usePostAuditMonitors({ onMutate }: {
|
|
4882
4904
|
onMutate: any;
|
|
4883
|
-
}): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<Audit.AuditMonitors, any
|
|
4905
|
+
}): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<Audit.AuditMonitors, any>, unknown, {
|
|
4884
4906
|
payload: Audit.AuditMonitorsParams;
|
|
4885
4907
|
}, unknown>;
|
|
4886
4908
|
|
|
@@ -4896,9 +4918,9 @@ declare function useUpdateReconciliationAlert(): UseMutationResult<Reconciliatio
|
|
|
4896
4918
|
|
|
4897
4919
|
declare function usePostCreateInsightsReport(): UseMutationResult<unknown>;
|
|
4898
4920
|
|
|
4899
|
-
declare function useCreateSamlConfig(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any
|
|
4900
|
-
declare function useUpdateSamlConfig(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any
|
|
4901
|
-
declare function useDeleteSamlConfig(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any
|
|
4921
|
+
declare function useCreateSamlConfig(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any>, unknown, SamlConfig.SamlConfigRequest, unknown>;
|
|
4922
|
+
declare function useUpdateSamlConfig(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any>, unknown, Partial<SamlConfig.SamlConfigRequest>, unknown>;
|
|
4923
|
+
declare function useDeleteSamlConfig(): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<unknown, any>, unknown, void, unknown>;
|
|
4902
4924
|
|
|
4903
4925
|
interface CreateAIsResponse {
|
|
4904
4926
|
code: string;
|
|
@@ -5311,7 +5333,7 @@ declare function useFirebaseUserSubscribe({ onSuccessCallback, }: {
|
|
|
5311
5333
|
onSuccessCallback?: (data: any) => void;
|
|
5312
5334
|
}): _tanstack_react_query.UseMutationResult<axios.AxiosResponse<{
|
|
5313
5335
|
code: string;
|
|
5314
|
-
}, any
|
|
5336
|
+
}, any>, unknown, {
|
|
5315
5337
|
payload: FirebaseUserSubscribe;
|
|
5316
5338
|
}, {
|
|
5317
5339
|
payload: FirebaseUserSubscribe;
|
|
@@ -5467,7 +5489,7 @@ interface S3Payload {
|
|
|
5467
5489
|
}
|
|
5468
5490
|
declare class Api extends HttpClient {
|
|
5469
5491
|
constructor(config?: AxiosRequestConfig);
|
|
5470
|
-
simulateAxiosError(): Promise<AxiosResponse<any, any
|
|
5492
|
+
simulateAxiosError(): Promise<AxiosResponse<any, any>>;
|
|
5471
5493
|
updateReconciliationReportTemplate<T>(payload: Reports.ICreateTemplate): Promise<AxiosResponse<T>>;
|
|
5472
5494
|
createReconciliationReportTemplate<T>(payload: Reports.ICreateTemplate): Promise<AxiosResponse<T>>;
|
|
5473
5495
|
getReconciliationTransactions<T>(params: any): Promise<AxiosResponse<T, any>>;
|
|
@@ -5671,32 +5693,32 @@ declare class Api extends HttpClient {
|
|
|
5671
5693
|
updateIsActiveCheckout(args: Checkout.UpdateIsActiveCheckoutParams): Promise<AxiosResponse>;
|
|
5672
5694
|
getStylingSdkDynamic({ accountCode }: {
|
|
5673
5695
|
accountCode: any;
|
|
5674
|
-
}): Promise<AxiosResponse<Styling.Settings, any
|
|
5696
|
+
}): Promise<AxiosResponse<Styling.Settings, any>>;
|
|
5675
5697
|
/**
|
|
5676
5698
|
* @deprecated since version 0.36.27. use getStylingSettings instead
|
|
5677
5699
|
*/
|
|
5678
5700
|
getStylingTheme({ accountCode }: {
|
|
5679
5701
|
accountCode: string;
|
|
5680
|
-
}): Promise<AxiosResponse<Styling.Theme, any
|
|
5702
|
+
}): Promise<AxiosResponse<Styling.Theme, any>>;
|
|
5681
5703
|
/**
|
|
5682
5704
|
* @deprecated since version 0.36.27. use changeStylingSettings instead
|
|
5683
5705
|
*/
|
|
5684
|
-
updateStylingTheme({ accountCode, theme }: UpdateStylingThemeParams): Promise<AxiosResponse<unknown, any
|
|
5706
|
+
updateStylingTheme({ accountCode, theme }: UpdateStylingThemeParams): Promise<AxiosResponse<unknown, any>>;
|
|
5685
5707
|
/**
|
|
5686
5708
|
* @deprecated since version 0.36.27. use getStylingSettingsV2 instead
|
|
5687
5709
|
*/
|
|
5688
5710
|
getStylingSettings({ accountCode }: {
|
|
5689
5711
|
accountCode: any;
|
|
5690
|
-
}): Promise<AxiosResponse<Styling.Settings, any
|
|
5712
|
+
}): Promise<AxiosResponse<Styling.Settings, any>>;
|
|
5691
5713
|
getStylingSettingsV2({ accountCode, environment, }: {
|
|
5692
5714
|
accountCode: string;
|
|
5693
5715
|
environment?: string;
|
|
5694
|
-
}): Promise<AxiosResponse<StylingSettings.UpdateSettingsResponse, any
|
|
5716
|
+
}): Promise<AxiosResponse<StylingSettings.UpdateSettingsResponse, any>>;
|
|
5695
5717
|
changeStylingSettings({ accountCode, environment, payload, }: {
|
|
5696
5718
|
accountCode: string;
|
|
5697
5719
|
environment?: string;
|
|
5698
5720
|
payload: StylingSettings.UpdateSettings;
|
|
5699
|
-
}): Promise<AxiosResponse<StylingSettings.UpdateSettingsResponse, any
|
|
5721
|
+
}): Promise<AxiosResponse<StylingSettings.UpdateSettingsResponse, any>>;
|
|
5700
5722
|
emailVerification<T>(email: any): Promise<AxiosResponse<T, any>>;
|
|
5701
5723
|
createReconciliationsReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
5702
5724
|
createReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
@@ -5892,11 +5914,11 @@ declare class Api extends HttpClient {
|
|
|
5892
5914
|
getVelocityRules<T>(params: any): Promise<AxiosResponse<T, any>>;
|
|
5893
5915
|
postChangePaymentsWebhook<T>({ status, paymentCode, }: ChangePaymentsWebhook): Promise<AxiosResponse<T, any>>;
|
|
5894
5916
|
uploadFileS3ClientBatchRefunds<T>({ payload, handleSetProgress, }: S3Payload): {
|
|
5895
|
-
promise: Promise<AxiosResponse<T, any
|
|
5917
|
+
promise: Promise<AxiosResponse<T, any>>;
|
|
5896
5918
|
cancel: () => void;
|
|
5897
5919
|
};
|
|
5898
5920
|
uploadFileS3ClientChargeBacks<T>({ payload, handleSetProgress, }: S3Payload): {
|
|
5899
|
-
promise: Promise<AxiosResponse<T, any
|
|
5921
|
+
promise: Promise<AxiosResponse<T, any>>;
|
|
5900
5922
|
cancel: () => void;
|
|
5901
5923
|
};
|
|
5902
5924
|
batchRefundByFile<T>({ payload, }: {
|
|
@@ -5931,7 +5953,7 @@ declare class Api extends HttpClient {
|
|
|
5931
5953
|
postCustomizedApiKeys<T>(accountCodes: string[]): Promise<AxiosResponse<T, any>>;
|
|
5932
5954
|
getCustomizedApiKeysProducts<T>(): Promise<AxiosResponse<T, any>>;
|
|
5933
5955
|
getCustomizedApiKeysToken<T>(code: any, password: any): Promise<AxiosResponse<T, any>>;
|
|
5934
|
-
validatePasswordStatus<T>(): Promise<AxiosResponse<T, any
|
|
5956
|
+
validatePasswordStatus<T>(): Promise<AxiosResponse<T, any>>;
|
|
5935
5957
|
deleteCustomizedApiKeys<T>(code: any): Promise<AxiosResponse<T, any>>;
|
|
5936
5958
|
postCreateInsightsReport<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
5937
5959
|
getInsightsReport<T>(payload: any): Promise<AxiosResponse<T, any>>;
|