mandarina-server 2.1.25 → 2.1.26

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.
@@ -18,7 +18,7 @@ export declare class CustomAction {
18
18
  */
19
19
  constructor(schema: Schema | string, actionOptions: ActionOptions);
20
20
  static getInstance(name: string): CustomAction;
21
- getFields(): string[] | undefined;
21
+ getFields(): any;
22
22
  getActions(): {};
23
23
  }
24
24
  export interface ActionOptions {
@@ -23,12 +23,12 @@ export declare class Table {
23
23
  static setGlobalHooks: (hooks: Hooks) => void;
24
24
  constructor(schema: Schema, tableOptions?: TableShapeOptions);
25
25
  static getInstance(name: string): Table;
26
- getFields(): string[];
26
+ getFields(): any;
27
27
  shouldHasManyUpdate(): boolean;
28
28
  getDefaultActions(type: operationType): {
29
29
  [resolverName: string]: (_: any, args: any, context: Context, info: any) => void;
30
30
  };
31
- insertWhereIntoInfo: (info: GraphQLResolveInfo, user: UserType | null | undefined, isSingleMutation: boolean | undefined, action: ActionType, operationName: string) => {
31
+ insertWhereIntoInfo: (info: GraphQLResolveInfo, user: UserType | null | undefined, isSingleMutation: boolean | undefined, action: any, operationName: string) => {
32
32
  fields: string[];
33
33
  queryString: string;
34
34
  };
@@ -1,15 +1,13 @@
1
- import { Schema } from "mandarina";
2
1
  import { CustomAction } from "../../";
3
- import { FieldDefinition } from "mandarina/build/Schema/Schema";
4
- export declare const getGraphQLType: (def: FieldDefinition, key: string, required?: "" | "!", isInput?: boolean) => string;
5
- export declare const getGraphQLModel: (schema: Schema) => string;
6
- export declare const getGraphQLInput: (schema: Schema) => string;
2
+ export declare const getGraphQLType: (def: any, key: string, required?: "" | "!", isInput?: boolean) => string;
3
+ export declare const getGraphQLModel: (schema: any) => string;
4
+ export declare const getGraphQLInput: (schema: any) => string;
7
5
  export declare const sleep: (ms: number) => Promise<unknown>;
8
6
  export declare const createDir: (dir: string) => void;
9
7
  export declare const saveFile: (dir: string, fileName: string, content: string, fileType: "input" | "model" | "operation") => void;
10
8
  export declare const resetDir: (dir: string) => void;
11
9
  export declare const savePrismaYaml: (datamodel: Set<string>, dir: string, endpoint: string, secret?: string | undefined) => void;
12
10
  export declare const saveDockerComposeYaml: (dir: string, port: string) => void;
13
- export declare const getSubSchemas: (schema: Schema, processedSchemas?: string[]) => string[];
14
- export declare const getGraphQLOperation: (action: CustomAction, schema: Schema) => string;
11
+ export declare const getSubSchemas: (schema: any, processedSchemas?: string[]) => string[];
12
+ export declare const getGraphQLOperation: (action: CustomAction, schema: any) => string;
15
13
  export declare const getAuthOperation: () => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mandarina-server",
3
- "version": "2.1.25",
3
+ "version": "2.1.26",
4
4
  "description": "Mandarina for server side",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",