@autobusal/providers 1.2.4 → 1.2.6

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/Providers.tsx CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Suspense } from 'react';
2
+ import Recaptcha from './Recaptcha/Recaptcha';
2
3
  import Queries from './Queries/Queries';
3
4
  import Styles from './Styles/Styles';
4
5
  import Notifications from './Notifications/Notifications';
@@ -11,17 +12,19 @@ interface Props {
11
12
  }
12
13
 
13
14
  const Providers = ({ type, loading, children }: Props): JSX.Element => (
14
- <Queries>
15
- <Styles>
16
- <Notifications>
17
- <Setup type={ type }>
18
- <Suspense fallback={ loading }>
19
- { children }
20
- </Suspense>
21
- </Setup>
22
- </Notifications>
23
- </Styles>
24
- </Queries>
15
+ <Recaptcha>
16
+ <Queries>
17
+ <Styles>
18
+ <Notifications>
19
+ <Setup type={ type }>
20
+ <Suspense fallback={ loading }>
21
+ { children }
22
+ </Suspense>
23
+ </Setup>
24
+ </Notifications>
25
+ </Styles>
26
+ </Queries>
27
+ </Recaptcha>
25
28
  );
26
29
 
27
30
  export default Providers;
@@ -0,0 +1,13 @@
1
+ import { GoogleReCaptchaProvider } from 'react-google-recaptcha-v3';
2
+
3
+ interface Props {
4
+ children: JSX.Element
5
+ }
6
+
7
+ const Recaptcha = ({ children }: Props): JSX.Element => (
8
+ <GoogleReCaptchaProvider reCaptchaKey={ import.meta.env.VITE_RECAPTCHA_KEY }>
9
+ { children }
10
+ </GoogleReCaptchaProvider>
11
+ );
12
+
13
+ export default Recaptcha;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.2.4",
3
+ "version": "1.2.6",
4
4
  "type": "module",
5
5
  "main": "index.ts"
6
6
  }
package/types/settings.ts CHANGED
@@ -57,6 +57,14 @@ export interface MenuData {
57
57
  }
58
58
 
59
59
  export interface LabelData {
60
+ id: number
61
+ name: string
62
+ internal: string
63
+ settings: LabelSettings
64
+ payments: LabelPayments
65
+ }
66
+
67
+ export interface LabelSettings {
60
68
  type?: string
61
69
 
62
70
  email: string
@@ -77,14 +85,6 @@ export interface LabelData {
77
85
  customer_service: string
78
86
  }
79
87
 
80
- payments: {
81
- reserve: boolean
82
- funds: boolean
83
- bkt: boolean
84
- stripe: boolean
85
- mollie: boolean
86
- }
87
-
88
88
  smtp: {
89
89
  server: string
90
90
  port: number
@@ -111,15 +111,31 @@ export interface LabelData {
111
111
  reservation: number
112
112
  }
113
113
 
114
- bkt_settings: {
115
- url: string
116
- authid: string
117
- domain: string
118
- storeKey: string
119
- currencyId: string
114
+ social: {
115
+ google: {
116
+ client_id: string
117
+ client_secret: string
118
+ }
119
+
120
+ facebook: {
121
+ client_id: string
122
+ client_secret: string
123
+ }
120
124
  }
125
+ }
121
126
 
122
- devpos_settings: {
127
+ export interface LabelPayments {
128
+ available: {
129
+ reserve: boolean
130
+ funds: boolean
131
+ bkt: boolean
132
+ stripe: boolean
133
+ mollie: boolean
134
+ raiffeisen: boolean
135
+ nexi: boolean
136
+ }
137
+
138
+ devpos: {
123
139
  vat: number
124
140
  barcode: string
125
141
  authorization: string
@@ -127,25 +143,31 @@ export interface LabelData {
127
143
  cash_register_index: string
128
144
  }
129
145
 
130
- stripe_settings: {
146
+ bkt: {
147
+ url: string
148
+ authid: string
149
+ domain: string
150
+ storeKey: string
151
+ currencyId: string
152
+ }
153
+
154
+ stripe: {
131
155
  account: string
132
156
  secret: string
133
157
  }
134
158
 
135
- mollie_settings: {
159
+ mollie: {
136
160
  key: string
137
161
  }
138
162
 
139
- social: {
140
- google: {
141
- client_id: string
142
- client_secret: string
143
- }
163
+ raiffeisen: {
164
+ client_id: string
165
+ username: string
166
+ password: string
167
+ }
144
168
 
145
- facebook: {
146
- client_id: string
147
- client_secret: string
148
- }
169
+ nexi: {
170
+ api_key: string
149
171
  }
150
172
  }
151
173