@lambda-development/erp-core 0.1.31 → 0.1.33
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 +11 -0
- package/dist/i18n/locales/de.json.d.ts +17 -1
- package/dist/i18n/locales/en.json.d.ts +17 -1
- package/dist/i18n/locales/fr.json.d.ts +17 -1
- package/dist/index.js +1805 -1715
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/api/client.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare function configureApiBase(base: string): void;
|
|
2
|
+
export declare function apiUrl(path: string): string;
|
|
2
3
|
export declare class ApiError extends Error {
|
|
3
4
|
status: number;
|
|
4
5
|
constructor(status: number, message: string);
|
|
@@ -225,7 +226,17 @@ export declare const api: {
|
|
|
225
226
|
first_run: boolean;
|
|
226
227
|
public_signup: boolean;
|
|
227
228
|
registration_open: boolean;
|
|
229
|
+
oauth_providers: string[];
|
|
228
230
|
}>;
|
|
231
|
+
oauthLoginUrl: (provider: string, opts?: {
|
|
232
|
+
link?: boolean;
|
|
233
|
+
invite?: string;
|
|
234
|
+
}) => string;
|
|
235
|
+
oauthListIdentities: () => Promise<{
|
|
236
|
+
provider: string;
|
|
237
|
+
email: string | null;
|
|
238
|
+
creation: string;
|
|
239
|
+
}[]>;
|
|
229
240
|
authRegister: (data: {
|
|
230
241
|
email: string;
|
|
231
242
|
full_name: string;
|
|
@@ -162,7 +162,19 @@ declare const _default: {
|
|
|
162
162
|
"passwordsNoMatch": "Passwörter stimmen nicht überein",
|
|
163
163
|
"passwordTooShort": "Das Passwort muss mindestens 6 Zeichen lang sein",
|
|
164
164
|
"registrationFailed": "Registrierung fehlgeschlagen",
|
|
165
|
-
"loginFailed": "Anmeldung fehlgeschlagen"
|
|
165
|
+
"loginFailed": "Anmeldung fehlgeschlagen",
|
|
166
|
+
"orContinueWith": "oder weiter mit",
|
|
167
|
+
"continueWithProvider": "Weiter mit {{provider}}",
|
|
168
|
+
"oauthError": {
|
|
169
|
+
"generic": "Anmeldung fehlgeschlagen. Bitte erneut versuchen.",
|
|
170
|
+
"email_exists": "Ein Konto mit dieser E-Mail existiert bereits. Melden Sie sich an und verknüpfen Sie diesen Anbieter in den Kontoeinstellungen.",
|
|
171
|
+
"email_unverified": "Ihr Anbieter hat keine bestätigte E-Mail übermittelt, daher ist keine Anmeldung möglich.",
|
|
172
|
+
"registration_closed": "Für diese E-Mail besteht noch kein Konto und die Registrierung ist nur per Einladung möglich.",
|
|
173
|
+
"invite_invalid": "Diese Einladung ist ungültig, bereits verwendet oder für eine andere E-Mail ausgestellt.",
|
|
174
|
+
"identity_taken": "Dieses Anbieterkonto ist bereits mit einem anderen Benutzer verknüpft.",
|
|
175
|
+
"account_disabled": "Dieses Konto wurde deaktiviert.",
|
|
176
|
+
"token_exchange_failed": "Anmeldung beim Anbieter fehlgeschlagen. Bitte erneut versuchen."
|
|
177
|
+
}
|
|
166
178
|
},
|
|
167
179
|
"settings": {
|
|
168
180
|
"pdfTitle": "PDF & Druck",
|
|
@@ -175,6 +187,10 @@ declare const _default: {
|
|
|
175
187
|
"changePassword": "Passwort ändern",
|
|
176
188
|
"changingPassword": "Wird geändert...",
|
|
177
189
|
"passwordChanged": "Passwort geändert.",
|
|
190
|
+
"linkedAccountsTitle": "Verknüpfte Konten",
|
|
191
|
+
"linkedAccountsBody": "Verknüpfen Sie ein Google- oder Apple-Konto, um sich ohne Passwort anzumelden.",
|
|
192
|
+
"linked": "Verknüpft",
|
|
193
|
+
"linkProvider": "{{provider}} verknüpfen",
|
|
178
194
|
"openingTitle": "Eröffnungsbilanzen",
|
|
179
195
|
"openingBody": "Auf der Seite Eröffnungsbilanzen können Kontensalden, Lagerbestände und offene Rechnungen aus einem früheren System importiert werden.",
|
|
180
196
|
"openingEnabled": "Derzeit aktiviert — erreichbar unter Einführung > Eröffnungsbilanzen.",
|
|
@@ -225,7 +225,19 @@ declare const _default: {
|
|
|
225
225
|
"passwordsNoMatch": "Passwords do not match",
|
|
226
226
|
"passwordTooShort": "Password must be at least 6 characters",
|
|
227
227
|
"registrationFailed": "Registration failed",
|
|
228
|
-
"loginFailed": "Login failed"
|
|
228
|
+
"loginFailed": "Login failed",
|
|
229
|
+
"orContinueWith": "or continue with",
|
|
230
|
+
"continueWithProvider": "Continue with {{provider}}",
|
|
231
|
+
"oauthError": {
|
|
232
|
+
"generic": "Sign-in failed. Please try again.",
|
|
233
|
+
"email_exists": "An account with this email already exists. Sign in, then link this provider from your account settings.",
|
|
234
|
+
"email_unverified": "Your provider did not confirm a verified email, so we can't sign you in.",
|
|
235
|
+
"registration_closed": "This email has no account yet and registration is invite-only.",
|
|
236
|
+
"invite_invalid": "That invite is invalid, already used, or issued for a different email.",
|
|
237
|
+
"identity_taken": "That provider account is already linked to a different user.",
|
|
238
|
+
"account_disabled": "This account has been disabled.",
|
|
239
|
+
"token_exchange_failed": "Sign-in failed while contacting the provider. Please try again."
|
|
240
|
+
}
|
|
229
241
|
},
|
|
230
242
|
"settings": {
|
|
231
243
|
"pdfTitle": "PDF & Print",
|
|
@@ -238,6 +250,10 @@ declare const _default: {
|
|
|
238
250
|
"changePassword": "Change password",
|
|
239
251
|
"changingPassword": "Changing...",
|
|
240
252
|
"passwordChanged": "Password changed.",
|
|
253
|
+
"linkedAccountsTitle": "Linked Accounts",
|
|
254
|
+
"linkedAccountsBody": "Link a Google or Apple account to sign in without a password.",
|
|
255
|
+
"linked": "Linked",
|
|
256
|
+
"linkProvider": "Link {{provider}}",
|
|
241
257
|
"openingTitle": "Opening Balances",
|
|
242
258
|
"openingBody": "The Opening Balances page allows importing account balances, stock, and outstanding invoices from a previous system.",
|
|
243
259
|
"openingEnabled": "Currently enabled — accessible under Introduction > Opening Balances.",
|
|
@@ -162,7 +162,19 @@ declare const _default: {
|
|
|
162
162
|
"passwordsNoMatch": "Les mots de passe ne correspondent pas",
|
|
163
163
|
"passwordTooShort": "Le mot de passe doit comporter au moins 6 caractères",
|
|
164
164
|
"registrationFailed": "Échec de l'inscription",
|
|
165
|
-
"loginFailed": "Échec de la connexion"
|
|
165
|
+
"loginFailed": "Échec de la connexion",
|
|
166
|
+
"orContinueWith": "ou continuer avec",
|
|
167
|
+
"continueWithProvider": "Continuer avec {{provider}}",
|
|
168
|
+
"oauthError": {
|
|
169
|
+
"generic": "Échec de la connexion. Veuillez réessayer.",
|
|
170
|
+
"email_exists": "Un compte avec cet e-mail existe déjà. Connectez-vous, puis liez ce fournisseur depuis les paramètres du compte.",
|
|
171
|
+
"email_unverified": "Votre fournisseur n'a pas confirmé d'e-mail vérifié, la connexion est donc impossible.",
|
|
172
|
+
"registration_closed": "Cet e-mail n'a pas encore de compte et l'inscription se fait uniquement sur invitation.",
|
|
173
|
+
"invite_invalid": "Cette invitation est invalide, déjà utilisée ou émise pour un autre e-mail.",
|
|
174
|
+
"identity_taken": "Ce compte fournisseur est déjà lié à un autre utilisateur.",
|
|
175
|
+
"account_disabled": "Ce compte a été désactivé.",
|
|
176
|
+
"token_exchange_failed": "Échec de la connexion auprès du fournisseur. Veuillez réessayer."
|
|
177
|
+
}
|
|
166
178
|
},
|
|
167
179
|
"settings": {
|
|
168
180
|
"pdfTitle": "PDF et impression",
|
|
@@ -175,6 +187,10 @@ declare const _default: {
|
|
|
175
187
|
"changePassword": "Changer le mot de passe",
|
|
176
188
|
"changingPassword": "Modification...",
|
|
177
189
|
"passwordChanged": "Mot de passe modifié.",
|
|
190
|
+
"linkedAccountsTitle": "Comptes liés",
|
|
191
|
+
"linkedAccountsBody": "Liez un compte Google ou Apple pour vous connecter sans mot de passe.",
|
|
192
|
+
"linked": "Lié",
|
|
193
|
+
"linkProvider": "Lier {{provider}}",
|
|
178
194
|
"openingTitle": "Soldes d'ouverture",
|
|
179
195
|
"openingBody": "La page Soldes d'ouverture permet d'importer les soldes des comptes, le stock et les factures impayées d'un système précédent.",
|
|
180
196
|
"openingEnabled": "Actuellement activé — accessible sous Introduction > Soldes d'ouverture.",
|