@digipair/skill-common 0.98.5 → 0.99.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/index.cjs.js CHANGED
@@ -89,7 +89,7 @@ let CommonService = class CommonService {
89
89
  }).filter((name)=>name).map(async (name)=>{
90
90
  const actionContent = await fs.promises.readFile(`${path}/common/action-${name}.json`, 'utf8');
91
91
  const { summary, description, metadata } = JSON.parse(actionContent);
92
- var _metadata_tags, _metadata_parameters, _metadata_context;
92
+ var _metadata_tags, _metadata_parameters, _metadata_context, _metadata_output;
93
93
  return {
94
94
  key: `/action-${name}`,
95
95
  value: {
@@ -101,7 +101,18 @@ let CommonService = class CommonService {
101
101
  description,
102
102
  parameters: (_metadata_parameters = metadata.parameters) != null ? _metadata_parameters : [],
103
103
  'x-events': [],
104
- 'x-context': (_metadata_context = metadata.context) != null ? _metadata_context : false
104
+ 'x-context': (_metadata_context = metadata.context) != null ? _metadata_context : false,
105
+ responses: {
106
+ '200': {
107
+ content: {
108
+ 'application/json': {
109
+ schema: (_metadata_output = metadata.output) != null ? _metadata_output : {
110
+ type: 'null'
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
105
116
  }
106
117
  }
107
118
  };
@@ -115,7 +126,7 @@ let CommonService = class CommonService {
115
126
  }).filter((name)=>name).map(async (name)=>{
116
127
  const actionContent = await fs.promises.readFile(`${path}/${digipair}/action-${name}.json`, 'utf8');
117
128
  const { summary, description, metadata } = JSON.parse(actionContent);
118
- var _metadata_tags, _metadata_parameters, _metadata_context;
129
+ var _metadata_tags, _metadata_parameters, _metadata_context, _metadata_output;
119
130
  return {
120
131
  key: `/action-${name}`,
121
132
  value: {
@@ -127,7 +138,18 @@ let CommonService = class CommonService {
127
138
  description,
128
139
  parameters: (_metadata_parameters = metadata.parameters) != null ? _metadata_parameters : [],
129
140
  'x-events': [],
130
- 'x-context': (_metadata_context = metadata.context) != null ? _metadata_context : false
141
+ 'x-context': (_metadata_context = metadata.context) != null ? _metadata_context : false,
142
+ responses: {
143
+ '200': {
144
+ content: {
145
+ 'application/json': {
146
+ schema: (_metadata_output = metadata.output) != null ? _metadata_output : {
147
+ type: 'null'
148
+ }
149
+ }
150
+ }
151
+ }
152
+ }
131
153
  }
132
154
  }
133
155
  };
package/index.esm.js CHANGED
@@ -85,7 +85,7 @@ let CommonService = class CommonService {
85
85
  }).filter((name)=>name).map(async (name)=>{
86
86
  const actionContent = await promises.readFile(`${path}/common/action-${name}.json`, 'utf8');
87
87
  const { summary, description, metadata } = JSON.parse(actionContent);
88
- var _metadata_tags, _metadata_parameters, _metadata_context;
88
+ var _metadata_tags, _metadata_parameters, _metadata_context, _metadata_output;
89
89
  return {
90
90
  key: `/action-${name}`,
91
91
  value: {
@@ -97,7 +97,18 @@ let CommonService = class CommonService {
97
97
  description,
98
98
  parameters: (_metadata_parameters = metadata.parameters) != null ? _metadata_parameters : [],
99
99
  'x-events': [],
100
- 'x-context': (_metadata_context = metadata.context) != null ? _metadata_context : false
100
+ 'x-context': (_metadata_context = metadata.context) != null ? _metadata_context : false,
101
+ responses: {
102
+ '200': {
103
+ content: {
104
+ 'application/json': {
105
+ schema: (_metadata_output = metadata.output) != null ? _metadata_output : {
106
+ type: 'null'
107
+ }
108
+ }
109
+ }
110
+ }
111
+ }
101
112
  }
102
113
  }
103
114
  };
@@ -111,7 +122,7 @@ let CommonService = class CommonService {
111
122
  }).filter((name)=>name).map(async (name)=>{
112
123
  const actionContent = await promises.readFile(`${path}/${digipair}/action-${name}.json`, 'utf8');
113
124
  const { summary, description, metadata } = JSON.parse(actionContent);
114
- var _metadata_tags, _metadata_parameters, _metadata_context;
125
+ var _metadata_tags, _metadata_parameters, _metadata_context, _metadata_output;
115
126
  return {
116
127
  key: `/action-${name}`,
117
128
  value: {
@@ -123,7 +134,18 @@ let CommonService = class CommonService {
123
134
  description,
124
135
  parameters: (_metadata_parameters = metadata.parameters) != null ? _metadata_parameters : [],
125
136
  'x-events': [],
126
- 'x-context': (_metadata_context = metadata.context) != null ? _metadata_context : false
137
+ 'x-context': (_metadata_context = metadata.context) != null ? _metadata_context : false,
138
+ responses: {
139
+ '200': {
140
+ content: {
141
+ 'application/json': {
142
+ schema: (_metadata_output = metadata.output) != null ? _metadata_output : {
143
+ type: 'null'
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
127
149
  }
128
150
  }
129
151
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-common",
3
- "version": "0.98.5",
3
+ "version": "0.99.0",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "service",