@23blocks/block-files 3.5.0 → 3.6.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.
package/dist/index.esm.js
CHANGED
|
@@ -1174,7 +1174,8 @@ const fileAccessRequestMapper = {
|
|
|
1174
1174
|
fileTags: createFileTagsService(transport),
|
|
1175
1175
|
delegations: createDelegationsService(transport),
|
|
1176
1176
|
fileAccess: createFileAccessService(transport),
|
|
1177
|
-
fileAccessRequests: createFileAccessRequestsService(transport)
|
|
1177
|
+
fileAccessRequests: createFileAccessRequestsService(transport),
|
|
1178
|
+
health: ()=>transport.get('/health')
|
|
1178
1179
|
};
|
|
1179
1180
|
}
|
|
1180
1181
|
const filesBlockMetadata = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Transport, BlockConfig, BlockMetadata } from '@23blocks/contracts';
|
|
1
|
+
import type { Transport, BlockConfig, BlockMetadata, HealthCheckResponse } from '@23blocks/contracts';
|
|
2
2
|
import { type StorageFilesService, type EntityFilesService, type FileSchemasService, type UserFilesService, type FileCategoriesService, type FileTagsService, type DelegationsService, type FileAccessService, type FileAccessRequestsService } from './services/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Configuration for the Files block.
|
|
@@ -31,6 +31,8 @@ export interface FilesBlock {
|
|
|
31
31
|
fileAccess: FileAccessService;
|
|
32
32
|
/** File access request management */
|
|
33
33
|
fileAccessRequests: FileAccessRequestsService;
|
|
34
|
+
/** Ping the service health endpoint */
|
|
35
|
+
health(): Promise<HealthCheckResponse>;
|
|
34
36
|
}
|
|
35
37
|
/**
|
|
36
38
|
* Create the Files block.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.block.d.ts","sourceRoot":"","sources":["../../../src/lib/files.block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"files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