@candlerip/shared3 0.0.155 → 0.0.156
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { composeDictionary } from '../../../../dictionary/index.js';
|
2
|
-
export const composeTermsAndConditionsPageApiResponse = async ({ excludedIdOptions
|
2
|
+
export const composeTermsAndConditionsPageApiResponse = async (language, { excludedIdOptions }) => {
|
3
3
|
const resp = await composeDictionary('terms-and-conditions-page', language, excludedIdOptions);
|
4
4
|
if ('customError' in resp) {
|
5
5
|
return resp;
|
@@ -2,9 +2,8 @@ import { Language } from '../../../../../dictionary/index.js';
|
|
2
2
|
import { CustomError } from '../../../../../error/index.js';
|
3
3
|
import { ExcludedIdOptions } from '../../../../dictionary/index.js';
|
4
4
|
import { TermsAndConditionsPageApiResponse } from '../type.js';
|
5
|
-
export type ComposeTermsAndConditionsPageApiResponse = (
|
6
|
-
excludedIdOptions
|
7
|
-
language: Language;
|
5
|
+
export type ComposeTermsAndConditionsPageApiResponse = (language: Language, options: {
|
6
|
+
excludedIdOptions?: ExcludedIdOptions;
|
8
7
|
}) => Promise<{
|
9
8
|
data: TermsAndConditionsPageApiResponse;
|
10
9
|
} | {
|