@23blocks/block-content 3.4.0 → 3.5.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
|
@@ -1392,7 +1392,8 @@ function createSeriesService(transport, _config) {
|
|
|
1392
1392
|
users: createContentUsersService(transport),
|
|
1393
1393
|
moderation: createModerationService(transport),
|
|
1394
1394
|
activity: createActivityService(transport),
|
|
1395
|
-
series: createSeriesService(transport)
|
|
1395
|
+
series: createSeriesService(transport),
|
|
1396
|
+
health: ()=>transport.get('/health')
|
|
1396
1397
|
};
|
|
1397
1398
|
}
|
|
1398
1399
|
const contentBlockMetadata = {
|
|
@@ -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 PostsService, type PostVersionsService, type PostTemplatesService, type CommentsService, type CategoriesService, type TagsService, type ContentUsersService, type ModerationService, type ActivityService, type SeriesService } from './services/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Configuration for the Content block.
|
|
@@ -33,6 +33,8 @@ export interface ContentBlock {
|
|
|
33
33
|
activity: ActivityService;
|
|
34
34
|
/** Content series management */
|
|
35
35
|
series: SeriesService;
|
|
36
|
+
/** Ping the service health endpoint */
|
|
37
|
+
health(): Promise<HealthCheckResponse>;
|
|
36
38
|
}
|
|
37
39
|
/**
|
|
38
40
|
* Create the Content block.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content.block.d.ts","sourceRoot":"","sources":["../../../src/lib/content.block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"content.block.d.ts","sourceRoot":"","sources":["../../../src/lib/content.block.ts"],"names":[],"mappings":"AAAA,O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