@flusys/ng-storage 9.1.0-rc.1 → 9.1.1
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.
- package/fesm2022/flusys-ng-storage-file-manager-api.service-DJ9uP3aN.mjs +43 -0
- package/fesm2022/flusys-ng-storage-file-manager-api.service-DJ9uP3aN.mjs.map +1 -0
- package/fesm2022/{flusys-ng-storage-file-manager-form.component-DaO-9wKM.mjs → flusys-ng-storage-file-manager-form.component-Bvhewt3f.mjs} +411 -231
- package/fesm2022/flusys-ng-storage-file-manager-form.component-Bvhewt3f.mjs.map +1 -0
- package/fesm2022/{flusys-ng-storage-file-manager-list.component-a7YHw1Gz.mjs → flusys-ng-storage-file-manager-list.component-4_LdJOtH.mjs} +355 -145
- package/fesm2022/flusys-ng-storage-file-manager-list.component-4_LdJOtH.mjs.map +1 -0
- package/fesm2022/flusys-ng-storage-folder-api.service-D_fFEuO6.mjs +33 -0
- package/fesm2022/flusys-ng-storage-folder-api.service-D_fFEuO6.mjs.map +1 -0
- package/fesm2022/flusys-ng-storage-folder-form.component-7C2oWijb.mjs +298 -0
- package/fesm2022/flusys-ng-storage-folder-form.component-7C2oWijb.mjs.map +1 -0
- package/fesm2022/{flusys-ng-storage-folder-list.component-BDrBAcCS.mjs → flusys-ng-storage-folder-list.component-BdSBM_DB.mjs} +284 -77
- package/fesm2022/flusys-ng-storage-folder-list.component-BdSBM_DB.mjs.map +1 -0
- package/fesm2022/flusys-ng-storage-storage-config-api.service-Bl4asniq.mjs +33 -0
- package/fesm2022/flusys-ng-storage-storage-config-api.service-Bl4asniq.mjs.map +1 -0
- package/fesm2022/{flusys-ng-storage-storage-config-form.component-B4wBfzVs.mjs → flusys-ng-storage-storage-config-form.component-De5h8JY-.mjs} +369 -214
- package/fesm2022/flusys-ng-storage-storage-config-form.component-De5h8JY-.mjs.map +1 -0
- package/fesm2022/{flusys-ng-storage-storage-config-list.component-CCkZY--j.mjs → flusys-ng-storage-storage-config-list.component-Dh9JkuZP.mjs} +303 -83
- package/fesm2022/flusys-ng-storage-storage-config-list.component-Dh9JkuZP.mjs.map +1 -0
- package/fesm2022/flusys-ng-storage-storage-container.component-EWGNoozU.mjs +124 -0
- package/fesm2022/flusys-ng-storage-storage-container.component-EWGNoozU.mjs.map +1 -0
- package/fesm2022/flusys-ng-storage-upload.service-CIcEL_Kr.mjs +113 -0
- package/fesm2022/flusys-ng-storage-upload.service-CIcEL_Kr.mjs.map +1 -0
- package/fesm2022/flusys-ng-storage.mjs +611 -876
- package/fesm2022/flusys-ng-storage.mjs.map +1 -1
- package/package.json +5 -5
- package/types/flusys-ng-storage.d.ts +254 -292
- package/fesm2022/flusys-ng-storage-file-manager-form.component-DaO-9wKM.mjs.map +0 -1
- package/fesm2022/flusys-ng-storage-file-manager-list.component-a7YHw1Gz.mjs.map +0 -1
- package/fesm2022/flusys-ng-storage-folder-form.component-BCzVzmRn.mjs +0 -225
- package/fesm2022/flusys-ng-storage-folder-form.component-BCzVzmRn.mjs.map +0 -1
- package/fesm2022/flusys-ng-storage-folder-list.component-BDrBAcCS.mjs.map +0 -1
- package/fesm2022/flusys-ng-storage-storage-config-form.component-B4wBfzVs.mjs.map +0 -1
- package/fesm2022/flusys-ng-storage-storage-config-list.component-CCkZY--j.mjs.map +0 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Service } from "@angular/core";
|
|
3
|
+
import { ApiResourceService } from "@flusys/ng-shared";
|
|
4
|
+
var FileManagerApiService = class FileManagerApiService extends ApiResourceService {
|
|
5
|
+
constructor() {
|
|
6
|
+
super("file-manager", "storage");
|
|
7
|
+
}
|
|
8
|
+
getFiles(fileIds) {
|
|
9
|
+
const requests = fileIds.map((id) => ({ id }));
|
|
10
|
+
return this.http.post(`${this.baseUrl}/get-files`, requests);
|
|
11
|
+
}
|
|
12
|
+
createFile(dto) {
|
|
13
|
+
return this.http.post(`${this.baseUrl}/insert`, dto);
|
|
14
|
+
}
|
|
15
|
+
createFiles(dtos) {
|
|
16
|
+
return this.http.post(`${this.baseUrl}/insert-many`, dtos);
|
|
17
|
+
}
|
|
18
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
19
|
+
minVersion: "12.0.0",
|
|
20
|
+
version: "22.2.1",
|
|
21
|
+
ngImport: i0,
|
|
22
|
+
type: FileManagerApiService,
|
|
23
|
+
deps: [],
|
|
24
|
+
target: i0.ɵɵFactoryTarget.Service
|
|
25
|
+
});
|
|
26
|
+
static ɵprov = i0.ɵɵngDeclareService({
|
|
27
|
+
minVersion: "22.0.0",
|
|
28
|
+
version: "22.2.1",
|
|
29
|
+
ngImport: i0,
|
|
30
|
+
type: FileManagerApiService
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
34
|
+
minVersion: "12.0.0",
|
|
35
|
+
version: "22.2.1",
|
|
36
|
+
ngImport: i0,
|
|
37
|
+
type: FileManagerApiService,
|
|
38
|
+
decorators: [{ type: Service }],
|
|
39
|
+
ctorParameters: () => []
|
|
40
|
+
});
|
|
41
|
+
export { FileManagerApiService as t };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=flusys-ng-storage-file-manager-api.service-DJ9uP3aN.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flusys-ng-storage-file-manager-api.service-DJ9uP3aN.mjs","names":[],"sources":["../../../projects/ng-storage/services/file-manager-api.service.ts"],"sourcesContent":["import { Service } from '@angular/core';\nimport {\n ApiResourceService,\n IBulkResponse,\n ISingleResponse,\n} from '@flusys/ng-shared';\nimport { Observable } from 'rxjs';\nimport {\n ICreateFileManagerDto,\n IFileManager,\n IFilesResponseDto,\n IGetFilesRequestDto,\n IUpdateFileManagerDto,\n} from '../interfaces/file-manager.interface';\n\n@Service()\nexport class FileManagerApiService extends ApiResourceService<\n IUpdateFileManagerDto,\n IFileManager\n> {\n constructor() {\n super('file-manager', 'storage');\n }\n\n getFiles(\n fileIds: string[],\n ): Observable<ISingleResponse<IFilesResponseDto[]>> {\n const requests: IGetFilesRequestDto[] = fileIds.map((id) => ({ id }));\n return this.http.post<ISingleResponse<IFilesResponseDto[]>>(\n `${this.baseUrl}/get-files`,\n requests,\n );\n }\n\n createFile(\n dto: ICreateFileManagerDto,\n ): Observable<ISingleResponse<IFileManager>> {\n return this.http.post<ISingleResponse<IFileManager>>(\n `${this.baseUrl}/insert`,\n dto,\n );\n }\n\n createFiles(\n dtos: ICreateFileManagerDto[],\n ): Observable<IBulkResponse<IFileManager>> {\n return this.http.post<IBulkResponse<IFileManager>>(\n `${this.baseUrl}/insert-many`,\n dtos,\n );\n }\n}\n"],"mappings":";;;AAgBA,IAAa,wBAAb,MAAa,8BAA8B,mBAG1C;CACC,cAAA;EACE,MAAM,gBAAgB,SAAS;CACjC;CAEA,SACE,SAAiB;EAEjB,MAAM,WAAkC,QAAQ,KAAK,QAAQ,EAAE,GAAE,EAAG;EACpE,OAAO,KAAK,KAAK,KACf,GAAG,KAAK,QAAO,aACf,QAAQ;CAEZ;CAEA,WACE,KAA0B;EAE1B,OAAO,KAAK,KAAK,KACf,GAAG,KAAK,QAAO,UACf,GAAG;CAEP;CAEA,YACE,MAA6B;EAE7B,OAAO,KAAK,KAAK,KACf,GAAG,KAAK,QAAO,eACf,IAAI;CAER;CAlCW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAqB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAArB,OAAA,QAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;CAAqB,CAAA;;AAArB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAqB,YAAA,CAAA,EADjC,MAAA,QAAA,CAAA"}
|