@yuno-payments/dashboard-api-mfe 1.14.3 → 1.14.5
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 +5 -5
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +4 -0
- package/build/cjs/types/mutations/index.d.ts +1 -0
- package/build/cjs/types/mutations/integration-requests/index.d.ts +1 -0
- package/build/cjs/types/mutations/integration-requests/integration-requests.mutation.d.ts +12 -0
- package/build/cjs/types/types/index.d.ts +1 -0
- package/build/cjs/types/types/integration-requests/index.d.ts +1 -0
- package/build/cjs/types/types/integration-requests/integration-request.d.ts +26 -0
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +4 -0
- package/build/esm/types/mutations/index.d.ts +1 -0
- package/build/esm/types/mutations/integration-requests/index.d.ts +1 -0
- package/build/esm/types/mutations/integration-requests/integration-requests.mutation.d.ts +12 -0
- package/build/esm/types/types/index.d.ts +1 -0
- package/build/esm/types/types/integration-requests/index.d.ts +1 -0
- package/build/esm/types/types/integration-requests/integration-request.d.ts +26 -0
- package/build/index.d.ts +43 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ import { S3Client } from '../types/s3-client';
|
|
|
9
9
|
import { CreateRecipientPayload, UpdateRecipientPayload, CreateOnboardingPayload, UpdateOnboardingPayload } from '../types/recipients/recipients-mutations';
|
|
10
10
|
import { AllowedList } from '../types/allowed-list';
|
|
11
11
|
import { Cost } from '../types/connection/costs';
|
|
12
|
+
import { IntegrationRequest } from '../types/integration-requests';
|
|
12
13
|
import { Styling, StylingSettings } from '../types/checkout/styling/styling';
|
|
13
14
|
import { FeatureFlags } from '../types/feature-flags/intex';
|
|
14
15
|
import { DuplicateAccountBody, DuplicateAccountResponse, RetryDuplicateAccountResponse } from '../mutations/accounts/types';
|
|
@@ -130,6 +131,9 @@ export declare class Api extends HttpClient {
|
|
|
130
131
|
postMultiConnection<T>({ payload }: {
|
|
131
132
|
payload: any;
|
|
132
133
|
}): Promise<AxiosResponse<T, any>>;
|
|
134
|
+
postIntegrationRequest<T>({ payload, }: {
|
|
135
|
+
payload: IntegrationRequest.CreateIntegrationRequestPayload;
|
|
136
|
+
}): Promise<AxiosResponse<T, any>>;
|
|
133
137
|
postMultiConnectionValidate<T>(): Promise<AxiosResponse<T, any>>;
|
|
134
138
|
patchConnection<T>({ payload, connectionCode, }: {
|
|
135
139
|
payload: any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './integration-requests.mutation';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IntegrationRequest } from '../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Submit a new provider integration request via dashboard-bff.
|
|
4
|
+
*
|
|
5
|
+
* Replaces the legacy `usePostConnectionMultiAccount` flow that piggybacked
|
|
6
|
+
* on `provider_id: REQUEST_INTEGRATION` and posted plaintext credentials to
|
|
7
|
+
* Slack. This dedicated endpoint persists the request encrypted at rest in
|
|
8
|
+
* `integrations-request-ms`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function usePostIntegrationRequest(): import("@tanstack/react-query").UseMutationResult<IntegrationRequest.IntegrationRequestResponse, unknown, {
|
|
11
|
+
payload: IntegrationRequest.CreateIntegrationRequestPayload;
|
|
12
|
+
}, unknown>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './integration-request';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare namespace IntegrationRequest {
|
|
2
|
+
/**
|
|
3
|
+
* Body sent to `POST /dashboard-bff/api/integration-requests`.
|
|
4
|
+
*
|
|
5
|
+
* The BFF marshals this into the encrypted `request` field of the
|
|
6
|
+
* `integrations-request-ms` row; `email` and `organization_code` come from
|
|
7
|
+
* the authenticated session, never from this body.
|
|
8
|
+
*/
|
|
9
|
+
interface CreateIntegrationRequestPayload {
|
|
10
|
+
provider_name: string;
|
|
11
|
+
credentials: string;
|
|
12
|
+
country: string;
|
|
13
|
+
accounts: string[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Response shape forwarded by the BFF from the MS `POST /api/v1/integration-requests`.
|
|
17
|
+
* `request` is decrypted on read.
|
|
18
|
+
*/
|
|
19
|
+
interface IntegrationRequestResponse {
|
|
20
|
+
code: string;
|
|
21
|
+
organization_code: string;
|
|
22
|
+
email: string;
|
|
23
|
+
request: string;
|
|
24
|
+
created_at: string;
|
|
25
|
+
}
|
|
26
|
+
}
|