@candlerip/shared3 0.0.77 → 0.0.78

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.77",
3
+ "version": "0.0.78",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1,6 +1,8 @@
1
1
  import { AddCandlePageDictionary, Language } from '../../../dictionary/index.js';
2
2
  import { AddCandlePageData } from '../../../page/index.js';
3
+ import { AuthServerSideProps } from '../auth-server-side-props/index.js';
3
4
  export interface AddCandlePageServerSideProps {
5
+ auth?: AuthServerSideProps;
4
6
  dictionary: AddCandlePageDictionary;
5
7
  language: Language;
6
8
  pageData: AddCandlePageData;
@@ -0,0 +1,6 @@
1
+ export interface AuthServerSideProps {
2
+ accessToken: string;
3
+ user: {
4
+ [key: string]: unknown;
5
+ };
6
+ }
@@ -0,0 +1 @@
1
+ export * from './domain.js';
@@ -0,0 +1 @@
1
+ export * from './domain.js';
@@ -1,5 +1,7 @@
1
1
  import { ContactPageDictionary, Language } from '../../../dictionary/index.js';
2
+ import { AuthServerSideProps } from '../auth-server-side-props/index.js';
2
3
  export interface ContactPageServerSideProps {
4
+ auth?: AuthServerSideProps;
3
5
  dictionary: ContactPageDictionary;
4
6
  language: Language;
5
7
  }
@@ -1,6 +1,8 @@
1
1
  import { CookieConsent } from '../../../cookie/index.js';
2
2
  import { CookiePolicyPageDictionary, Language } from '../../../dictionary/index.js';
3
+ import { AuthServerSideProps } from '../auth-server-side-props/index.js';
3
4
  export interface CookiePolicyPageServerSideProps {
5
+ auth?: AuthServerSideProps;
4
6
  cookieConsent?: CookieConsent;
5
7
  dictionary: CookiePolicyPageDictionary;
6
8
  language: Language;
@@ -1,5 +1,7 @@
1
1
  import { HelpPageDictionary, Language } from '../../../dictionary/index.js';
2
+ import { AuthServerSideProps } from '../auth-server-side-props/index.js';
2
3
  export interface HelpPageServerSideProps {
4
+ auth?: AuthServerSideProps;
3
5
  dictionary: HelpPageDictionary;
4
6
  language: Language;
5
7
  }
@@ -1,4 +1,5 @@
1
1
  export * from './add-candle-page-server-side-props/index.js';
2
+ export * from './auth-server-side-props/index.js';
2
3
  export * from './contact-page-server-side-props/index.js';
3
4
  export * from './cookie-policy-page-server-side-props/index.js';
4
5
  export * from './help-page-server-side-props/index.js';
@@ -1,4 +1,5 @@
1
1
  export * from './add-candle-page-server-side-props/index.js';
2
+ export * from './auth-server-side-props/index.js';
2
3
  export * from './contact-page-server-side-props/index.js';
3
4
  export * from './cookie-policy-page-server-side-props/index.js';
4
5
  export * from './help-page-server-side-props/index.js';
@@ -1,5 +1,7 @@
1
1
  import { Language, TermsAndConditionsPageDictionary } from '../../../dictionary/index.js';
2
+ import { AuthServerSideProps } from '../auth-server-side-props/index.js';
2
3
  export interface TermsAndConditionsPageServerSideProps {
4
+ auth?: AuthServerSideProps;
3
5
  dictionary: TermsAndConditionsPageDictionary;
4
6
  language: Language;
5
7
  }