-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Krzysztof Kurzawa
committed
Jan 16, 2024
1 parent
e254604
commit ab94923
Showing
2 changed files
with
42 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
declare enum SyneriseSource { | ||
NotSpecified = "NOT_SPECIFIED", | ||
SimplePush = "SIMPLE_PUSH", | ||
Banner = "BANNER", | ||
Walkthrough = "WALKTHROUGH", | ||
InAppMessage = "IN_APP_MESSAGE" | ||
} | ||
declare function SyneriseSourceFromString(string: string): SyneriseSource; | ||
declare function SyneriseSourceToString(activity: SyneriseSource): string; | ||
export { SyneriseSource, SyneriseSourceFromString, SyneriseSourceToString }; |
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,32 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.SyneriseSourceToString = exports.SyneriseSourceFromString = exports.SyneriseSource = void 0; | ||
var SyneriseSource; | ||
(function (SyneriseSource) { | ||
SyneriseSource["NotSpecified"] = "NOT_SPECIFIED"; | ||
SyneriseSource["SimplePush"] = "SIMPLE_PUSH"; | ||
SyneriseSource["Banner"] = "BANNER"; | ||
SyneriseSource["Walkthrough"] = "WALKTHROUGH"; | ||
SyneriseSource["InAppMessage"] = "IN_APP_MESSAGE"; | ||
})(SyneriseSource || (SyneriseSource = {})); | ||
exports.SyneriseSource = SyneriseSource; | ||
function SyneriseSourceFromString(string) { | ||
if (string === SyneriseSource.SimplePush) { | ||
return SyneriseSource.SimplePush; | ||
} | ||
else if (string === SyneriseSource.Banner) { | ||
return SyneriseSource.Banner; | ||
} | ||
else if (string === SyneriseSource.Walkthrough) { | ||
return SyneriseSource.Walkthrough; | ||
} | ||
else if (string === SyneriseSource.InAppMessage) { | ||
return SyneriseSource.InAppMessage; | ||
} | ||
return SyneriseSource.NotSpecified; | ||
} | ||
exports.SyneriseSourceFromString = SyneriseSourceFromString; | ||
function SyneriseSourceToString(activity) { | ||
return activity; | ||
} | ||
exports.SyneriseSourceToString = SyneriseSourceToString; |