@isettingkit/business-rules 1.0.7 → 1.0.9
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/dist/index.es.d.ts +7 -2
- package/dist/index.es.js +426 -426
- package/package.json +2 -2
package/dist/index.es.d.ts
CHANGED
|
@@ -134,6 +134,11 @@ declare interface IRulesFormTextValues {
|
|
|
134
134
|
termStart: string;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
+
declare interface ITranslateOptions {
|
|
138
|
+
url: string;
|
|
139
|
+
apiKey: string;
|
|
140
|
+
}
|
|
141
|
+
|
|
137
142
|
export declare const ModalRules: (props: IModalRules) => ReactPortal;
|
|
138
143
|
|
|
139
144
|
export declare const revertSortedDataSampleSwitchPlaces: (props: IRevertSortedData) => {
|
|
@@ -188,8 +193,8 @@ export declare const sortDisplayDataSampleSwitchPlaces: (props: IRevertSortedDat
|
|
|
188
193
|
|
|
189
194
|
export declare const sortDisplayDataSwitchPlaces: (props: IRevertSortedData) => IRuleDecision[] | undefined;
|
|
190
195
|
|
|
191
|
-
export declare const translateObject: (data: Record<string, any>, targetLang: string) => Promise<Record<string, any>>;
|
|
196
|
+
export declare const translateObject: (data: Record<string, any>, targetLang: string, options: ITranslateOptions) => Promise<Record<string, any>>;
|
|
192
197
|
|
|
193
|
-
export declare const translateText: (text: string, targetLang: string) => Promise<string>;
|
|
198
|
+
export declare const translateText: (text: string, targetLang: string, { url, apiKey }: ITranslateOptions) => Promise<string>;
|
|
194
199
|
|
|
195
200
|
export { }
|