@lambda-development/erp-core 0.1.33 → 0.1.35
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/api/client.d.ts +1 -0
- package/dist/contexts/auth-context.d.ts +2 -0
- package/dist/i18n/locales/de.json.d.ts +4 -0
- package/dist/i18n/locales/en.json.d.ts +4 -0
- package/dist/i18n/locales/fr.json.d.ts +4 -0
- package/dist/index.js +1145 -1069
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/api/client.d.ts
CHANGED
|
@@ -247,6 +247,7 @@ export declare const api: {
|
|
|
247
247
|
authLogout: () => Promise<any>;
|
|
248
248
|
authMe: () => Promise<any>;
|
|
249
249
|
authChangePassword: (current_password: string, new_password: string) => Promise<any>;
|
|
250
|
+
authSetPassword: (new_password: string) => Promise<any>;
|
|
250
251
|
authInvite: (email: string, role: string) => Promise<any>;
|
|
251
252
|
authListUsers: () => Promise<any[]>;
|
|
252
253
|
authChangeRole: (userName: string, role: string) => Promise<any>;
|
|
@@ -4,6 +4,7 @@ export interface User {
|
|
|
4
4
|
email: string;
|
|
5
5
|
full_name: string;
|
|
6
6
|
role: "admin" | "manager" | "viewer" | "public_manager";
|
|
7
|
+
has_password?: boolean;
|
|
7
8
|
}
|
|
8
9
|
interface AuthContextValue {
|
|
9
10
|
user: User | null;
|
|
@@ -11,6 +12,7 @@ interface AuthContextValue {
|
|
|
11
12
|
login: (email: string, password: string) => Promise<User>;
|
|
12
13
|
register: (email: string, fullName: string, password: string, inviteToken?: string) => Promise<User>;
|
|
13
14
|
logout: () => Promise<void>;
|
|
15
|
+
refreshUser: () => Promise<void>;
|
|
14
16
|
}
|
|
15
17
|
export declare function AuthProvider({ children }: {
|
|
16
18
|
children: ReactNode;
|
|
@@ -187,6 +187,10 @@ declare const _default: {
|
|
|
187
187
|
"changePassword": "Passwort ändern",
|
|
188
188
|
"changingPassword": "Wird geändert...",
|
|
189
189
|
"passwordChanged": "Passwort geändert.",
|
|
190
|
+
"setPasswordTitle": "Passwort festlegen",
|
|
191
|
+
"setPasswordBody": "Ihr Konto meldet sich mit Google an. Legen Sie ein Passwort fest, um sich auch mit E-Mail und Passwort anzumelden — ein praktischer Rückfall, falls Sie den Zugang zu Ihrem Google-Konto verlieren.",
|
|
192
|
+
"setPassword": "Passwort festlegen",
|
|
193
|
+
"passwordSet": "Passwort festgelegt.",
|
|
190
194
|
"linkedAccountsTitle": "Verknüpfte Konten",
|
|
191
195
|
"linkedAccountsBody": "Verknüpfen Sie ein Google- oder Apple-Konto, um sich ohne Passwort anzumelden.",
|
|
192
196
|
"linked": "Verknüpft",
|
|
@@ -250,6 +250,10 @@ declare const _default: {
|
|
|
250
250
|
"changePassword": "Change password",
|
|
251
251
|
"changingPassword": "Changing...",
|
|
252
252
|
"passwordChanged": "Password changed.",
|
|
253
|
+
"setPasswordTitle": "Set a Password",
|
|
254
|
+
"setPasswordBody": "Your account signs in with Google. Set a password to also sign in with email and password — a handy fallback if you ever lose access to your Google account.",
|
|
255
|
+
"setPassword": "Set password",
|
|
256
|
+
"passwordSet": "Password set.",
|
|
253
257
|
"linkedAccountsTitle": "Linked Accounts",
|
|
254
258
|
"linkedAccountsBody": "Link a Google or Apple account to sign in without a password.",
|
|
255
259
|
"linked": "Linked",
|
|
@@ -187,6 +187,10 @@ declare const _default: {
|
|
|
187
187
|
"changePassword": "Changer le mot de passe",
|
|
188
188
|
"changingPassword": "Modification...",
|
|
189
189
|
"passwordChanged": "Mot de passe modifié.",
|
|
190
|
+
"setPasswordTitle": "Définir un mot de passe",
|
|
191
|
+
"setPasswordBody": "Votre compte se connecte avec Google. Définissez un mot de passe pour vous connecter aussi avec e-mail et mot de passe — un recours pratique si vous perdez l'accès à votre compte Google.",
|
|
192
|
+
"setPassword": "Définir le mot de passe",
|
|
193
|
+
"passwordSet": "Mot de passe défini.",
|
|
190
194
|
"linkedAccountsTitle": "Comptes liés",
|
|
191
195
|
"linkedAccountsBody": "Liez un compte Google ou Apple pour vous connecter sans mot de passe.",
|
|
192
196
|
"linked": "Lié",
|