@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.
@@ -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;
@@ -34,4 +34,5 @@ export * from './installments';
34
34
  export * from './recipients';
35
35
  export * from './concierge';
36
36
  export * from './playground';
37
+ export * from './integration-requests';
37
38
  export * from './certificates';
@@ -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>;
@@ -5,6 +5,7 @@ export * from './operation-transaction';
5
5
  export * from './organization';
6
6
  export * from './developer';
7
7
  export * from './connection';
8
+ export * from './integration-requests';
8
9
  export * from './webhook';
9
10
  export * from './user';
10
11
  export * from './country';
@@ -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
+ }