@eventcatalog/sdk 2.18.3 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +13 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -56,6 +56,7 @@ type SendsPointer = {
|
|
|
56
56
|
version?: string;
|
|
57
57
|
fields?: string[];
|
|
58
58
|
to?: ChannelPointer[];
|
|
59
|
+
group?: string;
|
|
59
60
|
};
|
|
60
61
|
|
|
61
62
|
type ReceivesPointer = {
|
|
@@ -63,6 +64,7 @@ type ReceivesPointer = {
|
|
|
63
64
|
version?: string;
|
|
64
65
|
fields?: string[];
|
|
65
66
|
from?: ChannelPointer[];
|
|
67
|
+
group?: string;
|
|
66
68
|
};
|
|
67
69
|
|
|
68
70
|
interface ResourceGroup {
|
|
@@ -128,18 +130,20 @@ interface Query extends BaseSchema {
|
|
|
128
130
|
interface Channel extends BaseSchema {
|
|
129
131
|
address?: string;
|
|
130
132
|
protocols?: string[];
|
|
133
|
+
deliveryGuarantee?: 'at-most-once' | 'at-least-once' | 'exactly-once';
|
|
131
134
|
routes?: ChannelPointer[];
|
|
132
135
|
detailsPanel?: {
|
|
133
136
|
producers?: DetailPanelProperty;
|
|
134
137
|
consumers?: DetailPanelProperty;
|
|
135
138
|
messages?: DetailPanelProperty;
|
|
136
139
|
protocols?: DetailPanelProperty;
|
|
140
|
+
parameters?: DetailPanelProperty;
|
|
137
141
|
versions?: DetailPanelProperty;
|
|
138
142
|
repository?: DetailPanelProperty;
|
|
139
143
|
owners?: DetailPanelProperty;
|
|
140
144
|
changelog?: DetailPanelProperty;
|
|
145
|
+
attachments?: DetailPanelProperty;
|
|
141
146
|
};
|
|
142
|
-
// parameters?: Record<string, Parameter>;
|
|
143
147
|
parameters?: {
|
|
144
148
|
[key: string]: {
|
|
145
149
|
enum?: string[];
|
|
@@ -168,6 +172,7 @@ interface Service extends BaseSchema {
|
|
|
168
172
|
entities?: ResourcePointer[];
|
|
169
173
|
writesTo?: ResourcePointer[];
|
|
170
174
|
readsFrom?: ResourcePointer[];
|
|
175
|
+
flows?: ResourcePointer[];
|
|
171
176
|
specifications?: Specifications | Specification[];
|
|
172
177
|
detailsPanel?: {
|
|
173
178
|
domains?: DetailPanelProperty;
|
|
@@ -186,6 +191,7 @@ interface Domain extends BaseSchema {
|
|
|
186
191
|
domains?: ResourcePointer[];
|
|
187
192
|
entities?: ResourcePointer[];
|
|
188
193
|
dataProducts?: ResourcePointer[];
|
|
194
|
+
flows?: ResourcePointer[];
|
|
189
195
|
sends?: SendsPointer[];
|
|
190
196
|
receives?: ReceivesPointer[];
|
|
191
197
|
detailsPanel?: {
|
|
@@ -1088,6 +1094,7 @@ declare const _default: (path: string) => {
|
|
|
1088
1094
|
id: string;
|
|
1089
1095
|
version: string;
|
|
1090
1096
|
fields?: string[];
|
|
1097
|
+
group?: string;
|
|
1091
1098
|
}, version?: string) => Promise<void>;
|
|
1092
1099
|
/**
|
|
1093
1100
|
* Add a data store to a service by it's id.
|
|
@@ -1132,6 +1139,7 @@ declare const _default: (path: string) => {
|
|
|
1132
1139
|
id: string;
|
|
1133
1140
|
version: string;
|
|
1134
1141
|
fields?: string[];
|
|
1142
|
+
group?: string;
|
|
1135
1143
|
}, version?: string) => Promise<void>;
|
|
1136
1144
|
/**
|
|
1137
1145
|
* Add a query to a service by it's id.
|
|
@@ -1156,6 +1164,7 @@ declare const _default: (path: string) => {
|
|
|
1156
1164
|
id: string;
|
|
1157
1165
|
version: string;
|
|
1158
1166
|
fields?: string[];
|
|
1167
|
+
group?: string;
|
|
1159
1168
|
}, version?: string) => Promise<void>;
|
|
1160
1169
|
/**
|
|
1161
1170
|
* Add an entity to a service by its id.
|
|
@@ -1346,6 +1355,7 @@ declare const _default: (path: string) => {
|
|
|
1346
1355
|
id: string;
|
|
1347
1356
|
version: string;
|
|
1348
1357
|
fields?: string[];
|
|
1358
|
+
group?: string;
|
|
1349
1359
|
}, version?: string) => Promise<void>;
|
|
1350
1360
|
/**
|
|
1351
1361
|
* Add a command to a domain by its id.
|
|
@@ -1368,6 +1378,7 @@ declare const _default: (path: string) => {
|
|
|
1368
1378
|
id: string;
|
|
1369
1379
|
version: string;
|
|
1370
1380
|
fields?: string[];
|
|
1381
|
+
group?: string;
|
|
1371
1382
|
}, version?: string) => Promise<void>;
|
|
1372
1383
|
/**
|
|
1373
1384
|
* Add a query to a domain by its id.
|
|
@@ -1390,6 +1401,7 @@ declare const _default: (path: string) => {
|
|
|
1390
1401
|
id: string;
|
|
1391
1402
|
version: string;
|
|
1392
1403
|
fields?: string[];
|
|
1404
|
+
group?: string;
|
|
1393
1405
|
}, version?: string) => Promise<void>;
|
|
1394
1406
|
/**
|
|
1395
1407
|
* ================================
|
package/dist/index.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ type SendsPointer = {
|
|
|
56
56
|
version?: string;
|
|
57
57
|
fields?: string[];
|
|
58
58
|
to?: ChannelPointer[];
|
|
59
|
+
group?: string;
|
|
59
60
|
};
|
|
60
61
|
|
|
61
62
|
type ReceivesPointer = {
|
|
@@ -63,6 +64,7 @@ type ReceivesPointer = {
|
|
|
63
64
|
version?: string;
|
|
64
65
|
fields?: string[];
|
|
65
66
|
from?: ChannelPointer[];
|
|
67
|
+
group?: string;
|
|
66
68
|
};
|
|
67
69
|
|
|
68
70
|
interface ResourceGroup {
|
|
@@ -128,18 +130,20 @@ interface Query extends BaseSchema {
|
|
|
128
130
|
interface Channel extends BaseSchema {
|
|
129
131
|
address?: string;
|
|
130
132
|
protocols?: string[];
|
|
133
|
+
deliveryGuarantee?: 'at-most-once' | 'at-least-once' | 'exactly-once';
|
|
131
134
|
routes?: ChannelPointer[];
|
|
132
135
|
detailsPanel?: {
|
|
133
136
|
producers?: DetailPanelProperty;
|
|
134
137
|
consumers?: DetailPanelProperty;
|
|
135
138
|
messages?: DetailPanelProperty;
|
|
136
139
|
protocols?: DetailPanelProperty;
|
|
140
|
+
parameters?: DetailPanelProperty;
|
|
137
141
|
versions?: DetailPanelProperty;
|
|
138
142
|
repository?: DetailPanelProperty;
|
|
139
143
|
owners?: DetailPanelProperty;
|
|
140
144
|
changelog?: DetailPanelProperty;
|
|
145
|
+
attachments?: DetailPanelProperty;
|
|
141
146
|
};
|
|
142
|
-
// parameters?: Record<string, Parameter>;
|
|
143
147
|
parameters?: {
|
|
144
148
|
[key: string]: {
|
|
145
149
|
enum?: string[];
|
|
@@ -168,6 +172,7 @@ interface Service extends BaseSchema {
|
|
|
168
172
|
entities?: ResourcePointer[];
|
|
169
173
|
writesTo?: ResourcePointer[];
|
|
170
174
|
readsFrom?: ResourcePointer[];
|
|
175
|
+
flows?: ResourcePointer[];
|
|
171
176
|
specifications?: Specifications | Specification[];
|
|
172
177
|
detailsPanel?: {
|
|
173
178
|
domains?: DetailPanelProperty;
|
|
@@ -186,6 +191,7 @@ interface Domain extends BaseSchema {
|
|
|
186
191
|
domains?: ResourcePointer[];
|
|
187
192
|
entities?: ResourcePointer[];
|
|
188
193
|
dataProducts?: ResourcePointer[];
|
|
194
|
+
flows?: ResourcePointer[];
|
|
189
195
|
sends?: SendsPointer[];
|
|
190
196
|
receives?: ReceivesPointer[];
|
|
191
197
|
detailsPanel?: {
|
|
@@ -1088,6 +1094,7 @@ declare const _default: (path: string) => {
|
|
|
1088
1094
|
id: string;
|
|
1089
1095
|
version: string;
|
|
1090
1096
|
fields?: string[];
|
|
1097
|
+
group?: string;
|
|
1091
1098
|
}, version?: string) => Promise<void>;
|
|
1092
1099
|
/**
|
|
1093
1100
|
* Add a data store to a service by it's id.
|
|
@@ -1132,6 +1139,7 @@ declare const _default: (path: string) => {
|
|
|
1132
1139
|
id: string;
|
|
1133
1140
|
version: string;
|
|
1134
1141
|
fields?: string[];
|
|
1142
|
+
group?: string;
|
|
1135
1143
|
}, version?: string) => Promise<void>;
|
|
1136
1144
|
/**
|
|
1137
1145
|
* Add a query to a service by it's id.
|
|
@@ -1156,6 +1164,7 @@ declare const _default: (path: string) => {
|
|
|
1156
1164
|
id: string;
|
|
1157
1165
|
version: string;
|
|
1158
1166
|
fields?: string[];
|
|
1167
|
+
group?: string;
|
|
1159
1168
|
}, version?: string) => Promise<void>;
|
|
1160
1169
|
/**
|
|
1161
1170
|
* Add an entity to a service by its id.
|
|
@@ -1346,6 +1355,7 @@ declare const _default: (path: string) => {
|
|
|
1346
1355
|
id: string;
|
|
1347
1356
|
version: string;
|
|
1348
1357
|
fields?: string[];
|
|
1358
|
+
group?: string;
|
|
1349
1359
|
}, version?: string) => Promise<void>;
|
|
1350
1360
|
/**
|
|
1351
1361
|
* Add a command to a domain by its id.
|
|
@@ -1368,6 +1378,7 @@ declare const _default: (path: string) => {
|
|
|
1368
1378
|
id: string;
|
|
1369
1379
|
version: string;
|
|
1370
1380
|
fields?: string[];
|
|
1381
|
+
group?: string;
|
|
1371
1382
|
}, version?: string) => Promise<void>;
|
|
1372
1383
|
/**
|
|
1373
1384
|
* Add a query to a domain by its id.
|
|
@@ -1390,6 +1401,7 @@ declare const _default: (path: string) => {
|
|
|
1390
1401
|
id: string;
|
|
1391
1402
|
version: string;
|
|
1392
1403
|
fields?: string[];
|
|
1404
|
+
group?: string;
|
|
1393
1405
|
}, version?: string) => Promise<void>;
|
|
1394
1406
|
/**
|
|
1395
1407
|
* ================================
|
package/dist/index.js
CHANGED
|
@@ -863,8 +863,12 @@ var copyDir = async (catalogDir, source, target, filter) => {
|
|
|
863
863
|
import_node_fs.default.rmSync(tmpDirectory, { recursive: true });
|
|
864
864
|
};
|
|
865
865
|
var buildMessagePointer = (message) => {
|
|
866
|
-
const pointer = {
|
|
866
|
+
const pointer = {
|
|
867
|
+
id: message.id,
|
|
868
|
+
version: message.version
|
|
869
|
+
};
|
|
867
870
|
if (message.fields) pointer.fields = message.fields;
|
|
871
|
+
if (message.group) pointer.group = message.group;
|
|
868
872
|
return pointer;
|
|
869
873
|
};
|
|
870
874
|
var uniqueVersions = (messages) => {
|