@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.
- package/build/cjs/index.js +4 -4
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/types/api/api.d.ts +3 -0
- package/build/cjs/types/types/audit/audit.d.ts +13 -0
- package/build/cjs/types/types/concierge/concierge-access.d.ts +1 -1
- package/build/cjs/types/utils/feature-flags-provider.d.ts +10 -12
- package/build/cjs/types/utils/index.d.ts +1 -0
- package/build/cjs/types/yuno-dashboard-api-mfe.d.ts +1 -0
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/esm/types/api/api.d.ts +3 -0
- package/build/esm/types/types/audit/audit.d.ts +13 -0
- package/build/esm/types/types/concierge/concierge-access.d.ts +1 -1
- package/build/esm/types/utils/feature-flags-provider.d.ts +10 -12
- package/build/esm/types/utils/index.d.ts +1 -0
- package/build/esm/types/yuno-dashboard-api-mfe.d.ts +1 -0
- package/build/index.d.ts +41 -3
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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`
|
|
5
|
-
* 'legacy' (the in-house Go
|
|
6
|
-
* 'datadog' once the Datadog Feature
|
|
7
|
-
*
|
|
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
|
|
11
|
-
*
|
|
12
|
-
*
|
|
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
|
-
*
|
|
15
|
-
*
|
|
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';
|