Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions lib/typescript/botbuilder-skills/.nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extension": [
".ts"
],
"exclude": [
"node_modules/**",
"test/**",
"coverage/**",
"**/*.d.ts"
],
"reporter": [
"cobertura",
"html",
"text"
],
"all": true,
"cache": true
}
5 changes: 4 additions & 1 deletion lib/typescript/botbuilder-skills/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"prebuild": "npm run lint",
"build": "tsc --p tsconfig.json && npm run copy-templates",
"lint": "tslint -t vso ./src/**/*.ts",
"test": "mocha ./test/"
"test": "mocha test/",
"coverage": "nyc mocha test/"
},
"dependencies": {
"@azure/ms-rest-js": "1.2.6",
Expand Down Expand Up @@ -42,6 +43,8 @@
"@types/uuid": "^3.4.4",
"copyfiles": "^2.1.0",
"mocha": "^6.1.4",
"mocha-junit-reporter": "^1.22.0",
"nyc": "^14.1.1",
"replace": "^1.0.0",
"rimraf": "^2.6.2",
"tslint": "^5.12.1",
Expand Down
5 changes: 5 additions & 0 deletions lib/typescript/botbuilder-skills/test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--reporter mocha-junit-reporter
--timeout 50000
--recursive
--colors
**/*Test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,309 @@
{
"id": "calendarSkill",
"name": "Calendar Skill",
"description": "The Calendar skill provides calendaring related capabilities and supports Office and Google calendars.",
"iconUrl": "calendarSkill.png",
"authenticationConnections": [
{
"id": "Outlook",
"serviceProviderId": "Azure Active Directory v2",
"scopes": "User.Read, User.ReadBasic.All, Calendars.ReadWrite, People.Read"
},
{
"id": "Google",
"serviceProviderId": "Google",
"scopes": "https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/contacts"
}
],
"actions": [
{
"id": "calendarSkill/createEvent",
"definition": {
"description": "Create a new event",
"slots": [
{
"name": "title",
"types": [ "string" ]
},
{
"name": "content",
"types": [ "string" ]
},
{
"name": "attendees",
"types": [ "string" ]
},
{
"name": "startDate",
"types": [ "string" ]
},
{
"name": "startTime",
"types": [ "string" ]
},
{
"name": "duration",
"types": [ "string" ]
},
{
"name": "location",
"types": [ "string" ]
}
],
"triggers": {
"utteranceSources": [
{
"locale": "en",
"source": [
"Calendar#CreateCalendarEntry",
"Calendar#FindMeetingRoom"
]
},
{
"locale": "de",
"source": [
"Calendar#CreateCalendarEntry",
"Calendar#FindMeetingRoom"
]
},
{
"locale": "fr",
"source": [
"Calendar#CreateCalendarEntry",
"Calendar#FindMeetingRoom"
]
}
]
}
}
},
{
"id": "calendarSkill/changeEventStatus",
"definition": {
"description": "Change the status of an event (accept/decline).",
"slots": [
{
"name": "startDate",
"types": [ "string" ]
},
{
"name": "startTime",
"types": [ "string" ]
}
],
"triggers": {
"utteranceSources": [
{
"locale": "en",
"source": [
"Calendar#AcceptEventEntry",
"Calendar#DeleteCalendarEntry"
]
},
{
"locale": "de",
"source": [
"Calendar#AcceptEventEntry",
"Calendar#DeleteCalendarEntry"
]
},
{
"locale": "fr",
"source": [
"Calendar#AcceptEventEntry",
"Calendar#DeleteCalendarEntry"
]
}
]
}
}
},
{
"id": "calendarSkill/joinEvent",
"definition": {
"description": "Join the upcoming meeting",
"slots": [],
"triggers": {
"utteranceSources": [
{
"locale": "en",
"source": [
"Calendar#ConnectToMeeting"
]
},
{
"locale": "de",
"source": [
"Calendar#ConnectToMeeting"
]
},
{
"locale": "fr",
"source": [
"Calendar#ConnectToMeeting"
]
}
]
}
}
},
{
"id": "https://calendarskill.microsoft.com/summary",
"definition": {
"description": "Retrieve a summary of meetings through an event invocation.",
"slots": [],
"triggers": {
"events": [
{
"Name": "summaryEvent"
}
]
}
}
},
{
"id": "calendarSkill/timeRemaining",
"definition": {
"description": "Find out how long until the next event",
"slots": [],
"triggers": {
"utteranceSources": [
{
"locale": "en",
"source": [
"Calendar#TimeRemaining"
]
},
{
"locale": "de",
"source": [
"Calendar#TimeRemaining"
]
},
{
"locale": "fr",
"source": [
"Calendar#TimeRemaining"
]
}
]
}
}
},
{
"id": "calendarSkill/summary",
"definition": {
"description": "Find an upcoming event",
"slots": [
{
"name": "startDate",
"types": [ "string" ]
},
{
"name": "startTime",
"types": [ "string" ]
},
{
"name": "endDate",
"types": [ "string" ]
},
{
"name": "endTime",
"types": [ "string" ]
}
],
"triggers": {
"utteranceSources": [
{
"locale": "en",
"source": [
"Calendar#FindCalendarDetail",
"Calendar#FindCalendarEntry",
"Calendar#FindCalendarWhen",
"Calendar#FindCalendarWhere",
"Calendar#FindCalendarWho",
"Calendar#FindDuration"
]
},
{
"locale": "de",
"source": [
"Calendar#FindCalendarDetail",
"Calendar#FindCalendarEntry",
"Calendar#FindCalendarWhen",
"Calendar#FindCalendarWhere",
"Calendar#FindCalendarWho",
"Calendar#FindDuration"
]
},
{
"locale": "fr",
"source": [
"Calendar#FindCalendarDetail",
"Calendar#FindCalendarEntry",
"Calendar#FindCalendarWhen",
"Calendar#FindCalendarWhere",
"Calendar#FindCalendarWho",
"Calendar#FindDuration"
]
}
]
}
}
},
{
"id": "calendarSkill/updateEvent",
"definition": {
"description": "Update an existing event.",
"slots": [
{
"name": "startDate",
"types": [ "string" ]
},
{
"name": "startTime",
"types": [ "string" ]
},
{
"name": "endDate",
"types": [ "string" ]
},
{
"name": "endTime",
"types": [ "string" ]
},
{
"name": "newStartDate",
"types": [ "string" ]
},
{
"name": "newStartTime",
"types": [ "string" ]
}
],
"triggers": {
"utteranceSources": [
{
"locale": "en",
"source": [
"Calendar#ChangeCalendarEntry"
]
},
{
"locale": "de",
"source": [
"Calendar#ChangeCalendarEntry"
]
},
{
"locale": "fr",
"source": [
"Calendar#ChangeCalendarEntry"
]
}
]
}
}
}
]
}
Empty file.
18 changes: 18 additions & 0 deletions lib/typescript/botbuilder-solutions/.nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"extension": [
".ts"
],
"exclude": [
"node_modules/**",
"test/**",
"coverage/**",
"**/*.d.ts"
],
"reporter": [
"cobertura",
"html",
"text"
],
"all": true,
"cache": true
}
5 changes: 4 additions & 1 deletion lib/typescript/botbuilder-solutions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"prebuild": "npm run lint",
"build": "tsc --p tsconfig.json && npm run copy-templates",
"lint": "tslint -t vso ./src/**/*.ts",
"test": "mocha ./test/"
"test": "mocha test/",
"coverage": "nyc mocha test/"
},
"dependencies": {
"adaptivecards": "^1.1.3",
Expand Down Expand Up @@ -40,6 +41,8 @@
"@types/restify": "^7.2.4",
"copyfiles": "^2.1.0",
"mocha": "^6.1.4",
"mocha-junit-reporter": "^1.22.0",
"nyc": "^14.1.1",
"replace": "^1.0.0",
"rimraf": "^2.6.2",
"tslint": "^5.12.1",
Expand Down
Loading