Skip to content

Commit

Permalink
updated collections.import doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ganigeorgiev committed Aug 11, 2022
1 parent 4c0075e commit 9176ed9
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions dist/pocketbase.cjs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,10 @@ declare class Collections extends CrudService<Collection> {
baseCrudPath(): string;
/**
* Imports the provided collections.
*
* If `deleteMissing` is `true`, all local collections and schema fields,
* that are not present in the imported configuration, WILL BE DELETED
* (including their related records data)!
*/
import(collections: Array<Collection>, deleteMissing?: boolean, queryParams?: {}): Promise<true>;
}
Expand Down
4 changes: 4 additions & 0 deletions dist/pocketbase.es.d.mts
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,10 @@ declare class Collections extends CrudService<Collection> {
baseCrudPath(): string;
/**
* Imports the provided collections.
*
* If `deleteMissing` is `true`, all local collections and schema fields,
* that are not present in the imported configuration, WILL BE DELETED
* (including their related records data)!
*/
import(collections: Array<Collection>, deleteMissing?: boolean, queryParams?: {}): Promise<true>;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/pocketbase.es.mjs.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dist/pocketbase.iife.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,10 @@ declare class Collections extends CrudService<Collection> {
baseCrudPath(): string;
/**
* Imports the provided collections.
*
* If `deleteMissing` is `true`, all local collections and schema fields,
* that are not present in the imported configuration, WILL BE DELETED
* (including their related records data)!
*/
import(collections: Array<Collection>, deleteMissing?: boolean, queryParams?: {}): Promise<true>;
}
Expand Down
4 changes: 4 additions & 0 deletions dist/pocketbase.umd.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,10 @@ declare class Collections extends CrudService<Collection> {
baseCrudPath(): string;
/**
* Imports the provided collections.
*
* If `deleteMissing` is `true`, all local collections and schema fields,
* that are not present in the imported configuration, WILL BE DELETED
* (including their related records data)!
*/
import(collections: Array<Collection>, deleteMissing?: boolean, queryParams?: {}): Promise<true>;
}
Expand Down
4 changes: 4 additions & 0 deletions src/services/Collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export default class Collections extends CrudService<Collection> {

/**
* Imports the provided collections.
*
* If `deleteMissing` is `true`, all local collections and schema fields,
* that are not present in the imported configuration, WILL BE DELETED
* (including their related records data)!
*/
async import(collections: Array<Collection>, deleteMissing: boolean = false, queryParams = {}): Promise<true> {
return this.client.send(this.baseCrudPath() + '/import', {
Expand Down

0 comments on commit 9176ed9

Please sign in to comment.