@enplug/sdk-dashboard
Advanced tools
Comparing version 5.1.15 to 5.1.16-account.1
{ | ||
"name": "@enplug/sdk-dashboard", | ||
"version": "5.1.15", | ||
"version": "5.1.16-account.1", | ||
"description": "Enplug Dashboard SDK", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.ts", |
@@ -17,4 +17,5 @@ import { BridgeBase } from './bridge/bridge-base'; | ||
authInstagram(accessToken: string): Promise<any> { | ||
authInstagram(accessToken: string, accountId: string): Promise<any> { | ||
validateString(accessToken, 'No authCode provided.'); | ||
validateString(accountId, 'No accountId provided.'); | ||
@@ -26,2 +27,3 @@ return this.bridge.sendMessage({ | ||
accessToken, | ||
accountId, | ||
}, | ||
@@ -45,4 +47,5 @@ }); | ||
getInstagramAccounts(userId: string): Promise<any> { | ||
getInstagramAccounts(userId: string, accountId: string): Promise<any> { | ||
validateString(userId, 'No Facebook User Id provided'); | ||
validateString(accountId, 'No AccountId Id provided'); | ||
@@ -54,2 +57,3 @@ return this.bridge.sendMessage({ | ||
userId, | ||
accountId, | ||
}, | ||
@@ -76,11 +80,17 @@ }); | ||
getSlackTeams(): Promise<any> { | ||
getSlackTeams(accountId: string): Promise<any> { | ||
validateString(accountId, 'No accountId provided'); | ||
return this.bridge.sendMessage({ | ||
namespace: MessageNamespaces.Social, | ||
name: MessageNames.GetSlackTeams, | ||
params: { | ||
accountId, | ||
}, | ||
}); | ||
} | ||
getSlackChannels(teamId: string): Promise<any> { | ||
getSlackChannels(teamId: string, accountId: string): Promise<any> { | ||
validateString(teamId, 'No teamId provided'); | ||
validateString(accountId, 'No accountId provided'); | ||
@@ -90,3 +100,6 @@ return this.bridge.sendMessage({ | ||
name: MessageNames.GetSlackChannels, | ||
params: teamId, | ||
params: { | ||
teamId, | ||
accountId, | ||
}, | ||
}); | ||
@@ -93,0 +106,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
202492
3230
2