@tap-payments/os-micro-frontend-shared 0.1.367 → 0.1.368
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/types/apps.d.ts
CHANGED
|
@@ -4,14 +4,14 @@ import type { i18n } from 'i18next';
|
|
|
4
4
|
import { Theme } from '@mui/material';
|
|
5
5
|
import { CalenderMode } from './theme';
|
|
6
6
|
import { Timezone } from './appConfig';
|
|
7
|
-
import { Brand, Entity, TableMode } from './index.js';
|
|
7
|
+
import { Brand, Entity, Override, TableMode } from './index.js';
|
|
8
8
|
import { TextAndLang } from './common';
|
|
9
|
-
export type AppPayload<TServiceCodes extends string = string> = {
|
|
9
|
+
export type AppPayload<TServiceCodes extends string = string, TOverrides extends Partial<DefaultServicePayload> = object> = {
|
|
10
10
|
services: {
|
|
11
|
-
[key in TServiceCodes]?: ServicePayload
|
|
11
|
+
[key in TServiceCodes]?: ServicePayload<TOverrides>;
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type DefaultServicePayload = {
|
|
15
15
|
columnFilters?: Record<string, any>;
|
|
16
16
|
filteredIds?: string[];
|
|
17
17
|
dateRange?: [Date, Date];
|
|
@@ -21,7 +21,8 @@ export interface ServicePayload {
|
|
|
21
21
|
tableViews?: ColumnsView[];
|
|
22
22
|
calendarTimezone?: number;
|
|
23
23
|
reportTypes?: string[];
|
|
24
|
-
}
|
|
24
|
+
};
|
|
25
|
+
export type ServicePayload<TOverrides extends Partial<DefaultServicePayload> = object> = Override<DefaultServicePayload, TOverrides>;
|
|
25
26
|
export interface AppDetails {
|
|
26
27
|
id: string;
|
|
27
28
|
appCode: string;
|
package/build/types/table.d.ts
CHANGED
|
@@ -142,10 +142,7 @@ export interface IVirtualTable<R = any> {
|
|
|
142
142
|
footerComponent?: React.ReactNode;
|
|
143
143
|
customNoDataComponent?: React.ReactNode;
|
|
144
144
|
}
|
|
145
|
-
export type ColumnFilterValues = Record<string,
|
|
146
|
-
phone: string;
|
|
147
|
-
country: Country | undefined;
|
|
148
|
-
}>;
|
|
145
|
+
export type ColumnFilterValues = Record<string, any>;
|
|
149
146
|
export type IColumnFilter = ({
|
|
150
147
|
onConfirm?: (filterValues: ColumnFilterValues) => void;
|
|
151
148
|
onClear: (apiKeys: string[]) => void;
|
package/build/types/tsUtils.d.ts
CHANGED
|
@@ -6,3 +6,7 @@ export type PartialExcept<T, K extends keyof T> = Partial<Omit<T, K>> & Pick<T,
|
|
|
6
6
|
export type DeepPartial<T> = {
|
|
7
7
|
[K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
|
|
8
8
|
};
|
|
9
|
+
export type GeneralObject = Record<string, any>;
|
|
10
|
+
export type DeepExtendableObject<T> = T extends (...args: any[]) => any ? T : T extends readonly (infer U)[] ? ReadonlyArray<DeepExtendableObject<U>> : T extends GeneralObject ? {
|
|
11
|
+
[K in keyof T]: DeepExtendableObject<T[K]>;
|
|
12
|
+
} & GeneralObject : T;
|
|
@@ -6,7 +6,7 @@ export declare const openNewAppAttrs: ({ appCode, serviceCode, sandboxMode, payl
|
|
|
6
6
|
numberOfOpenedApps: number;
|
|
7
7
|
segmentId: string;
|
|
8
8
|
}) => {
|
|
9
|
-
payload?: (Record<string, any> & import("../types/index.js").
|
|
9
|
+
payload?: (Record<string, any> & Omit<import("../types/index.js").DefaultServicePayload, never> & object) | undefined;
|
|
10
10
|
segmentId: string;
|
|
11
11
|
appCode: string;
|
|
12
12
|
serviceCode: string;
|
package/package.json
CHANGED