securiti-consent-sdk 1.132.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NitroSecuritiConsentSdk.podspec +37 -0
- package/README.md +45 -0
- package/android/CMakeLists.txt +29 -0
- package/android/build.gradle +146 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/cpp/cpp-adapter.cpp +6 -0
- package/android/src/main/java/com/margelo/nitro/securiticonsentsdk/HybridConsentSDK.kt +669 -0
- package/android/src/main/java/com/margelo/nitro/securiticonsentsdk/NitroSecuritiConsentSdkPackage.java +33 -0
- package/ios/Bridge.h +10 -0
- package/ios/HybridConsentSDK.swift +640 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/android/NitroSecuritiConsentSdk+autolinking.cmake +78 -0
- package/nitrogen/generated/android/NitroSecuritiConsentSdk+autolinking.gradle +27 -0
- package/nitrogen/generated/android/NitroSecuritiConsentSdkOnLoad.cpp +48 -0
- package/nitrogen/generated/android/NitroSecuritiConsentSdkOnLoad.hpp +25 -0
- package/nitrogen/generated/android/c++/JAppPermission.hpp +86 -0
- package/nitrogen/generated/android/c++/JBannerConfig.hpp +194 -0
- package/nitrogen/generated/android/c++/JCmpSDKOptions.hpp +94 -0
- package/nitrogen/generated/android/c++/JCustomColors.hpp +82 -0
- package/nitrogen/generated/android/c++/JFunc_void_bool.hpp +74 -0
- package/nitrogen/generated/android/c++/JHybridConsentSDKSpec.cpp +277 -0
- package/nitrogen/generated/android/c++/JHybridConsentSDKSpec.hpp +78 -0
- package/nitrogen/generated/android/c++/JPermissionConsent.hpp +61 -0
- package/nitrogen/generated/android/c++/JPostConsentsRequest.hpp +137 -0
- package/nitrogen/generated/android/c++/JPurpose.hpp +118 -0
- package/nitrogen/generated/android/c++/JPurposeConsent.hpp +65 -0
- package/nitrogen/generated/android/c++/JSDK.hpp +104 -0
- package/nitrogen/generated/android/c++/JSettingsPrompt.hpp +88 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/AppPermission.kt +34 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/BannerConfig.kt +57 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CmpSDKOptions.kt +36 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/CustomColors.kt +33 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/Func_void_bool.kt +80 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/HybridConsentSDKSpec.kt +121 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/NitroSecuritiConsentSdkOnLoad.kt +35 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PermissionConsent.kt +28 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PostConsentsRequest.kt +37 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/Purpose.kt +37 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/PurposeConsent.kt +29 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/SDK.kt +34 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/securiticonsentsdk/SettingsPrompt.kt +30 -0
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk+autolinking.rb +60 -0
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Bridge.cpp +96 -0
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Bridge.hpp +604 -0
- package/nitrogen/generated/ios/NitroSecuritiConsentSdk-Swift-Cxx-Umbrella.hpp +78 -0
- package/nitrogen/generated/ios/NitroSecuritiConsentSdkAutolinking.mm +33 -0
- package/nitrogen/generated/ios/NitroSecuritiConsentSdkAutolinking.swift +25 -0
- package/nitrogen/generated/ios/c++/HybridConsentSDKSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridConsentSDKSpecSwift.hpp +223 -0
- package/nitrogen/generated/ios/swift/AppPermission.swift +267 -0
- package/nitrogen/generated/ios/swift/BannerConfig.swift +918 -0
- package/nitrogen/generated/ios/swift/CmpSDKOptions.swift +217 -0
- package/nitrogen/generated/ios/swift/CustomColors.swift +256 -0
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__optional_BannerConfig_.swift +52 -0
- package/nitrogen/generated/ios/swift/Func_void_std__optional_SettingsPrompt_.swift +52 -0
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_AppPermission_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_Purpose_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_SDK_.swift +46 -0
- package/nitrogen/generated/ios/swift/HybridConsentSDKSpec.swift +64 -0
- package/nitrogen/generated/ios/swift/HybridConsentSDKSpec_cxx.swift +398 -0
- package/nitrogen/generated/ios/swift/PermissionConsent.swift +57 -0
- package/nitrogen/generated/ios/swift/PostConsentsRequest.swift +216 -0
- package/nitrogen/generated/ios/swift/Purpose.swift +354 -0
- package/nitrogen/generated/ios/swift/PurposeConsent.swift +68 -0
- package/nitrogen/generated/ios/swift/SDK.swift +285 -0
- package/nitrogen/generated/ios/swift/SettingsPrompt.swift +181 -0
- package/nitrogen/generated/shared/c++/AppPermission.hpp +102 -0
- package/nitrogen/generated/shared/c++/BannerConfig.hpp +197 -0
- package/nitrogen/generated/shared/c++/CmpSDKOptions.hpp +110 -0
- package/nitrogen/generated/shared/c++/CustomColors.hpp +98 -0
- package/nitrogen/generated/shared/c++/HybridConsentSDKSpec.cpp +37 -0
- package/nitrogen/generated/shared/c++/HybridConsentSDKSpec.hpp +102 -0
- package/nitrogen/generated/shared/c++/PermissionConsent.hpp +77 -0
- package/nitrogen/generated/shared/c++/PostConsentsRequest.hpp +120 -0
- package/nitrogen/generated/shared/c++/Purpose.hpp +117 -0
- package/nitrogen/generated/shared/c++/PurposeConsent.hpp +81 -0
- package/nitrogen/generated/shared/c++/SDK.hpp +103 -0
- package/nitrogen/generated/shared/c++/SettingsPrompt.hpp +87 -0
- package/package.json +107 -0
- package/react-native.config.js +16 -0
- package/src/ConsentSDK.nitro.ts +232 -0
- package/src/index.ts +133 -0
|
@@ -0,0 +1,604 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NitroSecuritiConsentSdk-Swift-Cxx-Bridge.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
// Forward declarations of C++ defined types
|
|
11
|
+
// Forward declaration of `AppPermission` to properly resolve imports.
|
|
12
|
+
namespace margelo::nitro::securiticonsentsdk { struct AppPermission; }
|
|
13
|
+
// Forward declaration of `BannerConfig` to properly resolve imports.
|
|
14
|
+
namespace margelo::nitro::securiticonsentsdk { struct BannerConfig; }
|
|
15
|
+
// Forward declaration of `CmpSDKOptions` to properly resolve imports.
|
|
16
|
+
namespace margelo::nitro::securiticonsentsdk { struct CmpSDKOptions; }
|
|
17
|
+
// Forward declaration of `CustomColors` to properly resolve imports.
|
|
18
|
+
namespace margelo::nitro::securiticonsentsdk { struct CustomColors; }
|
|
19
|
+
// Forward declaration of `HybridConsentSDKSpec` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::securiticonsentsdk { class HybridConsentSDKSpec; }
|
|
21
|
+
// Forward declaration of `PermissionConsent` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::securiticonsentsdk { struct PermissionConsent; }
|
|
23
|
+
// Forward declaration of `PurposeConsent` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::securiticonsentsdk { struct PurposeConsent; }
|
|
25
|
+
// Forward declaration of `Purpose` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::securiticonsentsdk { struct Purpose; }
|
|
27
|
+
// Forward declaration of `SDK` to properly resolve imports.
|
|
28
|
+
namespace margelo::nitro::securiticonsentsdk { struct SDK; }
|
|
29
|
+
// Forward declaration of `SettingsPrompt` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::securiticonsentsdk { struct SettingsPrompt; }
|
|
31
|
+
|
|
32
|
+
// Forward declarations of Swift defined types
|
|
33
|
+
// Forward declaration of `HybridConsentSDKSpec_cxx` to properly resolve imports.
|
|
34
|
+
namespace NitroSecuritiConsentSdk { class HybridConsentSDKSpec_cxx; }
|
|
35
|
+
|
|
36
|
+
// Include C++ defined types
|
|
37
|
+
#include "AppPermission.hpp"
|
|
38
|
+
#include "BannerConfig.hpp"
|
|
39
|
+
#include "CmpSDKOptions.hpp"
|
|
40
|
+
#include "CustomColors.hpp"
|
|
41
|
+
#include "HybridConsentSDKSpec.hpp"
|
|
42
|
+
#include "PermissionConsent.hpp"
|
|
43
|
+
#include "Purpose.hpp"
|
|
44
|
+
#include "PurposeConsent.hpp"
|
|
45
|
+
#include "SDK.hpp"
|
|
46
|
+
#include "SettingsPrompt.hpp"
|
|
47
|
+
#include <NitroModules/Promise.hpp>
|
|
48
|
+
#include <NitroModules/PromiseHolder.hpp>
|
|
49
|
+
#include <NitroModules/Result.hpp>
|
|
50
|
+
#include <exception>
|
|
51
|
+
#include <functional>
|
|
52
|
+
#include <memory>
|
|
53
|
+
#include <optional>
|
|
54
|
+
#include <string>
|
|
55
|
+
#include <unordered_map>
|
|
56
|
+
#include <vector>
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Contains specialized versions of C++ templated types so they can be accessed from Swift,
|
|
60
|
+
* as well as helper functions to interact with those C++ types from Swift.
|
|
61
|
+
*/
|
|
62
|
+
namespace margelo::nitro::securiticonsentsdk::bridge::swift {
|
|
63
|
+
|
|
64
|
+
// pragma MARK: std::optional<std::string>
|
|
65
|
+
/**
|
|
66
|
+
* Specialized version of `std::optional<std::string>`.
|
|
67
|
+
*/
|
|
68
|
+
using std__optional_std__string_ = std::optional<std::string>;
|
|
69
|
+
inline std::optional<std::string> create_std__optional_std__string_(const std::string& value) {
|
|
70
|
+
return std::optional<std::string>(value);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// pragma MARK: std::function<void(bool /* isReady */)>
|
|
74
|
+
/**
|
|
75
|
+
* Specialized version of `std::function<void(bool)>`.
|
|
76
|
+
*/
|
|
77
|
+
using Func_void_bool = std::function<void(bool /* isReady */)>;
|
|
78
|
+
/**
|
|
79
|
+
* Wrapper class for a `std::function<void(bool / * isReady * /)>`, this can be used from Swift.
|
|
80
|
+
*/
|
|
81
|
+
class Func_void_bool_Wrapper final {
|
|
82
|
+
public:
|
|
83
|
+
explicit Func_void_bool_Wrapper(std::function<void(bool /* isReady */)>&& func): _function(std::make_shared<std::function<void(bool /* isReady */)>>(std::move(func))) {}
|
|
84
|
+
inline void call(bool isReady) const {
|
|
85
|
+
_function->operator()(isReady);
|
|
86
|
+
}
|
|
87
|
+
private:
|
|
88
|
+
std::shared_ptr<std::function<void(bool /* isReady */)>> _function;
|
|
89
|
+
};
|
|
90
|
+
Func_void_bool create_Func_void_bool(void* _Nonnull swiftClosureWrapper);
|
|
91
|
+
inline Func_void_bool_Wrapper wrap_Func_void_bool(Func_void_bool value) {
|
|
92
|
+
return Func_void_bool_Wrapper(std::move(value));
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// pragma MARK: std::shared_ptr<Promise<std::string>>
|
|
96
|
+
/**
|
|
97
|
+
* Specialized version of `std::shared_ptr<Promise<std::string>>`.
|
|
98
|
+
*/
|
|
99
|
+
using std__shared_ptr_Promise_std__string__ = std::shared_ptr<Promise<std::string>>;
|
|
100
|
+
inline std::shared_ptr<Promise<std::string>> create_std__shared_ptr_Promise_std__string__() {
|
|
101
|
+
return Promise<std::string>::create();
|
|
102
|
+
}
|
|
103
|
+
inline PromiseHolder<std::string> wrap_std__shared_ptr_Promise_std__string__(std::shared_ptr<Promise<std::string>> promise) {
|
|
104
|
+
return PromiseHolder<std::string>(std::move(promise));
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// pragma MARK: std::function<void(const std::string& /* result */)>
|
|
108
|
+
/**
|
|
109
|
+
* Specialized version of `std::function<void(const std::string&)>`.
|
|
110
|
+
*/
|
|
111
|
+
using Func_void_std__string = std::function<void(const std::string& /* result */)>;
|
|
112
|
+
/**
|
|
113
|
+
* Wrapper class for a `std::function<void(const std::string& / * result * /)>`, this can be used from Swift.
|
|
114
|
+
*/
|
|
115
|
+
class Func_void_std__string_Wrapper final {
|
|
116
|
+
public:
|
|
117
|
+
explicit Func_void_std__string_Wrapper(std::function<void(const std::string& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::string& /* result */)>>(std::move(func))) {}
|
|
118
|
+
inline void call(std::string result) const {
|
|
119
|
+
_function->operator()(result);
|
|
120
|
+
}
|
|
121
|
+
private:
|
|
122
|
+
std::shared_ptr<std::function<void(const std::string& /* result */)>> _function;
|
|
123
|
+
};
|
|
124
|
+
Func_void_std__string create_Func_void_std__string(void* _Nonnull swiftClosureWrapper);
|
|
125
|
+
inline Func_void_std__string_Wrapper wrap_Func_void_std__string(Func_void_std__string value) {
|
|
126
|
+
return Func_void_std__string_Wrapper(std::move(value));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// pragma MARK: std::function<void(const std::exception_ptr& /* error */)>
|
|
130
|
+
/**
|
|
131
|
+
* Specialized version of `std::function<void(const std::exception_ptr&)>`.
|
|
132
|
+
*/
|
|
133
|
+
using Func_void_std__exception_ptr = std::function<void(const std::exception_ptr& /* error */)>;
|
|
134
|
+
/**
|
|
135
|
+
* Wrapper class for a `std::function<void(const std::exception_ptr& / * error * /)>`, this can be used from Swift.
|
|
136
|
+
*/
|
|
137
|
+
class Func_void_std__exception_ptr_Wrapper final {
|
|
138
|
+
public:
|
|
139
|
+
explicit Func_void_std__exception_ptr_Wrapper(std::function<void(const std::exception_ptr& /* error */)>&& func): _function(std::make_shared<std::function<void(const std::exception_ptr& /* error */)>>(std::move(func))) {}
|
|
140
|
+
inline void call(std::exception_ptr error) const {
|
|
141
|
+
_function->operator()(error);
|
|
142
|
+
}
|
|
143
|
+
private:
|
|
144
|
+
std::shared_ptr<std::function<void(const std::exception_ptr& /* error */)>> _function;
|
|
145
|
+
};
|
|
146
|
+
Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* _Nonnull swiftClosureWrapper);
|
|
147
|
+
inline Func_void_std__exception_ptr_Wrapper wrap_Func_void_std__exception_ptr(Func_void_std__exception_ptr value) {
|
|
148
|
+
return Func_void_std__exception_ptr_Wrapper(std::move(value));
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// pragma MARK: std::optional<double>
|
|
152
|
+
/**
|
|
153
|
+
* Specialized version of `std::optional<double>`.
|
|
154
|
+
*/
|
|
155
|
+
using std__optional_double_ = std::optional<double>;
|
|
156
|
+
inline std::optional<double> create_std__optional_double_(const double& value) {
|
|
157
|
+
return std::optional<double>(value);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// pragma MARK: std::optional<bool>
|
|
161
|
+
/**
|
|
162
|
+
* Specialized version of `std::optional<bool>`.
|
|
163
|
+
*/
|
|
164
|
+
using std__optional_bool_ = std::optional<bool>;
|
|
165
|
+
inline std::optional<bool> create_std__optional_bool_(const bool& value) {
|
|
166
|
+
return std::optional<bool>(value);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// pragma MARK: std::vector<AppPermission>
|
|
170
|
+
/**
|
|
171
|
+
* Specialized version of `std::vector<AppPermission>`.
|
|
172
|
+
*/
|
|
173
|
+
using std__vector_AppPermission_ = std::vector<AppPermission>;
|
|
174
|
+
inline std::vector<AppPermission> create_std__vector_AppPermission_(size_t size) {
|
|
175
|
+
std::vector<AppPermission> vector;
|
|
176
|
+
vector.reserve(size);
|
|
177
|
+
return vector;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<AppPermission>>>
|
|
181
|
+
/**
|
|
182
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<AppPermission>>>`.
|
|
183
|
+
*/
|
|
184
|
+
using std__shared_ptr_Promise_std__vector_AppPermission___ = std::shared_ptr<Promise<std::vector<AppPermission>>>;
|
|
185
|
+
inline std::shared_ptr<Promise<std::vector<AppPermission>>> create_std__shared_ptr_Promise_std__vector_AppPermission___() {
|
|
186
|
+
return Promise<std::vector<AppPermission>>::create();
|
|
187
|
+
}
|
|
188
|
+
inline PromiseHolder<std::vector<AppPermission>> wrap_std__shared_ptr_Promise_std__vector_AppPermission___(std::shared_ptr<Promise<std::vector<AppPermission>>> promise) {
|
|
189
|
+
return PromiseHolder<std::vector<AppPermission>>(std::move(promise));
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// pragma MARK: std::function<void(const std::vector<AppPermission>& /* result */)>
|
|
193
|
+
/**
|
|
194
|
+
* Specialized version of `std::function<void(const std::vector<AppPermission>&)>`.
|
|
195
|
+
*/
|
|
196
|
+
using Func_void_std__vector_AppPermission_ = std::function<void(const std::vector<AppPermission>& /* result */)>;
|
|
197
|
+
/**
|
|
198
|
+
* Wrapper class for a `std::function<void(const std::vector<AppPermission>& / * result * /)>`, this can be used from Swift.
|
|
199
|
+
*/
|
|
200
|
+
class Func_void_std__vector_AppPermission__Wrapper final {
|
|
201
|
+
public:
|
|
202
|
+
explicit Func_void_std__vector_AppPermission__Wrapper(std::function<void(const std::vector<AppPermission>& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::vector<AppPermission>& /* result */)>>(std::move(func))) {}
|
|
203
|
+
inline void call(std::vector<AppPermission> result) const {
|
|
204
|
+
_function->operator()(result);
|
|
205
|
+
}
|
|
206
|
+
private:
|
|
207
|
+
std::shared_ptr<std::function<void(const std::vector<AppPermission>& /* result */)>> _function;
|
|
208
|
+
};
|
|
209
|
+
Func_void_std__vector_AppPermission_ create_Func_void_std__vector_AppPermission_(void* _Nonnull swiftClosureWrapper);
|
|
210
|
+
inline Func_void_std__vector_AppPermission__Wrapper wrap_Func_void_std__vector_AppPermission_(Func_void_std__vector_AppPermission_ value) {
|
|
211
|
+
return Func_void_std__vector_AppPermission__Wrapper(std::move(value));
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// pragma MARK: std::vector<std::string>
|
|
215
|
+
/**
|
|
216
|
+
* Specialized version of `std::vector<std::string>`.
|
|
217
|
+
*/
|
|
218
|
+
using std__vector_std__string_ = std::vector<std::string>;
|
|
219
|
+
inline std::vector<std::string> create_std__vector_std__string_(size_t size) {
|
|
220
|
+
std::vector<std::string> vector;
|
|
221
|
+
vector.reserve(size);
|
|
222
|
+
return vector;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
// pragma MARK: std::optional<std::vector<std::string>>
|
|
226
|
+
/**
|
|
227
|
+
* Specialized version of `std::optional<std::vector<std::string>>`.
|
|
228
|
+
*/
|
|
229
|
+
using std__optional_std__vector_std__string__ = std::optional<std::vector<std::string>>;
|
|
230
|
+
inline std::optional<std::vector<std::string>> create_std__optional_std__vector_std__string__(const std::vector<std::string>& value) {
|
|
231
|
+
return std::optional<std::vector<std::string>>(value);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// pragma MARK: std::vector<SDK>
|
|
235
|
+
/**
|
|
236
|
+
* Specialized version of `std::vector<SDK>`.
|
|
237
|
+
*/
|
|
238
|
+
using std__vector_SDK_ = std::vector<SDK>;
|
|
239
|
+
inline std::vector<SDK> create_std__vector_SDK_(size_t size) {
|
|
240
|
+
std::vector<SDK> vector;
|
|
241
|
+
vector.reserve(size);
|
|
242
|
+
return vector;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// pragma MARK: std::optional<std::vector<SDK>>
|
|
246
|
+
/**
|
|
247
|
+
* Specialized version of `std::optional<std::vector<SDK>>`.
|
|
248
|
+
*/
|
|
249
|
+
using std__optional_std__vector_SDK__ = std::optional<std::vector<SDK>>;
|
|
250
|
+
inline std::optional<std::vector<SDK>> create_std__optional_std__vector_SDK__(const std::vector<SDK>& value) {
|
|
251
|
+
return std::optional<std::vector<SDK>>(value);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// pragma MARK: std::vector<Purpose>
|
|
255
|
+
/**
|
|
256
|
+
* Specialized version of `std::vector<Purpose>`.
|
|
257
|
+
*/
|
|
258
|
+
using std__vector_Purpose_ = std::vector<Purpose>;
|
|
259
|
+
inline std::vector<Purpose> create_std__vector_Purpose_(size_t size) {
|
|
260
|
+
std::vector<Purpose> vector;
|
|
261
|
+
vector.reserve(size);
|
|
262
|
+
return vector;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<Purpose>>>
|
|
266
|
+
/**
|
|
267
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<Purpose>>>`.
|
|
268
|
+
*/
|
|
269
|
+
using std__shared_ptr_Promise_std__vector_Purpose___ = std::shared_ptr<Promise<std::vector<Purpose>>>;
|
|
270
|
+
inline std::shared_ptr<Promise<std::vector<Purpose>>> create_std__shared_ptr_Promise_std__vector_Purpose___() {
|
|
271
|
+
return Promise<std::vector<Purpose>>::create();
|
|
272
|
+
}
|
|
273
|
+
inline PromiseHolder<std::vector<Purpose>> wrap_std__shared_ptr_Promise_std__vector_Purpose___(std::shared_ptr<Promise<std::vector<Purpose>>> promise) {
|
|
274
|
+
return PromiseHolder<std::vector<Purpose>>(std::move(promise));
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// pragma MARK: std::function<void(const std::vector<Purpose>& /* result */)>
|
|
278
|
+
/**
|
|
279
|
+
* Specialized version of `std::function<void(const std::vector<Purpose>&)>`.
|
|
280
|
+
*/
|
|
281
|
+
using Func_void_std__vector_Purpose_ = std::function<void(const std::vector<Purpose>& /* result */)>;
|
|
282
|
+
/**
|
|
283
|
+
* Wrapper class for a `std::function<void(const std::vector<Purpose>& / * result * /)>`, this can be used from Swift.
|
|
284
|
+
*/
|
|
285
|
+
class Func_void_std__vector_Purpose__Wrapper final {
|
|
286
|
+
public:
|
|
287
|
+
explicit Func_void_std__vector_Purpose__Wrapper(std::function<void(const std::vector<Purpose>& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::vector<Purpose>& /* result */)>>(std::move(func))) {}
|
|
288
|
+
inline void call(std::vector<Purpose> result) const {
|
|
289
|
+
_function->operator()(result);
|
|
290
|
+
}
|
|
291
|
+
private:
|
|
292
|
+
std::shared_ptr<std::function<void(const std::vector<Purpose>& /* result */)>> _function;
|
|
293
|
+
};
|
|
294
|
+
Func_void_std__vector_Purpose_ create_Func_void_std__vector_Purpose_(void* _Nonnull swiftClosureWrapper);
|
|
295
|
+
inline Func_void_std__vector_Purpose__Wrapper wrap_Func_void_std__vector_Purpose_(Func_void_std__vector_Purpose_ value) {
|
|
296
|
+
return Func_void_std__vector_Purpose__Wrapper(std::move(value));
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<SDK>>>
|
|
300
|
+
/**
|
|
301
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<SDK>>>`.
|
|
302
|
+
*/
|
|
303
|
+
using std__shared_ptr_Promise_std__vector_SDK___ = std::shared_ptr<Promise<std::vector<SDK>>>;
|
|
304
|
+
inline std::shared_ptr<Promise<std::vector<SDK>>> create_std__shared_ptr_Promise_std__vector_SDK___() {
|
|
305
|
+
return Promise<std::vector<SDK>>::create();
|
|
306
|
+
}
|
|
307
|
+
inline PromiseHolder<std::vector<SDK>> wrap_std__shared_ptr_Promise_std__vector_SDK___(std::shared_ptr<Promise<std::vector<SDK>>> promise) {
|
|
308
|
+
return PromiseHolder<std::vector<SDK>>(std::move(promise));
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// pragma MARK: std::function<void(const std::vector<SDK>& /* result */)>
|
|
312
|
+
/**
|
|
313
|
+
* Specialized version of `std::function<void(const std::vector<SDK>&)>`.
|
|
314
|
+
*/
|
|
315
|
+
using Func_void_std__vector_SDK_ = std::function<void(const std::vector<SDK>& /* result */)>;
|
|
316
|
+
/**
|
|
317
|
+
* Wrapper class for a `std::function<void(const std::vector<SDK>& / * result * /)>`, this can be used from Swift.
|
|
318
|
+
*/
|
|
319
|
+
class Func_void_std__vector_SDK__Wrapper final {
|
|
320
|
+
public:
|
|
321
|
+
explicit Func_void_std__vector_SDK__Wrapper(std::function<void(const std::vector<SDK>& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::vector<SDK>& /* result */)>>(std::move(func))) {}
|
|
322
|
+
inline void call(std::vector<SDK> result) const {
|
|
323
|
+
_function->operator()(result);
|
|
324
|
+
}
|
|
325
|
+
private:
|
|
326
|
+
std::shared_ptr<std::function<void(const std::vector<SDK>& /* result */)>> _function;
|
|
327
|
+
};
|
|
328
|
+
Func_void_std__vector_SDK_ create_Func_void_std__vector_SDK_(void* _Nonnull swiftClosureWrapper);
|
|
329
|
+
inline Func_void_std__vector_SDK__Wrapper wrap_Func_void_std__vector_SDK_(Func_void_std__vector_SDK_ value) {
|
|
330
|
+
return Func_void_std__vector_SDK__Wrapper(std::move(value));
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
// pragma MARK: std::optional<CustomColors>
|
|
334
|
+
/**
|
|
335
|
+
* Specialized version of `std::optional<CustomColors>`.
|
|
336
|
+
*/
|
|
337
|
+
using std__optional_CustomColors_ = std::optional<CustomColors>;
|
|
338
|
+
inline std::optional<CustomColors> create_std__optional_CustomColors_(const CustomColors& value) {
|
|
339
|
+
return std::optional<CustomColors>(value);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
// pragma MARK: std::unordered_map<std::string, std::string>
|
|
343
|
+
/**
|
|
344
|
+
* Specialized version of `std::unordered_map<std::string, std::string>`.
|
|
345
|
+
*/
|
|
346
|
+
using std__unordered_map_std__string__std__string_ = std::unordered_map<std::string, std::string>;
|
|
347
|
+
inline std::unordered_map<std::string, std::string> create_std__unordered_map_std__string__std__string_(size_t size) {
|
|
348
|
+
std::unordered_map<std::string, std::string> map;
|
|
349
|
+
map.reserve(size);
|
|
350
|
+
return map;
|
|
351
|
+
}
|
|
352
|
+
inline std::vector<std::string> get_std__unordered_map_std__string__std__string__keys(const std__unordered_map_std__string__std__string_& map) {
|
|
353
|
+
std::vector<std::string> keys;
|
|
354
|
+
keys.reserve(map.size());
|
|
355
|
+
for (const auto& entry : map) {
|
|
356
|
+
keys.push_back(entry.first);
|
|
357
|
+
}
|
|
358
|
+
return keys;
|
|
359
|
+
}
|
|
360
|
+
inline void emplace_std__unordered_map_std__string__std__string_(std__unordered_map_std__string__std__string_& map, const std::string& key, const std::string& value) {
|
|
361
|
+
map.emplace(key, value);
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
// pragma MARK: std::optional<std::unordered_map<std::string, std::string>>
|
|
365
|
+
/**
|
|
366
|
+
* Specialized version of `std::optional<std::unordered_map<std::string, std::string>>`.
|
|
367
|
+
*/
|
|
368
|
+
using std__optional_std__unordered_map_std__string__std__string__ = std::optional<std::unordered_map<std::string, std::string>>;
|
|
369
|
+
inline std::optional<std::unordered_map<std::string, std::string>> create_std__optional_std__unordered_map_std__string__std__string__(const std::unordered_map<std::string, std::string>& value) {
|
|
370
|
+
return std::optional<std::unordered_map<std::string, std::string>>(value);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
// pragma MARK: std::optional<BannerConfig>
|
|
374
|
+
/**
|
|
375
|
+
* Specialized version of `std::optional<BannerConfig>`.
|
|
376
|
+
*/
|
|
377
|
+
using std__optional_BannerConfig_ = std::optional<BannerConfig>;
|
|
378
|
+
inline std::optional<BannerConfig> create_std__optional_BannerConfig_(const BannerConfig& value) {
|
|
379
|
+
return std::optional<BannerConfig>(value);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
// pragma MARK: std::shared_ptr<Promise<std::optional<BannerConfig>>>
|
|
383
|
+
/**
|
|
384
|
+
* Specialized version of `std::shared_ptr<Promise<std::optional<BannerConfig>>>`.
|
|
385
|
+
*/
|
|
386
|
+
using std__shared_ptr_Promise_std__optional_BannerConfig___ = std::shared_ptr<Promise<std::optional<BannerConfig>>>;
|
|
387
|
+
inline std::shared_ptr<Promise<std::optional<BannerConfig>>> create_std__shared_ptr_Promise_std__optional_BannerConfig___() {
|
|
388
|
+
return Promise<std::optional<BannerConfig>>::create();
|
|
389
|
+
}
|
|
390
|
+
inline PromiseHolder<std::optional<BannerConfig>> wrap_std__shared_ptr_Promise_std__optional_BannerConfig___(std::shared_ptr<Promise<std::optional<BannerConfig>>> promise) {
|
|
391
|
+
return PromiseHolder<std::optional<BannerConfig>>(std::move(promise));
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
// pragma MARK: std::function<void(const std::optional<BannerConfig>& /* result */)>
|
|
395
|
+
/**
|
|
396
|
+
* Specialized version of `std::function<void(const std::optional<BannerConfig>&)>`.
|
|
397
|
+
*/
|
|
398
|
+
using Func_void_std__optional_BannerConfig_ = std::function<void(const std::optional<BannerConfig>& /* result */)>;
|
|
399
|
+
/**
|
|
400
|
+
* Wrapper class for a `std::function<void(const std::optional<BannerConfig>& / * result * /)>`, this can be used from Swift.
|
|
401
|
+
*/
|
|
402
|
+
class Func_void_std__optional_BannerConfig__Wrapper final {
|
|
403
|
+
public:
|
|
404
|
+
explicit Func_void_std__optional_BannerConfig__Wrapper(std::function<void(const std::optional<BannerConfig>& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::optional<BannerConfig>& /* result */)>>(std::move(func))) {}
|
|
405
|
+
inline void call(std::optional<BannerConfig> result) const {
|
|
406
|
+
_function->operator()(result);
|
|
407
|
+
}
|
|
408
|
+
private:
|
|
409
|
+
std::shared_ptr<std::function<void(const std::optional<BannerConfig>& /* result */)>> _function;
|
|
410
|
+
};
|
|
411
|
+
Func_void_std__optional_BannerConfig_ create_Func_void_std__optional_BannerConfig_(void* _Nonnull swiftClosureWrapper);
|
|
412
|
+
inline Func_void_std__optional_BannerConfig__Wrapper wrap_Func_void_std__optional_BannerConfig_(Func_void_std__optional_BannerConfig_ value) {
|
|
413
|
+
return Func_void_std__optional_BannerConfig__Wrapper(std::move(value));
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
// pragma MARK: std::optional<CmpSDKOptions>
|
|
417
|
+
/**
|
|
418
|
+
* Specialized version of `std::optional<CmpSDKOptions>`.
|
|
419
|
+
*/
|
|
420
|
+
using std__optional_CmpSDKOptions_ = std::optional<CmpSDKOptions>;
|
|
421
|
+
inline std::optional<CmpSDKOptions> create_std__optional_CmpSDKOptions_(const CmpSDKOptions& value) {
|
|
422
|
+
return std::optional<CmpSDKOptions>(value);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
// pragma MARK: std::optional<SettingsPrompt>
|
|
426
|
+
/**
|
|
427
|
+
* Specialized version of `std::optional<SettingsPrompt>`.
|
|
428
|
+
*/
|
|
429
|
+
using std__optional_SettingsPrompt_ = std::optional<SettingsPrompt>;
|
|
430
|
+
inline std::optional<SettingsPrompt> create_std__optional_SettingsPrompt_(const SettingsPrompt& value) {
|
|
431
|
+
return std::optional<SettingsPrompt>(value);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
// pragma MARK: std::shared_ptr<Promise<std::optional<SettingsPrompt>>>
|
|
435
|
+
/**
|
|
436
|
+
* Specialized version of `std::shared_ptr<Promise<std::optional<SettingsPrompt>>>`.
|
|
437
|
+
*/
|
|
438
|
+
using std__shared_ptr_Promise_std__optional_SettingsPrompt___ = std::shared_ptr<Promise<std::optional<SettingsPrompt>>>;
|
|
439
|
+
inline std::shared_ptr<Promise<std::optional<SettingsPrompt>>> create_std__shared_ptr_Promise_std__optional_SettingsPrompt___() {
|
|
440
|
+
return Promise<std::optional<SettingsPrompt>>::create();
|
|
441
|
+
}
|
|
442
|
+
inline PromiseHolder<std::optional<SettingsPrompt>> wrap_std__shared_ptr_Promise_std__optional_SettingsPrompt___(std::shared_ptr<Promise<std::optional<SettingsPrompt>>> promise) {
|
|
443
|
+
return PromiseHolder<std::optional<SettingsPrompt>>(std::move(promise));
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
// pragma MARK: std::function<void(const std::optional<SettingsPrompt>& /* result */)>
|
|
447
|
+
/**
|
|
448
|
+
* Specialized version of `std::function<void(const std::optional<SettingsPrompt>&)>`.
|
|
449
|
+
*/
|
|
450
|
+
using Func_void_std__optional_SettingsPrompt_ = std::function<void(const std::optional<SettingsPrompt>& /* result */)>;
|
|
451
|
+
/**
|
|
452
|
+
* Wrapper class for a `std::function<void(const std::optional<SettingsPrompt>& / * result * /)>`, this can be used from Swift.
|
|
453
|
+
*/
|
|
454
|
+
class Func_void_std__optional_SettingsPrompt__Wrapper final {
|
|
455
|
+
public:
|
|
456
|
+
explicit Func_void_std__optional_SettingsPrompt__Wrapper(std::function<void(const std::optional<SettingsPrompt>& /* result */)>&& func): _function(std::make_shared<std::function<void(const std::optional<SettingsPrompt>& /* result */)>>(std::move(func))) {}
|
|
457
|
+
inline void call(std::optional<SettingsPrompt> result) const {
|
|
458
|
+
_function->operator()(result);
|
|
459
|
+
}
|
|
460
|
+
private:
|
|
461
|
+
std::shared_ptr<std::function<void(const std::optional<SettingsPrompt>& /* result */)>> _function;
|
|
462
|
+
};
|
|
463
|
+
Func_void_std__optional_SettingsPrompt_ create_Func_void_std__optional_SettingsPrompt_(void* _Nonnull swiftClosureWrapper);
|
|
464
|
+
inline Func_void_std__optional_SettingsPrompt__Wrapper wrap_Func_void_std__optional_SettingsPrompt_(Func_void_std__optional_SettingsPrompt_ value) {
|
|
465
|
+
return Func_void_std__optional_SettingsPrompt__Wrapper(std::move(value));
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
// pragma MARK: std::shared_ptr<Promise<bool>>
|
|
469
|
+
/**
|
|
470
|
+
* Specialized version of `std::shared_ptr<Promise<bool>>`.
|
|
471
|
+
*/
|
|
472
|
+
using std__shared_ptr_Promise_bool__ = std::shared_ptr<Promise<bool>>;
|
|
473
|
+
inline std::shared_ptr<Promise<bool>> create_std__shared_ptr_Promise_bool__() {
|
|
474
|
+
return Promise<bool>::create();
|
|
475
|
+
}
|
|
476
|
+
inline PromiseHolder<bool> wrap_std__shared_ptr_Promise_bool__(std::shared_ptr<Promise<bool>> promise) {
|
|
477
|
+
return PromiseHolder<bool>(std::move(promise));
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
// pragma MARK: std::vector<PurposeConsent>
|
|
481
|
+
/**
|
|
482
|
+
* Specialized version of `std::vector<PurposeConsent>`.
|
|
483
|
+
*/
|
|
484
|
+
using std__vector_PurposeConsent_ = std::vector<PurposeConsent>;
|
|
485
|
+
inline std::vector<PurposeConsent> create_std__vector_PurposeConsent_(size_t size) {
|
|
486
|
+
std::vector<PurposeConsent> vector;
|
|
487
|
+
vector.reserve(size);
|
|
488
|
+
return vector;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
// pragma MARK: std::vector<PermissionConsent>
|
|
492
|
+
/**
|
|
493
|
+
* Specialized version of `std::vector<PermissionConsent>`.
|
|
494
|
+
*/
|
|
495
|
+
using std__vector_PermissionConsent_ = std::vector<PermissionConsent>;
|
|
496
|
+
inline std::vector<PermissionConsent> create_std__vector_PermissionConsent_(size_t size) {
|
|
497
|
+
std::vector<PermissionConsent> vector;
|
|
498
|
+
vector.reserve(size);
|
|
499
|
+
return vector;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
// pragma MARK: std::shared_ptr<margelo::nitro::securiticonsentsdk::HybridConsentSDKSpec>
|
|
503
|
+
/**
|
|
504
|
+
* Specialized version of `std::shared_ptr<margelo::nitro::securiticonsentsdk::HybridConsentSDKSpec>`.
|
|
505
|
+
*/
|
|
506
|
+
using std__shared_ptr_margelo__nitro__securiticonsentsdk__HybridConsentSDKSpec_ = std::shared_ptr<margelo::nitro::securiticonsentsdk::HybridConsentSDKSpec>;
|
|
507
|
+
std::shared_ptr<margelo::nitro::securiticonsentsdk::HybridConsentSDKSpec> create_std__shared_ptr_margelo__nitro__securiticonsentsdk__HybridConsentSDKSpec_(void* _Nonnull swiftUnsafePointer);
|
|
508
|
+
void* _Nonnull get_std__shared_ptr_margelo__nitro__securiticonsentsdk__HybridConsentSDKSpec_(std__shared_ptr_margelo__nitro__securiticonsentsdk__HybridConsentSDKSpec_ cppType);
|
|
509
|
+
|
|
510
|
+
// pragma MARK: std::weak_ptr<margelo::nitro::securiticonsentsdk::HybridConsentSDKSpec>
|
|
511
|
+
using std__weak_ptr_margelo__nitro__securiticonsentsdk__HybridConsentSDKSpec_ = std::weak_ptr<margelo::nitro::securiticonsentsdk::HybridConsentSDKSpec>;
|
|
512
|
+
inline std__weak_ptr_margelo__nitro__securiticonsentsdk__HybridConsentSDKSpec_ weakify_std__shared_ptr_margelo__nitro__securiticonsentsdk__HybridConsentSDKSpec_(const std::shared_ptr<margelo::nitro::securiticonsentsdk::HybridConsentSDKSpec>& strong) { return strong; }
|
|
513
|
+
|
|
514
|
+
// pragma MARK: Result<void>
|
|
515
|
+
using Result_void_ = Result<void>;
|
|
516
|
+
inline Result_void_ create_Result_void_() {
|
|
517
|
+
return Result<void>::withValue();
|
|
518
|
+
}
|
|
519
|
+
inline Result_void_ create_Result_void_(const std::exception_ptr& error) {
|
|
520
|
+
return Result<void>::withError(error);
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
// pragma MARK: Result<bool>
|
|
524
|
+
using Result_bool_ = Result<bool>;
|
|
525
|
+
inline Result_bool_ create_Result_bool_(bool value) {
|
|
526
|
+
return Result<bool>::withValue(std::move(value));
|
|
527
|
+
}
|
|
528
|
+
inline Result_bool_ create_Result_bool_(const std::exception_ptr& error) {
|
|
529
|
+
return Result<bool>::withError(error);
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::string>>>
|
|
533
|
+
using Result_std__shared_ptr_Promise_std__string___ = Result<std::shared_ptr<Promise<std::string>>>;
|
|
534
|
+
inline Result_std__shared_ptr_Promise_std__string___ create_Result_std__shared_ptr_Promise_std__string___(const std::shared_ptr<Promise<std::string>>& value) {
|
|
535
|
+
return Result<std::shared_ptr<Promise<std::string>>>::withValue(value);
|
|
536
|
+
}
|
|
537
|
+
inline Result_std__shared_ptr_Promise_std__string___ create_Result_std__shared_ptr_Promise_std__string___(const std::exception_ptr& error) {
|
|
538
|
+
return Result<std::shared_ptr<Promise<std::string>>>::withError(error);
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<AppPermission>>>>
|
|
542
|
+
using Result_std__shared_ptr_Promise_std__vector_AppPermission____ = Result<std::shared_ptr<Promise<std::vector<AppPermission>>>>;
|
|
543
|
+
inline Result_std__shared_ptr_Promise_std__vector_AppPermission____ create_Result_std__shared_ptr_Promise_std__vector_AppPermission____(const std::shared_ptr<Promise<std::vector<AppPermission>>>& value) {
|
|
544
|
+
return Result<std::shared_ptr<Promise<std::vector<AppPermission>>>>::withValue(value);
|
|
545
|
+
}
|
|
546
|
+
inline Result_std__shared_ptr_Promise_std__vector_AppPermission____ create_Result_std__shared_ptr_Promise_std__vector_AppPermission____(const std::exception_ptr& error) {
|
|
547
|
+
return Result<std::shared_ptr<Promise<std::vector<AppPermission>>>>::withError(error);
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<Purpose>>>>
|
|
551
|
+
using Result_std__shared_ptr_Promise_std__vector_Purpose____ = Result<std::shared_ptr<Promise<std::vector<Purpose>>>>;
|
|
552
|
+
inline Result_std__shared_ptr_Promise_std__vector_Purpose____ create_Result_std__shared_ptr_Promise_std__vector_Purpose____(const std::shared_ptr<Promise<std::vector<Purpose>>>& value) {
|
|
553
|
+
return Result<std::shared_ptr<Promise<std::vector<Purpose>>>>::withValue(value);
|
|
554
|
+
}
|
|
555
|
+
inline Result_std__shared_ptr_Promise_std__vector_Purpose____ create_Result_std__shared_ptr_Promise_std__vector_Purpose____(const std::exception_ptr& error) {
|
|
556
|
+
return Result<std::shared_ptr<Promise<std::vector<Purpose>>>>::withError(error);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<SDK>>>>
|
|
560
|
+
using Result_std__shared_ptr_Promise_std__vector_SDK____ = Result<std::shared_ptr<Promise<std::vector<SDK>>>>;
|
|
561
|
+
inline Result_std__shared_ptr_Promise_std__vector_SDK____ create_Result_std__shared_ptr_Promise_std__vector_SDK____(const std::shared_ptr<Promise<std::vector<SDK>>>& value) {
|
|
562
|
+
return Result<std::shared_ptr<Promise<std::vector<SDK>>>>::withValue(value);
|
|
563
|
+
}
|
|
564
|
+
inline Result_std__shared_ptr_Promise_std__vector_SDK____ create_Result_std__shared_ptr_Promise_std__vector_SDK____(const std::exception_ptr& error) {
|
|
565
|
+
return Result<std::shared_ptr<Promise<std::vector<SDK>>>>::withError(error);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::optional<BannerConfig>>>>
|
|
569
|
+
using Result_std__shared_ptr_Promise_std__optional_BannerConfig____ = Result<std::shared_ptr<Promise<std::optional<BannerConfig>>>>;
|
|
570
|
+
inline Result_std__shared_ptr_Promise_std__optional_BannerConfig____ create_Result_std__shared_ptr_Promise_std__optional_BannerConfig____(const std::shared_ptr<Promise<std::optional<BannerConfig>>>& value) {
|
|
571
|
+
return Result<std::shared_ptr<Promise<std::optional<BannerConfig>>>>::withValue(value);
|
|
572
|
+
}
|
|
573
|
+
inline Result_std__shared_ptr_Promise_std__optional_BannerConfig____ create_Result_std__shared_ptr_Promise_std__optional_BannerConfig____(const std::exception_ptr& error) {
|
|
574
|
+
return Result<std::shared_ptr<Promise<std::optional<BannerConfig>>>>::withError(error);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
// pragma MARK: Result<std::optional<CmpSDKOptions>>
|
|
578
|
+
using Result_std__optional_CmpSDKOptions__ = Result<std::optional<CmpSDKOptions>>;
|
|
579
|
+
inline Result_std__optional_CmpSDKOptions__ create_Result_std__optional_CmpSDKOptions__(const std::optional<CmpSDKOptions>& value) {
|
|
580
|
+
return Result<std::optional<CmpSDKOptions>>::withValue(value);
|
|
581
|
+
}
|
|
582
|
+
inline Result_std__optional_CmpSDKOptions__ create_Result_std__optional_CmpSDKOptions__(const std::exception_ptr& error) {
|
|
583
|
+
return Result<std::optional<CmpSDKOptions>>::withError(error);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::optional<SettingsPrompt>>>>
|
|
587
|
+
using Result_std__shared_ptr_Promise_std__optional_SettingsPrompt____ = Result<std::shared_ptr<Promise<std::optional<SettingsPrompt>>>>;
|
|
588
|
+
inline Result_std__shared_ptr_Promise_std__optional_SettingsPrompt____ create_Result_std__shared_ptr_Promise_std__optional_SettingsPrompt____(const std::shared_ptr<Promise<std::optional<SettingsPrompt>>>& value) {
|
|
589
|
+
return Result<std::shared_ptr<Promise<std::optional<SettingsPrompt>>>>::withValue(value);
|
|
590
|
+
}
|
|
591
|
+
inline Result_std__shared_ptr_Promise_std__optional_SettingsPrompt____ create_Result_std__shared_ptr_Promise_std__optional_SettingsPrompt____(const std::exception_ptr& error) {
|
|
592
|
+
return Result<std::shared_ptr<Promise<std::optional<SettingsPrompt>>>>::withError(error);
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
// pragma MARK: Result<std::shared_ptr<Promise<bool>>>
|
|
596
|
+
using Result_std__shared_ptr_Promise_bool___ = Result<std::shared_ptr<Promise<bool>>>;
|
|
597
|
+
inline Result_std__shared_ptr_Promise_bool___ create_Result_std__shared_ptr_Promise_bool___(const std::shared_ptr<Promise<bool>>& value) {
|
|
598
|
+
return Result<std::shared_ptr<Promise<bool>>>::withValue(value);
|
|
599
|
+
}
|
|
600
|
+
inline Result_std__shared_ptr_Promise_bool___ create_Result_std__shared_ptr_Promise_bool___(const std::exception_ptr& error) {
|
|
601
|
+
return Result<std::shared_ptr<Promise<bool>>>::withError(error);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
} // namespace margelo::nitro::securiticonsentsdk::bridge::swift
|