wabe 0.6.13 → 0.6.14

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.
@@ -68,6 +68,8 @@ export declare class DatabaseController<T extends WabeTypes> {
68
68
  selectWithoutPointers: Select;
69
69
  };
70
70
  _isFieldOfType(originClassName: string, pointerField: string, expectedType: "Pointer" | "Relation", context: WabeContext<T>, currentClassName?: string): boolean;
71
+ _extractPointerId(pointerValue: unknown): string | undefined;
72
+ _extractRelationIds(relationValue: unknown): string[];
71
73
  _getWhereObjectWithPointerOrRelation<U extends keyof T["types"]>(className: U, where: WhereType<T, U>, context: WabeContext<T>);
72
74
  _buildWhereWithACL<K extends keyof T["types"]>(where: WhereType<T, K>, context: WabeContext<T>, operation: "write" | "read"): WhereType<T, K>;
73
75
  /**
@@ -2,6 +2,7 @@ import type { FileAdapter, ReadFileOptions } from ".";
2
2
  export declare class FileDevAdapter implements FileAdapter {
3
3
  private basePath;
4
4
  private rootPath;
5
+ private getSafeFilePath;
5
6
  uploadFile(file: File): Promise<void>;
6
7
  readFile(fileName: string, options?: ReadFileOptions): Promise<string | null>;
7
8
  deleteFile(fileName: string): Promise<void>;
@@ -4,6 +4,12 @@ type Unlink = boolean;
4
4
  type Add = Array<string>;
5
5
  type Remove = Array<string>;
6
6
  type CreateAndAdd = Array<any>;
7
+ export type PointerObject = {
8
+ class: string;
9
+ id: string;
10
+ type: "Pointer";
11
+ };
12
+ export declare const getPointerId: (value: unknown) => string | undefined;
7
13
  export type TypeOfExecution = "create" | "update" | "updateMany";
8
14
  export type InputFields = Record<string, {
9
15
  createAndLink?: CreateAndLink;