react-native-email-imap-smtp 0.1.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/EmailImapSmtp.podspec +29 -0
- package/LICENSE +20 -0
- package/README.md +121 -0
- package/android/CMakeLists.txt +24 -0
- package/android/build.gradle +117 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/cpp/cpp-adapter.cpp +11 -0
- package/android/src/main/java/com/margelo/nitro/emailimapsmtp/EmailImapSmtp.kt +1533 -0
- package/android/src/main/java/com/margelo/nitro/emailimapsmtp/EmailImapSmtpPackage.kt +22 -0
- package/ios/EmailImapSmtp.swift +5 -0
- package/lib/module/EmailImapSmtp.nitro.js +4 -0
- package/lib/module/EmailImapSmtp.nitro.js.map +1 -0
- package/lib/module/NativeEmailImapSmtp.js +14 -0
- package/lib/module/NativeEmailImapSmtp.js.map +1 -0
- package/lib/module/index.js +64 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/native.js +227 -0
- package/lib/module/native.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/types.js +2 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/web.js +107 -0
- package/lib/module/web.js.map +1 -0
- package/lib/module/windows.js +156 -0
- package/lib/module/windows.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/EmailImapSmtp.nitro.d.ts +268 -0
- package/lib/typescript/src/EmailImapSmtp.nitro.d.ts.map +1 -0
- package/lib/typescript/src/NativeEmailImapSmtp.d.ts +36 -0
- package/lib/typescript/src/NativeEmailImapSmtp.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +33 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/native.d.ts +32 -0
- package/lib/typescript/src/native.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +261 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/lib/typescript/src/web.d.ts +32 -0
- package/lib/typescript/src/web.d.ts.map +1 -0
- package/lib/typescript/src/windows.d.ts +32 -0
- package/lib/typescript/src/windows.d.ts.map +1 -0
- package/nitro.json +23 -0
- package/nitrogen/generated/android/c++/JAppendResult.hpp +65 -0
- package/nitrogen/generated/android/c++/JAttachmentInfo.hpp +96 -0
- package/nitrogen/generated/android/c++/JConnectionConfig.hpp +94 -0
- package/nitrogen/generated/android/c++/JConnectionResult.hpp +73 -0
- package/nitrogen/generated/android/c++/JDeleteResult.hpp +87 -0
- package/nitrogen/generated/android/c++/JEmailAddress.hpp +61 -0
- package/nitrogen/generated/android/c++/JEmailBody.hpp +84 -0
- package/nitrogen/generated/android/c++/JEmailMessage.hpp +273 -0
- package/nitrogen/generated/android/c++/JFetchEmailsOptions.hpp +110 -0
- package/nitrogen/generated/android/c++/JFolderInfo.hpp +126 -0
- package/nitrogen/generated/android/c++/JFunc_void_IdleNotification.hpp +79 -0
- package/nitrogen/generated/android/c++/JHybridEmailImapSmtpSpec.cpp +697 -0
- package/nitrogen/generated/android/c++/JHybridEmailImapSmtpSpec.hpp +92 -0
- package/nitrogen/generated/android/c++/JIdleNotification.hpp +78 -0
- package/nitrogen/generated/android/c++/JImapServerInfo.hpp +84 -0
- package/nitrogen/generated/android/c++/JMailboxInfo.hpp +134 -0
- package/nitrogen/generated/android/c++/JMailboxListItem.hpp +92 -0
- package/nitrogen/generated/android/c++/JQuotaInfo.hpp +78 -0
- package/nitrogen/generated/android/c++/JSearchCriteria.hpp +187 -0
- package/nitrogen/generated/android/c++/JSearchHeader.hpp +61 -0
- package/nitrogen/generated/android/c++/JSendMailOptions.hpp +229 -0
- package/nitrogen/generated/android/c++/JSendMailResult.hpp +88 -0
- package/nitrogen/generated/android/c++/JSmtpAttachment.hpp +80 -0
- package/nitrogen/generated/android/c++/JSmtpConnectionConfig.hpp +98 -0
- package/nitrogen/generated/android/c++/JSmtpServerInfo.hpp +102 -0
- package/nitrogen/generated/android/c++/JVariant_ImapServerInfo_SmtpServerInfo.cpp +26 -0
- package/nitrogen/generated/android/c++/JVariant_ImapServerInfo_SmtpServerInfo.hpp +73 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_AttachmentInfo.cpp +26 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_AttachmentInfo.hpp +75 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_EmailMessage.cpp +26 -0
- package/nitrogen/generated/android/c++/JVariant_NullType_EmailMessage.hpp +83 -0
- package/nitrogen/generated/android/emailimapsmtp+autolinking.cmake +84 -0
- package/nitrogen/generated/android/emailimapsmtp+autolinking.gradle +27 -0
- package/nitrogen/generated/android/emailimapsmtpOnLoad.cpp +56 -0
- package/nitrogen/generated/android/emailimapsmtpOnLoad.hpp +34 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/AppendResult.kt +61 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/AttachmentInfo.kt +96 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/ConnectionConfig.kt +96 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/ConnectionResult.kt +61 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/DeleteResult.kt +61 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/EmailAddress.kt +56 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/EmailBody.kt +61 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/EmailMessage.kt +156 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/FetchEmailsOptions.kt +116 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/FolderInfo.kt +91 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/Func_void_IdleNotification.kt +80 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/HybridEmailImapSmtpSpec.kt +178 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/IdleNotification.kt +76 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/ImapServerInfo.kt +61 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/MailboxInfo.kt +101 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/MailboxListItem.kt +71 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/QuotaInfo.kt +76 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/SearchCriteria.kt +196 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/SearchHeader.kt +56 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/SendMailOptions.kt +126 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/SendMailResult.kt +86 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/SmtpAttachment.kt +76 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/SmtpConnectionConfig.kt +101 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/SmtpServerInfo.kt +61 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/Variant_ImapServerInfo_SmtpServerInfo.kt +62 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/Variant_NullType_AttachmentInfo.kt +62 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/Variant_NullType_EmailMessage.kt +62 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/emailimapsmtp/emailimapsmtpOnLoad.kt +35 -0
- package/nitrogen/generated/ios/EmailImapSmtp+autolinking.rb +62 -0
- package/nitrogen/generated/ios/EmailImapSmtp-Swift-Cxx-Bridge.cpp +161 -0
- package/nitrogen/generated/ios/EmailImapSmtp-Swift-Cxx-Bridge.hpp +1132 -0
- package/nitrogen/generated/ios/EmailImapSmtp-Swift-Cxx-Umbrella.hpp +118 -0
- package/nitrogen/generated/ios/EmailImapSmtpAutolinking.mm +33 -0
- package/nitrogen/generated/ios/EmailImapSmtpAutolinking.swift +26 -0
- package/nitrogen/generated/ios/c++/HybridEmailImapSmtpSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridEmailImapSmtpSpecSwift.hpp +390 -0
- package/nitrogen/generated/ios/swift/AppendResult.swift +39 -0
- package/nitrogen/generated/ios/swift/AttachmentInfo.swift +113 -0
- package/nitrogen/generated/ios/swift/ConnectionConfig.swift +87 -0
- package/nitrogen/generated/ios/swift/ConnectionResult.swift +84 -0
- package/nitrogen/generated/ios/swift/DeleteResult.swift +64 -0
- package/nitrogen/generated/ios/swift/EmailAddress.swift +34 -0
- package/nitrogen/generated/ios/swift/EmailBody.swift +45 -0
- package/nitrogen/generated/ios/swift/EmailMessage.swift +184 -0
- package/nitrogen/generated/ios/swift/FetchEmailsOptions.swift +198 -0
- package/nitrogen/generated/ios/swift/FolderInfo.swift +81 -0
- package/nitrogen/generated/ios/swift/Func_void.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_AppendResult.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_ConnectionResult.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_DeleteResult.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_IdleNotification.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_MailboxInfo.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_QuotaInfo.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_SendMailResult.swift +46 -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__variant_nitro__NullType__AttachmentInfo_.swift +58 -0
- package/nitrogen/generated/ios/swift/Func_void_std__variant_nitro__NullType__EmailMessage_.swift +58 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_AttachmentInfo_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_EmailMessage_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_FolderInfo_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_MailboxListItem_.swift +46 -0
- package/nitrogen/generated/ios/swift/HybridEmailImapSmtpSpec.swift +84 -0
- package/nitrogen/generated/ios/swift/HybridEmailImapSmtpSpec_cxx.swift +759 -0
- package/nitrogen/generated/ios/swift/IdleNotification.swift +93 -0
- package/nitrogen/generated/ios/swift/ImapServerInfo.swift +45 -0
- package/nitrogen/generated/ios/swift/MailboxInfo.swift +91 -0
- package/nitrogen/generated/ios/swift/MailboxListItem.swift +55 -0
- package/nitrogen/generated/ios/swift/QuotaInfo.swift +80 -0
- package/nitrogen/generated/ios/swift/SearchCriteria.swift +485 -0
- package/nitrogen/generated/ios/swift/SearchHeader.swift +34 -0
- package/nitrogen/generated/ios/swift/SendMailOptions.swift +310 -0
- package/nitrogen/generated/ios/swift/SendMailResult.swift +155 -0
- package/nitrogen/generated/ios/swift/SmtpAttachment.swift +80 -0
- package/nitrogen/generated/ios/swift/SmtpConnectionConfig.swift +105 -0
- package/nitrogen/generated/ios/swift/SmtpServerInfo.swift +51 -0
- package/nitrogen/generated/ios/swift/Variant_ImapServerInfo_SmtpServerInfo.swift +30 -0
- package/nitrogen/generated/ios/swift/Variant_NullType_AttachmentInfo.swift +30 -0
- package/nitrogen/generated/ios/swift/Variant_NullType_EmailMessage.swift +30 -0
- package/nitrogen/generated/shared/c++/AppendResult.hpp +91 -0
- package/nitrogen/generated/shared/c++/AttachmentInfo.hpp +121 -0
- package/nitrogen/generated/shared/c++/ConnectionConfig.hpp +120 -0
- package/nitrogen/generated/shared/c++/ConnectionResult.hpp +98 -0
- package/nitrogen/generated/shared/c++/DeleteResult.hpp +93 -0
- package/nitrogen/generated/shared/c++/EmailAddress.hpp +87 -0
- package/nitrogen/generated/shared/c++/EmailBody.hpp +92 -0
- package/nitrogen/generated/shared/c++/EmailMessage.hpp +177 -0
- package/nitrogen/generated/shared/c++/FetchEmailsOptions.hpp +136 -0
- package/nitrogen/generated/shared/c++/FolderInfo.hpp +116 -0
- package/nitrogen/generated/shared/c++/HybridEmailImapSmtpSpec.cpp +50 -0
- package/nitrogen/generated/shared/c++/HybridEmailImapSmtpSpec.hpp +145 -0
- package/nitrogen/generated/shared/c++/IdleNotification.hpp +104 -0
- package/nitrogen/generated/shared/c++/ImapServerInfo.hpp +92 -0
- package/nitrogen/generated/shared/c++/MailboxInfo.hpp +124 -0
- package/nitrogen/generated/shared/c++/MailboxListItem.hpp +100 -0
- package/nitrogen/generated/shared/c++/QuotaInfo.hpp +104 -0
- package/nitrogen/generated/shared/c++/SearchCriteria.hpp +203 -0
- package/nitrogen/generated/shared/c++/SearchHeader.hpp +87 -0
- package/nitrogen/generated/shared/c++/SendMailOptions.hpp +151 -0
- package/nitrogen/generated/shared/c++/SendMailResult.hpp +113 -0
- package/nitrogen/generated/shared/c++/SmtpAttachment.hpp +105 -0
- package/nitrogen/generated/shared/c++/SmtpConnectionConfig.hpp +124 -0
- package/nitrogen/generated/shared/c++/SmtpServerInfo.hpp +92 -0
- package/package.json +196 -0
- package/react-native.config.js +27 -0
- package/src/EmailImapSmtp.nitro.ts +333 -0
- package/src/NativeEmailImapSmtp.ts +100 -0
- package/src/index.tsx +166 -0
- package/src/native.ts +305 -0
- package/src/types.ts +328 -0
- package/src/web.ts +196 -0
- package/src/windows.ts +304 -0
- package/windows/EmailImapSmtp.cpp +735 -0
- package/windows/EmailImapSmtp.h +137 -0
- package/windows/EmailImapSmtpModule.cpp +10 -0
- package/windows/EmailImapSmtpModule.h +139 -0
- package/windows/EmailImapSmtpPackage.cpp +15 -0
- package/windows/EmailImapSmtpPackage.h +13 -0
- package/windows/ImapProtocol.cpp +1382 -0
- package/windows/ImapProtocol.h +97 -0
- package/windows/ProtocolDefs.h +300 -0
- package/windows/SmtpProtocol.cpp +334 -0
- package/windows/SmtpProtocol.h +36 -0
- package/windows/TlsSocket.cpp +818 -0
- package/windows/TlsSocket.h +87 -0
|
@@ -0,0 +1,1132 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// EmailImapSmtp-Swift-Cxx-Bridge.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
// Forward declarations of C++ defined types
|
|
11
|
+
// Forward declaration of `AppendResult` to properly resolve imports.
|
|
12
|
+
namespace margelo::nitro::emailimapsmtp { struct AppendResult; }
|
|
13
|
+
// Forward declaration of `ArrayBufferHolder` to properly resolve imports.
|
|
14
|
+
namespace NitroModules { class ArrayBufferHolder; }
|
|
15
|
+
// Forward declaration of `AttachmentInfo` to properly resolve imports.
|
|
16
|
+
namespace margelo::nitro::emailimapsmtp { struct AttachmentInfo; }
|
|
17
|
+
// Forward declaration of `ConnectionResult` to properly resolve imports.
|
|
18
|
+
namespace margelo::nitro::emailimapsmtp { struct ConnectionResult; }
|
|
19
|
+
// Forward declaration of `DeleteResult` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::emailimapsmtp { struct DeleteResult; }
|
|
21
|
+
// Forward declaration of `EmailAddress` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::emailimapsmtp { struct EmailAddress; }
|
|
23
|
+
// Forward declaration of `EmailBody` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::emailimapsmtp { struct EmailBody; }
|
|
25
|
+
// Forward declaration of `EmailMessage` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::emailimapsmtp { struct EmailMessage; }
|
|
27
|
+
// Forward declaration of `FolderInfo` to properly resolve imports.
|
|
28
|
+
namespace margelo::nitro::emailimapsmtp { struct FolderInfo; }
|
|
29
|
+
// Forward declaration of `HybridEmailImapSmtpSpec` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::emailimapsmtp { class HybridEmailImapSmtpSpec; }
|
|
31
|
+
// Forward declaration of `IdleNotification` to properly resolve imports.
|
|
32
|
+
namespace margelo::nitro::emailimapsmtp { struct IdleNotification; }
|
|
33
|
+
// Forward declaration of `ImapServerInfo` to properly resolve imports.
|
|
34
|
+
namespace margelo::nitro::emailimapsmtp { struct ImapServerInfo; }
|
|
35
|
+
// Forward declaration of `MailboxInfo` to properly resolve imports.
|
|
36
|
+
namespace margelo::nitro::emailimapsmtp { struct MailboxInfo; }
|
|
37
|
+
// Forward declaration of `MailboxListItem` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::emailimapsmtp { struct MailboxListItem; }
|
|
39
|
+
// Forward declaration of `QuotaInfo` to properly resolve imports.
|
|
40
|
+
namespace margelo::nitro::emailimapsmtp { struct QuotaInfo; }
|
|
41
|
+
// Forward declaration of `SearchHeader` to properly resolve imports.
|
|
42
|
+
namespace margelo::nitro::emailimapsmtp { struct SearchHeader; }
|
|
43
|
+
// Forward declaration of `SendMailResult` to properly resolve imports.
|
|
44
|
+
namespace margelo::nitro::emailimapsmtp { struct SendMailResult; }
|
|
45
|
+
// Forward declaration of `SmtpAttachment` to properly resolve imports.
|
|
46
|
+
namespace margelo::nitro::emailimapsmtp { struct SmtpAttachment; }
|
|
47
|
+
// Forward declaration of `SmtpServerInfo` to properly resolve imports.
|
|
48
|
+
namespace margelo::nitro::emailimapsmtp { struct SmtpServerInfo; }
|
|
49
|
+
|
|
50
|
+
// Forward declarations of Swift defined types
|
|
51
|
+
// Forward declaration of `HybridEmailImapSmtpSpec_cxx` to properly resolve imports.
|
|
52
|
+
namespace EmailImapSmtp { class HybridEmailImapSmtpSpec_cxx; }
|
|
53
|
+
|
|
54
|
+
// Include C++ defined types
|
|
55
|
+
#include "AppendResult.hpp"
|
|
56
|
+
#include "AttachmentInfo.hpp"
|
|
57
|
+
#include "ConnectionResult.hpp"
|
|
58
|
+
#include "DeleteResult.hpp"
|
|
59
|
+
#include "EmailAddress.hpp"
|
|
60
|
+
#include "EmailBody.hpp"
|
|
61
|
+
#include "EmailMessage.hpp"
|
|
62
|
+
#include "FolderInfo.hpp"
|
|
63
|
+
#include "HybridEmailImapSmtpSpec.hpp"
|
|
64
|
+
#include "IdleNotification.hpp"
|
|
65
|
+
#include "ImapServerInfo.hpp"
|
|
66
|
+
#include "MailboxInfo.hpp"
|
|
67
|
+
#include "MailboxListItem.hpp"
|
|
68
|
+
#include "QuotaInfo.hpp"
|
|
69
|
+
#include "SearchHeader.hpp"
|
|
70
|
+
#include "SendMailResult.hpp"
|
|
71
|
+
#include "SmtpAttachment.hpp"
|
|
72
|
+
#include "SmtpServerInfo.hpp"
|
|
73
|
+
#include <NitroModules/ArrayBuffer.hpp>
|
|
74
|
+
#include <NitroModules/ArrayBufferHolder.hpp>
|
|
75
|
+
#include <NitroModules/Null.hpp>
|
|
76
|
+
#include <NitroModules/Promise.hpp>
|
|
77
|
+
#include <NitroModules/PromiseHolder.hpp>
|
|
78
|
+
#include <NitroModules/Result.hpp>
|
|
79
|
+
#include <exception>
|
|
80
|
+
#include <functional>
|
|
81
|
+
#include <memory>
|
|
82
|
+
#include <optional>
|
|
83
|
+
#include <string>
|
|
84
|
+
#include <unordered_map>
|
|
85
|
+
#include <variant>
|
|
86
|
+
#include <vector>
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Contains specialized versions of C++ templated types so they can be accessed from Swift,
|
|
90
|
+
* as well as helper functions to interact with those C++ types from Swift.
|
|
91
|
+
*/
|
|
92
|
+
namespace margelo::nitro::emailimapsmtp::bridge::swift {
|
|
93
|
+
|
|
94
|
+
// pragma MARK: std::vector<std::string>
|
|
95
|
+
/**
|
|
96
|
+
* Specialized version of `std::vector<std::string>`.
|
|
97
|
+
*/
|
|
98
|
+
using std__vector_std__string_ = std::vector<std::string>;
|
|
99
|
+
inline std::vector<std::string> create_std__vector_std__string_(size_t size) noexcept {
|
|
100
|
+
std::vector<std::string> vector;
|
|
101
|
+
vector.reserve(size);
|
|
102
|
+
return vector;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// pragma MARK: std::variant<ImapServerInfo, SmtpServerInfo>
|
|
106
|
+
/**
|
|
107
|
+
* Wrapper struct for `std::variant<ImapServerInfo, SmtpServerInfo>`.
|
|
108
|
+
* std::variant cannot be used in Swift because of a Swift bug.
|
|
109
|
+
* Not even specializing it works. So we create a wrapper struct.
|
|
110
|
+
*/
|
|
111
|
+
struct std__variant_ImapServerInfo__SmtpServerInfo_ final {
|
|
112
|
+
std::variant<ImapServerInfo, SmtpServerInfo> variant;
|
|
113
|
+
std__variant_ImapServerInfo__SmtpServerInfo_(std::variant<ImapServerInfo, SmtpServerInfo> variant): variant(variant) { }
|
|
114
|
+
operator std::variant<ImapServerInfo, SmtpServerInfo>() const noexcept {
|
|
115
|
+
return variant;
|
|
116
|
+
}
|
|
117
|
+
inline size_t index() const noexcept {
|
|
118
|
+
return variant.index();
|
|
119
|
+
}
|
|
120
|
+
inline ImapServerInfo get_0() const noexcept {
|
|
121
|
+
return std::get<0>(variant);
|
|
122
|
+
}
|
|
123
|
+
inline SmtpServerInfo get_1() const noexcept {
|
|
124
|
+
return std::get<1>(variant);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
inline std__variant_ImapServerInfo__SmtpServerInfo_ create_std__variant_ImapServerInfo__SmtpServerInfo_(const ImapServerInfo& value) noexcept {
|
|
128
|
+
return std__variant_ImapServerInfo__SmtpServerInfo_(value);
|
|
129
|
+
}
|
|
130
|
+
inline std__variant_ImapServerInfo__SmtpServerInfo_ create_std__variant_ImapServerInfo__SmtpServerInfo_(const SmtpServerInfo& value) noexcept {
|
|
131
|
+
return std__variant_ImapServerInfo__SmtpServerInfo_(value);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// pragma MARK: std::optional<std::variant<ImapServerInfo, SmtpServerInfo>>
|
|
135
|
+
/**
|
|
136
|
+
* Specialized version of `std::optional<std::variant<ImapServerInfo, SmtpServerInfo>>`.
|
|
137
|
+
*/
|
|
138
|
+
using std__optional_std__variant_ImapServerInfo__SmtpServerInfo__ = std::optional<std::variant<ImapServerInfo, SmtpServerInfo>>;
|
|
139
|
+
inline std::optional<std::variant<ImapServerInfo, SmtpServerInfo>> create_std__optional_std__variant_ImapServerInfo__SmtpServerInfo__(const std::variant<ImapServerInfo, SmtpServerInfo>& value) noexcept {
|
|
140
|
+
return std::optional<std::variant<ImapServerInfo, SmtpServerInfo>>(value);
|
|
141
|
+
}
|
|
142
|
+
inline bool has_value_std__optional_std__variant_ImapServerInfo__SmtpServerInfo__(const std::optional<std::variant<ImapServerInfo, SmtpServerInfo>>& optional) noexcept {
|
|
143
|
+
return optional.has_value();
|
|
144
|
+
}
|
|
145
|
+
inline std::variant<ImapServerInfo, SmtpServerInfo> get_std__optional_std__variant_ImapServerInfo__SmtpServerInfo__(const std::optional<std::variant<ImapServerInfo, SmtpServerInfo>>& optional) noexcept {
|
|
146
|
+
return optional.value();
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// pragma MARK: std::optional<std::string>
|
|
150
|
+
/**
|
|
151
|
+
* Specialized version of `std::optional<std::string>`.
|
|
152
|
+
*/
|
|
153
|
+
using std__optional_std__string_ = std::optional<std::string>;
|
|
154
|
+
inline std::optional<std::string> create_std__optional_std__string_(const std::string& value) noexcept {
|
|
155
|
+
return std::optional<std::string>(value);
|
|
156
|
+
}
|
|
157
|
+
inline bool has_value_std__optional_std__string_(const std::optional<std::string>& optional) noexcept {
|
|
158
|
+
return optional.has_value();
|
|
159
|
+
}
|
|
160
|
+
inline std::string get_std__optional_std__string_(const std::optional<std::string>& optional) noexcept {
|
|
161
|
+
return optional.value();
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// pragma MARK: std::shared_ptr<Promise<ConnectionResult>>
|
|
165
|
+
/**
|
|
166
|
+
* Specialized version of `std::shared_ptr<Promise<ConnectionResult>>`.
|
|
167
|
+
*/
|
|
168
|
+
using std__shared_ptr_Promise_ConnectionResult__ = std::shared_ptr<Promise<ConnectionResult>>;
|
|
169
|
+
inline std::shared_ptr<Promise<ConnectionResult>> create_std__shared_ptr_Promise_ConnectionResult__() noexcept {
|
|
170
|
+
return Promise<ConnectionResult>::create();
|
|
171
|
+
}
|
|
172
|
+
inline PromiseHolder<ConnectionResult> wrap_std__shared_ptr_Promise_ConnectionResult__(std::shared_ptr<Promise<ConnectionResult>> promise) noexcept {
|
|
173
|
+
return PromiseHolder<ConnectionResult>(std::move(promise));
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// pragma MARK: std::function<void(const ConnectionResult& /* result */)>
|
|
177
|
+
/**
|
|
178
|
+
* Specialized version of `std::function<void(const ConnectionResult&)>`.
|
|
179
|
+
*/
|
|
180
|
+
using Func_void_ConnectionResult = std::function<void(const ConnectionResult& /* result */)>;
|
|
181
|
+
/**
|
|
182
|
+
* Wrapper class for a `std::function<void(const ConnectionResult& / * result * /)>`, this can be used from Swift.
|
|
183
|
+
*/
|
|
184
|
+
class Func_void_ConnectionResult_Wrapper final {
|
|
185
|
+
public:
|
|
186
|
+
explicit Func_void_ConnectionResult_Wrapper(std::function<void(const ConnectionResult& /* result */)>&& func): _function(std::make_unique<std::function<void(const ConnectionResult& /* result */)>>(std::move(func))) {}
|
|
187
|
+
inline void call(ConnectionResult result) const noexcept {
|
|
188
|
+
_function->operator()(result);
|
|
189
|
+
}
|
|
190
|
+
private:
|
|
191
|
+
std::unique_ptr<std::function<void(const ConnectionResult& /* result */)>> _function;
|
|
192
|
+
} SWIFT_NONCOPYABLE;
|
|
193
|
+
Func_void_ConnectionResult create_Func_void_ConnectionResult(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
194
|
+
inline Func_void_ConnectionResult_Wrapper wrap_Func_void_ConnectionResult(Func_void_ConnectionResult value) noexcept {
|
|
195
|
+
return Func_void_ConnectionResult_Wrapper(std::move(value));
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// pragma MARK: std::function<void(const std::exception_ptr& /* error */)>
|
|
199
|
+
/**
|
|
200
|
+
* Specialized version of `std::function<void(const std::exception_ptr&)>`.
|
|
201
|
+
*/
|
|
202
|
+
using Func_void_std__exception_ptr = std::function<void(const std::exception_ptr& /* error */)>;
|
|
203
|
+
/**
|
|
204
|
+
* Wrapper class for a `std::function<void(const std::exception_ptr& / * error * /)>`, this can be used from Swift.
|
|
205
|
+
*/
|
|
206
|
+
class Func_void_std__exception_ptr_Wrapper final {
|
|
207
|
+
public:
|
|
208
|
+
explicit Func_void_std__exception_ptr_Wrapper(std::function<void(const std::exception_ptr& /* error */)>&& func): _function(std::make_unique<std::function<void(const std::exception_ptr& /* error */)>>(std::move(func))) {}
|
|
209
|
+
inline void call(std::exception_ptr error) const noexcept {
|
|
210
|
+
_function->operator()(error);
|
|
211
|
+
}
|
|
212
|
+
private:
|
|
213
|
+
std::unique_ptr<std::function<void(const std::exception_ptr& /* error */)>> _function;
|
|
214
|
+
} SWIFT_NONCOPYABLE;
|
|
215
|
+
Func_void_std__exception_ptr create_Func_void_std__exception_ptr(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
216
|
+
inline Func_void_std__exception_ptr_Wrapper wrap_Func_void_std__exception_ptr(Func_void_std__exception_ptr value) noexcept {
|
|
217
|
+
return Func_void_std__exception_ptr_Wrapper(std::move(value));
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// pragma MARK: std::shared_ptr<Promise<void>>
|
|
221
|
+
/**
|
|
222
|
+
* Specialized version of `std::shared_ptr<Promise<void>>`.
|
|
223
|
+
*/
|
|
224
|
+
using std__shared_ptr_Promise_void__ = std::shared_ptr<Promise<void>>;
|
|
225
|
+
inline std::shared_ptr<Promise<void>> create_std__shared_ptr_Promise_void__() noexcept {
|
|
226
|
+
return Promise<void>::create();
|
|
227
|
+
}
|
|
228
|
+
inline PromiseHolder<void> wrap_std__shared_ptr_Promise_void__(std::shared_ptr<Promise<void>> promise) noexcept {
|
|
229
|
+
return PromiseHolder<void>(std::move(promise));
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
// pragma MARK: std::function<void()>
|
|
233
|
+
/**
|
|
234
|
+
* Specialized version of `std::function<void()>`.
|
|
235
|
+
*/
|
|
236
|
+
using Func_void = std::function<void()>;
|
|
237
|
+
/**
|
|
238
|
+
* Wrapper class for a `std::function<void()>`, this can be used from Swift.
|
|
239
|
+
*/
|
|
240
|
+
class Func_void_Wrapper final {
|
|
241
|
+
public:
|
|
242
|
+
explicit Func_void_Wrapper(std::function<void()>&& func): _function(std::make_unique<std::function<void()>>(std::move(func))) {}
|
|
243
|
+
inline void call() const noexcept {
|
|
244
|
+
_function->operator()();
|
|
245
|
+
}
|
|
246
|
+
private:
|
|
247
|
+
std::unique_ptr<std::function<void()>> _function;
|
|
248
|
+
} SWIFT_NONCOPYABLE;
|
|
249
|
+
Func_void create_Func_void(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
250
|
+
inline Func_void_Wrapper wrap_Func_void(Func_void value) noexcept {
|
|
251
|
+
return Func_void_Wrapper(std::move(value));
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// pragma MARK: std::vector<MailboxListItem>
|
|
255
|
+
/**
|
|
256
|
+
* Specialized version of `std::vector<MailboxListItem>`.
|
|
257
|
+
*/
|
|
258
|
+
using std__vector_MailboxListItem_ = std::vector<MailboxListItem>;
|
|
259
|
+
inline std::vector<MailboxListItem> create_std__vector_MailboxListItem_(size_t size) noexcept {
|
|
260
|
+
std::vector<MailboxListItem> vector;
|
|
261
|
+
vector.reserve(size);
|
|
262
|
+
return vector;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<MailboxListItem>>>
|
|
266
|
+
/**
|
|
267
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<MailboxListItem>>>`.
|
|
268
|
+
*/
|
|
269
|
+
using std__shared_ptr_Promise_std__vector_MailboxListItem___ = std::shared_ptr<Promise<std::vector<MailboxListItem>>>;
|
|
270
|
+
inline std::shared_ptr<Promise<std::vector<MailboxListItem>>> create_std__shared_ptr_Promise_std__vector_MailboxListItem___() noexcept {
|
|
271
|
+
return Promise<std::vector<MailboxListItem>>::create();
|
|
272
|
+
}
|
|
273
|
+
inline PromiseHolder<std::vector<MailboxListItem>> wrap_std__shared_ptr_Promise_std__vector_MailboxListItem___(std::shared_ptr<Promise<std::vector<MailboxListItem>>> promise) noexcept {
|
|
274
|
+
return PromiseHolder<std::vector<MailboxListItem>>(std::move(promise));
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// pragma MARK: std::function<void(const std::vector<MailboxListItem>& /* result */)>
|
|
278
|
+
/**
|
|
279
|
+
* Specialized version of `std::function<void(const std::vector<MailboxListItem>&)>`.
|
|
280
|
+
*/
|
|
281
|
+
using Func_void_std__vector_MailboxListItem_ = std::function<void(const std::vector<MailboxListItem>& /* result */)>;
|
|
282
|
+
/**
|
|
283
|
+
* Wrapper class for a `std::function<void(const std::vector<MailboxListItem>& / * result * /)>`, this can be used from Swift.
|
|
284
|
+
*/
|
|
285
|
+
class Func_void_std__vector_MailboxListItem__Wrapper final {
|
|
286
|
+
public:
|
|
287
|
+
explicit Func_void_std__vector_MailboxListItem__Wrapper(std::function<void(const std::vector<MailboxListItem>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::vector<MailboxListItem>& /* result */)>>(std::move(func))) {}
|
|
288
|
+
inline void call(std::vector<MailboxListItem> result) const noexcept {
|
|
289
|
+
_function->operator()(result);
|
|
290
|
+
}
|
|
291
|
+
private:
|
|
292
|
+
std::unique_ptr<std::function<void(const std::vector<MailboxListItem>& /* result */)>> _function;
|
|
293
|
+
} SWIFT_NONCOPYABLE;
|
|
294
|
+
Func_void_std__vector_MailboxListItem_ create_Func_void_std__vector_MailboxListItem_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
295
|
+
inline Func_void_std__vector_MailboxListItem__Wrapper wrap_Func_void_std__vector_MailboxListItem_(Func_void_std__vector_MailboxListItem_ value) noexcept {
|
|
296
|
+
return Func_void_std__vector_MailboxListItem__Wrapper(std::move(value));
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// pragma MARK: std::shared_ptr<Promise<MailboxInfo>>
|
|
300
|
+
/**
|
|
301
|
+
* Specialized version of `std::shared_ptr<Promise<MailboxInfo>>`.
|
|
302
|
+
*/
|
|
303
|
+
using std__shared_ptr_Promise_MailboxInfo__ = std::shared_ptr<Promise<MailboxInfo>>;
|
|
304
|
+
inline std::shared_ptr<Promise<MailboxInfo>> create_std__shared_ptr_Promise_MailboxInfo__() noexcept {
|
|
305
|
+
return Promise<MailboxInfo>::create();
|
|
306
|
+
}
|
|
307
|
+
inline PromiseHolder<MailboxInfo> wrap_std__shared_ptr_Promise_MailboxInfo__(std::shared_ptr<Promise<MailboxInfo>> promise) noexcept {
|
|
308
|
+
return PromiseHolder<MailboxInfo>(std::move(promise));
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// pragma MARK: std::function<void(const MailboxInfo& /* result */)>
|
|
312
|
+
/**
|
|
313
|
+
* Specialized version of `std::function<void(const MailboxInfo&)>`.
|
|
314
|
+
*/
|
|
315
|
+
using Func_void_MailboxInfo = std::function<void(const MailboxInfo& /* result */)>;
|
|
316
|
+
/**
|
|
317
|
+
* Wrapper class for a `std::function<void(const MailboxInfo& / * result * /)>`, this can be used from Swift.
|
|
318
|
+
*/
|
|
319
|
+
class Func_void_MailboxInfo_Wrapper final {
|
|
320
|
+
public:
|
|
321
|
+
explicit Func_void_MailboxInfo_Wrapper(std::function<void(const MailboxInfo& /* result */)>&& func): _function(std::make_unique<std::function<void(const MailboxInfo& /* result */)>>(std::move(func))) {}
|
|
322
|
+
inline void call(MailboxInfo result) const noexcept {
|
|
323
|
+
_function->operator()(result);
|
|
324
|
+
}
|
|
325
|
+
private:
|
|
326
|
+
std::unique_ptr<std::function<void(const MailboxInfo& /* result */)>> _function;
|
|
327
|
+
} SWIFT_NONCOPYABLE;
|
|
328
|
+
Func_void_MailboxInfo create_Func_void_MailboxInfo(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
329
|
+
inline Func_void_MailboxInfo_Wrapper wrap_Func_void_MailboxInfo(Func_void_MailboxInfo value) noexcept {
|
|
330
|
+
return Func_void_MailboxInfo_Wrapper(std::move(value));
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
// pragma MARK: std::vector<FolderInfo>
|
|
334
|
+
/**
|
|
335
|
+
* Specialized version of `std::vector<FolderInfo>`.
|
|
336
|
+
*/
|
|
337
|
+
using std__vector_FolderInfo_ = std::vector<FolderInfo>;
|
|
338
|
+
inline std::vector<FolderInfo> create_std__vector_FolderInfo_(size_t size) noexcept {
|
|
339
|
+
std::vector<FolderInfo> vector;
|
|
340
|
+
vector.reserve(size);
|
|
341
|
+
return vector;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<FolderInfo>>>
|
|
345
|
+
/**
|
|
346
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<FolderInfo>>>`.
|
|
347
|
+
*/
|
|
348
|
+
using std__shared_ptr_Promise_std__vector_FolderInfo___ = std::shared_ptr<Promise<std::vector<FolderInfo>>>;
|
|
349
|
+
inline std::shared_ptr<Promise<std::vector<FolderInfo>>> create_std__shared_ptr_Promise_std__vector_FolderInfo___() noexcept {
|
|
350
|
+
return Promise<std::vector<FolderInfo>>::create();
|
|
351
|
+
}
|
|
352
|
+
inline PromiseHolder<std::vector<FolderInfo>> wrap_std__shared_ptr_Promise_std__vector_FolderInfo___(std::shared_ptr<Promise<std::vector<FolderInfo>>> promise) noexcept {
|
|
353
|
+
return PromiseHolder<std::vector<FolderInfo>>(std::move(promise));
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
// pragma MARK: std::function<void(const std::vector<FolderInfo>& /* result */)>
|
|
357
|
+
/**
|
|
358
|
+
* Specialized version of `std::function<void(const std::vector<FolderInfo>&)>`.
|
|
359
|
+
*/
|
|
360
|
+
using Func_void_std__vector_FolderInfo_ = std::function<void(const std::vector<FolderInfo>& /* result */)>;
|
|
361
|
+
/**
|
|
362
|
+
* Wrapper class for a `std::function<void(const std::vector<FolderInfo>& / * result * /)>`, this can be used from Swift.
|
|
363
|
+
*/
|
|
364
|
+
class Func_void_std__vector_FolderInfo__Wrapper final {
|
|
365
|
+
public:
|
|
366
|
+
explicit Func_void_std__vector_FolderInfo__Wrapper(std::function<void(const std::vector<FolderInfo>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::vector<FolderInfo>& /* result */)>>(std::move(func))) {}
|
|
367
|
+
inline void call(std::vector<FolderInfo> result) const noexcept {
|
|
368
|
+
_function->operator()(result);
|
|
369
|
+
}
|
|
370
|
+
private:
|
|
371
|
+
std::unique_ptr<std::function<void(const std::vector<FolderInfo>& /* result */)>> _function;
|
|
372
|
+
} SWIFT_NONCOPYABLE;
|
|
373
|
+
Func_void_std__vector_FolderInfo_ create_Func_void_std__vector_FolderInfo_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
374
|
+
inline Func_void_std__vector_FolderInfo__Wrapper wrap_Func_void_std__vector_FolderInfo_(Func_void_std__vector_FolderInfo_ value) noexcept {
|
|
375
|
+
return Func_void_std__vector_FolderInfo__Wrapper(std::move(value));
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
// pragma MARK: std::vector<EmailAddress>
|
|
379
|
+
/**
|
|
380
|
+
* Specialized version of `std::vector<EmailAddress>`.
|
|
381
|
+
*/
|
|
382
|
+
using std__vector_EmailAddress_ = std::vector<EmailAddress>;
|
|
383
|
+
inline std::vector<EmailAddress> create_std__vector_EmailAddress_(size_t size) noexcept {
|
|
384
|
+
std::vector<EmailAddress> vector;
|
|
385
|
+
vector.reserve(size);
|
|
386
|
+
return vector;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
// pragma MARK: std::vector<AttachmentInfo>
|
|
390
|
+
/**
|
|
391
|
+
* Specialized version of `std::vector<AttachmentInfo>`.
|
|
392
|
+
*/
|
|
393
|
+
using std__vector_AttachmentInfo_ = std::vector<AttachmentInfo>;
|
|
394
|
+
inline std::vector<AttachmentInfo> create_std__vector_AttachmentInfo_(size_t size) noexcept {
|
|
395
|
+
std::vector<AttachmentInfo> vector;
|
|
396
|
+
vector.reserve(size);
|
|
397
|
+
return vector;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
// pragma MARK: std::unordered_map<std::string, std::string>
|
|
401
|
+
/**
|
|
402
|
+
* Specialized version of `std::unordered_map<std::string, std::string>`.
|
|
403
|
+
*/
|
|
404
|
+
using std__unordered_map_std__string__std__string_ = std::unordered_map<std::string, std::string>;
|
|
405
|
+
inline std::unordered_map<std::string, std::string> create_std__unordered_map_std__string__std__string_(size_t size) noexcept {
|
|
406
|
+
std::unordered_map<std::string, std::string> map;
|
|
407
|
+
map.reserve(size);
|
|
408
|
+
return map;
|
|
409
|
+
}
|
|
410
|
+
inline std::vector<std::string> get_std__unordered_map_std__string__std__string__keys(const std__unordered_map_std__string__std__string_& map) noexcept {
|
|
411
|
+
std::vector<std::string> keys;
|
|
412
|
+
keys.reserve(map.size());
|
|
413
|
+
for (const auto& entry : map) {
|
|
414
|
+
keys.push_back(entry.first);
|
|
415
|
+
}
|
|
416
|
+
return keys;
|
|
417
|
+
}
|
|
418
|
+
inline std::string get_std__unordered_map_std__string__std__string__value(const std__unordered_map_std__string__std__string_& map, const std::string& key) noexcept {
|
|
419
|
+
return map.find(key)->second;
|
|
420
|
+
}
|
|
421
|
+
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) noexcept {
|
|
422
|
+
map.emplace(key, value);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
// pragma MARK: std::vector<EmailMessage>
|
|
426
|
+
/**
|
|
427
|
+
* Specialized version of `std::vector<EmailMessage>`.
|
|
428
|
+
*/
|
|
429
|
+
using std__vector_EmailMessage_ = std::vector<EmailMessage>;
|
|
430
|
+
inline std::vector<EmailMessage> create_std__vector_EmailMessage_(size_t size) noexcept {
|
|
431
|
+
std::vector<EmailMessage> vector;
|
|
432
|
+
vector.reserve(size);
|
|
433
|
+
return vector;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<EmailMessage>>>
|
|
437
|
+
/**
|
|
438
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<EmailMessage>>>`.
|
|
439
|
+
*/
|
|
440
|
+
using std__shared_ptr_Promise_std__vector_EmailMessage___ = std::shared_ptr<Promise<std::vector<EmailMessage>>>;
|
|
441
|
+
inline std::shared_ptr<Promise<std::vector<EmailMessage>>> create_std__shared_ptr_Promise_std__vector_EmailMessage___() noexcept {
|
|
442
|
+
return Promise<std::vector<EmailMessage>>::create();
|
|
443
|
+
}
|
|
444
|
+
inline PromiseHolder<std::vector<EmailMessage>> wrap_std__shared_ptr_Promise_std__vector_EmailMessage___(std::shared_ptr<Promise<std::vector<EmailMessage>>> promise) noexcept {
|
|
445
|
+
return PromiseHolder<std::vector<EmailMessage>>(std::move(promise));
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
// pragma MARK: std::function<void(const std::vector<EmailMessage>& /* result */)>
|
|
449
|
+
/**
|
|
450
|
+
* Specialized version of `std::function<void(const std::vector<EmailMessage>&)>`.
|
|
451
|
+
*/
|
|
452
|
+
using Func_void_std__vector_EmailMessage_ = std::function<void(const std::vector<EmailMessage>& /* result */)>;
|
|
453
|
+
/**
|
|
454
|
+
* Wrapper class for a `std::function<void(const std::vector<EmailMessage>& / * result * /)>`, this can be used from Swift.
|
|
455
|
+
*/
|
|
456
|
+
class Func_void_std__vector_EmailMessage__Wrapper final {
|
|
457
|
+
public:
|
|
458
|
+
explicit Func_void_std__vector_EmailMessage__Wrapper(std::function<void(const std::vector<EmailMessage>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::vector<EmailMessage>& /* result */)>>(std::move(func))) {}
|
|
459
|
+
inline void call(std::vector<EmailMessage> result) const noexcept {
|
|
460
|
+
_function->operator()(result);
|
|
461
|
+
}
|
|
462
|
+
private:
|
|
463
|
+
std::unique_ptr<std::function<void(const std::vector<EmailMessage>& /* result */)>> _function;
|
|
464
|
+
} SWIFT_NONCOPYABLE;
|
|
465
|
+
Func_void_std__vector_EmailMessage_ create_Func_void_std__vector_EmailMessage_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
466
|
+
inline Func_void_std__vector_EmailMessage__Wrapper wrap_Func_void_std__vector_EmailMessage_(Func_void_std__vector_EmailMessage_ value) noexcept {
|
|
467
|
+
return Func_void_std__vector_EmailMessage__Wrapper(std::move(value));
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
// pragma MARK: std::optional<double>
|
|
471
|
+
/**
|
|
472
|
+
* Specialized version of `std::optional<double>`.
|
|
473
|
+
*/
|
|
474
|
+
using std__optional_double_ = std::optional<double>;
|
|
475
|
+
inline std::optional<double> create_std__optional_double_(const double& value) noexcept {
|
|
476
|
+
return std::optional<double>(value);
|
|
477
|
+
}
|
|
478
|
+
inline bool has_value_std__optional_double_(const std::optional<double>& optional) noexcept {
|
|
479
|
+
return optional.has_value();
|
|
480
|
+
}
|
|
481
|
+
inline double get_std__optional_double_(const std::optional<double>& optional) noexcept {
|
|
482
|
+
return optional.value();
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
// pragma MARK: std::variant<nitro::NullType, EmailMessage>
|
|
486
|
+
/**
|
|
487
|
+
* Wrapper struct for `std::variant<nitro::NullType, EmailMessage>`.
|
|
488
|
+
* std::variant cannot be used in Swift because of a Swift bug.
|
|
489
|
+
* Not even specializing it works. So we create a wrapper struct.
|
|
490
|
+
*/
|
|
491
|
+
struct std__variant_nitro__NullType__EmailMessage_ final {
|
|
492
|
+
std::variant<nitro::NullType, EmailMessage> variant;
|
|
493
|
+
std__variant_nitro__NullType__EmailMessage_(std::variant<nitro::NullType, EmailMessage> variant): variant(variant) { }
|
|
494
|
+
operator std::variant<nitro::NullType, EmailMessage>() const noexcept {
|
|
495
|
+
return variant;
|
|
496
|
+
}
|
|
497
|
+
inline size_t index() const noexcept {
|
|
498
|
+
return variant.index();
|
|
499
|
+
}
|
|
500
|
+
inline nitro::NullType get_0() const noexcept {
|
|
501
|
+
return std::get<0>(variant);
|
|
502
|
+
}
|
|
503
|
+
inline EmailMessage get_1() const noexcept {
|
|
504
|
+
return std::get<1>(variant);
|
|
505
|
+
}
|
|
506
|
+
};
|
|
507
|
+
inline std__variant_nitro__NullType__EmailMessage_ create_std__variant_nitro__NullType__EmailMessage_(nitro::NullType value) noexcept {
|
|
508
|
+
return std__variant_nitro__NullType__EmailMessage_(value);
|
|
509
|
+
}
|
|
510
|
+
inline std__variant_nitro__NullType__EmailMessage_ create_std__variant_nitro__NullType__EmailMessage_(const EmailMessage& value) noexcept {
|
|
511
|
+
return std__variant_nitro__NullType__EmailMessage_(value);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
// pragma MARK: std::shared_ptr<Promise<std::variant<nitro::NullType, EmailMessage>>>
|
|
515
|
+
/**
|
|
516
|
+
* Specialized version of `std::shared_ptr<Promise<std::variant<nitro::NullType, EmailMessage>>>`.
|
|
517
|
+
*/
|
|
518
|
+
using std__shared_ptr_Promise_std__variant_nitro__NullType__EmailMessage___ = std::shared_ptr<Promise<std::variant<nitro::NullType, EmailMessage>>>;
|
|
519
|
+
inline std::shared_ptr<Promise<std::variant<nitro::NullType, EmailMessage>>> create_std__shared_ptr_Promise_std__variant_nitro__NullType__EmailMessage___() noexcept {
|
|
520
|
+
return Promise<std::variant<nitro::NullType, EmailMessage>>::create();
|
|
521
|
+
}
|
|
522
|
+
inline PromiseHolder<std::variant<nitro::NullType, EmailMessage>> wrap_std__shared_ptr_Promise_std__variant_nitro__NullType__EmailMessage___(std::shared_ptr<Promise<std::variant<nitro::NullType, EmailMessage>>> promise) noexcept {
|
|
523
|
+
return PromiseHolder<std::variant<nitro::NullType, EmailMessage>>(std::move(promise));
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
// pragma MARK: std::function<void(const std::variant<nitro::NullType, EmailMessage>& /* result */)>
|
|
527
|
+
/**
|
|
528
|
+
* Specialized version of `std::function<void(const std::variant<nitro::NullType, EmailMessage>&)>`.
|
|
529
|
+
*/
|
|
530
|
+
using Func_void_std__variant_nitro__NullType__EmailMessage_ = std::function<void(const std::variant<nitro::NullType, EmailMessage>& /* result */)>;
|
|
531
|
+
/**
|
|
532
|
+
* Wrapper class for a `std::function<void(const std::variant<nitro::NullType, EmailMessage>& / * result * /)>`, this can be used from Swift.
|
|
533
|
+
*/
|
|
534
|
+
class Func_void_std__variant_nitro__NullType__EmailMessage__Wrapper final {
|
|
535
|
+
public:
|
|
536
|
+
explicit Func_void_std__variant_nitro__NullType__EmailMessage__Wrapper(std::function<void(const std::variant<nitro::NullType, EmailMessage>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::variant<nitro::NullType, EmailMessage>& /* result */)>>(std::move(func))) {}
|
|
537
|
+
inline void call(std::variant<nitro::NullType, EmailMessage> result) const noexcept {
|
|
538
|
+
_function->operator()(result);
|
|
539
|
+
}
|
|
540
|
+
private:
|
|
541
|
+
std::unique_ptr<std::function<void(const std::variant<nitro::NullType, EmailMessage>& /* result */)>> _function;
|
|
542
|
+
} SWIFT_NONCOPYABLE;
|
|
543
|
+
Func_void_std__variant_nitro__NullType__EmailMessage_ create_Func_void_std__variant_nitro__NullType__EmailMessage_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
544
|
+
inline Func_void_std__variant_nitro__NullType__EmailMessage__Wrapper wrap_Func_void_std__variant_nitro__NullType__EmailMessage_(Func_void_std__variant_nitro__NullType__EmailMessage_ value) noexcept {
|
|
545
|
+
return Func_void_std__variant_nitro__NullType__EmailMessage__Wrapper(std::move(value));
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
// pragma MARK: std::optional<bool>
|
|
549
|
+
/**
|
|
550
|
+
* Specialized version of `std::optional<bool>`.
|
|
551
|
+
*/
|
|
552
|
+
using std__optional_bool_ = std::optional<bool>;
|
|
553
|
+
inline std::optional<bool> create_std__optional_bool_(const bool& value) noexcept {
|
|
554
|
+
return std::optional<bool>(value);
|
|
555
|
+
}
|
|
556
|
+
inline bool has_value_std__optional_bool_(const std::optional<bool>& optional) noexcept {
|
|
557
|
+
return optional.has_value();
|
|
558
|
+
}
|
|
559
|
+
inline bool get_std__optional_bool_(const std::optional<bool>& optional) noexcept {
|
|
560
|
+
return optional.value();
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
// pragma MARK: std::vector<double>
|
|
564
|
+
/**
|
|
565
|
+
* Specialized version of `std::vector<double>`.
|
|
566
|
+
*/
|
|
567
|
+
using std__vector_double_ = std::vector<double>;
|
|
568
|
+
inline std::vector<double> create_std__vector_double_(size_t size) noexcept {
|
|
569
|
+
std::vector<double> vector;
|
|
570
|
+
vector.reserve(size);
|
|
571
|
+
return vector;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
// pragma MARK: std::optional<std::vector<double>>
|
|
575
|
+
/**
|
|
576
|
+
* Specialized version of `std::optional<std::vector<double>>`.
|
|
577
|
+
*/
|
|
578
|
+
using std__optional_std__vector_double__ = std::optional<std::vector<double>>;
|
|
579
|
+
inline std::optional<std::vector<double>> create_std__optional_std__vector_double__(const std::vector<double>& value) noexcept {
|
|
580
|
+
return std::optional<std::vector<double>>(value);
|
|
581
|
+
}
|
|
582
|
+
inline bool has_value_std__optional_std__vector_double__(const std::optional<std::vector<double>>& optional) noexcept {
|
|
583
|
+
return optional.has_value();
|
|
584
|
+
}
|
|
585
|
+
inline std::vector<double> get_std__optional_std__vector_double__(const std::optional<std::vector<double>>& optional) noexcept {
|
|
586
|
+
return optional.value();
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
// pragma MARK: std::optional<SearchHeader>
|
|
590
|
+
/**
|
|
591
|
+
* Specialized version of `std::optional<SearchHeader>`.
|
|
592
|
+
*/
|
|
593
|
+
using std__optional_SearchHeader_ = std::optional<SearchHeader>;
|
|
594
|
+
inline std::optional<SearchHeader> create_std__optional_SearchHeader_(const SearchHeader& value) noexcept {
|
|
595
|
+
return std::optional<SearchHeader>(value);
|
|
596
|
+
}
|
|
597
|
+
inline bool has_value_std__optional_SearchHeader_(const std::optional<SearchHeader>& optional) noexcept {
|
|
598
|
+
return optional.has_value();
|
|
599
|
+
}
|
|
600
|
+
inline SearchHeader get_std__optional_SearchHeader_(const std::optional<SearchHeader>& optional) noexcept {
|
|
601
|
+
return optional.value();
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
// pragma MARK: std::shared_ptr<Promise<DeleteResult>>
|
|
605
|
+
/**
|
|
606
|
+
* Specialized version of `std::shared_ptr<Promise<DeleteResult>>`.
|
|
607
|
+
*/
|
|
608
|
+
using std__shared_ptr_Promise_DeleteResult__ = std::shared_ptr<Promise<DeleteResult>>;
|
|
609
|
+
inline std::shared_ptr<Promise<DeleteResult>> create_std__shared_ptr_Promise_DeleteResult__() noexcept {
|
|
610
|
+
return Promise<DeleteResult>::create();
|
|
611
|
+
}
|
|
612
|
+
inline PromiseHolder<DeleteResult> wrap_std__shared_ptr_Promise_DeleteResult__(std::shared_ptr<Promise<DeleteResult>> promise) noexcept {
|
|
613
|
+
return PromiseHolder<DeleteResult>(std::move(promise));
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
// pragma MARK: std::function<void(const DeleteResult& /* result */)>
|
|
617
|
+
/**
|
|
618
|
+
* Specialized version of `std::function<void(const DeleteResult&)>`.
|
|
619
|
+
*/
|
|
620
|
+
using Func_void_DeleteResult = std::function<void(const DeleteResult& /* result */)>;
|
|
621
|
+
/**
|
|
622
|
+
* Wrapper class for a `std::function<void(const DeleteResult& / * result * /)>`, this can be used from Swift.
|
|
623
|
+
*/
|
|
624
|
+
class Func_void_DeleteResult_Wrapper final {
|
|
625
|
+
public:
|
|
626
|
+
explicit Func_void_DeleteResult_Wrapper(std::function<void(const DeleteResult& /* result */)>&& func): _function(std::make_unique<std::function<void(const DeleteResult& /* result */)>>(std::move(func))) {}
|
|
627
|
+
inline void call(DeleteResult result) const noexcept {
|
|
628
|
+
_function->operator()(result);
|
|
629
|
+
}
|
|
630
|
+
private:
|
|
631
|
+
std::unique_ptr<std::function<void(const DeleteResult& /* result */)>> _function;
|
|
632
|
+
} SWIFT_NONCOPYABLE;
|
|
633
|
+
Func_void_DeleteResult create_Func_void_DeleteResult(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
634
|
+
inline Func_void_DeleteResult_Wrapper wrap_Func_void_DeleteResult(Func_void_DeleteResult value) noexcept {
|
|
635
|
+
return Func_void_DeleteResult_Wrapper(std::move(value));
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
// pragma MARK: std::variant<nitro::NullType, AttachmentInfo>
|
|
639
|
+
/**
|
|
640
|
+
* Wrapper struct for `std::variant<nitro::NullType, AttachmentInfo>`.
|
|
641
|
+
* std::variant cannot be used in Swift because of a Swift bug.
|
|
642
|
+
* Not even specializing it works. So we create a wrapper struct.
|
|
643
|
+
*/
|
|
644
|
+
struct std__variant_nitro__NullType__AttachmentInfo_ final {
|
|
645
|
+
std::variant<nitro::NullType, AttachmentInfo> variant;
|
|
646
|
+
std__variant_nitro__NullType__AttachmentInfo_(std::variant<nitro::NullType, AttachmentInfo> variant): variant(variant) { }
|
|
647
|
+
operator std::variant<nitro::NullType, AttachmentInfo>() const noexcept {
|
|
648
|
+
return variant;
|
|
649
|
+
}
|
|
650
|
+
inline size_t index() const noexcept {
|
|
651
|
+
return variant.index();
|
|
652
|
+
}
|
|
653
|
+
inline nitro::NullType get_0() const noexcept {
|
|
654
|
+
return std::get<0>(variant);
|
|
655
|
+
}
|
|
656
|
+
inline AttachmentInfo get_1() const noexcept {
|
|
657
|
+
return std::get<1>(variant);
|
|
658
|
+
}
|
|
659
|
+
};
|
|
660
|
+
inline std__variant_nitro__NullType__AttachmentInfo_ create_std__variant_nitro__NullType__AttachmentInfo_(nitro::NullType value) noexcept {
|
|
661
|
+
return std__variant_nitro__NullType__AttachmentInfo_(value);
|
|
662
|
+
}
|
|
663
|
+
inline std__variant_nitro__NullType__AttachmentInfo_ create_std__variant_nitro__NullType__AttachmentInfo_(const AttachmentInfo& value) noexcept {
|
|
664
|
+
return std__variant_nitro__NullType__AttachmentInfo_(value);
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
// pragma MARK: std::shared_ptr<Promise<std::variant<nitro::NullType, AttachmentInfo>>>
|
|
668
|
+
/**
|
|
669
|
+
* Specialized version of `std::shared_ptr<Promise<std::variant<nitro::NullType, AttachmentInfo>>>`.
|
|
670
|
+
*/
|
|
671
|
+
using std__shared_ptr_Promise_std__variant_nitro__NullType__AttachmentInfo___ = std::shared_ptr<Promise<std::variant<nitro::NullType, AttachmentInfo>>>;
|
|
672
|
+
inline std::shared_ptr<Promise<std::variant<nitro::NullType, AttachmentInfo>>> create_std__shared_ptr_Promise_std__variant_nitro__NullType__AttachmentInfo___() noexcept {
|
|
673
|
+
return Promise<std::variant<nitro::NullType, AttachmentInfo>>::create();
|
|
674
|
+
}
|
|
675
|
+
inline PromiseHolder<std::variant<nitro::NullType, AttachmentInfo>> wrap_std__shared_ptr_Promise_std__variant_nitro__NullType__AttachmentInfo___(std::shared_ptr<Promise<std::variant<nitro::NullType, AttachmentInfo>>> promise) noexcept {
|
|
676
|
+
return PromiseHolder<std::variant<nitro::NullType, AttachmentInfo>>(std::move(promise));
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
// pragma MARK: std::function<void(const std::variant<nitro::NullType, AttachmentInfo>& /* result */)>
|
|
680
|
+
/**
|
|
681
|
+
* Specialized version of `std::function<void(const std::variant<nitro::NullType, AttachmentInfo>&)>`.
|
|
682
|
+
*/
|
|
683
|
+
using Func_void_std__variant_nitro__NullType__AttachmentInfo_ = std::function<void(const std::variant<nitro::NullType, AttachmentInfo>& /* result */)>;
|
|
684
|
+
/**
|
|
685
|
+
* Wrapper class for a `std::function<void(const std::variant<nitro::NullType, AttachmentInfo>& / * result * /)>`, this can be used from Swift.
|
|
686
|
+
*/
|
|
687
|
+
class Func_void_std__variant_nitro__NullType__AttachmentInfo__Wrapper final {
|
|
688
|
+
public:
|
|
689
|
+
explicit Func_void_std__variant_nitro__NullType__AttachmentInfo__Wrapper(std::function<void(const std::variant<nitro::NullType, AttachmentInfo>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::variant<nitro::NullType, AttachmentInfo>& /* result */)>>(std::move(func))) {}
|
|
690
|
+
inline void call(std::variant<nitro::NullType, AttachmentInfo> result) const noexcept {
|
|
691
|
+
_function->operator()(result);
|
|
692
|
+
}
|
|
693
|
+
private:
|
|
694
|
+
std::unique_ptr<std::function<void(const std::variant<nitro::NullType, AttachmentInfo>& /* result */)>> _function;
|
|
695
|
+
} SWIFT_NONCOPYABLE;
|
|
696
|
+
Func_void_std__variant_nitro__NullType__AttachmentInfo_ create_Func_void_std__variant_nitro__NullType__AttachmentInfo_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
697
|
+
inline Func_void_std__variant_nitro__NullType__AttachmentInfo__Wrapper wrap_Func_void_std__variant_nitro__NullType__AttachmentInfo_(Func_void_std__variant_nitro__NullType__AttachmentInfo_ value) noexcept {
|
|
698
|
+
return Func_void_std__variant_nitro__NullType__AttachmentInfo__Wrapper(std::move(value));
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
// pragma MARK: std::shared_ptr<Promise<std::vector<AttachmentInfo>>>
|
|
702
|
+
/**
|
|
703
|
+
* Specialized version of `std::shared_ptr<Promise<std::vector<AttachmentInfo>>>`.
|
|
704
|
+
*/
|
|
705
|
+
using std__shared_ptr_Promise_std__vector_AttachmentInfo___ = std::shared_ptr<Promise<std::vector<AttachmentInfo>>>;
|
|
706
|
+
inline std::shared_ptr<Promise<std::vector<AttachmentInfo>>> create_std__shared_ptr_Promise_std__vector_AttachmentInfo___() noexcept {
|
|
707
|
+
return Promise<std::vector<AttachmentInfo>>::create();
|
|
708
|
+
}
|
|
709
|
+
inline PromiseHolder<std::vector<AttachmentInfo>> wrap_std__shared_ptr_Promise_std__vector_AttachmentInfo___(std::shared_ptr<Promise<std::vector<AttachmentInfo>>> promise) noexcept {
|
|
710
|
+
return PromiseHolder<std::vector<AttachmentInfo>>(std::move(promise));
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
// pragma MARK: std::function<void(const std::vector<AttachmentInfo>& /* result */)>
|
|
714
|
+
/**
|
|
715
|
+
* Specialized version of `std::function<void(const std::vector<AttachmentInfo>&)>`.
|
|
716
|
+
*/
|
|
717
|
+
using Func_void_std__vector_AttachmentInfo_ = std::function<void(const std::vector<AttachmentInfo>& /* result */)>;
|
|
718
|
+
/**
|
|
719
|
+
* Wrapper class for a `std::function<void(const std::vector<AttachmentInfo>& / * result * /)>`, this can be used from Swift.
|
|
720
|
+
*/
|
|
721
|
+
class Func_void_std__vector_AttachmentInfo__Wrapper final {
|
|
722
|
+
public:
|
|
723
|
+
explicit Func_void_std__vector_AttachmentInfo__Wrapper(std::function<void(const std::vector<AttachmentInfo>& /* result */)>&& func): _function(std::make_unique<std::function<void(const std::vector<AttachmentInfo>& /* result */)>>(std::move(func))) {}
|
|
724
|
+
inline void call(std::vector<AttachmentInfo> result) const noexcept {
|
|
725
|
+
_function->operator()(result);
|
|
726
|
+
}
|
|
727
|
+
private:
|
|
728
|
+
std::unique_ptr<std::function<void(const std::vector<AttachmentInfo>& /* result */)>> _function;
|
|
729
|
+
} SWIFT_NONCOPYABLE;
|
|
730
|
+
Func_void_std__vector_AttachmentInfo_ create_Func_void_std__vector_AttachmentInfo_(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
731
|
+
inline Func_void_std__vector_AttachmentInfo__Wrapper wrap_Func_void_std__vector_AttachmentInfo_(Func_void_std__vector_AttachmentInfo_ value) noexcept {
|
|
732
|
+
return Func_void_std__vector_AttachmentInfo__Wrapper(std::move(value));
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
// pragma MARK: std::function<void(const IdleNotification& /* notification */)>
|
|
736
|
+
/**
|
|
737
|
+
* Specialized version of `std::function<void(const IdleNotification&)>`.
|
|
738
|
+
*/
|
|
739
|
+
using Func_void_IdleNotification = std::function<void(const IdleNotification& /* notification */)>;
|
|
740
|
+
/**
|
|
741
|
+
* Wrapper class for a `std::function<void(const IdleNotification& / * notification * /)>`, this can be used from Swift.
|
|
742
|
+
*/
|
|
743
|
+
class Func_void_IdleNotification_Wrapper final {
|
|
744
|
+
public:
|
|
745
|
+
explicit Func_void_IdleNotification_Wrapper(std::function<void(const IdleNotification& /* notification */)>&& func): _function(std::make_unique<std::function<void(const IdleNotification& /* notification */)>>(std::move(func))) {}
|
|
746
|
+
inline void call(IdleNotification notification) const noexcept {
|
|
747
|
+
_function->operator()(notification);
|
|
748
|
+
}
|
|
749
|
+
private:
|
|
750
|
+
std::unique_ptr<std::function<void(const IdleNotification& /* notification */)>> _function;
|
|
751
|
+
} SWIFT_NONCOPYABLE;
|
|
752
|
+
Func_void_IdleNotification create_Func_void_IdleNotification(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
753
|
+
inline Func_void_IdleNotification_Wrapper wrap_Func_void_IdleNotification(Func_void_IdleNotification value) noexcept {
|
|
754
|
+
return Func_void_IdleNotification_Wrapper(std::move(value));
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
// pragma MARK: std::shared_ptr<Promise<QuotaInfo>>
|
|
758
|
+
/**
|
|
759
|
+
* Specialized version of `std::shared_ptr<Promise<QuotaInfo>>`.
|
|
760
|
+
*/
|
|
761
|
+
using std__shared_ptr_Promise_QuotaInfo__ = std::shared_ptr<Promise<QuotaInfo>>;
|
|
762
|
+
inline std::shared_ptr<Promise<QuotaInfo>> create_std__shared_ptr_Promise_QuotaInfo__() noexcept {
|
|
763
|
+
return Promise<QuotaInfo>::create();
|
|
764
|
+
}
|
|
765
|
+
inline PromiseHolder<QuotaInfo> wrap_std__shared_ptr_Promise_QuotaInfo__(std::shared_ptr<Promise<QuotaInfo>> promise) noexcept {
|
|
766
|
+
return PromiseHolder<QuotaInfo>(std::move(promise));
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
// pragma MARK: std::function<void(const QuotaInfo& /* result */)>
|
|
770
|
+
/**
|
|
771
|
+
* Specialized version of `std::function<void(const QuotaInfo&)>`.
|
|
772
|
+
*/
|
|
773
|
+
using Func_void_QuotaInfo = std::function<void(const QuotaInfo& /* result */)>;
|
|
774
|
+
/**
|
|
775
|
+
* Wrapper class for a `std::function<void(const QuotaInfo& / * result * /)>`, this can be used from Swift.
|
|
776
|
+
*/
|
|
777
|
+
class Func_void_QuotaInfo_Wrapper final {
|
|
778
|
+
public:
|
|
779
|
+
explicit Func_void_QuotaInfo_Wrapper(std::function<void(const QuotaInfo& /* result */)>&& func): _function(std::make_unique<std::function<void(const QuotaInfo& /* result */)>>(std::move(func))) {}
|
|
780
|
+
inline void call(QuotaInfo result) const noexcept {
|
|
781
|
+
_function->operator()(result);
|
|
782
|
+
}
|
|
783
|
+
private:
|
|
784
|
+
std::unique_ptr<std::function<void(const QuotaInfo& /* result */)>> _function;
|
|
785
|
+
} SWIFT_NONCOPYABLE;
|
|
786
|
+
Func_void_QuotaInfo create_Func_void_QuotaInfo(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
787
|
+
inline Func_void_QuotaInfo_Wrapper wrap_Func_void_QuotaInfo(Func_void_QuotaInfo value) noexcept {
|
|
788
|
+
return Func_void_QuotaInfo_Wrapper(std::move(value));
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
// pragma MARK: std::shared_ptr<Promise<AppendResult>>
|
|
792
|
+
/**
|
|
793
|
+
* Specialized version of `std::shared_ptr<Promise<AppendResult>>`.
|
|
794
|
+
*/
|
|
795
|
+
using std__shared_ptr_Promise_AppendResult__ = std::shared_ptr<Promise<AppendResult>>;
|
|
796
|
+
inline std::shared_ptr<Promise<AppendResult>> create_std__shared_ptr_Promise_AppendResult__() noexcept {
|
|
797
|
+
return Promise<AppendResult>::create();
|
|
798
|
+
}
|
|
799
|
+
inline PromiseHolder<AppendResult> wrap_std__shared_ptr_Promise_AppendResult__(std::shared_ptr<Promise<AppendResult>> promise) noexcept {
|
|
800
|
+
return PromiseHolder<AppendResult>(std::move(promise));
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
// pragma MARK: std::function<void(const AppendResult& /* result */)>
|
|
804
|
+
/**
|
|
805
|
+
* Specialized version of `std::function<void(const AppendResult&)>`.
|
|
806
|
+
*/
|
|
807
|
+
using Func_void_AppendResult = std::function<void(const AppendResult& /* result */)>;
|
|
808
|
+
/**
|
|
809
|
+
* Wrapper class for a `std::function<void(const AppendResult& / * result * /)>`, this can be used from Swift.
|
|
810
|
+
*/
|
|
811
|
+
class Func_void_AppendResult_Wrapper final {
|
|
812
|
+
public:
|
|
813
|
+
explicit Func_void_AppendResult_Wrapper(std::function<void(const AppendResult& /* result */)>&& func): _function(std::make_unique<std::function<void(const AppendResult& /* result */)>>(std::move(func))) {}
|
|
814
|
+
inline void call(AppendResult result) const noexcept {
|
|
815
|
+
_function->operator()(result);
|
|
816
|
+
}
|
|
817
|
+
private:
|
|
818
|
+
std::unique_ptr<std::function<void(const AppendResult& /* result */)>> _function;
|
|
819
|
+
} SWIFT_NONCOPYABLE;
|
|
820
|
+
Func_void_AppendResult create_Func_void_AppendResult(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
821
|
+
inline Func_void_AppendResult_Wrapper wrap_Func_void_AppendResult(Func_void_AppendResult value) noexcept {
|
|
822
|
+
return Func_void_AppendResult_Wrapper(std::move(value));
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
// pragma MARK: std::optional<std::vector<std::string>>
|
|
826
|
+
/**
|
|
827
|
+
* Specialized version of `std::optional<std::vector<std::string>>`.
|
|
828
|
+
*/
|
|
829
|
+
using std__optional_std__vector_std__string__ = std::optional<std::vector<std::string>>;
|
|
830
|
+
inline std::optional<std::vector<std::string>> create_std__optional_std__vector_std__string__(const std::vector<std::string>& value) noexcept {
|
|
831
|
+
return std::optional<std::vector<std::string>>(value);
|
|
832
|
+
}
|
|
833
|
+
inline bool has_value_std__optional_std__vector_std__string__(const std::optional<std::vector<std::string>>& optional) noexcept {
|
|
834
|
+
return optional.has_value();
|
|
835
|
+
}
|
|
836
|
+
inline std::vector<std::string> get_std__optional_std__vector_std__string__(const std::optional<std::vector<std::string>>& optional) noexcept {
|
|
837
|
+
return optional.value();
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
// pragma MARK: std::optional<std::shared_ptr<ArrayBuffer>>
|
|
841
|
+
/**
|
|
842
|
+
* Specialized version of `std::optional<std::shared_ptr<ArrayBuffer>>`.
|
|
843
|
+
*/
|
|
844
|
+
using std__optional_std__shared_ptr_ArrayBuffer__ = std::optional<std::shared_ptr<ArrayBuffer>>;
|
|
845
|
+
inline std::optional<std::shared_ptr<ArrayBuffer>> create_std__optional_std__shared_ptr_ArrayBuffer__(const std::shared_ptr<ArrayBuffer>& value) noexcept {
|
|
846
|
+
return std::optional<std::shared_ptr<ArrayBuffer>>(value);
|
|
847
|
+
}
|
|
848
|
+
inline bool has_value_std__optional_std__shared_ptr_ArrayBuffer__(const std::optional<std::shared_ptr<ArrayBuffer>>& optional) noexcept {
|
|
849
|
+
return optional.has_value();
|
|
850
|
+
}
|
|
851
|
+
inline std::shared_ptr<ArrayBuffer> get_std__optional_std__shared_ptr_ArrayBuffer__(const std::optional<std::shared_ptr<ArrayBuffer>>& optional) noexcept {
|
|
852
|
+
return optional.value();
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
// pragma MARK: std::shared_ptr<Promise<SendMailResult>>
|
|
856
|
+
/**
|
|
857
|
+
* Specialized version of `std::shared_ptr<Promise<SendMailResult>>`.
|
|
858
|
+
*/
|
|
859
|
+
using std__shared_ptr_Promise_SendMailResult__ = std::shared_ptr<Promise<SendMailResult>>;
|
|
860
|
+
inline std::shared_ptr<Promise<SendMailResult>> create_std__shared_ptr_Promise_SendMailResult__() noexcept {
|
|
861
|
+
return Promise<SendMailResult>::create();
|
|
862
|
+
}
|
|
863
|
+
inline PromiseHolder<SendMailResult> wrap_std__shared_ptr_Promise_SendMailResult__(std::shared_ptr<Promise<SendMailResult>> promise) noexcept {
|
|
864
|
+
return PromiseHolder<SendMailResult>(std::move(promise));
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
// pragma MARK: std::function<void(const SendMailResult& /* result */)>
|
|
868
|
+
/**
|
|
869
|
+
* Specialized version of `std::function<void(const SendMailResult&)>`.
|
|
870
|
+
*/
|
|
871
|
+
using Func_void_SendMailResult = std::function<void(const SendMailResult& /* result */)>;
|
|
872
|
+
/**
|
|
873
|
+
* Wrapper class for a `std::function<void(const SendMailResult& / * result * /)>`, this can be used from Swift.
|
|
874
|
+
*/
|
|
875
|
+
class Func_void_SendMailResult_Wrapper final {
|
|
876
|
+
public:
|
|
877
|
+
explicit Func_void_SendMailResult_Wrapper(std::function<void(const SendMailResult& /* result */)>&& func): _function(std::make_unique<std::function<void(const SendMailResult& /* result */)>>(std::move(func))) {}
|
|
878
|
+
inline void call(SendMailResult result) const noexcept {
|
|
879
|
+
_function->operator()(result);
|
|
880
|
+
}
|
|
881
|
+
private:
|
|
882
|
+
std::unique_ptr<std::function<void(const SendMailResult& /* result */)>> _function;
|
|
883
|
+
} SWIFT_NONCOPYABLE;
|
|
884
|
+
Func_void_SendMailResult create_Func_void_SendMailResult(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
885
|
+
inline Func_void_SendMailResult_Wrapper wrap_Func_void_SendMailResult(Func_void_SendMailResult value) noexcept {
|
|
886
|
+
return Func_void_SendMailResult_Wrapper(std::move(value));
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
// pragma MARK: std::optional<std::vector<EmailAddress>>
|
|
890
|
+
/**
|
|
891
|
+
* Specialized version of `std::optional<std::vector<EmailAddress>>`.
|
|
892
|
+
*/
|
|
893
|
+
using std__optional_std__vector_EmailAddress__ = std::optional<std::vector<EmailAddress>>;
|
|
894
|
+
inline std::optional<std::vector<EmailAddress>> create_std__optional_std__vector_EmailAddress__(const std::vector<EmailAddress>& value) noexcept {
|
|
895
|
+
return std::optional<std::vector<EmailAddress>>(value);
|
|
896
|
+
}
|
|
897
|
+
inline bool has_value_std__optional_std__vector_EmailAddress__(const std::optional<std::vector<EmailAddress>>& optional) noexcept {
|
|
898
|
+
return optional.has_value();
|
|
899
|
+
}
|
|
900
|
+
inline std::vector<EmailAddress> get_std__optional_std__vector_EmailAddress__(const std::optional<std::vector<EmailAddress>>& optional) noexcept {
|
|
901
|
+
return optional.value();
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
// pragma MARK: std::vector<SmtpAttachment>
|
|
905
|
+
/**
|
|
906
|
+
* Specialized version of `std::vector<SmtpAttachment>`.
|
|
907
|
+
*/
|
|
908
|
+
using std__vector_SmtpAttachment_ = std::vector<SmtpAttachment>;
|
|
909
|
+
inline std::vector<SmtpAttachment> create_std__vector_SmtpAttachment_(size_t size) noexcept {
|
|
910
|
+
std::vector<SmtpAttachment> vector;
|
|
911
|
+
vector.reserve(size);
|
|
912
|
+
return vector;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
// pragma MARK: std::optional<std::vector<SmtpAttachment>>
|
|
916
|
+
/**
|
|
917
|
+
* Specialized version of `std::optional<std::vector<SmtpAttachment>>`.
|
|
918
|
+
*/
|
|
919
|
+
using std__optional_std__vector_SmtpAttachment__ = std::optional<std::vector<SmtpAttachment>>;
|
|
920
|
+
inline std::optional<std::vector<SmtpAttachment>> create_std__optional_std__vector_SmtpAttachment__(const std::vector<SmtpAttachment>& value) noexcept {
|
|
921
|
+
return std::optional<std::vector<SmtpAttachment>>(value);
|
|
922
|
+
}
|
|
923
|
+
inline bool has_value_std__optional_std__vector_SmtpAttachment__(const std::optional<std::vector<SmtpAttachment>>& optional) noexcept {
|
|
924
|
+
return optional.has_value();
|
|
925
|
+
}
|
|
926
|
+
inline std::vector<SmtpAttachment> get_std__optional_std__vector_SmtpAttachment__(const std::optional<std::vector<SmtpAttachment>>& optional) noexcept {
|
|
927
|
+
return optional.value();
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
// pragma MARK: std::optional<std::unordered_map<std::string, std::string>>
|
|
931
|
+
/**
|
|
932
|
+
* Specialized version of `std::optional<std::unordered_map<std::string, std::string>>`.
|
|
933
|
+
*/
|
|
934
|
+
using std__optional_std__unordered_map_std__string__std__string__ = std::optional<std::unordered_map<std::string, std::string>>;
|
|
935
|
+
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) noexcept {
|
|
936
|
+
return std::optional<std::unordered_map<std::string, std::string>>(value);
|
|
937
|
+
}
|
|
938
|
+
inline bool has_value_std__optional_std__unordered_map_std__string__std__string__(const std::optional<std::unordered_map<std::string, std::string>>& optional) noexcept {
|
|
939
|
+
return optional.has_value();
|
|
940
|
+
}
|
|
941
|
+
inline std::unordered_map<std::string, std::string> get_std__optional_std__unordered_map_std__string__std__string__(const std::optional<std::unordered_map<std::string, std::string>>& optional) noexcept {
|
|
942
|
+
return optional.value();
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
// pragma MARK: std::optional<EmailAddress>
|
|
946
|
+
/**
|
|
947
|
+
* Specialized version of `std::optional<EmailAddress>`.
|
|
948
|
+
*/
|
|
949
|
+
using std__optional_EmailAddress_ = std::optional<EmailAddress>;
|
|
950
|
+
inline std::optional<EmailAddress> create_std__optional_EmailAddress_(const EmailAddress& value) noexcept {
|
|
951
|
+
return std::optional<EmailAddress>(value);
|
|
952
|
+
}
|
|
953
|
+
inline bool has_value_std__optional_EmailAddress_(const std::optional<EmailAddress>& optional) noexcept {
|
|
954
|
+
return optional.has_value();
|
|
955
|
+
}
|
|
956
|
+
inline EmailAddress get_std__optional_EmailAddress_(const std::optional<EmailAddress>& optional) noexcept {
|
|
957
|
+
return optional.value();
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
// pragma MARK: std::shared_ptr<Promise<bool>>
|
|
961
|
+
/**
|
|
962
|
+
* Specialized version of `std::shared_ptr<Promise<bool>>`.
|
|
963
|
+
*/
|
|
964
|
+
using std__shared_ptr_Promise_bool__ = std::shared_ptr<Promise<bool>>;
|
|
965
|
+
inline std::shared_ptr<Promise<bool>> create_std__shared_ptr_Promise_bool__() noexcept {
|
|
966
|
+
return Promise<bool>::create();
|
|
967
|
+
}
|
|
968
|
+
inline PromiseHolder<bool> wrap_std__shared_ptr_Promise_bool__(std::shared_ptr<Promise<bool>> promise) noexcept {
|
|
969
|
+
return PromiseHolder<bool>(std::move(promise));
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
// pragma MARK: std::function<void(bool /* result */)>
|
|
973
|
+
/**
|
|
974
|
+
* Specialized version of `std::function<void(bool)>`.
|
|
975
|
+
*/
|
|
976
|
+
using Func_void_bool = std::function<void(bool /* result */)>;
|
|
977
|
+
/**
|
|
978
|
+
* Wrapper class for a `std::function<void(bool / * result * /)>`, this can be used from Swift.
|
|
979
|
+
*/
|
|
980
|
+
class Func_void_bool_Wrapper final {
|
|
981
|
+
public:
|
|
982
|
+
explicit Func_void_bool_Wrapper(std::function<void(bool /* result */)>&& func): _function(std::make_unique<std::function<void(bool /* result */)>>(std::move(func))) {}
|
|
983
|
+
inline void call(bool result) const noexcept {
|
|
984
|
+
_function->operator()(result);
|
|
985
|
+
}
|
|
986
|
+
private:
|
|
987
|
+
std::unique_ptr<std::function<void(bool /* result */)>> _function;
|
|
988
|
+
} SWIFT_NONCOPYABLE;
|
|
989
|
+
Func_void_bool create_Func_void_bool(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
990
|
+
inline Func_void_bool_Wrapper wrap_Func_void_bool(Func_void_bool value) noexcept {
|
|
991
|
+
return Func_void_bool_Wrapper(std::move(value));
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
// pragma MARK: std::shared_ptr<HybridEmailImapSmtpSpec>
|
|
995
|
+
/**
|
|
996
|
+
* Specialized version of `std::shared_ptr<HybridEmailImapSmtpSpec>`.
|
|
997
|
+
*/
|
|
998
|
+
using std__shared_ptr_HybridEmailImapSmtpSpec_ = std::shared_ptr<HybridEmailImapSmtpSpec>;
|
|
999
|
+
std::shared_ptr<HybridEmailImapSmtpSpec> create_std__shared_ptr_HybridEmailImapSmtpSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
1000
|
+
void* NON_NULL get_std__shared_ptr_HybridEmailImapSmtpSpec_(std__shared_ptr_HybridEmailImapSmtpSpec_ cppType);
|
|
1001
|
+
|
|
1002
|
+
// pragma MARK: std::weak_ptr<HybridEmailImapSmtpSpec>
|
|
1003
|
+
using std__weak_ptr_HybridEmailImapSmtpSpec_ = std::weak_ptr<HybridEmailImapSmtpSpec>;
|
|
1004
|
+
inline std__weak_ptr_HybridEmailImapSmtpSpec_ weakify_std__shared_ptr_HybridEmailImapSmtpSpec_(const std::shared_ptr<HybridEmailImapSmtpSpec>& strong) noexcept { return strong; }
|
|
1005
|
+
|
|
1006
|
+
// pragma MARK: Result<std::shared_ptr<Promise<ConnectionResult>>>
|
|
1007
|
+
using Result_std__shared_ptr_Promise_ConnectionResult___ = Result<std::shared_ptr<Promise<ConnectionResult>>>;
|
|
1008
|
+
inline Result_std__shared_ptr_Promise_ConnectionResult___ create_Result_std__shared_ptr_Promise_ConnectionResult___(const std::shared_ptr<Promise<ConnectionResult>>& value) noexcept {
|
|
1009
|
+
return Result<std::shared_ptr<Promise<ConnectionResult>>>::withValue(value);
|
|
1010
|
+
}
|
|
1011
|
+
inline Result_std__shared_ptr_Promise_ConnectionResult___ create_Result_std__shared_ptr_Promise_ConnectionResult___(const std::exception_ptr& error) noexcept {
|
|
1012
|
+
return Result<std::shared_ptr<Promise<ConnectionResult>>>::withError(error);
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
// pragma MARK: Result<std::shared_ptr<Promise<void>>>
|
|
1016
|
+
using Result_std__shared_ptr_Promise_void___ = Result<std::shared_ptr<Promise<void>>>;
|
|
1017
|
+
inline Result_std__shared_ptr_Promise_void___ create_Result_std__shared_ptr_Promise_void___(const std::shared_ptr<Promise<void>>& value) noexcept {
|
|
1018
|
+
return Result<std::shared_ptr<Promise<void>>>::withValue(value);
|
|
1019
|
+
}
|
|
1020
|
+
inline Result_std__shared_ptr_Promise_void___ create_Result_std__shared_ptr_Promise_void___(const std::exception_ptr& error) noexcept {
|
|
1021
|
+
return Result<std::shared_ptr<Promise<void>>>::withError(error);
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<MailboxListItem>>>>
|
|
1025
|
+
using Result_std__shared_ptr_Promise_std__vector_MailboxListItem____ = Result<std::shared_ptr<Promise<std::vector<MailboxListItem>>>>;
|
|
1026
|
+
inline Result_std__shared_ptr_Promise_std__vector_MailboxListItem____ create_Result_std__shared_ptr_Promise_std__vector_MailboxListItem____(const std::shared_ptr<Promise<std::vector<MailboxListItem>>>& value) noexcept {
|
|
1027
|
+
return Result<std::shared_ptr<Promise<std::vector<MailboxListItem>>>>::withValue(value);
|
|
1028
|
+
}
|
|
1029
|
+
inline Result_std__shared_ptr_Promise_std__vector_MailboxListItem____ create_Result_std__shared_ptr_Promise_std__vector_MailboxListItem____(const std::exception_ptr& error) noexcept {
|
|
1030
|
+
return Result<std::shared_ptr<Promise<std::vector<MailboxListItem>>>>::withError(error);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
// pragma MARK: Result<std::shared_ptr<Promise<MailboxInfo>>>
|
|
1034
|
+
using Result_std__shared_ptr_Promise_MailboxInfo___ = Result<std::shared_ptr<Promise<MailboxInfo>>>;
|
|
1035
|
+
inline Result_std__shared_ptr_Promise_MailboxInfo___ create_Result_std__shared_ptr_Promise_MailboxInfo___(const std::shared_ptr<Promise<MailboxInfo>>& value) noexcept {
|
|
1036
|
+
return Result<std::shared_ptr<Promise<MailboxInfo>>>::withValue(value);
|
|
1037
|
+
}
|
|
1038
|
+
inline Result_std__shared_ptr_Promise_MailboxInfo___ create_Result_std__shared_ptr_Promise_MailboxInfo___(const std::exception_ptr& error) noexcept {
|
|
1039
|
+
return Result<std::shared_ptr<Promise<MailboxInfo>>>::withError(error);
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<FolderInfo>>>>
|
|
1043
|
+
using Result_std__shared_ptr_Promise_std__vector_FolderInfo____ = Result<std::shared_ptr<Promise<std::vector<FolderInfo>>>>;
|
|
1044
|
+
inline Result_std__shared_ptr_Promise_std__vector_FolderInfo____ create_Result_std__shared_ptr_Promise_std__vector_FolderInfo____(const std::shared_ptr<Promise<std::vector<FolderInfo>>>& value) noexcept {
|
|
1045
|
+
return Result<std::shared_ptr<Promise<std::vector<FolderInfo>>>>::withValue(value);
|
|
1046
|
+
}
|
|
1047
|
+
inline Result_std__shared_ptr_Promise_std__vector_FolderInfo____ create_Result_std__shared_ptr_Promise_std__vector_FolderInfo____(const std::exception_ptr& error) noexcept {
|
|
1048
|
+
return Result<std::shared_ptr<Promise<std::vector<FolderInfo>>>>::withError(error);
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<EmailMessage>>>>
|
|
1052
|
+
using Result_std__shared_ptr_Promise_std__vector_EmailMessage____ = Result<std::shared_ptr<Promise<std::vector<EmailMessage>>>>;
|
|
1053
|
+
inline Result_std__shared_ptr_Promise_std__vector_EmailMessage____ create_Result_std__shared_ptr_Promise_std__vector_EmailMessage____(const std::shared_ptr<Promise<std::vector<EmailMessage>>>& value) noexcept {
|
|
1054
|
+
return Result<std::shared_ptr<Promise<std::vector<EmailMessage>>>>::withValue(value);
|
|
1055
|
+
}
|
|
1056
|
+
inline Result_std__shared_ptr_Promise_std__vector_EmailMessage____ create_Result_std__shared_ptr_Promise_std__vector_EmailMessage____(const std::exception_ptr& error) noexcept {
|
|
1057
|
+
return Result<std::shared_ptr<Promise<std::vector<EmailMessage>>>>::withError(error);
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::variant<nitro::NullType, EmailMessage>>>>
|
|
1061
|
+
using Result_std__shared_ptr_Promise_std__variant_nitro__NullType__EmailMessage____ = Result<std::shared_ptr<Promise<std::variant<nitro::NullType, EmailMessage>>>>;
|
|
1062
|
+
inline Result_std__shared_ptr_Promise_std__variant_nitro__NullType__EmailMessage____ create_Result_std__shared_ptr_Promise_std__variant_nitro__NullType__EmailMessage____(const std::shared_ptr<Promise<std::variant<nitro::NullType, EmailMessage>>>& value) noexcept {
|
|
1063
|
+
return Result<std::shared_ptr<Promise<std::variant<nitro::NullType, EmailMessage>>>>::withValue(value);
|
|
1064
|
+
}
|
|
1065
|
+
inline Result_std__shared_ptr_Promise_std__variant_nitro__NullType__EmailMessage____ create_Result_std__shared_ptr_Promise_std__variant_nitro__NullType__EmailMessage____(const std::exception_ptr& error) noexcept {
|
|
1066
|
+
return Result<std::shared_ptr<Promise<std::variant<nitro::NullType, EmailMessage>>>>::withError(error);
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
// pragma MARK: Result<std::shared_ptr<Promise<DeleteResult>>>
|
|
1070
|
+
using Result_std__shared_ptr_Promise_DeleteResult___ = Result<std::shared_ptr<Promise<DeleteResult>>>;
|
|
1071
|
+
inline Result_std__shared_ptr_Promise_DeleteResult___ create_Result_std__shared_ptr_Promise_DeleteResult___(const std::shared_ptr<Promise<DeleteResult>>& value) noexcept {
|
|
1072
|
+
return Result<std::shared_ptr<Promise<DeleteResult>>>::withValue(value);
|
|
1073
|
+
}
|
|
1074
|
+
inline Result_std__shared_ptr_Promise_DeleteResult___ create_Result_std__shared_ptr_Promise_DeleteResult___(const std::exception_ptr& error) noexcept {
|
|
1075
|
+
return Result<std::shared_ptr<Promise<DeleteResult>>>::withError(error);
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::variant<nitro::NullType, AttachmentInfo>>>>
|
|
1079
|
+
using Result_std__shared_ptr_Promise_std__variant_nitro__NullType__AttachmentInfo____ = Result<std::shared_ptr<Promise<std::variant<nitro::NullType, AttachmentInfo>>>>;
|
|
1080
|
+
inline Result_std__shared_ptr_Promise_std__variant_nitro__NullType__AttachmentInfo____ create_Result_std__shared_ptr_Promise_std__variant_nitro__NullType__AttachmentInfo____(const std::shared_ptr<Promise<std::variant<nitro::NullType, AttachmentInfo>>>& value) noexcept {
|
|
1081
|
+
return Result<std::shared_ptr<Promise<std::variant<nitro::NullType, AttachmentInfo>>>>::withValue(value);
|
|
1082
|
+
}
|
|
1083
|
+
inline Result_std__shared_ptr_Promise_std__variant_nitro__NullType__AttachmentInfo____ create_Result_std__shared_ptr_Promise_std__variant_nitro__NullType__AttachmentInfo____(const std::exception_ptr& error) noexcept {
|
|
1084
|
+
return Result<std::shared_ptr<Promise<std::variant<nitro::NullType, AttachmentInfo>>>>::withError(error);
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
// pragma MARK: Result<std::shared_ptr<Promise<std::vector<AttachmentInfo>>>>
|
|
1088
|
+
using Result_std__shared_ptr_Promise_std__vector_AttachmentInfo____ = Result<std::shared_ptr<Promise<std::vector<AttachmentInfo>>>>;
|
|
1089
|
+
inline Result_std__shared_ptr_Promise_std__vector_AttachmentInfo____ create_Result_std__shared_ptr_Promise_std__vector_AttachmentInfo____(const std::shared_ptr<Promise<std::vector<AttachmentInfo>>>& value) noexcept {
|
|
1090
|
+
return Result<std::shared_ptr<Promise<std::vector<AttachmentInfo>>>>::withValue(value);
|
|
1091
|
+
}
|
|
1092
|
+
inline Result_std__shared_ptr_Promise_std__vector_AttachmentInfo____ create_Result_std__shared_ptr_Promise_std__vector_AttachmentInfo____(const std::exception_ptr& error) noexcept {
|
|
1093
|
+
return Result<std::shared_ptr<Promise<std::vector<AttachmentInfo>>>>::withError(error);
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
// pragma MARK: Result<std::shared_ptr<Promise<QuotaInfo>>>
|
|
1097
|
+
using Result_std__shared_ptr_Promise_QuotaInfo___ = Result<std::shared_ptr<Promise<QuotaInfo>>>;
|
|
1098
|
+
inline Result_std__shared_ptr_Promise_QuotaInfo___ create_Result_std__shared_ptr_Promise_QuotaInfo___(const std::shared_ptr<Promise<QuotaInfo>>& value) noexcept {
|
|
1099
|
+
return Result<std::shared_ptr<Promise<QuotaInfo>>>::withValue(value);
|
|
1100
|
+
}
|
|
1101
|
+
inline Result_std__shared_ptr_Promise_QuotaInfo___ create_Result_std__shared_ptr_Promise_QuotaInfo___(const std::exception_ptr& error) noexcept {
|
|
1102
|
+
return Result<std::shared_ptr<Promise<QuotaInfo>>>::withError(error);
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
// pragma MARK: Result<std::shared_ptr<Promise<AppendResult>>>
|
|
1106
|
+
using Result_std__shared_ptr_Promise_AppendResult___ = Result<std::shared_ptr<Promise<AppendResult>>>;
|
|
1107
|
+
inline Result_std__shared_ptr_Promise_AppendResult___ create_Result_std__shared_ptr_Promise_AppendResult___(const std::shared_ptr<Promise<AppendResult>>& value) noexcept {
|
|
1108
|
+
return Result<std::shared_ptr<Promise<AppendResult>>>::withValue(value);
|
|
1109
|
+
}
|
|
1110
|
+
inline Result_std__shared_ptr_Promise_AppendResult___ create_Result_std__shared_ptr_Promise_AppendResult___(const std::exception_ptr& error) noexcept {
|
|
1111
|
+
return Result<std::shared_ptr<Promise<AppendResult>>>::withError(error);
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
// pragma MARK: Result<std::shared_ptr<Promise<SendMailResult>>>
|
|
1115
|
+
using Result_std__shared_ptr_Promise_SendMailResult___ = Result<std::shared_ptr<Promise<SendMailResult>>>;
|
|
1116
|
+
inline Result_std__shared_ptr_Promise_SendMailResult___ create_Result_std__shared_ptr_Promise_SendMailResult___(const std::shared_ptr<Promise<SendMailResult>>& value) noexcept {
|
|
1117
|
+
return Result<std::shared_ptr<Promise<SendMailResult>>>::withValue(value);
|
|
1118
|
+
}
|
|
1119
|
+
inline Result_std__shared_ptr_Promise_SendMailResult___ create_Result_std__shared_ptr_Promise_SendMailResult___(const std::exception_ptr& error) noexcept {
|
|
1120
|
+
return Result<std::shared_ptr<Promise<SendMailResult>>>::withError(error);
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
// pragma MARK: Result<std::shared_ptr<Promise<bool>>>
|
|
1124
|
+
using Result_std__shared_ptr_Promise_bool___ = Result<std::shared_ptr<Promise<bool>>>;
|
|
1125
|
+
inline Result_std__shared_ptr_Promise_bool___ create_Result_std__shared_ptr_Promise_bool___(const std::shared_ptr<Promise<bool>>& value) noexcept {
|
|
1126
|
+
return Result<std::shared_ptr<Promise<bool>>>::withValue(value);
|
|
1127
|
+
}
|
|
1128
|
+
inline Result_std__shared_ptr_Promise_bool___ create_Result_std__shared_ptr_Promise_bool___(const std::exception_ptr& error) noexcept {
|
|
1129
|
+
return Result<std::shared_ptr<Promise<bool>>>::withError(error);
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
} // namespace margelo::nitro::emailimapsmtp::bridge::swift
|