@tblabs/storage 5.12.8 → 5.12.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.
|
@@ -11,6 +11,8 @@ export declare class PicturesDataset extends DatasetBase {
|
|
|
11
11
|
protected picsConfig: PicsConfig;
|
|
12
12
|
Type: DatasetType;
|
|
13
13
|
constructor(_db: OnlineStorage, dataset: dir, picsConfig?: PicsConfig);
|
|
14
|
+
SetConfig(config: PicsConfig): void;
|
|
15
|
+
GetConfig(): PicsConfig;
|
|
14
16
|
GetAllIds(): Promise<string[]>;
|
|
15
17
|
GetOne(id: string): Promise<PicturePack>;
|
|
16
18
|
GetAll(): Promise<PicturePack[]>;
|
|
@@ -18,6 +18,12 @@ export class PicturesDataset extends DatasetBase {
|
|
|
18
18
|
this.dataset = dataset;
|
|
19
19
|
this.picsConfig = picsConfig;
|
|
20
20
|
}
|
|
21
|
+
SetConfig(config) {
|
|
22
|
+
this.picsConfig = config;
|
|
23
|
+
}
|
|
24
|
+
GetConfig() {
|
|
25
|
+
return this.picsConfig;
|
|
26
|
+
}
|
|
21
27
|
async GetAllIds() {
|
|
22
28
|
const result = await this._db.Send(new ListPicturesIdsQuery(this._db.DatabaseDir, this.dataset));
|
|
23
29
|
if (!result.IsSuccess) {
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|