From ab9492341685572f7d8345123dc5ad208f561258 Mon Sep 17 00:00:00 2001 From: Krzysztof Kurzawa Date: Tue, 16 Jan 2024 23:58:00 +0100 Subject: [PATCH] Release of version 0.18.0 --- lib/classes/models/Misc/SyneriseSource.d.ts | 10 +++++++ lib/classes/models/Misc/SyneriseSource.js | 32 +++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 lib/classes/models/Misc/SyneriseSource.d.ts create mode 100644 lib/classes/models/Misc/SyneriseSource.js 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;