@eventcatalog/sdk 2.15.0 → 2.15.1

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
@@ -75,6 +75,12 @@ interface ChannelPointer extends ResourcePointer {
75
75
  parameters?: Record<string, string>;
76
76
  }
77
77
 
78
+ type Operation = {
79
+ method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
80
+ path?: string;
81
+ statusCodes?: string[];
82
+ };
83
+
78
84
  type Message = Event | Command | Query;
79
85
 
80
86
  interface CustomDoc {
@@ -101,14 +107,17 @@ interface MessageDetailsPanelProperty {
101
107
 
102
108
  interface Event extends BaseSchema {
103
109
  channels?: ChannelPointer[];
110
+ operation?: Operation;
104
111
  detailsPanel?: MessageDetailsPanelProperty;
105
112
  }
106
113
  interface Command extends BaseSchema {
107
114
  channels?: ChannelPointer[];
115
+ operation?: Operation;
108
116
  detailsPanel?: MessageDetailsPanelProperty;
109
117
  }
110
118
  interface Query extends BaseSchema {
111
119
  channels?: ChannelPointer[];
120
+ operation?: Operation;
112
121
  detailsPanel?: MessageDetailsPanelProperty;
113
122
  }
114
123
  interface Channel extends BaseSchema {
@@ -1749,4 +1758,4 @@ declare const _default: (path: string) => {
1749
1758
  toDSL: (resource: (Event | Command | Query | Service | Domain) | (Event | Command | Query | Service | Domain)[], options: ToDSLOptions) => Promise<string>;
1750
1759
  };
1751
1760
 
1752
- export { type Badge, type BaseSchema, type Channel, type ChannelPointer, type Command, type Container, type CustomDoc, type DataProduct, type DataProductOutputPointer, type Diagram, type Domain, type Entity, type Event, type EventCatalog, type Message, type Query, type ReceivesPointer, type ResourceGroup, type ResourcePointer, type SendsPointer, type Service, type Specification, type Specifications, type Team, type UbiquitousLanguage, type UbiquitousLanguageDictionary, type User, _default as default };
1761
+ export { type Badge, type BaseSchema, type Channel, type ChannelPointer, type Command, type Container, type CustomDoc, type DataProduct, type DataProductOutputPointer, type Diagram, type Domain, type Entity, type Event, type EventCatalog, type Message, type Operation, type Query, type ReceivesPointer, type ResourceGroup, type ResourcePointer, type SendsPointer, type Service, type Specification, type Specifications, type Team, type UbiquitousLanguage, type UbiquitousLanguageDictionary, type User, _default as default };
package/dist/index.d.ts CHANGED
@@ -75,6 +75,12 @@ interface ChannelPointer extends ResourcePointer {
75
75
  parameters?: Record<string, string>;
76
76
  }
77
77
 
78
+ type Operation = {
79
+ method?: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
80
+ path?: string;
81
+ statusCodes?: string[];
82
+ };
83
+
78
84
  type Message = Event | Command | Query;
79
85
 
80
86
  interface CustomDoc {
@@ -101,14 +107,17 @@ interface MessageDetailsPanelProperty {
101
107
 
102
108
  interface Event extends BaseSchema {
103
109
  channels?: ChannelPointer[];
110
+ operation?: Operation;
104
111
  detailsPanel?: MessageDetailsPanelProperty;
105
112
  }
106
113
  interface Command extends BaseSchema {
107
114
  channels?: ChannelPointer[];
115
+ operation?: Operation;
108
116
  detailsPanel?: MessageDetailsPanelProperty;
109
117
  }
110
118
  interface Query extends BaseSchema {
111
119
  channels?: ChannelPointer[];
120
+ operation?: Operation;
112
121
  detailsPanel?: MessageDetailsPanelProperty;
113
122
  }
114
123
  interface Channel extends BaseSchema {
@@ -1749,4 +1758,4 @@ declare const _default: (path: string) => {
1749
1758
  toDSL: (resource: (Event | Command | Query | Service | Domain) | (Event | Command | Query | Service | Domain)[], options: ToDSLOptions) => Promise<string>;
1750
1759
  };
1751
1760
 
1752
- export { type Badge, type BaseSchema, type Channel, type ChannelPointer, type Command, type Container, type CustomDoc, type DataProduct, type DataProductOutputPointer, type Diagram, type Domain, type Entity, type Event, type EventCatalog, type Message, type Query, type ReceivesPointer, type ResourceGroup, type ResourcePointer, type SendsPointer, type Service, type Specification, type Specifications, type Team, type UbiquitousLanguage, type UbiquitousLanguageDictionary, type User, _default as default };
1761
+ export { type Badge, type BaseSchema, type Channel, type ChannelPointer, type Command, type Container, type CustomDoc, type DataProduct, type DataProductOutputPointer, type Diagram, type Domain, type Entity, type Event, type EventCatalog, type Message, type Operation, type Query, type ReceivesPointer, type ResourceGroup, type ResourcePointer, type SendsPointer, type Service, type Specification, type Specifications, type Team, type UbiquitousLanguage, type UbiquitousLanguageDictionary, type User, _default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventcatalog/sdk",
3
- "version": "2.15.0",
3
+ "version": "2.15.1",
4
4
  "description": "SDK to integrate with EventCatalog",
5
5
  "publishConfig": {
6
6
  "access": "public"