@candlerip/shared3 0.0.161 → 0.0.162

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/package.json +1 -1
  2. package/src/backend/cache/cache/config.d.ts +4 -12
  3. package/src/backend/cache/cache/config.js +4 -12
  4. package/src/backend/cache/cache/type.d.ts +3 -7
  5. package/src/backend/server/server-data/candles/compose-candles-page-server-data/index.d.ts +2 -0
  6. package/src/backend/server/server-data/candles/{compose-candles-page-api-response → compose-candles-page-server-data}/index.js +1 -1
  7. package/src/backend/server/server-data/candles/{compose-candles-page-api-response → compose-candles-page-server-data}/type.d.ts +3 -3
  8. package/src/backend/server/server-data/candles/index.d.ts +1 -1
  9. package/src/backend/server/server-data/candles/index.js +1 -1
  10. package/src/backend/server/server-data/candles/type.d.ts +1 -1
  11. package/src/backend/server/server-data/index.d.ts +0 -4
  12. package/src/backend/server/server-data/index.js +0 -4
  13. package/src/backend/server/server-data/persons-map/compose-persons-map-page-server-data/index.d.ts +2 -0
  14. package/src/backend/server/server-data/persons-map/{compose-persons-map-page-api-response → compose-persons-map-page-server-data}/index.js +1 -1
  15. package/src/backend/server/server-data/persons-map/{compose-persons-map-page-api-response → compose-persons-map-page-server-data}/type.d.ts +3 -3
  16. package/src/backend/server/server-data/persons-map/index.d.ts +1 -1
  17. package/src/backend/server/server-data/persons-map/index.js +1 -1
  18. package/src/backend/server/server-data/persons-map/type.d.ts +1 -1
  19. package/src/backend/server/server-data/candles/compose-candles-page-api-response/index.d.ts +0 -2
  20. package/src/backend/server/server-data/contact/compose-contact-page-server-data/index.d.ts +0 -2
  21. package/src/backend/server/server-data/contact/compose-contact-page-server-data/index.js +0 -14
  22. package/src/backend/server/server-data/contact/compose-contact-page-server-data/type.d.ts +0 -11
  23. package/src/backend/server/server-data/contact/index.d.ts +0 -2
  24. package/src/backend/server/server-data/contact/index.js +0 -2
  25. package/src/backend/server/server-data/contact/type.d.ts +0 -4
  26. package/src/backend/server/server-data/contact/type.js +0 -1
  27. package/src/backend/server/server-data/cookie-policy/compose-cookie-policy-page-server-data/index.d.ts +0 -2
  28. package/src/backend/server/server-data/cookie-policy/compose-cookie-policy-page-server-data/index.js +0 -14
  29. package/src/backend/server/server-data/cookie-policy/compose-cookie-policy-page-server-data/type.d.ts +0 -11
  30. package/src/backend/server/server-data/cookie-policy/compose-cookie-policy-page-server-data/type.js +0 -1
  31. package/src/backend/server/server-data/cookie-policy/index.d.ts +0 -2
  32. package/src/backend/server/server-data/cookie-policy/index.js +0 -2
  33. package/src/backend/server/server-data/cookie-policy/type.d.ts +0 -4
  34. package/src/backend/server/server-data/cookie-policy/type.js +0 -1
  35. package/src/backend/server/server-data/help/compose-help-page-server-data/index.d.ts +0 -2
  36. package/src/backend/server/server-data/help/compose-help-page-server-data/index.js +0 -14
  37. package/src/backend/server/server-data/help/compose-help-page-server-data/type.d.ts +0 -11
  38. package/src/backend/server/server-data/help/compose-help-page-server-data/type.js +0 -1
  39. package/src/backend/server/server-data/help/index.d.ts +0 -2
  40. package/src/backend/server/server-data/help/index.js +0 -2
  41. package/src/backend/server/server-data/help/type.d.ts +0 -4
  42. package/src/backend/server/server-data/help/type.js +0 -1
  43. package/src/backend/server/server-data/persons-map/compose-persons-map-page-api-response/index.d.ts +0 -2
  44. package/src/backend/server/server-data/persons-map/compose-persons-map-page-api-response/type.js +0 -1
  45. package/src/backend/server/server-data/terms-and-conditions/compose-terms-and-conditions-page-server-data/index.d.ts +0 -2
  46. package/src/backend/server/server-data/terms-and-conditions/compose-terms-and-conditions-page-server-data/index.js +0 -14
  47. package/src/backend/server/server-data/terms-and-conditions/compose-terms-and-conditions-page-server-data/type.d.ts +0 -11
  48. package/src/backend/server/server-data/terms-and-conditions/compose-terms-and-conditions-page-server-data/type.js +0 -1
  49. package/src/backend/server/server-data/terms-and-conditions/index.d.ts +0 -2
  50. package/src/backend/server/server-data/terms-and-conditions/index.js +0 -2
  51. package/src/backend/server/server-data/terms-and-conditions/type.d.ts +0 -4
  52. package/src/backend/server/server-data/terms-and-conditions/type.js +0 -1
  53. /package/src/backend/server/server-data/candles/{compose-candles-page-api-response → compose-candles-page-server-data}/type.js +0 -0
  54. /package/src/backend/server/server-data/{contact/compose-contact-page-server-data → persons-map/compose-persons-map-page-server-data}/type.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.161",
