wabe 0.6.14 → 0.6.15

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.
@@ -1,3 +1,5 @@
1
+ import type { ClassInterface, EnumInterface, ScalarInterface } from "../schema";
2
+ import { type DevWabeTypes } from "../utils/helper";
1
3
  export type CodegenFormatOptions = {
2
4
  indent?: string;
3
5
  comma?: boolean;
@@ -8,4 +10,19 @@ export type CodegenFormatOptions = {
8
10
  finalNewline?: boolean;
9
11
  semanticCompare?: boolean;
10
12
  };
13
+ export declare const getIndent: (options?: CodegenFormatOptions) => string;
14
+ export declare const getEndChar: (options?: CodegenFormatOptions) => string;
15
+ export declare const getQuoteChar: (options?: CodegenFormatOptions) => string;
16
+ export declare const getFileTypeString: (options?: CodegenFormatOptions) => string;
17
+ export declare const wabeTypesToTypescriptTypes: unknown;
18
+ export declare const wabeClassRecordToString: unknown;
19
+ export declare const wabeEnumRecordToString: unknown;
20
+ export declare const wabeScalarRecordToString: unknown;
21
+ export declare const wrapLongGraphqlFieldArguments: unknown;
22
+ export declare const generateWabeDevTypes: ({ scalars, enums, classes, options }: {
23
+ enums?: EnumInterface[];
24
+ scalars?: ScalarInterface[];
25
+ classes: ClassInterface<DevWabeTypes>[];
26
+ options?: CodegenFormatOptions;
27
+ }) => string;
11
28
  export declare const generateCodegen: unknown;
@@ -22,6 +22,11 @@ type SecurityConfig = {
22
22
  disableGraphQLDashboard?: boolean;
23
23
  disableIntrospection?: boolean;
24
24
  maxGraphqlDepth?: number;
25
+ /**
26
+ * Maximum recursion depth for where clauses with AND/OR and Pointer/Relation subqueries.
27
+ * Prevents DoS via deeply nested queries. Default: 10.
28
+ */
29
+ maxWhereRecursionDepth?: number;
25
30
  };
26
31
  export * from "./interface";
27
32
  export * from "./routes";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wabe",
3
- "version": "0.6.14",
3
+ "version": "0.6.15",
4
4
  "description": "Your backend without vendor lock-in in Typescript",
5
5
  "keywords": [
6
6
  "baas",