@thegrizzlylabs/react-native-genius-scan 5.0.0-beta2 → 5.0.0-beta3

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.
Files changed (24) hide show
  1. package/android/build.gradle +1 -1
  2. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/GSSDK +0 -0
  3. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKPDFGeneratorError.h +25 -0
  4. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSKScanFlowStructuredData.h +5 -1
  5. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Headers/GSSDK-Swift.h +96 -1
  6. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Info.plist +0 -0
  7. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.abi.json +8382 -5566
  8. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +59 -0
  9. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  10. package/ios/GSSDK/GSSDK.xcframework/ios-arm64/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios.swiftinterface +59 -0
  11. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/GSSDK +0 -0
  12. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKPDFGeneratorError.h +25 -0
  13. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSKScanFlowStructuredData.h +5 -1
  14. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Headers/GSSDK-Swift.h +192 -2
  15. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Info.plist +0 -0
  16. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +8382 -5566
  17. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +59 -0
  18. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  19. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +59 -0
  20. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +8382 -5566
  21. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +59 -0
  22. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  23. package/ios/GSSDK/GSSDK.xcframework/ios-arm64_x86_64-simulator/GSSDK.framework/Modules/GSSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +59 -0
  24. package/package.json +1 -1
@@ -41,5 +41,5 @@ rootProject.allprojects {
41
41
 
42
42
  dependencies {
43
43
  implementation 'com.facebook.react:react-native:+'
44
- implementation 'com.geniusscansdk:gssdk:5.0.0-beta2'
44
+ implementation 'com.geniusscansdk:gssdk:5.0.0-beta3'
45
45
  }
@@ -0,0 +1,25 @@
1
+ //
2
+ // GSKPDFGeneratorError.h
3
+ // GSSDK
4
+ //
5
+ // Created by Bruno Virlet on 08/02/2024.
6
+ // Copyright © 2024 The Grizzly Labs. All rights reserved.
7
+ //
8
+
9
+ #ifndef GSKPDFGeneratorError_h
10
+ #define GSKPDFGeneratorError_h
11
+
12
+ #import <Foundation/Foundation.h>
13
+
14
+ typedef NS_CLOSED_ENUM(NSInteger, GSKPDFGeneratorError)
15
+ {
16
+ GSKPDFGeneratorErrorSuccess,
17
+ GSKPDFGeneratorErrorInternal,
18
+ GSKPDFGeneratorErrorFileNotFound,
19
+ GSKPDFGeneratorErrorInvalidPassword,
20
+ GSKPDFGeneratorErrorInvalidPageSize,
21
+ GSKPDFGeneratorErrorProcessorError,
22
+ GSKPDFGeneratorErrorInvalidInput,
23
+ };
24
+
25
+ #endif /* GSKPDFGeneratorError_h */
@@ -7,7 +7,11 @@
7
7
  typedef NS_OPTIONS(NSUInteger, GSKScanFlowStructuredData) {
8
8
  GSKScanFlowStructuredDataNone = 0,
9
9
  /// To scan IBAN and BIC/SWIFT codes
10
- GSKScanFlowStructuredDataBankDetails = 1 << 0
10
+ GSKScanFlowStructuredDataBankDetails = 1 << 0,
11
+ /// To scan business card information
12
+ GSKScanFlowStructuredDataBusinessCard = 1 << 1,
13
+ /// To scan receipt/invoice information
14
+ GSKScanFlowStructuredDataReceipt = 1 << 2
11
15
  };
12
16
 
13
17
  #endif
@@ -511,6 +511,15 @@ SWIFT_CLASS("_TtC5GSSDK10GSKPDFSize")
511
511
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
512
512
  @end
513
513
 
514
+ typedef SWIFT_ENUM(NSInteger, GSKReceiptCategory, open) {
515
+ GSKReceiptCategoryGas = 0,
516
+ GSKReceiptCategoryTransportation = 1,
517
+ GSKReceiptCategoryAccomodation = 2,
518
+ GSKReceiptCategoryRestaurant = 3,
519
+ GSKReceiptCategorySupermarket = 4,
520
+ GSKReceiptCategoryOther = 5,
521
+ };
522
+
514
523
  @class GSKScanFlowConfiguration;
515
524
  @class UIViewController;
516
525
  @class GSKScanFlowResult;
@@ -619,7 +628,6 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
619
628
  @end
620
629
 
621
630
 
622
-
623
631
  @interface GSKScanFlowConfiguration (SWIFT_EXTENSION(GSSDK))
624
632
  /// Create a configuration from a dictionary.
625
633
  /// This is particularly useful for interfacing with React Native but shouldn’t
@@ -633,6 +641,7 @@ SWIFT_CLASS("_TtC5GSSDK24GSKScanFlowConfiguration")
633
641
  @end
634
642
 
635
643
 
644
+
636
645
  /// Enum that defines various errors that can occur during a scan flow.
637
646
  typedef SWIFT_ENUM(NSInteger, GSKScanFlowError, open) {
638
647
  /// User has canceled the scan flow
@@ -697,6 +706,7 @@ SWIFT_CLASS("_TtC5GSSDK20GSKScanFlowOCRResult")
697
706
  @end
698
707
 
699
708
 
709
+
700
710
  /// The generated PDF paper size.
701
711
  typedef SWIFT_ENUM(NSUInteger, GSKScanFlowPDFPageSize, open) {
702
712
  /// PDF page with a width of 8.27 inch (A4 width) and fitting height.
@@ -765,16 +775,44 @@ typedef SWIFT_ENUM(NSUInteger, GSKScanFlowSource, open) {
765
775
  };
766
776
 
767
777
  @class GSKScanFlowStructuredDataResultBankDetails;
778
+ @class GSKScanFlowStructuredDataResultContact;
779
+ @class GSKScanFlowStructuredDataResultReceipt;
768
780
 
769
781
  /// The result of a structured data extraction.
770
782
  SWIFT_CLASS("_TtC5GSSDK31GSKScanFlowStructuredDataResult")
771
783
  @interface GSKScanFlowStructuredDataResult : NSObject
772
784
  /// Present if bank details extraction was requested, <code>nil</code> otherwise.
773
785
  @property (nonatomic, strong) GSKScanFlowStructuredDataResultBankDetails * _Nullable bankDetails;
786
+ /// Present if business card contact extraction was requested and a contact was
787
+ /// succcessfully extracted, <code>nil</code> otherwise.
788
+ @property (nonatomic, strong) GSKScanFlowStructuredDataResultContact * _Nullable businessCardContact;
789
+ /// Present if receipt extraction was requested and a receipt/invoice was
790
+ /// succcessfully extracted, <code>nil</code> otherwise.
791
+ @property (nonatomic, strong) GSKScanFlowStructuredDataResultReceipt * _Nullable receipt;
774
792
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
775
793
  @end
776
794
 
777
795
 
796
+
797
+ /// Address data extracted from a business card document through OCR.
798
+ SWIFT_CLASS("_TtC5GSSDK38GSKScanFlowStructuredDataResultAddress")
799
+ @interface GSKScanFlowStructuredDataResultAddress : NSObject
800
+ /// The city component of the address.
801
+ @property (nonatomic, readonly, copy) NSString * _Nullable city;
802
+ /// The postal/zip code component of the address.
803
+ @property (nonatomic, readonly, copy) NSString * _Nullable postalCode;
804
+ /// The street name component of the address.
805
+ @property (nonatomic, readonly, copy) NSString * _Nullable street;
806
+ /// The state component of the address.
807
+ @property (nonatomic, readonly, copy) NSString * _Nullable state;
808
+ /// The country component of the address.
809
+ @property (nonatomic, readonly, copy) NSString * _Nullable country;
810
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
811
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
812
+ @end
813
+
814
+
815
+
778
816
  /// The bank details extracted from a document through OCR.
779
817
  SWIFT_CLASS("_TtC5GSSDK42GSKScanFlowStructuredDataResultBankDetails")
780
818
  @interface GSKScanFlowStructuredDataResultBankDetails : NSObject
@@ -786,6 +824,63 @@ SWIFT_CLASS("_TtC5GSSDK42GSKScanFlowStructuredDataResultBankDetails")
786
824
  @end
787
825
 
788
826
 
827
+ @class GSKScanFlowStructuredDataResultPhoneNumber;
828
+ @class CNContact;
829
+
830
+ /// Contact data extracted from a business card document through OCR.
831
+ SWIFT_CLASS("_TtC5GSSDK38GSKScanFlowStructuredDataResultContact")
832
+ @interface GSKScanFlowStructuredDataResultContact : NSObject
833
+ /// Any name that appears on the business card. Contains the full name, including all components.
834
+ @property (nonatomic, readonly, copy) NSString * _Nullable name;
835
+ /// Any organization that appears on the business card.
836
+ @property (nonatomic, readonly, copy) NSString * _Nullable organization;
837
+ /// Any address that appears on the business card.
838
+ @property (nonatomic, readonly, strong) GSKScanFlowStructuredDataResultAddress * _Nullable address;
839
+ /// The phone numbers that appear on the business card.
840
+ @property (nonatomic, readonly, copy) NSArray<GSKScanFlowStructuredDataResultPhoneNumber *> * _Nonnull phoneNumbers;
841
+ /// The links/URLs that appear on the business card.
842
+ @property (nonatomic, readonly, copy) NSArray<NSURL *> * _Nonnull links;
843
+ /// The email addresses that appear on the business card.
844
+ @property (nonatomic, readonly, copy) NSArray<NSString *> * _Nonnull emailAddresses;
845
+ /// Return a <code>CNContact</code> representation of the contact data within this instance.
846
+ - (CNContact * _Nonnull)asCNContact SWIFT_WARN_UNUSED_RESULT;
847
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
848
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
849
+ @end
850
+
851
+
852
+
853
+ /// Phone number data extracted from a business card document through OCR.
854
+ SWIFT_CLASS("_TtC5GSSDK42GSKScanFlowStructuredDataResultPhoneNumber")
855
+ @interface GSKScanFlowStructuredDataResultPhoneNumber : NSObject
856
+ /// The label of the phone number. For example “Main”, “Office”, etc.
857
+ @property (nonatomic, readonly, copy) NSString * _Nonnull label;
858
+ /// A string representation of the phone number itself.
859
+ @property (nonatomic, readonly, copy) NSString * _Nonnull number;
860
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
861
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
862
+ @end
863
+
864
+
865
+ @class NSLocale;
866
+
867
+ /// Receipt/invoice details extracted from a document through OCR.
868
+ SWIFT_CLASS("_TtC5GSSDK38GSKScanFlowStructuredDataResultReceipt")
869
+ @interface GSKScanFlowStructuredDataResultReceipt : NSObject
870
+ /// The locale that the receipt is in, if successfully extracted, otherwise <code>nil</code>.
871
+ @property (nonatomic, readonly, copy) NSLocale * _Nullable locale;
872
+ /// The merchant that the receipt is from, if successfully extracted, otherwise <code>nil</code>.
873
+ @property (nonatomic, readonly, copy) NSString * _Nullable merchant;
874
+ /// The code of currency that the receipt is in, if successfully extracted, otherwise <code>nil</code>.
875
+ @property (nonatomic, readonly, copy) NSString * _Nullable currency;
876
+ /// Any date that appears on the receipt, if successfully extracted, otherwise <code>nil</code>.
877
+ @property (nonatomic, readonly, copy) NSDate * _Nullable date;
878
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
879
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
880
+ @end
881
+
882
+
883
+
789
884
  SWIFT_CLASS("_TtC5GSSDK13GSKTextLayout")
790
885
  @interface GSKTextLayout : NSObject
791
886
  @property (nonatomic, readonly, copy) NSString * _Nullable hocr;