@23blocks/block-content 3.3.4 → 3.3.6
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 +156 -10
- package/dist/src/index.d.ts +5 -5
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/lib/content.block.d.ts +2 -1
- package/dist/src/lib/content.block.d.ts.map +1 -1
- package/dist/src/lib/mappers/activity.mapper.d.ts +1 -1
- package/dist/src/lib/mappers/activity.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/category.mapper.d.ts +1 -1
- package/dist/src/lib/mappers/category.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/comment.mapper.d.ts +1 -1
- package/dist/src/lib/mappers/comment.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/index.d.ts +10 -9
- package/dist/src/lib/mappers/index.d.ts.map +1 -1
- package/dist/src/lib/mappers/moderation.mapper.d.ts +1 -1
- package/dist/src/lib/mappers/moderation.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/post-template.mapper.d.ts +5 -0
- package/dist/src/lib/mappers/post-template.mapper.d.ts.map +1 -0
- package/dist/src/lib/mappers/post-version.mapper.d.ts +1 -1
- package/dist/src/lib/mappers/post-version.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/post.mapper.d.ts +1 -1
- package/dist/src/lib/mappers/post.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/series.mapper.d.ts +1 -1
- package/dist/src/lib/mappers/series.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/tag.mapper.d.ts +1 -1
- package/dist/src/lib/mappers/tag.mapper.d.ts.map +1 -1
- package/dist/src/lib/mappers/user.mapper.d.ts +1 -1
- package/dist/src/lib/mappers/user.mapper.d.ts.map +1 -1
- package/dist/src/lib/services/activity.service.d.ts +2 -2
- package/dist/src/lib/services/activity.service.d.ts.map +1 -1
- package/dist/src/lib/services/categories.service.d.ts +1 -1
- package/dist/src/lib/services/categories.service.d.ts.map +1 -1
- package/dist/src/lib/services/comments.service.d.ts +1 -1
- package/dist/src/lib/services/comments.service.d.ts.map +1 -1
- package/dist/src/lib/services/index.d.ts +10 -9
- package/dist/src/lib/services/index.d.ts.map +1 -1
- package/dist/src/lib/services/moderation.service.d.ts +1 -1
- package/dist/src/lib/services/moderation.service.d.ts.map +1 -1
- package/dist/src/lib/services/post-templates.service.d.ts +13 -0
- package/dist/src/lib/services/post-templates.service.d.ts.map +1 -0
- package/dist/src/lib/services/post-versions.service.d.ts +1 -1
- package/dist/src/lib/services/post-versions.service.d.ts.map +1 -1
- package/dist/src/lib/services/posts.service.d.ts +3 -1
- package/dist/src/lib/services/posts.service.d.ts.map +1 -1
- package/dist/src/lib/services/series.service.d.ts +2 -2
- package/dist/src/lib/services/series.service.d.ts.map +1 -1
- package/dist/src/lib/services/tags.service.d.ts +1 -1
- package/dist/src/lib/services/tags.service.d.ts.map +1 -1
- package/dist/src/lib/services/users.service.d.ts +3 -3
- package/dist/src/lib/services/users.service.d.ts.map +1 -1
- package/dist/src/lib/types/index.d.ts +10 -9
- package/dist/src/lib/types/index.d.ts.map +1 -1
- package/dist/src/lib/types/post-template.d.ts +53 -0
- package/dist/src/lib/types/post-template.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -26,7 +26,9 @@ import { _ } from '@swc/helpers/_/_extends';
|
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Decode a single resource from a JSON:API document
|
|
29
|
-
|
|
29
|
+
* Accepts unknown to handle transport layer responses that return unknown
|
|
30
|
+
*/ function decodeOne(response, mapper) {
|
|
31
|
+
const document = response;
|
|
30
32
|
if (!isSingleResourceDocument(document)) {
|
|
31
33
|
throw new Error('Expected single resource document');
|
|
32
34
|
}
|
|
@@ -35,7 +37,9 @@ import { _ } from '@swc/helpers/_/_extends';
|
|
|
35
37
|
}
|
|
36
38
|
/**
|
|
37
39
|
* Decode multiple resources from a JSON:API document
|
|
38
|
-
|
|
40
|
+
* Accepts unknown to handle transport layer responses that return unknown
|
|
41
|
+
*/ function decodeMany(response, mapper) {
|
|
42
|
+
const document = response;
|
|
39
43
|
if (!isCollectionDocument(document)) {
|
|
40
44
|
throw new Error('Expected collection document');
|
|
41
45
|
}
|
|
@@ -55,7 +59,9 @@ import { _ } from '@swc/helpers/_/_extends';
|
|
|
55
59
|
}
|
|
56
60
|
/**
|
|
57
61
|
* Decode a paginated collection from a JSON:API document
|
|
58
|
-
|
|
62
|
+
* Accepts unknown to handle transport layer responses that return unknown
|
|
63
|
+
*/ function decodePageResult(response, mapper) {
|
|
64
|
+
const document = response;
|
|
59
65
|
const data = isCollectionDocument(document) ? decodeMany(document, mapper) : [];
|
|
60
66
|
return {
|
|
61
67
|
data,
|
|
@@ -170,6 +176,70 @@ const postMapper = {
|
|
|
170
176
|
})
|
|
171
177
|
};
|
|
172
178
|
|
|
179
|
+
function parseFieldType(value) {
|
|
180
|
+
const str = parseString(value);
|
|
181
|
+
if (str === 'object' || str === 'array' || str === 'string' || str === 'number' || str === 'boolean') {
|
|
182
|
+
return str;
|
|
183
|
+
}
|
|
184
|
+
return 'string';
|
|
185
|
+
}
|
|
186
|
+
function parseTemplateFields(value) {
|
|
187
|
+
if (!Array.isArray(value)) {
|
|
188
|
+
return [];
|
|
189
|
+
}
|
|
190
|
+
return value.map((f)=>({
|
|
191
|
+
key: parseString(f['key']) || '',
|
|
192
|
+
label: parseString(f['label']) || '',
|
|
193
|
+
type: parseFieldType(f['type']),
|
|
194
|
+
required: parseBoolean(f['required']),
|
|
195
|
+
description: parseString(f['description']),
|
|
196
|
+
children: f['children'] ? parseTemplateFields(f['children']) : undefined
|
|
197
|
+
}));
|
|
198
|
+
}
|
|
199
|
+
const postTemplateMapper = {
|
|
200
|
+
type: 'PostTemplate',
|
|
201
|
+
map: (resource)=>({
|
|
202
|
+
id: resource.id,
|
|
203
|
+
uniqueId: parseString(resource.attributes['unique_id']) || '',
|
|
204
|
+
createdAt: parseDate(resource.attributes['created_at']) || new Date(),
|
|
205
|
+
updatedAt: parseDate(resource.attributes['updated_at']) || new Date(),
|
|
206
|
+
name: parseString(resource.attributes['name']) || '',
|
|
207
|
+
slug: parseString(resource.attributes['slug']),
|
|
208
|
+
description: parseString(resource.attributes['description']),
|
|
209
|
+
status: parseStatus(resource.attributes['status']),
|
|
210
|
+
enabled: parseBoolean(resource.attributes['enabled']),
|
|
211
|
+
fields: parseTemplateFields(resource.attributes['fields']),
|
|
212
|
+
payload: resource.attributes['payload']
|
|
213
|
+
})
|
|
214
|
+
};
|
|
215
|
+
function parseValidationIssues(value) {
|
|
216
|
+
if (!Array.isArray(value)) {
|
|
217
|
+
return [];
|
|
218
|
+
}
|
|
219
|
+
return value.map((issue)=>({
|
|
220
|
+
key: parseString(issue['key']) || '',
|
|
221
|
+
label: parseString(issue['label']),
|
|
222
|
+
message: parseString(issue['message'])
|
|
223
|
+
}));
|
|
224
|
+
}
|
|
225
|
+
function parseValidationResult(response) {
|
|
226
|
+
const data = response == null ? void 0 : response['data'];
|
|
227
|
+
if (!data) {
|
|
228
|
+
return {
|
|
229
|
+
valid: false,
|
|
230
|
+
missingRequired: [],
|
|
231
|
+
missingOptional: [],
|
|
232
|
+
warnings: []
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
return {
|
|
236
|
+
valid: parseBoolean(data['valid']),
|
|
237
|
+
missingRequired: parseValidationIssues(data['missing_required']),
|
|
238
|
+
missingOptional: parseValidationIssues(data['missing_optional']),
|
|
239
|
+
warnings: parseValidationIssues(data['warnings'])
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
|
|
173
243
|
function createPostsService(transport, _config) {
|
|
174
244
|
const buildQueryParams = (params)=>{
|
|
175
245
|
const queryParams = {};
|
|
@@ -341,6 +411,15 @@ function createPostsService(transport, _config) {
|
|
|
341
411
|
async unfollow (uniqueId) {
|
|
342
412
|
const response = await transport.delete(`/posts/${uniqueId}/unfollow`);
|
|
343
413
|
return decodeOne(response, postMapper);
|
|
414
|
+
},
|
|
415
|
+
// Validation
|
|
416
|
+
async validate (uniqueId, templateUniqueId) {
|
|
417
|
+
const response = await transport.put(`/posts/${uniqueId}/validate`, {}, {
|
|
418
|
+
params: {
|
|
419
|
+
template_unique_id: templateUniqueId
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
return parseValidationResult(response);
|
|
344
423
|
}
|
|
345
424
|
};
|
|
346
425
|
}
|
|
@@ -416,18 +495,20 @@ function createPostVersionsService(transport, _config) {
|
|
|
416
495
|
return {
|
|
417
496
|
data: versions.map((v)=>postVersionMapper.map(v)),
|
|
418
497
|
meta: {
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
perPage: versions.length
|
|
498
|
+
totalCount: versions.length,
|
|
499
|
+
currentPage: 1,
|
|
500
|
+
perPage: versions.length,
|
|
501
|
+
totalPages: 1
|
|
422
502
|
}
|
|
423
503
|
};
|
|
424
504
|
}
|
|
425
505
|
return {
|
|
426
506
|
data: [],
|
|
427
507
|
meta: {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
perPage: 10
|
|
508
|
+
totalCount: 0,
|
|
509
|
+
currentPage: 1,
|
|
510
|
+
perPage: 10,
|
|
511
|
+
totalPages: 0
|
|
431
512
|
}
|
|
432
513
|
};
|
|
433
514
|
},
|
|
@@ -454,6 +535,69 @@ function createPostVersionsService(transport, _config) {
|
|
|
454
535
|
};
|
|
455
536
|
}
|
|
456
537
|
|
|
538
|
+
function createPostTemplatesService(transport, _config) {
|
|
539
|
+
return {
|
|
540
|
+
async list (params) {
|
|
541
|
+
const queryParams = {};
|
|
542
|
+
if (params == null ? void 0 : params.page) queryParams['page'] = String(params.page);
|
|
543
|
+
if (params == null ? void 0 : params.perPage) queryParams['records'] = String(params.perPage);
|
|
544
|
+
if (params == null ? void 0 : params.search) queryParams['search'] = params.search;
|
|
545
|
+
const response = await transport.get('/post_templates', {
|
|
546
|
+
params: queryParams
|
|
547
|
+
});
|
|
548
|
+
return decodePageResult(response, postTemplateMapper);
|
|
549
|
+
},
|
|
550
|
+
async get (uniqueId) {
|
|
551
|
+
const response = await transport.get(`/post_templates/${uniqueId}`);
|
|
552
|
+
return decodeOne(response, postTemplateMapper);
|
|
553
|
+
},
|
|
554
|
+
async create (data) {
|
|
555
|
+
const response = await transport.post('/post_templates', {
|
|
556
|
+
post_template: {
|
|
557
|
+
name: data.name,
|
|
558
|
+
slug: data.slug,
|
|
559
|
+
description: data.description,
|
|
560
|
+
fields: data.fields.map((f)=>({
|
|
561
|
+
key: f.key,
|
|
562
|
+
label: f.label,
|
|
563
|
+
type: f.type,
|
|
564
|
+
required: f.required,
|
|
565
|
+
description: f.description,
|
|
566
|
+
children: f.children
|
|
567
|
+
})),
|
|
568
|
+
payload: data.payload
|
|
569
|
+
}
|
|
570
|
+
});
|
|
571
|
+
return decodeOne(response, postTemplateMapper);
|
|
572
|
+
},
|
|
573
|
+
async update (uniqueId, data) {
|
|
574
|
+
var _data_fields;
|
|
575
|
+
const response = await transport.put(`/post_templates/${uniqueId}`, {
|
|
576
|
+
post_template: {
|
|
577
|
+
name: data.name,
|
|
578
|
+
slug: data.slug,
|
|
579
|
+
description: data.description,
|
|
580
|
+
fields: (_data_fields = data.fields) == null ? void 0 : _data_fields.map((f)=>({
|
|
581
|
+
key: f.key,
|
|
582
|
+
label: f.label,
|
|
583
|
+
type: f.type,
|
|
584
|
+
required: f.required,
|
|
585
|
+
description: f.description,
|
|
586
|
+
children: f.children
|
|
587
|
+
})),
|
|
588
|
+
enabled: data.enabled,
|
|
589
|
+
status: data.status,
|
|
590
|
+
payload: data.payload
|
|
591
|
+
}
|
|
592
|
+
});
|
|
593
|
+
return decodeOne(response, postTemplateMapper);
|
|
594
|
+
},
|
|
595
|
+
async delete (uniqueId) {
|
|
596
|
+
await transport.delete(`/post_templates/${uniqueId}`);
|
|
597
|
+
}
|
|
598
|
+
};
|
|
599
|
+
}
|
|
600
|
+
|
|
457
601
|
const commentMapper = {
|
|
458
602
|
type: 'Comment',
|
|
459
603
|
map: (resource)=>({
|
|
@@ -1233,6 +1377,7 @@ function createContentBlock(transport, config) {
|
|
|
1233
1377
|
return {
|
|
1234
1378
|
posts: createPostsService(transport),
|
|
1235
1379
|
postVersions: createPostVersionsService(transport),
|
|
1380
|
+
postTemplates: createPostTemplatesService(transport),
|
|
1236
1381
|
comments: createCommentsService(transport),
|
|
1237
1382
|
categories: createCategoriesService(transport),
|
|
1238
1383
|
tags: createTagsService(transport),
|
|
@@ -1249,6 +1394,7 @@ const contentBlockMetadata = {
|
|
|
1249
1394
|
resourceTypes: [
|
|
1250
1395
|
'Post',
|
|
1251
1396
|
'PostVersion',
|
|
1397
|
+
'PostTemplate',
|
|
1252
1398
|
'Comment',
|
|
1253
1399
|
'Category',
|
|
1254
1400
|
'Tag',
|
|
@@ -1260,4 +1406,4 @@ const contentBlockMetadata = {
|
|
|
1260
1406
|
]
|
|
1261
1407
|
};
|
|
1262
1408
|
|
|
1263
|
-
export { activityMapper, categoryMapper, commentMapper, contentBlockMetadata, contentFlagMapper, contentUserMapper, createActivityService, createCategoriesService, createCommentsService, createContentBlock, createContentUsersService, createModerationService, createPostVersionsService, createPostsService, createSeriesService, createTagsService, followingMapper, postMapper, postVersionMapper, seriesMapper, tagMapper };
|
|
1409
|
+
export { activityMapper, categoryMapper, commentMapper, contentBlockMetadata, contentFlagMapper, contentUserMapper, createActivityService, createCategoriesService, createCommentsService, createContentBlock, createContentUsersService, createModerationService, createPostTemplatesService, createPostVersionsService, createPostsService, createSeriesService, createTagsService, followingMapper, parseValidationResult, postMapper, postTemplateMapper, postVersionMapper, seriesMapper, tagMapper };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { createContentBlock, contentBlockMetadata } from './lib/content.block';
|
|
2
|
-
export type { ContentBlock, ContentBlockConfig } from './lib/content.block';
|
|
3
|
-
export * from './lib/types';
|
|
4
|
-
export * from './lib/services';
|
|
5
|
-
export * from './lib/mappers';
|
|
1
|
+
export { createContentBlock, contentBlockMetadata } from './lib/content.block.js';
|
|
2
|
+
export type { ContentBlock, ContentBlockConfig } from './lib/content.block.js';
|
|
3
|
+
export * from './lib/types/index.js';
|
|
4
|
+
export * from './lib/services/index.js';
|
|
5
|
+
export * from './lib/mappers/index.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAClF,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAG/E,cAAc,sBAAsB,CAAC;AAGrC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Transport, BlockConfig, BlockMetadata } from '@23blocks/contracts';
|
|
2
|
-
import { type PostsService, type PostVersionsService, type CommentsService, type CategoriesService, type TagsService, type ContentUsersService, type ModerationService, type ActivityService, type SeriesService } from './services';
|
|
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
|
export interface ContentBlockConfig extends BlockConfig {
|
|
4
4
|
appId: string;
|
|
5
5
|
tenantId?: string;
|
|
@@ -7,6 +7,7 @@ export interface ContentBlockConfig extends BlockConfig {
|
|
|
7
7
|
export interface ContentBlock {
|
|
8
8
|
posts: PostsService;
|
|
9
9
|
postVersions: PostVersionsService;
|
|
10
|
+
postTemplates: PostTemplatesService;
|
|
10
11
|
comments: CommentsService;
|
|
11
12
|
categories: CategoriesService;
|
|
12
13
|
tags: TagsService;
|
|
@@ -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;AACjF,OAAO,
|
|
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;AACjF,OAAO,EAWL,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,aAAa,EACnB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,YAAY,CAAC;IACpB,YAAY,EAAE,mBAAmB,CAAC;IAClC,aAAa,EAAE,oBAAoB,CAAC;IACpC,QAAQ,EAAE,eAAe,CAAC;IAC1B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,mBAAmB,CAAC;IAC3B,UAAU,EAAE,iBAAiB,CAAC;IAC9B,QAAQ,EAAE,eAAe,CAAC;IAC1B,MAAM,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,kBAAkB,GACzB,YAAY,CAad;AAED,eAAO,MAAM,oBAAoB,EAAE,aAiBlC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ResourceMapper } from '@23blocks/jsonapi-codec';
|
|
2
|
-
import type { Activity } from '../types/activity';
|
|
2
|
+
import type { Activity } from '../types/activity.js';
|
|
3
3
|
export declare const activityMapper: ResourceMapper<Activity>;
|
|
4
4
|
//# sourceMappingURL=activity.mapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/activity.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,
|
|
1
|
+
{"version":3,"file":"activity.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/activity.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,sBAAsB,CAAC;AAGnE,eAAO,MAAM,cAAc,EAAE,cAAc,CAAC,QAAQ,CAoBnD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ResourceMapper } from '@23blocks/jsonapi-codec';
|
|
2
|
-
import type { Category } from '../types/category';
|
|
2
|
+
import type { Category } from '../types/category.js';
|
|
3
3
|
export declare const categoryMapper: ResourceMapper<Category>;
|
|
4
4
|
//# sourceMappingURL=category.mapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"category.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/category.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"category.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/category.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAGrD,eAAO,MAAM,cAAc,EAAE,cAAc,CAAC,QAAQ,CA6BnD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ResourceMapper } from '@23blocks/jsonapi-codec';
|
|
2
|
-
import type { Comment } from '../types/comment';
|
|
2
|
+
import type { Comment } from '../types/comment.js';
|
|
3
3
|
export declare const commentMapper: ResourceMapper<Comment>;
|
|
4
4
|
//# sourceMappingURL=comment.mapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comment.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/comment.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"comment.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/comment.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAGnD,eAAO,MAAM,aAAa,EAAE,cAAc,CAAC,OAAO,CA8CjD,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export * from './post.mapper';
|
|
2
|
-
export * from './post-version.mapper';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
1
|
+
export * from './post.mapper.js';
|
|
2
|
+
export * from './post-version.mapper.js';
|
|
3
|
+
export * from './post-template.mapper.js';
|
|
4
|
+
export * from './comment.mapper.js';
|
|
5
|
+
export * from './category.mapper.js';
|
|
6
|
+
export * from './tag.mapper.js';
|
|
7
|
+
export * from './user.mapper.js';
|
|
8
|
+
export * from './moderation.mapper.js';
|
|
9
|
+
export * from './activity.mapper.js';
|
|
10
|
+
export * from './series.mapper.js';
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ResourceMapper } from '@23blocks/jsonapi-codec';
|
|
2
|
-
import type { ContentFlag } from '../types/moderation';
|
|
2
|
+
import type { ContentFlag } from '../types/moderation.js';
|
|
3
3
|
export declare const contentFlagMapper: ResourceMapper<ContentFlag>;
|
|
4
4
|
//# sourceMappingURL=moderation.mapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moderation.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/moderation.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"moderation.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/moderation.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAG1D,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,WAAW,CAezD,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ResourceMapper } from '@23blocks/jsonapi-codec';
|
|
2
|
+
import type { PostTemplate, PostValidationResult } from '../types/post-template.js';
|
|
3
|
+
export declare const postTemplateMapper: ResourceMapper<PostTemplate>;
|
|
4
|
+
export declare function parseValidationResult(response: unknown): PostValidationResult;
|
|
5
|
+
//# sourceMappingURL=post-template.mapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-template.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/post-template.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAoC,oBAAoB,EAAmB,MAAM,2BAA2B,CAAC;AAyBvI,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,YAAY,CAgB3D,CAAC;AAaF,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,OAAO,GAAG,oBAAoB,CAiB7E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ResourceMapper } from '@23blocks/jsonapi-codec';
|
|
2
|
-
import type { PostVersion } from '../types/post-version';
|
|
2
|
+
import type { PostVersion } from '../types/post-version.js';
|
|
3
3
|
export declare const postVersionMapper: ResourceMapper<PostVersion>;
|
|
4
4
|
//# sourceMappingURL=post-version.mapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-version.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/post-version.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"post-version.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/post-version.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAG5D,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,WAAW,CAuDzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/post.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"post.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/post.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAG7C,eAAO,MAAM,UAAU,EAAE,cAAc,CAAC,IAAI,CA4D3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"series.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/series.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,EAA4C,MAAM,
|
|
1
|
+
{"version":3,"file":"series.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/series.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,MAAM,EAA4C,MAAM,oBAAoB,CAAC;AAmB3F,eAAO,MAAM,YAAY,EAAE,cAAc,CAAC,MAAM,CAyC/C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/tag.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"tag.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/tag.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAG3C,eAAO,MAAM,SAAS,EAAE,cAAc,CAAC,GAAG,CAkBzC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ResourceMapper } from '@23blocks/jsonapi-codec';
|
|
2
|
-
import type { ContentUser, Following } from '../types/user';
|
|
2
|
+
import type { ContentUser, Following } from '../types/user.js';
|
|
3
3
|
export declare const contentUserMapper: ResourceMapper<ContentUser>;
|
|
4
4
|
export declare const followingMapper: ResourceMapper<Following>;
|
|
5
5
|
//# sourceMappingURL=user.mapper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/user.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"user.mapper.d.ts","sourceRoot":"","sources":["../../../../src/lib/mappers/user.mapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAG/D,eAAO,MAAM,iBAAiB,EAAE,cAAc,CAAC,WAAW,CAmDzD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,cAAc,CAAC,SAAS,CAwBrD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Transport, PageResult } from '@23blocks/contracts';
|
|
2
|
-
import type { Activity, ListActivitiesParams } from '../types/activity';
|
|
3
|
-
import type { Comment, ListCommentsParams } from '../types/comment';
|
|
2
|
+
import type { Activity, ListActivitiesParams } from '../types/activity.js';
|
|
3
|
+
import type { Comment, ListCommentsParams } from '../types/comment.js';
|
|
4
4
|
/**
|
|
5
5
|
* Activity Service Interface - User activity feed operations
|
|
6
6
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/activity.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"activity.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/activity.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAIvE;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,aAAa,CAAC,gBAAgB,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEtG;;OAEG;IACH,WAAW,CAAC,gBAAgB,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;IAEjG;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;CACvE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GACzB,eAAe,CAqDjB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Transport, PageResult } from '@23blocks/contracts';
|
|
2
|
-
import type { Category, CreateCategoryRequest, ListCategoriesParams } from '../types/category';
|
|
2
|
+
import type { Category, CreateCategoryRequest, ListCategoriesParams } from '../types/category.js';
|
|
3
3
|
export interface CategoriesService {
|
|
4
4
|
/**
|
|
5
5
|
* List all categories
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"categories.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/categories.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,QAAQ,EACR,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,
|
|
1
|
+
{"version":3,"file":"categories.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/categories.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,QAAQ,EACR,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,CAAC,MAAM,CAAC,EAAE,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEnE;;OAEG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEzC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CACxD;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,iBAAiB,CAqC3G"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Transport, PageResult } from '@23blocks/contracts';
|
|
2
|
-
import type { Comment, CreateCommentRequest, UpdateCommentRequest, ListCommentsParams } from '../types/comment';
|
|
2
|
+
import type { Comment, CreateCommentRequest, UpdateCommentRequest, ListCommentsParams } from '../types/comment.js';
|
|
3
3
|
export interface CommentsService {
|
|
4
4
|
/**
|
|
5
5
|
* List comments for a post
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comments.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/comments.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,OAAO,EACP,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,
|
|
1
|
+
{"version":3,"file":"comments.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/comments.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,OAAO,EACP,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAG7B,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI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AC,CAAC;IACjE,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CACpE;AAED,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,eAAe,CAmGvG"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export * from './posts.service';
|
|
2
|
-
export * from './post-versions.service';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
1
|
+
export * from './posts.service.js';
|
|
2
|
+
export * from './post-versions.service.js';
|
|
3
|
+
export * from './post-templates.service.js';
|
|
4
|
+
export * from './comments.service.js';
|
|
5
|
+
export * from './categories.service.js';
|
|
6
|
+
export * from './tags.service.js';
|
|
7
|
+
export * from './users.service.js';
|
|
8
|
+
export * from './moderation.service.js';
|
|
9
|
+
export * from './activity.service.js';
|
|
10
|
+
export * from './series.service.js';
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Transport, PageResult } from '@23blocks/contracts';
|
|
2
|
-
import type { ModerationResult, ModerateContentRequest, ContentFlag, CreateContentFlagRequest, ListContentFlagsParams } from '../types/moderation';
|
|
2
|
+
import type { ModerationResult, ModerateContentRequest, ContentFlag, CreateContentFlagRequest, ListContentFlagsParams } from '../types/moderation.js';
|
|
3
3
|
/**
|
|
4
4
|
* Moderation Service Interface - Content moderation operations
|
|
5
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moderation.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/moderation.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EACtB,WAAW,EACX,wBAAwB,EACxB,sBAAsB,EAEvB,MAAM,
|
|
1
|
+
{"version":3,"file":"moderation.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/moderation.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,gBAAgB,EAChB,sBAAsB,EACtB,WAAW,EACX,wBAAwB,EACxB,sBAAsB,EAEvB,MAAM,wBAAwB,CAAC;AAGhC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,YAAY,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAE/F;;OAEG;IACH,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAE3H;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;IAE7E;;OAEG;IACH,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEpD;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEpE;;OAEG;IACH,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAE5E;;OAEG;IACH,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACnE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GACzB,iBAAiB,CA+FnB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Transport, PageResult } from '@23blocks/contracts';
|
|
2
|
+
import type { PostTemplate, CreatePostTemplateRequest, UpdatePostTemplateRequest, ListPostTemplatesParams } from '../types/post-template.js';
|
|
3
|
+
export interface PostTemplatesService {
|
|
4
|
+
list(params?: ListPostTemplatesParams): Promise<PageResult<PostTemplate>>;
|
|
5
|
+
get(uniqueId: string): Promise<PostTemplate>;
|
|
6
|
+
create(data: CreatePostTemplateRequest): Promise<PostTemplate>;
|
|
7
|
+
update(uniqueId: string, data: UpdatePostTemplateRequest): Promise<PostTemplate>;
|
|
8
|
+
delete(uniqueId: string): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
export declare function createPostTemplatesService(transport: Transport, _config: {
|
|
11
|
+
appId: string;
|
|
12
|
+
}): PostTemplatesService;
|
|
13
|
+
//# sourceMappingURL=post-templates.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-templates.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/post-templates.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,YAAY,EACZ,yBAAyB,EACzB,yBAAyB,EACzB,uBAAuB,EACxB,MAAM,2BAA2B,CAAC;AAGnC,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC;IAC1E,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC7C,MAAM,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/D,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACjF,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzC;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,oBAAoB,CA+DjH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Transport, PageResult } from '@23blocks/contracts';
|
|
2
|
-
import type { PostVersion, ListPostVersionsParams } from '../types/post-version';
|
|
2
|
+
import type { PostVersion, ListPostVersionsParams } from '../types/post-version.js';
|
|
3
3
|
export interface PostVersionsService {
|
|
4
4
|
/**
|
|
5
5
|
* List all versions of a post
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post-versions.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/post-versions.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"post-versions.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/post-versions.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EAAE,WAAW,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGpF,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;IAE9F;;OAEG;IACH,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEzE;;OAEG;IACH,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAC9E;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,mBAAmB,CAuD/G"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Transport, PageResult } from '@23blocks/contracts';
|
|
2
|
-
import type { Post, CreatePostRequest, UpdatePostRequest, ListPostsParams } from '../types/post';
|
|
2
|
+
import type { Post, CreatePostRequest, UpdatePostRequest, ListPostsParams } from '../types/post.js';
|
|
3
|
+
import type { PostValidationResult } from '../types/post-template.js';
|
|
3
4
|
export interface PostsService {
|
|
4
5
|
list(params?: ListPostsParams): Promise<PageResult<Post>>;
|
|
5
6
|
query(params: ListPostsParams): Promise<PageResult<Post>>;
|
|
@@ -19,6 +20,7 @@ export interface PostsService {
|
|
|
19
20
|
unsave(uniqueId: string): Promise<Post>;
|
|
20
21
|
follow(uniqueId: string): Promise<Post>;
|
|
21
22
|
unfollow(uniqueId: string): Promise<Post>;
|
|
23
|
+
validate(uniqueId: string, templateUniqueId: string): Promise<PostValidationResult>;
|
|
22
24
|
}
|
|
23
25
|
export declare function createPostsService(transport: Transport, _config: {
|
|
24
26
|
appId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posts.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/posts.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,IAAI,EACJ,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EAChB,MAAM,
|
|
1
|
+
{"version":3,"file":"posts.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/posts.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,IAAI,EACJ,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAItE,MAAM,WAAW,YAAY;IAE3B,IAAI,CAAC,MAAM,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IAC1D,KAAK,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IAC1D,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACjE,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EA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AE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,YAAY,CA6LjG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Transport, PageResult } from '@23blocks/contracts';
|
|
2
|
-
import type { Series, CreateSeriesRequest, UpdateSeriesRequest, ListSeriesParams, QuerySeriesParams, ReorderPostsRequest } from '../types/series';
|
|
3
|
-
import type { Post } from '../types/post';
|
|
2
|
+
import type { Series, CreateSeriesRequest, UpdateSeriesRequest, ListSeriesParams, QuerySeriesParams, ReorderPostsRequest } from '../types/series.js';
|
|
3
|
+
import type { Post } from '../types/post.js';
|
|
4
4
|
export interface SeriesService {
|
|
5
5
|
list(params?: ListSeriesParams): Promise<PageResult<Series>>;
|
|
6
6
|
query(params: QuerySeriesParams): Promise<PageResult<Series>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"series.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/series.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,MAAM,EACN,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,
|
|
1
|
+
{"version":3,"file":"series.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/series.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,MAAM,EACN,mBAAmB,EACnB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAI7C,MAAM,WAAW,aAAa;IAE5B,IAAI,CAAC,MAAM,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,MAAM,CA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I,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC5E;AAED,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,aAAa,CA4HnG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Transport, PageResult } from '@23blocks/contracts';
|
|
2
|
-
import type { Tag, CreateTagRequest, UpdateTagRequest, ListTagsParams } from '../types/tag';
|
|
2
|
+
import type { Tag, CreateTagRequest, UpdateTagRequest, ListTagsParams } from '../types/tag.js';
|
|
3
3
|
export interface TagsService {
|
|
4
4
|
list(params?: ListTagsParams): Promise<PageResult<Tag>>;
|
|
5
5
|
get(uniqueId: string): Promise<Tag>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tags.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/tags.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,GAAG,EACH,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACf,MAAM,
|
|
1
|
+
{"version":3,"file":"tags.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/tags.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,GAAG,EACH,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACf,MAAM,iBAAiB,CAAC;AAGzB,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,MAAM,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;IACxD,GAAG,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IACpC,MAAM,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC7C,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAC/D,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzC;AAED,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,WAAW,CAmD/F"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Transport, PageResult } from '@23blocks/contracts';
|
|
2
|
-
import type { ContentUser, Following, RegisterContentUserRequest, UpdateContentUserRequest, ListContentUsersParams, UserActivity } from '../types/user';
|
|
3
|
-
import type { Post } from '../types/post';
|
|
4
|
-
import type { Comment } from '../types/comment';
|
|
2
|
+
import type { ContentUser, Following, RegisterContentUserRequest, UpdateContentUserRequest, ListContentUsersParams, UserActivity } from '../types/user.js';
|
|
3
|
+
import type { Post } from '../types/post.js';
|
|
4
|
+
import type { Comment } from '../types/comment.js';
|
|
5
5
|
export interface ContentUsersService {
|
|
6
6
|
list(params?: ListContentUsersParams): Promise<PageResult<ContentUser>>;
|
|
7
7
|
get(uniqueId: string): Promise<ContentUser>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/users.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EACV,WAAW,EACX,SAAS,EACT,0BAA0B,EAC1B,wBAAwB,EACxB,sBAAsB,EACtB,YAAY,EACb,MAAM,
|
|
1
|
+
{"version":3,"file":"users.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/users.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE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AG,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;IACrD,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;IACrD,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACxE,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3E;AAED,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,mBAAmB,CAkH/G"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export * from './post';
|
|
2
|
-
export * from './post-version';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
1
|
+
export * from './post.js';
|
|
2
|
+
export * from './post-version.js';
|
|
3
|
+
export * from './post-template.js';
|
|
4
|
+
export * from './comment.js';
|
|
5
|
+
export * from './category.js';
|
|
6
|
+
export * from './tag.js';
|
|
7
|
+
export * from './user.js';
|
|
8
|
+
export * from './moderation.js';
|
|
9
|
+
export * from './activity.js';
|
|
10
|
+
export * from './series.js';
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { IdentityCore, EntityStatus } from '@23blocks/contracts';
|
|
2
|
+
export type TemplateFieldType = 'object' | 'array' | 'string' | 'number' | 'boolean';
|
|
3
|
+
export interface TemplateField {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
type: TemplateFieldType;
|
|
7
|
+
required: boolean;
|
|
8
|
+
description?: string;
|
|
9
|
+
children?: TemplateField[];
|
|
10
|
+
}
|
|
11
|
+
export interface PostTemplate extends IdentityCore {
|
|
12
|
+
uniqueId: string;
|
|
13
|
+
name: string;
|
|
14
|
+
slug?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
status: EntityStatus;
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
fields: TemplateField[];
|
|
19
|
+
payload?: Record<string, unknown>;
|
|
20
|
+
}
|
|
21
|
+
export interface CreatePostTemplateRequest {
|
|
22
|
+
name: string;
|
|
23
|
+
slug?: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
fields: TemplateField[];
|
|
26
|
+
payload?: Record<string, unknown>;
|
|
27
|
+
}
|
|
28
|
+
export interface UpdatePostTemplateRequest {
|
|
29
|
+
name?: string;
|
|
30
|
+
slug?: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
fields?: TemplateField[];
|
|
33
|
+
enabled?: boolean;
|
|
34
|
+
status?: EntityStatus;
|
|
35
|
+
payload?: Record<string, unknown>;
|
|
36
|
+
}
|
|
37
|
+
export interface ListPostTemplatesParams {
|
|
38
|
+
page?: number;
|
|
39
|
+
perPage?: number;
|
|
40
|
+
search?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ValidationIssue {
|
|
43
|
+
key: string;
|
|
44
|
+
label?: string;
|
|
45
|
+
message?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface PostValidationResult {
|
|
48
|
+
valid: boolean;
|
|
49
|
+
missingRequired: ValidationIssue[];
|
|
50
|
+
missingOptional: ValidationIssue[];
|
|
51
|
+
warnings: ValidationIssue[];
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=post-template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-template.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/post-template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEtE,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAErF,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,iBAAiB,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,aAAa,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,YAAa,SAAQ,YAAY;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC;AAGD,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,OAA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