Skip to content

Commit

Permalink
Merge pull request #157 from DanPatten/master
Browse files Browse the repository at this point in the history
Add support for customer history records
  • Loading branch information
bbindreiter authored Oct 27, 2023
2 parents f7516df + 7347204 commit 6ad36ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/alexa-remote-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class AlexaRemoteExt extends AlexaRemote {
'getAutomationRoutines',
'getMusicProviders',
'getActivities',
'getCustomerHistoryRecords',
'getHomeGroup',
'getCards',
'sendTextMessage',
Expand Down
2 changes: 1 addition & 1 deletion nodes/alexa-remote-other.html
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ <h3><strong>References</strong></h3>
'notifications', // getNotifications([cached])
'automationRoutines', // getAutomationRoutines([limit])
'musicProviders', // getMusicProviders([limit])
'activities', // getActivities({size, offset})
'activities', // getCustomerHistoryRecords({size, offset})
'list', // getList(listType[, options])
'homeGroup', // getHomeGroup()
'cards', // getCards([limit][, beforeCreationTime])
Expand Down
2 changes: 1 addition & 1 deletion nodes/alexa-remote-other.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = function (RED) {

case 'activities':
if(!tools.matches(value, { count: 10, offset: 1 })) return error(`invalid input: "${JSON.stringify(config)}"`);
return alexa.getActivitiesPromise({ size: value.count, offset: value.offset }).then(send).catch(error);
return alexa.getCustomerHistoryRecordsPromise({ size: value.count, offset: value.offset }).then(send).catch(error);

case 'cards':
if(!tools.matches(value, { count: 10 })) return error(`invalid input: "${JSON.stringify(config)}"`);
Expand Down

0 comments on commit 6ad36ff

Please sign in to comment.