update bundle and type

This commit is contained in:
Akinwale Ariwodola 2019-05-22 17:37:25 +01:00
parent a5d486bd3b
commit 5cff70a26b
2 changed files with 20 additions and 0 deletions

12
dist/bundle.es.js vendored
View file

@ -2917,6 +2917,18 @@ const defaultState$1 = {
purchasedStreamingUrls: {}
};
reducers$1[PURCHASE_URI_STARTED] = (state, action) => {
const { uri } = action.data;
const newFailedPurchaseUris = state.failedPurchaseUris.slice();
if (newFailedPurchaseUris.includes(uri)) {
newFailedPurchaseUris.splice(newFailedPurchaseUris.indexOf(uri), 1);
}
return _extends$4({}, state, {
failedPurchaseUris: newFailedPurchaseUris
});
};
reducers$1[PURCHASE_URI_COMPLETED] = (state, action) => {
const { uri, streamingUrl } = action.data;
const newPurchasedUris = state.purchasedUris.slice();

View file

@ -55,3 +55,11 @@ declare type PurchaseUriFailed = {
uri: string
},
};
declare type PurchaseUriStarted = {
type: ACTIONS.PURCHASE_URI_STARTED,
data: {
uri: string,
streamingUrl: string,
},
};