@valtimo/resource 0.0.0

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valtimo-resource.mjs","sources":["../../../../projects/valtimo/resource/src/lib/models/upload.model.ts","../../../../projects/valtimo/resource/src/lib/models/uploader.model.ts","../../../../projects/valtimo/resource/src/lib/models/open-zaak.model.ts","../../../../projects/valtimo/resource/src/lib/models/index.ts","../../../../projects/valtimo/resource/src/lib/services/open-zaak.service.ts","../../../../projects/valtimo/resource/src/lib/services/open-zaak-upload.service.ts","../../../../projects/valtimo/resource/src/lib/services/s3.service.ts","../../../../projects/valtimo/resource/src/lib/services/s3-upload.service.ts","../../../../projects/valtimo/resource/src/lib/services/upload-provider.service.ts","../../../../projects/valtimo/resource/src/lib/services/download.service.ts","../../../../projects/valtimo/resource/src/lib/resource.module.ts","../../../../projects/valtimo/resource/src/lib/resource-permissions.ts","../../../../projects/valtimo/resource/src/public-api.ts","../../../../projects/valtimo/resource/src/valtimo-resource.ts"],"sourcesContent":["/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Observable} from 'rxjs';\nimport {ResourceDto} from './uploader.model';\n\ninterface ResourceFile {\n customUpload?: boolean;\n originalName: string;\n size: number;\n storage: string;\n type?: string;\n isLast?: boolean;\n url?: string;\n data: {\n baseUrl?: string;\n bucketName?: string;\n createdOn: string;\n extension?: string;\n form?: string;\n key?: string;\n name: string;\n project?: string;\n resourceId: string;\n sizeInBytes: number;\n };\n}\n\ninterface UploadService {\n uploadFile(\n file: File,\n documentDefinitionName?: string,\n documentId?: string\n ): Observable<ResourceFile>;\n getResource(resourceId: string): Observable<ResourceDto>;\n checkUploadProcessLink?(caseDefinitionKey: string): Observable<boolean>;\n uploadFileWithMetadata?(\n file: File,\n documentId: string,\n metadata: {[key: string]: any}\n ): Observable<void>;\n uploadTempFileWithMetadata?(\n file: File,\n metadata: {[key: string]: any}\n ): Observable<DocumentenApiFileReference>;\n}\n\ninterface DocumentenApiFileReference {\n filename: string;\n sizeInBytes: number;\n id: string;\n}\n\nexport {ResourceFile, UploadService, DocumentenApiFileReference};\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport interface ResourceDto {\n url: string;\n resource: Resource;\n originalName?: string;\n}\n\nexport interface Resource {\n id?: string;\n key: string;\n name: string;\n sizeInBytes: number;\n extension?: string;\n createdOn?: Date;\n}\n\nexport interface OpenZaakResource {\n resourceId: string;\n informatieObjectUrl: string;\n createdOn: string;\n name: string;\n extension: string;\n sizeInBytes: number;\n}\n\nexport class S3Resource implements Resource {\n id?: string = null;\n key: string;\n name: string;\n sizeInBytes: number;\n extension?: string = null;\n createdOn?: Date = null;\n documentId?: string;\n\n constructor(file: File, preSignedUrl: URL, documentId?: string) {\n this.key = decodeURIComponent(preSignedUrl.pathname.substring(1));\n this.name = file.name;\n this.sizeInBytes = file.size;\n if (!documentId) {\n return;\n }\n this.documentId = documentId;\n }\n}\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport class OpenZaakConfig {\n id: string;\n url: string;\n clientId: string;\n secret: string;\n rsin: string;\n}\n\nexport interface ZaakType {\n url: string;\n omschrijving: string;\n omschrijvingGeneriek?: string;\n}\n\nexport interface InformatieObjectType {\n url: string;\n omschrijving: string;\n}\n\nexport interface ZaakTypeLink {\n id: string;\n documentDefinitionName: string;\n zaakTypeUrl: string;\n zaakInstanceLinks: ZaakInstanceLink[];\n createWithDossier: boolean;\n zakenApiPluginConfigurationId: string;\n rsin: string;\n}\n\nexport interface ZaakTypeRequest {\n zaaktype: string;\n}\n\nexport interface CreateZaakTypeLinkRequest {\n caseDefinitionKey: string;\n caseVersionTag: string;\n zaakTypeUrl?: string;\n createWithDossier: boolean;\n zakenApiPluginConfigurationId?: string;\n rsin?: string;\n}\n\nexport interface CreateInformatieObjectTypeLinkRequest {\n documentDefinitionName: string;\n zaakType: string;\n informatieObjectType: string;\n}\n\nexport interface ZaakInstanceLink {\n zaakInstanceUrl: string;\n zaakInstanceId: string;\n documentId: string;\n}\n\nexport interface PreviousSelectedZaak {\n zaakTypeLink: ZaakTypeLink;\n zaakType: ZaakType;\n}\n\nexport interface ZaakOperation {\n type: string;\n label: string;\n}\n\nexport interface ZaakStatusType {\n url?: string;\n omschrijving: string;\n omschrijvingGeneriek?: string;\n statustekst?: string;\n zaakType: string;\n volgnummer: number;\n isEindStatus?: boolean;\n informeren?: boolean;\n}\n\nexport interface ZaakResultType {\n url?: string;\n zaaktype: string;\n omschrijving: string;\n resultaattypeomschrijving: string;\n omschrijvingGeneriek?: string;\n selectielijstklasse: string;\n toelichting?: string;\n archiefnominatie?: Archiefnominatie;\n archiefactietermijn?: string;\n brondatumArchiefprocedure?: BrondatumArchiefprocedure;\n}\n\nexport interface ZaakBesluitType {\n url?: string;\n omschrijving: string;\n}\n\nexport interface BrondatumArchiefprocedure {\n afleidingswijze: Afleidingswijze;\n datumkenmerk?: string;\n einddatumBekend?: boolean;\n objecttype?: Objecttype;\n registratie?: string;\n procestermijn?: string;\n}\n\nexport enum Archiefnominatie {\n blijvend_bewaren = 'blijven_bewaren',\n vernietigen = 'vernietigen',\n}\n\nexport enum Afleidingswijze {\n afgehandeld = 'afgehandeld',\n ander_datumkenmerk = 'ander_datumkenmerk',\n eigenschap = 'eigenschap',\n gerelateerde_zaak = 'gerelateerde_zaak',\n hoofdzaak = 'hoofdzaak',\n ingangsdatum_besluit = 'ingangsdatum_besluit',\n termijn = 'termijn',\n vervaldatum_besluit = 'vervaldatum_besluit',\n zaakobject = 'zaakobject',\n}\n\nexport enum Objecttype {\n adres = 'adres',\n besluit = 'besluit',\n buurt = 'buurt',\n enkelvoudig_document = 'enkelvoudig_document',\n gemeente = 'gemeente',\n gemeentelijke_openbare_ruimte = 'gemeentelijke_openbare_ruimte',\n huishouden = 'huishouden',\n inrichtingselement = 'inrichtingselement',\n kadastrale_onroerende_zaak = 'kadastrale_onroerende_zaak',\n kunstwerkdeel = 'kunstwerkdeel',\n maatschappelijke_activiteit = 'maatschappelijke_activiteit',\n medewerker = 'medewerker',\n natuurlijk_persoon = 'natuurlijk_persoon',\n niet_natuurlijk_persoon = 'niet_natuurlijk_persoon',\n openbare_ruimte = 'openbare_ruimte',\n organisatorische_eenheid = 'organisatorische_eenheid',\n pand = 'pand',\n spoorbaandeel = 'spoorbaandeel',\n status = 'status',\n terreindeel = 'terreindeel',\n terrein_gebouwd_object = 'terrein_gebouwd_object',\n vestiging = 'vestiging',\n waterdeel = 'waterdeel',\n wegdeel = 'wegdeel',\n wijk = 'wijk',\n woonplaats = 'woonplaats',\n woz_deelobject = 'woz_deelobject',\n woz_object = 'woz_object',\n woz_waarde = 'woz_waarde',\n zakelijk_recht = 'zakelijk_recht',\n overige = 'overige',\n}\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nexport * from './upload.model';\nexport * from './uploader.model';\nexport * from './open-zaak.model';\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {ConfigService} from '@valtimo/shared';\nimport {Observable} from 'rxjs';\nimport {\n CreateZaakTypeLinkRequest,\n DocumentenApiFileReference,\n InformatieObjectType,\n OpenZaakConfig,\n OpenZaakResource,\n ResourceDto,\n ZaakType,\n ZaakTypeLink,\n ZaakTypeRequest,\n} from '../models';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class OpenZaakService {\n private valtimoApiConfig: any;\n private catalogus: string;\n\n constructor(\n private http: HttpClient,\n private configService: ConfigService\n ) {\n this.valtimoApiConfig = this.configService.config.valtimoApi;\n this.catalogus = this.configService.config.openZaak.catalogus;\n }\n\n public getOpenZaakConfig(): Observable<OpenZaakConfig> {\n return this.http.get<OpenZaakConfig>(`${this.valtimoApiConfig.endpointUri}v1/openzaak/config`);\n }\n\n public getResource(resourceId: string): Observable<ResourceDto> {\n return this.http.get<ResourceDto>(\n `${this.valtimoApiConfig.endpointUri}v1/resource/${resourceId}`\n );\n }\n\n public getZaakTypes(): Observable<ZaakType[]> {\n return this.http.get<ZaakType[]>(\n `${this.valtimoApiConfig.endpointUri}management/v1/zgw/zaaktype`\n );\n }\n\n public getBesluittypen(): Observable<any> {\n return this.http.get(`${this.valtimoApiConfig.endpointUri}v1/besluittype`);\n }\n\n public getInformatieObjectTypes(): Observable<InformatieObjectType[]> {\n return this.http.get<InformatieObjectType[]>(\n `${this.valtimoApiConfig.endpointUri}v1/openzaak/informatie-object-typen/${this.catalogus}`\n );\n }\n\n public getZaakTypeLink(\n caseDefinitionKey: string,\n caseVersionTag: string\n ): Observable<ZaakTypeLink> {\n return this.http.get<ZaakTypeLink>(\n `${this.valtimoApiConfig.endpointUri}management/v1/case-definition/${caseDefinitionKey}/version/${caseVersionTag}/zaak-type-link`\n );\n }\n\n public createZaakTypeLink(request: CreateZaakTypeLinkRequest): Observable<any> {\n return this.http.post<any>(\n `${this.valtimoApiConfig.endpointUri}management/v1/case-definition/${request.caseDefinitionKey}/version/${request.caseVersionTag}/zaak-type-link`,\n request\n );\n }\n public deleteZaakTypeLink(caseDefinitionKey: string, caseVersionTag: string): Observable<any> {\n return this.http.delete<any>(\n `${this.valtimoApiConfig.endpointUri}management/v1/case-definition/${caseDefinitionKey}/version/${caseVersionTag}/zaak-type-link`\n );\n }\n\n public getZaakTypeLinkListByProcess(\n processDefinitionKey: string\n ): Observable<Array<ZaakTypeLink>> {\n return this.http.get<Array<ZaakTypeLink>>(\n `${this.valtimoApiConfig.endpointUri}management/v1/zaak-type-link/process/${processDefinitionKey}`\n );\n }\n\n public getStatusTypes(zaakTypeRequest: ZaakTypeRequest): Observable<any> {\n return this.http.post(\n `${this.valtimoApiConfig.endpointUri}v1/openzaak/status`,\n zaakTypeRequest\n );\n }\n\n public getStatusResults(zaakTypeRequest): Observable<any> {\n return this.http.post(\n `${this.valtimoApiConfig.endpointUri}v1/openzaak/resultaat`,\n zaakTypeRequest\n );\n }\n\n public upload(file: File, documentDefinitionName: string): Observable<OpenZaakResource> {\n const formData: FormData = new FormData();\n formData.append('file', file);\n formData.append('documentDefinitionName', documentDefinitionName);\n\n return this.http.post<OpenZaakResource>(\n `${this.valtimoApiConfig.endpointUri}v1/resource/upload-open-zaak`,\n formData,\n {\n reportProgress: true,\n responseType: 'json',\n }\n );\n }\n\n public uploadWithMetadata(\n file: File,\n documentId: string,\n metadata: {[key: string]: any}\n ): Observable<void> {\n const formData: FormData = new FormData();\n formData.append('file', file);\n formData.append('documentId', documentId);\n\n Object.keys(metadata).forEach(metaDataKey => {\n const metadataValue = metadata[metaDataKey];\n\n if (metadataValue) {\n formData.append(metaDataKey, metadataValue);\n }\n });\n\n return this.http.post<void>(`${this.valtimoApiConfig.endpointUri}v1/resource/temp`, formData, {\n reportProgress: true,\n responseType: 'json',\n });\n }\n\n public uploadTempFileWithMetadata(\n file: File,\n metadata: {[key: string]: any}\n ): Observable<DocumentenApiFileReference> {\n const formData: FormData = new FormData();\n formData.append('file', file);\n\n Object.keys(metadata).forEach(metaDataKey => {\n const metadataValue = metadata[metaDataKey];\n\n if (metadataValue) {\n formData.append(metaDataKey, metadataValue);\n }\n });\n\n return this.http.post<DocumentenApiFileReference>(\n `${this.valtimoApiConfig.endpointUri}v1/resource/temp`,\n formData,\n {\n reportProgress: true,\n responseType: 'json',\n }\n );\n }\n}\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {ConfigService} from '@valtimo/shared';\nimport {Observable} from 'rxjs';\nimport {\n DocumentenApiFileReference,\n OpenZaakResource,\n ResourceDto,\n ResourceFile,\n UploadService,\n} from '../models';\nimport {OpenZaakService} from './open-zaak.service';\nimport {map} from 'rxjs/operators';\n\n@Injectable()\nexport class OpenZaakUploadService implements UploadService {\n private valtimoApiConfig: any;\n\n constructor(\n private readonly openZaakService: OpenZaakService,\n private http: HttpClient,\n private configService: ConfigService\n ) {\n this.valtimoApiConfig = configService.config.valtimoApi;\n }\n\n uploadFile(file: File, documentDefinitionName: string): Observable<ResourceFile> {\n return this.openZaakService\n .upload(new File([file], file.name, {type: file.type}), documentDefinitionName)\n .pipe(map(result => this.getResourceFile(result)));\n }\n\n uploadFileWithMetadata(\n file: File,\n documentId: string,\n metadata: {[key: string]: any}\n ): Observable<void> {\n return this.openZaakService.uploadWithMetadata(\n new File([file], metadata?.bestandsnaam || file.name, {type: file.type}),\n documentId,\n metadata\n );\n }\n\n uploadTempFileWithMetadata(\n file: File,\n metadata: {[key: string]: any}\n ): Observable<DocumentenApiFileReference> {\n return this.openZaakService.uploadTempFileWithMetadata(\n new File([file], metadata?.bestandsnaam || file.name, {type: file.type}),\n metadata\n );\n }\n\n getResource(resourceId: string): Observable<ResourceDto> {\n return this.openZaakService.getResource(resourceId);\n }\n\n checkUploadProcessLink(caseDefinitionKey: string): Observable<boolean> {\n return this.http\n .get<{\n processCaseLinkExists: boolean;\n }>(\n `${this.valtimoApiConfig.endpointUri}v1/uploadprocess/case/${caseDefinitionKey}/check-link`\n )\n .pipe(map(res => res.processCaseLinkExists));\n }\n\n private getResourceFile(result: OpenZaakResource): ResourceFile {\n return {\n customUpload: true,\n originalName: result.name,\n size: result.sizeInBytes,\n url: '/api/resource/' + result.resourceId + '/download',\n storage: 'openZaak',\n type: result.extension,\n data: {\n createdOn: result.createdOn as any as string,\n name: result.name,\n sizeInBytes: result.sizeInBytes,\n resourceId: result.resourceId,\n extension: result.extension,\n },\n };\n }\n}\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient, HttpHeaders} from '@angular/common/http';\nimport {Observable} from 'rxjs';\nimport {ConfigService} from '@valtimo/shared';\nimport {Resource, S3Resource, ResourceDto} from '../models';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class S3Service {\n private valtimoApiConfig: any;\n\n constructor(\n private http: HttpClient,\n private configService: ConfigService\n ) {\n this.valtimoApiConfig = configService.config.valtimoApi;\n }\n\n public getPreSignedUrl(fileName: string): Observable<string> {\n const headers = new HttpHeaders().set('Content-Type', 'text/plain; charset=utf-8');\n const options = {headers, responseType: 'text' as 'text'};\n return this.http.get(\n `${this.valtimoApiConfig.endpointUri}v1/resource/pre-signed-url/${fileName}`,\n options\n );\n }\n\n public upload(url: URL, file: File): Observable<any> {\n const headers = new HttpHeaders().set('Content-Type', file.type);\n return this.http.put(url.toString(), file, {headers});\n }\n\n public registerResource(s3ResourceDTO: S3Resource): Observable<Resource> {\n return this.http.put<Resource>(\n `${this.valtimoApiConfig.endpointUri}v1/resource`,\n s3ResourceDTO\n );\n }\n\n public get(resourceId: string): Observable<ResourceDto> {\n const headers = new HttpHeaders().set('Content-Type', 'application/json;charset=UTF-8');\n return this.http.get<ResourceDto>(\n `${this.valtimoApiConfig.endpointUri}v1/resource/${resourceId}`,\n {headers}\n );\n }\n\n public delete(resourceId: string): Observable<any> {\n const headers = new HttpHeaders().set('Content-Type', 'application/json;charset=UTF-8');\n return this.http.delete(`${this.valtimoApiConfig.endpointUri}v1/resource/${resourceId}`, {\n headers,\n });\n }\n}\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Observable} from 'rxjs';\nimport {map, switchMap, tap} from 'rxjs/operators';\nimport {ResourceDto, ResourceFile, S3Resource, UploadService} from '../models';\nimport {Injectable} from '@angular/core';\nimport {v4 as uuidv4} from 'uuid';\nimport {S3Service} from './s3.service';\n\n@Injectable()\nexport class S3UploadService implements UploadService {\n constructor(private readonly s3Service: S3Service) {}\n\n uploadFile(file: File, _, documentId?: string): Observable<ResourceFile> {\n let resourceUrl: URL;\n const fileName = file.name;\n const splitFileName = fileName.split('.');\n const fileNameWithUUID = `${splitFileName[0]}-${uuidv4()}.${splitFileName[1]}`;\n const renamedFile = new File([file], fileNameWithUUID, {type: file.type});\n\n return this.s3Service.getPreSignedUrl(renamedFile.name).pipe(\n map(url => new URL(url)),\n tap(url => (resourceUrl = url)),\n switchMap(url => this.s3Service.upload(url, renamedFile)),\n map(() => new S3Resource(file, resourceUrl, documentId)),\n switchMap(s3Resource => this.s3Service.registerResource(s3Resource)),\n switchMap(s3Resource => this.s3Service.get(s3Resource.id)),\n map(result => ({...result, originalName: file.name})),\n map(result => this.getResourceFile(result))\n );\n }\n\n getResource(resourceId: string): Observable<ResourceDto> {\n return this.s3Service.get(resourceId);\n }\n\n private getResourceFile(result: ResourceDto): ResourceFile {\n return {\n customUpload: true,\n originalName: result.originalName,\n url: result.url,\n size: result.resource.sizeInBytes,\n storage: 'url',\n type: result.resource.extension,\n data: {\n key: result.resource.key,\n bucketName: result.resource.name,\n createdOn: result.resource.createdOn as any as string,\n name: result.originalName,\n sizeInBytes: result.resource.sizeInBytes,\n resourceId: result.resource.id.split('ResourceId(id=')[1].slice(0, -1),\n },\n };\n }\n}\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable, Injector} from '@angular/core';\nimport {NGXLogger} from 'ngx-logger';\nimport {DocumentenApiFileReference, ResourceDto, ResourceFile, UploadService} from '../models';\nimport {ConfigService, UploadProvider} from '@valtimo/shared';\nimport {Observable, of} from 'rxjs';\nimport {OpenZaakUploadService} from './open-zaak-upload.service';\nimport {S3UploadService} from './s3-upload.service';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class UploadProviderService implements UploadService {\n private readonly uploadService: UploadService;\n\n constructor(\n private configService: ConfigService,\n private injector: Injector,\n private logger: NGXLogger\n ) {\n let uploadService: UploadService;\n\n switch (configService.config.uploadProvider) {\n case UploadProvider.S3:\n uploadService = injector.get<UploadService>(S3UploadService);\n break;\n case UploadProvider.OPEN_ZAAK:\n uploadService = injector.get<UploadService>(OpenZaakUploadService);\n break;\n case UploadProvider.DOCUMENTEN_API:\n uploadService = injector.get<UploadService>(OpenZaakUploadService);\n break;\n }\n\n this.uploadService = uploadService;\n this.logger.debug('Loading UploadService as', this.uploadService);\n }\n\n uploadFile(\n file: File,\n documentDefinitionName?: string,\n documentId?: string\n ): Observable<ResourceFile> {\n return this.uploadService.uploadFile(file, documentDefinitionName, documentId);\n }\n\n getResource(resourceId: string): Observable<ResourceDto> {\n return this.uploadService.getResource(resourceId);\n }\n\n checkUploadProcessLink(caseDefinitionKey: string): Observable<boolean> {\n if (this.uploadService.checkUploadProcessLink) {\n return this.uploadService.checkUploadProcessLink(caseDefinitionKey);\n }\n\n return of(false);\n }\n\n uploadFileWithMetadata(\n file: File,\n documentId: string,\n metadata: {[key: string]: any}\n ): Observable<void> {\n if (this.uploadService.uploadFileWithMetadata) {\n return this.uploadService.uploadFileWithMetadata(file, documentId, metadata);\n }\n\n return of(null);\n }\n\n uploadTempFileWithMetadata(\n file: File,\n metadata: {[key: string]: any}\n ): Observable<DocumentenApiFileReference> {\n if (this.uploadService.uploadTempFileWithMetadata) {\n return this.uploadService.uploadTempFileWithMetadata(file, metadata);\n }\n\n return of(null);\n }\n}\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {Injectable} from '@angular/core';\nimport {ConfigService} from '@valtimo/shared';\nimport {HttpClient} from '@angular/common/http';\nimport {Observable, Subject} from 'rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DownloadService {\n constructor(\n private http: HttpClient,\n private configService: ConfigService\n ) {}\n\n downloadFile(url: string, name: string, forceDownload?: boolean): Observable<null> {\n const finishedSubject$ = new Subject<null>();\n\n if (\n url.startsWith(this.configService.config.valtimoApi.endpointUri) ||\n url.startsWith(window.location.origin) ||\n url.startsWith('/api/')\n ) {\n // if download url is on backend use angular to get the content so access token is used\n this.http.get(url, {responseType: 'blob'}).subscribe(content => {\n const downloadUrl = window.URL.createObjectURL(content);\n if (!this.isFileTypeSupportedForNewWindow(name) || forceDownload) {\n this.openDownloadLink(downloadUrl, name);\n } else {\n this.openBlobInNewTab(downloadUrl, name);\n }\n finishedSubject$.next(null);\n });\n } else {\n // download links to external services (like amazon s3) open in a new window\n this.openDownloadLink(url, name);\n finishedSubject$.next(null);\n }\n\n return finishedSubject$;\n }\n\n /**\n * A window.open won't work for blobs because ad blocker extensions will immediately\n * close the tab again. The method used below will prevent this from happening.\n */\n private openBlobInNewTab(url: string, name: string) {\n const newWindow = window.open('/');\n\n // newWindow will be null if the browser blocks the opening of a new tab.\n if (newWindow != null) {\n newWindow.location = url;\n } else {\n // In case the tab is blocked it will just download the file.\n this.openDownloadLink(url, name);\n }\n }\n\n private openDownloadLink(url: string, name: string) {\n const link = document.createElement('a');\n link.href = url;\n link.download = name;\n link.target = '_blank';\n link.click();\n link.remove();\n }\n\n private isFileTypeSupportedForNewWindow(name: string): boolean {\n const supportedFileTypes = this.configService?.config\n ?.supportedDocumentFileTypesToViewInBrowser || ['pdf', 'jpg', 'png', 'svg'];\n\n return supportedFileTypes.some(function (suffix) {\n return name.toUpperCase().endsWith(suffix.toUpperCase());\n });\n }\n}\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {NgModule} from '@angular/core';\nimport {OpenZaakUploadService} from './services/open-zaak-upload.service';\nimport {S3UploadService} from './services/s3-upload.service';\nimport {UploadProviderService} from './services/upload-provider.service';\nimport {OpenZaakService} from './services/open-zaak.service';\nimport {S3Service} from './services/s3.service';\nimport {DownloadService} from './services/download.service';\n\n@NgModule({\n declarations: [],\n imports: [],\n exports: [],\n providers: [\n OpenZaakUploadService,\n S3UploadService,\n UploadProviderService,\n OpenZaakService,\n S3Service,\n DownloadService,\n ],\n})\nexport class ResourceModule {}\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {PermissionRequest} from '@valtimo/access-control';\n\nenum PERMISSION_ACTION {\n view = 'view',\n view_list = 'view_list',\n create = 'create',\n modify = 'modify',\n delete = 'delete',\n}\n\nenum RESOURCE_PERMISSION_RESOURCE {\n resourcePermission = 'com.ritense.resource.authorization.ResourcePermission',\n jsonSchemaDocument = 'com.ritense.document.domain.impl.JsonSchemaDocument',\n}\n\nconst CAN_VIEW_RESOURCE_PERMISSION: PermissionRequest = {\n action: PERMISSION_ACTION.view,\n resource: RESOURCE_PERMISSION_RESOURCE.resourcePermission,\n};\n\nconst CAN_VIEW_LIST_RESOURCE_PERMISSION: PermissionRequest = {\n action: PERMISSION_ACTION.view_list,\n resource: RESOURCE_PERMISSION_RESOURCE.resourcePermission,\n};\n\nconst CAN_CREATE_RESOURCE_PERMISSION: PermissionRequest = {\n action: PERMISSION_ACTION.create,\n resource: RESOURCE_PERMISSION_RESOURCE.resourcePermission,\n};\n\nconst CAN_MODIFY_RESOURCE_PERMISSION: PermissionRequest = {\n action: PERMISSION_ACTION.modify,\n resource: RESOURCE_PERMISSION_RESOURCE.resourcePermission,\n};\n\nconst CAN_DELETE_RESOURCE_PERMISSION: PermissionRequest = {\n action: PERMISSION_ACTION.delete,\n resource: RESOURCE_PERMISSION_RESOURCE.resourcePermission,\n};\n\nexport {\n CAN_VIEW_RESOURCE_PERMISSION,\n CAN_VIEW_LIST_RESOURCE_PERMISSION,\n CAN_CREATE_RESOURCE_PERMISSION,\n CAN_MODIFY_RESOURCE_PERMISSION,\n CAN_DELETE_RESOURCE_PERMISSION,\n RESOURCE_PERMISSION_RESOURCE,\n};\n","/*\n * Copyright 2015-2025 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/*\n * Public API Surface of upload\n */\n\nexport * from './lib/models';\nexport * from './lib/resource.module';\nexport * from './lib/services/open-zaak.service';\nexport * from './lib/services/upload-provider.service';\nexport * from './lib/services/s3.service';\nexport * from './lib/services/download.service';\nexport * from './lib/resource-permissions';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.OpenZaakService","i2","i3","uuidv4","i1.S3Service","i1"],"mappings":";;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;;ACdH;;;;;;;;;;;;;;AAcG;MA0BU,UAAU,CAAA;AASrB,IAAA,WAAA,CAAY,IAAU,EAAE,YAAiB,EAAE,UAAmB,EAAA;QAR9D,IAAE,CAAA,EAAA,GAAY,IAAI;QAIlB,IAAS,CAAA,SAAA,GAAY,IAAI;QACzB,IAAS,CAAA,SAAA,GAAU,IAAI;AAIrB,QAAA,IAAI,CAAC,GAAG,GAAG,kBAAkB,CAAC,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AACjE,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAA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AE,4BAA4B,CAAC,kBAAkB;;;ACrD3D;;;;;;;;;;;;;;AAcG;AAEH;;AAEG;;AClBH;;AAEG;;;;"}
package/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@valtimo/resource" />
5
+ export * from './public-api';
6
+ //# sourceMappingURL=valtimo-resource.d.ts.map
@@ -0,0 +1,4 @@
1
+ export * from './upload.model';
2
+ export * from './uploader.model';
3
+ export * from './open-zaak.model';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/models/index.ts"],"names":[],"mappings":"AAgBA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,137 @@
1
+ export declare class OpenZaakConfig {
2
+ id: string;
3
+ url: string;
4
+ clientId: string;
5
+ secret: string;
6
+ rsin: string;
7
+ }
8
+ export interface ZaakType {
9
+ url: string;
10
+ omschrijving: string;
11
+ omschrijvingGeneriek?: string;
12
+ }
13
+ export interface InformatieObjectType {
14
+ url: string;
15
+ omschrijving: string;
16
+ }
17
+ export interface ZaakTypeLink {
18
+ id: string;
19
+ documentDefinitionName: string;
20
+ zaakTypeUrl: string;
21
+ zaakInstanceLinks: ZaakInstanceLink[];
22
+ createWithDossier: boolean;
23
+ zakenApiPluginConfigurationId: string;
24
+ rsin: string;
25
+ }
26
+ export interface ZaakTypeRequest {
27
+ zaaktype: string;
28
+ }
29
+ export interface CreateZaakTypeLinkRequest {
30
+ caseDefinitionKey: string;
31
+ caseVersionTag: string;
32
+ zaakTypeUrl?: string;
33
+ createWithDossier: boolean;
34
+ zakenApiPluginConfigurationId?: string;
35
+ rsin?: string;
36
+ }
37
+ export interface CreateInformatieObjectTypeLinkRequest {
38
+ documentDefinitionName: string;
39
+ zaakType: string;
40
+ informatieObjectType: string;
41
+ }
42
+ export interface ZaakInstanceLink {
43
+ zaakInstanceUrl: string;
44
+ zaakInstanceId: string;
45
+ documentId: string;
46
+ }
47
+ export interface PreviousSelectedZaak {
48
+ zaakTypeLink: ZaakTypeLink;
49
+ zaakType: ZaakType;
50
+ }
51
+ export interface ZaakOperation {
52
+ type: string;
53
+ label: string;
54
+ }
55
+ export interface ZaakStatusType {
56
+ url?: string;
57
+ omschrijving: string;
58
+ omschrijvingGeneriek?: string;
59
+ statustekst?: string;
60
+ zaakType: string;
61
+ volgnummer: number;
62
+ isEindStatus?: boolean;
63
+ informeren?: boolean;
64
+ }
65
+ export interface ZaakResultType {
66
+ url?: string;
67
+ zaaktype: string;
68
+ omschrijving: string;
69
+ resultaattypeomschrijving: string;
70
+ omschrijvingGeneriek?: string;
71
+ selectielijstklasse: string;
72
+ toelichting?: string;
73
+ archiefnominatie?: Archiefnominatie;
74
+ archiefactietermijn?: string;
75
+ brondatumArchiefprocedure?: BrondatumArchiefprocedure;
76
+ }
77
+ export interface ZaakBesluitType {
78
+ url?: string;
79
+ omschrijving: string;
80
+ }
81
+ export interface BrondatumArchiefprocedure {
82
+ afleidingswijze: Afleidingswijze;
83
+ datumkenmerk?: string;
84
+ einddatumBekend?: boolean;
85
+ objecttype?: Objecttype;
86
+ registratie?: string;
87
+ procestermijn?: string;
88
+ }
89
+ export declare enum Archiefnominatie {
90
+ blijvend_bewaren = "blijven_bewaren",
91
+ vernietigen = "vernietigen"
92
+ }
93
+ export declare enum Afleidingswijze {
94
+ afgehandeld = "afgehandeld",
95
+ ander_datumkenmerk = "ander_datumkenmerk",
96
+ eigenschap = "eigenschap",
97
+ gerelateerde_zaak = "gerelateerde_zaak",
98
+ hoofdzaak = "hoofdzaak",
99
+ ingangsdatum_besluit = "ingangsdatum_besluit",
100
+ termijn = "termijn",
101
+ vervaldatum_besluit = "vervaldatum_besluit",
102
+ zaakobject = "zaakobject"
103
+ }
104
+ export declare enum Objecttype {
105
+ adres = "adres",
106
+ besluit = "besluit",
107
+ buurt = "buurt",
108
+ enkelvoudig_document = "enkelvoudig_document",
109
+ gemeente = "gemeente",
110
+ gemeentelijke_openbare_ruimte = "gemeentelijke_openbare_ruimte",
111
+ huishouden = "huishouden",
112
+ inrichtingselement = "inrichtingselement",
113
+ kadastrale_onroerende_zaak = "kadastrale_onroerende_zaak",
114
+ kunstwerkdeel = "kunstwerkdeel",
115
+ maatschappelijke_activiteit = "maatschappelijke_activiteit",
116
+ medewerker = "medewerker",
117
+ natuurlijk_persoon = "natuurlijk_persoon",
118
+ niet_natuurlijk_persoon = "niet_natuurlijk_persoon",
119
+ openbare_ruimte = "openbare_ruimte",
120
+ organisatorische_eenheid = "organisatorische_eenheid",
121
+ pand = "pand",
122
+ spoorbaandeel = "spoorbaandeel",
123
+ status = "status",
124
+ terreindeel = "terreindeel",
125
+ terrein_gebouwd_object = "terrein_gebouwd_object",
126
+ vestiging = "vestiging",
127
+ waterdeel = "waterdeel",
128
+ wegdeel = "wegdeel",
129
+ wijk = "wijk",
130
+ woonplaats = "woonplaats",
131
+ woz_deelobject = "woz_deelobject",
132
+ woz_object = "woz_object",
133
+ woz_waarde = "woz_waarde",
134
+ zakelijk_recht = "zakelijk_recht",
135
+ overige = "overige"
136
+ }
137
+ //# sourceMappingURL=open-zaak.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-zaak.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/models/open-zaak.model.ts"],"names":[],"mappings":"AAgBA,qBAAa,cAAc;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,C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AY;IACnB,KAAK,UAAU;IACf,oBAAoB,yBAAyB;IAC7C,QAAQ,aAAa;IACrB,6BAA6B,kCAAkC;IAC/D,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IACzC,0BAA0B,+BAA+B;IACzD,aAAa,kBAAkB;IAC/B,2BAA2B,gCAAgC;IAC3D,UAAU,eAAe;IACzB,kBAAkB,uBAAuB;IACzC,uBAAuB,4BAA4B;IACnD,eAAe,oBAAoB;IACnC,wBAAwB,6BAA6B;IACrD,IAAI,SAAS;IACb,aAAa,kBAAkB;IAC/B,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,sBAAsB,2BAA2B;IACjD,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,UAAU,eAAe;IACzB,cAAc,mBAAmB;IACjC,UAAU,eAAe;IACzB,UAAU,eAAe;IACzB,cAAc,mBAAmB;IACjC,OAAO,YAAY;CACpB"}
@@ -0,0 +1,41 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ResourceDto } from './uploader.model';
3
+ interface ResourceFile {
4
+ customUpload?: boolean;
5
+ originalName: string;
6
+ size: number;
7
+ storage: string;
8
+ type?: string;
9
+ isLast?: boolean;
10
+ url?: string;
11
+ data: {
12
+ baseUrl?: string;
13
+ bucketName?: string;
14
+ createdOn: string;
15
+ extension?: string;
16
+ form?: string;
17
+ key?: string;
18
+ name: string;
19
+ project?: string;
20
+ resourceId: string;
21
+ sizeInBytes: number;
22
+ };
23
+ }
24
+ interface UploadService {
25
+ uploadFile(file: File, documentDefinitionName?: string, documentId?: string): Observable<ResourceFile>;
26
+ getResource(resourceId: string): Observable<ResourceDto>;
27
+ checkUploadProcessLink?(caseDefinitionKey: string): Observable<boolean>;
28
+ uploadFileWithMetadata?(file: File, documentId: string, metadata: {
29
+ [key: string]: any;
30
+ }): Observable<void>;
31
+ uploadTempFileWithMetadata?(file: File, metadata: {
32
+ [key: string]: any;
33
+ }): Observable<DocumentenApiFileReference>;
34
+ }
35
+ interface DocumentenApiFileReference {
36
+ filename: string;
37
+ sizeInBytes: number;
38
+ id: string;
39
+ }
40
+ export { ResourceFile, UploadService, DocumentenApiFileReference };
41
+ //# sourceMappingURL=upload.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/models/upload.model.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,UAAU,YAAY;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE;QACJ,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;CACH;AAED,UAAU,aAAa;IACrB,UAAU,CACR,IAAI,EAAE,IAAI,EACV,sBAAsB,CAAC,EAAE,MAAM,EAC/B,UAAU,CAAC,EAAE,MAAM,GAClB,UAAU,CAAC,YAAY,CAAC,CAAC;IAC5B,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;IACzD,sBAAsB,CAAC,CAAC,iBAAiB,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IACxE,sBAAsB,CAAC,CACrB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,GAC7B,UAAU,CAAC,IAAI,CAAC,CAAC;IACpB,0BAA0B,CAAC,CACzB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,GAC7B,UAAU,CAAC,0BAA0B,CAAC,CAAC;CAC3C;AAED,UAAU,0BAA0B;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,OAAO,EAAC,YAAY,EAAE,aAAa,EAAE,0BAA0B,EAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ export interface ResourceDto {
2
+ url: string;
3
+ resource: Resource;
4
+ originalName?: string;
5
+ }
6
+ export interface Resource {
7
+ id?: string;
8
+ key: string;
9
+ name: string;
10
+ sizeInBytes: number;
11
+ extension?: string;
12
+ createdOn?: Date;
13
+ }
14
+ export interface OpenZaakResource {
15
+ resourceId: string;
16
+ informatieObjectUrl: string;
17
+ createdOn: string;
18
+ name: string;
19
+ extension: string;
20
+ sizeInBytes: number;
21
+ }
22
+ export declare class S3Resource implements Resource {
23
+ id?: string;
24
+ key: string;
25
+ name: string;
26
+ sizeInBytes: number;
27
+ extension?: string;
28
+ createdOn?: Date;
29
+ documentId?: string;
30
+ constructor(file: File, preSignedUrl: URL, documentId?: string);
31
+ }
32
+ //# sourceMappingURL=uploader.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uploader.model.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/models/uploader.model.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,QAAQ,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,qBAAa,UAAW,YAAW,QAAQ;IACzC,EAAE,CAAC,EAAE,MAAM,CAAQ;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAQ;IAC1B,SAAS,CAAC,EAAE,IAAI,CAAQ;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;gBAER,IAAI,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,CAAC,EAAE,MAAM;CAS/D"}
@@ -0,0 +1,12 @@
1
+ import { PermissionRequest } from '@valtimo/access-control';
2
+ declare enum RESOURCE_PERMISSION_RESOURCE {
3
+ resourcePermission = "com.ritense.resource.authorization.ResourcePermission",
4
+ jsonSchemaDocument = "com.ritense.document.domain.impl.JsonSchemaDocument"
5
+ }
6
+ declare const CAN_VIEW_RESOURCE_PERMISSION: PermissionRequest;
7
+ declare const CAN_VIEW_LIST_RESOURCE_PERMISSION: PermissionRequest;
8
+ declare const CAN_CREATE_RESOURCE_PERMISSION: PermissionRequest;
9
+ declare const CAN_MODIFY_RESOURCE_PERMISSION: PermissionRequest;
10
+ declare const CAN_DELETE_RESOURCE_PERMISSION: PermissionRequest;
11
+ export { CAN_VIEW_RESOURCE_PERMISSION, CAN_VIEW_LIST_RESOURCE_PERMISSION, CAN_CREATE_RESOURCE_PERMISSION, CAN_MODIFY_RESOURCE_PERMISSION, CAN_DELETE_RESOURCE_PERMISSION, RESOURCE_PERMISSION_RESOURCE, };
12
+ //# sourceMappingURL=resource-permissions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource-permissions.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/resource/src/lib/resource-permissions.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,iBAAiB,EAAC,MAAM,yBAAyB,CAAC;AAU1D,aAAK,4BAA4B;IAC/B,kBAAkB,0DAA0D;IAC5E,kBAAkB,wDAAwD;CAC3E;AAED,QAAA,MAAM,4BAA4B,EAAE,iBAGnC,CAAC;AAEF,QAAA,MAAM,iCAAiC,EAAE,iBAGxC,CAAC;AAEF,QAAA,MAAM,8BAA8B,EAAE,iBAGrC,CAAC;AAEF,QAAA,MAAM,8BAA8B,EAAE,iBAGrC,CAAC;AAEF,QAAA,MAAM,8BAA8B,EAAE,iBAGrC,CAAC;AAEF,OAAO,EACL,4BAA4B,EAC5B,iCAAiC,EACjC,8BAA8B,EAC9B,8BAA8B,EAC9B,8BAA8B,EAC9B,4BAA4B,GAC7B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ResourceModule {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResourceModule, never>;
4
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceModule, never, never, never>;
5
+ static ɵinj: i0.ɵɵInjectorDeclaration<ResourceModule>;
6
+ }
7
+ //# sourceMappingURL=resource.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resource.module.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/resource/src/lib/resource.module.ts"],"names":[],"mappings":";AAwBA,qBAaa,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
@@ -0,0 +1,20 @@
1
+ import { ConfigService } from '@valtimo/shared';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class DownloadService {
6
+ private http;
7
+ private configService;
8
+ constructor(http: HttpClient, configService: ConfigService);
9
+ downloadFile(url: string, name: string, forceDownload?: boolean): Observable<null>;
10
+ /**
11
+ * A window.open won't work for blobs because ad blocker extensions will immediately
12
+ * close the tab again. The method used below will prevent this from happening.
13
+ */
14
+ private openBlobInNewTab;
15
+ private openDownloadLink;
16
+ private isFileTypeSupportedForNewWindow;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<DownloadService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<DownloadService>;
19
+ }
20
+ //# sourceMappingURL=download.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"download.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/services/download.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAC,UAAU,EAAU,MAAM,MAAM,CAAC;;AAEzC,qBAGa,eAAe;IAExB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,aAAa;gBADb,IAAI,EAAE,UAAU,EAChB,aAAa,EAAE,aAAa;IAGtC,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC;IA2BlF;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAYxB,OAAO,CAAC,gBAAgB;IASxB,OAAO,CAAC,+BAA+B;yCA1D5B,eAAe;6CAAf,eAAe;CAkE3B"}
@@ -0,0 +1,26 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { ConfigService } from '@valtimo/shared';
3
+ import { Observable } from 'rxjs';
4
+ import { DocumentenApiFileReference, ResourceDto, ResourceFile, UploadService } from '../models';
5
+ import { OpenZaakService } from './open-zaak.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class OpenZaakUploadService implements UploadService {
8
+ private readonly openZaakService;
9
+ private http;
10
+ private configService;
11
+ private valtimoApiConfig;
12
+ constructor(openZaakService: OpenZaakService, http: HttpClient, configService: ConfigService);
13
+ uploadFile(file: File, documentDefinitionName: string): Observable<ResourceFile>;
14
+ uploadFileWithMetadata(file: File, documentId: string, metadata: {
15
+ [key: string]: any;
16
+ }): Observable<void>;
17
+ uploadTempFileWithMetadata(file: File, metadata: {
18
+ [key: string]: any;
19
+ }): Observable<DocumentenApiFileReference>;
20
+ getResource(resourceId: string): Observable<ResourceDto>;
21
+ checkUploadProcessLink(caseDefinitionKey: string): Observable<boolean>;
22
+ private getResourceFile;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<OpenZaakUploadService, never>;
24
+ static ɵprov: i0.ɵɵInjectableDeclaration<OpenZaakUploadService>;
25
+ }
26
+ //# sourceMappingURL=open-zaak-upload.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-zaak-upload.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/services/open-zaak-upload.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,EACL,0BAA0B,EAE1B,WAAW,EACX,YAAY,EACZ,aAAa,EACd,MAAM,WAAW,CAAC;AACnB,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;;AAGpD,qBACa,qBAAsB,YAAW,aAAa;IAIvD,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,aAAa;IALvB,OAAO,CAAC,gBAAgB,CAAM;gBAGX,eAAe,EAAE,eAAe,EACzC,IAAI,EAAE,UAAU,EAChB,aAAa,EAAE,aAAa;IAKtC,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,sBAAsB,EAAE,MAAM,GAAG,UAAU,CAAC,YAAY,CAAC;IAMhF,sBAAsB,CACpB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,GAC7B,UAAU,CAAC,IAAI,CAAC;IAQnB,0BAA0B,CACxB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,GAC7B,UAAU,CAAC,0BAA0B,CAAC;IAOzC,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC;IAIxD,sBAAsB,CAAC,iBAAiB,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC;IAUtE,OAAO,CAAC,eAAe;yCArDZ,qBAAqB;6CAArB,qBAAqB;CAsEjC"}
@@ -0,0 +1,33 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { ConfigService } from '@valtimo/shared';
3
+ import { Observable } from 'rxjs';
4
+ import { CreateZaakTypeLinkRequest, DocumentenApiFileReference, InformatieObjectType, OpenZaakConfig, OpenZaakResource, ResourceDto, ZaakType, ZaakTypeLink, ZaakTypeRequest } from '../models';
5
+ import * as i0 from "@angular/core";
6
+ export declare class OpenZaakService {
7
+ private http;
8
+ private configService;
9
+ private valtimoApiConfig;
10
+ private catalogus;
11
+ constructor(http: HttpClient, configService: ConfigService);
12
+ getOpenZaakConfig(): Observable<OpenZaakConfig>;
13
+ getResource(resourceId: string): Observable<ResourceDto>;
14
+ getZaakTypes(): Observable<ZaakType[]>;
15
+ getBesluittypen(): Observable<any>;
16
+ getInformatieObjectTypes(): Observable<InformatieObjectType[]>;
17
+ getZaakTypeLink(caseDefinitionKey: string, caseVersionTag: string): Observable<ZaakTypeLink>;
18
+ createZaakTypeLink(request: CreateZaakTypeLinkRequest): Observable<any>;
19
+ deleteZaakTypeLink(caseDefinitionKey: string, caseVersionTag: string): Observable<any>;
20
+ getZaakTypeLinkListByProcess(processDefinitionKey: string): Observable<Array<ZaakTypeLink>>;
21
+ getStatusTypes(zaakTypeRequest: ZaakTypeRequest): Observable<any>;
22
+ getStatusResults(zaakTypeRequest: any): Observable<any>;
23
+ upload(file: File, documentDefinitionName: string): Observable<OpenZaakResource>;
24
+ uploadWithMetadata(file: File, documentId: string, metadata: {
25
+ [key: string]: any;
26
+ }): Observable<void>;
27
+ uploadTempFileWithMetadata(file: File, metadata: {
28
+ [key: string]: any;
29
+ }): Observable<DocumentenApiFileReference>;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<OpenZaakService, never>;
31
+ static ɵprov: i0.ɵɵInjectableDeclaration<OpenZaakService>;
32
+ }
33
+ //# sourceMappingURL=open-zaak.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open-zaak.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/services/open-zaak.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,eAAe,EAChB,MAAM,WAAW,CAAC;;AAEnB,qBAGa,eAAe;IAKxB,OAAO,CAAC,IAAI;I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AM,GAAG,GAAG,CAAA;KAAC,GAC7B,UAAU,CAAC,0BAA0B,CAAC;yCA1H9B,eAAe;6CAAf,eAAe;CA+I3B"}
@@ -0,0 +1,14 @@
1
+ import { Observable } from 'rxjs';
2
+ import { ResourceDto, ResourceFile, UploadService } from '../models';
3
+ import { S3Service } from './s3.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class S3UploadService implements UploadService {
6
+ private readonly s3Service;
7
+ constructor(s3Service: S3Service);
8
+ uploadFile(file: File, _: any, documentId?: string): Observable<ResourceFile>;
9
+ getResource(resourceId: string): Observable<ResourceDto>;
10
+ private getResourceFile;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<S3UploadService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<S3UploadService>;
13
+ }
14
+ //# sourceMappingURL=s3-upload.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"s3-upload.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/services/s3-upload.service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAEhC,OAAO,EAAC,WAAW,EAAE,YAAY,EAAc,aAAa,EAAC,MAAM,WAAW,CAAC;AAG/E,OAAO,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;;AAEvC,qBACa,eAAgB,YAAW,aAAa;IACvC,OAAO,CAAC,QAAQ,CAAC,SAAS;gBAAT,SAAS,EAAE,SAAS;IAEjD,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,KAAA,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,YAAY,CAAC;IAmBxE,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC;IAIxD,OAAO,CAAC,eAAe;yCA1BZ,eAAe;6CAAf,eAAe;CA4C3B"}
@@ -0,0 +1,19 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { ConfigService } from '@valtimo/shared';
4
+ import { Resource, S3Resource, ResourceDto } from '../models';
5
+ import * as i0 from "@angular/core";
6
+ export declare class S3Service {
7
+ private http;
8
+ private configService;
9
+ private valtimoApiConfig;
10
+ constructor(http: HttpClient, configService: ConfigService);
11
+ getPreSignedUrl(fileName: string): Observable<string>;
12
+ upload(url: URL, file: File): Observable<any>;
13
+ registerResource(s3ResourceDTO: S3Resource): Observable<Resource>;
14
+ get(resourceId: string): Observable<ResourceDto>;
15
+ delete(resourceId: string): Observable<any>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<S3Service, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<S3Service>;
18
+ }
19
+ //# sourceMappingURL=s3.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"s3.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/services/s3.service.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAC,UAAU,EAAc,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAChC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAE,UAAU,EAAE,WAAW,EAAC,MAAM,WAAW,CAAC;;AAE5D,qBAGa,SAAS;IAIlB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,aAAa;IAJvB,OAAO,CAAC,gBAAgB,CAAM;gBAGpB,IAAI,EAAE,UAAU,EAChB,aAAa,EAAE,aAAa;IAK/B,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IASrD,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,GAAG,UAAU,CAAC,GAAG,CAAC;IAK7C,gBAAgB,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,CAAC,QAAQ,CAAC;IAOjE,GAAG,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC;IAQhD,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC;yCAvCvC,SAAS;6CAAT,SAAS;CA6CrB"}
@@ -0,0 +1,25 @@
1
+ import { Injector } from '@angular/core';
2
+ import { NGXLogger } from 'ngx-logger';
3
+ import { DocumentenApiFileReference, ResourceDto, ResourceFile, UploadService } from '../models';
4
+ import { ConfigService } from '@valtimo/shared';
5
+ import { Observable } from 'rxjs';
6
+ import * as i0 from "@angular/core";
7
+ export declare class UploadProviderService implements UploadService {
8
+ private configService;
9
+ private injector;
10
+ private logger;
11
+ private readonly uploadService;
12
+ constructor(configService: ConfigService, injector: Injector, logger: NGXLogger);
13
+ uploadFile(file: File, documentDefinitionName?: string, documentId?: string): Observable<ResourceFile>;
14
+ getResource(resourceId: string): Observable<ResourceDto>;
15
+ checkUploadProcessLink(caseDefinitionKey: string): Observable<boolean>;
16
+ uploadFileWithMetadata(file: File, documentId: string, metadata: {
17
+ [key: string]: any;
18
+ }): Observable<void>;
19
+ uploadTempFileWithMetadata(file: File, metadata: {
20
+ [key: string]: any;
21
+ }): Observable<DocumentenApiFileReference>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<UploadProviderService, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<UploadProviderService>;
24
+ }
25
+ //# sourceMappingURL=upload-provider.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-provider.service.d.ts","sourceRoot":"","sources":["../../../../../projects/valtimo/resource/src/lib/services/upload-provider.service.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAa,QAAQ,EAAC,MAAM,eAAe,CAAC;AACnD,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AACrC,OAAO,EAAC,0BAA0B,EAAE,WAAW,EAAE,YAAY,EAAE,aAAa,EAAC,MAAM,WAAW,CAAC;AAC/F,OAAO,EAAC,aAAa,EAAiB,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAC,UAAU,EAAK,MAAM,MAAM,CAAC;;AAIpC,qBAGa,qBAAsB,YAAW,aAAa;IAIvD,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,MAAM;IALhB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAgB;gBAGpC,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,SAAS;IAoB3B,UAAU,CACR,IAAI,EAAE,IAAI,EACV,sBAAsB,CAAC,EAAE,MAAM,EAC/B,UAAU,CAAC,EAAE,MAAM,GAClB,UAAU,CAAC,YAAY,CAAC;IAI3B,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC;IAIxD,sBAAsB,CAAC,iBAAiB,EAAE,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC;IAQtE,sBAAsB,CACpB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,GAC7B,UAAU,CAAC,IAAI,CAAC;IAQnB,0BAA0B,CACxB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAC,GAC7B,UAAU,CAAC,0BAA0B,CAAC;yCA7D9B,qBAAqB;6CAArB,qBAAqB;CAoEjC"}
package/package.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "@valtimo/resource",
3
+ "license": "EUPL-1.2",
4
+ "version": "0.0.0",
5
+ "peerDependencies": {
6
+ "@angular/common": "^19.2.8",
7
+ "@angular/core": "^19.2.8"
8
+ },
9
+ "dependencies": {
10
+ "tslib": "2.8.1"
11
+ },
12
+ "module": "fesm2022/valtimo-resource.mjs",
13
+ "typings": "index.d.ts",
14
+ "exports": {
15
+ "./package.json": {
16
+ "default": "./package.json"
17
+ },
18
+ ".": {
19
+ "types": "./index.d.ts",
20
+ "default": "./fesm2022/valtimo-resource.mjs"
21
+ }
22
+ },
23
+ "sideEffects": false
24
+ }
@@ -0,0 +1,8 @@
1
+ export * from './lib/models';
2
+ export * from './lib/resource.module';
3
+ export * from './lib/services/open-zaak.service';
4
+ export * from './lib/services/upload-provider.service';
5
+ export * from './lib/services/s3.service';
6
+ export * from './lib/services/download.service';
7
+ export * from './lib/resource-permissions';
8
+ //# sourceMappingURL=public-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/resource/src/public-api.ts"],"names":[],"mappings":"AAoBA,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valtimo-resource.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/resource/src/valtimo-resource.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}