@questpie/admin 3.0.7 → 3.0.9

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.
Files changed (32) hide show
  1. package/dist/client/components/actions/action-button.mjs +2 -1
  2. package/dist/client/hooks/use-collection.mjs +1 -1
  3. package/dist/client/hooks/use-server-actions.mjs +4 -3
  4. package/dist/client/preview/block-scope-context.d.mts +2 -2
  5. package/dist/client/preview/preview-banner.d.mts +2 -2
  6. package/dist/client/preview/preview-field.d.mts +4 -4
  7. package/dist/client/views/auth/accept-invite-form.d.mts +2 -2
  8. package/dist/client/views/auth/auth-layout.d.mts +3 -3
  9. package/dist/client/views/collection/form-view.mjs +36 -8
  10. package/dist/client/views/pages/forgot-password-page.d.mts +2 -2
  11. package/dist/client/views/pages/invite-page.d.mts +2 -2
  12. package/dist/client/views/pages/login-page.d.mts +2 -2
  13. package/dist/client/views/pages/reset-password-page.d.mts +2 -2
  14. package/dist/components/rich-text/rich-text-renderer.d.mts +2 -2
  15. package/dist/server/modules/admin/collections/account.d.mts +50 -50
  16. package/dist/server/modules/admin/collections/admin-locks.d.mts +54 -54
  17. package/dist/server/modules/admin/collections/admin-preferences.d.mts +39 -39
  18. package/dist/server/modules/admin/collections/admin-saved-views.d.mts +47 -47
  19. package/dist/server/modules/admin/collections/apikey.d.mts +68 -68
  20. package/dist/server/modules/admin/collections/assets.d.mts +20 -20
  21. package/dist/server/modules/admin/collections/session.d.mts +42 -42
  22. package/dist/server/modules/admin/collections/user.d.mts +32 -32
  23. package/dist/server/modules/admin/collections/verification.d.mts +32 -32
  24. package/dist/server/modules/admin/index.d.mts +1 -1
  25. package/dist/server/modules/admin/routes/admin-config.d.mts +2 -2
  26. package/dist/server/modules/admin/routes/execute-action.d.mts +9 -9
  27. package/dist/server/modules/admin/routes/preview.d.mts +11 -11
  28. package/dist/server/modules/admin/routes/reactive.d.mts +9 -9
  29. package/dist/server/modules/admin/routes/setup.d.mts +7 -7
  30. package/dist/server/modules/admin/routes/widget-data.d.mts +5 -5
  31. package/dist/server/modules/admin-preferences/collections/saved-views.d.mts +27 -27
  32. package/package.json +3 -3
