@lambda-development/erp-core 0.1.35 → 0.1.36
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 +21 -0
- package/dist/i18n/locales/de.json.d.ts +15 -0
- package/dist/i18n/locales/en.json.d.ts +15 -0
- package/dist/i18n/locales/fr.json.d.ts +15 -0
- package/dist/index.js +1197 -1080
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/api/client.d.ts
CHANGED
|
@@ -262,6 +262,27 @@ export declare const api: {
|
|
|
262
262
|
removePublicManager: () => Promise<any>;
|
|
263
263
|
getSettings: () => Promise<Record<string, string>>;
|
|
264
264
|
updateSettings: (data: Record<string, string>) => Promise<Record<string, string>>;
|
|
265
|
+
getApiKeys: () => Promise<{
|
|
266
|
+
id: string;
|
|
267
|
+
name: string;
|
|
268
|
+
role: string;
|
|
269
|
+
key_prefix: string;
|
|
270
|
+
created_by?: string;
|
|
271
|
+
created_at?: string;
|
|
272
|
+
last_used_at?: string | null;
|
|
273
|
+
revoked: boolean;
|
|
274
|
+
}[]>;
|
|
275
|
+
createApiKey: (name: string, role: string) => Promise<{
|
|
276
|
+
id: string;
|
|
277
|
+
name: string;
|
|
278
|
+
role: string;
|
|
279
|
+
key_prefix: string;
|
|
280
|
+
token: string;
|
|
281
|
+
}>;
|
|
282
|
+
revokeApiKey: (id: string) => Promise<{
|
|
283
|
+
id: string;
|
|
284
|
+
revoked: boolean;
|
|
285
|
+
}>;
|
|
265
286
|
getDemoSpend: () => Promise<{
|
|
266
287
|
caps: {
|
|
267
288
|
global_hourly_usd: number;
|
|
@@ -203,6 +203,21 @@ declare const _default: {
|
|
|
203
203
|
"signupBody": "Erlauben Sie es jedem, ohne Einladung ein eigenes Konto (als Betrachter) zu erstellen. Wenn deaktiviert, können neue Benutzer nur über einen Einladungslink beitreten.",
|
|
204
204
|
"signupEnabled": "Derzeit aktiviert — jeder mit der URL kann sich als Betrachter registrieren.",
|
|
205
205
|
"signupDisabled": "Derzeit deaktiviert — die Registrierung erfolgt nur per Einladung.",
|
|
206
|
+
"chatApiTitle": "Chat-API",
|
|
207
|
+
"chatApiBody": "Externen Anwendungen erlauben, über eine HTTP-API mit dem Chat-Agenten dieses ERPs zu sprechen — per Bearer-API-Schlüssel. Standardmäßig deaktiviert.",
|
|
208
|
+
"chatApiEnabled": "Derzeit aktiviert — ausgestellte Schlüssel können POST /api/v1/chat aufrufen.",
|
|
209
|
+
"chatApiDisabled": "Derzeit deaktiviert — die API liefert 404 und Schlüssel funktionieren nicht.",
|
|
210
|
+
"chatApiKeysTitle": "API-Schlüssel",
|
|
211
|
+
"chatApiTokenOnce": "Kopieren Sie diesen Token jetzt — er wird nicht erneut angezeigt.",
|
|
212
|
+
"chatApiCopy": "Kopieren",
|
|
213
|
+
"chatApiDismiss": "Schließen",
|
|
214
|
+
"chatApiRevoked": "widerrufen",
|
|
215
|
+
"chatApiRevoke": "Widerrufen",
|
|
216
|
+
"chatApiNoKeys": "Noch keine API-Schlüssel.",
|
|
217
|
+
"chatApiName": "Name",
|
|
218
|
+
"chatApiRole": "Rolle",
|
|
219
|
+
"chatApiCreate": "Schlüssel erstellen",
|
|
220
|
+
"chatApiWarn": "Ein Schlüssel handelt mit seiner gewählten Rolle. Ein Manager-Schlüssel kann per Chat Belege erstellen und stornieren — behandeln Sie ihn wie ein Passwort.",
|
|
206
221
|
"publicTitle": "Öffentlicher Zugriff (Demomodus)",
|
|
207
222
|
"publicActive": "Aktiv",
|
|
208
223
|
"publicActiveBody": "Der öffentliche Zugriff ist aktiviert. Jeder kann die Anwendung ohne Anmeldung nutzen. Alle Besucher erhalten Manager-Rechte.",
|
|
@@ -266,6 +266,21 @@ declare const _default: {
|
|
|
266
266
|
"signupBody": "Allow anyone to create their own account (as a viewer) without an invite. When off, new users can only join via an invite link.",
|
|
267
267
|
"signupEnabled": "Currently enabled — anyone with the URL can register as a viewer.",
|
|
268
268
|
"signupDisabled": "Currently disabled — registration is invite-only.",
|
|
269
|
+
"chatApiTitle": "Chat API",
|
|
270
|
+
"chatApiBody": "Let external applications talk to this ERP's chat agent over an HTTP API, using Bearer API keys. Off by default.",
|
|
271
|
+
"chatApiEnabled": "Currently enabled — issued keys can call POST /api/v1/chat.",
|
|
272
|
+
"chatApiDisabled": "Currently disabled — the API returns 404 and keys don't work.",
|
|
273
|
+
"chatApiKeysTitle": "API keys",
|
|
274
|
+
"chatApiTokenOnce": "Copy this token now — it won't be shown again.",
|
|
275
|
+
"chatApiCopy": "Copy",
|
|
276
|
+
"chatApiDismiss": "Dismiss",
|
|
277
|
+
"chatApiRevoked": "revoked",
|
|
278
|
+
"chatApiRevoke": "Revoke",
|
|
279
|
+
"chatApiNoKeys": "No API keys yet.",
|
|
280
|
+
"chatApiName": "Name",
|
|
281
|
+
"chatApiRole": "Role",
|
|
282
|
+
"chatApiCreate": "Create key",
|
|
283
|
+
"chatApiWarn": "A key acts with its chosen role. A manager key can create and cancel documents through chat — treat it like a password.",
|
|
269
284
|
"publicTitle": "Public Access (Demo Mode)",
|
|
270
285
|
"publicActive": "Active",
|
|
271
286
|
"publicActiveBody": "Public access is enabled. Anyone can use the application without logging in. All visitors get manager-level permissions.",
|
|
@@ -203,6 +203,21 @@ declare const _default: {
|
|
|
203
203
|
"signupBody": "Permettre à quiconque de créer son propre compte (en tant que lecteur) sans invitation. Lorsque désactivé, les nouveaux utilisateurs ne peuvent rejoindre que via un lien d'invitation.",
|
|
204
204
|
"signupEnabled": "Actuellement activé — toute personne disposant de l'URL peut s'inscrire en tant que lecteur.",
|
|
205
205
|
"signupDisabled": "Actuellement désactivé — l'inscription se fait uniquement sur invitation.",
|
|
206
|
+
"chatApiTitle": "API de chat",
|
|
207
|
+
"chatApiBody": "Permettre à des applications externes de dialoguer avec l'agent de chat de cet ERP via une API HTTP, à l'aide de clés API Bearer. Désactivé par défaut.",
|
|
208
|
+
"chatApiEnabled": "Actuellement activé — les clés émises peuvent appeler POST /api/v1/chat.",
|
|
209
|
+
"chatApiDisabled": "Actuellement désactivé — l'API renvoie 404 et les clés ne fonctionnent pas.",
|
|
210
|
+
"chatApiKeysTitle": "Clés API",
|
|
211
|
+
"chatApiTokenOnce": "Copiez ce jeton maintenant — il ne sera plus affiché.",
|
|
212
|
+
"chatApiCopy": "Copier",
|
|
213
|
+
"chatApiDismiss": "Fermer",
|
|
214
|
+
"chatApiRevoked": "révoquée",
|
|
215
|
+
"chatApiRevoke": "Révoquer",
|
|
216
|
+
"chatApiNoKeys": "Aucune clé API pour l'instant.",
|
|
217
|
+
"chatApiName": "Nom",
|
|
218
|
+
"chatApiRole": "Rôle",
|
|
219
|
+
"chatApiCreate": "Créer une clé",
|
|
220
|
+
"chatApiWarn": "Une clé agit avec le rôle choisi. Une clé « manager » peut créer et annuler des documents via le chat — traitez-la comme un mot de passe.",
|
|
206
221
|
"publicTitle": "Accès public (mode démo)",
|
|
207
222
|
"publicActive": "Actif",
|
|
208
223
|
"publicActiveBody": "L'accès public est activé. N'importe qui peut utiliser l'application sans se connecter. Tous les visiteurs obtiennent des autorisations de niveau gestionnaire.",
|