3
+ "version": "0.0.162",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/index.js",
@@ -3,18 +3,14 @@ export declare const CACHE: {
3
3
  readonly 'add-person-page-dictionary-hu': "Dictionary";
4
4
  readonly 'candle-details-page-dictionary-en': "Dictionary";
5
5
  readonly 'candle-details-page-dictionary-hu': "Dictionary";
6
- readonly 'candles-page-api-response-en': "CandlesPageApiResponse";
7
- readonly 'candles-page-api-response-hu': "CandlesPageApiResponse";
6
+ readonly 'candles-page-server-data-en': "CandlesPageServerData";
7
+ readonly 'candles-page-server-data-hu': "CandlesPageServerData";
8
8
  readonly 'candles-page-dictionary-en': "Dictionary";
9
9
  readonly 'candles-page-dictionary-hu': "Dictionary";
10
10
  readonly 'contact-page-dictionary-en': "Dictionary";
11
11
  readonly 'contact-page-dictionary-hu': "Dictionary";
12
- readonly 'contact-page-server-data-en': "ContactPageServerData";
13
- readonly 'contact-page-server-data-hu': "ContactPageServerData";
14
12
  readonly 'cookie-policy-page-dictionary-en': "Dictionary";
15
13
  readonly 'cookie-policy-page-dictionary-hu': "Dictionary";
16
- readonly 'cookie-policy-page-server-data-en': "CookiePolicyPageServerData";
17
- readonly 'cookie-policy-page-server-data-hu': "CookiePolicyPageServerData";
18
14
  readonly 'edit-candle-page-dictionary-en': "Dictionary";
19
15
  readonly 'edit-candle-page-dictionary-hu': "Dictionary";
20
16
  readonly 'edit-person-page-dictionary-en': "Dictionary";
@@ -25,8 +21,6 @@ export declare const CACHE: {
25
21
  readonly 'light-candle-page-server-data-hu': "LightCandlePageServerData";
26
22
  readonly 'help-page-dictionary-en': "Dictionary";
27
23
  readonly 'help-page-dictionary-hu': "Dictionary";
28
- readonly 'help-page-server-data-en': "HelpPageServerData";
29
- readonly 'help-page-server-data-hu': "HelpPageServerData";
30
24
  readonly 'home-page-dictionary-en': "Dictionary";
31
25
  readonly 'home-page-dictionary-hu': "Dictionary";
32
26
  readonly 'person-candles-page-dictionary-en': "Dictionary";
@@ -35,12 +29,10 @@ export declare const CACHE: {
35
29
  readonly 'person-details-page-dictionary-hu': "Dictionary";
36
30
  readonly 'persons-page-dictionary-en': "Dictionary";
37
31
  readonly 'persons-page-dictionary-hu': "Dictionary";
38
- readonly 'persons-map-page-api-response-en': "PersonsMapPageApiResponse";
39
- readonly 'persons-map-page-api-response-hu': "PersonsMapPageApiResponse";
32
+ readonly 'persons-map-page-server-data-en': "PersonsMapPageServerData";
33
+ readonly 'persons-map-page-server-data-hu': "PersonsMapPageServerData";
40
34
  readonly 'persons-map-page-dictionary-en': "Dictionary";
41
35
  readonly 'persons-map-page-dictionary-hu': "Dictionary";
42
36
  readonly 'terms-and-conditions-page-dictionary-en': "Dictionary";
43
37
  readonly 'terms-and-conditions-page-dictionary-hu': "Dictionary";
44
- readonly 'terms-and-conditions-page-server-data-en': "TermsAndConditionsPageServerData";
45
- readonly 'terms-and-conditions-page-server-data-hu': "TermsAndConditionsPageServerData";
46
38
  };
@@ -3,18 +3,14 @@ export const CACHE = {
3
3
  'add-person-page-dictionary-hu': 'Dictionary',
4
4
  'candle-details-page-dictionary-en': 'Dictionary',
5
5
  'candle-details-page-dictionary-hu': 'Dictionary',
6
- 'candles-page-api-response-en': 'CandlesPageApiResponse',
7
- 'candles-page-api-response-hu': 'CandlesPageApiResponse',
6
+ 'candles-page-server-data-en': 'CandlesPageServerData',
7
+ 'candles-page-server-data-hu': 'CandlesPageServerData',
8
8
  'candles-page-dictionary-en': 'Dictionary',
9
9
  'candles-page-dictionary-hu': 'Dictionary',
10
10
  'contact-page-dictionary-en': 'Dictionary',
11
11
  'contact-page-dictionary-hu': 'Dictionary',
12
- 'contact-page-server-data-en': 'ContactPageServerData',
13
- 'contact-page-server-data-hu': 'ContactPageServerData',
14
12
  'cookie-policy-page-dictionary-en': 'Dictionary',
15
13
  'cookie-policy-page-dictionary-hu': 'Dictionary',
16
- 'cookie-policy-page-server-data-en': 'CookiePolicyPageServerData',
17
- 'cookie-policy-page-server-data-hu': 'CookiePolicyPageServerData',
18
14
  'edit-candle-page-dictionary-en': 'Dictionary',
19
15
  'edit-candle-page-dictionary-hu': 'Dictionary',
20
16
  'edit-person-page-dictionary-en': 'Dictionary',
@@ -25,8 +21,6 @@ export const CACHE = {
25
21
  'light-candle-page-server-data-hu': 'LightCandlePageServerData',
26
22
  'help-page-dictionary-en': 'Dictionary',
27
23
  'help-page-dictionary-hu': 'Dictionary',
28
- 'help-page-server-data-en': 'HelpPageServerData',
29
- 'help-page-server-data-hu': 'HelpPageServerData',
30
24
  'home-page-dictionary-en': 'Dictionary',
31
25
  'home-page-dictionary-hu': 'Dictionary',
32
26
  'person-candles-page-dictionary-en': 'Dictionary',
@@ -35,12 +29,10 @@ export const CACHE = {
35
29
  'person-details-page-dictionary-hu': 'Dictionary',
36
30
  'persons-page-dictionary-en': 'Dictionary',
37
31
  'persons-page-dictionary-hu': 'Dictionary',
38
- 'persons-map-page-api-response-en': 'PersonsMapPageApiResponse',
39
- 'persons-map-page-api-response-hu': 'PersonsMapPageApiResponse',
32
+ 'persons-map-page-server-data-en': 'PersonsMapPageServerData',
33
+ 'persons-map-page-server-data-hu': 'PersonsMapPageServerData',
40
34
  'persons-map-page-dictionary-en': 'Dictionary',
41
35
  'persons-map-page-dictionary-hu': 'Dictionary',
42
36
  'terms-and-conditions-page-dictionary-en': 'Dictionary',
43
37
  'terms-and-conditions-page-dictionary-hu': 'Dictionary',
44
- 'terms-and-conditions-page-server-data-en': 'TermsAndConditionsPageServerData',
45
- 'terms-and-conditions-page-server-data-hu': 'TermsAndConditionsPageServerData',
46
38
  };
@@ -1,17 +1,13 @@
1
1
  import { Dictionary } from '../../../dictionary/index.js';
2
- import { CandlesPageApiResponse, ContactPageServerData, CookiePolicyPageServerData, HelpPageServerData, LightCandlePageServerData, PersonsMapPageApiResponse, TermsAndConditionsPageServerData } from '../../server/index.js';
2
+ import { CandlesPageServerData, LightCandlePageServerData, PersonsMapPageServerData } from '../../server/index.js';
3
3
  import { CACHE } from './config.js';
4
4
  export type Cache = {
5
5
  [key in keyof typeof CACHE]: TypeMap[(typeof CACHE)[key]];
6
6
  };
7
7
  interface TypeMap {
8
- CandlesPageApiResponse: CandlesPageApiResponse;
9
- ContactPageServerData: ContactPageServerData;
10
- CookiePolicyPageServerData: CookiePolicyPageServerData;
8
+ CandlesPageServerData: CandlesPageServerData;
11
9
  Dictionary: Dictionary;
12
- HelpPageServerData: HelpPageServerData;
13
10
  LightCandlePageServerData: LightCandlePageServerData;
14
- PersonsMapPageApiResponse: PersonsMapPageApiResponse;
15
- TermsAndConditionsPageServerData: TermsAndConditionsPageServerData;
11
+ PersonsMapPageServerData: PersonsMapPageServerData;
16
12
  }
17
13
  export {};
@@ -0,0 +1,2 @@
1
+ import { ComposeCandlesPageServerData } from './type.js';
2
+ export declare const composeCandlesPageServerData: ComposeCandlesPageServerData;
@@ -2,7 +2,7 @@ import { DICTIONARY_CONFIG } from '../../../../../dictionary/index.js';
2
2
  import { DEFAULT_CANDLE_FILTER_SORT } from '../../../../../filter-sort/index.js';
3
3
  import { getTranslationsAsDictionary } from '../../../../database/index.js';
4
4
  import { composeCandlesPageData } from '../../../../page/index.js';
5
- export const composeCandlesPageApiResponse = async ({ filterSort: initFilterSort, language }) => {
5
+ export const composeCandlesPageServerData = async ({ filterSort: initFilterSort, language }) => {
6
6
  const filterSort = {
7
7
  ...DEFAULT_CANDLE_FILTER_SORT,
8
8
  ...initFilterSort,
@@ -1,12 +1,12 @@
1
1
  import { Language } from '../../../../../dictionary/index.js';
2
2
  import { CustomError } from '../../../../../error/index.js';
3
3
  import { CandleFilterSort } from '../../../../../filter-sort/index.js';
4
- import { CandlesPageApiResponse } from '../type.js';
5
- export type ComposeCandlesPageApiResponse = (props: {
4
+ import { CandlesPageServerData } from '../type.js';
5
+ export type ComposeCandlesPageServerData = (props: {
6
6
  filterSort?: Partial<CandleFilterSort>;
7
7
  language: Language;
8
8
  }) => Promise<{
9
- data: CandlesPageApiResponse;
9
+ data: CandlesPageServerData;
10
10
  } | {
11
11
  customError: CustomError;
12
12
  }>;
@@ -1,2 +1,2 @@
1
- export * from './compose-candles-page-api-response/index.js';
1
+ export * from './compose-candles-page-server-data/index.js';
2
2
  export * from './type.js';
@@ -1,2 +1,2 @@
1
- export * from './compose-candles-page-api-response/index.js';
1
+ export * from './compose-candles-page-server-data/index.js';
2
2
  export * from './type.js';
@@ -1,6 +1,6 @@
1
1
  import { Dictionary } from '../../../../dictionary/index.js';
2
2
  import { CandlesPageData } from '../../../page/index.js';
3
- export interface CandlesPageApiResponse {
3
+ export interface CandlesPageServerData {
4
4
  dictionary: Dictionary;
5
5
  pageData: CandlesPageData;
6
6
  }
@@ -1,7 +1,3 @@
1
1
  export * from './candles/index.js';
2
- export * from './contact/index.js';
3
- export * from './cookie-policy/index.js';
4
- export * from './help/index.js';
5
2
  export * from './light-candle/index.js';
6
3
  export * from './persons-map/index.js';
7
- export * from './terms-and-conditions/index.js';
@@ -1,7 +1,3 @@
1
1
  export * from './candles/index.js';
2
- export * from './contact/index.js';
3
- export * from './cookie-policy/index.js';
4
- export * from './help/index.js';
5
2
  export * from './light-candle/index.js';
6
3
  export * from './persons-map/index.js';
7
- export * from './terms-and-conditions/index.js';
@@ -0,0 +1,2 @@
1
+ import { ComposePersonsMapPageServerData } from './type.js';
2
+ export declare const composePersonsMapPageServerData: ComposePersonsMapPageServerData;
@@ -1,7 +1,7 @@
1
1
  import { DICTIONARY_CONFIG } from '../../../../../dictionary/index.js';
2
2
  import { getTranslationsAsDictionary } from '../../../../database/index.js';
3
3
  import { composePersonsMapPageData } from '../../../../page/index.js';
4
- export const composePersonsMapPageApiResponse = async ({ language }) => {
4
+ export const composePersonsMapPageServerData = async ({ language }) => {
5
5
  let resp;
6
6
  resp = await getTranslationsAsDictionary(language, DICTIONARY_CONFIG['persons-map-page'].translationIds);
7
7
  if ('customError' in resp) {
@@ -1,10 +1,10 @@
1
1
  import { Language } from '../../../../../dictionary/index.js';
2
2
  import { CustomError } from '../../../../../error/index.js';
3
- import { PersonsMapPageApiResponse } from '../type.js';
4
- export type ComposePersonsMapPageApiResponse = (props: {
3
+ import { PersonsMapPageServerData } from '../type.js';
4
+ export type ComposePersonsMapPageServerData = (props: {
5
5
  language: Language;
6
6
  }) => Promise<{
7
- data: PersonsMapPageApiResponse;
7
+ data: PersonsMapPageServerData;
8
8
  } | {
9
9
  customError: CustomError;
10
10
  }>;
@@ -1,2 +1,2 @@
1
- export * from './compose-persons-map-page-api-response/index.js';
1
+ export * from './compose-persons-map-page-server-data/index.js';
2
2
  export * from './type.js';
@@ -1,2 +1,2 @@
1
- export * from './compose-persons-map-page-api-response/index.js';
1
+ export * from './compose-persons-map-page-server-data/index.js';
2
2
  export * from './type.js';
@@ -1,6 +1,6 @@
1
1
  import { Dictionary } from '../../../../dictionary/index.js';
2
2
  import { PersonsMapPageData } from '../../../page/index.js';
3
- export interface PersonsMapPageApiResponse {
3
+ export interface PersonsMapPageServerData {
4
4
  dictionary: Dictionary;
5
5
  pageData: PersonsMapPageData;
6
6
  }
@@ -1,2 +0,0 @@
1
- import { ComposeCandlesPageApiResponse } from './type.js';
2
- export declare const composeCandlesPageApiResponse: ComposeCandlesPageApiResponse;
@@ -1,2 +0,0 @@
1
- import { ComposeContactPageServerData } from './type.js';
2
- export declare const composeContactPageServerData: ComposeContactPageServerData;
@@ -1,14 +0,0 @@
1
- import { composeDictionary } from '../../../../dictionary/index.js';
2
- export const composeContactPageServerData = async (language, options) => {
3
- const excludedTranslationIdOptions = options?.excludedTranslationIdOptions;
4
- const resp = await composeDictionary('contact-page', language, { excludedTranslationIdOptions });
5
- if ('customError' in resp) {
6
- return resp;
7
- }
8
- const dictionary = resp.data;
9
- return {
10
- data: {
11
- dictionary,
12
- },
13
- };
14
- };
@@ -1,11 +0,0 @@
1
- import { Language } from '../../../../../dictionary/index.js';
2
- import { CustomError } from '../../../../../error/index.js';
3
- import { ExcludedTranslationIdOptions } from '../../../../dictionary/index.js';
4
- import { ContactPageServerData } from '../type.js';
5
- export type ComposeContactPageServerData = (language: Language, options?: {
6
- excludedTranslationIdOptions?: ExcludedTranslationIdOptions;
7
- }) => Promise<{
8
- data: ContactPageServerData;
9
- } | {
10
- customError: CustomError;
11
- }>;
@@ -1,2 +0,0 @@
1
- export * from './compose-contact-page-server-data/index.js';
2
- export * from './type.js';
@@ -1,2 +0,0 @@
1
- export * from './compose-contact-page-server-data/index.js';
2
- export * from './type.js';
@@ -1,4 +0,0 @@
1
- import { Dictionary } from '../../../../dictionary/index.js';
2
- export interface ContactPageServerData {
3
- dictionary: Dictionary;
4
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import { ComposeCookiePolicyPageServerData } from './type.js';
2
- export declare const composeCookiePolicyPageServerData: ComposeCookiePolicyPageServerData;
@@ -1,14 +0,0 @@
1
- import { composeDictionary } from '../../../../dictionary/index.js';
2
- export const composeCookiePolicyPageServerData = async (language, options) => {
3
- const excludedTranslationIdOptions = options?.excludedTranslationIdOptions;
4
- const resp = await composeDictionary('cookie-policy-page', language, { excludedTranslationIdOptions });
5
- if ('customError' in resp) {
6
- return resp;
7
- }
8
- const dictionary = resp.data;
9
- return {
10
- data: {
11
- dictionary,
12
- },
13
- };
14
- };
@@ -1,11 +0,0 @@
1
- import { Language } from '../../../../../dictionary/index.js';
2
- import { CustomError } from '../../../../../error/index.js';
3
- import { ExcludedTranslationIdOptions } from '../../../../dictionary/index.js';
4
- import { CookiePolicyPageServerData } from '../type.js';
5
- export type ComposeCookiePolicyPageServerData = (language: Language, options?: {
6
- excludedTranslationIdOptions?: ExcludedTranslationIdOptions;
7
- }) => Promise<{
8
- data: CookiePolicyPageServerData;
9
- } | {
10
- customError: CustomError;
11
- }>;
@@ -1,2 +0,0 @@
1
- export * from './compose-cookie-policy-page-server-data/index.js';
2
- export * from './type.js';
@@ -1,2 +0,0 @@
1
- export * from './compose-cookie-policy-page-server-data/index.js';
2
- export * from './type.js';
@@ -1,4 +0,0 @@
1
- import { Dictionary } from '../../../../dictionary/index.js';
2
- export interface CookiePolicyPageServerData {
3
- dictionary: Dictionary;
4
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import { ComposeHelpPageServerData } from './type.js';
2
- export declare const composeHelpPageServerData: ComposeHelpPageServerData;
@@ -1,14 +0,0 @@
1
- import { composeDictionary } from '../../../../dictionary/index.js';
2
- export const composeHelpPageServerData = async (language, options) => {
3
- const excludedTranslationIdOptions = options?.excludedTranslationIdOptions;
4
- const resp = await composeDictionary('help-page', language, { excludedTranslationIdOptions });
5
- if ('customError' in resp) {
6
- return resp;
7
- }
8
- const dictionary = resp.data;
9
- return {
10
- data: {
11
- dictionary,
12
- },
13
- };
14
- };
@@ -1,11 +0,0 @@
1
- import { Language } from '../../../../../dictionary/index.js';
2
- import { CustomError } from '../../../../../error/index.js';
3
- import { ExcludedTranslationIdOptions } from '../../../../dictionary/index.js';
4
- import { HelpPageServerData } from '../type.js';
5
- export type ComposeHelpPageServerData = (language: Language, options?: {
6
- excludedTranslationIdOptions?: ExcludedTranslationIdOptions;
7
- }) => Promise<{
8
- data: HelpPageServerData;
9
- } | {
10
- customError: CustomError;
11
- }>;
@@ -1,2 +0,0 @@
1
- export * from './compose-help-page-server-data/index.js';
2
- export * from './type.js';
@@ -1,2 +0,0 @@
1
- export * from './compose-help-page-server-data/index.js';
2
- export * from './type.js';
@@ -1,4 +0,0 @@
1
- import { Dictionary } from '../../../../dictionary/index.js';
2
- export interface HelpPageServerData {
3
- dictionary: Dictionary;
4
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import { ComposePersonsMapPageApiResponse } from './type.js';
2
- export declare const composePersonsMapPageApiResponse: ComposePersonsMapPageApiResponse;
@@ -1,2 +0,0 @@
1
- import { ComposeTermsAndConditionsPageServerData } from './type.js';
2
- export declare const composeTermsAndConditionsPageServerData: ComposeTermsAndConditionsPageServerData;
@@ -1,14 +0,0 @@
1
- import { composeDictionary } from '../../../../dictionary/index.js';
2
- export const composeTermsAndConditionsPageServerData = async (language, options) => {
3
- const excludedTranslationIdOptions = options?.excludedTranslationIdOptions;
4
- const resp = await composeDictionary('terms-and-conditions-page', language, { excludedTranslationIdOptions });
5
- if ('customError' in resp) {
6
- return resp;
7
- }
8
- const dictionary = resp.data;
9
- return {
10
- data: {
11
- dictionary,
12
- },
13
- };
14
- };
@@ -1,11 +0,0 @@
1
- import { Language } from '../../../../../dictionary/index.js';
2
- import { CustomError } from '../../../../../error/index.js';
3
- import { ExcludedTranslationIdOptions } from '../../../../dictionary/index.js';
4
- import { TermsAndConditionsPageServerData } from '../type.js';
5
- export type ComposeTermsAndConditionsPageServerData = (language: Language, options?: {
6
- excludedTranslationIdOptions?: ExcludedTranslationIdOptions;
7
- }) => Promise<{
8
- data: TermsAndConditionsPageServerData;
9
- } | {
10
- customError: CustomError;
11
- }>;
@@ -1,2 +0,0 @@
1
- export * from './compose-terms-and-conditions-page-server-data/index.js';
2
- export * from './type.js';
@@ -1,2 +0,0 @@
1
- export * from './compose-terms-and-conditions-page-server-data/index.js';
2
- export * from './type.js';
@@ -1,4 +0,0 @@
1
- import { Dictionary } from '../../../../dictionary/index.js';
2
- export interface TermsAndConditionsPageServerData {
3
- dictionary: Dictionary;
4
- }