@eventcatalog/generator-asyncapi 4.5.3 → 4.5.4

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.d.mts CHANGED
@@ -9,6 +9,26 @@ declare const optionsSchema: z.ZodObject<{
9
9
  draft: z.ZodOptional<z.ZodBoolean>;
10
10
  name: z.ZodOptional<z.ZodString>;
11
11
  summary: z.ZodOptional<z.ZodString>;
12
+ writesTo: z.ZodOptional<z.ZodArray<z.ZodObject<{
13
+ id: z.ZodString;
14
+ version: z.ZodOptional<z.ZodString>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ id: string;
17
+ version?: string | undefined;
18
+ }, {
19
+ id: string;
20
+ version?: string | undefined;
21
+ }>, "many">>;
22
+ readsFrom: z.ZodOptional<z.ZodArray<z.ZodObject<{
23
+ id: z.ZodString;
24
+ version: z.ZodOptional<z.ZodString>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ id: string;
27
+ version?: string | undefined;
28
+ }, {
29
+ id: string;
30
+ version?: string | undefined;
31
+ }>, "many">>;
12
32
  owners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13
33
  generateMarkdown: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
14
34
  service: z.ZodObject<{
@@ -49,6 +69,14 @@ declare const optionsSchema: z.ZodObject<{
49
69
  draft?: boolean | undefined;
50
70
  name?: string | undefined;
51
71
  summary?: string | undefined;
72
+ writesTo?: {
73
+ id: string;
74
+ version?: string | undefined;
75
+ }[] | undefined;
76
+ readsFrom?: {
77
+ id: string;
78
+ version?: string | undefined;
79
+ }[] | undefined;
52
80
  owners?: string[] | undefined;
53
81
  generateMarkdown?: ((args_0: {
54
82
  service: {
@@ -65,6 +93,14 @@ declare const optionsSchema: z.ZodObject<{
65
93
  draft?: boolean | undefined;
66
94
  name?: string | undefined;
67
95
  summary?: string | undefined;
96
+ writesTo?: {
97
+ id: string;
98
+ version?: string | undefined;
99
+ }[] | undefined;
100
+ readsFrom?: {
101
+ id: string;
102
+ version?: string | undefined;
103
+ }[] | undefined;
68
104
  owners?: string[] | undefined;
69
105
  generateMarkdown?: ((args_0: {
70
106
  service: {
@@ -202,6 +238,14 @@ declare const optionsSchema: z.ZodObject<{
202
238
  draft?: boolean | undefined;
203
239
  name?: string | undefined;
204
240
  summary?: string | undefined;
241
+ writesTo?: {
242
+ id: string;
243
+ version?: string | undefined;
244
+ }[] | undefined;
245
+ readsFrom?: {
246
+ id: string;
247
+ version?: string | undefined;
248
+ }[] | undefined;
205
249
  owners?: string[] | undefined;
206
250
  generateMarkdown?: ((args_0: {
207
251
  service: {
@@ -253,6 +297,14 @@ declare const optionsSchema: z.ZodObject<{
253
297
  draft?: boolean | undefined;
254
298
  name?: string | undefined;
255
299
  summary?: string | undefined;
300
+ writesTo?: {
301
+ id: string;
302
+ version?: string | undefined;
303
+ }[] | undefined;
304
+ readsFrom?: {
305
+ id: string;
306
+ version?: string | undefined;
307
+ }[] | undefined;
256
308
  owners?: string[] | undefined;
257
309
  generateMarkdown?: ((args_0: {
258
310
  service: {
package/dist/index.d.ts CHANGED
@@ -9,6 +9,26 @@ declare const optionsSchema: z.ZodObject<{
9
9
  draft: z.ZodOptional<z.ZodBoolean>;
10
10
  name: z.ZodOptional<z.ZodString>;
11
11
  summary: z.ZodOptional<z.ZodString>;
12
+ writesTo: z.ZodOptional<z.ZodArray<z.ZodObject<{
13
+ id: z.ZodString;
14
+ version: z.ZodOptional<z.ZodString>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ id: string;
17
+ version?: string | undefined;
18
+ }, {
19
+ id: string;
20
+ version?: string | undefined;
21
+ }>, "many">>;
22
+ readsFrom: z.ZodOptional<z.ZodArray<z.ZodObject<{
23
+ id: z.ZodString;
24
+ version: z.ZodOptional<z.ZodString>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ id: string;
27
+ version?: string | undefined;
28
+ }, {
29
+ id: string;
30
+ version?: string | undefined;
31
+ }>, "many">>;
12
32
  owners: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13
33
  generateMarkdown: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
14
34
  service: z.ZodObject<{
@@ -49,6 +69,14 @@ declare const optionsSchema: z.ZodObject<{
49
69
  draft?: boolean | undefined;
50
70
  name?: string | undefined;
51
71
  summary?: string | undefined;
72
+ writesTo?: {
73
+ id: string;
74
+ version?: string | undefined;
75
+ }[] | undefined;
76
+ readsFrom?: {
77
+ id: string;
78
+ version?: string | undefined;
79
+ }[] | undefined;
52
80
  owners?: string[] | undefined;
53
81
  generateMarkdown?: ((args_0: {
54
82
  service: {
@@ -65,6 +93,14 @@ declare const optionsSchema: z.ZodObject<{
65
93
  draft?: boolean | undefined;
66
94
  name?: string | undefined;
67
95
  summary?: string | undefined;
96
+ writesTo?: {
97
+ id: string;
98
+ version?: string | undefined;
99
+ }[] | undefined;
100
+ readsFrom?: {
101
+ id: string;
102
+ version?: string | undefined;
103
+ }[] | undefined;
68
104
  owners?: string[] | undefined;
69
105
  generateMarkdown?: ((args_0: {
70
106
  service: {
@@ -202,6 +238,14 @@ declare const optionsSchema: z.ZodObject<{
202
238
  draft?: boolean | undefined;
203
239
  name?: string | undefined;
204
240
  summary?: string | undefined;
241
+ writesTo?: {
242
+ id: string;
243
+ version?: string | undefined;
244
+ }[] | undefined;
245
+ readsFrom?: {
246
+ id: string;
247
+ version?: string | undefined;
248
+ }[] | undefined;
205
249
  owners?: string[] | undefined;
206
250
  generateMarkdown?: ((args_0: {
207
251
  service: {
@@ -253,6 +297,14 @@ declare const optionsSchema: z.ZodObject<{
253
297
  draft?: boolean | undefined;
254
298
  name?: string | undefined;
255
299
  summary?: string | undefined;
300
+ writesTo?: {
301
+ id: string;
302
+ version?: string | undefined;
303
+ }[] | undefined;
304
+ readsFrom?: {
305
+ id: string;
306
+ version?: string | undefined;
307
+ }[] | undefined;
256
308
  owners?: string[] | undefined;
257
309
  generateMarkdown?: ((args_0: {
258
310
  service: {
package/dist/index.js CHANGED
@@ -303,7 +303,7 @@ var import_path3 = __toESM(require("path"));
303
303
  // package.json
304
304
  var package_default = {
305
305
  name: "@eventcatalog/generator-asyncapi",
306
- version: "4.5.3",
306
+ version: "4.5.4",
307
307
  description: "AsyncAPI generator for EventCatalog",
308
308
  scripts: {
309
309
  build: "tsup",
@@ -341,7 +341,7 @@ var package_default = {
341
341
  dependencies: {
342
342
  "@asyncapi/avro-schema-parser": "^3.0.24",
343
343
  "@asyncapi/parser": "^3.4.0",
344
- "@eventcatalog/sdk": "^2.7.5",
344
+ "@eventcatalog/sdk": "^2.8.3",
345
345
  chalk: "^4",
346
346
  "fs-extra": "^11.2.0",
347
347
  glob: "^11.0.0",
@@ -2731,6 +2731,8 @@ var optionsSchema = import_zod.z.object({
2731
2731
  draft: import_zod.z.boolean().optional(),
2732
2732
  name: import_zod.z.string().optional(),
2733
2733
  summary: import_zod.z.string().optional(),
2734
+ writesTo: import_zod.z.array(import_zod.z.object({ id: import_zod.z.string(), version: import_zod.z.string().optional() })).optional(),
2735
+ readsFrom: import_zod.z.array(import_zod.z.object({ id: import_zod.z.string(), version: import_zod.z.string().optional() })).optional(),
2734
2736
  owners: import_zod.z.array(import_zod.z.string()).optional(),
2735
2737
  generateMarkdown: import_zod.z.function().args(
2736
2738
  import_zod.z.object({
@@ -3110,7 +3112,9 @@ Processing domain: ${domainName} (v${domainVersion})`));
3110
3112
  ...repository && { repository },
3111
3113
  ...styles2 && { styles: styles2 },
3112
3114
  ...isServiceMarkedAsDraft && { draft: true },
3113
- ...attachments && { attachments }
3115
+ ...attachments && { attachments },
3116
+ ...service.writesTo && { writesTo: service.writesTo },
3117
+ ...service.readsFrom && { readsFrom: service.readsFrom }
3114
3118
  },
3115
3119
  {
3116
3120
  path: servicePath,