diff --git a/lib/classes/models/Misc/SyneriseSource.d.ts b/lib/classes/models/Misc/SyneriseSource.d.ts new file mode 100644 index 0000000..80c6455 --- /dev/null +++ b/lib/classes/models/Misc/SyneriseSource.d.ts @@ -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 }; diff --git a/lib/classes/models/Misc/SyneriseSource.js b/lib/classes/models/Misc/SyneriseSource.js new file mode 100644 index 0000000..cd74c33 --- /dev/null +++ b/lib/classes/models/Misc/SyneriseSource.js @@ -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;