//
//  CfLogCore.m
//  ReactNativeCfCore
//
//  Created by MOIZ HASSAN KHAN on 12/12/23.
//  Copyright © 2023 Facebook. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <React/RCTBridgeModule.h>
#import <React/RCTEventEmitter.h>

@interface RCT_EXTERN_MODULE(CfLogCore, NSObject)

RCT_EXTERN_METHOD(initCFSDK:(NSString *)sdkKey)


RCT_EXTERN_METHOD(logIngestEvent:(NSString *)eventType
                  eventProps:(NSString *)eventProps
                  updateImmediately:(BOOL)updateImmediately)


RCT_EXTERN_METHOD(logCatalogEvent:(NSString *)catalogType
                  catalogObject:(NSString *)catalogObject)


RCT_EXTERN_METHOD(showInAppMessage:(NSString *)nudgeScreenType)


RCT_EXTERN_METHOD(getNudgeResponse)

RCT_EXTERN_METHOD(uploadAllEvents)



+ (BOOL)requiresMainQueueSetup
{
  return YES;
}

@end
