Skip to content

Commit bd68615

Browse files
committed
feat: Update component schemas to include type definitions for output fields in CreateSquad and GetSquad components
1 parent 0b31d4e commit bd68615

File tree

3 files changed

+16
-59
lines changed

3 files changed

+16
-59
lines changed

src/appmixer/vapi/core/CreateSquad/component.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@
5353
{
5454
"name": "out",
5555
"options": [
56-
{ "label": "Squad Members", "value": "members" },
57-
{ "label": "Squad ID", "value": "id" },
58-
{ "label": "Organization ID", "value": "orgId" },
59-
{ "label": "Squad Name", "value": "name" },
60-
{ "label": "Created At", "value": "createdAt" },
61-
{ "label": "Updated At", "value": "updatedAt" }
56+
{ "label": "Squad ID", "value": "id", "schema": { "type": "string" } },
57+
{ "label": "Organization ID", "value": "orgId", "schema": { "type": "string" } },
58+
{ "label": "Squad Name", "value": "name", "schema": { "type": "string" } },
59+
{ "label": "Created At", "value": "createdAt", "schema": { "type": "string" } },
60+
{ "label": "Updated At", "value": "updatedAt", "schema": { "type": "string" } },
61+
{ "label": "Members", "value": "members", "schema": { "type": "array" } }
6262
]
6363
}
6464
],

src/appmixer/vapi/core/FindSquads/FindSquads.js

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,12 @@
33
const lib = require('../../lib');
44

55
const schema = {
6-
'id': { 'type': 'string', 'title': 'Id' },
7-
'name': { 'type': 'string', 'title': 'Name' },
8-
'description': { 'type': 'string', 'title': 'Description' },
9-
'members': {
10-
'type': 'array',
11-
'items': {
12-
'type': 'object',
13-
'properties': {
14-
'id': { 'type': 'string', 'title': 'Members.Id' },
15-
'name': { 'type': 'string', 'title': 'Members.Name' },
16-
'email': { 'type': 'string', 'title': 'Members.Email' },
17-
'role': { 'type': 'string', 'title': 'Members.Role' }
18-
},
19-
'required': ['id', 'name', 'email', 'role']
20-
},
21-
'title': 'Members'
22-
},
6+
'id': { 'type': 'string', 'title': 'Squad ID' },
7+
'orgId': { 'type': 'string', 'title': 'Organization ID' },
8+
'name': { 'type': 'string', 'title': 'Squad Name' },
239
'createdAt': { 'type': 'string', 'title': 'Created At' },
2410
'updatedAt': { 'type': 'string', 'title': 'Updated At' },
25-
'status': { 'type': 'string', 'title': 'Status' }
11+
'members': { 'type': 'array', 'title': 'Members' }
2612
};
2713

2814
module.exports = {

src/appmixer/vapi/core/GetSquad/component.json

Lines changed: 6 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -43,41 +43,12 @@
4343
{
4444
"name": "out",
4545
"options": [
46-
{
47-
"label": "Squad ID",
48-
"value": "id",
49-
"schema": {
50-
"type": "string"
51-
}
52-
},
53-
{
54-
"label": "Organization ID",
55-
"value": "orgId",
56-
"schema": {
57-
"type": "string"
58-
}
59-
},
60-
{
61-
"label": "Squad Name",
62-
"value": "name",
63-
"schema": {
64-
"type": "string"
65-
}
66-
},
67-
{
68-
"label": "Created At",
69-
"value": "createdAt",
70-
"schema": {
71-
"type": "string"
72-
}
73-
},
74-
{
75-
"label": "Updated At",
76-
"value": "updatedAt",
77-
"schema": {
78-
"type": "string"
79-
}
80-
}
46+
{ "label": "Squad ID", "value": "id", "schema": { "type": "string" } },
47+
{ "label": "Organization ID", "value": "orgId", "schema": { "type": "string" } },
48+
{ "label": "Squad Name", "value": "name", "schema": { "type": "string" } },
49+
{ "label": "Created At", "value": "createdAt", "schema": { "type": "string" } },
50+
{ "label": "Updated At", "value": "updatedAt", "schema": { "type": "string" } },
51+
{ "label": "Members", "value": "members", "schema": { "type": "array" } }
8152
]
8253
}
8354
],

0 commit comments

Comments
 (0)