@onekeyfe/react-native-cloud-kit-module 3.0.81 → 3.0.85
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/nitrogen/generated/android/c++/JAccountInfoResult.hpp +2 -2
- package/nitrogen/generated/android/c++/JDeleteRecordParams.hpp +2 -2
- package/nitrogen/generated/android/c++/JFetchRecordParams.hpp +2 -2
- package/nitrogen/generated/android/c++/JHybridCloudKitModuleSpec.cpp +28 -26
- package/nitrogen/generated/android/c++/JHybridCloudKitModuleSpec.hpp +20 -22
- package/nitrogen/generated/android/c++/JQueryRecordsParams.hpp +2 -2
- package/nitrogen/generated/android/c++/JQueryRecordsResult.hpp +2 -2
- package/nitrogen/generated/android/c++/JRecordExistsParams.hpp +2 -2
- package/nitrogen/generated/android/c++/JRecordResult.hpp +2 -2
- package/nitrogen/generated/android/c++/JSaveRecordParams.hpp +2 -2
- package/nitrogen/generated/android/c++/JSaveRecordResult.hpp +2 -2
- package/nitrogen/generated/android/c++/JVariant_NullType_RecordResult.cpp +1 -1
- package/nitrogen/generated/android/c++/JVariant_NullType_RecordResult.hpp +6 -6
- package/nitrogen/generated/android/cloudkitmodule+autolinking.cmake +1 -1
- package/nitrogen/generated/android/cloudkitmodule+autolinking.gradle +1 -1
- package/nitrogen/generated/android/cloudkitmoduleOnLoad.cpp +27 -17
- package/nitrogen/generated/android/cloudkitmoduleOnLoad.hpp +14 -5
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/AccountInfoResult.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/DeleteRecordParams.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/FetchRecordParams.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/HybridCloudKitModuleSpec.kt +16 -19
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/QueryRecordsParams.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/QueryRecordsResult.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/RecordExistsParams.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/RecordResult.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/SaveRecordParams.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/SaveRecordResult.kt +2 -2
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/Variant_NullType_RecordResult.kt +1 -7
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/cloudkitmodule/cloudkitmoduleOnLoad.kt +1 -1
- package/nitrogen/generated/ios/CloudKitModule+autolinking.rb +2 -2
- package/nitrogen/generated/ios/CloudKitModule-Swift-Cxx-Bridge.cpp +1 -1
- package/nitrogen/generated/ios/CloudKitModule-Swift-Cxx-Bridge.hpp +3 -3
- package/nitrogen/generated/ios/CloudKitModule-Swift-Cxx-Umbrella.hpp +1 -1
- package/nitrogen/generated/ios/CloudKitModuleAutolinking.mm +1 -1
- package/nitrogen/generated/ios/CloudKitModuleAutolinking.swift +9 -8
- package/nitrogen/generated/ios/c++/HybridCloudKitModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridCloudKitModuleSpecSwift.hpp +7 -1
- package/nitrogen/generated/ios/swift/AccountInfoResult.swift +14 -39
- package/nitrogen/generated/ios/swift/DeleteRecordParams.swift +5 -18
- package/nitrogen/generated/ios/swift/FetchRecordParams.swift +5 -18
- package/nitrogen/generated/ios/swift/Func_void.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_AccountInfoResult.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_QueryRecordsResult.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_SaveRecordResult.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -2
- package/nitrogen/generated/ios/swift/Func_void_std__variant_nitro__NullType__RecordResult_.swift +1 -2
- package/nitrogen/generated/ios/swift/HybridCloudKitModuleSpec.swift +3 -4
- package/nitrogen/generated/ios/swift/HybridCloudKitModuleSpec_cxx.swift +9 -2
- package/nitrogen/generated/ios/swift/QueryRecordsParams.swift +3 -10
- package/nitrogen/generated/ios/swift/QueryRecordsResult.swift +3 -16
- package/nitrogen/generated/ios/swift/RecordExistsParams.swift +5 -18
- package/nitrogen/generated/ios/swift/RecordResult.swift +13 -50
- package/nitrogen/generated/ios/swift/SaveRecordParams.swift +9 -34
- package/nitrogen/generated/ios/swift/SaveRecordResult.swift +5 -18
- package/nitrogen/generated/ios/swift/Variant_NullType_RecordResult.swift +1 -1
- package/nitrogen/generated/shared/c++/AccountInfoResult.hpp +19 -11
- package/nitrogen/generated/shared/c++/DeleteRecordParams.hpp +16 -8
- package/nitrogen/generated/shared/c++/FetchRecordParams.hpp +16 -8
- package/nitrogen/generated/shared/c++/HybridCloudKitModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCloudKitModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/QueryRecordsParams.hpp +13 -5
- package/nitrogen/generated/shared/c++/QueryRecordsResult.hpp +13 -5
- package/nitrogen/generated/shared/c++/RecordExistsParams.hpp +16 -8
- package/nitrogen/generated/shared/c++/RecordResult.hpp +28 -20
- package/nitrogen/generated/shared/c++/SaveRecordParams.hpp +22 -14
- package/nitrogen/generated/shared/c++/SaveRecordResult.hpp +16 -8
- package/package.json +4 -4
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// QueryRecordsParams.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -23,14 +22,8 @@ public extension QueryRecordsParams {
|
|
|
23
22
|
self.init(std.string(recordType))
|
|
24
23
|
}
|
|
25
24
|
|
|
25
|
+
@inline(__always)
|
|
26
26
|
var recordType: String {
|
|
27
|
-
|
|
28
|
-
get {
|
|
29
|
-
return String(self.__recordType)
|
|
30
|
-
}
|
|
31
|
-
@inline(__always)
|
|
32
|
-
set {
|
|
33
|
-
self.__recordType = std.string(newValue)
|
|
34
|
-
}
|
|
27
|
+
return String(self.__recordType)
|
|
35
28
|
}
|
|
36
29
|
}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// QueryRecordsResult.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -29,20 +28,8 @@ public extension QueryRecordsResult {
|
|
|
29
28
|
}())
|
|
30
29
|
}
|
|
31
30
|
|
|
31
|
+
@inline(__always)
|
|
32
32
|
var records: [RecordResult] {
|
|
33
|
-
|
|
34
|
-
get {
|
|
35
|
-
return self.__records.map({ __item in __item })
|
|
36
|
-
}
|
|
37
|
-
@inline(__always)
|
|
38
|
-
set {
|
|
39
|
-
self.__records = { () -> bridge.std__vector_RecordResult_ in
|
|
40
|
-
var __vector = bridge.create_std__vector_RecordResult_(newValue.count)
|
|
41
|
-
for __item in newValue {
|
|
42
|
-
__vector.push_back(__item)
|
|
43
|
-
}
|
|
44
|
-
return __vector
|
|
45
|
-
}()
|
|
46
|
-
}
|
|
33
|
+
return self.__records.map({ __item in __item })
|
|
47
34
|
}
|
|
48
35
|
}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// RecordExistsParams.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -23,25 +22,13 @@ public extension RecordExistsParams {
|
|
|
23
22
|
self.init(std.string(recordType), std.string(recordID))
|
|
24
23
|
}
|
|
25
24
|
|
|
25
|
+
@inline(__always)
|
|
26
26
|
var recordType: String {
|
|
27
|
-
|
|
28
|
-
get {
|
|
29
|
-
return String(self.__recordType)
|
|
30
|
-
}
|
|
31
|
-
@inline(__always)
|
|
32
|
-
set {
|
|
33
|
-
self.__recordType = std.string(newValue)
|
|
34
|
-
}
|
|
27
|
+
return String(self.__recordType)
|
|
35
28
|
}
|
|
36
29
|
|
|
30
|
+
@inline(__always)
|
|
37
31
|
var recordID: String {
|
|
38
|
-
|
|
39
|
-
get {
|
|
40
|
-
return String(self.__recordID)
|
|
41
|
-
}
|
|
42
|
-
@inline(__always)
|
|
43
|
-
set {
|
|
44
|
-
self.__recordID = std.string(newValue)
|
|
45
|
-
}
|
|
32
|
+
return String(self.__recordID)
|
|
46
33
|
}
|
|
47
34
|
}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// RecordResult.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -23,69 +22,33 @@ public extension RecordResult {
|
|
|
23
22
|
self.init(std.string(recordID), std.string(recordType), std.string(data), std.string(meta), createdAt, modifiedAt)
|
|
24
23
|
}
|
|
25
24
|
|
|
25
|
+
@inline(__always)
|
|
26
26
|
var recordID: String {
|
|
27
|
-
|
|
28
|
-
get {
|
|
29
|
-
return String(self.__recordID)
|
|
30
|
-
}
|
|
31
|
-
@inline(__always)
|
|
32
|
-
set {
|
|
33
|
-
self.__recordID = std.string(newValue)
|
|
34
|
-
}
|
|
27
|
+
return String(self.__recordID)
|
|
35
28
|
}
|
|
36
29
|
|
|
30
|
+
@inline(__always)
|
|
37
31
|
var recordType: String {
|
|
38
|
-
|
|
39
|
-
get {
|
|
40
|
-
return String(self.__recordType)
|
|
41
|
-
}
|
|
42
|
-
@inline(__always)
|
|
43
|
-
set {
|
|
44
|
-
self.__recordType = std.string(newValue)
|
|
45
|
-
}
|
|
32
|
+
return String(self.__recordType)
|
|
46
33
|
}
|
|
47
34
|
|
|
35
|
+
@inline(__always)
|
|
48
36
|
var data: String {
|
|
49
|
-
|
|
50
|
-
get {
|
|
51
|
-
return String(self.__data)
|
|
52
|
-
}
|
|
53
|
-
@inline(__always)
|
|
54
|
-
set {
|
|
55
|
-
self.__data = std.string(newValue)
|
|
56
|
-
}
|
|
37
|
+
return String(self.__data)
|
|
57
38
|
}
|
|
58
39
|
|
|
40
|
+
@inline(__always)
|
|
59
41
|
var meta: String {
|
|
60
|
-
|
|
61
|
-
get {
|
|
62
|
-
return String(self.__meta)
|
|
63
|
-
}
|
|
64
|
-
@inline(__always)
|
|
65
|
-
set {
|
|
66
|
-
self.__meta = std.string(newValue)
|
|
67
|
-
}
|
|
42
|
+
return String(self.__meta)
|
|
68
43
|
}
|
|
69
44
|
|
|
45
|
+
@inline(__always)
|
|
70
46
|
var createdAt: Double {
|
|
71
|
-
|
|
72
|
-
get {
|
|
73
|
-
return self.__createdAt
|
|
74
|
-
}
|
|
75
|
-
@inline(__always)
|
|
76
|
-
set {
|
|
77
|
-
self.__createdAt = newValue
|
|
78
|
-
}
|
|
47
|
+
return self.__createdAt
|
|
79
48
|
}
|
|
80
49
|
|
|
50
|
+
@inline(__always)
|
|
81
51
|
var modifiedAt: Double {
|
|
82
|
-
|
|
83
|
-
get {
|
|
84
|
-
return self.__modifiedAt
|
|
85
|
-
}
|
|
86
|
-
@inline(__always)
|
|
87
|
-
set {
|
|
88
|
-
self.__modifiedAt = newValue
|
|
89
|
-
}
|
|
52
|
+
return self.__modifiedAt
|
|
90
53
|
}
|
|
91
54
|
}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// SaveRecordParams.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -23,47 +22,23 @@ public extension SaveRecordParams {
|
|
|
23
22
|
self.init(std.string(recordType), std.string(recordID), std.string(data), std.string(meta))
|
|
24
23
|
}
|
|
25
24
|
|
|
25
|
+
@inline(__always)
|
|
26
26
|
var recordType: String {
|
|
27
|
-
|
|
28
|
-
get {
|
|
29
|
-
return String(self.__recordType)
|
|
30
|
-
}
|
|
31
|
-
@inline(__always)
|
|
32
|
-
set {
|
|
33
|
-
self.__recordType = std.string(newValue)
|
|
34
|
-
}
|
|
27
|
+
return String(self.__recordType)
|
|
35
28
|
}
|
|
36
29
|
|
|
30
|
+
@inline(__always)
|
|
37
31
|
var recordID: String {
|
|
38
|
-
|
|
39
|
-
get {
|
|
40
|
-
return String(self.__recordID)
|
|
41
|
-
}
|
|
42
|
-
@inline(__always)
|
|
43
|
-
set {
|
|
44
|
-
self.__recordID = std.string(newValue)
|
|
45
|
-
}
|
|
32
|
+
return String(self.__recordID)
|
|
46
33
|
}
|
|
47
34
|
|
|
35
|
+
@inline(__always)
|
|
48
36
|
var data: String {
|
|
49
|
-
|
|
50
|
-
get {
|
|
51
|
-
return String(self.__data)
|
|
52
|
-
}
|
|
53
|
-
@inline(__always)
|
|
54
|
-
set {
|
|
55
|
-
self.__data = std.string(newValue)
|
|
56
|
-
}
|
|
37
|
+
return String(self.__data)
|
|
57
38
|
}
|
|
58
39
|
|
|
40
|
+
@inline(__always)
|
|
59
41
|
var meta: String {
|
|
60
|
-
|
|
61
|
-
get {
|
|
62
|
-
return String(self.__meta)
|
|
63
|
-
}
|
|
64
|
-
@inline(__always)
|
|
65
|
-
set {
|
|
66
|
-
self.__meta = std.string(newValue)
|
|
67
|
-
}
|
|
42
|
+
return String(self.__meta)
|
|
68
43
|
}
|
|
69
44
|
}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
/// SaveRecordResult.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
|
-
import Foundation
|
|
9
8
|
import NitroModules
|
|
10
9
|
|
|
11
10
|
/**
|
|
@@ -23,25 +22,13 @@ public extension SaveRecordResult {
|
|
|
23
22
|
self.init(std.string(recordID), createdAt)
|
|
24
23
|
}
|
|
25
24
|
|
|
25
|
+
@inline(__always)
|
|
26
26
|
var recordID: String {
|
|
27
|
-
|
|
28
|
-
get {
|
|
29
|
-
return String(self.__recordID)
|
|
30
|
-
}
|
|
31
|
-
@inline(__always)
|
|
32
|
-
set {
|
|
33
|
-
self.__recordID = std.string(newValue)
|
|
34
|
-
}
|
|
27
|
+
return String(self.__recordID)
|
|
35
28
|
}
|
|
36
29
|
|
|
30
|
+
@inline(__always)
|
|
37
31
|
var createdAt: Double {
|
|
38
|
-
|
|
39
|
-
get {
|
|
40
|
-
return self.__createdAt
|
|
41
|
-
}
|
|
42
|
-
@inline(__always)
|
|
43
|
-
set {
|
|
44
|
-
self.__createdAt = newValue
|
|
45
|
-
}
|
|
32
|
+
return self.__createdAt
|
|
46
33
|
}
|
|
47
34
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// AccountInfoResult.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
|
|
@@ -33,7 +38,7 @@ namespace margelo::nitro::cloudkitmodule {
|
|
|
33
38
|
/**
|
|
34
39
|
* A struct which can be represented as a JavaScript object (AccountInfoResult).
|
|
35
40
|
*/
|
|
36
|
-
struct AccountInfoResult {
|
|
41
|
+
struct AccountInfoResult final {
|
|
37
42
|
public:
|
|
38
43
|
double status SWIFT_PRIVATE;
|
|
39
44
|
std::string statusName SWIFT_PRIVATE;
|
|
@@ -42,6 +47,9 @@ namespace margelo::nitro::cloudkitmodule {
|
|
|
42
47
|
public:
|
|
43
48
|
AccountInfoResult() = default;
|
|
44
49
|
explicit AccountInfoResult(double status, std::string statusName, std::optional<std::string> containerUserId): status(status), statusName(statusName), containerUserId(containerUserId) {}
|
|
50
|
+
|
|
51
|
+
public:
|
|
52
|
+
friend bool operator==(const AccountInfoResult& lhs, const AccountInfoResult& rhs) = default;
|
|
45
53
|
};
|
|
46
54
|
|
|
47
55
|
} // namespace margelo::nitro::cloudkitmodule
|
|
@@ -54,16 +62,16 @@ namespace margelo::nitro {
|
|
|
54
62
|
static inline margelo::nitro::cloudkitmodule::AccountInfoResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
55
63
|
jsi::Object obj = arg.asObject(runtime);
|
|
56
64
|
return margelo::nitro::cloudkitmodule::AccountInfoResult(
|
|
57
|
-
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, "status")),
|
|
58
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "statusName")),
|
|
59
|
-
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, "containerUserId"))
|
|
65
|
+
JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "status"))),
|
|
66
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "statusName"))),
|
|
67
|
+
JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "containerUserId")))
|
|
60
68
|
);
|
|
61
69
|
}
|
|
62
70
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::cloudkitmodule::AccountInfoResult& arg) {
|
|
63
71
|
jsi::Object obj(runtime);
|
|
64
|
-
obj.setProperty(runtime, "status", JSIConverter<double>::toJSI(runtime, arg.status));
|
|
65
|
-
obj.setProperty(runtime, "statusName", JSIConverter<std::string>::toJSI(runtime, arg.statusName));
|
|
66
|
-
obj.setProperty(runtime, "containerUserId", JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.containerUserId));
|
|
72
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "status"), JSIConverter<double>::toJSI(runtime, arg.status));
|
|
73
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "statusName"), JSIConverter<std::string>::toJSI(runtime, arg.statusName));
|
|
74
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "containerUserId"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.containerUserId));
|
|
67
75
|
return obj;
|
|
68
76
|
}
|
|
69
77
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -74,9 +82,9 @@ namespace margelo::nitro {
|
|
|
74
82
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
75
83
|
return false;
|
|
76
84
|
}
|
|
77
|
-
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, "status"))) return false;
|
|
78
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "statusName"))) return false;
|
|
79
|
-
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, "containerUserId"))) return false;
|
|
85
|
+
if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "status")))) return false;
|
|
86
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "statusName")))) return false;
|
|
87
|
+
if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "containerUserId")))) return false;
|
|
80
88
|
return true;
|
|
81
89
|
}
|
|
82
90
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// DeleteRecordParams.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
|
|
@@ -32,7 +37,7 @@ namespace margelo::nitro::cloudkitmodule {
|
|
|
32
37
|
/**
|
|
33
38
|
* A struct which can be represented as a JavaScript object (DeleteRecordParams).
|
|
34
39
|
*/
|
|
35
|
-
struct DeleteRecordParams {
|
|
40
|
+
struct DeleteRecordParams final {
|
|
36
41
|
public:
|
|
37
42
|
std::string recordType SWIFT_PRIVATE;
|
|
38
43
|
std::string recordID SWIFT_PRIVATE;
|
|
@@ -40,6 +45,9 @@ namespace margelo::nitro::cloudkitmodule {
|
|
|
40
45
|
public:
|
|
41
46
|
DeleteRecordParams() = default;
|
|
42
47
|
explicit DeleteRecordParams(std::string recordType, std::string recordID): recordType(recordType), recordID(recordID) {}
|
|
48
|
+
|
|
49
|
+
public:
|
|
50
|
+
friend bool operator==(const DeleteRecordParams& lhs, const DeleteRecordParams& rhs) = default;
|
|
43
51
|
};
|
|
44
52
|
|
|
45
53
|
} // namespace margelo::nitro::cloudkitmodule
|
|
@@ -52,14 +60,14 @@ namespace margelo::nitro {
|
|
|
52
60
|
static inline margelo::nitro::cloudkitmodule::DeleteRecordParams fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
53
61
|
jsi::Object obj = arg.asObject(runtime);
|
|
54
62
|
return margelo::nitro::cloudkitmodule::DeleteRecordParams(
|
|
55
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "recordType")),
|
|
56
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "recordID"))
|
|
63
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "recordType"))),
|
|
64
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "recordID")))
|
|
57
65
|
);
|
|
58
66
|
}
|
|
59
67
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::cloudkitmodule::DeleteRecordParams& arg) {
|
|
60
68
|
jsi::Object obj(runtime);
|
|
61
|
-
obj.setProperty(runtime, "recordType", JSIConverter<std::string>::toJSI(runtime, arg.recordType));
|
|
62
|
-
obj.setProperty(runtime, "recordID", JSIConverter<std::string>::toJSI(runtime, arg.recordID));
|
|
69
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "recordType"), JSIConverter<std::string>::toJSI(runtime, arg.recordType));
|
|
70
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "recordID"), JSIConverter<std::string>::toJSI(runtime, arg.recordID));
|
|
63
71
|
return obj;
|
|
64
72
|
}
|
|
65
73
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -70,8 +78,8 @@ namespace margelo::nitro {
|
|
|
70
78
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
71
79
|
return false;
|
|
72
80
|
}
|
|
73
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "recordType"))) return false;
|
|
74
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "recordID"))) return false;
|
|
81
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "recordType")))) return false;
|
|
82
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "recordID")))) return false;
|
|
75
83
|
return true;
|
|
76
84
|
}
|
|
77
85
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// FetchRecordParams.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
|
|
@@ -32,7 +37,7 @@ namespace margelo::nitro::cloudkitmodule {
|
|
|
32
37
|
/**
|
|
33
38
|
* A struct which can be represented as a JavaScript object (FetchRecordParams).
|
|
34
39
|
*/
|
|
35
|
-
struct FetchRecordParams {
|
|
40
|
+
struct FetchRecordParams final {
|
|
36
41
|
public:
|
|
37
42
|
std::string recordType SWIFT_PRIVATE;
|
|
38
43
|
std::string recordID SWIFT_PRIVATE;
|
|
@@ -40,6 +45,9 @@ namespace margelo::nitro::cloudkitmodule {
|
|
|
40
45
|
public:
|
|
41
46
|
FetchRecordParams() = default;
|
|
42
47
|
explicit FetchRecordParams(std::string recordType, std::string recordID): recordType(recordType), recordID(recordID) {}
|
|
48
|
+
|
|
49
|
+
public:
|
|
50
|
+
friend bool operator==(const FetchRecordParams& lhs, const FetchRecordParams& rhs) = default;
|
|
43
51
|
};
|
|
44
52
|
|
|
45
53
|
} // namespace margelo::nitro::cloudkitmodule
|
|
@@ -52,14 +60,14 @@ namespace margelo::nitro {
|
|
|
52
60
|
static inline margelo::nitro::cloudkitmodule::FetchRecordParams fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
53
61
|
jsi::Object obj = arg.asObject(runtime);
|
|
54
62
|
return margelo::nitro::cloudkitmodule::FetchRecordParams(
|
|
55
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "recordType")),
|
|
56
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "recordID"))
|
|
63
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "recordType"))),
|
|
64
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "recordID")))
|
|
57
65
|
);
|
|
58
66
|
}
|
|
59
67
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::cloudkitmodule::FetchRecordParams& arg) {
|
|
60
68
|
jsi::Object obj(runtime);
|
|
61
|
-
obj.setProperty(runtime, "recordType", JSIConverter<std::string>::toJSI(runtime, arg.recordType));
|
|
62
|
-
obj.setProperty(runtime, "recordID", JSIConverter<std::string>::toJSI(runtime, arg.recordID));
|
|
69
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "recordType"), JSIConverter<std::string>::toJSI(runtime, arg.recordType));
|
|
70
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "recordID"), JSIConverter<std::string>::toJSI(runtime, arg.recordID));
|
|
63
71
|
return obj;
|
|
64
72
|
}
|
|
65
73
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -70,8 +78,8 @@ namespace margelo::nitro {
|
|
|
70
78
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
71
79
|
return false;
|
|
72
80
|
}
|
|
73
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "recordType"))) return false;
|
|
74
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "recordID"))) return false;
|
|
81
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "recordType")))) return false;
|
|
82
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "recordID")))) return false;
|
|
75
83
|
return true;
|
|
76
84
|
}
|
|
77
85
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridCloudKitModuleSpec.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridCloudKitModuleSpec.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// QueryRecordsParams.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
25
30
|
|
|
26
31
|
|
|
27
32
|
|
|
@@ -32,13 +37,16 @@ namespace margelo::nitro::cloudkitmodule {
|
|
|
32
37
|
/**
|
|
33
38
|
* A struct which can be represented as a JavaScript object (QueryRecordsParams).
|
|
34
39
|
*/
|
|
35
|
-
struct QueryRecordsParams {
|
|
40
|
+
struct QueryRecordsParams final {
|
|
36
41
|
public:
|
|
37
42
|
std::string recordType SWIFT_PRIVATE;
|
|
38
43
|
|
|
39
44
|
public:
|
|
40
45
|
QueryRecordsParams() = default;
|
|
41
46
|
explicit QueryRecordsParams(std::string recordType): recordType(recordType) {}
|
|
47
|
+
|
|
48
|
+
public:
|
|
49
|
+
friend bool operator==(const QueryRecordsParams& lhs, const QueryRecordsParams& rhs) = default;
|
|
42
50
|
};
|
|
43
51
|
|
|
44
52
|
} // namespace margelo::nitro::cloudkitmodule
|
|
@@ -51,12 +59,12 @@ namespace margelo::nitro {
|
|
|
51
59
|
static inline margelo::nitro::cloudkitmodule::QueryRecordsParams fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
52
60
|
jsi::Object obj = arg.asObject(runtime);
|
|
53
61
|
return margelo::nitro::cloudkitmodule::QueryRecordsParams(
|
|
54
|
-
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, "recordType"))
|
|
62
|
+
JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "recordType")))
|
|
55
63
|
);
|
|
56
64
|
}
|
|
57
65
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::cloudkitmodule::QueryRecordsParams& arg) {
|
|
58
66
|
jsi::Object obj(runtime);
|
|
59
|
-
obj.setProperty(runtime, "recordType", JSIConverter<std::string>::toJSI(runtime, arg.recordType));
|
|
67
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "recordType"), JSIConverter<std::string>::toJSI(runtime, arg.recordType));
|
|
60
68
|
return obj;
|
|
61
69
|
}
|
|
62
70
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -67,7 +75,7 @@ namespace margelo::nitro {
|
|
|
67
75
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
68
76
|
return false;
|
|
69
77
|
}
|
|
70
|
-
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, "recordType"))) return false;
|
|
78
|
+
if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "recordType")))) return false;
|
|
71
79
|
return true;
|
|
72
80
|
}
|
|
73
81
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// QueryRecordsResult.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
#else
|
|
23
23
|
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
24
24
|
#endif
|
|
25
|
+
#if __has_include(<NitroModules/PropNameIDCache.hpp>)
|
|
26
|
+
#include <NitroModules/PropNameIDCache.hpp>
|
|
27
|
+
#else
|
|
28
|
+
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
|
|
29
|
+
#endif
|
|
25
30
|
|
|
26
31
|
// Forward declaration of `RecordResult` to properly resolve imports.
|
|
27
32
|
namespace margelo::nitro::cloudkitmodule { struct RecordResult; }
|
|
@@ -34,13 +39,16 @@ namespace margelo::nitro::cloudkitmodule {
|
|
|
34
39
|
/**
|
|
35
40
|
* A struct which can be represented as a JavaScript object (QueryRecordsResult).
|
|
36
41
|
*/
|
|
37
|
-
struct QueryRecordsResult {
|
|
42
|
+
struct QueryRecordsResult final {
|
|
38
43
|
public:
|
|
39
44
|
std::vector<RecordResult> records SWIFT_PRIVATE;
|
|
40
45
|
|
|
41
46
|
public:
|
|
42
47
|
QueryRecordsResult() = default;
|
|
43
48
|
explicit QueryRecordsResult(std::vector<RecordResult> records): records(records) {}
|
|
49
|
+
|
|
50
|
+
public:
|
|
51
|
+
friend bool operator==(const QueryRecordsResult& lhs, const QueryRecordsResult& rhs) = default;
|
|
44
52
|
};
|
|
45
53
|
|
|
46
54
|
} // namespace margelo::nitro::cloudkitmodule
|
|
@@ -53,12 +61,12 @@ namespace margelo::nitro {
|
|
|
53
61
|
static inline margelo::nitro::cloudkitmodule::QueryRecordsResult fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
|
|
54
62
|
jsi::Object obj = arg.asObject(runtime);
|
|
55
63
|
return margelo::nitro::cloudkitmodule::QueryRecordsResult(
|
|
56
|
-
JSIConverter<std::vector<margelo::nitro::cloudkitmodule::RecordResult>>::fromJSI(runtime, obj.getProperty(runtime, "records"))
|
|
64
|
+
JSIConverter<std::vector<margelo::nitro::cloudkitmodule::RecordResult>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "records")))
|
|
57
65
|
);
|
|
58
66
|
}
|
|
59
67
|
static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::cloudkitmodule::QueryRecordsResult& arg) {
|
|
60
68
|
jsi::Object obj(runtime);
|
|
61
|
-
obj.setProperty(runtime, "records", JSIConverter<std::vector<margelo::nitro::cloudkitmodule::RecordResult>>::toJSI(runtime, arg.records));
|
|
69
|
+
obj.setProperty(runtime, PropNameIDCache::get(runtime, "records"), JSIConverter<std::vector<margelo::nitro::cloudkitmodule::RecordResult>>::toJSI(runtime, arg.records));
|
|
62
70
|
return obj;
|
|
63
71
|
}
|
|
64
72
|
static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
|
|
@@ -69,7 +77,7 @@ namespace margelo::nitro {
|
|
|
69
77
|
if (!nitro::isPlainObject(runtime, obj)) {
|
|
70
78
|
return false;
|
|
71
79
|
}
|
|
72
|
-
if (!JSIConverter<std::vector<margelo::nitro::cloudkitmodule::RecordResult>>::canConvert(runtime, obj.getProperty(runtime, "records"))) return false;
|
|
80
|
+
if (!JSIConverter<std::vector<margelo::nitro::cloudkitmodule::RecordResult>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "records")))) return false;
|
|
73
81
|
return true;
|
|
74
82
|
}
|
|
75
83
|
};
|