@@ -139,7 +139,8 @@ function ActionButton({ action, collection, item, items, helpers, size = "defaul
139
139
  if (result?.effects?.invalidate === true) await helpers.invalidateAll();
140
140
  else if (Array.isArray(result?.effects?.invalidate)) for (const collectionName of result.effects.invalidate) await helpers.invalidateCollection(collectionName);
141
141
  if (result?.effects?.redirect) helpers.navigate(result.effects.redirect);
142
- if (result?.type === "redirect" && result.url) helpers.navigate(result.url);
142
+ if (result?.type === "redirect" && result.url) if (result.external) window.open(result.url, "_blank");
143
+ else helpers.navigate(result.url);
143
144
  if (result?.effects?.closeModal) helpers.closeDialog();
144
145
  } catch (error) {
145
146
  helpers.toast.error(error instanceof Error ? error.message : t("error.actionFailed"));
@@ -496,7 +496,7 @@ function useCollectionDelete(collection, mutationOptions) {
496
496
  t6 = (data_0, error, variables_0, context_0) => {
497
497
  queryClient.invalidateQueries({ queryKey: listQueryKey });
498
498
  queryClient.invalidateQueries({ queryKey: countQueryKey });
499
- queryClient.invalidateQueries({ queryKey: itemQueryKey });
499
+ queryClient.removeQueries({ queryKey: itemQueryKey });
500
500
  (mutationOptions?.onSettled)?.(data_0, error, variables_0, context_0);
501
501
  };
502
502
  $[16] = countQueryKey;
@@ -24,7 +24,8 @@ async function applyServerActionEffects(result, ctx) {
24
24
  if (result.effects?.invalidate === true) await ctx.helpers.invalidateAll();
25
25
  else if (Array.isArray(result.effects?.invalidate)) for (const col of result.effects.invalidate) await ctx.helpers.invalidateCollection(col);
26
26
  if (result.effects?.redirect) ctx.helpers.navigate(result.effects.redirect);
27
- if (result.type === "redirect" && result.url) ctx.helpers.navigate(result.url);
27
+ if (result.type === "redirect" && result.url) if (result.external) window.open(result.url, "_blank");
28
+ else ctx.helpers.navigate(result.url);
28
29
  }
29
30
  function buildServerFormFields(rawFields, fieldRegistry) {
30
31
  if (!rawFields || !fieldRegistry) return {};
@@ -206,8 +207,8 @@ function mergeServerActions(localActions, serverActions) {
206
207
  primary: headerActions,
207
208
  secondary: headerSecondary
208
209
  },
209
- row: rowActions,
210
- bulk: bulkActions
210
+ ..."row" in localActions || rowActions.length > 0 ? { row: rowActions } : {},
211
+ ..."bulk" in localActions || bulkActions.length > 0 ? { bulk: bulkActions } : {}
211
212
  };
212
213
  }
213
214
 
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import * as react_jsx_runtime21 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime24 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/client/preview/block-scope-context.d.ts
5
5
 
@@ -35,7 +35,7 @@ declare function BlockScopeProvider({
35
35
  blockId,
36
36
  basePath,
37
37
  children
38
- }: BlockScopeProviderProps): react_jsx_runtime21.JSX.Element;
38
+ }: BlockScopeProviderProps): react_jsx_runtime24.JSX.Element;
39
39
  /**
40
40
  * Get current block scope context.
41
41
  *
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime22 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime20 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/client/preview/preview-banner.d.ts
4
4
 
@@ -40,6 +40,6 @@ declare function PreviewBanner({
40
40
  isPreviewMode,
41
41
  className,
42
42
  exitPreviewUrl
43
- }: PreviewBannerProps): react_jsx_runtime22.JSX.Element | null;
43
+ }: PreviewBannerProps): react_jsx_runtime20.JSX.Element | null;
44
44
  //#endregion
45
45
  export { PreviewBanner, PreviewBannerProps };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import * as react_jsx_runtime23 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime21 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/client/preview/preview-field.d.ts
5
5
 
@@ -45,7 +45,7 @@ declare function PreviewProvider({
45
45
  fieldType?: "regular" | "block" | "relation";
46
46
  }) => void;
47
47
  children: React.ReactNode;
48
- }): react_jsx_runtime23.JSX.Element;
48
+ }): react_jsx_runtime21.JSX.Element;
49
49
  /**
50
50
  * Hook to access preview context.
51
51
  */
