@yuno-payments/dashboard-api-mfe 0.36.61-beta.1 → 0.36.62
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 +201 -36
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +13 -28
- 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/audit/index.d.ts +0 -1
- package/build/cjs/types/mutations/checkouts/checkouts.mutation.d.ts +1 -1
- package/build/cjs/types/mutations/index.d.ts +0 -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/accounts/accounts.query.d.ts +0 -6
- package/build/cjs/types/queries/audit/audit.query.d.ts +0 -6
- package/build/cjs/types/queries/firebase/firebase.query.d.ts +1 -1
- package/build/cjs/types/queries/users/users.query.d.ts +3 -2
- package/build/cjs/types/types/audit/audit.d.ts +0 -81
- package/build/cjs/types/types/checkout/styling/styling.d.ts +0 -6
- package/build/cjs/types/types/user/user.d.ts +5 -16
- package/build/esm/index.js +201 -36
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +13 -28
- 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/audit/index.d.ts +0 -1
- package/build/esm/types/mutations/checkouts/checkouts.mutation.d.ts +1 -1
- package/build/esm/types/mutations/index.d.ts +0 -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/accounts/accounts.query.d.ts +0 -6
- package/build/esm/types/queries/audit/audit.query.d.ts +0 -6
- package/build/esm/types/queries/firebase/firebase.query.d.ts +1 -1
- package/build/esm/types/queries/users/users.query.d.ts +3 -2
- package/build/esm/types/types/audit/audit.d.ts +0 -81
- package/build/esm/types/types/checkout/styling/styling.d.ts +0 -6
- package/build/esm/types/types/user/user.d.ts +5 -16
- package/build/index.d.ts +48 -174
- package/package.json +1 -1
- package/build/cjs/types/mutations/audit/audit-api.mutation.d.ts +0 -5
- package/build/esm/types/mutations/audit/audit-api.mutation.d.ts +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
2
|
import { HttpClient } from '../lib/http-client';
|
|
3
3
|
import { GetPaymentsParams, GetReconciliationMetricParams, FirebaseUserSubscribe, PathNotification, TimeZoneCatalog, GetTransactionDetailsV2Params, MfaUserSubscribe, UserInviteMultiaccountPayload, GetTransactionsParams, PaymentsSettings, GetPayoutDetail, GetPayoutTransactionDetail, PinnedSections, ThemeSettings } from './api.types';
|
|
4
|
-
import { Audit, OperationTransaction, Organization, SmartRouting, User, Webhook, Reports, ReportType, TemplateType, OrganizationSettings, IListScheduledReportsResponse, DataReport, Reconciliation, Checkout, ReconciliationReportType, SendPaymentNotification, ReconciliationAlerts, ReconciliationAgenda, ReconciliationSales, ReconciliationAdvancements, ReconciliationFees, Payment, InsightsFraudParams, InsightsFraudBody, AI, PaymentFiltersSection } from '../types';
|
|
4
|
+
import { Audit, OperationTransaction, Organization, SmartRouting, User, Webhook, Reports, ReportType, TemplateType, OrganizationSettings, IListScheduledReportsResponse, DataReport, Reconciliation, Checkout, ReconciliationReportType, SendPaymentNotification, ReconciliationAlerts, ReconciliationAgenda, ReconciliationSales, ReconciliationAdvancements, ReconciliationFees, Payment, InsightsFraudParams, InsightsFraudBody, AI, PaymentFiltersSection, UserFullResponse } from '../types';
|
|
5
5
|
import { ConversionRateParams, ConversionRateBody, ConversionRateOverview, ConversionRateOverviewFraud3ds } from '../types/data-report/conversion-rate.types';
|
|
6
6
|
import { RoutingMonitors } from '../types/routing-monitors';
|
|
7
7
|
import { ChangePaymentsWebhook } from '../mutations';
|
|
@@ -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>>;
|
|
@@ -120,15 +120,6 @@ export declare class Api extends HttpClient {
|
|
|
120
120
|
deleteWebhookV2<T>(code: string, accountCode: string): Promise<AxiosResponse<T>>;
|
|
121
121
|
updateWebhookV2<T>(code: string, payload: any, accountCode: string): Promise<AxiosResponse<T>>;
|
|
122
122
|
getMenu<T>(): Promise<AxiosResponse<T>>;
|
|
123
|
-
postWebhookLogs<T>({ payload: { account_code, ...rest }, }: {
|
|
124
|
-
payload: Audit.AuditWebhooksParams;
|
|
125
|
-
}): Promise<AxiosResponse<T>>;
|
|
126
|
-
postResendWebhooks<T>({ codes, }: Audit.AuditWebhooksResendParams): Promise<AxiosResponse<T>>;
|
|
127
|
-
postExportApiLogs<T>(payload: Audit.ExportApiLogsRequest): Promise<AxiosResponse<T>>;
|
|
128
|
-
postApiLogs<T>({ payload: { account_code, ...rest }, }: {
|
|
129
|
-
payload: Audit.AuditApiLogsParams;
|
|
130
|
-
}): Promise<AxiosResponse<T>>;
|
|
131
|
-
getApiLogsDetailByPaymentCode<T>(paymentCode: string): Promise<AxiosResponse<T>>;
|
|
132
123
|
useGetPaymentStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
|
|
133
124
|
useGetTransactionStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
|
|
134
125
|
useGetReconciliationTransactionStatusesStyles<T>(): Promise<AxiosResponse<T, any>>;
|
|
@@ -221,32 +212,32 @@ export declare class Api extends HttpClient {
|
|
|
221
212
|
updateIsActiveCheckout(args: Checkout.UpdateIsActiveCheckoutParams): Promise<AxiosResponse>;
|
|
222
213
|
getStylingSdkDynamic({ accountCode }: {
|
|
223
214
|
accountCode: any;
|
|
224
|
-
}): Promise<AxiosResponse<Styling.Settings, any
|
|
215
|
+
}): Promise<AxiosResponse<Styling.Settings, any>>;
|
|
225
216
|
/**
|
|
226
217
|
* @deprecated since version 0.36.27. use getStylingSettings instead
|
|
227
218
|
*/
|
|
228
219
|
getStylingTheme({ accountCode }: {
|
|
229
220
|
accountCode: string;
|
|
230
|
-
}): Promise<AxiosResponse<Styling.Theme, any
|
|
221
|
+
}): Promise<AxiosResponse<Styling.Theme, any>>;
|
|
231
222
|
/**
|
|
232
223
|
* @deprecated since version 0.36.27. use changeStylingSettings instead
|
|
233
224
|
*/
|
|
234
|
-
updateStylingTheme({ accountCode, theme }: UpdateStylingThemeParams): Promise<AxiosResponse<unknown, any
|
|
225
|
+
updateStylingTheme({ accountCode, theme }: UpdateStylingThemeParams): Promise<AxiosResponse<unknown, any>>;
|
|
235
226
|
/**
|
|
236
227
|
* @deprecated since version 0.36.27. use getStylingSettingsV2 instead
|
|
237
228
|
*/
|
|
238
229
|
getStylingSettings({ accountCode }: {
|
|
239
230
|
accountCode: any;
|
|
240
|
-
}): Promise<AxiosResponse<Styling.Settings, any
|
|
231
|
+
}): Promise<AxiosResponse<Styling.Settings, any>>;
|
|
241
232
|
getStylingSettingsV2({ accountCode, environment, }: {
|
|
242
233
|
accountCode: string;
|
|
243
234
|
environment?: string;
|
|
244
|
-
}): Promise<AxiosResponse<StylingSettings.UpdateSettingsResponse, any
|
|
235
|
+
}): Promise<AxiosResponse<StylingSettings.UpdateSettingsResponse, any>>;
|
|
245
236
|
changeStylingSettings({ accountCode, environment, payload, }: {
|
|
246
237
|
accountCode: string;
|
|
247
238
|
environment?: string;
|
|
248
239
|
payload: StylingSettings.UpdateSettings;
|
|
249
|
-
}): Promise<AxiosResponse<StylingSettings.UpdateSettingsResponse, any
|
|
240
|
+
}): Promise<AxiosResponse<StylingSettings.UpdateSettingsResponse, any>>;
|
|
250
241
|
emailVerification<T>(email: any): Promise<AxiosResponse<T, any>>;
|
|
251
242
|
createReconciliationsReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
252
243
|
createReportV2<T>(payload: any): Promise<AxiosResponse<T>>;
|
|
@@ -267,16 +258,10 @@ export declare class Api extends HttpClient {
|
|
|
267
258
|
updateScheduledReport<T>(reportCode: string, payload: IListScheduledReportsResponse): Promise<AxiosResponse<T>>;
|
|
268
259
|
deleteScheduledReport<T>(reportCode: string): Promise<AxiosResponse<T>>;
|
|
269
260
|
getProfile<T>(): Promise<AxiosResponse<T, any>>;
|
|
261
|
+
getUserFull(): Promise<AxiosResponse<UserFullResponse, any>>;
|
|
270
262
|
getImpersonationUsers<T>(): Promise<AxiosResponse<T, any>>;
|
|
271
263
|
getImpersonationEnabled<T>(): Promise<AxiosResponse<T, any>>;
|
|
272
|
-
getUsersToImpersonate(organizationCode: string
|
|
273
|
-
getAccountsForImpersonation(organizationCode: string): Promise<AxiosResponse<{
|
|
274
|
-
response: Array<{
|
|
275
|
-
name: string;
|
|
276
|
-
code_live: string;
|
|
277
|
-
code_testing: string;
|
|
278
|
-
}>;
|
|
279
|
-
}>>;
|
|
264
|
+
getUsersToImpersonate(organizationCode: string): Promise<AxiosResponse<User.UsersToImpersonateResponse>>;
|
|
280
265
|
updateProfile<T>(payload: User.UserRequestPayload): Promise<AxiosResponse<T>>;
|
|
281
266
|
inviteUsersMassive<T>(data: UserInviteMultiaccountPayload, organizationCode: string): Promise<AxiosResponse<T>>;
|
|
282
267
|
unInviteUsersV2<T>({ userCode, organizationCode, }: {
|
|
@@ -429,11 +414,11 @@ export declare class Api extends HttpClient {
|
|
|
429
414
|
getVelocityRules<T>(params: any): Promise<AxiosResponse<T, any>>;
|
|
430
415
|
postChangePaymentsWebhook<T>({ status, paymentCode, }: ChangePaymentsWebhook): Promise<AxiosResponse<T, any>>;
|
|
431
416
|
uploadFileS3ClientBatchRefunds<T>({ payload, handleSetProgress, }: S3Payload): {
|
|
432
|
-
promise: Promise<AxiosResponse<T, any
|
|
417
|
+
promise: Promise<AxiosResponse<T, any>>;
|
|
433
418
|
cancel: () => void;
|
|
434
419
|
};
|
|
435
420
|
uploadFileS3ClientChargeBacks<T>({ payload, handleSetProgress, }: S3Payload): {
|
|
436
|
-
promise: Promise<AxiosResponse<T, any
|
|
421
|
+
promise: Promise<AxiosResponse<T, any>>;
|
|
437
422
|
cancel: () => void;
|
|
438
423
|
};
|
|
439
424
|
batchRefundByFile<T>({ payload, }: {
|
|
@@ -468,7 +453,7 @@ export declare class Api extends HttpClient {
|
|
|
468
453
|
postCustomizedApiKeys<T>(accountCodes: string[]): Promise<AxiosResponse<T, any>>;
|
|
469
454
|
getCustomizedApiKeysProducts<T>(): Promise<AxiosResponse<T, any>>;
|
|
470
455
|
getCustomizedApiKeysToken<T>(code: any, password: any): Promise<AxiosResponse<T, any>>;
|
|
471
|
-
validatePasswordStatus<T>(): Promise<AxiosResponse<T, any
|
|
456
|
+
validatePasswordStatus<T>(): Promise<AxiosResponse<T, any>>;
|
|
472
457
|
deleteCustomizedApiKeys<T>(code: any): Promise<AxiosResponse<T, any>>;
|
|
473
458
|
postCreateInsightsReport<T>(payload: any): Promise<AxiosResponse<T, any>>;
|
|
474
459
|
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
|
*/
|
|
@@ -21,7 +21,6 @@ export * from './scheduled-reports';
|
|
|
21
21
|
export * from './velocity-rules';
|
|
22
22
|
export * from './developers';
|
|
23
23
|
export * from './audit';
|
|
24
|
-
export * from './audit/audit-api.mutation';
|
|
25
24
|
export * from './reconciliations';
|
|
26
25
|
export * from './insights';
|
|
27
26
|
export * from './saml-config';
|
package/build/cjs/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>;
|
|
@@ -16,9 +16,3 @@ export declare function useGetAccountsByUser(userCode: string): UseQueryResult<{
|
|
|
16
16
|
accountsV2ByUser: Organization.Account[];
|
|
17
17
|
error?: AxiosError;
|
|
18
18
|
}, unknown>;
|
|
19
|
-
export declare function useGetAccountsForImpersonation(organizationCode?: string, isTesting?: boolean): UseQueryResult<Array<{
|
|
20
|
-
label: string;
|
|
21
|
-
value: string;
|
|
22
|
-
code_live: string;
|
|
23
|
-
code_testing: string;
|
|
24
|
-
}>, unknown>;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { AxiosError } from 'axios';
|
|
3
3
|
import type { Audit } from '../../types';
|
|
4
|
-
import { BFFErrorResponse } from '../../mutations';
|
|
5
4
|
export declare function useGetAuditEvents(params: Audit.AuditEventsParams): UseQueryResult<Audit.AuditEvents, AxiosError>;
|
|
6
5
|
export declare function useGetAuditMonitorEventDetail(id: number | null): UseQueryResult<Audit.AuditMonitorDetail, AxiosError>;
|
|
7
|
-
export declare function usePostApiLogs(params: Audit.AuditApiLogsParams): UseQueryResult<Audit.AuditApiLogsResponse, BFFErrorResponse>;
|
|
8
|
-
export declare function usePostWebhookLogs({ params, }: {
|
|
9
|
-
params: Audit.AuditWebhooksParams;
|
|
10
|
-
}): UseQueryResult<Audit.AuditWebhooksResponse, BFFErrorResponse>;
|
|
11
|
-
export declare function useGetApiLogsDetailByPaymentCode(code: string | null | undefined): UseQueryResult<unknown, BFFErrorResponse>;
|
|
@@ -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;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { AxiosError } from 'axios';
|
|
3
|
-
import { Accounts, User, AI } from '../../types';
|
|
3
|
+
import { Accounts, User, AI, UserFullResponse } from '../../types';
|
|
4
4
|
export declare function useGetProfile(): UseQueryResult<User.UserResponsePayload, unknown>;
|
|
5
|
+
export declare function useUserFull(): UseQueryResult<UserFullResponse, unknown>;
|
|
5
6
|
export declare function useGetPermissions(organizationCode: any, accountCode: any): UseQueryResult<Accounts.PermissionsResponse[], unknown>;
|
|
6
7
|
export declare function useEmailVerification(email: string): UseQueryResult<User.UserResponseEmailVerification | string, unknown>;
|
|
7
8
|
export declare function useGetLoginMethods(): UseQueryResult<unknown, unknown>;
|
|
8
9
|
export declare function useGetImpersonationUsers(): UseQueryResult<User.ImpersonationUser[], AxiosError>;
|
|
9
10
|
export declare function useGetImpersonationEnabled(): UseQueryResult<User.ImpersonationEnabledResponse, AxiosError>;
|
|
10
|
-
export declare function useGetUsersToImpersonate(organizationCode: string
|
|
11
|
+
export declare function useGetUsersToImpersonate(organizationCode: string): UseQueryResult<User.UsersToImpersonateUser[], AxiosError>;
|
|
11
12
|
export declare function useCommunications(payload: {
|
|
12
13
|
start_date: string;
|
|
13
14
|
end_date: string;
|
|
@@ -107,85 +107,4 @@ export declare namespace Audit {
|
|
|
107
107
|
type: string;
|
|
108
108
|
percentage: number;
|
|
109
109
|
}
|
|
110
|
-
interface ExportApiLogsRequest {
|
|
111
|
-
report_name: string;
|
|
112
|
-
account_code: string[];
|
|
113
|
-
start_date: string;
|
|
114
|
-
end_date: string;
|
|
115
|
-
time_zone: string;
|
|
116
|
-
method?: string[];
|
|
117
|
-
organizationCode?: string;
|
|
118
|
-
}
|
|
119
|
-
interface AuditApiJSON {
|
|
120
|
-
[key: string]: string;
|
|
121
|
-
}
|
|
122
|
-
interface AuditApiLogs {
|
|
123
|
-
code: string;
|
|
124
|
-
url: string;
|
|
125
|
-
method: string;
|
|
126
|
-
source: string;
|
|
127
|
-
headers: AuditApiJSON;
|
|
128
|
-
request: AuditApiJSON;
|
|
129
|
-
response: AuditApiJSON;
|
|
130
|
-
account_name: string;
|
|
131
|
-
account_code: string;
|
|
132
|
-
status_code: number;
|
|
133
|
-
trace_id: string;
|
|
134
|
-
created_at: string;
|
|
135
|
-
}
|
|
136
|
-
interface AuditApiLogsResponse {
|
|
137
|
-
data: AuditApiLogs[];
|
|
138
|
-
page: number;
|
|
139
|
-
size: number;
|
|
140
|
-
total_rows: number;
|
|
141
|
-
total_pages: number;
|
|
142
|
-
}
|
|
143
|
-
interface AuditApiLogsParams {
|
|
144
|
-
page: number;
|
|
145
|
-
size: number;
|
|
146
|
-
periodicity?: string;
|
|
147
|
-
account_code?: string[];
|
|
148
|
-
organizationCode?: string;
|
|
149
|
-
status_codes?: string[];
|
|
150
|
-
methods?: string[];
|
|
151
|
-
}
|
|
152
|
-
interface AuditWebhooksParams {
|
|
153
|
-
page: number;
|
|
154
|
-
size: number;
|
|
155
|
-
organizationCode?: string;
|
|
156
|
-
periodicity?: string;
|
|
157
|
-
account_code?: string[];
|
|
158
|
-
status_codes?: string[];
|
|
159
|
-
methods?: string[];
|
|
160
|
-
}
|
|
161
|
-
interface AuditWebhooks {
|
|
162
|
-
id: number;
|
|
163
|
-
organization_code: string;
|
|
164
|
-
account_code: string;
|
|
165
|
-
type: string;
|
|
166
|
-
created_at: string;
|
|
167
|
-
updated_at: string;
|
|
168
|
-
time: number;
|
|
169
|
-
http_method: string;
|
|
170
|
-
url: string;
|
|
171
|
-
request: string;
|
|
172
|
-
response: string;
|
|
173
|
-
response_status: number;
|
|
174
|
-
connect_timeout: number;
|
|
175
|
-
read_timeout: number;
|
|
176
|
-
exception: string;
|
|
177
|
-
headers: string;
|
|
178
|
-
trace_id: string;
|
|
179
|
-
origin_id: string;
|
|
180
|
-
}
|
|
181
|
-
interface AuditWebhooksResponse {
|
|
182
|
-
data: AuditWebhooks[];
|
|
183
|
-
page: number;
|
|
184
|
-
size: number;
|
|
185
|
-
total_rows: number;
|
|
186
|
-
total_pages: number;
|
|
187
|
-
}
|
|
188
|
-
interface AuditWebhooksResendParams {
|
|
189
|
-
codes: string[];
|
|
190
|
-
}
|
|
191
110
|
}
|
|
@@ -117,12 +117,6 @@ export declare namespace StylingSettings {
|
|
|
117
117
|
condensed_checkout_view?: boolean;
|
|
118
118
|
edit_payment_method_list?: boolean;
|
|
119
119
|
};
|
|
120
|
-
ui?: {
|
|
121
|
-
dark_mode?: boolean;
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
flags?: {
|
|
125
|
-
force_default_styles?: boolean;
|
|
126
120
|
};
|
|
127
121
|
}
|
|
128
122
|
interface UpdateSettingsResponse extends UpdateSettings {
|
|
@@ -153,24 +153,13 @@ export declare namespace User {
|
|
|
153
153
|
first_name: string;
|
|
154
154
|
last_name: string;
|
|
155
155
|
email: string;
|
|
156
|
-
account_code: string;
|
|
157
|
-
account_code_live: string;
|
|
158
|
-
account_code_testing: string;
|
|
159
|
-
account_name: string;
|
|
160
|
-
role: {
|
|
161
|
-
id: string;
|
|
162
|
-
name: string;
|
|
163
|
-
};
|
|
164
156
|
}
|
|
165
157
|
interface UsersToImpersonateResponse {
|
|
166
|
-
code: string;
|
|
167
|
-
organization_code: string;
|
|
168
|
-
organization_name: string;
|
|
169
|
-
organization_logo: string | null;
|
|
170
|
-
total_elements: number;
|
|
171
|
-
total_pages: number;
|
|
172
|
-
page: number;
|
|
173
|
-
page_size: number;
|
|
174
158
|
users: UsersToImpersonateUser[];
|
|
175
159
|
}
|
|
176
160
|
}
|
|
161
|
+
export interface UserFullResponse {
|
|
162
|
+
user: User.UserResponsePayload;
|
|
163
|
+
organization: Organization.Organization;
|
|
164
|
+
accounts_user: Organization.Account[];
|
|
165
|
+
}
|