@eventcatalog/sdk 2.18.4 → 2.20.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 +9 -0
- package/dist/index.d.ts +9 -0
- 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 {
|
|
@@ -171,6 +173,7 @@ interface Service extends BaseSchema {
|
|
|
171
173
|
writesTo?: ResourcePointer[];
|
|
172
174
|
readsFrom?: ResourcePointer[];
|
|
173
175
|
flows?: ResourcePointer[];
|
|
176
|
+
externalSystem?: boolean;
|
|
174
177
|
specifications?: Specifications | Specification[];
|
|
175
178
|
detailsPanel?: {
|
|
176
179
|
domains?: DetailPanelProperty;
|
|
@@ -1092,6 +1095,7 @@ declare const _default: (path: string) => {
|
|
|
1092
1095
|
id: string;
|
|
1093
1096
|
version: string;
|
|
1094
1097
|
fields?: string[];
|
|
1098
|
+
group?: string;
|
|
1095
1099
|
}, version?: string) => Promise<void>;
|
|
1096
1100
|
/**
|
|
1097
1101
|
* Add a data store to a service by it's id.
|
|
@@ -1136,6 +1140,7 @@ declare const _default: (path: string) => {
|
|
|
1136
1140
|
id: string;
|
|
1137
1141
|
version: string;
|
|
1138
1142
|
fields?: string[];
|
|
1143
|
+
group?: string;
|
|
1139
1144
|
}, version?: string) => Promise<void>;
|
|
1140
1145
|
/**
|
|
1141
1146
|
* Add a query to a service by it's id.
|
|
@@ -1160,6 +1165,7 @@ declare const _default: (path: string) => {
|
|
|
1160
1165
|
id: string;
|
|
1161
1166
|
version: string;
|
|
1162
1167
|
fields?: string[];
|
|
1168
|
+
group?: string;
|
|
1163
1169
|
}, version?: string) => Promise<void>;
|
|
1164
1170
|
/**
|
|
1165
1171
|
* Add an entity to a service by its id.
|
|
@@ -1350,6 +1356,7 @@ declare const _default: (path: string) => {
|
|
|
1350
1356
|
id: string;
|
|
1351
1357
|
version: string;
|
|
1352
1358
|
fields?: string[];
|
|
1359
|
+
group?: string;
|
|
1353
1360
|
}, version?: string) => Promise<void>;
|
|
1354
1361
|
/**
|
|
1355
1362
|
* Add a command to a domain by its id.
|
|
@@ -1372,6 +1379,7 @@ declare const _default: (path: string) => {
|
|
|
1372
1379
|
id: string;
|
|
1373
1380
|
version: string;
|
|
1374
1381
|
fields?: string[];
|
|
1382
|
+
group?: string;
|
|
1375
1383
|
}, version?: string) => Promise<void>;
|
|
1376
1384
|
/**
|
|
1377
1385
|
* Add a query to a domain by its id.
|
|
@@ -1394,6 +1402,7 @@ declare const _default: (path: string) => {
|
|
|
1394
1402
|
id: string;
|
|
1395
1403
|
version: string;
|
|
1396
1404
|
fields?: string[];
|
|
1405
|
+
group?: string;
|
|
1397
1406
|
}, version?: string) => Promise<void>;
|
|
1398
1407
|
/**
|
|
1399
1408
|
* ================================
|
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 {
|
|
@@ -171,6 +173,7 @@ interface Service extends BaseSchema {
|
|
|
171
173
|
writesTo?: ResourcePointer[];
|
|
172
174
|
readsFrom?: ResourcePointer[];
|
|
173
175
|
flows?: ResourcePointer[];
|
|
176
|
+
externalSystem?: boolean;
|
|
174
177
|
specifications?: Specifications | Specification[];
|
|
175
178
|
detailsPanel?: {
|
|
176
179
|
domains?: DetailPanelProperty;
|
|
@@ -1092,6 +1095,7 @@ declare const _default: (path: string) => {
|
|
|
1092
1095
|
id: string;
|
|
1093
1096
|
version: string;
|
|
1094
1097
|
fields?: string[];
|
|
1098
|
+
group?: string;
|
|
1095
1099
|
}, version?: string) => Promise<void>;
|
|
1096
1100
|
/**
|
|
1097
1101
|
* Add a data store to a service by it's id.
|
|
@@ -1136,6 +1140,7 @@ declare const _default: (path: string) => {
|
|
|
1136
1140
|
id: string;
|
|
1137
1141
|
version: string;
|
|
1138
1142
|
fields?: string[];
|
|
1143
|
+
group?: string;
|
|
1139
1144
|
}, version?: string) => Promise<void>;
|
|
1140
1145
|
/**
|
|
1141
1146
|
* Add a query to a service by it's id.
|
|
@@ -1160,6 +1165,7 @@ declare const _default: (path: string) => {
|
|
|
1160
1165
|
id: string;
|
|
1161
1166
|
version: string;
|
|
1162
1167
|
fields?: string[];
|
|
1168
|
+
group?: string;
|
|
1163
1169
|
}, version?: string) => Promise<void>;
|
|
1164
1170
|
/**
|
|
1165
1171
|
* Add an entity to a service by its id.
|
|
@@ -1350,6 +1356,7 @@ declare const _default: (path: string) => {
|
|
|
1350
1356
|
id: string;
|
|
1351
1357
|
version: string;
|
|
1352
1358
|
fields?: string[];
|
|
1359
|
+
group?: string;
|
|
1353
1360
|
}, version?: string) => Promise<void>;
|
|
1354
1361
|
/**
|
|
1355
1362
|
* Add a command to a domain by its id.
|
|
@@ -1372,6 +1379,7 @@ declare const _default: (path: string) => {
|
|
|
1372
1379
|
id: string;
|
|
1373
1380
|
version: string;
|
|
1374
1381
|
fields?: string[];
|
|
1382
|
+
group?: string;
|
|
1375
1383
|
}, version?: string) => Promise<void>;
|
|
1376
1384
|
/**
|
|
1377
1385
|
* Add a query to a domain by its id.
|
|
@@ -1394,6 +1402,7 @@ declare const _default: (path: string) => {
|
|
|
1394
1402
|
id: string;
|
|
1395
1403
|
version: string;
|
|
1396
1404
|
fields?: string[];
|
|
1405
|
+
group?: string;
|
|
1397
1406
|
}, version?: string) => Promise<void>;
|
|
1398
1407
|
/**
|
|
1399
1408
|
* ================================
|
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) => {
|