@@ -81,7 +81,7 @@ declare function PreviewField({
81
81
  as: Component,
82
82
  className,
83
83
  onClick
84
- }: PreviewFieldProps): react_jsx_runtime23.JSX.Element;
84
+ }: PreviewFieldProps): react_jsx_runtime21.JSX.Element;
85
85
  /**
86
86
  * Standalone PreviewField that works without context.
87
87
  * Useful when you can't use PreviewProvider.
@@ -102,6 +102,6 @@ declare function StandalonePreviewField({
102
102
  blockId?: string;
103
103
  fieldType?: "regular" | "block" | "relation";
104
104
  }) => void;
105
- }): react_jsx_runtime23.JSX.Element;
105
+ }): react_jsx_runtime21.JSX.Element;
106
106
  //#endregion
107
107
  export { PreviewField, PreviewFieldProps, PreviewProvider, StandalonePreviewField, usePreviewContext };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime2 from "react/jsx-runtime";
2
2
 
3
3
  //#region src/client/views/auth/accept-invite-form.d.ts
4
4
  /**
@@ -67,6 +67,6 @@ declare function AcceptInviteForm({
67
67
  className,
68
68
  error,
69
69
  minPasswordLength
70
- }: AcceptInviteFormProps): react_jsx_runtime0.JSX.Element;
70
+ }: AcceptInviteFormProps): react_jsx_runtime2.JSX.Element;
71
71
  //#endregion
72
72
  export { AcceptInviteForm };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import * as react_jsx_runtime1 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/client/views/auth/auth-layout.d.ts
5
5
 
@@ -26,7 +26,7 @@ declare function AuthDefaultLogo({
26
26
  brandName
27
27
  }: {
28
28
  brandName: string;
29
- }): react_jsx_runtime1.JSX.Element;
29
+ }): react_jsx_runtime0.JSX.Element;
30
30
  /**
31
31
  * Minimal split layout for authentication pages (login, register, forgot password, etc.)
32
32
  *
@@ -50,6 +50,6 @@ declare function AuthDefaultLogo({
50
50
  * </AuthLayout>
51
51
  * ```
52
52
  */
53
- declare function AuthLayout(props: AuthLayoutProps): react_jsx_runtime1.JSX.Element;
53
+ declare function AuthLayout(props: AuthLayoutProps): react_jsx_runtime0.JSX.Element;
54
54
  //#endregion
55
55
  export { AuthDefaultLogo, AuthLayout, AuthLayoutProps };
