-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(FEC-8739): block action is not fired from OTT provider (#71)
OTT BE rule action enum is a string equal to BLOCK while in OVP it is an int equal to 1. We are currently using a base enum, which is incorrect as the enums are different, so need to separate the enum. I also moved the base provider parser utility functions to more appropriate places, as having a base with shared enums between providers is not manageable.
- Loading branch information
Showing
17 changed files
with
324 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//@flow | ||
export default class KalturaRuleAction { | ||
static Type: {[type: string]: string | number} = { | ||
BLOCK: 'BLOCK', | ||
START_DATE_OFFSET: 'START_DATE_OFFSET', | ||
END_DATE_OFFSET: 'END_DATE_OFFSET', | ||
USER_BLOCK: 'USER_BLOCK', | ||
ALLOW_PLAYBACK: 'ALLOW_PLAYBACK', | ||
BLOCK_PLAYBACK: 'BLOCK_PLAYBACK', | ||
APPLY_DISCOUNT_MODULE: 'APPLY_DISCOUNT_MODULE' | ||
}; | ||
|
||
/** | ||
* @member - The type of the action | ||
* @type {string|number} | ||
*/ | ||
type: string | number; | ||
|
||
/** | ||
* @constructor | ||
* @param {Object} data - The response | ||
*/ | ||
constructor(data: Object) { | ||
this.type = data.type; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.