@zlooks.cn/blog-shared 1.0.0 → 1.0.2
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/events/catalog.d.ts +2 -0
- package/dist/events/catalog.d.ts.map +1 -0
- package/dist/events/catalog.js +80 -0
- package/dist/events/catalog.js.map +1 -0
- package/dist/events/comment-deleted.d.ts +33 -0
- package/dist/events/comment-deleted.d.ts.map +1 -0
- package/dist/events/comment-deleted.js +16 -0
- package/dist/events/comment-deleted.js.map +1 -0
- package/dist/events/comment-reply-changed.d.ts +45 -0
- package/dist/events/comment-reply-changed.d.ts.map +1 -0
- package/dist/events/comment-reply-changed.js +15 -0
- package/dist/events/comment-reply-changed.js.map +1 -0
- package/dist/events/comment-status-changed.d.ts +51 -0
- package/dist/events/comment-status-changed.d.ts.map +1 -0
- package/dist/events/comment-status-changed.js +16 -0
- package/dist/events/comment-status-changed.js.map +1 -0
- package/dist/events/comment-submitted.d.ts +45 -0
- package/dist/events/comment-submitted.d.ts.map +1 -0
- package/dist/events/comment-submitted.js +15 -0
- package/dist/events/comment-submitted.js.map +1 -0
- package/dist/events/definition.d.ts +3 -0
- package/dist/events/definition.d.ts.map +1 -0
- package/dist/events/definition.js +10 -0
- package/dist/events/definition.js.map +1 -0
- package/dist/events/page-archived.d.ts +45 -0
- package/dist/events/page-archived.d.ts.map +1 -0
- package/dist/events/page-archived.js +15 -0
- package/dist/events/page-archived.js.map +1 -0
- package/dist/events/page-publication-updated.d.ts +54 -0
- package/dist/events/page-publication-updated.d.ts.map +1 -0
- package/dist/events/page-publication-updated.js +23 -0
- package/dist/events/page-publication-updated.js.map +1 -0
- package/dist/events/page-published.d.ts +45 -0
- package/dist/events/page-published.d.ts.map +1 -0
- package/dist/events/page-published.js +15 -0
- package/dist/events/page-published.js.map +1 -0
- package/dist/events/post-archived.d.ts +64 -0
- package/dist/events/post-archived.d.ts.map +1 -0
- package/dist/events/post-archived.js +15 -0
- package/dist/events/post-archived.js.map +1 -0
- package/dist/events/post-publication-updated.d.ts +74 -0
- package/dist/events/post-publication-updated.d.ts.map +1 -0
- package/dist/events/post-publication-updated.js +23 -0
- package/dist/events/post-publication-updated.js.map +1 -0
- package/dist/events/post-published.d.ts +64 -0
- package/dist/events/post-published.d.ts.map +1 -0
- package/dist/events/post-published.js +15 -0
- package/dist/events/post-published.js.map +1 -0
- package/dist/events/snapshots.d.ts +105 -0
- package/dist/events/snapshots.d.ts.map +1 -0
- package/dist/events/snapshots.js +56 -0
- package/dist/events/snapshots.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/management.d.ts +1207 -0
- package/dist/management.d.ts.map +1 -0
- package/dist/management.js +572 -0
- package/dist/management.js.map +1 -0
- package/dist/micro.d.ts +94 -1
- package/dist/micro.d.ts.map +1 -1
- package/dist/micro.js +75 -2
- package/dist/micro.js.map +1 -1
- package/package.json +6 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-published.js","sourceRoot":"","sources":["../../src/events/page-published.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAE7D,MAAM,CAAC,MAAM,8BAA8B,GAAG,kCAAkC,CAAC;AACjF,MAAM,UAAU,GAAG,CAAC,CAAC,YAAY,CAAC;IAChC,IAAI,EAAE,2BAA2B,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,KAAK,WAAW,EAAE,gDAAgD,CAAC;CACnI,CAAC,CAAC,QAAQ,EAAE,CAAC;AACd,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CACnD,8BAA8B,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAC1E,CAAC;AAEF,MAAM,UAAU,2BAA2B,CAAC,KAAc;IACxD,OAAO,sBAAsB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC7C,CAAC;AACD,MAAM,UAAU,6BAA6B,CAC3C,MAAqB,EACrB,OAA6E;IAE7E,OAAO,MAAM,CAAC,OAAO,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { DomainEvent } from '@zlooks.cn/event-bus';
|
|
2
|
+
import type { EventConsumeOptions, EventConsumer, EventSubscription } from '@zlooks.cn/event-client';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
export declare const BLOG_POST_ARCHIVED_EVENT_TYPE = "cn.zlooks.blog.post-archived.v1";
|
|
5
|
+
declare const dataSchema: z.ZodReadonly<z.ZodObject<{
|
|
6
|
+
post: z.ZodReadonly<z.ZodObject<{
|
|
7
|
+
id: z.ZodUUID;
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
slug: z.ZodReadonly<z.ZodString>;
|
|
10
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
11
|
+
coverUrl: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodURL]>>;
|
|
12
|
+
publishedAt: z.ZodISODateTime;
|
|
13
|
+
updatedAt: z.ZodISODateTime;
|
|
14
|
+
category: z.ZodReadonly<z.ZodObject<{
|
|
15
|
+
id: z.ZodUUID;
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
slug: z.ZodReadonly<z.ZodString>;
|
|
18
|
+
description: z.ZodNullable<z.ZodString>;
|
|
19
|
+
sortOrder: z.ZodNumber;
|
|
20
|
+
}, z.core.$strict>>;
|
|
21
|
+
tags: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
22
|
+
id: z.ZodUUID;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
slug: z.ZodReadonly<z.ZodString>;
|
|
25
|
+
}, z.core.$strict>>>>;
|
|
26
|
+
status: z.ZodEnum<{
|
|
27
|
+
archived: "archived";
|
|
28
|
+
published: "published";
|
|
29
|
+
}>;
|
|
30
|
+
contentSha256: z.ZodString;
|
|
31
|
+
version: z.ZodNumber;
|
|
32
|
+
}, z.core.$strict>>;
|
|
33
|
+
}, z.core.$strict>>;
|
|
34
|
+
export declare const blogPostArchivedEvent: import("@zlooks.cn/event-bus").EventDefinition<"cn.zlooks.blog.post-archived.v1", Readonly<{
|
|
35
|
+
post: Readonly<{
|
|
36
|
+
id: string;
|
|
37
|
+
title: string;
|
|
38
|
+
slug: string;
|
|
39
|
+
summary: string | null;
|
|
40
|
+
coverUrl: string | null;
|
|
41
|
+
publishedAt: string;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
category: Readonly<{
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
slug: string;
|
|
47
|
+
description: string | null;
|
|
48
|
+
sortOrder: number;
|
|
49
|
+
}>;
|
|
50
|
+
tags: readonly Readonly<{
|
|
51
|
+
id: string;
|
|
52
|
+
name: string;
|
|
53
|
+
slug: string;
|
|
54
|
+
}>[];
|
|
55
|
+
status: "archived" | "published";
|
|
56
|
+
contentSha256: string;
|
|
57
|
+
version: number;
|
|
58
|
+
}>;
|
|
59
|
+
}>>;
|
|
60
|
+
export type BlogPostArchivedEvent = DomainEvent<typeof BLOG_POST_ARCHIVED_EVENT_TYPE, z.infer<typeof dataSchema>>;
|
|
61
|
+
export declare function parseBlogPostArchivedEvent(input: unknown): BlogPostArchivedEvent;
|
|
62
|
+
export declare function consumeBlogPostArchivedEvent(events: EventConsumer, options: EventConsumeOptions<ReturnType<typeof blogPostArchivedEvent.parse>>): EventSubscription;
|
|
63
|
+
export {};
|
|
64
|
+
//# sourceMappingURL=post-archived.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-archived.d.ts","sourceRoot":"","sources":["../../src/events/post-archived.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACrG,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,6BAA6B,oCAAoC,CAAC;AAC/E,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAEH,CAAC;AACd,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;GAEjC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,WAAW,CAAC,OAAO,6BAA6B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC;AAClH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,qBAAqB,CAEhF;AACD,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,mBAAmB,CAAC,UAAU,CAAC,OAAO,qBAAqB,CAAC,KAAK,CAAC,CAAC,GAC3E,iBAAiB,CAEnB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineBlogEvent } from './definition.js';
|
|
3
|
+
import { blogPostEventSnapshotSchema } from './snapshots.js';
|
|
4
|
+
export const BLOG_POST_ARCHIVED_EVENT_TYPE = 'cn.zlooks.blog.post-archived.v1';
|
|
5
|
+
const dataSchema = z.strictObject({
|
|
6
|
+
post: blogPostEventSnapshotSchema.refine(({ status }) => status === 'archived', 'Archived post event requires archived status'),
|
|
7
|
+
}).readonly();
|
|
8
|
+
export const blogPostArchivedEvent = defineBlogEvent(BLOG_POST_ARCHIVED_EVENT_TYPE, 'post', dataSchema, ({ post }) => post.id);
|
|
9
|
+
export function parseBlogPostArchivedEvent(input) {
|
|
10
|
+
return blogPostArchivedEvent.parse(input);
|
|
11
|
+
}
|
|
12
|
+
export function consumeBlogPostArchivedEvent(events, options) {
|
|
13
|
+
return events.consume(blogPostArchivedEvent, options);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=post-archived.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-archived.js","sourceRoot":"","sources":["../../src/events/post-archived.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAE7D,MAAM,CAAC,MAAM,6BAA6B,GAAG,iCAAiC,CAAC;AAC/E,MAAM,UAAU,GAAG,CAAC,CAAC,YAAY,CAAC;IAChC,IAAI,EAAE,2BAA2B,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,KAAK,UAAU,EAAE,8CAA8C,CAAC;CAChI,CAAC,CAAC,QAAQ,EAAE,CAAC;AACd,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,CAClD,6BAA6B,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CACzE,CAAC;AAEF,MAAM,UAAU,0BAA0B,CAAC,KAAc;IACvD,OAAO,qBAAqB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC5C,CAAC;AACD,MAAM,UAAU,4BAA4B,CAC1C,MAAqB,EACrB,OAA4E;IAE5E,OAAO,MAAM,CAAC,OAAO,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;AACxD,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { DomainEvent } from '@zlooks.cn/event-bus';
|
|
2
|
+
import type { EventConsumeOptions, EventConsumer, EventSubscription } from '@zlooks.cn/event-client';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
export declare const BLOG_POST_PUBLICATION_UPDATED_EVENT_TYPE = "cn.zlooks.blog.post-publication-updated.v1";
|
|
5
|
+
declare const dataSchema: z.ZodReadonly<z.ZodObject<{
|
|
6
|
+
post: z.ZodReadonly<z.ZodObject<{
|
|
7
|
+
id: z.ZodUUID;
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
slug: z.ZodReadonly<z.ZodString>;
|
|
10
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
11
|
+
coverUrl: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodURL]>>;
|
|
12
|
+
publishedAt: z.ZodISODateTime;
|
|
13
|
+
updatedAt: z.ZodISODateTime;
|
|
14
|
+
category: z.ZodReadonly<z.ZodObject<{
|
|
15
|
+
id: z.ZodUUID;
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
slug: z.ZodReadonly<z.ZodString>;
|
|
18
|
+
description: z.ZodNullable<z.ZodString>;
|
|
19
|
+
sortOrder: z.ZodNumber;
|
|
20
|
+
}, z.core.$strict>>;
|
|
21
|
+
tags: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
22
|
+
id: z.ZodUUID;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
slug: z.ZodReadonly<z.ZodString>;
|
|
25
|
+
}, z.core.$strict>>>>;
|
|
26
|
+
status: z.ZodEnum<{
|
|
27
|
+
archived: "archived";
|
|
28
|
+
published: "published";
|
|
29
|
+
}>;
|
|
30
|
+
contentSha256: z.ZodString;
|
|
31
|
+
version: z.ZodNumber;
|
|
32
|
+
}, z.core.$strict>>;
|
|
33
|
+
changedFields: z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
34
|
+
categoryId: "categoryId";
|
|
35
|
+
content: "content";
|
|
36
|
+
coverUrl: "coverUrl";
|
|
37
|
+
slug: "slug";
|
|
38
|
+
summary: "summary";
|
|
39
|
+
tagIds: "tagIds";
|
|
40
|
+
title: "title";
|
|
41
|
+
}>>>;
|
|
42
|
+
}, z.core.$strict>>;
|
|
43
|
+
export declare const blogPostPublicationUpdatedEvent: import("@zlooks.cn/event-bus").EventDefinition<"cn.zlooks.blog.post-publication-updated.v1", Readonly<{
|
|
44
|
+
post: Readonly<{
|
|
45
|
+
id: string;
|
|
46
|
+
title: string;
|
|
47
|
+
slug: string;
|
|
48
|
+
summary: string | null;
|
|
49
|
+
coverUrl: string | null;
|
|
50
|
+
publishedAt: string;
|
|
51
|
+
updatedAt: string;
|
|
52
|
+
category: Readonly<{
|
|
53
|
+
id: string;
|
|
54
|
+
name: string;
|
|
55
|
+
slug: string;
|
|
56
|
+
description: string | null;
|
|
57
|
+
sortOrder: number;
|
|
58
|
+
}>;
|
|
59
|
+
tags: readonly Readonly<{
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
slug: string;
|
|
63
|
+
}>[];
|
|
64
|
+
status: "archived" | "published";
|
|
65
|
+
contentSha256: string;
|
|
66
|
+
version: number;
|
|
67
|
+
}>;
|
|
68
|
+
changedFields: readonly ("categoryId" | "content" | "coverUrl" | "slug" | "summary" | "tagIds" | "title")[];
|
|
69
|
+
}>>;
|
|
70
|
+
export type BlogPostPublicationUpdatedEvent = DomainEvent<typeof BLOG_POST_PUBLICATION_UPDATED_EVENT_TYPE, z.infer<typeof dataSchema>>;
|
|
71
|
+
export declare function parseBlogPostPublicationUpdatedEvent(input: unknown): BlogPostPublicationUpdatedEvent;
|
|
72
|
+
export declare function consumeBlogPostPublicationUpdatedEvent(events: EventConsumer, options: EventConsumeOptions<ReturnType<typeof blogPostPublicationUpdatedEvent.parse>>): EventSubscription;
|
|
73
|
+
export {};
|
|
74
|
+
//# sourceMappingURL=post-publication-updated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-publication-updated.d.ts","sourceRoot":"","sources":["../../src/events/post-publication-updated.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACb,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,wCAAwC,+CACP,CAAC;AAC/C,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAgBH,CAAC;AACd,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;GAK3C,CAAC;AACF,MAAM,MAAM,+BAA+B,GAAG,WAAW,CACvD,OAAO,wCAAwC,EAC/C,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAC3B,CAAC;AACF,wBAAgB,oCAAoC,CAClD,KAAK,EAAE,OAAO,GACb,+BAA+B,CAEjC;AACD,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,mBAAmB,CAC1B,UAAU,CAAC,OAAO,+BAA+B,CAAC,KAAK,CAAC,CACzD,GACA,iBAAiB,CAEnB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineBlogEvent } from './definition.js';
|
|
3
|
+
import { blogPostChangedFieldSchema, blogPostEventSnapshotSchema, } from './snapshots.js';
|
|
4
|
+
export const BLOG_POST_PUBLICATION_UPDATED_EVENT_TYPE = 'cn.zlooks.blog.post-publication-updated.v1';
|
|
5
|
+
const dataSchema = z
|
|
6
|
+
.strictObject({
|
|
7
|
+
post: blogPostEventSnapshotSchema.refine(({ status }) => status === 'published', 'Updated public post requires published status'),
|
|
8
|
+
changedFields: z
|
|
9
|
+
.array(blogPostChangedFieldSchema)
|
|
10
|
+
.min(1)
|
|
11
|
+
.max(7)
|
|
12
|
+
.refine((fields) => new Set(fields).size === fields.length, 'Changed post fields must be unique')
|
|
13
|
+
.readonly(),
|
|
14
|
+
})
|
|
15
|
+
.readonly();
|
|
16
|
+
export const blogPostPublicationUpdatedEvent = defineBlogEvent(BLOG_POST_PUBLICATION_UPDATED_EVENT_TYPE, 'post', dataSchema, ({ post }) => post.id);
|
|
17
|
+
export function parseBlogPostPublicationUpdatedEvent(input) {
|
|
18
|
+
return blogPostPublicationUpdatedEvent.parse(input);
|
|
19
|
+
}
|
|
20
|
+
export function consumeBlogPostPublicationUpdatedEvent(events, options) {
|
|
21
|
+
return events.consume(blogPostPublicationUpdatedEvent, options);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=post-publication-updated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-publication-updated.js","sourceRoot":"","sources":["../../src/events/post-publication-updated.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EACL,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC;AAExB,MAAM,CAAC,MAAM,wCAAwC,GACnD,4CAA4C,CAAC;AAC/C,MAAM,UAAU,GAAG,CAAC;KACjB,YAAY,CAAC;IACZ,IAAI,EAAE,2BAA2B,CAAC,MAAM,CACtC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,KAAK,WAAW,EACtC,+CAA+C,CAChD;IACD,aAAa,EAAE,CAAC;SACb,KAAK,CAAC,0BAA0B,CAAC;SACjC,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,CAAC,CAAC;SACN,MAAM,CACL,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,MAAM,EAClD,oCAAoC,CACrC;SACA,QAAQ,EAAE;CACd,CAAC;KACD,QAAQ,EAAE,CAAC;AACd,MAAM,CAAC,MAAM,+BAA+B,GAAG,eAAe,CAC5D,wCAAwC,EACxC,MAAM,EACN,UAAU,EACV,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CACtB,CAAC;AAKF,MAAM,UAAU,oCAAoC,CAClD,KAAc;IAEd,OAAO,+BAA+B,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AACtD,CAAC;AACD,MAAM,UAAU,sCAAsC,CACpD,MAAqB,EACrB,OAEC;IAED,OAAO,MAAM,CAAC,OAAO,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { DomainEvent } from '@zlooks.cn/event-bus';
|
|
2
|
+
import type { EventConsumeOptions, EventConsumer, EventSubscription } from '@zlooks.cn/event-client';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
export declare const BLOG_POST_PUBLISHED_EVENT_TYPE = "cn.zlooks.blog.post-published.v1";
|
|
5
|
+
declare const dataSchema: z.ZodReadonly<z.ZodObject<{
|
|
6
|
+
post: z.ZodReadonly<z.ZodObject<{
|
|
7
|
+
id: z.ZodUUID;
|
|
8
|
+
title: z.ZodString;
|
|
9
|
+
slug: z.ZodReadonly<z.ZodString>;
|
|
10
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
11
|
+
coverUrl: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodURL]>>;
|
|
12
|
+
publishedAt: z.ZodISODateTime;
|
|
13
|
+
updatedAt: z.ZodISODateTime;
|
|
14
|
+
category: z.ZodReadonly<z.ZodObject<{
|
|
15
|
+
id: z.ZodUUID;
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
slug: z.ZodReadonly<z.ZodString>;
|
|
18
|
+
description: z.ZodNullable<z.ZodString>;
|
|
19
|
+
sortOrder: z.ZodNumber;
|
|
20
|
+
}, z.core.$strict>>;
|
|
21
|
+
tags: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
22
|
+
id: z.ZodUUID;
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
slug: z.ZodReadonly<z.ZodString>;
|
|
25
|
+
}, z.core.$strict>>>>;
|
|
26
|
+
status: z.ZodEnum<{
|
|
27
|
+
archived: "archived";
|
|
28
|
+
published: "published";
|
|
29
|
+
}>;
|
|
30
|
+
contentSha256: z.ZodString;
|
|
31
|
+
version: z.ZodNumber;
|
|
32
|
+
}, z.core.$strict>>;
|
|
33
|
+
}, z.core.$strict>>;
|
|
34
|
+
export declare const blogPostPublishedEvent: import("@zlooks.cn/event-bus").EventDefinition<"cn.zlooks.blog.post-published.v1", Readonly<{
|
|
35
|
+
post: Readonly<{
|
|
36
|
+
id: string;
|
|
37
|
+
title: string;
|
|
38
|
+
slug: string;
|
|
39
|
+
summary: string | null;
|
|
40
|
+
coverUrl: string | null;
|
|
41
|
+
publishedAt: string;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
category: Readonly<{
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
slug: string;
|
|
47
|
+
description: string | null;
|
|
48
|
+
sortOrder: number;
|
|
49
|
+
}>;
|
|
50
|
+
tags: readonly Readonly<{
|
|
51
|
+
id: string;
|
|
52
|
+
name: string;
|
|
53
|
+
slug: string;
|
|
54
|
+
}>[];
|
|
55
|
+
status: "archived" | "published";
|
|
56
|
+
contentSha256: string;
|
|
57
|
+
version: number;
|
|
58
|
+
}>;
|
|
59
|
+
}>>;
|
|
60
|
+
export type BlogPostPublishedEvent = DomainEvent<typeof BLOG_POST_PUBLISHED_EVENT_TYPE, z.infer<typeof dataSchema>>;
|
|
61
|
+
export declare function parseBlogPostPublishedEvent(input: unknown): BlogPostPublishedEvent;
|
|
62
|
+
export declare function consumeBlogPostPublishedEvent(events: EventConsumer, options: EventConsumeOptions<ReturnType<typeof blogPostPublishedEvent.parse>>): EventSubscription;
|
|
63
|
+
export {};
|
|
64
|
+
//# sourceMappingURL=post-published.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-published.d.ts","sourceRoot":"","sources":["../../src/events/post-published.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACrG,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,8BAA8B,qCAAqC,CAAC;AACjF,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAEH,CAAC;AACd,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;GAElC,CAAC;AACF,MAAM,MAAM,sBAAsB,GAAG,WAAW,CAAC,OAAO,8BAA8B,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC;AACpH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,OAAO,GAAG,sBAAsB,CAElF;AACD,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,mBAAmB,CAAC,UAAU,CAAC,OAAO,sBAAsB,CAAC,KAAK,CAAC,CAAC,GAC5E,iBAAiB,CAEnB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { defineBlogEvent } from './definition.js';
|
|
3
|
+
import { blogPostEventSnapshotSchema } from './snapshots.js';
|
|
4
|
+
export const BLOG_POST_PUBLISHED_EVENT_TYPE = 'cn.zlooks.blog.post-published.v1';
|
|
5
|
+
const dataSchema = z.strictObject({
|
|
6
|
+
post: blogPostEventSnapshotSchema.refine(({ status }) => status === 'published', 'Published post event requires published status'),
|
|
7
|
+
}).readonly();
|
|
8
|
+
export const blogPostPublishedEvent = defineBlogEvent(BLOG_POST_PUBLISHED_EVENT_TYPE, 'post', dataSchema, ({ post }) => post.id);
|
|
9
|
+
export function parseBlogPostPublishedEvent(input) {
|
|
10
|
+
return blogPostPublishedEvent.parse(input);
|
|
11
|
+
}
|
|
12
|
+
export function consumeBlogPostPublishedEvent(events, options) {
|
|
13
|
+
return events.consume(blogPostPublishedEvent, options);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=post-published.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-published.js","sourceRoot":"","sources":["../../src/events/post-published.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAE7D,MAAM,CAAC,MAAM,8BAA8B,GAAG,kCAAkC,CAAC;AACjF,MAAM,UAAU,GAAG,CAAC,CAAC,YAAY,CAAC;IAChC,IAAI,EAAE,2BAA2B,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,KAAK,WAAW,EAAE,gDAAgD,CAAC;CACnI,CAAC,CAAC,QAAQ,EAAE,CAAC;AACd,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CACnD,8BAA8B,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAC1E,CAAC;AAEF,MAAM,UAAU,2BAA2B,CAAC,KAAc;IACxD,OAAO,sBAAsB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC7C,CAAC;AACD,MAAM,UAAU,6BAA6B,CAC3C,MAAqB,EACrB,OAA6E;IAE7E,OAAO,MAAM,CAAC,OAAO,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const blogPostEventSnapshotSchema: z.ZodReadonly<z.ZodObject<{
|
|
3
|
+
id: z.ZodUUID;
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
slug: z.ZodReadonly<z.ZodString>;
|
|
6
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
7
|
+
coverUrl: z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodURL]>>;
|
|
8
|
+
publishedAt: z.ZodISODateTime;
|
|
9
|
+
updatedAt: z.ZodISODateTime;
|
|
10
|
+
category: z.ZodReadonly<z.ZodObject<{
|
|
11
|
+
id: z.ZodUUID;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
slug: z.ZodReadonly<z.ZodString>;
|
|
14
|
+
description: z.ZodNullable<z.ZodString>;
|
|
15
|
+
sortOrder: z.ZodNumber;
|
|
16
|
+
}, z.core.$strict>>;
|
|
17
|
+
tags: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
18
|
+
id: z.ZodUUID;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
slug: z.ZodReadonly<z.ZodString>;
|
|
21
|
+
}, z.core.$strict>>>>;
|
|
22
|
+
status: z.ZodEnum<{
|
|
23
|
+
archived: "archived";
|
|
24
|
+
published: "published";
|
|
25
|
+
}>;
|
|
26
|
+
contentSha256: z.ZodString;
|
|
27
|
+
version: z.ZodNumber;
|
|
28
|
+
}, z.core.$strict>>;
|
|
29
|
+
export declare const blogPostChangedFieldSchema: z.ZodEnum<{
|
|
30
|
+
categoryId: "categoryId";
|
|
31
|
+
content: "content";
|
|
32
|
+
coverUrl: "coverUrl";
|
|
33
|
+
slug: "slug";
|
|
34
|
+
summary: "summary";
|
|
35
|
+
tagIds: "tagIds";
|
|
36
|
+
title: "title";
|
|
37
|
+
}>;
|
|
38
|
+
export declare const blogPageEventSnapshotSchema: z.ZodReadonly<z.ZodObject<{
|
|
39
|
+
id: z.ZodUUID;
|
|
40
|
+
title: z.ZodString;
|
|
41
|
+
slug: z.ZodReadonly<z.ZodString>;
|
|
42
|
+
summary: z.ZodString;
|
|
43
|
+
status: z.ZodEnum<{
|
|
44
|
+
archived: "archived";
|
|
45
|
+
published: "published";
|
|
46
|
+
}>;
|
|
47
|
+
position: z.ZodNullable<z.ZodEnum<{
|
|
48
|
+
navigation: "navigation";
|
|
49
|
+
sidebar: "sidebar";
|
|
50
|
+
}>>;
|
|
51
|
+
sortOrder: z.ZodNumber;
|
|
52
|
+
publishedAt: z.ZodISODateTime;
|
|
53
|
+
updatedAt: z.ZodISODateTime;
|
|
54
|
+
contentSha256: z.ZodString;
|
|
55
|
+
version: z.ZodNumber;
|
|
56
|
+
}, z.core.$strict>>;
|
|
57
|
+
export declare const blogPageChangedFieldSchema: z.ZodEnum<{
|
|
58
|
+
content: "content";
|
|
59
|
+
position: "position";
|
|
60
|
+
slug: "slug";
|
|
61
|
+
sortOrder: "sortOrder";
|
|
62
|
+
summary: "summary";
|
|
63
|
+
title: "title";
|
|
64
|
+
}>;
|
|
65
|
+
export declare const blogCommentStatusSchema: z.ZodEnum<{
|
|
66
|
+
approved: "approved";
|
|
67
|
+
pending: "pending";
|
|
68
|
+
rejected: "rejected";
|
|
69
|
+
}>;
|
|
70
|
+
export declare const blogCommentEventSnapshotSchema: z.ZodReadonly<z.ZodObject<{
|
|
71
|
+
id: z.ZodUUID;
|
|
72
|
+
postId: z.ZodUUID;
|
|
73
|
+
userId: z.ZodUUID;
|
|
74
|
+
content: z.ZodString;
|
|
75
|
+
status: z.ZodEnum<{
|
|
76
|
+
approved: "approved";
|
|
77
|
+
pending: "pending";
|
|
78
|
+
rejected: "rejected";
|
|
79
|
+
}>;
|
|
80
|
+
replyContent: z.ZodNullable<z.ZodString>;
|
|
81
|
+
repliedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
82
|
+
location: z.ZodNullable<z.ZodString>;
|
|
83
|
+
client: z.ZodNullable<z.ZodString>;
|
|
84
|
+
createdAt: z.ZodISODateTime;
|
|
85
|
+
updatedAt: z.ZodISODateTime;
|
|
86
|
+
version: z.ZodNumber;
|
|
87
|
+
}, z.core.$strict>>;
|
|
88
|
+
export declare const blogDeletedCommentSnapshotSchema: z.ZodReadonly<z.ZodObject<{
|
|
89
|
+
id: z.ZodUUID;
|
|
90
|
+
postId: z.ZodUUID;
|
|
91
|
+
userId: z.ZodUUID;
|
|
92
|
+
status: z.ZodEnum<{
|
|
93
|
+
approved: "approved";
|
|
94
|
+
pending: "pending";
|
|
95
|
+
rejected: "rejected";
|
|
96
|
+
}>;
|
|
97
|
+
version: z.ZodNumber;
|
|
98
|
+
}, z.core.$strict>>;
|
|
99
|
+
export type BlogPostEventSnapshot = z.infer<typeof blogPostEventSnapshotSchema>;
|
|
100
|
+
export type BlogPostChangedField = z.infer<typeof blogPostChangedFieldSchema>;
|
|
101
|
+
export type BlogPageEventSnapshot = z.infer<typeof blogPageEventSnapshotSchema>;
|
|
102
|
+
export type BlogPageChangedField = z.infer<typeof blogPageChangedFieldSchema>;
|
|
103
|
+
export type BlogCommentEventSnapshot = z.infer<typeof blogCommentEventSnapshotSchema>;
|
|
104
|
+
export type BlogDeletedCommentSnapshot = z.infer<typeof blogDeletedCommentSnapshotSchema>;
|
|
105
|
+
//# sourceMappingURL=snapshots.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshots.d.ts","sourceRoot":"","sources":["../../src/events/snapshots.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;mBAQ3B,CAAC;AAEd,eAAO,MAAM,0BAA0B;;;;;;;;EAErC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;mBAY3B,CAAC;AAEd,eAAO,MAAM,0BAA0B;;;;;;;EAErC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;EAA8C,CAAC;AACnF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;mBAgB/B,CAAC;AAEb,eAAO,MAAM,gCAAgC;;;;;;;;;;mBAMhC,CAAC;AAEd,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { blogCategorySummarySchema, blogPagePositionSchema, blogPostSlugSchema, blogPostSummarySchema, blogTagSummarySchema, } from '@zlooks.cn/blog-schema';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
const isoDateTime = z.iso.datetime({ offset: true });
|
|
4
|
+
const sha256 = z.string().regex(/^[a-f0-9]{64}$/);
|
|
5
|
+
const version = z.number().int().positive();
|
|
6
|
+
export const blogPostEventSnapshotSchema = blogPostSummarySchema.unwrap().extend({
|
|
7
|
+
category: blogCategorySummarySchema,
|
|
8
|
+
tags: z.array(blogTagSummarySchema).max(20)
|
|
9
|
+
.refine((tags) => new Set(tags.map(({ id }) => id)).size === tags.length, 'Post tags must be unique')
|
|
10
|
+
.readonly(),
|
|
11
|
+
status: z.enum(['published', 'archived']),
|
|
12
|
+
contentSha256: sha256,
|
|
13
|
+
version,
|
|
14
|
+
}).readonly();
|
|
15
|
+
export const blogPostChangedFieldSchema = z.enum([
|
|
16
|
+
'categoryId', 'title', 'slug', 'summary', 'coverUrl', 'content', 'tagIds',
|
|
17
|
+
]);
|
|
18
|
+
export const blogPageEventSnapshotSchema = z.strictObject({
|
|
19
|
+
id: z.uuid(),
|
|
20
|
+
title: z.string().trim().min(1).max(200),
|
|
21
|
+
slug: blogPostSlugSchema,
|
|
22
|
+
summary: z.string().trim().min(1).max(500),
|
|
23
|
+
status: z.enum(['published', 'archived']),
|
|
24
|
+
position: blogPagePositionSchema.nullable(),
|
|
25
|
+
sortOrder: z.number().int().min(-2_147_483_648).max(2_147_483_647),
|
|
26
|
+
publishedAt: isoDateTime,
|
|
27
|
+
updatedAt: isoDateTime,
|
|
28
|
+
contentSha256: sha256,
|
|
29
|
+
version,
|
|
30
|
+
}).readonly();
|
|
31
|
+
export const blogPageChangedFieldSchema = z.enum([
|
|
32
|
+
'title', 'slug', 'summary', 'content', 'position', 'sortOrder',
|
|
33
|
+
]);
|
|
34
|
+
export const blogCommentStatusSchema = z.enum(['pending', 'approved', 'rejected']);
|
|
35
|
+
export const blogCommentEventSnapshotSchema = z.strictObject({
|
|
36
|
+
id: z.uuid(),
|
|
37
|
+
postId: z.uuid(),
|
|
38
|
+
userId: z.uuid(),
|
|
39
|
+
content: z.string().trim().min(1).max(2_000),
|
|
40
|
+
status: blogCommentStatusSchema,
|
|
41
|
+
replyContent: z.string().trim().min(1).max(2_000).nullable(),
|
|
42
|
+
repliedAt: isoDateTime.nullable(),
|
|
43
|
+
location: z.string().trim().min(1).max(200).nullable(),
|
|
44
|
+
client: z.string().trim().min(1).max(160).nullable(),
|
|
45
|
+
createdAt: isoDateTime,
|
|
46
|
+
updatedAt: isoDateTime,
|
|
47
|
+
version,
|
|
48
|
+
}).refine((comment) => Boolean(comment.replyContent) === Boolean(comment.repliedAt), { message: 'Reply content and timestamp must agree', path: ['repliedAt'] }).readonly();
|
|
49
|
+
export const blogDeletedCommentSnapshotSchema = z.strictObject({
|
|
50
|
+
id: z.uuid(),
|
|
51
|
+
postId: z.uuid(),
|
|
52
|
+
userId: z.uuid(),
|
|
53
|
+
status: blogCommentStatusSchema,
|
|
54
|
+
version,
|
|
55
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AAC,CAAC,QAAQ,EAAE,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
export * from './identity.js';
|
|
2
2
|
export * from './micro.js';
|
|
3
|
+
export * from './management.js';
|
|
3
4
|
export * from './themes.js';
|
|
5
|
+
export * from './events/comment-deleted.js';
|
|
6
|
+
export * from './events/comment-reply-changed.js';
|
|
7
|
+
export * from './events/comment-status-changed.js';
|
|
8
|
+
export * from './events/comment-submitted.js';
|
|
9
|
+
export * from './events/page-archived.js';
|
|
10
|
+
export * from './events/page-publication-updated.js';
|
|
11
|
+
export * from './events/page-published.js';
|
|
12
|
+
export * from './events/post-archived.js';
|
|
13
|
+
export * from './events/post-publication-updated.js';
|
|
14
|
+
export * from './events/post-published.js';
|
|
15
|
+
export * from './events/snapshots.js';
|
|
16
|
+
export * from './events/catalog.js';
|
|
4
17
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
export * from './identity.js';
|
|
2
2
|
export * from './micro.js';
|
|
3
|
+
export * from './management.js';
|
|
3
4
|
export * from './themes.js';
|
|
5
|
+
export * from './events/comment-deleted.js';
|
|
6
|
+
export * from './events/comment-reply-changed.js';
|
|
7
|
+
export * from './events/comment-status-changed.js';
|
|
8
|
+
export * from './events/comment-submitted.js';
|
|
9
|
+
export * from './events/page-archived.js';
|
|
10
|
+
export * from './events/page-publication-updated.js';
|
|
11
|
+
export * from './events/page-published.js';
|
|
12
|
+
export * from './events/post-archived.js';
|
|
13
|
+
export * from './events/post-publication-updated.js';
|
|
14
|
+
export * from './events/post-published.js';
|
|
15
|
+
export * from './events/snapshots.js';
|
|
16
|
+
export * from './events/catalog.js';
|
|
4
17
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sCAAsC,CAAC;AACrD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC"}
|