evmux-app-framework 0.0.87 → 0.0.88
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/package.json
CHANGED
|
@@ -51,6 +51,7 @@ export const availableRequests = {
|
|
|
51
51
|
listAssets: "listAssets", // get actual link locations of media assets per id
|
|
52
52
|
createStream: "createStream", // get actual link locations of media assets per id
|
|
53
53
|
displayInputs: "displayInputs",
|
|
54
|
+
accountPlanCapabilities: "accountPlanCapabilities",
|
|
54
55
|
|
|
55
56
|
|
|
56
57
|
}
|
|
@@ -7,11 +7,15 @@ export default class AppsObserverMiscHandler extends AppsObserverRequestHandlerB
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
canHandleRequest(requestObj) {
|
|
10
|
-
const supportedRequests = [availableRequests.createStream];
|
|
10
|
+
const supportedRequests = [availableRequests.createStream, availableRequests.accountPlanCapabilities];
|
|
11
11
|
return supportedRequests.includes(requestObj.request);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
async createStream(requestObj) {
|
|
15
15
|
return {value: window.mockStream || {} }
|
|
16
16
|
}
|
|
17
|
+
|
|
18
|
+
async accountPlanCapabilities(requestObj) {
|
|
19
|
+
return {value: window.mockAccountPlanCapabilities || {} }
|
|
20
|
+
}
|
|
17
21
|
}
|
|
@@ -17,4 +17,14 @@ export default class EvmuxAppsApiMisc {
|
|
|
17
17
|
return this.evmuxAppsApi._postMessageManager.sendRequestAsync(reqObj);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
async accountPlanCapabilities(){
|
|
21
|
+
let reqObj = {
|
|
22
|
+
request: availableRequests.accountPlanCapabilities,
|
|
23
|
+
userAppInstanceId: this.evmuxAppsApi._userAppInstanceId,
|
|
24
|
+
componentId: this.evmuxAppsApi._componentId,
|
|
25
|
+
data: {}
|
|
26
|
+
}
|
|
27
|
+
return this.evmuxAppsApi._postMessageManager.sendRequestAsync(reqObj);
|
|
28
|
+
}
|
|
29
|
+
|
|
20
30
|
}
|