@@ -958,12 +958,12 @@ function FormView({ collection, id, config, viewConfig, navigate, basePath = "/a
958
958
  break;
959
959
  }
960
960
  setActionLoading(true);
961
- toast.promise(deleteMutation.mutateAsync(itemId_1).finally(() => {
961
+ toast.promise(deleteMutation.mutateAsync({ id: itemId_1 }).finally(() => {
962
962
  setActionLoading(false);
963
963
  }), {
964
964
  loading: t("toast.deleting"),
965
965
  success: () => {
966
- navigate(`${basePath}/collections/${collection}`);
966
+ storeNavigate(`${storeBasePath || basePath}/collections/${collection}`);
967
967
  return t("toast.deleteSuccess");
968
968
  },
969
969
  error: (err_2) => err_2.message || t("toast.deleteFailed")
@@ -979,15 +979,15 @@ function FormView({ collection, id, config, viewConfig, navigate, basePath = "/a
979
979
  setActionLoading(true);
980
980
  const apiPromise = async () => {
981
981
  const url = `${storeBasePath}/${collection}/${endpoint}`;
982
- const response = await fetch(url, {
982
+ const response_0 = await fetch(url, {
983
983
  method,
984
984
  headers: { "Content-Type": "application/json" },
985
985
  body
986
986
  });
987
- if (!response.ok) {
987
+ if (!response_0.ok) {
988
988
  let errorBody = {};
989
989
  try {
990
- errorBody = await response.json();
990
+ errorBody = await response_0.json();
991
991
  } catch (_parseErr) {}
992
992
  let errorMessage;
993
993
  if (errorBody.message) if (typeof errorBody.message === "string") errorMessage = errorBody.message;
@@ -995,7 +995,7 @@ function FormView({ collection, id, config, viewConfig, navigate, basePath = "/a
995
995
  else errorMessage = t("toast.actionFailed");
996
996
  throw new Error(errorMessage);
997
997
  }
998
- return response.json();
998
+ return response_0.json();
999
999
  };
1000
1000
  const p = apiPromise();
1001
1001
  p.then(() => setActionLoading(false), () => setActionLoading(false));
@@ -1021,6 +1021,34 @@ function FormView({ collection, id, config, viewConfig, navigate, basePath = "/a
1021
1021
  }
1022
1022
  break;
1023
1023
  }
1024
+ case "server": {
1025
+ const serverHandler = handler;
1026
+ setActionLoading(true);
1027
+ try {
1028
+ const routes = client?.routes;
1029
+ if (!routes?.executeAction) throw new Error(t("error.serverActionFailed"));
1030
+ const response = await routes.executeAction({
1031
+ collection: serverHandler.collection,
1032
+ actionId: serverHandler.actionId,
1033
+ itemId: transformedItem?.id || id
1034
+ });
1035
+ if (!response?.success || response.result?.type === "error") throw new Error(response?.error ?? response?.result?.toast?.message ?? t("error.serverActionFailed"));
1036
+ const result_2 = response.result;
1037
+ if (result_2?.toast?.message) toast.success(result_2.toast.message);
1038
+ else toast.success(t("toast.actionSuccess"));
1039
+ if (result_2?.effects?.invalidate === true) await actionHelpers.invalidateAll();
1040
+ else if (Array.isArray(result_2?.effects?.invalidate)) for (const col_1 of result_2.effects.invalidate) await actionHelpers.invalidateCollection(col_1);
1041
+ if (result_2?.effects?.redirect) storeNavigate(result_2.effects.redirect);
1042
+ if (result_2?.type === "redirect" && result_2.url) if (result_2.external) window.open(result_2.url, "_blank");
1043
+ else storeNavigate(result_2.url);
1044
+ if (result_2?.effects?.closeModal) actionHelpers.closeDialog();
1045
+ } catch (error_0) {
1046
+ toast.error(error_0 instanceof Error ? error_0.message : t("error.actionFailed"));
1047
+ } finally {
1048
+ setActionLoading(false);
1049
+ }
1050
+ break;
1051
+ }
1024
1052
  }
1025
1053
  setConfirmAction(null);
1026
1054
  };
@@ -1032,8 +1060,8 @@ function FormView({ collection, id, config, viewConfig, navigate, basePath = "/a
1032
1060
  const payload = { id };
1033
1061
  if (typeof pendingRevertVersion.versionId === "string") payload.versionId = pendingRevertVersion.versionId;
1034
1062
  else if (typeof pendingRevertVersion.versionNumber === "number") payload.version = pendingRevertVersion.versionNumber;
1035
- const result_2 = await revertVersionMutation.mutateAsync(payload);
1036
- form.reset(result_2);
1063
+ const result_3 = await revertVersionMutation.mutateAsync(payload);
1064
+ form.reset(result_3);
1037
1065
  triggerPreviewRefresh();
1038
1066
  toast.success(t("version.revertSuccess"));
1039
1067
  setPendingRevertVersion(null);
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import * as react_jsx_runtime9 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/client/views/pages/forgot-password-page.d.ts
5
5
 
@@ -51,6 +51,6 @@ declare function ForgotPasswordPage({
51
51
  logo,
52
52
  loginPath,
53
53
  resetPasswordRedirectUrl
54
- }: ForgotPasswordPageProps): react_jsx_runtime9.JSX.Element;
54
+ }: ForgotPasswordPageProps): react_jsx_runtime10.JSX.Element;
55
55
  //#endregion
56
56
  export { ForgotPasswordPage };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import * as react_jsx_runtime10 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime9 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/client/views/pages/invite-page.d.ts
5
5
 
@@ -65,6 +65,6 @@ declare function InvitePage({
65
65
  defaultRole,
66
66
  showMessage,
67
67
  onSuccess
68
- }: InvitePageProps): react_jsx_runtime10.JSX.Element;
68
+ }: InvitePageProps): react_jsx_runtime9.JSX.Element;
69
69
  //#endregion
70
70
  export { InvitePage };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import * as react_jsx_runtime11 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime12 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/client/views/pages/login-page.d.ts
5
5
 
@@ -64,6 +64,6 @@ declare function LoginPage({
64
64
  signUpPath,
65
65
  showForgotPassword,
66
66
  showSignUp
67
- }: LoginPageProps): react_jsx_runtime11.JSX.Element;
67
+ }: LoginPageProps): react_jsx_runtime12.JSX.Element;
68
68
  //#endregion
69
69
  export { LoginPage };
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import * as react_jsx_runtime12 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime11 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/client/views/pages/reset-password-page.d.ts
5
5
 
@@ -58,6 +58,6 @@ declare function ResetPasswordPage({
58
58
  loginPath,
59
59
  minPasswordLength,
60
60
  getToken
61
- }: ResetPasswordPageProps): react_jsx_runtime12.JSX.Element;
61
+ }: ResetPasswordPageProps): react_jsx_runtime11.JSX.Element;
62
62
  //#endregion
63
63
  export { ResetPasswordPage };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime20 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime25 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): react_jsx_runtime20.JSX.Element | null;
101
+ }: RichTextRendererProps): react_jsx_runtime25.JSX.Element | null;
102
102
  //#endregion
103
103
  export { RichTextRenderer, RichTextStyles, TipTapDoc, TipTapNode };
@@ -1,71 +1,71 @@
1
- import * as questpie_shared29 from "questpie/shared";
2
- import * as questpie187 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_core44 from "drizzle-orm/pg-core";
6
- import * as drizzle_orm27 from "drizzle-orm";
1
+ import * as questpie_shared22 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: questpie187.CollectionBuilder<questpie_shared29.Override<questpie187.EmptyCollectionState<"account", undefined, {
10
- readonly text: typeof questpie187.text;
11
- readonly textarea: typeof questpie187.textarea;
12
- readonly email: typeof questpie_src_server_modules_core_fields_email_js4.email;
13
- readonly url: typeof questpie187.url;
14
- readonly number: typeof questpie187.number;
15
- readonly boolean: typeof questpie187.boolean;
16
- readonly date: typeof questpie187.date;
17
- readonly datetime: typeof questpie187.datetime;
18
- readonly time: typeof questpie187.time;
19
- readonly select: typeof questpie187.select;
20
- readonly upload: typeof questpie187.upload;
21
- readonly relation: typeof questpie187.relation;
22
- readonly object: typeof questpie187.object;
23
- readonly json: typeof questpie_src_server_modules_core_fields_json_js4.json;
24
- readonly from: typeof questpie187.from;
9
+ declare const _default: questpie152.CollectionBuilder<questpie_shared22.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: drizzle_orm27.NotNull<drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>>;
29
- readonly accountId: drizzle_orm27.NotNull<drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>>;
30
- readonly providerId: drizzle_orm27.NotNull<drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>>;
31
- readonly accessToken: drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>;
32
- readonly refreshToken: drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>;
33
- readonly accessTokenExpiresAt: drizzle_orm_pg_core44.PgTimestampBuilder;
34
- readonly refreshTokenExpiresAt: drizzle_orm_pg_core44.PgTimestampBuilder;
35
- readonly scope: drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>;
36
- readonly idToken: drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>;
37
- readonly password: drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>;
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, questpie187.RelationConfig>;
40
+ relations: Record<string, questpie152.RelationConfig>;
41
41
  indexes: Record<string, any>;
42
42
  title: "providerId";
43
- options: questpie187.CollectionOptions & {
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: questpie187.FieldWithMethods<Omit<questpie187.TextFieldState, "notNull" | "column"> & {
50
+ readonly userId: questpie152.FieldWithMethods<Omit<questpie152.TextFieldState, "notNull" | "column"> & {
51
51
  notNull: true;
52
- column: drizzle_orm27.NotNull<drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>>;
53
- }, questpie187.TextFieldMethods>;
54
- readonly accountId: questpie187.FieldWithMethods<Omit<questpie187.TextFieldState, "notNull" | "column"> & {
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: drizzle_orm27.NotNull<drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>>;
57
- }, questpie187.TextFieldMethods>;
58
- readonly providerId: questpie187.FieldWithMethods<Omit<questpie187.TextFieldState, "notNull" | "column"> & {
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: drizzle_orm27.NotNull<drizzle_orm_pg_core44.PgVarcharBuilder<[string, ...string[]]>>;
61
- }, questpie187.TextFieldMethods>;
62
- readonly accessToken: questpie187.FieldWithMethods<questpie187.TextFieldState, questpie187.TextFieldMethods>;
63
- readonly refreshToken: questpie187.FieldWithMethods<questpie187.TextFieldState, questpie187.TextFieldMethods>;
64
- readonly accessTokenExpiresAt: questpie187.FieldWithMethods<questpie187.DatetimeFieldState, questpie187.DatetimeFieldMethods>;
65
- readonly refreshTokenExpiresAt: questpie187.FieldWithMethods<questpie187.DatetimeFieldState, questpie187.DatetimeFieldMethods>;
66
- readonly scope: questpie187.FieldWithMethods<questpie187.TextFieldState, questpie187.TextFieldMethods>;
67
- readonly idToken: questpie187.FieldWithMethods<questpie187.TextFieldState, questpie187.TextFieldMethods>;
68
- readonly password: questpie187.FieldWithMethods<questpie187.TextFieldState, questpie187.TextFieldMethods>;
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 questpie_shared22 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";
1
+ import * as questpie_shared29 from "questpie/shared";
2
+ import * as questpie229 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_core55 from "drizzle-orm/pg-core";
6
+ import * as drizzle_orm31 from "drizzle-orm";
7
7
 
8
8
  //#region src/server/modules/admin/collections/admin-locks.d.ts
9
- declare const _default: questpie152.CollectionBuilder<questpie_shared22.Override<questpie152.EmptyCollectionState<"admin_locks", 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;
9
+ declare const _default: questpie229.CollectionBuilder<questpie_shared29.Override<questpie229.EmptyCollectionState<"admin_locks", undefined, {
10
+ readonly text: typeof questpie229.text;
11
+ readonly textarea: typeof questpie229.textarea;
12
+ readonly email: typeof questpie_src_server_modules_core_fields_email_js5.email;
13
+ readonly url: typeof questpie229.url;
14
+ readonly number: typeof questpie229.number;
15
+ readonly boolean: typeof questpie229.boolean;
16
+ readonly date: typeof questpie229.date;
17
+ readonly datetime: typeof questpie229.datetime;
18
+ readonly time: typeof questpie229.time;
19
+ readonly select: typeof questpie229.select;
20
+ readonly upload: typeof questpie229.upload;
21
+ readonly relation: typeof questpie229.relation;
22
+ readonly object: typeof questpie229.object;
23
+ readonly json: typeof questpie_src_server_modules_core_fields_json_js5.json;
24
+ readonly from: typeof questpie229.from;
25
25
  }>, {
26
26
  name: "admin_locks";
27
27
  fields: Record<string, any> & {
28
- readonly resourceType: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
29
- readonly resource: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
30
- readonly resourceId: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
31
- readonly user: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
32
- readonly sessionId: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
33
- readonly expiresAt: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgDateStringBuilder>;
28
+ readonly resourceType: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
29
+ readonly resource: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
30
+ readonly resourceId: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
31
+ readonly user: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
32
+ readonly sessionId: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
33
+ readonly expiresAt: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgDateStringBuilder>;
34
34
  };
35
35
  virtuals: undefined;
36
- relations: Record<string, questpie152.RelationConfig>;
36
+ relations: Record<string, questpie229.RelationConfig>;
37
37
  indexes: Record<string, any>;
38
38
  title: undefined;
39
- options: questpie152.CollectionOptions & {
39
+ options: questpie229.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: questpie152.FieldWithMethods<Omit<questpie152.SelectFieldState, "notNull" | "column"> & {
46
+ readonly resourceType: questpie229.FieldWithMethods<Omit<questpie229.SelectFieldState, "notNull" | "column"> & {
47
47
  notNull: true;
48
- column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
48
+ column: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
49
49
  } & {
50
- label: questpie_shared22.I18nText;
51
- }, questpie152.SelectFieldMethods>;
52
- readonly resource: questpie152.FieldWithMethods<Omit<questpie152.TextFieldState, "notNull" | "column"> & {
50
+ label: questpie_shared29.I18nText;
51
+ }, questpie229.SelectFieldMethods>;
52
+ readonly resource: questpie229.FieldWithMethods<Omit<questpie229.TextFieldState, "notNull" | "column"> & {
53
53
  notNull: true;
54
- column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
54
+ column: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
55
55
  } & {
56
- label: questpie_shared22.I18nText;
57
- }, questpie152.TextFieldMethods>;
58
- readonly resourceId: questpie152.FieldWithMethods<Omit<questpie152.TextFieldState, "notNull" | "column"> & {
56
+ label: questpie_shared29.I18nText;
57
+ }, questpie229.TextFieldMethods>;
58
+ readonly resourceId: questpie229.FieldWithMethods<Omit<questpie229.TextFieldState, "notNull" | "column"> & {
59
59
  notNull: true;
60
- column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
60
+ column: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
61
61
  } & {
62
- label: questpie_shared22.I18nText;
63
- }, questpie152.TextFieldMethods>;
64
- readonly user: questpie152.FieldWithMethods<Omit<questpie152.RelationFieldState<"user">, "notNull" | "column"> & {
62
+ label: questpie_shared29.I18nText;
63
+ }, questpie229.TextFieldMethods>;
64
+ readonly user: questpie229.FieldWithMethods<Omit<questpie229.RelationFieldState<"user">, "notNull" | "column"> & {
65
65
  notNull: true;
66
- column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
66
+ column: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
67
67
  } & {
68
- label: questpie_shared22.I18nText;
69
- }, questpie152.RelationFieldMethods>;
70
- readonly sessionId: questpie152.FieldWithMethods<Omit<questpie152.TextFieldState, "notNull" | "column"> & {
68
+ label: questpie_shared29.I18nText;
69
+ }, questpie229.RelationFieldMethods>;
70
+ readonly sessionId: questpie229.FieldWithMethods<Omit<questpie229.TextFieldState, "notNull" | "column"> & {
71
71
  notNull: true;
72
- column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgVarcharBuilder<[string, ...string[]]>>;
72
+ column: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgVarcharBuilder<[string, ...string[]]>>;
73
73
  } & {
74
- label: questpie_shared22.I18nText;
75
- }, questpie152.TextFieldMethods>;
76
- readonly expiresAt: questpie152.FieldWithMethods<Omit<questpie152.DateFieldState, "notNull" | "column"> & {
74
+ label: questpie_shared29.I18nText;
75
+ }, questpie229.TextFieldMethods>;
76
+ readonly expiresAt: questpie229.FieldWithMethods<Omit<questpie229.DateFieldState, "notNull" | "column"> & {
77
77
  notNull: true;
78
- column: drizzle_orm15.NotNull<drizzle_orm_pg_core32.PgDateStringBuilder>;
78
+ column: drizzle_orm31.NotNull<drizzle_orm_pg_core55.PgDateStringBuilder>;
79
79
  } & {
80
- label: questpie_shared22.I18nText;
81
- }, questpie152.DateFieldMethods>;
80
+ label: questpie_shared29.I18nText;
81
+ }, questpie229.DateFieldMethods>;
82
82
  };
83
83
  upload: undefined;
84
84
  output: {};