@yuno-payments/dashboard-api-mfe 2.5.0 → 2.7.1

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.
@@ -732,5 +732,8 @@ export declare class Api extends HttpClient {
732
732
  postMonitorLogsExport<T>(payload: Audit.UnifiedExportRequest): Promise<AxiosResponse<T>>;
733
733
  getMonitorLogsExportStatus<T>(exportId: string): Promise<AxiosResponse<T>>;
734
734
  getMonitorLogsExportsList<T>(page?: number, size?: number): Promise<AxiosResponse<T>>;
735
+ postDashboardLogsExport<T>(payload: Audit.V2DashboardLogsExportRequest): Promise<AxiosResponse<T>>;
736
+ getDashboardLogsExport<T>(exportId: string): Promise<AxiosResponse<T>>;
737
+ getDashboardLogsExportsList<T>(page?: number, size?: number): Promise<AxiosResponse<T>>;
735
738
  }
736
739
  export {};
@@ -225,6 +225,19 @@ export declare namespace Audit {
225
225
  page: number;
226
226
  size: number;
227
227
  }
228
+ interface V2DashboardLogsExportFilters {
229
+ account_ids?: string[];
230
+ start_date?: string;
231
+ end_date?: string;
232
+ events?: string[];
233
+ sources?: string[];
234
+ columns?: string[];
235
+ timezone?: string;
236
+ }
237
+ interface V2DashboardLogsExportRequest {
238
+ export_name: string;
239
+ filters: V2DashboardLogsExportFilters;
240
+ }
228
241
  interface AuditExportResponse {
229
242
  report_id: string;
230
243
  report_type: AuditExportReportType;
@@ -34,7 +34,7 @@ export declare namespace ConciergeAccess {
34
34
  timezone: string;
35
35
  briefs: Brief[];
36
36
  channels: ChannelsConfig;
37
- updated_at: string;
37
+ updated_at: string | null;
38
38
  }
39
39
  type GetResponse = HeartbeatConfig;
40
40
  type UpdatePayload = ChannelsConfig;
@@ -1,21 +1,19 @@
1
1
  /**
2
2
  * Feature-flag provider switch (kill-switch for DAS-15798 migration).
3
3
  *
4
- * Set via the `FEATURE_FLAGS_PROVIDER` webpack build env var. Defaults to
5
- * 'legacy' (the in-house Go service consumed via React Query). Flip to
6
- * 'datadog' once the Datadog Feature Flags integration is bootstrapped by
7
- * container-mfe and a flag set is ready in Datadog.
4
+ * Set via the `FEATURE_FLAGS_PROVIDER` build env var (inlined at build
5
+ * time by rspack DefinePlugin). Defaults to 'legacy' (the in-house Go
6
+ * service via React Query). Flip to 'datadog' once the Datadog Feature
7
+ * Flags integration is bootstrapped by container-mfe.
8
8
  *
9
9
  * Read by `src/queries/feature-flags/index.ts` to route hook consumers
10
- * between `./datadog-hooks` and `./legacy-hooks` during the migration
11
- * window. Rollback path: flip the env var and redeploy (~5–10 min). No
12
- * code revert needed.
10
+ * between `./datadog-hooks` and `./legacy-hooks`. Also re-exported from
11
+ * the package public API so `dashboard-container-mfe` can read the same
12
+ * inlined value to gate its Datadog OpenFeature bootstrap — single
13
+ * source of truth across both MFEs.
13
14
  *
14
- * NOTE: This helper is intentionally duplicated from the identical helper
15
- * in `dashboard-container-mfe/src/utils/feature-flags-provider.ts`. The
16
- * two MFEs are isolated via webpack externals / single-spa and cannot
17
- * share runtime modules without a shared-package coordination effort, so
18
- * 4 lines of duplication is the pragmatic choice for this migration.
15
+ * Rollback path: flip the env var and rebuild/redeploy api-mfe
16
+ * (~5–10 min). No code revert needed.
19
17
  *
20
18
  * Delete this file (and the legacy hooks branch) after Phase 4 soak.
21
19
  */
@@ -2,3 +2,4 @@ export { useIsTesting } from './use-is-testing';
2
2
  export { useLocalStorage, useOrganizationCode } from './use-localstorage';
3
3
  export { useAccountCode } from './use-account-code';
4
4
  export { getDatadogEnvironment, type DatadogEnvironment, } from './datadog-environment';
5
+ export { getFeatureFlagsProvider, type FeatureFlagsProvider, } from './feature-flags-provider';
@@ -7,4 +7,5 @@ export * from './types';
7
7
  export * from './constants';
8
8
  export * from './websockets';
9
9
  export * from './utils';
10
+ export { getFeatureFlagsProvider, type FeatureFlagsProvider, } from './utils/feature-flags-provider';
10
11
  export { emitExpired, resetExpiredGuard, SESSION_EXPIRED_MESSAGE_TYPE, } from './lib/session-expired';