@pensasystems/pensa-react-native 0.1.0-beta-7 → 0.1.0-beta-8
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.
|
@@ -41,8 +41,10 @@ RCT_EXTERN_METHOD(fetchScanStatuses:(NSArray *)scanIds
|
|
|
41
41
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
42
42
|
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
43
43
|
|
|
44
|
+
|
|
44
45
|
RCT_EXTERN_METHOD(fetchOnDemandReports:(nonnull NSNumber *)scanId
|
|
45
46
|
projectId:(nullable NSNumber *)projectId
|
|
47
|
+
reportType:(nullable NSString *)reportType
|
|
46
48
|
withResolver:(RCTPromiseResolveBlock)resolve
|
|
47
49
|
withRejecter:(RCTPromiseRejectBlock)reject)
|
|
48
50
|
|
|
@@ -161,14 +161,14 @@ class PensaSdkReactNative: NSObject {
|
|
|
161
161
|
)
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
164
|
+
@objc(fetchOnDemandReports:projectId:reportType:withResolver:withRejecter:)
|
|
165
|
+
func fetchOnDemandReports(
|
|
166
|
+
scanId: NSNumber,
|
|
167
|
+
projectId: NSNumber?,
|
|
168
|
+
reportType: NSString?,
|
|
169
|
+
resolve: @escaping RCTPromiseResolveBlock,
|
|
170
|
+
reject: @escaping RCTPromiseRejectBlock
|
|
171
|
+
) {
|
|
172
172
|
|
|
173
173
|
let typeString = reportType as String? ?? "ITEMS_SEEN"
|
|
174
174
|
let type = PensaReportType(rawValue: typeString) ?? .itemsSeen
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pensasystems/pensa-react-native",
|
|
3
|
-
"version": "0.1.0-beta-
|
|
3
|
+
"version": "0.1.0-beta-8",
|
|
4
4
|
"description": "The Pensa Mobile App SDK is a developer toolkit designed to simplify adding Pensa’s capabilities to your mobile applications. It provides pre-built libraries, tools, and APIs to accelerate development and integration, offering streamlined SDK integration, easy initialization, and comprehensive functionality. With the Pensa SDK, you can enhance your app’s features or seamlessly integrate with other services for a cohesive user experience.",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/module/index.js",
|