@eventcatalog/core 2.30.7 → 2.31.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/README.md +3 -2
- package/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +9 -3
- package/dist/analytics/log-build.d.cts +4 -1
- package/dist/analytics/log-build.d.ts +4 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-SUJLBNZK.js → chunk-4S3UNXH2.js} +1 -1
- package/dist/{chunk-HINNLTBH.js → chunk-D7LV5JLL.js} +9 -3
- package/dist/{chunk-EFSBN3ZZ.js → chunk-I6OFOESY.js} +1 -1
- package/dist/{chunk-XMDPVKIJ.js → chunk-NJGR7XUU.js} +44 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +74 -14
- package/dist/eventcatalog.config.d.cts +28 -0
- package/dist/eventcatalog.config.d.ts +28 -0
- package/dist/eventcatalog.js +29 -16
- package/dist/features.cjs +46 -2
- package/dist/features.d.cts +2 -1
- package/dist/features.d.ts +2 -1
- package/dist/features.js +5 -3
- package/eventcatalog/public/images/custom-docs-placeholder.png +0 -0
- package/eventcatalog/src/components/MDX/NodeGraph/Nodes/Custom.tsx +0 -2
- package/eventcatalog/src/components/MDX/Steps/Step.astro +1 -1
- package/eventcatalog/src/components/MDX/Steps/Steps.astro +15 -0
- package/eventcatalog/src/components/SideBars/FlowSideBar.astro +75 -0
- package/eventcatalog/src/components/SideNav/CustomDocsNav/CustomDocsNavWrapper.tsx +11 -0
- package/eventcatalog/src/components/SideNav/CustomDocsNav/components/NestedItem.tsx +183 -0
- package/eventcatalog/src/components/SideNav/CustomDocsNav/components/NoResultsFound.tsx +21 -0
- package/eventcatalog/src/components/SideNav/CustomDocsNav/index.tsx +250 -0
- package/eventcatalog/src/components/SideNav/CustomDocsNav/types.ts +29 -0
- package/eventcatalog/src/components/SideNav/CustomDocsNav.astro +9 -0
- package/eventcatalog/src/components/SideNav/TreeView/getTreeView.ts +2 -2
- package/eventcatalog/src/content.config.ts +15 -24
- package/eventcatalog/src/enterprise/collections/custom-pages.ts +19 -0
- package/eventcatalog/src/enterprise/custom-documentation/collection.ts +16 -0
- package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/CustomDocsNavWrapper.tsx +11 -0
- package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/components/NestedItem.tsx +183 -0
- package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/components/NoResultsFound.tsx +21 -0
- package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/index.tsx +250 -0
- package/eventcatalog/src/enterprise/custom-documentation/components/CustomDocsNav/types.ts +29 -0
- package/eventcatalog/src/enterprise/custom-documentation/pages/index.astro +389 -0
- package/eventcatalog/src/enterprise/custom-documentation/utils/custom-docs.ts +118 -0
- package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +58 -9
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/asyncapi/index.astro +23 -3
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/changelog/index.astro +13 -3
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/index.astro +134 -17
- package/eventcatalog/src/pages/docs/[type]/[id]/[version]/spec/index.astro +21 -3
- package/eventcatalog/src/pages/docs/[type]/[id]/language/[dictionaryId]/index.astro +1 -1
- package/eventcatalog/src/pages/docs/[type]/[id]/language.astro +1 -1
- package/eventcatalog/src/pages/docs/custom/[...path]/index.astro +260 -0
- package/eventcatalog/src/pages/docs/teams/[id]/index.astro +5 -3
- package/eventcatalog/src/pages/docs/users/[id]/index.astro +9 -4
- package/eventcatalog/src/pages/pro/index.astro +272 -0
- package/eventcatalog/src/shared-collections.ts +25 -0
- package/eventcatalog/src/types/index.ts +1 -1
- package/eventcatalog/src/utils/eventcatalog-config/catalog.ts +12 -1
- package/eventcatalog/src/utils/feature.ts +5 -0
- package/eventcatalog/src/utils/page-loaders/page-data-loader.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
---
|
|
2
|
+
import VerticalSideBarLayout from '@layouts/VerticalSideBarLayout.astro';
|
|
3
|
+
import { Star, Users, Bot, ScrollText, Component, PanelLeft, Cpu, Code, LifeBuoy, ExternalLink, Eye } from 'lucide-react';
|
|
4
|
+
import { buildUrl } from '@utils/url-builder';
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<VerticalSideBarLayout title="EventCatalog Pro">
|
|
8
|
+
<div class="min-h-[calc(100vh-60px)] bg-white">
|
|
9
|
+
{/* Hero section with solid purple background */}
|
|
10
|
+
<div class="bg-purple-600 pt-10 pb-20">
|
|
11
|
+
<div class="container px-8 lg:px-8 mx-auto max-w-[80em]">
|
|
12
|
+
<div class="flex flex-col pt-10">
|
|
13
|
+
<!-- <div class="mb-5">
|
|
14
|
+
<div class="inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-white text-purple-700">
|
|
15
|
+
Premium Features
|
|
16
|
+
</div>
|
|
17
|
+
</div> -->
|
|
18
|
+
|
|
19
|
+
<div class="flex flex-col md:flex-row justify-between items-start">
|
|
20
|
+
<div class="md:w-1/2 mt-10 pr-10">
|
|
21
|
+
<h1 class="text-4xl md:text-5xl font-bold text-white mb-4">EventCatalog Pro</h1>
|
|
22
|
+
<h2 class="text-2xl font-normal text-white mb-4">Take your documentation to the next level</h2>
|
|
23
|
+
<p class="text-base text-white opacity-90 mb-10 max-w-2xl">
|
|
24
|
+
<!-- Unlock premium features to enhance your event catalog and streamline your architecture documentation. -->
|
|
25
|
+
Keep documentation up-to-date, reduce onboarding time, and make architectural decisions easy to find — all in one place
|
|
26
|
+
</p>
|
|
27
|
+
|
|
28
|
+
<div class="flex flex-col sm:flex-row gap-4">
|
|
29
|
+
<a
|
|
30
|
+
href="https://www.eventcatalog.dev/pricing"
|
|
31
|
+
class="inline-flex items-center justify-center px-6 py-2.5 bg-white text-purple-700 text-sm font-medium rounded transition-colors hover:bg-purple-50"
|
|
32
|
+
>
|
|
33
|
+
Upgrade to Pro
|
|
34
|
+
<ExternalLink className="w-4 h-4 ml-1.5" />
|
|
35
|
+
</a>
|
|
36
|
+
</div>
|
|
37
|
+
<span class="text-white text-[12px] mt-4 block"> Get 14 day trial - no credit card required </span>
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
<div class="md:w-1/2 flex justify-center md:justify-end items-center mt-10 md:mt-0">
|
|
41
|
+
<div class="flex flex-col items-center">
|
|
42
|
+
<img
|
|
43
|
+
src="/images/custom-docs-placeholder.png"
|
|
44
|
+
alt="EventCatalog Pro Features"
|
|
45
|
+
class="rounded-md shadow-md max-w-full h-auto w-full object-cover"
|
|
46
|
+
/>
|
|
47
|
+
<p class="text-white text-xs block w-full mt-2 font-medium text-right">Custom documentation example</p>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
<main class="container px-8 lg:px-8 mx-auto py-10 max-w-[80em]">
|
|
56
|
+
{/* Feature Section */}
|
|
57
|
+
<div class="mb-14">
|
|
58
|
+
<h2 class="text-2xl font-semibold mb-8 text-gray-900">Premium Features</h2>
|
|
59
|
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
|
60
|
+
{/* Custom Documentation */}
|
|
61
|
+
<div
|
|
62
|
+
class="bg-white rounded-lg border border-gray-200 overflow-hidden hover:border-purple-200 hover:shadow-md transition-all duration-200"
|
|
63
|
+
>
|
|
64
|
+
<div class="p-6">
|
|
65
|
+
<div class="flex items-start gap-3 mb-3">
|
|
66
|
+
<div class="p-2 bg-purple-100 rounded-lg flex-shrink-0">
|
|
67
|
+
<ScrollText className="w-5 h-5 text-purple-600" />
|
|
68
|
+
</div>
|
|
69
|
+
<div>
|
|
70
|
+
<h3 class="text-lg font-semibold text-gray-900">Custom Documentation</h3>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
<p class="text-gray-600 text-sm mb-3">
|
|
74
|
+
Add any type of documentation such as ADRs, runbooks, and technical guidelines to create a centralized knowledge
|
|
75
|
+
hub.
|
|
76
|
+
</p>
|
|
77
|
+
<a href={buildUrl('/docs/custom')} class="text-sm text-purple-600 hover:text-purple-700 font-medium">
|
|
78
|
+
Learn more →
|
|
79
|
+
</a>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
{/* AI Assistant */}
|
|
84
|
+
<div
|
|
85
|
+
class="bg-white rounded-lg border border-gray-200 overflow-hidden hover:border-blue-200 hover:shadow-md transition-all duration-200"
|
|
86
|
+
>
|
|
87
|
+
<div class="p-6">
|
|
88
|
+
<div class="flex items-start gap-3 mb-3">
|
|
89
|
+
<div class="p-2 bg-blue-100 rounded-lg flex-shrink-0">
|
|
90
|
+
<Bot className="w-5 h-5 text-blue-600" />
|
|
91
|
+
</div>
|
|
92
|
+
<div>
|
|
93
|
+
<h3 class="text-lg font-semibold text-gray-900">AI Assistant</h3>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
<p class="text-gray-600 text-sm mb-3">
|
|
97
|
+
Chat with your catalog to quickly find information and get instant answers about your architecture.
|
|
98
|
+
</p>
|
|
99
|
+
<a href={buildUrl('/chat')} class="text-sm text-blue-600 hover:text-blue-700 font-medium"> Learn more → </a>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
{/* EventCatalog Federation */}
|
|
104
|
+
<div
|
|
105
|
+
class="bg-white rounded-lg border border-gray-200 overflow-hidden hover:border-green-200 hover:shadow-md transition-all duration-200"
|
|
106
|
+
>
|
|
107
|
+
<div class="p-6">
|
|
108
|
+
<div class="flex items-start gap-3 mb-3">
|
|
109
|
+
<div class="p-2 bg-green-100 rounded-lg flex-shrink-0">
|
|
110
|
+
<Component className="w-5 h-5 text-green-600" />
|
|
111
|
+
</div>
|
|
112
|
+
<div>
|
|
113
|
+
<h3 class="text-lg font-semibold text-gray-900">Federation</h3>
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
<p class="text-gray-600 text-sm mb-3">
|
|
117
|
+
Connect 1-3 separate event catalogs into a unified view for centralized visibility across teams.
|
|
118
|
+
</p>
|
|
119
|
+
<a
|
|
120
|
+
href="https://www.eventcatalog.dev/features/federation"
|
|
121
|
+
class="text-sm text-green-600 hover:text-green-700 font-medium"
|
|
122
|
+
>
|
|
123
|
+
Learn more →
|
|
124
|
+
</a>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
|
|
128
|
+
{/* IDE Integration */}
|
|
129
|
+
<div
|
|
130
|
+
class="bg-white rounded-lg border border-gray-200 overflow-hidden hover:border-indigo-200 hover:shadow-md transition-all duration-200"
|
|
131
|
+
>
|
|
132
|
+
<div class="p-6">
|
|
133
|
+
<div class="flex items-start gap-3 mb-3">
|
|
134
|
+
<div class="p-2 bg-indigo-100 rounded-lg flex-shrink-0">
|
|
135
|
+
<Code className="w-5 h-5 text-indigo-600" />
|
|
136
|
+
</div>
|
|
137
|
+
<div>
|
|
138
|
+
<h3 class="text-lg font-semibold text-gray-900">IDE Integration</h3>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
<p class="text-gray-600 text-sm mb-3">
|
|
142
|
+
Access EventCatalog directly from your IDE for seamless documentation while coding.
|
|
143
|
+
</p>
|
|
144
|
+
<a
|
|
145
|
+
href="https://www.eventcatalog.dev/features/ide"
|
|
146
|
+
class="text-sm text-indigo-600 hover:text-indigo-700 font-medium"
|
|
147
|
+
>
|
|
148
|
+
Learn more →
|
|
149
|
+
</a>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
|
|
153
|
+
{/* Automated Documentation */}
|
|
154
|
+
<div
|
|
155
|
+
class="bg-white rounded-lg border border-gray-200 overflow-hidden hover:border-yellow-200 hover:shadow-md transition-all duration-200"
|
|
156
|
+
>
|
|
157
|
+
<div class="p-6">
|
|
158
|
+
<div class="flex items-start gap-3 mb-3">
|
|
159
|
+
<div class="p-2 bg-yellow-100 rounded-lg flex-shrink-0">
|
|
160
|
+
<Cpu className="w-5 h-5 text-yellow-600" />
|
|
161
|
+
</div>
|
|
162
|
+
<div>
|
|
163
|
+
<h3 class="text-lg font-semibold text-gray-900">Automated Documentation</h3>
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
166
|
+
<p class="text-gray-600 text-sm mb-3">
|
|
167
|
+
Automate the generation and maintenance of your EventCatalog documentation with integrations (e.g generate
|
|
168
|
+
catalogs from AsyncAPI and OpenAPI)
|
|
169
|
+
</p>
|
|
170
|
+
<a
|
|
171
|
+
href="https://www.eventcatalog.dev/features/automation"
|
|
172
|
+
class="text-sm text-yellow-600 hover:text-yellow-700 font-medium"
|
|
173
|
+
>
|
|
174
|
+
Learn more →
|
|
175
|
+
</a>
|
|
176
|
+
</div>
|
|
177
|
+
</div>
|
|
178
|
+
|
|
179
|
+
{/* Priority Support */}
|
|
180
|
+
<div
|
|
181
|
+
class="bg-white rounded-lg border border-gray-200 overflow-hidden hover:border-red-200 hover:shadow-md transition-all duration-200"
|
|
182
|
+
>
|
|
183
|
+
<div class="p-6">
|
|
184
|
+
<div class="flex items-start gap-3 mb-3">
|
|
185
|
+
<div class="p-2 bg-red-100 rounded-lg flex-shrink-0">
|
|
186
|
+
<LifeBuoy className="w-5 h-5 text-red-600" />
|
|
187
|
+
</div>
|
|
188
|
+
<div>
|
|
189
|
+
<h3 class="text-lg font-semibold text-gray-900">Priority Support</h3>
|
|
190
|
+
</div>
|
|
191
|
+
</div>
|
|
192
|
+
<p class="text-gray-600 text-sm mb-3">Get priority email support and assistance from the EventCatalog team.</p>
|
|
193
|
+
<a href="https://www.eventcatalog.dev/support" class="text-sm text-red-600 hover:text-red-700 font-medium">
|
|
194
|
+
Learn more →
|
|
195
|
+
</a>
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
</div>
|
|
199
|
+
</div>
|
|
200
|
+
|
|
201
|
+
{/* Why Upgrade section - value bullet bar */}
|
|
202
|
+
<div class="mb-10 bg-gray-50 p-6 rounded-lg border border-gray-100">
|
|
203
|
+
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
|
|
204
|
+
<div class="flex items-center">
|
|
205
|
+
<div class="p-2 bg-purple-100 rounded-lg mr-3 flex-shrink-0">
|
|
206
|
+
<ScrollText className="w-5 h-5 text-purple-600" />
|
|
207
|
+
</div>
|
|
208
|
+
<span class="text-sm font-medium text-gray-800">Automated documentation</span>
|
|
209
|
+
</div>
|
|
210
|
+
<div class="flex items-center">
|
|
211
|
+
<div class="p-2 bg-indigo-100 rounded-lg mr-3 flex-shrink-0">
|
|
212
|
+
<Code className="w-5 h-5 text-indigo-600" />
|
|
213
|
+
</div>
|
|
214
|
+
<span class="text-sm font-medium text-gray-800">Integrated with your IDE</span>
|
|
215
|
+
</div>
|
|
216
|
+
<div class="flex items-center">
|
|
217
|
+
<div class="p-2 bg-blue-100 rounded-lg mr-3 flex-shrink-0">
|
|
218
|
+
<Bot className="w-5 h-5 text-blue-600" />
|
|
219
|
+
</div>
|
|
220
|
+
<span class="text-sm font-medium text-gray-800">AI-powered search</span>
|
|
221
|
+
</div>
|
|
222
|
+
<div class="flex items-center">
|
|
223
|
+
<div class="p-2 bg-green-100 rounded-lg mr-3 flex-shrink-0">
|
|
224
|
+
<Component className="w-5 h-5 text-green-600" />
|
|
225
|
+
</div>
|
|
226
|
+
<span class="text-sm font-medium text-gray-800">Unified view across teams</span>
|
|
227
|
+
</div>
|
|
228
|
+
</div>
|
|
229
|
+
</div>
|
|
230
|
+
|
|
231
|
+
{/* Ready to upgrade section */}
|
|
232
|
+
<div class="mb-14">
|
|
233
|
+
<h2 class="text-2xl font-semibold mb-6 text-gray-900">Ready to upgrade?</h2>
|
|
234
|
+
<div class="flex flex-col md:flex-row justify-between md:items-center bg-gray-50 p-8 rounded-lg border border-gray-200">
|
|
235
|
+
<div class="mb-6 md:mb-0">
|
|
236
|
+
<p class="text-gray-700 mb-2">Get started with EventCatalog Pro today and unlock all premium features.</p>
|
|
237
|
+
</div>
|
|
238
|
+
<a
|
|
239
|
+
href="https://www.eventcatalog.dev/pricing"
|
|
240
|
+
class="flex items-center justify-center px-5 py-2.5 bg-purple-600 text-white text-sm font-medium rounded hover:bg-purple-700 transition-colors"
|
|
241
|
+
>
|
|
242
|
+
View pricing and plans
|
|
243
|
+
<ExternalLink className="w-4 h-4 ml-1.5" />
|
|
244
|
+
</a>
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
|
|
248
|
+
{/* Questions section */}
|
|
249
|
+
<div class="mb-14">
|
|
250
|
+
<h2 class="text-2xl font-semibold mb-6 text-gray-900">Questions about EventCatalog Pro?</h2>
|
|
251
|
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
252
|
+
<div class="bg-white p-6 rounded-lg border border-gray-200">
|
|
253
|
+
<h3 class="text-lg font-semibold text-gray-900 mb-3">Request a Demo</h3>
|
|
254
|
+
<p class="text-gray-600 text-sm mb-4">See EventCatalog Pro in action with a personalized demo from our team.</p>
|
|
255
|
+
<a href="https://www.eventcatalog.dev/demo" class="text-sm text-purple-600 hover:text-purple-700 font-medium">
|
|
256
|
+
Schedule a demo →
|
|
257
|
+
</a>
|
|
258
|
+
</div>
|
|
259
|
+
<div class="bg-white p-6 rounded-lg border border-gray-200">
|
|
260
|
+
<h3 class="text-lg font-semibold text-gray-900 mb-3">Contact Sales</h3>
|
|
261
|
+
<p class="text-gray-600 text-sm mb-4">
|
|
262
|
+
Have questions about pricing, features, or implementation? Our team is here to help.
|
|
263
|
+
</p>
|
|
264
|
+
<a href="mailto:sales@eventcatalog.dev" class="text-sm text-purple-600 hover:text-purple-700 font-medium">
|
|
265
|
+
Contact our sales team →
|
|
266
|
+
</a>
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
</div>
|
|
270
|
+
</main>
|
|
271
|
+
</div>
|
|
272
|
+
</VerticalSideBarLayout>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'astro:content';
|
|
2
|
+
|
|
3
|
+
// Shared schemas used across multiple files
|
|
4
|
+
export const badge = z.object({
|
|
5
|
+
content: z.string(),
|
|
6
|
+
backgroundColor: z.string(),
|
|
7
|
+
textColor: z.string(),
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
// Create a union type for owners
|
|
11
|
+
export const ownerReference = z
|
|
12
|
+
.union([
|
|
13
|
+
// The ID of the user or team
|
|
14
|
+
z.string(),
|
|
15
|
+
// The full object with the ID and collection (keep compatibility with `reference`)
|
|
16
|
+
z.object({
|
|
17
|
+
id: z.string(),
|
|
18
|
+
collection: z.enum(['users', 'teams']),
|
|
19
|
+
}),
|
|
20
|
+
])
|
|
21
|
+
.transform(
|
|
22
|
+
// This transformation is needed to keep compatibility with `reference`.
|
|
23
|
+
// The utilities `getTeams` and `getUsers` rely on this transformation.
|
|
24
|
+
(lookup) => ({ id: typeof lookup === 'string' ? lookup : lookup.id })
|
|
25
|
+
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type CollectionTypes = 'commands' | 'events' | 'queries' | 'domains' | 'services' | 'flows' | 'channels';
|
|
2
2
|
export type CollectionMessageTypes = 'commands' | 'events' | 'queries';
|
|
3
3
|
export type CollectionUserTypes = 'users';
|
|
4
|
-
export type PageTypes = 'events' | 'commands' | 'queries' | 'services' | 'domains' | 'channels';
|
|
4
|
+
export type PageTypes = 'events' | 'commands' | 'queries' | 'services' | 'domains' | 'channels' | 'flows';
|
|
@@ -24,7 +24,18 @@ const getConfigValue = (obj: any, key: string, defaultValue: any) => {
|
|
|
24
24
|
|
|
25
25
|
export const isCollectionVisibleInCatalog = (collection: string) => {
|
|
26
26
|
const sidebarConfig = config?.default?.docs?.sidebar || {};
|
|
27
|
-
const collections = [
|
|
27
|
+
const collections = [
|
|
28
|
+
'events',
|
|
29
|
+
'commands',
|
|
30
|
+
'queries',
|
|
31
|
+
'domains',
|
|
32
|
+
'channels',
|
|
33
|
+
'flows',
|
|
34
|
+
'services',
|
|
35
|
+
'teams',
|
|
36
|
+
'users',
|
|
37
|
+
'customDocs',
|
|
38
|
+
];
|
|
28
39
|
|
|
29
40
|
if (!collections.includes(collection)) return false;
|
|
30
41
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// manually setting this value to true is against the rules and licenses of the open source project
|
|
2
|
+
// WARNING: Setting this value manually to true without a valid license is against the terms of use.
|
|
3
|
+
// If you require EventCatalog Pro features, please visit https://www.eventcatalog.dev/pricing
|
|
4
|
+
// to purchase a license. Unauthorized use may violate the project's license agreement.
|
|
5
|
+
export const isEventCatalogProEnabled = () => process.env.EVENTCATALOG_PRO === 'true';
|
|
@@ -4,6 +4,7 @@ import { getDomains } from '@utils/collections/domains';
|
|
|
4
4
|
import { getCommands, getEvents } from '@utils/messages';
|
|
5
5
|
import { getQueries } from '@utils/queries';
|
|
6
6
|
import { getServices } from '@utils/collections/services';
|
|
7
|
+
import { getFlows } from '@utils/collections/flows';
|
|
7
8
|
import type { CollectionEntry } from 'astro:content';
|
|
8
9
|
|
|
9
10
|
export const pageDataLoader: Record<PageTypes, () => Promise<CollectionEntry<CollectionTypes>[]>> = {
|
|
@@ -13,4 +14,5 @@ export const pageDataLoader: Record<PageTypes, () => Promise<CollectionEntry<Col
|
|
|
13
14
|
services: getServices,
|
|
14
15
|
domains: getDomains,
|
|
15
16
|
channels: getChannels,
|
|
17
|
+
flows: getFlows,
|
|
16
18
|
};
|