@questpie/admin 3.4.0 → 3.5.0
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/client/blocks/block-renderer.d.mts +2 -2
- package/dist/client/builder/types/action-types.d.mts +2 -2
- package/dist/client/components/actions/action-dialog.mjs +7 -7
- package/dist/client/hooks/use-server-actions.mjs +1 -0
- package/dist/components/rich-text/rich-text-renderer.d.mts +2 -2
- package/dist/server/augmentation/actions.d.mts +2 -0
- package/dist/server/i18n/messages/cs.mjs +2 -0
- package/dist/server/i18n/messages/de.mjs +2 -0
- package/dist/server/i18n/messages/en.mjs +2 -0
- package/dist/server/i18n/messages/es.mjs +2 -0
- package/dist/server/i18n/messages/fr.mjs +2 -0
- package/dist/server/i18n/messages/pl.mjs +2 -0
- package/dist/server/i18n/messages/pt.mjs +2 -0
- package/dist/server/i18n/messages/sk.mjs +2 -0
- package/dist/server/modules/admin/collections/account.d.mts +50 -50
- package/dist/server/modules/admin/collections/admin-locks.d.mts +54 -54
- package/dist/server/modules/admin/collections/admin-preferences.d.mts +39 -39
- package/dist/server/modules/admin/collections/admin-saved-views.d.mts +47 -47
- package/dist/server/modules/admin/collections/apikey.d.mts +68 -68
- package/dist/server/modules/admin/collections/user.mjs +9 -9
- package/dist/server/modules/admin/routes/execute-action.d.mts +9 -9
- package/dist/server/modules/admin/routes/execute-action.mjs +3 -2
- package/dist/server/modules/admin/routes/preview.d.mts +11 -11
- package/dist/server/modules/admin/routes/reactive.d.mts +9 -9
- package/dist/server/modules/admin/routes/setup.d.mts +7 -7
- package/dist/server/modules/admin/routes/widget-data.d.mts +5 -5
- package/dist/server/modules/admin-preferences/collections/saved-views.d.mts +27 -27
- package/dist/server/modules/audit/.generated/module.d.mts +6 -6
- package/dist/server/modules/audit/collections/audit-log.d.mts +37 -37
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BlockContent } from "./types.mjs";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/client/blocks/block-renderer.d.ts
|
|
6
6
|
|
|
@@ -50,6 +50,6 @@ declare function BlockRenderer({
|
|
|
50
50
|
onBlockClick,
|
|
51
51
|
onBlockInsert,
|
|
52
52
|
className
|
|
53
|
-
}: BlockRendererProps):
|
|
53
|
+
}: BlockRendererProps): react_jsx_runtime19.JSX.Element | null;
|
|
54
54
|
//#endregion
|
|
55
55
|
export { BlockRenderer, BlockRendererProps };
|
|
@@ -130,8 +130,8 @@ interface ActionFormConfig<TItem = any> {
|
|
|
130
130
|
fields: Record<string, FieldInstance>;
|
|
131
131
|
/** Default values */
|
|
132
132
|
defaultValues?: Record<string, any>;
|
|
133
|
-
/** Submit handler */
|
|
134
|
-
onSubmit: (data: Record<string, any>, ctx: ActionContext<TItem>) => void | Promise<void>;
|
|
133
|
+
/** Submit handler — return a string to override the default success toast */
|
|
134
|
+
onSubmit: (data: Record<string, any>, ctx: ActionContext<TItem>) => void | string | Promise<void | string>;
|
|
135
135
|
/** Submit button label */
|
|
136
136
|
submitLabel?: I18nText;
|
|
137
137
|
/** Cancel button label */
|
|
@@ -82,14 +82,14 @@ function FormDialogContent({ action, ctx, onClose }) {
|
|
|
82
82
|
const handleSubmit = form.handleSubmit(async (data) => {
|
|
83
83
|
setIsSubmitting(true);
|
|
84
84
|
const submitPromise = async () => {
|
|
85
|
-
await config.onSubmit(data, ctx);
|
|
86
|
-
return
|
|
85
|
+
const result = await config.onSubmit(data, ctx);
|
|
86
|
+
return typeof result === "string" ? result : void 0;
|
|
87
87
|
};
|
|
88
88
|
toast.promise(submitPromise(), {
|
|
89
89
|
loading: t("toast.processing"),
|
|
90
|
-
success: () => {
|
|
90
|
+
success: (message) => {
|
|
91
91
|
onClose();
|
|
92
|
-
return t("toast.actionSuccess");
|
|
92
|
+
return message || t("toast.actionSuccess");
|
|
93
93
|
},
|
|
94
94
|
error: (error) => {
|
|
95
95
|
return error instanceof Error ? error.message : t("toast.actionFailed");
|
|
@@ -206,19 +206,19 @@ function CustomDialogContent({ action, ctx, onClose }) {
|
|
|
206
206
|
variant: "outline",
|
|
207
207
|
onClick: onClose,
|
|
208
208
|
className: "mt-4",
|
|
209
|
-
children: "
|
|
209
|
+
children: t("common.close")
|
|
210
210
|
})]
|
|
211
211
|
});
|
|
212
212
|
if (!Component) return /* @__PURE__ */ jsxs("div", {
|
|
213
213
|
className: "p-4 text-center",
|
|
214
214
|
children: [/* @__PURE__ */ jsx("p", {
|
|
215
215
|
className: "text-muted-foreground",
|
|
216
|
-
children: "
|
|
216
|
+
children: t("error.componentNotFound")
|
|
217
217
|
}), /* @__PURE__ */ jsx(Button, {
|
|
218
218
|
variant: "outline",
|
|
219
219
|
onClick: onClose,
|
|
220
220
|
className: "mt-4",
|
|
221
|
-
children: "
|
|
221
|
+
children: t("common.close")
|
|
222
222
|
})]
|
|
223
223
|
});
|
|
224
224
|
return /* @__PURE__ */ jsx(Component, {
|
|
@@ -108,6 +108,7 @@ function mapServerAction(serverAction, collection, fieldRegistry, client, locale
|
|
|
108
108
|
});
|
|
109
109
|
if (!response.success || response.result?.type === "error") throw new Error(getActionErrorMessage(response, t));
|
|
110
110
|
await applyServerActionEffects(response.result, ctx);
|
|
111
|
+
return response.result?.toast?.message;
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/rich-text/rich-text-renderer.d.ts
|
|
4
4
|
/**
|
|
@@ -98,6 +98,6 @@ declare function RichTextRenderer({
|
|
|
98
98
|
content,
|
|
99
99
|
styles: customStyles,
|
|
100
100
|
className
|
|
101
|
-
}: RichTextRendererProps):
|
|
101
|
+
}: RichTextRendererProps): react_jsx_runtime20.JSX.Element | null;
|
|
102
102
|
//#endregion
|
|
103
103
|
export { RichTextRenderer, RichTextStyles, TipTapDoc, TipTapNode };
|
|
@@ -89,6 +89,8 @@ interface ServerActionContext<TData = Record<string, unknown>> {
|
|
|
89
89
|
session?: unknown;
|
|
90
90
|
/** Current locale */
|
|
91
91
|
locale?: string;
|
|
92
|
+
/** Translation function for admin messages */
|
|
93
|
+
t: (key: string, params?: Record<string, unknown>) => string;
|
|
92
94
|
}
|
|
93
95
|
/**
|
|
94
96
|
* Action handler function type
|
|
@@ -109,6 +109,7 @@ var cs_default = {
|
|
|
109
109
|
"action.itemNotFound": "Položka nebyla nalezena",
|
|
110
110
|
"action.itemDuplicated": "Položka byla úspěšně duplikována",
|
|
111
111
|
"action.itemIdRequired.transition": "Pro akci přechodu je vyžadováno ID položky",
|
|
112
|
+
"action.itemIdRequired.resetPassword": "Pro resetování hesla je vyžadováno ID uživatele",
|
|
112
113
|
"action.targetStageRequired": "Pro akci přechodu je vyžadována cílová fáze",
|
|
113
114
|
"action.workflowUnsupported": "Workflow přechody nejsou pro tuto kolekci podporovány",
|
|
114
115
|
"action.unknownBuiltin": "Neznámá vestavěná akce: {{action}}",
|
|
@@ -301,6 +302,7 @@ var cs_default = {
|
|
|
301
302
|
"toast.error": "Chyba",
|
|
302
303
|
"toast.warning": "Varování",
|
|
303
304
|
"toast.info": "Informace",
|
|
305
|
+
"toast.processing": "Zpracovávám...",
|
|
304
306
|
"toast.saving": "Ukládání...",
|
|
305
307
|
"toast.saveFailed": "Nepodařilo se uložit změny",
|
|
306
308
|
"toast.saveSuccess": "Změny úspěšně uloženy",
|
|
@@ -107,6 +107,7 @@ var de_default = {
|
|
|
107
107
|
"action.itemNotFound": "Element nicht gefunden",
|
|
108
108
|
"action.itemDuplicated": "Element erfolgreich dupliziert",
|
|
109
109
|
"action.itemIdRequired.transition": "Element-ID ist für die Übergangsaktion erforderlich",
|
|
110
|
+
"action.itemIdRequired.resetPassword": "Benutzer-ID ist für das Zurücksetzen des Passworts erforderlich",
|
|
110
111
|
"action.targetStageRequired": "Zielstatus ist für die Übergangsaktion erforderlich",
|
|
111
112
|
"action.workflowUnsupported": "Workflow-Übergänge werden für diese Sammlung nicht unterstützt",
|
|
112
113
|
"action.unknownBuiltin": "Unbekannte integrierte Aktion: {{action}}",
|
|
@@ -299,6 +300,7 @@ var de_default = {
|
|
|
299
300
|
"toast.error": "Fehler",
|
|
300
301
|
"toast.warning": "Warnung",
|
|
301
302
|
"toast.info": "Info",
|
|
303
|
+
"toast.processing": "Wird verarbeitet...",
|
|
302
304
|
"toast.saving": "Wird gespeichert...",
|
|
303
305
|
"toast.saveFailed": "Fehler beim Speichern der Änderungen",
|
|
304
306
|
"toast.saveSuccess": "Änderungen erfolgreich gespeichert",
|
|
@@ -159,6 +159,7 @@ var en_default = {
|
|
|
159
159
|
"action.itemNotFound": "Item not found",
|
|
160
160
|
"action.itemDuplicated": "Item duplicated successfully",
|
|
161
161
|
"action.itemIdRequired.transition": "Item ID is required for transition action",
|
|
162
|
+
"action.itemIdRequired.resetPassword": "User ID is required for password reset",
|
|
162
163
|
"action.targetStageRequired": "Target stage is required for transition action",
|
|
163
164
|
"action.workflowUnsupported": "Workflow transitions are not supported for this collection",
|
|
164
165
|
"action.unknownBuiltin": "Unknown built-in action: {{action}}",
|
|
@@ -472,6 +473,7 @@ var en_default = {
|
|
|
472
473
|
"toast.error": "Error",
|
|
473
474
|
"toast.warning": "Warning",
|
|
474
475
|
"toast.info": "Info",
|
|
476
|
+
"toast.processing": "Processing...",
|
|
475
477
|
"toast.saving": "Saving...",
|
|
476
478
|
"toast.saveFailed": "Failed to save changes",
|
|
477
479
|
"toast.saveSuccess": "Changes saved successfully",
|
|
@@ -107,6 +107,7 @@ var es_default = {
|
|
|
107
107
|
"action.itemNotFound": "Elemento no encontrado",
|
|
108
108
|
"action.itemDuplicated": "Elemento duplicado correctamente",
|
|
109
109
|
"action.itemIdRequired.transition": "Se requiere el ID del elemento para la transición",
|
|
110
|
+
"action.itemIdRequired.resetPassword": "Se requiere el ID del usuario para restablecer la contraseña",
|
|
110
111
|
"action.targetStageRequired": "Se requiere la etapa de destino para la transición",
|
|
111
112
|
"action.workflowUnsupported": "Las transiciones de workflow no son compatibles con esta colección",
|
|
112
113
|
"action.unknownBuiltin": "Acción integrada desconocida: {{action}}",
|
|
@@ -299,6 +300,7 @@ var es_default = {
|
|
|
299
300
|
"toast.error": "Error",
|
|
300
301
|
"toast.warning": "Advertencia",
|
|
301
302
|
"toast.info": "Información",
|
|
303
|
+
"toast.processing": "Procesando...",
|
|
302
304
|
"toast.saving": "Guardando...",
|
|
303
305
|
"toast.saveFailed": "Error al guardar cambios",
|
|
304
306
|
"toast.saveSuccess": "Cambios guardados correctamente",
|
|
@@ -107,6 +107,7 @@ var fr_default = {
|
|
|
107
107
|
"action.itemNotFound": "Élément introuvable",
|
|
108
108
|
"action.itemDuplicated": "Élément dupliqué avec succès",
|
|
109
109
|
"action.itemIdRequired.transition": "L'ID de l'élément est requis pour l'action de transition",
|
|
110
|
+
"action.itemIdRequired.resetPassword": "L'ID de l'utilisateur est requis pour la réinitialisation du mot de passe",
|
|
110
111
|
"action.targetStageRequired": "L'étape cible est requise pour l'action de transition",
|
|
111
112
|
"action.workflowUnsupported": "Les transitions de workflow ne sont pas prises en charge pour cette collection",
|
|
112
113
|
"action.unknownBuiltin": "Action intégrée inconnue : {{action}}",
|
|
@@ -299,6 +300,7 @@ var fr_default = {
|
|
|
299
300
|
"toast.error": "Erreur",
|
|
300
301
|
"toast.warning": "Avertissement",
|
|
301
302
|
"toast.info": "Information",
|
|
303
|
+
"toast.processing": "Traitement...",
|
|
302
304
|
"toast.saving": "Enregistrement...",
|
|
303
305
|
"toast.saveFailed": "Échec de l'enregistrement des modifications",
|
|
304
306
|
"toast.saveSuccess": "Modifications enregistrées avec succès",
|
|
@@ -111,6 +111,7 @@ var pl_default = {
|
|
|
111
111
|
"action.itemNotFound": "Element nie został znaleziony",
|
|
112
112
|
"action.itemDuplicated": "Element został pomyślnie zduplikowany",
|
|
113
113
|
"action.itemIdRequired.transition": "ID elementu jest wymagane dla akcji przejścia",
|
|
114
|
+
"action.itemIdRequired.resetPassword": "ID użytkownika jest wymagane do zresetowania hasła",
|
|
114
115
|
"action.targetStageRequired": "Docelowy etap jest wymagany dla akcji przejścia",
|
|
115
116
|
"action.workflowUnsupported": "Przejścia workflow nie są obsługiwane dla tej kolekcji",
|
|
116
117
|
"action.unknownBuiltin": "Nieznana akcja wbudowana: {{action}}",
|
|
@@ -303,6 +304,7 @@ var pl_default = {
|
|
|
303
304
|
"toast.error": "Błąd",
|
|
304
305
|
"toast.warning": "Ostrzeżenie",
|
|
305
306
|
"toast.info": "Informacja",
|
|
307
|
+
"toast.processing": "Przetwarzanie...",
|
|
306
308
|
"toast.saving": "Zapisywanie...",
|
|
307
309
|
"toast.saveFailed": "Nie udało się zapisać zmian",
|
|
308
310
|
"toast.saveSuccess": "Zmiany zapisane pomyślnie",
|
|
@@ -107,6 +107,7 @@ var pt_default = {
|
|
|
107
107
|
"action.itemNotFound": "Item não encontrado",
|
|
108
108
|
"action.itemDuplicated": "Item duplicado com sucesso",
|
|
109
109
|
"action.itemIdRequired.transition": "O ID do item é obrigatório para a ação de transição",
|
|
110
|
+
"action.itemIdRequired.resetPassword": "O ID do usuário é obrigatório para a redefinição de senha",
|
|
110
111
|
"action.targetStageRequired": "O estágio de destino é obrigatório para a ação de transição",
|
|
111
112
|
"action.workflowUnsupported": "Transições de workflow não são suportadas para esta coleção",
|
|
112
113
|
"action.unknownBuiltin": "Ação integrada desconhecida: {{action}}",
|
|
@@ -299,6 +300,7 @@ var pt_default = {
|
|
|
299
300
|
"toast.error": "Erro",
|
|
300
301
|
"toast.warning": "Aviso",
|
|
301
302
|
"toast.info": "Informação",
|
|
303
|
+
"toast.processing": "Processando...",
|
|
302
304
|
"toast.saving": "Salvando...",
|
|
303
305
|
"toast.saveFailed": "Falha ao salvar alterações",
|
|
304
306
|
"toast.saveSuccess": "Alterações salvas com sucesso",
|
|
@@ -133,6 +133,7 @@ var sk_default = {
|
|
|
133
133
|
"action.itemNotFound": "Položka nebola nájdená",
|
|
134
134
|
"action.itemDuplicated": "Položka bola úspešne zduplikovaná",
|
|
135
135
|
"action.itemIdRequired.transition": "Pre akciu prechodu je povinné ID položky",
|
|
136
|
+
"action.itemIdRequired.resetPassword": "Pre resetovanie hesla je povinné ID používateľa",
|
|
136
137
|
"action.targetStageRequired": "Pre akciu prechodu je povinná cieľová fáza",
|
|
137
138
|
"action.workflowUnsupported": "Workflow prechody nie sú pre túto kolekciu podporované",
|
|
138
139
|
"action.unknownBuiltin": "Neznáma vstavaná akcia: {{action}}",
|
|
@@ -442,6 +443,7 @@ var sk_default = {
|
|
|
442
443
|
"toast.error": "Chyba",
|
|
443
444
|
"toast.warning": "Upozornenie",
|
|
444
445
|
"toast.info": "Informácia",
|
|
446
|
+
"toast.processing": "Spracovávam...",
|
|
445
447
|
"toast.saving": "Ukladám...",
|
|
446
448
|
"toast.saveFailed": "Nepodarilo sa uložiť zmeny",
|
|
447
449
|
"toast.saveSuccess": "Zmeny úspešne uložené",
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
1
|
+
import * as questpie_shared23 from "questpie/shared";
|
|
2
|
+
import * as questpie152 from "questpie";
|
|
3
|
+
import * as questpie_src_server_modules_core_fields_email_js3 from "questpie/src/server/modules/core/fields/email.js";
|
|
4
|
+
import * as questpie_src_server_modules_core_fields_json_js3 from "questpie/src/server/modules/core/fields/json.js";
|
|
5
|
+
import * as drizzle_orm_pg_core32 from "drizzle-orm/pg-core";
|
|
6
|
+
import * as drizzle_orm15 from "drizzle-orm";
|
|
7
7
|
|
|
8
8
|
//#region src/server/modules/admin/collections/account.d.ts
|
|
9
|
-
declare const _default:
|
|
10
|
-
readonly text: typeof
|
|
11
|
-
readonly textarea: typeof
|
|
12
|
-
readonly email: typeof
|
|
13
|
-
readonly url: typeof
|
|
14
|
-
readonly number: typeof
|
|
15
|
-
readonly boolean: typeof
|
|
16
|
-
readonly date: typeof
|
|
17
|
-
readonly datetime: typeof
|
|
18
|
-
readonly time: typeof
|
|
19
|
-
readonly select: typeof
|
|
20
|
-
readonly upload: typeof
|
|
21
|
-
readonly relation: typeof
|
|
22
|
-
readonly object: typeof
|
|
23
|
-
readonly json: typeof
|
|
24
|
-
readonly from: typeof
|
|
9
|
+
declare const _default: questpie152.CollectionBuilder<questpie_shared23.Override<questpie152.EmptyCollectionState<"account", undefined, {
|
|
10
|
+
readonly text: typeof questpie152.text;
|
|
11
|
+
readonly textarea: typeof questpie152.textarea;
|
|
12
|
+
readonly email: typeof questpie_src_server_modules_core_fields_email_js3.email;
|
|
13
|
+
readonly url: typeof questpie152.url;
|
|
14
|
+
readonly number: typeof questpie152.number;
|
|
15
|
+
readonly boolean: typeof questpie152.boolean;
|
|
16
|
+
readonly date: typeof questpie152.date;
|
|
17
|
+
readonly datetime: typeof questpie152.datetime;
|
|
18
|
+
readonly time: typeof questpie152.time;
|
|
19
|
+
readonly select: typeof questpie152.select;
|
|
20
|
+
readonly upload: typeof questpie152.upload;
|
|
21
|
+
readonly relation: typeof questpie152.relation;
|
|
22
|
+
readonly object: typeof questpie152.object;
|
|
23
|
+
readonly json: typeof questpie_src_server_modules_core_fields_json_js3.json;
|
|
24
|
+
readonly from: typeof questpie152.from;
|
|
25
25
|
}>, {
|
|
26
26
|
name: "account";
|
|
27
27
|
fields: Record<string, any> & {
|
|
28
|
-
readonly userId:
|
|
29
|
-
readonly accountId:
|
|
30
|
-
readonly providerId:
|
|
31
|
-
readonly accessToken:
|
|
32
|
-
readonly refreshToken:
|
|
33
|
-
readonly accessTokenExpiresAt:
|
|
34
|
-
readonly refreshTokenExpiresAt:
|
|
35
|
-
readonly scope:
|
|
36
|
-
readonly idToken:
|
|
37
|
-
readonly password:
|
|
28
|
+
readonly userId: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
29
|
+
readonly accountId: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
30
|
+
readonly providerId: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
31
|
+
readonly accessToken: drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>;
|
|
32
|
+
readonly refreshToken: drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>;
|
|
33
|
+
readonly accessTokenExpiresAt: drizzle_orm_pg_core32.PgTimestampBuilder;
|
|
34
|
+
readonly refreshTokenExpiresAt: drizzle_orm_pg_core32.PgTimestampBuilder;
|
|
35
|
+
readonly scope: drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>;
|
|
36
|
+
readonly idToken: drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>;
|
|
37
|
+
readonly password: drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>;
|
|
38
38
|
};
|
|
39
39
|
virtuals: undefined;
|
|
40
|
-
relations: Record<string,
|
|
40
|
+
relations: Record<string, questpie152.RelationConfig>;
|
|
41
41
|
indexes: Record<string, any>;
|
|
42
42
|
title: "providerId";
|
|
43
|
-
options:
|
|
43
|
+
options: questpie152.CollectionOptions & {
|
|
44
44
|
timestamps: true;
|
|
45
45
|
};
|
|
46
46
|
hooks: Record<string, any>;
|
|
47
47
|
access: Record<string, any>;
|
|
48
48
|
searchable: undefined;
|
|
49
49
|
fieldDefinitions: {
|
|
50
|
-
readonly userId:
|
|
50
|
+
readonly userId: questpie152.FieldWithMethods<Omit<questpie152.TextFieldState, "notNull" | "column"> & {
|
|
51
51
|
notNull: true;
|
|
52
|
-
column:
|
|
53
|
-
},
|
|
54
|
-
readonly accountId:
|
|
52
|
+
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
53
|
+
}, questpie152.TextFieldMethods>;
|
|
54
|
+
readonly accountId: questpie152.FieldWithMethods<Omit<questpie152.TextFieldState, "notNull" | "column"> & {
|
|
55
55
|
notNull: true;
|
|
56
|
-
column:
|
|
57
|
-
},
|
|
58
|
-
readonly providerId:
|
|
56
|
+
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
57
|
+
}, questpie152.TextFieldMethods>;
|
|
58
|
+
readonly providerId: questpie152.FieldWithMethods<Omit<questpie152.TextFieldState, "notNull" | "column"> & {
|
|
59
59
|
notNull: true;
|
|
60
|
-
column:
|
|
61
|
-
},
|
|
62
|
-
readonly accessToken:
|
|
63
|
-
readonly refreshToken:
|
|
64
|
-
readonly accessTokenExpiresAt:
|
|
65
|
-
readonly refreshTokenExpiresAt:
|
|
66
|
-
readonly scope:
|
|
67
|
-
readonly idToken:
|
|
68
|
-
readonly password:
|
|
60
|
+
column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
|
|
61
|
+
}, questpie152.TextFieldMethods>;
|
|
62
|
+
readonly accessToken: questpie152.FieldWithMethods<questpie152.TextFieldState, questpie152.TextFieldMethods>;
|
|
63
|
+
readonly refreshToken: questpie152.FieldWithMethods<questpie152.TextFieldState, questpie152.TextFieldMethods>;
|
|
64
|
+
readonly accessTokenExpiresAt: questpie152.FieldWithMethods<questpie152.DatetimeFieldState, questpie152.DatetimeFieldMethods>;
|
|
65
|
+
readonly refreshTokenExpiresAt: questpie152.FieldWithMethods<questpie152.DatetimeFieldState, questpie152.DatetimeFieldMethods>;
|
|
66
|
+
readonly scope: questpie152.FieldWithMethods<questpie152.TextFieldState, questpie152.TextFieldMethods>;
|
|
67
|
+
readonly idToken: questpie152.FieldWithMethods<questpie152.TextFieldState, questpie152.TextFieldMethods>;
|
|
68
|
+
readonly password: questpie152.FieldWithMethods<questpie152.TextFieldState, questpie152.TextFieldMethods>;
|
|
69
69
|
};
|
|
70
70
|
upload: undefined;
|
|
71
71
|
output: {};
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
1
|
+
import * as questpie_shared24 from "questpie/shared";
|
|
2
|
+
import * as questpie199 from "questpie";
|
|
3
|
+
import * as questpie_src_server_modules_core_fields_email_js4 from "questpie/src/server/modules/core/fields/email.js";
|
|
4
|
+
import * as questpie_src_server_modules_core_fields_json_js4 from "questpie/src/server/modules/core/fields/json.js";
|
|
5
|
+
import * as drizzle_orm_pg_core45 from "drizzle-orm/pg-core";
|
|
6
|
+
import * as drizzle_orm21 from "drizzle-orm";
|
|
7
7
|
|
|
8
8
|
//#region src/server/modules/admin/collections/admin-locks.d.ts
|
|
9
|
-
declare const _default:
|
|
10
|
-
readonly text: typeof
|
|
11
|
-
readonly textarea: typeof
|
|
12
|
-
readonly email: typeof
|
|
13
|
-
readonly url: typeof
|
|
14
|
-
readonly number: typeof
|
|
15
|
-
readonly boolean: typeof
|
|
16
|
-
readonly date: typeof
|
|
17
|
-
readonly datetime: typeof
|
|
18
|
-
readonly time: typeof
|
|
19
|
-
readonly select: typeof
|
|
20
|
-
readonly upload: typeof
|
|
21
|
-
readonly relation: typeof
|
|
22
|
-
readonly object: typeof
|
|
23
|
-
readonly json: typeof
|
|
24
|
-
readonly from: typeof
|
|
9
|
+
declare const _default: questpie199.CollectionBuilder<questpie_shared24.Override<questpie199.EmptyCollectionState<"admin_locks", undefined, {
|
|
10
|
+
readonly text: typeof questpie199.text;
|
|
11
|
+
readonly textarea: typeof questpie199.textarea;
|
|
12
|
+
readonly email: typeof questpie_src_server_modules_core_fields_email_js4.email;
|
|
13
|
+
readonly url: typeof questpie199.url;
|
|
14
|
+
readonly number: typeof questpie199.number;
|
|
15
|
+
readonly boolean: typeof questpie199.boolean;
|
|
16
|
+
readonly date: typeof questpie199.date;
|
|
17
|
+
readonly datetime: typeof questpie199.datetime;
|
|
18
|
+
readonly time: typeof questpie199.time;
|
|
19
|
+
readonly select: typeof questpie199.select;
|
|
20
|
+
readonly upload: typeof questpie199.upload;
|
|
21
|
+
readonly relation: typeof questpie199.relation;
|
|
22
|
+
readonly object: typeof questpie199.object;
|
|
23
|
+
readonly json: typeof questpie_src_server_modules_core_fields_json_js4.json;
|
|
24
|
+
readonly from: typeof questpie199.from;
|
|
25
25
|
}>, {
|
|
26
26
|
name: "admin_locks";
|
|
27
27
|
fields: Record<string, any> & {
|
|
28
|
-
readonly resourceType:
|
|
29
|
-
readonly resource:
|
|
30
|
-
readonly resourceId:
|
|
31
|
-
readonly user:
|
|
32
|
-
readonly sessionId:
|
|
33
|
-
readonly expiresAt:
|
|
28
|
+
readonly resourceType: drizzle_orm21.NotNull<drizzle_orm_pg_core45.PgVarcharBuilder<[string, ...string[]]>>;
|
|
29
|
+
readonly resource: drizzle_orm21.NotNull<drizzle_orm_pg_core45.PgVarcharBuilder<[string, ...string[]]>>;
|
|
30
|
+
readonly resourceId: drizzle_orm21.NotNull<drizzle_orm_pg_core45.PgVarcharBuilder<[string, ...string[]]>>;
|
|
31
|
+
readonly user: drizzle_orm21.NotNull<drizzle_orm_pg_core45.PgVarcharBuilder<[string, ...string[]]>>;
|
|
32
|
+
readonly sessionId: drizzle_orm21.NotNull<drizzle_orm_pg_core45.PgVarcharBuilder<[string, ...string[]]>>;
|
|
33
|
+
readonly expiresAt: drizzle_orm21.NotNull<drizzle_orm_pg_core45.PgDateStringBuilder>;
|
|
34
34
|
};
|
|
35
35
|
virtuals: undefined;
|
|
36
|
-
relations: Record<string,
|
|
36
|
+
relations: Record<string, questpie199.RelationConfig>;
|
|
37
37
|
indexes: Record<string, any>;
|
|
38
38
|
title: undefined;
|
|
39
|
-
options:
|
|
39
|
+
options: questpie199.CollectionOptions & {
|
|
40
40
|
timestamps: true;
|
|
41
41
|
};
|
|
42
42
|
hooks: Record<string, any>;
|
|
43
43
|
access: Record<string, any>;
|
|
44
44
|
searchable: undefined;
|
|
45
45
|
fieldDefinitions: {
|
|
46
|
-
readonly resourceType:
|
|
46
|
+
readonly resourceType: questpie199.FieldWithMethods<Omit<questpie199.SelectFieldState, "notNull" | "column"> & {
|
|
47
47
|
notNull: true;
|
|
48
|
-
column:
|
|
48
|
+
column: drizzle_orm21.NotNull<drizzle_orm_pg_core45.PgVarcharBuilder<[string, ...string[]]>>;
|
|
49
49
|
} & {
|
|
50
|
-
label:
|
|
51
|
-
},
|
|
52
|
-
readonly resource:
|
|
50
|
+
label: questpie_shared24.I18nText;
|
|
51
|
+
}, questpie199.SelectFieldMethods>;
|
|
52
|
+
readonly resource: questpie199.FieldWithMethods<Omit<questpie199.TextFieldState, "notNull" | "column"> & {
|
|
53
53
|
notNull: true;
|
|
54
|
-
column:
|
|
54
|
+
column: drizzle_orm21.NotNull<drizzle_orm_pg_core45.PgVarcharBuilder<[string, ...string[]]>>;
|
|
55
55
|
} & {
|
|
56
|
-
label:
|
|
57
|
-
},
|
|
58
|
-
readonly resourceId:
|
|
56
|
+
label: questpie_shared24.I18nText;
|
|
57
|
+
}, questpie199.TextFieldMethods>;
|
|
58
|
+
readonly resourceId: questpie199.FieldWithMethods<Omit<questpie199.TextFieldState, "notNull" | "column"> & {
|
|
59
59
|
notNull: true;
|
|
60
|
-
column:
|
|
60
|
+
column: drizzle_orm21.NotNull<drizzle_orm_pg_core45.PgVarcharBuilder<[string, ...string[]]>>;
|
|
61
61
|
} & {
|
|
62
|
-
label:
|
|
63
|
-
},
|
|
64
|
-
readonly user:
|
|
62
|
+
label: questpie_shared24.I18nText;
|
|
63
|
+
}, questpie199.TextFieldMethods>;
|
|
64
|
+
readonly user: questpie199.FieldWithMethods<Omit<questpie199.RelationFieldState<"user">, "notNull" | "column"> & {
|
|
65
65
|
notNull: true;
|
|
66
|
-
column:
|
|
66
|
+
column: drizzle_orm21.NotNull<drizzle_orm_pg_core45.PgVarcharBuilder<[string, ...string[]]>>;
|
|
67
67
|
} & {
|
|
68
|
-
label:
|
|
69
|
-
},
|
|
70
|
-
readonly sessionId:
|
|
68
|
+
label: questpie_shared24.I18nText;
|
|
69
|
+
}, questpie199.RelationFieldMethods>;
|
|
70
|
+
readonly sessionId: questpie199.FieldWithMethods<Omit<questpie199.TextFieldState, "notNull" | "column"> & {
|
|
71
71
|
notNull: true;
|
|
72
|
-
column:
|
|
72
|
+
column: drizzle_orm21.NotNull<drizzle_orm_pg_core45.PgVarcharBuilder<[string, ...string[]]>>;
|
|
73
73
|
} & {
|
|
74
|
-
label:
|
|
75
|
-
},
|
|
76
|
-
readonly expiresAt:
|
|
74
|
+
label: questpie_shared24.I18nText;
|
|
75
|
+
}, questpie199.TextFieldMethods>;
|
|
76
|
+
readonly expiresAt: questpie199.FieldWithMethods<Omit<questpie199.DateFieldState, "notNull" | "column"> & {
|
|
77
77
|
notNull: true;
|
|
78
|
-
column:
|
|
78
|
+
column: drizzle_orm21.NotNull<drizzle_orm_pg_core45.PgDateStringBuilder>;
|
|
79
79
|
} & {
|
|
80
|
-
label:
|
|
81
|
-
},
|
|
80
|
+
label: questpie_shared24.I18nText;
|
|
81
|
+
}, questpie199.DateFieldMethods>;
|
|
82
82
|
};
|
|
83
83
|
upload: undefined;
|
|
84
84
|
output: {};
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
1
|
+
import * as questpie_shared31 from "questpie/shared";
|
|
2
|
+
import * as questpie234 from "questpie";
|
|
3
|
+
import * as questpie_src_server_modules_core_fields_email_js5 from "questpie/src/server/modules/core/fields/email.js";
|
|
4
|
+
import * as questpie_src_server_modules_core_fields_json_js5 from "questpie/src/server/modules/core/fields/json.js";
|
|
5
|
+
import * as drizzle_orm_pg_core57 from "drizzle-orm/pg-core";
|
|
6
|
+
import * as drizzle_orm33 from "drizzle-orm";
|
|
7
7
|
|
|
8
8
|
//#region src/server/modules/admin/collections/admin-preferences.d.ts
|
|
9
|
-
declare const _default:
|
|
10
|
-
readonly text: typeof
|
|
11
|
-
readonly textarea: typeof
|
|
12
|
-
readonly email: typeof
|
|
13
|
-
readonly url: typeof
|
|
14
|
-
readonly number: typeof
|
|
15
|
-
readonly boolean: typeof
|
|
16
|
-
readonly date: typeof
|
|
17
|
-
readonly datetime: typeof
|
|
18
|
-
readonly time: typeof
|
|
19
|
-
readonly select: typeof
|
|
20
|
-
readonly upload: typeof
|
|
21
|
-
readonly relation: typeof
|
|
22
|
-
readonly object: typeof
|
|
23
|
-
readonly json: typeof
|
|
24
|
-
readonly from: typeof
|
|
9
|
+
declare const _default: questpie234.CollectionBuilder<questpie_shared31.Override<questpie234.EmptyCollectionState<"admin_preferences", undefined, {
|
|
10
|
+
readonly text: typeof questpie234.text;
|
|
11
|
+
readonly textarea: typeof questpie234.textarea;
|
|
12
|
+
readonly email: typeof questpie_src_server_modules_core_fields_email_js5.email;
|
|
13
|
+
readonly url: typeof questpie234.url;
|
|
14
|
+
readonly number: typeof questpie234.number;
|
|
15
|
+
readonly boolean: typeof questpie234.boolean;
|
|
16
|
+
readonly date: typeof questpie234.date;
|
|
17
|
+
readonly datetime: typeof questpie234.datetime;
|
|
18
|
+
readonly time: typeof questpie234.time;
|
|
19
|
+
readonly select: typeof questpie234.select;
|
|
20
|
+
readonly upload: typeof questpie234.upload;
|
|
21
|
+
readonly relation: typeof questpie234.relation;
|
|
22
|
+
readonly object: typeof questpie234.object;
|
|
23
|
+
readonly json: typeof questpie_src_server_modules_core_fields_json_js5.json;
|
|
24
|
+
readonly from: typeof questpie234.from;
|
|
25
25
|
}>, {
|
|
26
26
|
name: "admin_preferences";
|
|
27
27
|
fields: Record<string, any> & {
|
|
28
|
-
readonly userId:
|
|
29
|
-
readonly key:
|
|
30
|
-
readonly value:
|
|
28
|
+
readonly userId: drizzle_orm33.NotNull<drizzle_orm_pg_core57.PgVarcharBuilder<[string, ...string[]]>>;
|
|
29
|
+
readonly key: drizzle_orm33.NotNull<drizzle_orm_pg_core57.PgVarcharBuilder<[string, ...string[]]>>;
|
|
30
|
+
readonly value: drizzle_orm33.NotNull<drizzle_orm_pg_core57.PgJsonbBuilder>;
|
|
31
31
|
};
|
|
32
32
|
virtuals: undefined;
|
|
33
|
-
relations: Record<string,
|
|
34
|
-
indexes: Record<string, any> &
|
|
33
|
+
relations: Record<string, questpie234.RelationConfig>;
|
|
34
|
+
indexes: Record<string, any> & drizzle_orm_pg_core57.IndexBuilder[];
|
|
35
35
|
title: undefined;
|
|
36
|
-
options:
|
|
36
|
+
options: questpie234.CollectionOptions & {
|
|
37
37
|
timestamps: true;
|
|
38
38
|
};
|
|
39
39
|
hooks: Record<string, any>;
|
|
40
40
|
access: Record<string, any>;
|
|
41
41
|
searchable: undefined;
|
|
42
42
|
fieldDefinitions: {
|
|
43
|
-
readonly userId:
|
|
43
|
+
readonly userId: questpie234.FieldWithMethods<Omit<questpie234.TextFieldState, "notNull" | "column"> & {
|
|
44
44
|
notNull: true;
|
|
45
|
-
column:
|
|
45
|
+
column: drizzle_orm33.NotNull<drizzle_orm_pg_core57.PgVarcharBuilder<[string, ...string[]]>>;
|
|
46
46
|
} & {
|
|
47
|
-
label:
|
|
48
|
-
},
|
|
49
|
-
readonly key:
|
|
47
|
+
label: questpie_shared31.I18nText;
|
|
48
|
+
}, questpie234.TextFieldMethods>;
|
|
49
|
+
readonly key: questpie234.FieldWithMethods<Omit<questpie234.TextFieldState, "notNull" | "column"> & {
|
|
50
50
|
notNull: true;
|
|
51
|
-
column:
|
|
51
|
+
column: drizzle_orm33.NotNull<drizzle_orm_pg_core57.PgVarcharBuilder<[string, ...string[]]>>;
|
|
52
52
|
} & {
|
|
53
|
-
label:
|
|
54
|
-
},
|
|
55
|
-
readonly value:
|
|
53
|
+
label: questpie_shared31.I18nText;
|
|
54
|
+
}, questpie234.TextFieldMethods>;
|
|
55
|
+
readonly value: questpie234.Field<Omit<questpie234.JsonFieldState, "notNull" | "column"> & {
|
|
56
56
|
notNull: true;
|
|
57
|
-
column:
|
|
57
|
+
column: drizzle_orm33.NotNull<drizzle_orm_pg_core57.PgJsonbBuilder>;
|
|
58
58
|
} & {
|
|
59
|
-
label:
|
|
59
|
+
label: questpie_shared31.I18nText;
|
|
60
60
|
}>;
|
|
61
61
|
};
|
|
62
62
|
upload: undefined;
|