diff --git a/Package.resolved b/Package.resolved index c030528e5..2f58b111b 100644 --- a/Package.resolved +++ b/Package.resolved @@ -6,8 +6,8 @@ "repositoryURL": "https://github.com/Sage-Bionetworks/BridgeArchiver-Swift.git", "state": { "branch": null, - "revision": "5dc7b0d00d568fbdb4a32993bc18bd55c82a9de4", - "version": "0.1.0" + "revision": "f1f0c4a9f177b13315bae618db186c12ecbc5bdb", + "version": "0.3.0" } }, { @@ -19,13 +19,40 @@ "version": "1.2.0" } }, + { + "package": "JsonModel", + "repositoryURL": "https://github.com/Sage-Bionetworks/JsonModel-Swift.git", + "state": { + "branch": null, + "revision": "531fbb91179d9272d4fbb389a5c6516ead9d8fd7", + "version": "1.2.2" + } + }, + { + "package": "MobilePassiveData", + "repositoryURL": "https://github.com/Sage-Bionetworks/MobilePassiveData-SDK.git", + "state": { + "branch": null, + "revision": "57ba7124b3e27db895410f237b1ced4d51e71a10", + "version": "1.1.1" + } + }, + { + "package": "SageResearch", + "repositoryURL": "https://github.com/Sage-Bionetworks/SageResearch.git", + "state": { + "branch": null, + "revision": "877baa4d304bb8400bfc60fb05068ef830d266aa", + "version": "4.1.5" + } + }, { "package": "SharedMobileUI", "repositoryURL": "https://github.com/Sage-Bionetworks/SharedMobileUI-AppleOS.git", "state": { "branch": null, - "revision": "0fefce5ae5237be1718f4b00f7257df847584b2a", - "version": "0.1.0" + "revision": "ceecf49b32f3d1f33eb4f17aef66ffc2ea987201", + "version": "0.5.0" } }, { diff --git a/Package.swift b/Package.swift index 6a3dc3d67..fe7cb2372 100644 --- a/Package.swift +++ b/Package.swift @@ -6,7 +6,7 @@ import PackageDescription let package = Package( name: "BridgeClient", platforms: [ - .iOS(.v13) + .iOS(.v14) ], products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. @@ -22,13 +22,18 @@ let package = Package( // .package(url: /* package url */, from: "1.0.0"), .package(name: "SharedMobileUI", url: "https://github.com/Sage-Bionetworks/SharedMobileUI-AppleOS.git", - from: "0.1.0"), + from: "0.5.0"), .package(name: "BridgeArchiver", url: "https://github.com/Sage-Bionetworks/BridgeArchiver-Swift.git", - from: "0.1.0"), + from: "0.3.0"), + .package(name: "SageResearch", + url: "https://github.com/Sage-Bionetworks/SageResearch.git", + from: "4.1.5"), + .package(name: "JsonModel", + url: "https://github.com/Sage-Bionetworks/JsonModel-Swift.git", + from: "1.2.0"), // TODO: syoung 04/13/2021 Add AssessmentModel-KotlinNative once that repo is set up // to build the xcframework when the version is updated. - // TODO: syoung 06/08/2021 Add SageResearch once MobileToolbox is set up to use SwiftPM ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. @@ -40,6 +45,9 @@ let package = Package( "BridgeClient", "SharedMobileUI", "BridgeArchiver", + "JsonModel", + .product(name: "Research", package: "SageResearch"), + .product(name: "ResearchUI", package: "SageResearch"), ], path: "SwiftPackage/Sources/BridgeClientUI") ] diff --git a/SwiftPackage/Binaries/BridgeClient.xcframework/Info.plist b/SwiftPackage/Binaries/BridgeClient.xcframework/Info.plist index 5684c01bd..ab81aaea6 100644 --- a/SwiftPackage/Binaries/BridgeClient.xcframework/Info.plist +++ b/SwiftPackage/Binaries/BridgeClient.xcframework/Info.plist @@ -5,30 +5,34 @@ AvailableLibraries + DebugSymbolsPath + dSYMs LibraryIdentifier - ios-arm64 + ios-x86_64-simulator LibraryPath BridgeClient.framework SupportedArchitectures - arm64 + x86_64 SupportedPlatform ios + SupportedPlatformVariant + simulator + DebugSymbolsPath + dSYMs LibraryIdentifier - ios-x86_64-simulator + ios-arm64 LibraryPath BridgeClient.framework SupportedArchitectures - x86_64 + arm64 SupportedPlatform ios - SupportedPlatformVariant - simulator CFBundlePackageType diff --git a/SwiftPackage/Binaries/BridgeClient.xcframework/ios-arm64/BridgeClient.framework/BridgeClient b/SwiftPackage/Binaries/BridgeClient.xcframework/ios-arm64/BridgeClient.framework/BridgeClient index 44fd591fd..66135bd0a 100755 Binary files a/SwiftPackage/Binaries/BridgeClient.xcframework/ios-arm64/BridgeClient.framework/BridgeClient and b/SwiftPackage/Binaries/BridgeClient.xcframework/ios-arm64/BridgeClient.framework/BridgeClient differ diff --git a/SwiftPackage/Binaries/BridgeClient.xcframework/ios-arm64/BridgeClient.framework/Headers/BridgeClient.h b/SwiftPackage/Binaries/BridgeClient.xcframework/ios-arm64/BridgeClient.framework/Headers/BridgeClient.h index 3523d2494..38e4f9029 100644 --- a/SwiftPackage/Binaries/BridgeClient.xcframework/ios-arm64/BridgeClient.framework/Headers/BridgeClient.h +++ b/SwiftPackage/Binaries/BridgeClient.xcframework/ios-arm64/BridgeClient.framework/Headers/BridgeClient.h @@ -6,9 +6,9 @@ #import #import -@class BridgeClientCriteria, BridgeClientKotlinx_serialization_jsonJsonElement, BridgeClientSurveyReference, BridgeClientSchemaReference, BridgeClientConfigReference, BridgeClientFileReference, BridgeClientAppConfig, BridgeClientClientInfo, BridgeClientKoin_coreKoin, BridgeClientUserSessionInfo, BridgeClientKotlinEnum, BridgeClientAccountStatus, BridgeClientAssessmentConfig, BridgeClientConsentStatus, BridgeClientEnvironment, BridgeClientPhone, BridgeClientRole, BridgeClientSharingScope, BridgeClientKtor_client_coreHttpClient, BridgeClientRefreshTokenFeature, BridgeClientKtor_utilsAttributeKey, BridgeClientRefreshTokenFeatureConfig, BridgeClientSessionTokenFeature, BridgeClientSessionTokenFeatureConfig, BridgeClientResourceAdapter, BridgeClientResourceType, BridgeClientResourceStatus, BridgeClientResource, BridgeClientRuntimeQuery<__covariant RowType>, BridgeClientResourceResult<__covariant T>, BridgeClientResourceResultFailed, BridgeClientKotlinNothing, BridgeClientResourceResultSuccess<__covariant T>, BridgeClientResourceDatabaseHelper, BridgeClientAbstractResourceRepo, BridgeClientKoin_coreModule, BridgeClientKoin_coreKoinApplication, BridgeClientKoin_coreDefinitionParameters, BridgeClientKoin_coreScope, BridgeClientKotlinLazyThreadSafetyMode, BridgeClientKoin_coreLogger, BridgeClientKoin_corePropertyRegistry, BridgeClientKoin_coreScopeRegistry, BridgeClientKtor_client_coreHttpClientEngineConfig, BridgeClientKtor_client_coreHttpClientConfig, BridgeClientKtor_client_coreHttpRequestBuilder, BridgeClientKtor_client_coreHttpClientCall, BridgeClientKotlinx_coroutines_coreCoroutineDispatcher, BridgeClientKtor_client_coreHttpReceivePipeline, BridgeClientKtor_client_coreHttpRequestPipeline, BridgeClientKtor_client_coreHttpResponsePipeline, BridgeClientKtor_client_coreHttpSendPipeline, BridgeClientKotlinThrowable, BridgeClientKotlinArray, BridgeClientKotlinException, BridgeClientKotlinRuntimeException, BridgeClientKotlinIllegalStateException, BridgeClientKtor_httpOutgoingContent, BridgeClientKtor_httpHttpMethod, BridgeClientKtor_httpUrl, BridgeClientRuntimeTransacterTransaction, BridgeClientKotlinUnit, BridgeClientKotlinByteArray, BridgeClientKoin_coreBeanDefinition, BridgeClientKoin_coreOptions, BridgeClientKoin_coreScopeDSL, BridgeClientKoin_coreLevel, BridgeClientKotlinx_serialization_coreSerializersModule, BridgeClientKotlinx_serialization_coreSerialKind, BridgeClientKoin_coreScopeDefinition, BridgeClientKtor_client_coreHttpRequestData, BridgeClientKtor_client_coreHttpResponseData, BridgeClientKtor_client_coreProxyConfig, BridgeClientKtor_httpHeadersBuilder, BridgeClientKtor_httpURLBuilder, BridgeClientKtor_client_coreTypeInfo, BridgeClientKtor_client_coreHttpResponse, BridgeClientKotlinAbstractCoroutineContextElement, BridgeClientKtor_utilsPipelinePhase, BridgeClientKtor_utilsPipeline, BridgeClientKtor_client_coreHttpResponseContainer, BridgeClientKtor_httpContentType, BridgeClientKtor_httpHttpStatusCode, BridgeClientKtor_httpURLProtocol, BridgeClientKotlinByteIterator, BridgeClientKoin_coreKind, BridgeClientKoin_coreProperties, BridgeClientKoin_coreCallbacks, BridgeClientKtor_utilsGMTDate, BridgeClientKtor_httpHttpProtocolVersion, BridgeClientKtor_utilsStringValuesBuilder, BridgeClientKtor_httpParametersBuilder, BridgeClientKotlinx_coroutines_coreCancellationException, BridgeClientKtor_ioMemory, BridgeClientKtor_ioIoBuffer, BridgeClientKtor_ioByteReadPacket, BridgeClientKtor_ioByteOrder, BridgeClientKtor_httpHeaderValueParam, BridgeClientKtor_httpHeaderValueWithParameters, BridgeClientKtor_utilsWeekDay, BridgeClientKtor_utilsMonth, BridgeClientKtor_ioBuffer, BridgeClientKtor_ioChunkBuffer, BridgeClientKotlinCharArray, BridgeClientKtor_ioAbstractInput, BridgeClientKtor_ioByteReadPacketBase, BridgeClientKtor_ioByteReadPacketPlatformBase, BridgeClientKotlinKTypeProjection, BridgeClientKotlinx_coroutines_coreAtomicDesc, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNodePrepareOp, BridgeClientKotlinCharIterator, BridgeClientKotlinKVariance, BridgeClientKotlinx_coroutines_coreAtomicOp<__contravariant T>, BridgeClientKotlinx_coroutines_coreOpDescriptor, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNode, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNodeAbstractAtomicDesc, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNodeAddLastDesc, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNodeRemoveFirstDesc; +@class BridgeClientCriteria, BridgeClientKotlinx_serialization_jsonJsonElement, BridgeClientSurveyReference, BridgeClientSchemaReference, BridgeClientConfigReference, BridgeClientFileReference, BridgeClientAppConfig, BridgeClientClientInfo, NSDate, BridgeClientNativeAdherenceRecord, BridgeClientKoin_coreKoin, BridgeClientResourceStatus, BridgeClientUserSessionInfo, BridgeClientAssessmentInfo, BridgeClientNativeScheduledAssessment, NSDateComponents, BridgeClientNotificationMessage, BridgeClientNativeScheduledNotification, NSTimeZone, BridgeClientNativeScheduledSessionWindow, BridgeClientNativeScheduledSessionTimelineSlice, BridgeClientSessionInfo, BridgeClientKotlinEnum, BridgeClientAccountStatus, BridgeClientKotlinArray, BridgeClientKotlinx_datetimeInstant, BridgeClientAdherenceRecord, BridgeClientAdherenceRecordType, BridgeClientAdherenceRecordUpdates, BridgeClientSortOrder, BridgeClientAdherenceRecordsSearch, BridgeClientAssessmentConfig, BridgeClientColorScheme, BridgeClientConsentStatus, BridgeClientEnvironment, BridgeClientNotificationType, BridgeClientNotificationInfo, BridgeClientPerformanceOrder, BridgeClientPhone, BridgeClientReminderType, BridgeClientRole, BridgeClientScheduledAssessment, BridgeClientKotlinx_datetimeDateTimePeriod, BridgeClientScheduledSession, BridgeClientSharingScope, BridgeClientStudyActivityEvent, BridgeClientStudyActivityEventList, BridgeClientTimeline, BridgeClientKtor_client_coreHttpClient, BridgeClientRefreshTokenFeature, BridgeClientKtor_utilsAttributeKey, BridgeClientRefreshTokenFeatureConfig, BridgeClientSessionTokenFeature, BridgeClientSessionTokenFeatureConfig, BridgeClientResourceAdapter, BridgeClientResourceType, BridgeClientResource, BridgeClientRuntimeQuery<__covariant RowType>, BridgeClientResourceResult<__covariant T>, BridgeClientResourceResultFailed, BridgeClientKotlinNothing, BridgeClientResourceResultSuccess<__covariant T>, BridgeClientResourceDatabaseHelper, BridgeClientAbstractResourceRepo, BridgeClientKotlinUnit, BridgeClientAdherenceRecordRepo, BridgeClientActivityEventsRepo, BridgeClientScheduledAssessmentReference, BridgeClientKotlinx_datetimeLocalDateTime, BridgeClientScheduledNotification, BridgeClientKotlinx_datetimeTimeZone, BridgeClientScheduledSessionWindow, BridgeClientScheduledSessionTimelineSlice, BridgeClientKoin_coreModule, BridgeClientKoin_coreKoinApplication, BridgeClientKotlinThrowable, BridgeClientKoin_coreDefinitionParameters, BridgeClientKoin_coreScope, BridgeClientKotlinLazyThreadSafetyMode, BridgeClientKoin_coreLogger, BridgeClientKoin_corePropertyRegistry, BridgeClientKoin_coreScopeRegistry, BridgeClientKtor_client_coreHttpClientEngineConfig, BridgeClientKtor_client_coreHttpClientConfig, BridgeClientKtor_client_coreHttpRequestBuilder, BridgeClientKtor_client_coreHttpClientCall, BridgeClientKotlinx_coroutines_coreCoroutineDispatcher, BridgeClientKtor_client_coreHttpReceivePipeline, BridgeClientKtor_client_coreHttpRequestPipeline, BridgeClientKtor_client_coreHttpResponsePipeline, BridgeClientKtor_client_coreHttpSendPipeline, BridgeClientKotlinException, BridgeClientKotlinRuntimeException, BridgeClientKotlinIllegalStateException, BridgeClientKtor_httpOutgoingContent, BridgeClientKtor_httpHttpMethod, BridgeClientKtor_httpUrl, BridgeClientRuntimeTransacterTransaction, BridgeClientKotlinx_datetimeMonth, BridgeClientKotlinx_datetimeLocalDate, BridgeClientKotlinx_datetimeDayOfWeek, BridgeClientKoin_coreBeanDefinition, BridgeClientKoin_coreOptions, BridgeClientKoin_coreScopeDSL, BridgeClientKoin_coreLevel, BridgeClientKotlinx_serialization_coreSerializersModule, BridgeClientKotlinx_serialization_coreSerialKind, BridgeClientKoin_coreScopeDefinition, BridgeClientKtor_client_coreHttpRequestData, BridgeClientKtor_client_coreHttpResponseData, BridgeClientKtor_client_coreProxyConfig, BridgeClientKtor_httpHeadersBuilder, BridgeClientKtor_httpURLBuilder, BridgeClientKtor_client_coreTypeInfo, BridgeClientKtor_client_coreHttpResponse, BridgeClientKotlinAbstractCoroutineContextElement, BridgeClientKtor_utilsPipelinePhase, BridgeClientKtor_utilsPipeline, BridgeClientKtor_client_coreHttpResponseContainer, BridgeClientKtor_httpContentType, BridgeClientKtor_httpHttpStatusCode, BridgeClientKtor_httpURLProtocol, BridgeClientKotlinByteArray, BridgeClientKoin_coreKind, BridgeClientKoin_coreProperties, BridgeClientKoin_coreCallbacks, BridgeClientKtor_utilsGMTDate, BridgeClientKtor_httpHttpProtocolVersion, BridgeClientKtor_utilsStringValuesBuilder, BridgeClientKtor_httpParametersBuilder, BridgeClientKotlinx_coroutines_coreCancellationException, BridgeClientKtor_ioMemory, BridgeClientKtor_ioIoBuffer, BridgeClientKtor_ioByteReadPacket, BridgeClientKtor_ioByteOrder, BridgeClientKtor_httpHeaderValueParam, BridgeClientKtor_httpHeaderValueWithParameters, BridgeClientKotlinByteIterator, BridgeClientKtor_utilsWeekDay, BridgeClientKtor_utilsMonth, BridgeClientKtor_ioBuffer, BridgeClientKtor_ioChunkBuffer, BridgeClientKotlinCharArray, BridgeClientKtor_ioAbstractInput, BridgeClientKtor_ioByteReadPacketBase, BridgeClientKtor_ioByteReadPacketPlatformBase, BridgeClientKotlinKTypeProjection, BridgeClientKotlinx_coroutines_coreAtomicDesc, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNodePrepareOp, BridgeClientKotlinCharIterator, BridgeClientKotlinKVariance, BridgeClientKotlinx_coroutines_coreAtomicOp<__contravariant T>, BridgeClientKotlinx_coroutines_coreOpDescriptor, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNode, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNodeAbstractAtomicDesc, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNodeAddLastDesc, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNodeRemoveFirstDesc; -@protocol BridgeClientKotlinx_serialization_coreKSerializer, BridgeClientBridgeConfig, BridgeClientKoin_coreKoinComponent, BridgeClientKotlinComparable, BridgeClientKotlinSuspendFunction0, BridgeClientKtor_client_coreHttpRequest, BridgeClientKtor_client_coreHttpClientFeature, BridgeClientSessionTokenFeatureSessionTokenProvider, BridgeClientBridgeResourceDatabaseQueries, BridgeClientRuntimeTransactionWithoutReturn, BridgeClientRuntimeTransactionWithReturn, BridgeClientRuntimeTransacter, BridgeClientBridgeResourceDatabase, BridgeClientRuntimeSqlDriver, BridgeClientRuntimeSqlDriverSchema, BridgeClientDbDriverFactory, BridgeClientRuntimeColumnAdapter, BridgeClientKotlinx_coroutines_coreCoroutineScope, BridgeClientKotlinx_coroutines_coreFlow, BridgeClientRuntimeSqlCursor, BridgeClientRuntimeQueryListener, BridgeClientKotlinCoroutineContext, BridgeClientKotlinx_serialization_coreEncoder, BridgeClientKotlinx_serialization_coreSerialDescriptor, BridgeClientKotlinx_serialization_coreSerializationStrategy, BridgeClientKotlinx_serialization_coreDecoder, BridgeClientKotlinx_serialization_coreDeserializationStrategy, BridgeClientKotlinKClass, BridgeClientKoin_coreKoinScopeComponent, BridgeClientKoin_coreQualifier, BridgeClientKotlinLazy, BridgeClientKtor_ioCloseable, BridgeClientKtor_client_coreHttpClientEngine, BridgeClientKtor_client_coreHttpClientEngineCapability, BridgeClientKtor_utilsAttributes, BridgeClientKotlinFunction, BridgeClientKtor_httpHeaders, BridgeClientKtor_httpHttpMessage, BridgeClientRuntimeTransactionCallbacks, BridgeClientRuntimeSqlPreparedStatement, BridgeClientRuntimeCloseable, BridgeClientKotlinx_coroutines_coreFlowCollector, BridgeClientKotlinCoroutineContextElement, BridgeClientKotlinCoroutineContextKey, BridgeClientKotlinx_serialization_coreCompositeEncoder, BridgeClientKotlinAnnotation, BridgeClientKotlinx_serialization_coreCompositeDecoder, BridgeClientKotlinKDeclarationContainer, BridgeClientKotlinKAnnotatedElement, BridgeClientKotlinKClassifier, BridgeClientKoin_coreScopeCallback, BridgeClientKtor_httpHttpMessageBuilder, BridgeClientKotlinx_coroutines_coreJob, BridgeClientKtor_ioByteReadChannel, BridgeClientKotlinContinuation, BridgeClientKotlinContinuationInterceptor, BridgeClientKotlinx_coroutines_coreRunnable, BridgeClientKotlinSuspendFunction2, BridgeClientKotlinIterator, BridgeClientKtor_httpParameters, BridgeClientKotlinMapEntry, BridgeClientKtor_utilsStringValues, BridgeClientKotlinx_serialization_coreSerializersModuleCollector, BridgeClientKotlinx_coroutines_coreChildHandle, BridgeClientKotlinx_coroutines_coreChildJob, BridgeClientKotlinx_coroutines_coreDisposableHandle, BridgeClientKotlinSequence, BridgeClientKotlinx_coroutines_coreSelectClause0, BridgeClientKtor_ioReadSession, BridgeClientKotlinSuspendFunction1, BridgeClientKotlinAppendable, BridgeClientKotlinKType, BridgeClientKotlinx_coroutines_coreParentJob, BridgeClientKotlinx_coroutines_coreSelectInstance, BridgeClientKtor_ioObjectPool, BridgeClientKtor_ioInput, BridgeClientKtor_ioOutput; +@protocol BridgeClientKotlinx_serialization_coreKSerializer, BridgeClientPlatformConfig, BridgeClientBridgeConfig, BridgeClientKoin_coreKoinComponent, BridgeClientKotlinComparable, BridgeClientKotlinSuspendFunction0, BridgeClientKtor_client_coreHttpRequest, BridgeClientKtor_client_coreHttpClientFeature, BridgeClientSessionTokenFeatureSessionTokenProvider, BridgeClientBridgeResourceDatabaseQueries, BridgeClientRuntimeTransactionWithoutReturn, BridgeClientRuntimeTransactionWithReturn, BridgeClientRuntimeTransacter, BridgeClientBridgeResourceDatabase, BridgeClientRuntimeSqlDriver, BridgeClientRuntimeSqlDriverSchema, BridgeClientDbDriverFactory, BridgeClientRuntimeColumnAdapter, BridgeClientKotlinx_coroutines_coreCoroutineScope, BridgeClientKotlinx_coroutines_coreFlow, BridgeClientKotlinx_serialization_coreEncoder, BridgeClientKotlinx_serialization_coreSerialDescriptor, BridgeClientKotlinx_serialization_coreSerializationStrategy, BridgeClientKotlinx_serialization_coreDecoder, BridgeClientKotlinx_serialization_coreDeserializationStrategy, BridgeClientKotlinKClass, BridgeClientKoin_coreKoinScopeComponent, BridgeClientKoin_coreQualifier, BridgeClientKotlinLazy, BridgeClientKotlinIterator, BridgeClientKotlinCoroutineContext, BridgeClientKtor_ioCloseable, BridgeClientKtor_client_coreHttpClientEngine, BridgeClientKtor_client_coreHttpClientEngineCapability, BridgeClientKtor_utilsAttributes, BridgeClientKotlinFunction, BridgeClientKtor_httpHeaders, BridgeClientKtor_httpHttpMessage, BridgeClientRuntimeTransactionCallbacks, BridgeClientRuntimeSqlPreparedStatement, BridgeClientRuntimeSqlCursor, BridgeClientRuntimeCloseable, BridgeClientRuntimeQueryListener, BridgeClientKotlinx_coroutines_coreFlowCollector, BridgeClientKotlinx_serialization_coreCompositeEncoder, BridgeClientKotlinAnnotation, BridgeClientKotlinx_serialization_coreCompositeDecoder, BridgeClientKotlinKDeclarationContainer, BridgeClientKotlinKAnnotatedElement, BridgeClientKotlinKClassifier, BridgeClientKoin_coreScopeCallback, BridgeClientKotlinCoroutineContextElement, BridgeClientKotlinCoroutineContextKey, BridgeClientKtor_httpHttpMessageBuilder, BridgeClientKotlinx_coroutines_coreJob, BridgeClientKtor_ioByteReadChannel, BridgeClientKotlinContinuation, BridgeClientKotlinContinuationInterceptor, BridgeClientKotlinx_coroutines_coreRunnable, BridgeClientKotlinSuspendFunction2, BridgeClientKtor_httpParameters, BridgeClientKotlinMapEntry, BridgeClientKtor_utilsStringValues, BridgeClientKotlinx_serialization_coreSerializersModuleCollector, BridgeClientKotlinx_coroutines_coreChildHandle, BridgeClientKotlinx_coroutines_coreChildJob, BridgeClientKotlinx_coroutines_coreDisposableHandle, BridgeClientKotlinSequence, BridgeClientKotlinx_coroutines_coreSelectClause0, BridgeClientKtor_ioReadSession, BridgeClientKotlinSuspendFunction1, BridgeClientKotlinAppendable, BridgeClientKotlinKType, BridgeClientKotlinx_coroutines_coreParentJob, BridgeClientKotlinx_coroutines_coreSelectInstance, BridgeClientKtor_ioObjectPool, BridgeClientKtor_ioInput, BridgeClientKtor_ioOutput; NS_ASSUME_NONNULL_BEGIN #pragma clang diagnostic push @@ -291,10 +291,9 @@ __attribute__((swift_name("SurveyReference.Companion"))) - (id)serializer __attribute__((swift_name("serializer()"))); @end; -__attribute__((swift_name("BridgeConfig"))) -@protocol BridgeClientBridgeConfig +__attribute__((swift_name("PlatformConfig"))) +@protocol BridgeClientPlatformConfig @required -- (NSString * _Nullable)getUserAgentInfo:(BridgeClientClientInfo *)info __attribute__((swift_name("getUserAgent(info:)"))); @property (readonly) NSString *appId __attribute__((swift_name("appId"))); @property (readonly) NSString *appName __attribute__((swift_name("appName"))); @property (readonly) int32_t appVersion __attribute__((swift_name("appVersion"))); @@ -302,6 +301,12 @@ __attribute__((swift_name("BridgeConfig"))) @property (readonly) NSString *deviceName __attribute__((swift_name("deviceName"))); @property (readonly) NSString *osName __attribute__((swift_name("osName"))); @property (readonly) NSString *osVersion __attribute__((swift_name("osVersion"))); +@end; + +__attribute__((swift_name("BridgeConfig"))) +@protocol BridgeClientBridgeConfig +@required +- (NSString * _Nullable)getUserAgentInfo:(BridgeClientClientInfo *)info __attribute__((swift_name("getUserAgent(info:)"))); @property (readonly) int32_t sdkVersion __attribute__((swift_name("sdkVersion"))); @property (readonly) NSString *userAgent __attribute__((swift_name("userAgent"))); @end; @@ -309,8 +314,10 @@ __attribute__((swift_name("BridgeConfig"))) __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("IOSBridgeConfig"))) @interface BridgeClientIOSBridgeConfig : BridgeClientBase -- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); -+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)iOSBridgeConfig __attribute__((swift_name("init()"))); +- (void)initializePlatformConfig:(id)platformConfig __attribute__((swift_name("initialize(platformConfig:)"))); @property (readonly) NSString *appId __attribute__((swift_name("appId"))); @property (readonly) NSString *appName __attribute__((swift_name("appName"))); @property (readonly) int32_t appVersion __attribute__((swift_name("appVersion"))); @@ -321,6 +328,39 @@ __attribute__((swift_name("IOSBridgeConfig"))) @property (readonly) int32_t sdkVersion __attribute__((swift_name("sdkVersion"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("JsonElementDecoder"))) +@interface BridgeClientJsonElementDecoder : BridgeClientBase +- (instancetype)initWithJsonString:(NSString *)jsonString __attribute__((swift_name("init(jsonString:)"))) __attribute__((objc_designated_initializer)); + +/** + @note This method converts all Kotlin exceptions to errors. +*/ +- (BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)decodeObjectAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("decodeObject()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NativeAdherenceRecord"))) +@interface BridgeClientNativeAdherenceRecord : BridgeClientBase +- (instancetype)initWithInstanceGuid:(NSString *)instanceGuid eventTimestamp:(NSString *)eventTimestamp startedOn:(NSDate * _Nullable)startedOn finishedOn:(NSDate * _Nullable)finishedOn declined:(BridgeClientBoolean * _Nullable)declined clientData:(BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)clientData __attribute__((swift_name("init(instanceGuid:eventTimestamp:startedOn:finishedOn:declined:clientData:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (NSDate * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (NSDate * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientBoolean * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)component6 __attribute__((swift_name("component6()"))); +- (BridgeClientNativeAdherenceRecord *)doCopyInstanceGuid:(NSString *)instanceGuid eventTimestamp:(NSString *)eventTimestamp startedOn:(NSDate * _Nullable)startedOn finishedOn:(NSDate * _Nullable)finishedOn declined:(BridgeClientBoolean * _Nullable)declined clientData:(BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)clientData __attribute__((swift_name("doCopy(instanceGuid:eventTimestamp:startedOn:finishedOn:declined:clientData:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable clientData __attribute__((swift_name("clientData"))); +@property (readonly) BridgeClientBoolean * _Nullable declined __attribute__((swift_name("declined"))); +@property (readonly) NSString *eventTimestamp __attribute__((swift_name("eventTimestamp"))); +@property (readonly) NSDate * _Nullable finishedOn __attribute__((swift_name("finishedOn"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) NSDate * _Nullable startedOn __attribute__((swift_name("startedOn"))); +@end; + __attribute__((swift_name("Koin_coreKoinComponent"))) @protocol BridgeClientKoin_coreKoinComponent @required @@ -328,13 +368,119 @@ __attribute__((swift_name("Koin_coreKoinComponent"))) @end; __attribute__((objc_subclassing_restricted)) -__attribute__((swift_name("NativeAssessmentViewModel"))) -@interface BridgeClientNativeAssessmentViewModel : BridgeClientBase -- (instancetype)initWithViewUpdate:(void (^)(NSString * _Nullable))viewUpdate __attribute__((swift_name("init(viewUpdate:)"))) __attribute__((objc_designated_initializer)); +__attribute__((swift_name("NativeAppConfigManager"))) +@interface BridgeClientNativeAppConfigManager : BridgeClientBase +- (instancetype)initWithViewUpdate:(void (^)(BridgeClientAppConfig * _Nullable, BridgeClientResourceStatus * _Nullable))viewUpdate __attribute__((swift_name("init(viewUpdate:)"))) __attribute__((objc_designated_initializer)); +- (void)observeAppConfig __attribute__((swift_name("observeAppConfig()"))); +- (void)onCleared __attribute__((swift_name("onCleared()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NativeAuthenticationManager"))) +@interface BridgeClientNativeAuthenticationManager : BridgeClientBase +- (instancetype)initWithViewUpdate:(void (^)(BridgeClientUserSessionInfo * _Nullable))viewUpdate __attribute__((swift_name("init(viewUpdate:)"))) __attribute__((objc_designated_initializer)); - (BOOL)isAuthenticated __attribute__((swift_name("isAuthenticated()"))); -- (void)observeAssessmentConfigIdentifier:(NSString *)identifier __attribute__((swift_name("observeAssessmentConfig(identifier:)"))); +- (void)observeUserSessionInfo __attribute__((swift_name("observeUserSessionInfo()"))); +- (void)onCleared __attribute__((swift_name("onCleared()"))); +- (BridgeClientUserSessionInfo * _Nullable)session __attribute__((swift_name("session()"))); +- (void)signInEmailUserName:(NSString *)userName password:(NSString *)password callBack:(void (^)(BridgeClientUserSessionInfo * _Nullable, BridgeClientResourceStatus *))callBack __attribute__((swift_name("signInEmail(userName:password:callBack:)"))); +- (void)signInExternalIdExternalId:(NSString *)externalId password:(NSString * _Nullable)password callBack:(void (^)(BridgeClientUserSessionInfo * _Nullable, BridgeClientResourceStatus *))callBack __attribute__((swift_name("signInExternalId(externalId:password:callBack:)"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NativeScheduledAssessment"))) +@interface BridgeClientNativeScheduledAssessment : BridgeClientBase +- (instancetype)initWithInstanceGuid:(NSString *)instanceGuid assessmentInfo:(BridgeClientAssessmentInfo *)assessmentInfo isCompleted:(BOOL)isCompleted isDeclined:(BOOL)isDeclined adherenceRecords:(NSArray * _Nullable)adherenceRecords __attribute__((swift_name("init(instanceGuid:assessmentInfo:isCompleted:isDeclined:adherenceRecords:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (BridgeClientAssessmentInfo *)component2 __attribute__((swift_name("component2()"))); +- (BOOL)component3 __attribute__((swift_name("component3()"))); +- (BOOL)component4 __attribute__((swift_name("component4()"))); +- (NSArray * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (BridgeClientNativeScheduledAssessment *)doCopyInstanceGuid:(NSString *)instanceGuid assessmentInfo:(BridgeClientAssessmentInfo *)assessmentInfo isCompleted:(BOOL)isCompleted isDeclined:(BOOL)isDeclined adherenceRecords:(NSArray * _Nullable)adherenceRecords __attribute__((swift_name("doCopy(instanceGuid:assessmentInfo:isCompleted:isDeclined:adherenceRecords:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSArray * _Nullable adherenceRecords __attribute__((swift_name("adherenceRecords"))); +@property (readonly) BridgeClientAssessmentInfo *assessmentInfo __attribute__((swift_name("assessmentInfo"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) BOOL isCompleted __attribute__((swift_name("isCompleted"))); +@property (readonly) BOOL isDeclined __attribute__((swift_name("isDeclined"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NativeScheduledNotification"))) +@interface BridgeClientNativeScheduledNotification : BridgeClientBase +- (instancetype)initWithInstanceGuid:(NSString *)instanceGuid scheduleOn:(NSDateComponents *)scheduleOn repeatInterval:(NSDateComponents * _Nullable)repeatInterval allowSnooze:(BOOL)allowSnooze message:(BridgeClientNotificationMessage * _Nullable)message __attribute__((swift_name("init(instanceGuid:scheduleOn:repeatInterval:allowSnooze:message:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (NSDateComponents *)component2 __attribute__((swift_name("component2()"))); +- (NSDateComponents * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (BOOL)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientNotificationMessage * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (BridgeClientNativeScheduledNotification *)doCopyInstanceGuid:(NSString *)instanceGuid scheduleOn:(NSDateComponents *)scheduleOn repeatInterval:(NSDateComponents * _Nullable)repeatInterval allowSnooze:(BOOL)allowSnooze message:(BridgeClientNotificationMessage * _Nullable)message __attribute__((swift_name("doCopy(instanceGuid:scheduleOn:repeatInterval:allowSnooze:message:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BOOL allowSnooze __attribute__((swift_name("allowSnooze"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) BridgeClientNotificationMessage * _Nullable message __attribute__((swift_name("message"))); +@property (readonly) NSDateComponents * _Nullable repeatInterval __attribute__((swift_name("repeatInterval"))); +@property (readonly) NSDateComponents *scheduleOn __attribute__((swift_name("scheduleOn"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NativeScheduledSessionTimelineSlice"))) +@interface BridgeClientNativeScheduledSessionTimelineSlice : BridgeClientBase +- (instancetype)initWithInstantInDay:(NSDate *)instantInDay timezone:(NSTimeZone *)timezone scheduledSessionWindows:(NSArray *)scheduledSessionWindows notifications:(NSArray *)notifications __attribute__((swift_name("init(instantInDay:timezone:scheduledSessionWindows:notifications:)"))) __attribute__((objc_designated_initializer)); +- (NSDate *)component1 __attribute__((swift_name("component1()"))); +- (NSTimeZone *)component2 __attribute__((swift_name("component2()"))); +- (NSArray *)component3 __attribute__((swift_name("component3()"))); +- (NSArray *)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientNativeScheduledSessionTimelineSlice *)doCopyInstantInDay:(NSDate *)instantInDay timezone:(NSTimeZone *)timezone scheduledSessionWindows:(NSArray *)scheduledSessionWindows notifications:(NSArray *)notifications __attribute__((swift_name("doCopy(instantInDay:timezone:scheduledSessionWindows:notifications:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSDate *instantInDay __attribute__((swift_name("instantInDay"))); +@property (readonly) NSArray *notifications __attribute__((swift_name("notifications"))); +@property (readonly) NSArray *scheduledSessionWindows __attribute__((swift_name("scheduledSessionWindows"))); +@property (readonly) NSTimeZone *timezone __attribute__((swift_name("timezone"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NativeScheduledSessionWindow"))) +@interface BridgeClientNativeScheduledSessionWindow : BridgeClientBase +- (instancetype)initWithInstanceGuid:(NSString *)instanceGuid eventTimestamp:(NSString *)eventTimestamp startDateTime:(NSDate *)startDateTime endDateTime:(NSDate *)endDateTime persistent:(BOOL)persistent hasStartTimeOfDay:(BOOL)hasStartTimeOfDay hasEndTimeOfDay:(BOOL)hasEndTimeOfDay assessments:(NSArray *)assessments sessionInfo:(BridgeClientSessionInfo *)sessionInfo __attribute__((swift_name("init(instanceGuid:eventTimestamp:startDateTime:endDateTime:persistent:hasStartTimeOfDay:hasEndTimeOfDay:assessments:sessionInfo:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (NSDate *)component3 __attribute__((swift_name("component3()"))); +- (NSDate *)component4 __attribute__((swift_name("component4()"))); +- (BOOL)component5 __attribute__((swift_name("component5()"))); +- (BOOL)component6 __attribute__((swift_name("component6()"))); +- (BOOL)component7 __attribute__((swift_name("component7()"))); +- (NSArray *)component8 __attribute__((swift_name("component8()"))); +- (BridgeClientSessionInfo *)component9 __attribute__((swift_name("component9()"))); +- (BridgeClientNativeScheduledSessionWindow *)doCopyInstanceGuid:(NSString *)instanceGuid eventTimestamp:(NSString *)eventTimestamp startDateTime:(NSDate *)startDateTime endDateTime:(NSDate *)endDateTime persistent:(BOOL)persistent hasStartTimeOfDay:(BOOL)hasStartTimeOfDay hasEndTimeOfDay:(BOOL)hasEndTimeOfDay assessments:(NSArray *)assessments sessionInfo:(BridgeClientSessionInfo *)sessionInfo __attribute__((swift_name("doCopy(instanceGuid:eventTimestamp:startDateTime:endDateTime:persistent:hasStartTimeOfDay:hasEndTimeOfDay:assessments:sessionInfo:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSArray *assessments __attribute__((swift_name("assessments"))); +@property (readonly) NSDate *endDateTime __attribute__((swift_name("endDateTime"))); +@property (readonly) NSString *eventTimestamp __attribute__((swift_name("eventTimestamp"))); +@property (readonly) BOOL hasEndTimeOfDay __attribute__((swift_name("hasEndTimeOfDay"))); +@property (readonly) BOOL hasStartTimeOfDay __attribute__((swift_name("hasStartTimeOfDay"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) BOOL persistent __attribute__((swift_name("persistent"))); +@property (readonly) BridgeClientSessionInfo *sessionInfo __attribute__((swift_name("sessionInfo"))); +@property (readonly) NSDate *startDateTime __attribute__((swift_name("startDateTime"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NativeTimelineManager"))) +@interface BridgeClientNativeTimelineManager : BridgeClientBase +- (instancetype)initWithStudyId:(NSString *)studyId includeAllNotifications:(BOOL)includeAllNotifications alwaysIncludeNextDay:(BOOL)alwaysIncludeNextDay viewUpdate:(void (^)(BridgeClientNativeScheduledSessionTimelineSlice *))viewUpdate __attribute__((swift_name("init(studyId:includeAllNotifications:alwaysIncludeNextDay:viewUpdate:)"))) __attribute__((objc_designated_initializer)); +- (void)observeTodaySchedule __attribute__((swift_name("observeTodaySchedule()"))); - (void)onCleared __attribute__((swift_name("onCleared()"))); -- (void)signInUserName:(NSString *)userName password:(NSString *)password callBack:(void (^)(BridgeClientUserSessionInfo * _Nullable))callBack __attribute__((swift_name("signIn(userName:password:callBack:)"))); +- (void)refreshTodaySchedule __attribute__((swift_name("refreshTodaySchedule()"))); +- (void)updateAdherenceRecordRecord:(BridgeClientNativeAdherenceRecord *)record __attribute__((swift_name("updateAdherenceRecord(record:)"))); @end; __attribute__((swift_name("KotlinComparable"))) @@ -363,6 +509,7 @@ __attribute__((swift_name("AccountStatus"))) @property (class, readonly) BridgeClientAccountStatus *enabled __attribute__((swift_name("enabled"))); @property (class, readonly) BridgeClientAccountStatus *disabled __attribute__((swift_name("disabled"))); @property (class, readonly) BridgeClientAccountStatus *unverified __attribute__((swift_name("unverified"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); @end; @@ -375,6 +522,134 @@ __attribute__((swift_name("AccountStatus.Companion"))) - (id)serializer __attribute__((swift_name("serializer()"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecord"))) +@interface BridgeClientAdherenceRecord : BridgeClientBase +- (instancetype)initWithInstanceGuid:(NSString *)instanceGuid eventTimestamp:(NSString *)eventTimestamp startedOn:(BridgeClientKotlinx_datetimeInstant * _Nullable)startedOn finishedOn:(BridgeClientKotlinx_datetimeInstant * _Nullable)finishedOn clientTimeZone:(NSString * _Nullable)clientTimeZone uploadedOn:(NSString * _Nullable)uploadedOn declined:(BridgeClientBoolean * _Nullable)declined clientData:(BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)clientData type:(NSString *)type __attribute__((swift_name("init(instanceGuid:eventTimestamp:startedOn:finishedOn:clientTimeZone:uploadedOn:declined:clientData:type:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (BridgeClientKotlinx_datetimeInstant * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (BridgeClientKotlinx_datetimeInstant * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (NSString * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (NSString * _Nullable)component6 __attribute__((swift_name("component6()"))); +- (BridgeClientBoolean * _Nullable)component7 __attribute__((swift_name("component7()"))); +- (BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)component8 __attribute__((swift_name("component8()"))); +- (NSString *)component9 __attribute__((swift_name("component9()"))); +- (BridgeClientAdherenceRecord *)doCopyInstanceGuid:(NSString *)instanceGuid eventTimestamp:(NSString *)eventTimestamp startedOn:(BridgeClientKotlinx_datetimeInstant * _Nullable)startedOn finishedOn:(BridgeClientKotlinx_datetimeInstant * _Nullable)finishedOn clientTimeZone:(NSString * _Nullable)clientTimeZone uploadedOn:(NSString * _Nullable)uploadedOn declined:(BridgeClientBoolean * _Nullable)declined clientData:(BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)clientData type:(NSString *)type __attribute__((swift_name("doCopy(instanceGuid:eventTimestamp:startedOn:finishedOn:clientTimeZone:uploadedOn:declined:clientData:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable clientData __attribute__((swift_name("clientData"))); +@property (readonly) NSString * _Nullable clientTimeZone __attribute__((swift_name("clientTimeZone"))); +@property (readonly) BridgeClientBoolean * _Nullable declined __attribute__((swift_name("declined"))); +@property (readonly) NSString *eventTimestamp __attribute__((swift_name("eventTimestamp"))); +@property (readonly) BridgeClientKotlinx_datetimeInstant * _Nullable finishedOn __attribute__((swift_name("finishedOn"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) BridgeClientKotlinx_datetimeInstant * _Nullable startedOn __attribute__((swift_name("startedOn"))); +@property (readonly) NSString *type __attribute__((swift_name("type"))); +@property (readonly) NSString * _Nullable uploadedOn __attribute__((swift_name("uploadedOn"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecord.Companion"))) +@interface BridgeClientAdherenceRecordCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecordType"))) +@interface BridgeClientAdherenceRecordType : BridgeClientKotlinEnum ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); +- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +@property (class, readonly) BridgeClientAdherenceRecordType *assessment __attribute__((swift_name("assessment"))); +@property (class, readonly) BridgeClientAdherenceRecordType *session __attribute__((swift_name("session"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); +@property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecordType.Companion"))) +@interface BridgeClientAdherenceRecordTypeCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecordUpdates"))) +@interface BridgeClientAdherenceRecordUpdates : BridgeClientBase +- (instancetype)initWithRecords:(NSArray *)records type:(NSString *)type __attribute__((swift_name("init(records:type:)"))) __attribute__((objc_designated_initializer)); +- (NSArray *)component1 __attribute__((swift_name("component1()"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (BridgeClientAdherenceRecordUpdates *)doCopyRecords:(NSArray *)records type:(NSString *)type __attribute__((swift_name("doCopy(records:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSArray *records __attribute__((swift_name("records"))); +@property (readonly) NSString *type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecordUpdates.Companion"))) +@interface BridgeClientAdherenceRecordUpdatesCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecordsSearch"))) +@interface BridgeClientAdherenceRecordsSearch : BridgeClientBase +- (instancetype)initWithInstanceGuids:(NSArray * _Nullable)instanceGuids assessmentIds:(NSArray * _Nullable)assessmentIds sessionGuids:(NSArray * _Nullable)sessionGuids timeWindowGuids:(NSArray * _Nullable)timeWindowGuids adherenceRecordType:(BridgeClientAdherenceRecordType * _Nullable)adherenceRecordType includeRepeats:(BridgeClientBoolean * _Nullable)includeRepeats currentTimestampsOnly:(BridgeClientBoolean * _Nullable)currentTimestampsOnly eventTimestamps:(NSDictionary * _Nullable)eventTimestamps startTime:(NSString * _Nullable)startTime endTime:(NSString * _Nullable)endTime pageSize:(BridgeClientInt * _Nullable)pageSize offsetBy:(BridgeClientInt * _Nullable)offsetBy sortOrder:(BridgeClientSortOrder * _Nullable)sortOrder type:(NSString * _Nullable)type __attribute__((swift_name("init(instanceGuids:assessmentIds:sessionGuids:timeWindowGuids:adherenceRecordType:includeRepeats:currentTimestampsOnly:eventTimestamps:startTime:endTime:pageSize:offsetBy:sortOrder:type:)"))) __attribute__((objc_designated_initializer)); +- (NSArray * _Nullable)component1 __attribute__((swift_name("component1()"))); +- (NSString * _Nullable)component10 __attribute__((swift_name("component10()"))); +- (BridgeClientInt * _Nullable)component11 __attribute__((swift_name("component11()"))); +- (BridgeClientInt * _Nullable)component12 __attribute__((swift_name("component12()"))); +- (BridgeClientSortOrder * _Nullable)component13 __attribute__((swift_name("component13()"))); +- (NSString * _Nullable)component14 __attribute__((swift_name("component14()"))); +- (NSArray * _Nullable)component2 __attribute__((swift_name("component2()"))); +- (NSArray * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (NSArray * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientAdherenceRecordType * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (BridgeClientBoolean * _Nullable)component6 __attribute__((swift_name("component6()"))); +- (BridgeClientBoolean * _Nullable)component7 __attribute__((swift_name("component7()"))); +- (NSDictionary * _Nullable)component8 __attribute__((swift_name("component8()"))); +- (NSString * _Nullable)component9 __attribute__((swift_name("component9()"))); +- (BridgeClientAdherenceRecordsSearch *)doCopyInstanceGuids:(NSArray * _Nullable)instanceGuids assessmentIds:(NSArray * _Nullable)assessmentIds sessionGuids:(NSArray * _Nullable)sessionGuids timeWindowGuids:(NSArray * _Nullable)timeWindowGuids adherenceRecordType:(BridgeClientAdherenceRecordType * _Nullable)adherenceRecordType includeRepeats:(BridgeClientBoolean * _Nullable)includeRepeats currentTimestampsOnly:(BridgeClientBoolean * _Nullable)currentTimestampsOnly eventTimestamps:(NSDictionary * _Nullable)eventTimestamps startTime:(NSString * _Nullable)startTime endTime:(NSString * _Nullable)endTime pageSize:(BridgeClientInt * _Nullable)pageSize offsetBy:(BridgeClientInt * _Nullable)offsetBy sortOrder:(BridgeClientSortOrder * _Nullable)sortOrder type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(instanceGuids:assessmentIds:sessionGuids:timeWindowGuids:adherenceRecordType:includeRepeats:currentTimestampsOnly:eventTimestamps:startTime:endTime:pageSize:offsetBy:sortOrder:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BridgeClientAdherenceRecordType * _Nullable adherenceRecordType __attribute__((swift_name("adherenceRecordType"))); +@property (readonly) NSArray * _Nullable assessmentIds __attribute__((swift_name("assessmentIds"))); +@property (readonly) BridgeClientBoolean * _Nullable currentTimestampsOnly __attribute__((swift_name("currentTimestampsOnly"))); +@property (readonly) NSString * _Nullable endTime __attribute__((swift_name("endTime"))); +@property (readonly) NSDictionary * _Nullable eventTimestamps __attribute__((swift_name("eventTimestamps"))); +@property (readonly) BridgeClientBoolean * _Nullable includeRepeats __attribute__((swift_name("includeRepeats"))); +@property (readonly) NSArray * _Nullable instanceGuids __attribute__((swift_name("instanceGuids"))); +@property (readonly) BridgeClientInt * _Nullable offsetBy __attribute__((swift_name("offsetBy"))); +@property (readonly) BridgeClientInt * _Nullable pageSize __attribute__((swift_name("pageSize"))); +@property (readonly) NSArray * _Nullable sessionGuids __attribute__((swift_name("sessionGuids"))); +@property (readonly) BridgeClientSortOrder * _Nullable sortOrder __attribute__((swift_name("sortOrder"))); +@property (readonly) NSString * _Nullable startTime __attribute__((swift_name("startTime"))); +@property (readonly) NSArray * _Nullable timeWindowGuids __attribute__((swift_name("timeWindowGuids"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecordsSearch.Companion"))) +@interface BridgeClientAdherenceRecordsSearchCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("AssessmentConfig"))) @interface BridgeClientAssessmentConfig : BridgeClientBase @@ -404,6 +679,43 @@ __attribute__((swift_name("AssessmentConfig.Companion"))) - (id)serializer __attribute__((swift_name("serializer()"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AssessmentInfo"))) +@interface BridgeClientAssessmentInfo : BridgeClientBase +- (instancetype)initWithKey:(NSString * _Nullable)key guid:(NSString * _Nullable)guid appId:(NSString * _Nullable)appId identifier:(NSString * _Nullable)identifier revision:(BridgeClientInt * _Nullable)revision label:(NSString * _Nullable)label minutesToComplete:(BridgeClientInt * _Nullable)minutesToComplete colorScheme:(BridgeClientColorScheme * _Nullable)colorScheme type:(NSString * _Nullable)type __attribute__((swift_name("init(key:guid:appId:identifier:revision:label:minutesToComplete:colorScheme:type:)"))) __attribute__((objc_designated_initializer)); +- (NSString * _Nullable)component1 __attribute__((swift_name("component1()"))); +- (NSString * _Nullable)component2 __attribute__((swift_name("component2()"))); +- (NSString * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (NSString * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientInt * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (NSString * _Nullable)component6 __attribute__((swift_name("component6()"))); +- (BridgeClientInt * _Nullable)component7 __attribute__((swift_name("component7()"))); +- (BridgeClientColorScheme * _Nullable)component8 __attribute__((swift_name("component8()"))); +- (NSString * _Nullable)component9 __attribute__((swift_name("component9()"))); +- (BridgeClientAssessmentInfo *)doCopyKey:(NSString * _Nullable)key guid:(NSString * _Nullable)guid appId:(NSString * _Nullable)appId identifier:(NSString * _Nullable)identifier revision:(BridgeClientInt * _Nullable)revision label:(NSString * _Nullable)label minutesToComplete:(BridgeClientInt * _Nullable)minutesToComplete colorScheme:(BridgeClientColorScheme * _Nullable)colorScheme type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(key:guid:appId:identifier:revision:label:minutesToComplete:colorScheme:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSString * _Nullable appId __attribute__((swift_name("appId"))); +@property (readonly) BridgeClientColorScheme * _Nullable colorScheme __attribute__((swift_name("colorScheme"))); +@property (readonly) NSString * _Nullable guid __attribute__((swift_name("guid"))); +@property (readonly) NSString * _Nullable identifier __attribute__((swift_name("identifier"))); +@property (readonly) NSString * _Nullable key __attribute__((swift_name("key"))); +@property (readonly) NSString * _Nullable label __attribute__((swift_name("label"))); +@property (readonly) BridgeClientInt * _Nullable minutesToComplete __attribute__((swift_name("minutesToComplete"))); +@property (readonly) BridgeClientInt * _Nullable revision __attribute__((swift_name("revision"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AssessmentInfo.Companion"))) +@interface BridgeClientAssessmentInfoCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ClientInfo"))) @interface BridgeClientClientInfo : BridgeClientBase @@ -439,6 +751,35 @@ __attribute__((swift_name("ClientInfo.Companion"))) - (id)serializer __attribute__((swift_name("serializer()"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ColorScheme"))) +@interface BridgeClientColorScheme : BridgeClientBase +- (instancetype)initWithForeground:(NSString * _Nullable)foreground background:(NSString * _Nullable)background activated:(NSString * _Nullable)activated inactivated:(NSString * _Nullable)inactivated type:(NSString * _Nullable)type __attribute__((swift_name("init(foreground:background:activated:inactivated:type:)"))) __attribute__((objc_designated_initializer)); +- (NSString * _Nullable)component1 __attribute__((swift_name("component1()"))); +- (NSString * _Nullable)component2 __attribute__((swift_name("component2()"))); +- (NSString * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (NSString * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (NSString * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (BridgeClientColorScheme *)doCopyForeground:(NSString * _Nullable)foreground background:(NSString * _Nullable)background activated:(NSString * _Nullable)activated inactivated:(NSString * _Nullable)inactivated type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(foreground:background:activated:inactivated:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSString * _Nullable activated __attribute__((swift_name("activated"))); +@property (readonly) NSString * _Nullable background __attribute__((swift_name("background"))); +@property (readonly) NSString * _Nullable foreground __attribute__((swift_name("foreground"))); +@property (readonly) NSString * _Nullable inactivated __attribute__((swift_name("inactivated"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ColorScheme.Companion"))) +@interface BridgeClientColorSchemeCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ConsentStatus"))) @interface BridgeClientConsentStatus : BridgeClientBase @@ -517,6 +858,7 @@ __attribute__((swift_name("Environment"))) @property (class, readonly) BridgeClientEnvironment *develop __attribute__((swift_name("develop"))); @property (class, readonly) BridgeClientEnvironment *staging __attribute__((swift_name("staging"))); @property (class, readonly) BridgeClientEnvironment *production __attribute__((swift_name("production"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); @end; @@ -535,6 +877,107 @@ __attribute__((swift_name("Model"))) - (NSString *)getIdentifier __attribute__((swift_name("getIdentifier()"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NotificationInfo"))) +@interface BridgeClientNotificationInfo : BridgeClientBase +- (instancetype)initWithNotifyAt:(BridgeClientNotificationType *)notifyAt offset:(NSString * _Nullable)offset interval:(NSString * _Nullable)interval allowSnooze:(BridgeClientBoolean * _Nullable)allowSnooze message:(BridgeClientNotificationMessage * _Nullable)message type:(NSString * _Nullable)type __attribute__((swift_name("init(notifyAt:offset:interval:allowSnooze:message:type:)"))) __attribute__((objc_designated_initializer)); +- (BridgeClientNotificationType *)component1 __attribute__((swift_name("component1()"))); +- (NSString * _Nullable)component2 __attribute__((swift_name("component2()"))); +- (NSString * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (BridgeClientBoolean * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientNotificationMessage * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (NSString * _Nullable)component6 __attribute__((swift_name("component6()"))); +- (BridgeClientNotificationInfo *)doCopyNotifyAt:(BridgeClientNotificationType *)notifyAt offset:(NSString * _Nullable)offset interval:(NSString * _Nullable)interval allowSnooze:(BridgeClientBoolean * _Nullable)allowSnooze message:(BridgeClientNotificationMessage * _Nullable)message type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(notifyAt:offset:interval:allowSnooze:message:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BridgeClientBoolean * _Nullable allowSnooze __attribute__((swift_name("allowSnooze"))); +@property (readonly) NSString * _Nullable interval __attribute__((swift_name("interval"))); +@property (readonly) BridgeClientNotificationMessage * _Nullable message __attribute__((swift_name("message"))); +@property (readonly) BridgeClientNotificationType *notifyAt __attribute__((swift_name("notifyAt"))); +@property (readonly) NSString * _Nullable offset __attribute__((swift_name("offset"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NotificationInfo.Companion"))) +@interface BridgeClientNotificationInfoCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NotificationMessage"))) +@interface BridgeClientNotificationMessage : BridgeClientBase +- (instancetype)initWithSubject:(NSString *)subject message:(NSString *)message lang:(NSString * _Nullable)lang type:(NSString * _Nullable)type __attribute__((swift_name("init(subject:message:lang:type:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (NSString * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (NSString * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientNotificationMessage *)doCopySubject:(NSString *)subject message:(NSString *)message lang:(NSString * _Nullable)lang type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(subject:message:lang:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSString * _Nullable lang __attribute__((swift_name("lang"))); +@property (readonly) NSString *message __attribute__((swift_name("message"))); +@property (readonly) NSString *subject __attribute__((swift_name("subject"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NotificationMessage.Companion"))) +@interface BridgeClientNotificationMessageCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NotificationType"))) +@interface BridgeClientNotificationType : BridgeClientKotlinEnum ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); +- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +@property (class, readonly) BridgeClientNotificationType *afterWindowStart __attribute__((swift_name("afterWindowStart"))); +@property (class, readonly) BridgeClientNotificationType *beforeWindowEnd __attribute__((swift_name("beforeWindowEnd"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); +@property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NotificationType.Companion"))) +@interface BridgeClientNotificationTypeCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("PerformanceOrder"))) +@interface BridgeClientPerformanceOrder : BridgeClientKotlinEnum ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); +- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +@property (class, readonly) BridgeClientPerformanceOrder *participantChoice __attribute__((swift_name("participantChoice"))); +@property (class, readonly) BridgeClientPerformanceOrder *sequential __attribute__((swift_name("sequential"))); +@property (class, readonly) BridgeClientPerformanceOrder *randomized __attribute__((swift_name("randomized"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); +@property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("PerformanceOrder.Companion"))) +@interface BridgeClientPerformanceOrderCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Phone"))) @interface BridgeClientPhone : BridgeClientBase @@ -562,6 +1005,27 @@ __attribute__((swift_name("Phone.Companion"))) - (id)serializer __attribute__((swift_name("serializer()"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ReminderType"))) +@interface BridgeClientReminderType : BridgeClientKotlinEnum ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); +- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +@property (class, readonly) BridgeClientReminderType *afterWindowStart __attribute__((swift_name("afterWindowStart"))); +@property (class, readonly) BridgeClientReminderType *beforeWindowEnd __attribute__((swift_name("beforeWindowEnd"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); +@property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ReminderType.Companion"))) +@interface BridgeClientReminderTypeCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Role"))) @interface BridgeClientRole : BridgeClientKotlinEnum @@ -572,6 +1036,7 @@ __attribute__((swift_name("Role"))) @property (class, readonly) BridgeClientRole *researcher __attribute__((swift_name("researcher"))); @property (class, readonly) BridgeClientRole *admin __attribute__((swift_name("admin"))); @property (class, readonly) BridgeClientRole *worker __attribute__((swift_name("worker"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); @end; @@ -584,6 +1049,105 @@ __attribute__((swift_name("Role.Companion"))) - (id)serializer __attribute__((swift_name("serializer()"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduledAssessment"))) +@interface BridgeClientScheduledAssessment : BridgeClientBase +- (instancetype)initWithRefKey:(NSString *)refKey instanceGuid:(NSString *)instanceGuid type:(NSString * _Nullable)type __attribute__((swift_name("init(refKey:instanceGuid:type:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (NSString * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (BridgeClientScheduledAssessment *)doCopyRefKey:(NSString *)refKey instanceGuid:(NSString *)instanceGuid type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(refKey:instanceGuid:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) NSString *refKey __attribute__((swift_name("refKey"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduledAssessment.Companion"))) +@interface BridgeClientScheduledAssessmentCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduledSession"))) +@interface BridgeClientScheduledSession : BridgeClientBase +- (instancetype)initWithRefGuid:(NSString *)refGuid instanceGuid:(NSString *)instanceGuid startDay:(int32_t)startDay endDay:(int32_t)endDay startTime:(NSString *)startTime delayTime:(NSString * _Nullable)delayTime expiration:(BridgeClientKotlinx_datetimeDateTimePeriod *)expiration persistent:(BOOL)persistent assessments:(NSArray *)assessments type:(NSString * _Nullable)type __attribute__((swift_name("init(refGuid:instanceGuid:startDay:endDay:startTime:delayTime:expiration:persistent:assessments:type:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (NSString * _Nullable)component10 __attribute__((swift_name("component10()"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (int32_t)component3 __attribute__((swift_name("component3()"))); +- (int32_t)component4 __attribute__((swift_name("component4()"))); +- (NSString *)component5 __attribute__((swift_name("component5()"))); +- (NSString * _Nullable)component6 __attribute__((swift_name("component6()"))); +- (BridgeClientKotlinx_datetimeDateTimePeriod *)component7 __attribute__((swift_name("component7()"))); +- (BOOL)component8 __attribute__((swift_name("component8()"))); +- (NSArray *)component9 __attribute__((swift_name("component9()"))); +- (BridgeClientScheduledSession *)doCopyRefGuid:(NSString *)refGuid instanceGuid:(NSString *)instanceGuid startDay:(int32_t)startDay endDay:(int32_t)endDay startTime:(NSString *)startTime delayTime:(NSString * _Nullable)delayTime expiration:(BridgeClientKotlinx_datetimeDateTimePeriod *)expiration persistent:(BOOL)persistent assessments:(NSArray *)assessments type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(refGuid:instanceGuid:startDay:endDay:startTime:delayTime:expiration:persistent:assessments:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSArray *assessments __attribute__((swift_name("assessments"))); +@property (readonly) NSString * _Nullable delayTime __attribute__((swift_name("delayTime"))); +@property (readonly) int32_t endDay __attribute__((swift_name("endDay"))); +@property (readonly) BridgeClientKotlinx_datetimeDateTimePeriod *expiration __attribute__((swift_name("expiration"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) BOOL persistent __attribute__((swift_name("persistent"))); +@property (readonly) NSString *refGuid __attribute__((swift_name("refGuid"))); +@property (readonly) int32_t startDay __attribute__((swift_name("startDay"))); +@property (readonly) NSString *startTime __attribute__((swift_name("startTime"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduledSession.Companion"))) +@interface BridgeClientScheduledSessionCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("SessionInfo"))) +@interface BridgeClientSessionInfo : BridgeClientBase +- (instancetype)initWithGuid:(NSString *)guid label:(NSString *)label startEventId:(NSString *)startEventId performanceOrder:(BridgeClientPerformanceOrder *)performanceOrder timeWindowGuids:(NSArray * _Nullable)timeWindowGuids minutesToComplete:(BridgeClientInt * _Nullable)minutesToComplete notifications:(NSArray * _Nullable)notifications type:(NSString * _Nullable)type __attribute__((swift_name("init(guid:label:startEventId:performanceOrder:timeWindowGuids:minutesToComplete:notifications:type:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (NSString *)component3 __attribute__((swift_name("component3()"))); +- (BridgeClientPerformanceOrder *)component4 __attribute__((swift_name("component4()"))); +- (NSArray * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (BridgeClientInt * _Nullable)component6 __attribute__((swift_name("component6()"))); +- (NSArray * _Nullable)component7 __attribute__((swift_name("component7()"))); +- (NSString * _Nullable)component8 __attribute__((swift_name("component8()"))); +- (BridgeClientSessionInfo *)doCopyGuid:(NSString *)guid label:(NSString *)label startEventId:(NSString *)startEventId performanceOrder:(BridgeClientPerformanceOrder *)performanceOrder timeWindowGuids:(NSArray * _Nullable)timeWindowGuids minutesToComplete:(BridgeClientInt * _Nullable)minutesToComplete notifications:(NSArray * _Nullable)notifications type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(guid:label:startEventId:performanceOrder:timeWindowGuids:minutesToComplete:notifications:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSString *guid __attribute__((swift_name("guid"))); +@property (readonly) NSString *label __attribute__((swift_name("label"))); +@property (readonly) BridgeClientInt * _Nullable minutesToComplete __attribute__((swift_name("minutesToComplete"))); +@property (readonly) NSArray * _Nullable notifications __attribute__((swift_name("notifications"))); +@property (readonly) BridgeClientPerformanceOrder *performanceOrder __attribute__((swift_name("performanceOrder"))); +@property (readonly) NSString *startEventId __attribute__((swift_name("startEventId"))); +@property (readonly) NSArray * _Nullable timeWindowGuids __attribute__((swift_name("timeWindowGuids"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("SessionInfo.Companion"))) +@interface BridgeClientSessionInfoCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("SharingScope"))) @interface BridgeClientSharingScope : BridgeClientKotlinEnum @@ -593,6 +1157,7 @@ __attribute__((swift_name("SharingScope"))) @property (class, readonly) BridgeClientSharingScope *noSharing __attribute__((swift_name("noSharing"))); @property (class, readonly) BridgeClientSharingScope *sponsorsAndPartners __attribute__((swift_name("sponsorsAndPartners"))); @property (class, readonly) BridgeClientSharingScope *allQualifiedResearchers __attribute__((swift_name("allQualifiedResearchers"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); @end; @@ -605,10 +1170,116 @@ __attribute__((swift_name("SharingScope.Companion"))) - (id)serializer __attribute__((swift_name("serializer()"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("SortOrder"))) +@interface BridgeClientSortOrder : BridgeClientKotlinEnum ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); +- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +@property (class, readonly) BridgeClientSortOrder *asc __attribute__((swift_name("asc"))); +@property (class, readonly) BridgeClientSortOrder *desc __attribute__((swift_name("desc"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); +@property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("SortOrder.Companion"))) +@interface BridgeClientSortOrderCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("StudyActivityEvent"))) +@interface BridgeClientStudyActivityEvent : BridgeClientBase +- (instancetype)initWithEventId:(NSString *)eventId timestamp:(BridgeClientKotlinx_datetimeInstant *)timestamp answerValue:(NSString * _Nullable)answerValue clientTimeZone:(NSString * _Nullable)clientTimeZone recordCount:(BridgeClientInt * _Nullable)recordCount createdOn:(NSString * _Nullable)createdOn type:(NSString * _Nullable)type __attribute__((swift_name("init(eventId:timestamp:answerValue:clientTimeZone:recordCount:createdOn:type:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (BridgeClientKotlinx_datetimeInstant *)component2 __attribute__((swift_name("component2()"))); +- (NSString * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (NSString * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientInt * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (NSString * _Nullable)component6 __attribute__((swift_name("component6()"))); +- (NSString * _Nullable)component7 __attribute__((swift_name("component7()"))); +- (BridgeClientStudyActivityEvent *)doCopyEventId:(NSString *)eventId timestamp:(BridgeClientKotlinx_datetimeInstant *)timestamp answerValue:(NSString * _Nullable)answerValue clientTimeZone:(NSString * _Nullable)clientTimeZone recordCount:(BridgeClientInt * _Nullable)recordCount createdOn:(NSString * _Nullable)createdOn type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(eventId:timestamp:answerValue:clientTimeZone:recordCount:createdOn:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSString * _Nullable answerValue __attribute__((swift_name("answerValue"))); +@property (readonly) NSString * _Nullable clientTimeZone __attribute__((swift_name("clientTimeZone"))); +@property (readonly) NSString * _Nullable createdOn __attribute__((swift_name("createdOn"))); +@property (readonly) NSString *eventId __attribute__((swift_name("eventId"))); +@property (readonly) BridgeClientInt * _Nullable recordCount __attribute__((swift_name("recordCount"))); +@property (readonly) BridgeClientKotlinx_datetimeInstant *timestamp __attribute__((swift_name("timestamp"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("StudyActivityEvent.Companion"))) +@interface BridgeClientStudyActivityEventCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("StudyActivityEventList"))) +@interface BridgeClientStudyActivityEventList : BridgeClientBase +- (instancetype)initWithItems:(NSArray * _Nullable)items type:(NSString * _Nullable)type __attribute__((swift_name("init(items:type:)"))) __attribute__((objc_designated_initializer)); +- (NSArray * _Nullable)component1 __attribute__((swift_name("component1()"))); +- (NSString * _Nullable)component2 __attribute__((swift_name("component2()"))); +- (BridgeClientStudyActivityEventList *)doCopyItems:(NSArray * _Nullable)items type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(items:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSArray * _Nullable items __attribute__((swift_name("items"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("StudyActivityEventList.Companion"))) +@interface BridgeClientStudyActivityEventListCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("Timeline"))) +@interface BridgeClientTimeline : BridgeClientBase +- (instancetype)initWithDuration:(BridgeClientKotlinx_datetimeDateTimePeriod *)duration schedule:(NSArray * _Nullable)schedule assessments:(NSArray * _Nullable)assessments sessions:(NSArray * _Nullable)sessions type:(NSString * _Nullable)type __attribute__((swift_name("init(duration:schedule:assessments:sessions:type:)"))) __attribute__((objc_designated_initializer)); +- (BridgeClientKotlinx_datetimeDateTimePeriod *)component1 __attribute__((swift_name("component1()"))); +- (NSArray * _Nullable)component2 __attribute__((swift_name("component2()"))); +- (NSArray * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (NSArray * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (NSString * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (BridgeClientTimeline *)doCopyDuration:(BridgeClientKotlinx_datetimeDateTimePeriod *)duration schedule:(NSArray * _Nullable)schedule assessments:(NSArray * _Nullable)assessments sessions:(NSArray * _Nullable)sessions type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(duration:schedule:assessments:sessions:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSArray * _Nullable assessments __attribute__((swift_name("assessments"))); +@property (readonly) BridgeClientKotlinx_datetimeDateTimePeriod *duration __attribute__((swift_name("duration"))); +@property (readonly) NSArray * _Nullable schedule __attribute__((swift_name("schedule"))); +@property (readonly) NSArray * _Nullable sessions __attribute__((swift_name("sessions"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("Timeline.Companion"))) +@interface BridgeClientTimelineCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("UserSessionInfo"))) @interface BridgeClientUserSessionInfo : BridgeClientBase -- (instancetype)initWithFirstName:(NSString * _Nullable)firstName lastName:(NSString * _Nullable)lastName externalId:(NSString * _Nullable)externalId id:(NSString * _Nullable)id notifyByEmail:(BridgeClientBoolean * _Nullable)notifyByEmail attributes:(NSDictionary * _Nullable)attributes sharingScope:(BridgeClientSharingScope * _Nullable)sharingScope createdOn:(NSString * _Nullable)createdOn emailVerified:(BridgeClientBoolean * _Nullable)emailVerified phoneVerified:(BridgeClientBoolean * _Nullable)phoneVerified status:(BridgeClientAccountStatus * _Nullable)status roles:(NSArray * _Nullable)roles dataGroups:(NSArray * _Nullable)dataGroups clientData:(BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)clientData languages:(NSArray * _Nullable)languages substudyIds:(NSArray * _Nullable)substudyIds externalIds:(NSDictionary * _Nullable)externalIds authenticated:(BridgeClientBoolean * _Nullable)authenticated sessionToken:(NSString * _Nullable)sessionToken reauthToken:(NSString * _Nullable)reauthToken environment:(BridgeClientEnvironment * _Nullable)environment email:(NSString * _Nullable)email phone:(BridgeClientPhone * _Nullable)phone dataSharing:(BridgeClientBoolean * _Nullable)dataSharing signedMostRecentConsent:(BridgeClientBoolean * _Nullable)signedMostRecentConsent synapseUserId:(NSString * _Nullable)synapseUserId consented:(BOOL)consented consentStatuses:(NSDictionary * _Nullable)consentStatuses type:(NSString * _Nullable)type __attribute__((swift_name("init(firstName:lastName:externalId:id:notifyByEmail:attributes:sharingScope:createdOn:emailVerified:phoneVerified:status:roles:dataGroups:clientData:languages:substudyIds:externalIds:authenticated:sessionToken:reauthToken:environment:email:phone:dataSharing:signedMostRecentConsent:synapseUserId:consented:consentStatuses:type:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithFirstName:(NSString * _Nullable)firstName lastName:(NSString * _Nullable)lastName externalId:(NSString * _Nullable)externalId id:(NSString * _Nullable)id notifyByEmail:(BridgeClientBoolean * _Nullable)notifyByEmail attributes:(NSDictionary * _Nullable)attributes sharingScope:(BridgeClientSharingScope * _Nullable)sharingScope createdOn:(NSString * _Nullable)createdOn emailVerified:(BridgeClientBoolean * _Nullable)emailVerified phoneVerified:(BridgeClientBoolean * _Nullable)phoneVerified status:(BridgeClientAccountStatus * _Nullable)status roles:(NSArray * _Nullable)roles dataGroups:(NSArray * _Nullable)dataGroups clientData:(BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)clientData languages:(NSArray * _Nullable)languages studyIds:(NSArray *)studyIds externalIds:(NSDictionary * _Nullable)externalIds authenticated:(BOOL)authenticated sessionToken:(NSString *)sessionToken reauthToken:(NSString * _Nullable)reauthToken environment:(BridgeClientEnvironment * _Nullable)environment email:(NSString * _Nullable)email phone:(BridgeClientPhone * _Nullable)phone dataSharing:(BridgeClientBoolean * _Nullable)dataSharing signedMostRecentConsent:(BridgeClientBoolean * _Nullable)signedMostRecentConsent synapseUserId:(NSString * _Nullable)synapseUserId consented:(BOOL)consented consentStatuses:(NSDictionary * _Nullable)consentStatuses orgMembership:(NSString * _Nullable)orgMembership type:(NSString * _Nullable)type __attribute__((swift_name("init(firstName:lastName:externalId:id:notifyByEmail:attributes:sharingScope:createdOn:emailVerified:phoneVerified:status:roles:dataGroups:clientData:languages:studyIds:externalIds:authenticated:sessionToken:reauthToken:environment:email:phone:dataSharing:signedMostRecentConsent:synapseUserId:consented:consentStatuses:orgMembership:type:)"))) __attribute__((objc_designated_initializer)); - (NSString * _Nullable)component1 __attribute__((swift_name("component1()"))); - (BridgeClientBoolean * _Nullable)component10 __attribute__((swift_name("component10()"))); - (BridgeClientAccountStatus * _Nullable)component11 __attribute__((swift_name("component11()"))); @@ -616,10 +1287,10 @@ __attribute__((swift_name("UserSessionInfo"))) - (NSArray * _Nullable)component13 __attribute__((swift_name("component13()"))); - (BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)component14 __attribute__((swift_name("component14()"))); - (NSArray * _Nullable)component15 __attribute__((swift_name("component15()"))); -- (NSArray * _Nullable)component16 __attribute__((swift_name("component16()"))); +- (NSArray *)component16 __attribute__((swift_name("component16()"))); - (NSDictionary * _Nullable)component17 __attribute__((swift_name("component17()"))); -- (BridgeClientBoolean * _Nullable)component18 __attribute__((swift_name("component18()"))); -- (NSString * _Nullable)component19 __attribute__((swift_name("component19()"))); +- (BOOL)component18 __attribute__((swift_name("component18()"))); +- (NSString *)component19 __attribute__((swift_name("component19()"))); - (NSString * _Nullable)component2 __attribute__((swift_name("component2()"))); - (NSString * _Nullable)component20 __attribute__((swift_name("component20()"))); - (BridgeClientEnvironment * _Nullable)component21 __attribute__((swift_name("component21()"))); @@ -632,18 +1303,19 @@ __attribute__((swift_name("UserSessionInfo"))) - (NSDictionary * _Nullable)component28 __attribute__((swift_name("component28()"))); - (NSString * _Nullable)component29 __attribute__((swift_name("component29()"))); - (NSString * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (NSString * _Nullable)component30 __attribute__((swift_name("component30()"))); - (NSString * _Nullable)component4 __attribute__((swift_name("component4()"))); - (BridgeClientBoolean * _Nullable)component5 __attribute__((swift_name("component5()"))); - (NSDictionary * _Nullable)component6 __attribute__((swift_name("component6()"))); - (BridgeClientSharingScope * _Nullable)component7 __attribute__((swift_name("component7()"))); - (NSString * _Nullable)component8 __attribute__((swift_name("component8()"))); - (BridgeClientBoolean * _Nullable)component9 __attribute__((swift_name("component9()"))); -- (BridgeClientUserSessionInfo *)doCopyFirstName:(NSString * _Nullable)firstName lastName:(NSString * _Nullable)lastName externalId:(NSString * _Nullable)externalId id:(NSString * _Nullable)id notifyByEmail:(BridgeClientBoolean * _Nullable)notifyByEmail attributes:(NSDictionary * _Nullable)attributes sharingScope:(BridgeClientSharingScope * _Nullable)sharingScope createdOn:(NSString * _Nullable)createdOn emailVerified:(BridgeClientBoolean * _Nullable)emailVerified phoneVerified:(BridgeClientBoolean * _Nullable)phoneVerified status:(BridgeClientAccountStatus * _Nullable)status roles:(NSArray * _Nullable)roles dataGroups:(NSArray * _Nullable)dataGroups clientData:(BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)clientData languages:(NSArray * _Nullable)languages substudyIds:(NSArray * _Nullable)substudyIds externalIds:(NSDictionary * _Nullable)externalIds authenticated:(BridgeClientBoolean * _Nullable)authenticated sessionToken:(NSString * _Nullable)sessionToken reauthToken:(NSString * _Nullable)reauthToken environment:(BridgeClientEnvironment * _Nullable)environment email:(NSString * _Nullable)email phone:(BridgeClientPhone * _Nullable)phone dataSharing:(BridgeClientBoolean * _Nullable)dataSharing signedMostRecentConsent:(BridgeClientBoolean * _Nullable)signedMostRecentConsent synapseUserId:(NSString * _Nullable)synapseUserId consented:(BOOL)consented consentStatuses:(NSDictionary * _Nullable)consentStatuses type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(firstName:lastName:externalId:id:notifyByEmail:attributes:sharingScope:createdOn:emailVerified:phoneVerified:status:roles:dataGroups:clientData:languages:substudyIds:externalIds:authenticated:sessionToken:reauthToken:environment:email:phone:dataSharing:signedMostRecentConsent:synapseUserId:consented:consentStatuses:type:)"))); +- (BridgeClientUserSessionInfo *)doCopyFirstName:(NSString * _Nullable)firstName lastName:(NSString * _Nullable)lastName externalId:(NSString * _Nullable)externalId id:(NSString * _Nullable)id notifyByEmail:(BridgeClientBoolean * _Nullable)notifyByEmail attributes:(NSDictionary * _Nullable)attributes sharingScope:(BridgeClientSharingScope * _Nullable)sharingScope createdOn:(NSString * _Nullable)createdOn emailVerified:(BridgeClientBoolean * _Nullable)emailVerified phoneVerified:(BridgeClientBoolean * _Nullable)phoneVerified status:(BridgeClientAccountStatus * _Nullable)status roles:(NSArray * _Nullable)roles dataGroups:(NSArray * _Nullable)dataGroups clientData:(BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)clientData languages:(NSArray * _Nullable)languages studyIds:(NSArray *)studyIds externalIds:(NSDictionary * _Nullable)externalIds authenticated:(BOOL)authenticated sessionToken:(NSString *)sessionToken reauthToken:(NSString * _Nullable)reauthToken environment:(BridgeClientEnvironment * _Nullable)environment email:(NSString * _Nullable)email phone:(BridgeClientPhone * _Nullable)phone dataSharing:(BridgeClientBoolean * _Nullable)dataSharing signedMostRecentConsent:(BridgeClientBoolean * _Nullable)signedMostRecentConsent synapseUserId:(NSString * _Nullable)synapseUserId consented:(BOOL)consented consentStatuses:(NSDictionary * _Nullable)consentStatuses orgMembership:(NSString * _Nullable)orgMembership type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(firstName:lastName:externalId:id:notifyByEmail:attributes:sharingScope:createdOn:emailVerified:phoneVerified:status:roles:dataGroups:clientData:languages:studyIds:externalIds:authenticated:sessionToken:reauthToken:environment:email:phone:dataSharing:signedMostRecentConsent:synapseUserId:consented:consentStatuses:orgMembership:type:)"))); - (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); - (NSUInteger)hash __attribute__((swift_name("hash()"))); - (NSString *)description __attribute__((swift_name("description()"))); @property (readonly) NSDictionary * _Nullable attributes __attribute__((swift_name("attributes"))); -@property (readonly) BridgeClientBoolean * _Nullable authenticated __attribute__((swift_name("authenticated"))); +@property (readonly) BOOL authenticated __attribute__((swift_name("authenticated"))); @property (readonly) BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable clientData __attribute__((swift_name("clientData"))); @property (readonly) NSDictionary * _Nullable consentStatuses __attribute__((swift_name("consentStatuses"))); @property (readonly) BOOL consented __attribute__((swift_name("consented"))); @@ -660,15 +1332,16 @@ __attribute__((swift_name("UserSessionInfo"))) @property (readonly) NSArray * _Nullable languages __attribute__((swift_name("languages"))); @property (readonly) NSString * _Nullable lastName __attribute__((swift_name("lastName"))); @property (readonly) BridgeClientBoolean * _Nullable notifyByEmail __attribute__((swift_name("notifyByEmail"))); +@property (readonly) NSString * _Nullable orgMembership __attribute__((swift_name("orgMembership"))); @property (readonly) BridgeClientPhone * _Nullable phone __attribute__((swift_name("phone"))); @property (readonly) BridgeClientBoolean * _Nullable phoneVerified __attribute__((swift_name("phoneVerified"))); @property (readonly) NSString * _Nullable reauthToken __attribute__((swift_name("reauthToken"))); @property (readonly) NSArray * _Nullable roles __attribute__((swift_name("roles"))); -@property (readonly) NSString * _Nullable sessionToken __attribute__((swift_name("sessionToken"))); +@property (readonly) NSString *sessionToken __attribute__((swift_name("sessionToken"))); @property (readonly) BridgeClientSharingScope * _Nullable sharingScope __attribute__((swift_name("sharingScope"))); @property (readonly) BridgeClientBoolean * _Nullable signedMostRecentConsent __attribute__((swift_name("signedMostRecentConsent"))); @property (readonly) BridgeClientAccountStatus * _Nullable status __attribute__((swift_name("status"))); -@property (readonly) NSArray * _Nullable substudyIds __attribute__((swift_name("substudyIds"))); +@property (readonly) NSArray *studyIds __attribute__((swift_name("studyIds"))); @property (readonly) NSString * _Nullable synapseUserId __attribute__((swift_name("synapseUserId"))); @property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); @end; @@ -690,7 +1363,7 @@ __attribute__((swift_name("AbstractApi"))) @note This method converts instances of CancellationException to errors. Other uncaught Kotlin exceptions are fatal. */ -- (void)getDataPath:(NSString *)path completionHandler:(void (^)(id _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("getData(path:completionHandler:)"))); +- (void)getDataPath:(NSString *)path modifiedDateTimeString:(NSString * _Nullable)modifiedDateTimeString completionHandler:(void (^)(id _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("getData(path:modifiedDateTimeString:completionHandler:)"))); /** @note This method converts instances of CancellationException to errors. @@ -806,14 +1479,20 @@ __attribute__((swift_name("BridgeResourceDatabaseCompanion"))) __attribute__((swift_name("BridgeResourceDatabaseQueries"))) @protocol BridgeClientBridgeResourceDatabaseQueries @required -- (void)insertUpdateResourceIdentifier:(NSString *)identifier type:(BridgeClientResourceType *)type json:(NSString * _Nullable)json lastUpdate:(int64_t)lastUpdate status:(BridgeClientResourceStatus *)status __attribute__((swift_name("insertUpdateResource(identifier:type:json:lastUpdate:status:)"))); +- (void)insertUpdateResourceIdentifier:(NSString *)identifier secondaryId:(NSString *)secondaryId type:(BridgeClientResourceType *)type studyId:(NSString *)studyId json:(NSString * _Nullable)json lastUpdate:(int64_t)lastUpdate status:(BridgeClientResourceStatus *)status needSave:(BOOL)needSave __attribute__((swift_name("insertUpdateResource(identifier:secondaryId:type:studyId:json:lastUpdate:status:needSave:)"))); - (void)removeAllResources __attribute__((swift_name("removeAllResources()"))); -- (void)removeAllResourcesByTypeType:(BridgeClientResourceType *)type __attribute__((swift_name("removeAllResourcesByType(type:)"))); -- (void)removeResourceByIdIdentifier:(NSString *)identifier __attribute__((swift_name("removeResourceById(identifier:)"))); -- (BridgeClientRuntimeQuery *)selectAllResourcesByTypeType:(BridgeClientResourceType *)type __attribute__((swift_name("selectAllResourcesByType(type:)"))); -- (BridgeClientRuntimeQuery *)selectAllResourcesByTypeType:(BridgeClientResourceType *)type mapper:(id (^)(NSString *, BridgeClientResourceType *, NSString * _Nullable, BridgeClientLong *, BridgeClientResourceStatus *))mapper __attribute__((swift_name("selectAllResourcesByType(type:mapper:)"))); -- (BridgeClientRuntimeQuery *)selectResourceByIdIdentifier:(NSString *)identifier __attribute__((swift_name("selectResourceById(identifier:)"))); -- (BridgeClientRuntimeQuery *)selectResourceByIdIdentifier:(NSString *)identifier mapper:(id (^)(NSString *, BridgeClientResourceType *, NSString * _Nullable, BridgeClientLong *, BridgeClientResourceStatus *))mapper __attribute__((swift_name("selectResourceById(identifier:mapper:)"))); +- (void)removeAllResourcesByTypeType:(BridgeClientResourceType *)type studyId:(NSString *)studyId __attribute__((swift_name("removeAllResourcesByType(type:studyId:)"))); +- (void)removeResourceByIdIdentifier:(NSString *)identifier type:(BridgeClientResourceType *)type studyId:(NSString *)studyId __attribute__((swift_name("removeResourceById(identifier:type:studyId:)"))); +- (BridgeClientRuntimeQuery *)selectAllResourcesByTypeType:(BridgeClientResourceType *)type studyId:(NSString *)studyId __attribute__((swift_name("selectAllResourcesByType(type:studyId:)"))); +- (BridgeClientRuntimeQuery *)selectAllResourcesByTypeType:(BridgeClientResourceType *)type studyId:(NSString *)studyId mapper:(id (^)(NSString *, NSString *, BridgeClientResourceType *, NSString *, NSString * _Nullable, BridgeClientLong *, BridgeClientResourceStatus *, BridgeClientBoolean *))mapper __attribute__((swift_name("selectAllResourcesByType(type:studyId:mapper:)"))); +- (BridgeClientRuntimeQuery *)selectResourceByIdIdentifier:(NSString *)identifier type:(BridgeClientResourceType *)type studyId:(NSString *)studyId __attribute__((swift_name("selectResourceById(identifier:type:studyId:)"))); +- (BridgeClientRuntimeQuery *)selectResourceByIdIdentifier:(NSString *)identifier type:(BridgeClientResourceType *)type studyId:(NSString *)studyId mapper:(id (^)(NSString *, NSString *, BridgeClientResourceType *, NSString *, NSString * _Nullable, BridgeClientLong *, BridgeClientResourceStatus *, BridgeClientBoolean *))mapper __attribute__((swift_name("selectResourceById(identifier:type:studyId:mapper:)"))); +- (BridgeClientRuntimeQuery *)selectResourceByIdsIdentifier:(id)identifier type:(BridgeClientResourceType *)type studyId:(NSString *)studyId __attribute__((swift_name("selectResourceByIds(identifier:type:studyId:)"))); +- (BridgeClientRuntimeQuery *)selectResourceByIdsIdentifier:(id)identifier type:(BridgeClientResourceType *)type studyId:(NSString *)studyId mapper:(id (^)(NSString *, NSString *, BridgeClientResourceType *, NSString *, NSString * _Nullable, BridgeClientLong *, BridgeClientResourceStatus *, BridgeClientBoolean *))mapper __attribute__((swift_name("selectResourceByIds(identifier:type:studyId:mapper:)"))); +- (BridgeClientRuntimeQuery *)selectResourceBySecondaryIdSecondaryId:(NSString *)secondaryId type:(BridgeClientResourceType *)type studyId:(NSString *)studyId __attribute__((swift_name("selectResourceBySecondaryId(secondaryId:type:studyId:)"))); +- (BridgeClientRuntimeQuery *)selectResourceBySecondaryIdSecondaryId:(NSString *)secondaryId type:(BridgeClientResourceType *)type studyId:(NSString *)studyId mapper:(id (^)(NSString *, NSString *, BridgeClientResourceType *, NSString *, NSString * _Nullable, BridgeClientLong *, BridgeClientResourceStatus *, BridgeClientBoolean *))mapper __attribute__((swift_name("selectResourceBySecondaryId(secondaryId:type:studyId:mapper:)"))); +- (BridgeClientRuntimeQuery *)selectResourceNeedSaveType:(BridgeClientResourceType *)type studyId:(NSString *)studyId __attribute__((swift_name("selectResourceNeedSave(type:studyId:)"))); +- (BridgeClientRuntimeQuery *)selectResourceNeedSaveType:(BridgeClientResourceType *)type studyId:(NSString *)studyId mapper:(id (^)(NSString *, NSString *, BridgeClientResourceType *, NSString *, NSString * _Nullable, BridgeClientLong *, BridgeClientResourceStatus *, BridgeClientBoolean *))mapper __attribute__((swift_name("selectResourceNeedSave(type:studyId:mapper:)"))); @end; __attribute__((swift_name("DbDriverFactory"))) @@ -833,20 +1512,26 @@ __attribute__((swift_name("DatabaseDriverFactory"))) __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Resource"))) @interface BridgeClientResource : BridgeClientBase -- (instancetype)initWithIdentifier:(NSString *)identifier type:(BridgeClientResourceType *)type json:(NSString * _Nullable)json lastUpdate:(int64_t)lastUpdate status:(BridgeClientResourceStatus *)status __attribute__((swift_name("init(identifier:type:json:lastUpdate:status:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithIdentifier:(NSString *)identifier secondaryId:(NSString *)secondaryId type:(BridgeClientResourceType *)type studyId:(NSString *)studyId json:(NSString * _Nullable)json lastUpdate:(int64_t)lastUpdate status:(BridgeClientResourceStatus *)status needSave:(BOOL)needSave __attribute__((swift_name("init(identifier:secondaryId:type:studyId:json:lastUpdate:status:needSave:)"))) __attribute__((objc_designated_initializer)); - (NSString *)component1 __attribute__((swift_name("component1()"))); -- (BridgeClientResourceType *)component2 __attribute__((swift_name("component2()"))); -- (NSString * _Nullable)component3 __attribute__((swift_name("component3()"))); -- (int64_t)component4 __attribute__((swift_name("component4()"))); -- (BridgeClientResourceStatus *)component5 __attribute__((swift_name("component5()"))); -- (BridgeClientResource *)doCopyIdentifier:(NSString *)identifier type:(BridgeClientResourceType *)type json:(NSString * _Nullable)json lastUpdate:(int64_t)lastUpdate status:(BridgeClientResourceStatus *)status __attribute__((swift_name("doCopy(identifier:type:json:lastUpdate:status:)"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (BridgeClientResourceType *)component3 __attribute__((swift_name("component3()"))); +- (NSString *)component4 __attribute__((swift_name("component4()"))); +- (NSString * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (int64_t)component6 __attribute__((swift_name("component6()"))); +- (BridgeClientResourceStatus *)component7 __attribute__((swift_name("component7()"))); +- (BOOL)component8 __attribute__((swift_name("component8()"))); +- (BridgeClientResource *)doCopyIdentifier:(NSString *)identifier secondaryId:(NSString *)secondaryId type:(BridgeClientResourceType *)type studyId:(NSString *)studyId json:(NSString * _Nullable)json lastUpdate:(int64_t)lastUpdate status:(BridgeClientResourceStatus *)status needSave:(BOOL)needSave __attribute__((swift_name("doCopy(identifier:secondaryId:type:studyId:json:lastUpdate:status:needSave:)"))); - (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); - (NSUInteger)hash __attribute__((swift_name("hash()"))); - (NSString *)description __attribute__((swift_name("description()"))); @property (readonly) NSString *identifier __attribute__((swift_name("identifier"))); @property (readonly) NSString * _Nullable json __attribute__((swift_name("json"))); @property (readonly) int64_t lastUpdate __attribute__((swift_name("lastUpdate"))); +@property (readonly) BOOL needSave __attribute__((swift_name("needSave"))); +@property (readonly) NSString *secondaryId __attribute__((swift_name("secondaryId"))); @property (readonly) BridgeClientResourceStatus *status __attribute__((swift_name("status"))); +@property (readonly) NSString *studyId __attribute__((swift_name("studyId"))); @property (readonly) BridgeClientResourceType *type __attribute__((swift_name("type"))); @end; @@ -864,6 +1549,16 @@ __attribute__((swift_name("ResourceDatabaseHelper"))) - (instancetype)initWithSqlDriver:(id)sqlDriver __attribute__((swift_name("init(sqlDriver:)"))) __attribute__((objc_designated_initializer)); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ResourceDatabaseHelper.Companion"))) +@interface BridgeClientResourceDatabaseHelperCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +@property (readonly) NSString *APP_WIDE_STUDY_ID __attribute__((swift_name("APP_WIDE_STUDY_ID"))); +@property (readonly) NSString *DEFAULT_SECONDARY_ID __attribute__((swift_name("DEFAULT_SECONDARY_ID"))); +@end; + __attribute__((swift_name("ResourceResult"))) @interface BridgeClientResourceResult<__covariant T> : BridgeClientBase @end; @@ -912,6 +1607,7 @@ __attribute__((swift_name("ResourceStatus"))) @property (class, readonly) BridgeClientResourceStatus *pending __attribute__((swift_name("pending"))); @property (class, readonly) BridgeClientResourceStatus *retry __attribute__((swift_name("retry"))); @property (class, readonly) BridgeClientResourceStatus *failed __attribute__((swift_name("failed"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @end; __attribute__((objc_subclassing_restricted)) @@ -925,12 +1621,18 @@ __attribute__((swift_name("ResourceType"))) @property (class, readonly) BridgeClientResourceType *uploadSession __attribute__((swift_name("uploadSession"))); @property (class, readonly) BridgeClientResourceType *fileUpload __attribute__((swift_name("fileUpload"))); @property (class, readonly) BridgeClientResourceType *userSessionInfo __attribute__((swift_name("userSessionInfo"))); +@property (class, readonly) BridgeClientResourceType *timeline __attribute__((swift_name("timeline"))); +@property (class, readonly) BridgeClientResourceType *activityEventsList __attribute__((swift_name("activityEventsList"))); +@property (class, readonly) BridgeClientResourceType *adherenceRecord __attribute__((swift_name("adherenceRecord"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @end; __attribute__((swift_name("AbstractResourceRepo"))) @interface BridgeClientAbstractResourceRepo : BridgeClientBase - (instancetype)initWithDatabase:(BridgeClientResourceDatabaseHelper *)database resourceType:(BridgeClientResourceType *)resourceType backgroundScope:(id)backgroundScope __attribute__((swift_name("init(database:resourceType:backgroundScope:)"))) __attribute__((objc_designated_initializer)); +@property (readonly) id backgroundScope __attribute__((swift_name("backgroundScope"))); @property (readonly) BridgeClientResourceDatabaseHelper *database __attribute__((swift_name("database"))); +@property (readonly) BridgeClientResourceType *resourceType __attribute__((swift_name("resourceType"))); @end; __attribute__((objc_subclassing_restricted)) @@ -943,12 +1645,46 @@ __attribute__((swift_name("AbstractResourceRepo.Companion"))) @property (readonly) int32_t defaultUpdateFrequency __attribute__((swift_name("defaultUpdateFrequency"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ActivityEventsRepo"))) +@interface BridgeClientActivityEventsRepo : BridgeClientAbstractResourceRepo +- (instancetype)initWithHttpClient:(BridgeClientKtor_client_coreHttpClient *)httpClient databaseHelper:(BridgeClientResourceDatabaseHelper *)databaseHelper backgroundScope:(id)backgroundScope __attribute__((swift_name("init(httpClient:databaseHelper:backgroundScope:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithDatabase:(BridgeClientResourceDatabaseHelper *)database resourceType:(BridgeClientResourceType *)resourceType backgroundScope:(id)backgroundScope __attribute__((swift_name("init(database:resourceType:backgroundScope:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +- (id)getActivityEventsStudyId:(NSString *)studyId __attribute__((swift_name("getActivityEvents(studyId:)"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ActivityEventsRepo.Companion"))) +@interface BridgeClientActivityEventsRepoCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +@property (readonly) NSString *ACTIVITY_EVENTS_LIST_ID __attribute__((swift_name("ACTIVITY_EVENTS_LIST_ID"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecordRepo"))) +@interface BridgeClientAdherenceRecordRepo : BridgeClientAbstractResourceRepo +- (instancetype)initWithHttpClient:(BridgeClientKtor_client_coreHttpClient *)httpClient databaseHelper:(BridgeClientResourceDatabaseHelper *)databaseHelper backgroundScope:(id)backgroundScope __attribute__((swift_name("init(httpClient:databaseHelper:backgroundScope:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithDatabase:(BridgeClientResourceDatabaseHelper *)database resourceType:(BridgeClientResourceType *)resourceType backgroundScope:(id)backgroundScope __attribute__((swift_name("init(database:resourceType:backgroundScope:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +- (void)createUpdateAdherenceRecordAdherenceRecord:(BridgeClientAdherenceRecord *)adherenceRecord studyId:(NSString *)studyId __attribute__((swift_name("createUpdateAdherenceRecord(adherenceRecord:studyId:)"))); +- (id)getAllCachedAdherenceRecordsStudyId:(NSString *)studyId __attribute__((swift_name("getAllCachedAdherenceRecords(studyId:)"))); +- (NSDictionary *> *)getCachedAdherenceRecordsInstanceIds:(NSArray *)instanceIds studyId:(NSString *)studyId __attribute__((swift_name("getCachedAdherenceRecords(instanceIds:studyId:)"))); + +/** + @note This method converts instances of CancellationException to errors. + Other uncaught Kotlin exceptions are fatal. +*/ +- (void)loadRemoteAdherenceRecordsStudyId:(NSString *)studyId completionHandler:(void (^)(BridgeClientBoolean * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("loadRemoteAdherenceRecords(studyId:completionHandler:)"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("AppConfigRepo"))) @interface BridgeClientAppConfigRepo : BridgeClientAbstractResourceRepo -- (instancetype)initWithHttpClient:(BridgeClientKtor_client_coreHttpClient *)httpClient databaseHelper:(BridgeClientResourceDatabaseHelper *)databaseHelper backgroundScope:(id)backgroundScope __attribute__((swift_name("init(httpClient:databaseHelper:backgroundScope:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithHttpClient:(BridgeClientKtor_client_coreHttpClient *)httpClient databaseHelper:(BridgeClientResourceDatabaseHelper *)databaseHelper backgroundScope:(id)backgroundScope bridgeConfig:(id)bridgeConfig __attribute__((swift_name("init(httpClient:databaseHelper:backgroundScope:bridgeConfig:)"))) __attribute__((objc_designated_initializer)); - (instancetype)initWithDatabase:(BridgeClientResourceDatabaseHelper *)database resourceType:(BridgeClientResourceType *)resourceType backgroundScope:(id)backgroundScope __attribute__((swift_name("init(database:resourceType:backgroundScope:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -- (id)getAppConfigAppId:(NSString *)appId __attribute__((swift_name("getAppConfig(appId:)"))); +- (id)getAppConfig __attribute__((swift_name("getAppConfig()"))); +@property (readonly) id bridgeConfig __attribute__((swift_name("bridgeConfig"))); @end; __attribute__((objc_subclassing_restricted)) @@ -963,6 +1699,7 @@ __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("AuthenticationRepository"))) @interface BridgeClientAuthenticationRepository : BridgeClientBase - (instancetype)initWithHttpClient:(BridgeClientKtor_client_coreHttpClient *)httpClient bridgeConfig:(id)bridgeConfig database:(BridgeClientResourceDatabaseHelper *)database __attribute__((swift_name("init(httpClient:bridgeConfig:database:)"))) __attribute__((objc_designated_initializer)); +- (NSString * _Nullable)currentStudyId __attribute__((swift_name("currentStudyId()"))); - (BOOL)isAuthenticated __attribute__((swift_name("isAuthenticated()"))); /** @@ -984,7 +1721,12 @@ __attribute__((swift_name("AuthenticationRepository"))) Other uncaught Kotlin exceptions are fatal. */ - (void)signInExternalIdExternalId:(NSString *)externalId password:(NSString *)password completionHandler:(void (^)(BridgeClientResourceResult * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("signInExternalId(externalId:password:completionHandler:)"))); -- (void)signOut __attribute__((swift_name("signOut()"))); + +/** + @note This method converts instances of CancellationException to errors. + Other uncaught Kotlin exceptions are fatal. +*/ +- (void)signOutWithCompletionHandler:(void (^)(BridgeClientKotlinUnit * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("signOut(completionHandler:)"))); @property (readonly) id bridgeConfig __attribute__((swift_name("bridgeConfig"))); @property (readonly) BridgeClientResourceDatabaseHelper *database __attribute__((swift_name("database"))); @end; @@ -995,40 +1737,134 @@ __attribute__((swift_name("AuthenticationRepository.Companion"))) + (instancetype)alloc __attribute__((unavailable)); + (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); + (instancetype)companion __attribute__((swift_name("init()"))); -@property (readonly) NSString *USER_SESSION_ID __attribute__((swift_name("USER_SESSION_ID"))); +@property (readonly) NSString *USER_SESSION_ID __attribute__((swift_name("USER_SESSION_ID"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ConsentRepo"))) +@interface BridgeClientConsentRepo : BridgeClientBase +- (instancetype)initWithHttpClient:(BridgeClientKtor_client_coreHttpClient *)httpClient __attribute__((swift_name("init(httpClient:)"))) __attribute__((objc_designated_initializer)); + +/** + @note This method converts instances of CancellationException to errors. + Other uncaught Kotlin exceptions are fatal. +*/ +- (void)createConsentSignatureSubpopulationGuid:(NSString *)subpopulationGuid scope:(BridgeClientSharingScope *)scope completionHandler:(void (^)(BridgeClientUserSessionInfo * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("createConsentSignature(subpopulationGuid:scope:completionHandler:)"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduleTimelineRepo"))) +@interface BridgeClientScheduleTimelineRepo : BridgeClientAbstractResourceRepo +- (instancetype)initWithAdherenceRecordRepo:(BridgeClientAdherenceRecordRepo *)adherenceRecordRepo activityEventsRepo:(BridgeClientActivityEventsRepo *)activityEventsRepo httpClient:(BridgeClientKtor_client_coreHttpClient *)httpClient databaseHelper:(BridgeClientResourceDatabaseHelper *)databaseHelper backgroundScope:(id)backgroundScope __attribute__((swift_name("init(adherenceRecordRepo:activityEventsRepo:httpClient:databaseHelper:backgroundScope:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithDatabase:(BridgeClientResourceDatabaseHelper *)database resourceType:(BridgeClientResourceType *)resourceType backgroundScope:(id)backgroundScope __attribute__((swift_name("init(database:resourceType:backgroundScope:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +- (id)getSessionsForTodayStudyId:(NSString *)studyId includeAllNotifications:(BOOL)includeAllNotifications alwaysIncludeNextDay:(BOOL)alwaysIncludeNextDay __attribute__((swift_name("getSessionsForToday(studyId:includeAllNotifications:alwaysIncludeNextDay:)"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduleTimelineRepo.Companion"))) +@interface BridgeClientScheduleTimelineRepoCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +@property (readonly) NSString *SCHEDULE_TIMELINE_ID __attribute__((swift_name("SCHEDULE_TIMELINE_ID"))); @end; __attribute__((objc_subclassing_restricted)) -__attribute__((swift_name("ConsentRepo"))) -@interface BridgeClientConsentRepo : BridgeClientBase -- (instancetype)initWithHttpClient:(BridgeClientKtor_client_coreHttpClient *)httpClient __attribute__((swift_name("init(httpClient:)"))) __attribute__((objc_designated_initializer)); - -/** - @note This method converts instances of CancellationException to errors. - Other uncaught Kotlin exceptions are fatal. -*/ -- (void)createConsentSignatureSubpopulationGuid:(NSString *)subpopulationGuid scope:(BridgeClientSharingScope *)scope completionHandler:(void (^)(BridgeClientUserSessionInfo * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("createConsentSignature(subpopulationGuid:scope:completionHandler:)"))); +__attribute__((swift_name("ScheduledAssessmentReference"))) +@interface BridgeClientScheduledAssessmentReference : BridgeClientBase +- (instancetype)initWithInstanceGuid:(NSString *)instanceGuid assessmentInfo:(BridgeClientAssessmentInfo *)assessmentInfo adherenceRecordList:(NSArray * _Nullable)adherenceRecordList __attribute__((swift_name("init(instanceGuid:assessmentInfo:adherenceRecordList:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (BridgeClientAssessmentInfo *)component2 __attribute__((swift_name("component2()"))); +- (NSArray * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (BridgeClientScheduledAssessmentReference *)doCopyInstanceGuid:(NSString *)instanceGuid assessmentInfo:(BridgeClientAssessmentInfo *)assessmentInfo adherenceRecordList:(NSArray * _Nullable)adherenceRecordList __attribute__((swift_name("doCopy(instanceGuid:assessmentInfo:adherenceRecordList:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSArray * _Nullable adherenceRecordList __attribute__((swift_name("adherenceRecordList"))); +@property (readonly) BridgeClientAssessmentInfo *assessmentInfo __attribute__((swift_name("assessmentInfo"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) BOOL isCompleted __attribute__((swift_name("isCompleted"))); +@property (readonly) BOOL isDeclined __attribute__((swift_name("isDeclined"))); @end; -@interface BridgeClientResource (Extensions) -- (id _Nullable)loadResource __attribute__((swift_name("loadResource()"))); +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduledNotification"))) +@interface BridgeClientScheduledNotification : BridgeClientBase +- (instancetype)initWithInstanceGuid:(NSString *)instanceGuid scheduleOn:(BridgeClientKotlinx_datetimeLocalDateTime *)scheduleOn repeatInterval:(BridgeClientKotlinx_datetimeDateTimePeriod * _Nullable)repeatInterval allowSnooze:(BOOL)allowSnooze message:(BridgeClientNotificationMessage * _Nullable)message __attribute__((swift_name("init(instanceGuid:scheduleOn:repeatInterval:allowSnooze:message:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (BridgeClientKotlinx_datetimeLocalDateTime *)component2 __attribute__((swift_name("component2()"))); +- (BridgeClientKotlinx_datetimeDateTimePeriod * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (BOOL)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientNotificationMessage * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (BridgeClientScheduledNotification *)doCopyInstanceGuid:(NSString *)instanceGuid scheduleOn:(BridgeClientKotlinx_datetimeLocalDateTime *)scheduleOn repeatInterval:(BridgeClientKotlinx_datetimeDateTimePeriod * _Nullable)repeatInterval allowSnooze:(BOOL)allowSnooze message:(BridgeClientNotificationMessage * _Nullable)message __attribute__((swift_name("doCopy(instanceGuid:scheduleOn:repeatInterval:allowSnooze:message:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BOOL allowSnooze __attribute__((swift_name("allowSnooze"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) BridgeClientNotificationMessage * _Nullable message __attribute__((swift_name("message"))); +@property (readonly) BridgeClientKotlinx_datetimeDateTimePeriod * _Nullable repeatInterval __attribute__((swift_name("repeatInterval"))); +@property (readonly) BridgeClientKotlinx_datetimeLocalDateTime *scheduleOn __attribute__((swift_name("scheduleOn"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduledSessionTimelineSlice"))) +@interface BridgeClientScheduledSessionTimelineSlice : BridgeClientBase +- (instancetype)initWithInstantInDay:(BridgeClientKotlinx_datetimeInstant *)instantInDay timezone:(BridgeClientKotlinx_datetimeTimeZone *)timezone scheduledSessionWindows:(NSArray *)scheduledSessionWindows notifications:(NSArray *)notifications __attribute__((swift_name("init(instantInDay:timezone:scheduledSessionWindows:notifications:)"))) __attribute__((objc_designated_initializer)); +- (BridgeClientKotlinx_datetimeInstant *)component1 __attribute__((swift_name("component1()"))); +- (BridgeClientKotlinx_datetimeTimeZone *)component2 __attribute__((swift_name("component2()"))); +- (NSArray *)component3 __attribute__((swift_name("component3()"))); +- (NSArray *)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientScheduledSessionTimelineSlice *)doCopyInstantInDay:(BridgeClientKotlinx_datetimeInstant *)instantInDay timezone:(BridgeClientKotlinx_datetimeTimeZone *)timezone scheduledSessionWindows:(NSArray *)scheduledSessionWindows notifications:(NSArray *)notifications __attribute__((swift_name("doCopy(instantInDay:timezone:scheduledSessionWindows:notifications:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BridgeClientKotlinx_datetimeInstant *instantInDay __attribute__((swift_name("instantInDay"))); +@property (readonly) NSArray *notifications __attribute__((swift_name("notifications"))); +@property (readonly) NSArray *scheduledSessionWindows __attribute__((swift_name("scheduledSessionWindows"))); +@property (readonly) BridgeClientKotlinx_datetimeTimeZone *timezone __attribute__((swift_name("timezone"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduledSessionWindow"))) +@interface BridgeClientScheduledSessionWindow : BridgeClientBase +- (instancetype)initWithScheduledSession:(BridgeClientScheduledSession *)scheduledSession event:(BridgeClientStudyActivityEvent *)event startDateTime:(BridgeClientKotlinx_datetimeLocalDateTime *)startDateTime endDateTime:(BridgeClientKotlinx_datetimeLocalDateTime *)endDateTime isExpired:(BOOL)isExpired isCompleted:(BOOL)isCompleted assessments:(NSArray *)assessments sessionInfo:(BridgeClientSessionInfo *)sessionInfo notifications:(NSArray * _Nullable)notifications __attribute__((swift_name("init(scheduledSession:event:startDateTime:endDateTime:isExpired:isCompleted:assessments:sessionInfo:notifications:)"))) __attribute__((objc_designated_initializer)); +- (BridgeClientScheduledSession *)component1 __attribute__((swift_name("component1()"))); +- (BridgeClientStudyActivityEvent *)component2 __attribute__((swift_name("component2()"))); +- (BridgeClientKotlinx_datetimeLocalDateTime *)component3 __attribute__((swift_name("component3()"))); +- (BridgeClientKotlinx_datetimeLocalDateTime *)component4 __attribute__((swift_name("component4()"))); +- (BOOL)component5 __attribute__((swift_name("component5()"))); +- (BOOL)component6 __attribute__((swift_name("component6()"))); +- (NSArray *)component7 __attribute__((swift_name("component7()"))); +- (BridgeClientSessionInfo *)component8 __attribute__((swift_name("component8()"))); +- (NSArray * _Nullable)component9 __attribute__((swift_name("component9()"))); +- (BridgeClientScheduledSessionWindow *)doCopyScheduledSession:(BridgeClientScheduledSession *)scheduledSession event:(BridgeClientStudyActivityEvent *)event startDateTime:(BridgeClientKotlinx_datetimeLocalDateTime *)startDateTime endDateTime:(BridgeClientKotlinx_datetimeLocalDateTime *)endDateTime isExpired:(BOOL)isExpired isCompleted:(BOOL)isCompleted assessments:(NSArray *)assessments sessionInfo:(BridgeClientSessionInfo *)sessionInfo notifications:(NSArray * _Nullable)notifications __attribute__((swift_name("doCopy(scheduledSession:event:startDateTime:endDateTime:isExpired:isCompleted:assessments:sessionInfo:notifications:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSArray *assessments __attribute__((swift_name("assessments"))); +@property (readonly) BridgeClientKotlinx_datetimeLocalDateTime *endDateTime __attribute__((swift_name("endDateTime"))); +@property (readonly) BridgeClientStudyActivityEvent *event __attribute__((swift_name("event"))); +@property (readonly) BridgeClientKotlinx_datetimeInstant *eventTimeStamp __attribute__((swift_name("eventTimeStamp"))); +@property (readonly) BOOL hasEndTimeOfDay __attribute__((swift_name("hasEndTimeOfDay"))); +@property (readonly) BOOL hasStartTimeOfDay __attribute__((swift_name("hasStartTimeOfDay"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) BOOL isCompleted __attribute__((swift_name("isCompleted"))); +@property (readonly) BOOL isExpired __attribute__((swift_name("isExpired"))); +@property (readonly) NSArray * _Nullable notifications __attribute__((swift_name("notifications"))); +@property (readonly) BOOL persistent __attribute__((swift_name("persistent"))); +@property (readonly) BridgeClientScheduledSession *scheduledSession __attribute__((swift_name("scheduledSession"))); +@property (readonly) BridgeClientSessionInfo *sessionInfo __attribute__((swift_name("sessionInfo"))); +@property (readonly) BridgeClientKotlinx_datetimeLocalDateTime *startDateTime __attribute__((swift_name("startDateTime"))); @end; -__attribute__((swift_name("RuntimeQuery"))) -@interface BridgeClientRuntimeQuery<__covariant RowType> : BridgeClientBase -- (instancetype)initWithQueries:(NSMutableArray *> *)queries mapper:(RowType (^)(id))mapper __attribute__((swift_name("init(queries:mapper:)"))) __attribute__((objc_designated_initializer)); -- (void)addListenerListener:(id)listener __attribute__((swift_name("addListener(listener:)"))); -- (id)execute __attribute__((swift_name("execute()"))); -- (NSArray *)executeAsList __attribute__((swift_name("executeAsList()"))); -- (RowType)executeAsOne __attribute__((swift_name("executeAsOne()"))); -- (RowType _Nullable)executeAsOneOrNull __attribute__((swift_name("executeAsOneOrNull()"))); -- (void)notifyDataChanged __attribute__((swift_name("notifyDataChanged()"))); -- (void)removeListenerListener:(id)listener __attribute__((swift_name("removeListener(listener:)"))); -@property (readonly) RowType (^mapper)(id) __attribute__((swift_name("mapper"))); +@interface BridgeClientAppConfig (Extensions) +- (NSString * _Nullable)clientDataJson __attribute__((swift_name("clientDataJson()"))); +- (NSString * _Nullable)configElementJsonIdentifier:(NSString *)identifier __attribute__((swift_name("configElementJson(identifier:)"))); @end; -@interface BridgeClientRuntimeQuery (Extensions) -- (id)asFlow __attribute__((swift_name("asFlow()"))); +@interface BridgeClientResource (Extensions) +- (id _Nullable)loadResource __attribute__((swift_name("loadResource()"))); @end; __attribute__((objc_subclassing_restricted)) @@ -1052,16 +1888,6 @@ __attribute__((swift_name("HttpClientModuleKt"))) + (BridgeClientKoin_coreModule *)httpClientModuleEnableNetworkLogs:(BOOL)enableNetworkLogs __attribute__((swift_name("httpClientModule(enableNetworkLogs:)"))); @end; -__attribute__((objc_subclassing_restricted)) -__attribute__((swift_name("CoroutinesExtensionsKt"))) -@interface BridgeClientCoroutinesExtensionsKt : BridgeClientBase -+ (id)mapToList:(id)receiver context:(id)context __attribute__((swift_name("mapToList(_:context:)"))); -+ (id)mapToOne:(id)receiver context:(id)context __attribute__((swift_name("mapToOne(_:context:)"))); -+ (id)mapToOneNotNull:(id)receiver context:(id)context __attribute__((swift_name("mapToOneNotNull(_:context:)"))); -+ (id)mapToOneOrDefault:(id)receiver defaultValue:(id)defaultValue context:(id)context __attribute__((swift_name("mapToOneOrDefault(_:defaultValue:context:)"))); -+ (id)mapToOneOrNull:(id)receiver context:(id)context __attribute__((swift_name("mapToOneOrNull(_:context:)"))); -@end; - __attribute__((swift_name("Kotlinx_serialization_jsonJsonElement"))) @interface BridgeClientKotlinx_serialization_jsonJsonElement : BridgeClientBase @end; @@ -1085,6 +1911,20 @@ __attribute__((swift_name("Kotlinx_serialization_coreKSerializer"))) @required @end; +__attribute__((swift_name("KotlinThrowable"))) +@interface BridgeClientKotlinThrowable : BridgeClientBase +- (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithCause:(BridgeClientKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); ++ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); +- (instancetype)initWithMessage:(NSString * _Nullable)message cause:(BridgeClientKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer)); +- (BridgeClientKotlinArray *)getStackTrace __attribute__((swift_name("getStackTrace()"))); +- (void)printStackTrace __attribute__((swift_name("printStackTrace()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BridgeClientKotlinThrowable * _Nullable cause __attribute__((swift_name("cause"))); +@property (readonly) NSString * _Nullable message __attribute__((swift_name("message"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Koin_coreKoin"))) @interface BridgeClientKoin_coreKoin : BridgeClientBase @@ -1097,10 +1937,10 @@ __attribute__((swift_name("Koin_coreKoin"))) - (BridgeClientKoin_coreScope *)createScopeScopeId:(NSString *)scopeId __attribute__((swift_name("createScope(scopeId:)"))); - (BridgeClientKoin_coreScope *)createScopeScopeId:(NSString *)scopeId source:(id _Nullable)source __attribute__((swift_name("createScope(scopeId:source:)"))); - (BridgeClientKoin_coreScope *)createScopeScopeId:(NSString *)scopeId qualifier:(id)qualifier source:(id _Nullable)source __attribute__((swift_name("createScope(scopeId:qualifier:source:)"))); -- (void)declareInstance:(id)instance qualifier:(id _Nullable)qualifier secondaryTypes:(NSArray> *)secondaryTypes override:(BOOL)override __attribute__((swift_name("declare(instance:qualifier:secondaryTypes:override:)"))); +- (void)declareInstance:(id _Nullable)instance qualifier:(id _Nullable)qualifier secondaryTypes:(NSArray> *)secondaryTypes override:(BOOL)override __attribute__((swift_name("declare(instance:qualifier:secondaryTypes:override:)"))); - (void)deletePropertyKey:(NSString *)key __attribute__((swift_name("deleteProperty(key:)"))); - (void)deleteScopeScopeId:(NSString *)scopeId __attribute__((swift_name("deleteScope(scopeId:)"))); -- (id)getClazz:(id)clazz qualifier:(id _Nullable)qualifier parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("get(clazz:qualifier:parameters:)"))); +- (id _Nullable)getClazz:(id)clazz qualifier:(id _Nullable)qualifier parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("get(clazz:qualifier:parameters:)"))); - (id)getQualifier:(id _Nullable)qualifier parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("get(qualifier:parameters:)"))); - (NSArray *)getAll __attribute__((swift_name("getAll()"))); - (BridgeClientKoin_coreScope *)getOrCreateScopeScopeId:(NSString *)scopeId __attribute__((swift_name("getOrCreateScope(scopeId:)"))); @@ -1109,6 +1949,7 @@ __attribute__((swift_name("Koin_coreKoin"))) - (id _Nullable)getOrNullQualifier:(id _Nullable)qualifier parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("getOrNull(qualifier:parameters:)"))); - (id _Nullable)getPropertyKey:(NSString *)key __attribute__((swift_name("getProperty(key:)"))); - (id)getPropertyKey:(NSString *)key defaultValue:(id)defaultValue __attribute__((swift_name("getProperty(key:defaultValue:)"))); +- (BridgeClientKoin_coreScope *)getRootScope __attribute__((swift_name("getRootScope()"))); - (BridgeClientKoin_coreScope *)getScopeScopeId:(NSString *)scopeId __attribute__((swift_name("getScope(scopeId:)"))); - (BridgeClientKoin_coreScope * _Nullable)getScopeOrNullScopeId:(NSString *)scopeId __attribute__((swift_name("getScopeOrNull(scopeId:)"))); - (id)injectQualifier:(id _Nullable)qualifier mode:(BridgeClientKotlinLazyThreadSafetyMode *)mode parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("inject(qualifier:mode:parameters:)"))); @@ -1122,6 +1963,49 @@ __attribute__((swift_name("Koin_coreKoin"))) @property (readonly) BridgeClientKoin_coreScopeRegistry *scopeRegistry __attribute__((swift_name("scopeRegistry"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("KotlinArray"))) +@interface BridgeClientKotlinArray : BridgeClientBase ++ (instancetype)arrayWithSize:(int32_t)size init:(T _Nullable (^)(BridgeClientInt *))init __attribute__((swift_name("init(size:init:)"))); ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); +- (T _Nullable)getIndex:(int32_t)index __attribute__((swift_name("get(index:)"))); +- (id)iterator __attribute__((swift_name("iterator()"))); +- (void)setIndex:(int32_t)index value:(T _Nullable)value __attribute__((swift_name("set(index:value:)"))); +@property (readonly) int32_t size __attribute__((swift_name("size"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("Kotlinx_datetimeInstant"))) +@interface BridgeClientKotlinx_datetimeInstant : BridgeClientBase +- (int32_t)compareToOther:(BridgeClientKotlinx_datetimeInstant *)other __attribute__((swift_name("compareTo(other:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (BridgeClientKotlinx_datetimeInstant *)minusDuration:(double)duration __attribute__((swift_name("minus(duration:)"))); +- (double)minusOther:(BridgeClientKotlinx_datetimeInstant *)other __attribute__((swift_name("minus(other:)"))); +- (BridgeClientKotlinx_datetimeInstant *)plusDuration:(double)duration __attribute__((swift_name("plus(duration:)"))); +- (int64_t)toEpochMilliseconds __attribute__((swift_name("toEpochMilliseconds()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) int64_t epochSeconds __attribute__((swift_name("epochSeconds"))); +@property (readonly) int32_t nanosecondsOfSecond __attribute__((swift_name("nanosecondsOfSecond"))); +@end; + +__attribute__((swift_name("Kotlinx_datetimeDateTimePeriod"))) +@interface BridgeClientKotlinx_datetimeDateTimePeriod : BridgeClientBase +- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); ++ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) int32_t days __attribute__((swift_name("days"))); +@property (readonly) int32_t hours __attribute__((swift_name("hours"))); +@property (readonly) int32_t minutes __attribute__((swift_name("minutes"))); +@property (readonly) int32_t months __attribute__((swift_name("months"))); +@property (readonly) int32_t nanoseconds __attribute__((swift_name("nanoseconds"))); +@property (readonly) int32_t seconds __attribute__((swift_name("seconds"))); +@property (readonly) int32_t years __attribute__((swift_name("years"))); +@end; + __attribute__((swift_name("Kotlinx_coroutines_coreCoroutineScope"))) @protocol BridgeClientKotlinx_coroutines_coreCoroutineScope @required @@ -1159,20 +2043,6 @@ __attribute__((swift_name("Ktor_client_coreHttpClient"))) @property (readonly) BridgeClientKtor_client_coreHttpSendPipeline *sendPipeline __attribute__((swift_name("sendPipeline"))); @end; -__attribute__((swift_name("KotlinThrowable"))) -@interface BridgeClientKotlinThrowable : BridgeClientBase -- (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer)); -- (instancetype)initWithCause:(BridgeClientKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer)); -- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); -+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -- (instancetype)initWithMessage:(NSString * _Nullable)message cause:(BridgeClientKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer)); -- (BridgeClientKotlinArray *)getStackTrace __attribute__((swift_name("getStackTrace()"))); -- (void)printStackTrace __attribute__((swift_name("printStackTrace()"))); -- (NSString *)description __attribute__((swift_name("description()"))); -@property (readonly) BridgeClientKotlinThrowable * _Nullable cause __attribute__((swift_name("cause"))); -@property (readonly) NSString * _Nullable message __attribute__((swift_name("message"))); -@end; - __attribute__((swift_name("KotlinException"))) @interface BridgeClientKotlinException : BridgeClientKotlinThrowable - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); @@ -1293,6 +2163,19 @@ __attribute__((swift_name("RuntimeSqlDriverSchema"))) @property (readonly) int32_t version __attribute__((swift_name("version"))); @end; +__attribute__((swift_name("RuntimeQuery"))) +@interface BridgeClientRuntimeQuery<__covariant RowType> : BridgeClientBase +- (instancetype)initWithQueries:(NSMutableArray *> *)queries mapper:(RowType (^)(id))mapper __attribute__((swift_name("init(queries:mapper:)"))) __attribute__((objc_designated_initializer)); +- (void)addListenerListener:(id)listener __attribute__((swift_name("addListener(listener:)"))); +- (id)execute __attribute__((swift_name("execute()"))); +- (NSArray *)executeAsList __attribute__((swift_name("executeAsList()"))); +- (RowType)executeAsOne __attribute__((swift_name("executeAsOne()"))); +- (RowType _Nullable)executeAsOneOrNull __attribute__((swift_name("executeAsOneOrNull()"))); +- (void)notifyDataChanged __attribute__((swift_name("notifyDataChanged()"))); +- (void)removeListenerListener:(id)listener __attribute__((swift_name("removeListener(listener:)"))); +@property (readonly) RowType (^mapper)(id) __attribute__((swift_name("mapper"))); +@end; + __attribute__((swift_name("RuntimeColumnAdapter"))) @protocol BridgeClientRuntimeColumnAdapter @required @@ -1316,20 +2199,45 @@ __attribute__((swift_name("Kotlinx_coroutines_coreFlow"))) - (void)collectCollector:(id)collector completionHandler:(void (^)(BridgeClientKotlinUnit * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("collect(collector:completionHandler:)"))); @end; -__attribute__((swift_name("RuntimeSqlCursor"))) -@protocol BridgeClientRuntimeSqlCursor -@required -- (BridgeClientKotlinByteArray * _Nullable)getBytesIndex:(int32_t)index __attribute__((swift_name("getBytes(index:)"))); -- (BridgeClientDouble * _Nullable)getDoubleIndex:(int32_t)index __attribute__((swift_name("getDouble(index:)"))); -- (BridgeClientLong * _Nullable)getLongIndex:(int32_t)index __attribute__((swift_name("getLong(index:)"))); -- (NSString * _Nullable)getStringIndex:(int32_t)index __attribute__((swift_name("getString(index:)"))); -- (BOOL)next __attribute__((swift_name("next()"))); +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("KotlinUnit"))) +@interface BridgeClientKotlinUnit : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)unit __attribute__((swift_name("init()"))); +- (NSString *)description __attribute__((swift_name("description()"))); @end; -__attribute__((swift_name("RuntimeQueryListener"))) -@protocol BridgeClientRuntimeQueryListener -@required -- (void)queryResultsChanged __attribute__((swift_name("queryResultsChanged()"))); +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("Kotlinx_datetimeLocalDateTime"))) +@interface BridgeClientKotlinx_datetimeLocalDateTime : BridgeClientBase +- (instancetype)initWithYear:(int32_t)year monthNumber:(int32_t)monthNumber dayOfMonth:(int32_t)dayOfMonth hour:(int32_t)hour minute:(int32_t)minute second:(int32_t)second nanosecond:(int32_t)nanosecond __attribute__((swift_name("init(year:monthNumber:dayOfMonth:hour:minute:second:nanosecond:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithYear:(int32_t)year month:(BridgeClientKotlinx_datetimeMonth *)month dayOfMonth:(int32_t)dayOfMonth hour:(int32_t)hour minute:(int32_t)minute second:(int32_t)second nanosecond:(int32_t)nanosecond __attribute__((swift_name("init(year:month:dayOfMonth:hour:minute:second:nanosecond:)"))) __attribute__((objc_designated_initializer)); +- (int32_t)compareToOther:(BridgeClientKotlinx_datetimeLocalDateTime *)other __attribute__((swift_name("compareTo(other:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BridgeClientKotlinx_datetimeLocalDate *date __attribute__((swift_name("date"))); +@property (readonly) int32_t dayOfMonth __attribute__((swift_name("dayOfMonth"))); +@property (readonly) BridgeClientKotlinx_datetimeDayOfWeek *dayOfWeek __attribute__((swift_name("dayOfWeek"))); +@property (readonly) int32_t dayOfYear __attribute__((swift_name("dayOfYear"))); +@property (readonly) int32_t hour __attribute__((swift_name("hour"))); +@property (readonly) int32_t minute __attribute__((swift_name("minute"))); +@property (readonly) BridgeClientKotlinx_datetimeMonth *month __attribute__((swift_name("month"))); +@property (readonly) int32_t monthNumber __attribute__((swift_name("monthNumber"))); +@property (readonly) int32_t nanosecond __attribute__((swift_name("nanosecond"))); +@property (readonly) int32_t second __attribute__((swift_name("second"))); +@property (readonly) int32_t year __attribute__((swift_name("year"))); +@end; + +__attribute__((swift_name("Kotlinx_datetimeTimeZone"))) +@interface BridgeClientKotlinx_datetimeTimeZone : BridgeClientBase +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +- (BridgeClientKotlinx_datetimeInstant *)toInstant:(BridgeClientKotlinx_datetimeLocalDateTime *)receiver __attribute__((swift_name("toInstant(_:)"))); +- (BridgeClientKotlinx_datetimeLocalDateTime *)toLocalDateTime:(BridgeClientKotlinx_datetimeInstant *)receiver __attribute__((swift_name("toLocalDateTime(_:)"))); +@property (readonly) NSString *id __attribute__((swift_name("id"))); @end; __attribute__((objc_subclassing_restricted)) @@ -1343,6 +2251,7 @@ __attribute__((swift_name("Koin_coreModule"))) - (void)scopeQualifier:(id)qualifier scopeSet:(void (^)(BridgeClientKoin_coreScopeDSL *))scopeSet __attribute__((swift_name("scope(qualifier:scopeSet:)"))); - (void)scopeScopeSet:(void (^)(BridgeClientKoin_coreScopeDSL *))scopeSet __attribute__((swift_name("scope(scopeSet:)"))); - (BridgeClientKoin_coreBeanDefinition *)singleQualifier:(id _Nullable)qualifier createdAtStart:(BOOL)createdAtStart override:(BOOL)override definition:(id _Nullable (^)(BridgeClientKoin_coreScope *, BridgeClientKoin_coreDefinitionParameters *))definition __attribute__((swift_name("single(qualifier:createdAtStart:override:definition:)"))); +@property (readonly) BOOL isLoaded __attribute__((swift_name("isLoaded"))); @end; __attribute__((objc_subclassing_restricted)) @@ -1361,15 +2270,6 @@ __attribute__((swift_name("Koin_coreKoinApplication"))) @property (readonly) BridgeClientKoin_coreKoin *koin __attribute__((swift_name("koin"))); @end; -__attribute__((swift_name("KotlinCoroutineContext"))) -@protocol BridgeClientKotlinCoroutineContext -@required -- (id _Nullable)foldInitial:(id _Nullable)initial operation:(id _Nullable (^)(id _Nullable, id))operation __attribute__((swift_name("fold(initial:operation:)"))); -- (id _Nullable)getKey:(id)key __attribute__((swift_name("get(key:)"))); -- (id)minusKeyKey:(id)key __attribute__((swift_name("minusKey(key:)"))); -- (id)plusContext:(id)context __attribute__((swift_name("plus(context:)"))); -@end; - __attribute__((swift_name("Kotlinx_serialization_coreEncoder"))) @protocol BridgeClientKotlinx_serialization_coreEncoder @required @@ -1381,6 +2281,7 @@ __attribute__((swift_name("Kotlinx_serialization_coreEncoder"))) - (void)encodeDoubleValue:(double)value __attribute__((swift_name("encodeDouble(value:)"))); - (void)encodeEnumEnumDescriptor:(id)enumDescriptor index:(int32_t)index __attribute__((swift_name("encodeEnum(enumDescriptor:index:)"))); - (void)encodeFloatValue:(float)value __attribute__((swift_name("encodeFloat(value:)"))); +- (id)encodeInlineInlineDescriptor:(id)inlineDescriptor __attribute__((swift_name("encodeInline(inlineDescriptor:)"))); - (void)encodeIntValue:(int32_t)value __attribute__((swift_name("encodeInt(value:)"))); - (void)encodeLongValue:(int64_t)value __attribute__((swift_name("encodeLong(value:)"))); - (void)encodeNotNullMark __attribute__((swift_name("encodeNotNullMark()"))); @@ -1402,6 +2303,7 @@ __attribute__((swift_name("Kotlinx_serialization_coreSerialDescriptor"))) - (BOOL)isElementOptionalIndex:(int32_t)index __attribute__((swift_name("isElementOptional(index:)"))); @property (readonly) NSArray> *annotations __attribute__((swift_name("annotations"))); @property (readonly) int32_t elementsCount __attribute__((swift_name("elementsCount"))); +@property (readonly) BOOL isInline __attribute__((swift_name("isInline"))); @property (readonly) BOOL isNullable __attribute__((swift_name("isNullable"))); @property (readonly) BridgeClientKotlinx_serialization_coreSerialKind *kind __attribute__((swift_name("kind"))); @property (readonly) NSString *serialName __attribute__((swift_name("serialName"))); @@ -1417,6 +2319,7 @@ __attribute__((swift_name("Kotlinx_serialization_coreDecoder"))) - (double)decodeDouble __attribute__((swift_name("decodeDouble()"))); - (int32_t)decodeEnumEnumDescriptor:(id)enumDescriptor __attribute__((swift_name("decodeEnum(enumDescriptor:)"))); - (float)decodeFloat __attribute__((swift_name("decodeFloat()"))); +- (id)decodeInlineInlineDescriptor:(id)inlineDescriptor __attribute__((swift_name("decodeInline(inlineDescriptor:)"))); - (int32_t)decodeInt __attribute__((swift_name("decodeInt()"))); - (int64_t)decodeLong __attribute__((swift_name("decodeLong()"))); - (BOOL)decodeNotNullMark __attribute__((swift_name("decodeNotNullMark()"))); @@ -1485,10 +2388,10 @@ __attribute__((swift_name("Koin_coreScope"))) - (NSString *)component1 __attribute__((swift_name("component1()"))); - (BridgeClientKoin_coreScopeDefinition *)component2 __attribute__((swift_name("component2()"))); - (BridgeClientKoin_coreScope *)doCopyId:(NSString *)id _scopeDefinition:(BridgeClientKoin_coreScopeDefinition *)_scopeDefinition _koin:(BridgeClientKoin_coreKoin *)_koin __attribute__((swift_name("doCopy(id:_scopeDefinition:_koin:)"))); -- (void)declareInstance:(id)instance qualifier:(id _Nullable)qualifier secondaryTypes:(NSArray> * _Nullable)secondaryTypes override:(BOOL)override __attribute__((swift_name("declare(instance:qualifier:secondaryTypes:override:)"))); +- (void)declareInstance:(id _Nullable)instance qualifier:(id _Nullable)qualifier secondaryTypes:(NSArray> * _Nullable)secondaryTypes override:(BOOL)override __attribute__((swift_name("declare(instance:qualifier:secondaryTypes:override:)"))); - (void)dropInstanceBeanDefinition:(BridgeClientKoin_coreBeanDefinition *)beanDefinition __attribute__((swift_name("dropInstance(beanDefinition:)"))); - (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); -- (id)getClazz:(id)clazz qualifier:(id _Nullable)qualifier parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("get(clazz:qualifier:parameters:)"))); +- (id _Nullable)getClazz:(id)clazz qualifier:(id _Nullable)qualifier parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("get(clazz:qualifier:parameters:)"))); - (id)getQualifier:(id _Nullable)qualifier parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("get(qualifier:parameters:)"))); - (NSArray *)getAll __attribute__((swift_name("getAll()"))); - (NSArray *)getAllClazz:(id)clazz __attribute__((swift_name("getAll(clazz:)"))); @@ -1503,6 +2406,7 @@ __attribute__((swift_name("Koin_coreScope"))) - (NSUInteger)hash __attribute__((swift_name("hash()"))); - (id)injectQualifier:(id _Nullable)qualifier mode:(BridgeClientKotlinLazyThreadSafetyMode *)mode parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("inject(qualifier:mode:parameters:)"))); - (id)injectOrNullQualifier:(id _Nullable)qualifier mode:(BridgeClientKotlinLazyThreadSafetyMode *)mode parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("injectOrNull(qualifier:mode:parameters:)"))); +- (BOOL)isNotClosed __attribute__((swift_name("isNotClosed()"))); - (void)linkToScopes:(BridgeClientKotlinArray *)scopes __attribute__((swift_name("linkTo(scopes:)"))); - (void)loadDefinitionBeanDefinition:(BridgeClientKoin_coreBeanDefinition *)beanDefinition __attribute__((swift_name("loadDefinition(beanDefinition:)"))); - (void)registerCallbackCallback:(id)callback __attribute__((swift_name("registerCallback(callback:)"))); @@ -1544,6 +2448,7 @@ __attribute__((swift_name("KotlinLazyThreadSafetyMode"))) @property (class, readonly) BridgeClientKotlinLazyThreadSafetyMode *synchronized __attribute__((swift_name("synchronized"))); @property (class, readonly) BridgeClientKotlinLazyThreadSafetyMode *publication __attribute__((swift_name("publication"))); @property (class, readonly) BridgeClientKotlinLazyThreadSafetyMode *none __attribute__((swift_name("none"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @end; __attribute__((swift_name("Koin_coreLogger"))) @@ -1583,6 +2488,22 @@ __attribute__((swift_name("Koin_coreScopeRegistry"))) @property (readonly) NSDictionary *scopeDefinitions __attribute__((swift_name("scopeDefinitions"))); @end; +__attribute__((swift_name("KotlinIterator"))) +@protocol BridgeClientKotlinIterator +@required +- (BOOL)hasNext __attribute__((swift_name("hasNext()"))); +- (id _Nullable)next __attribute__((swift_name("next()"))); +@end; + +__attribute__((swift_name("KotlinCoroutineContext"))) +@protocol BridgeClientKotlinCoroutineContext +@required +- (id _Nullable)foldInitial:(id _Nullable)initial operation:(id _Nullable (^)(id _Nullable, id))operation __attribute__((swift_name("fold(initial:operation:)"))); +- (id _Nullable)getKey:(id)key __attribute__((swift_name("get(key:)"))); +- (id)minusKeyKey:(id)key __attribute__((swift_name("minusKey(key:)"))); +- (id)plusContext:(id)context __attribute__((swift_name("plus(context:)"))); +@end; + __attribute__((swift_name("Ktor_client_coreHttpClientEngine"))) @protocol BridgeClientKtor_client_coreHttpClientEngine @required @@ -1784,18 +2705,6 @@ __attribute__((swift_name("Ktor_client_coreHttpSendPipeline"))) @property (readonly) BOOL developmentMode __attribute__((swift_name("developmentMode"))); @end; -__attribute__((objc_subclassing_restricted)) -__attribute__((swift_name("KotlinArray"))) -@interface BridgeClientKotlinArray : BridgeClientBase -+ (instancetype)arrayWithSize:(int32_t)size init:(T _Nullable (^)(BridgeClientInt *))init __attribute__((swift_name("init(size:init:)"))); -+ (instancetype)alloc __attribute__((unavailable)); -+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); -- (T _Nullable)getIndex:(int32_t)index __attribute__((swift_name("get(index:)"))); -- (id)iterator __attribute__((swift_name("iterator()"))); -- (void)setIndex:(int32_t)index value:(T _Nullable)value __attribute__((swift_name("set(index:value:)"))); -@property (readonly) int32_t size __attribute__((swift_name("size"))); -@end; - __attribute__((swift_name("Ktor_httpOutgoingContent"))) @interface BridgeClientKtor_httpOutgoingContent : BridgeClientBase - (id _Nullable)getPropertyKey:(BridgeClientKtor_utilsAttributeKey *)key __attribute__((swift_name("getProperty(key:)"))); @@ -1885,6 +2794,22 @@ __attribute__((swift_name("RuntimeSqlPreparedStatement"))) - (void)bindStringIndex:(int32_t)index string:(NSString * _Nullable)string __attribute__((swift_name("bindString(index:string:)"))); @end; +__attribute__((swift_name("RuntimeSqlCursor"))) +@protocol BridgeClientRuntimeSqlCursor +@required +- (BridgeClientKotlinByteArray * _Nullable)getBytesIndex:(int32_t)index __attribute__((swift_name("getBytes(index:)"))); +- (BridgeClientDouble * _Nullable)getDoubleIndex:(int32_t)index __attribute__((swift_name("getDouble(index:)"))); +- (BridgeClientLong * _Nullable)getLongIndex:(int32_t)index __attribute__((swift_name("getLong(index:)"))); +- (NSString * _Nullable)getStringIndex:(int32_t)index __attribute__((swift_name("getString(index:)"))); +- (BOOL)next_ __attribute__((swift_name("next_()"))); +@end; + +__attribute__((swift_name("RuntimeQueryListener"))) +@protocol BridgeClientRuntimeQueryListener +@required +- (void)queryResultsChanged __attribute__((swift_name("queryResultsChanged()"))); +@end; + __attribute__((swift_name("Kotlinx_coroutines_coreFlowCollector"))) @protocol BridgeClientKotlinx_coroutines_coreFlowCollector @required @@ -1897,25 +2822,57 @@ __attribute__((swift_name("Kotlinx_coroutines_coreFlowCollector"))) @end; __attribute__((objc_subclassing_restricted)) -__attribute__((swift_name("KotlinUnit"))) -@interface BridgeClientKotlinUnit : BridgeClientBase +__attribute__((swift_name("Kotlinx_datetimeMonth"))) +@interface BridgeClientKotlinx_datetimeMonth : BridgeClientKotlinEnum + (instancetype)alloc __attribute__((unavailable)); + (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); -+ (instancetype)unit __attribute__((swift_name("init()"))); +- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *january __attribute__((swift_name("january"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *february __attribute__((swift_name("february"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *march __attribute__((swift_name("march"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *april __attribute__((swift_name("april"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *may __attribute__((swift_name("may"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *june __attribute__((swift_name("june"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *july __attribute__((swift_name("july"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *august __attribute__((swift_name("august"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *september __attribute__((swift_name("september"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *october __attribute__((swift_name("october"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *november __attribute__((swift_name("november"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *december __attribute__((swift_name("december"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("Kotlinx_datetimeLocalDate"))) +@interface BridgeClientKotlinx_datetimeLocalDate : BridgeClientBase +- (instancetype)initWithYear:(int32_t)year month:(BridgeClientKotlinx_datetimeMonth *)month dayOfMonth:(int32_t)dayOfMonth __attribute__((swift_name("init(year:month:dayOfMonth:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithYear:(int32_t)year monthNumber:(int32_t)monthNumber dayOfMonth:(int32_t)dayOfMonth __attribute__((swift_name("init(year:monthNumber:dayOfMonth:)"))) __attribute__((objc_designated_initializer)); +- (int32_t)compareToOther:(BridgeClientKotlinx_datetimeLocalDate *)other __attribute__((swift_name("compareTo(other:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); - (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) int32_t dayOfMonth __attribute__((swift_name("dayOfMonth"))); +@property (readonly) BridgeClientKotlinx_datetimeDayOfWeek *dayOfWeek __attribute__((swift_name("dayOfWeek"))); +@property (readonly) int32_t dayOfYear __attribute__((swift_name("dayOfYear"))); +@property (readonly) BridgeClientKotlinx_datetimeMonth *month __attribute__((swift_name("month"))); +@property (readonly) int32_t monthNumber __attribute__((swift_name("monthNumber"))); +@property (readonly) int32_t year __attribute__((swift_name("year"))); @end; __attribute__((objc_subclassing_restricted)) -__attribute__((swift_name("KotlinByteArray"))) -@interface BridgeClientKotlinByteArray : BridgeClientBase -+ (instancetype)arrayWithSize:(int32_t)size __attribute__((swift_name("init(size:)"))); -+ (instancetype)arrayWithSize:(int32_t)size init:(BridgeClientByte *(^)(BridgeClientInt *))init __attribute__((swift_name("init(size:init:)"))); +__attribute__((swift_name("Kotlinx_datetimeDayOfWeek"))) +@interface BridgeClientKotlinx_datetimeDayOfWeek : BridgeClientKotlinEnum + (instancetype)alloc __attribute__((unavailable)); + (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); -- (int8_t)getIndex:(int32_t)index __attribute__((swift_name("get(index:)"))); -- (BridgeClientKotlinByteIterator *)iterator __attribute__((swift_name("iterator()"))); -- (void)setIndex:(int32_t)index value:(int8_t)value __attribute__((swift_name("set(index:value:)"))); -@property (readonly) int32_t size __attribute__((swift_name("size"))); +- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +@property (class, readonly) BridgeClientKotlinx_datetimeDayOfWeek *monday __attribute__((swift_name("monday"))); +@property (class, readonly) BridgeClientKotlinx_datetimeDayOfWeek *tuesday __attribute__((swift_name("tuesday"))); +@property (class, readonly) BridgeClientKotlinx_datetimeDayOfWeek *wednesday __attribute__((swift_name("wednesday"))); +@property (class, readonly) BridgeClientKotlinx_datetimeDayOfWeek *thursday __attribute__((swift_name("thursday"))); +@property (class, readonly) BridgeClientKotlinx_datetimeDayOfWeek *friday __attribute__((swift_name("friday"))); +@property (class, readonly) BridgeClientKotlinx_datetimeDayOfWeek *saturday __attribute__((swift_name("saturday"))); +@property (class, readonly) BridgeClientKotlinx_datetimeDayOfWeek *sunday __attribute__((swift_name("sunday"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @end; __attribute__((objc_subclassing_restricted)) @@ -1985,11 +2942,7 @@ __attribute__((swift_name("Koin_coreLevel"))) @property (class, readonly) BridgeClientKoin_coreLevel *info __attribute__((swift_name("info"))); @property (class, readonly) BridgeClientKoin_coreLevel *error __attribute__((swift_name("error"))); @property (class, readonly) BridgeClientKoin_coreLevel *none __attribute__((swift_name("none"))); -@end; - -__attribute__((swift_name("KotlinCoroutineContextKey"))) -@protocol BridgeClientKotlinCoroutineContextKey -@required ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @end; __attribute__((swift_name("Kotlinx_serialization_coreCompositeEncoder"))) @@ -2000,6 +2953,7 @@ __attribute__((swift_name("Kotlinx_serialization_coreCompositeEncoder"))) - (void)encodeCharElementDescriptor:(id)descriptor index:(int32_t)index value:(unichar)value __attribute__((swift_name("encodeCharElement(descriptor:index:value:)"))); - (void)encodeDoubleElementDescriptor:(id)descriptor index:(int32_t)index value:(double)value __attribute__((swift_name("encodeDoubleElement(descriptor:index:value:)"))); - (void)encodeFloatElementDescriptor:(id)descriptor index:(int32_t)index value:(float)value __attribute__((swift_name("encodeFloatElement(descriptor:index:value:)"))); +- (id)encodeInlineElementDescriptor:(id)descriptor index:(int32_t)index __attribute__((swift_name("encodeInlineElement(descriptor:index:)"))); - (void)encodeIntElementDescriptor:(id)descriptor index:(int32_t)index value:(int32_t)value __attribute__((swift_name("encodeIntElement(descriptor:index:value:)"))); - (void)encodeLongElementDescriptor:(id)descriptor index:(int32_t)index value:(int64_t)value __attribute__((swift_name("encodeLongElement(descriptor:index:value:)"))); - (void)encodeNullableSerializableElementDescriptor:(id)descriptor index:(int32_t)index serializer:(id)serializer value:(id _Nullable)value __attribute__((swift_name("encodeNullableSerializableElement(descriptor:index:serializer:value:)"))); @@ -2040,6 +2994,7 @@ __attribute__((swift_name("Kotlinx_serialization_coreCompositeDecoder"))) - (double)decodeDoubleElementDescriptor:(id)descriptor index:(int32_t)index __attribute__((swift_name("decodeDoubleElement(descriptor:index:)"))); - (int32_t)decodeElementIndexDescriptor:(id)descriptor __attribute__((swift_name("decodeElementIndex(descriptor:)"))); - (float)decodeFloatElementDescriptor:(id)descriptor index:(int32_t)index __attribute__((swift_name("decodeFloatElement(descriptor:index:)"))); +- (id)decodeInlineElementDescriptor:(id)descriptor index:(int32_t)index __attribute__((swift_name("decodeInlineElement(descriptor:index:)"))); - (int32_t)decodeIntElementDescriptor:(id)descriptor index:(int32_t)index __attribute__((swift_name("decodeIntElement(descriptor:index:)"))); - (int64_t)decodeLongElementDescriptor:(id)descriptor index:(int32_t)index __attribute__((swift_name("decodeLongElement(descriptor:index:)"))); - (id _Nullable)decodeNullableSerializableElementDescriptor:(id)descriptor index:(int32_t)index deserializer:(id)deserializer previousValue:(id _Nullable)previousValue __attribute__((swift_name("decodeNullableSerializableElement(descriptor:index:deserializer:previousValue:)"))); @@ -2058,7 +3013,7 @@ __attribute__((swift_name("Koin_coreScopeDefinition"))) - (id)component1 __attribute__((swift_name("component1()"))); - (BOOL)component2 __attribute__((swift_name("component2()"))); - (BridgeClientKoin_coreScopeDefinition *)doCopyQualifier:(id)qualifier isRoot:(BOOL)isRoot __attribute__((swift_name("doCopy(qualifier:isRoot:)"))); -- (BridgeClientKoin_coreBeanDefinition *)declareNewDefinitionInstance:(id)instance defQualifier:(id _Nullable)defQualifier secondaryTypes:(NSArray> * _Nullable)secondaryTypes override:(BOOL)override __attribute__((swift_name("declareNewDefinition(instance:defQualifier:secondaryTypes:override:)"))); +- (BridgeClientKoin_coreBeanDefinition *)declareNewDefinitionInstance:(id _Nullable)instance defQualifier:(id _Nullable)defQualifier secondaryTypes:(NSArray> * _Nullable)secondaryTypes override:(BOOL)override __attribute__((swift_name("declareNewDefinition(instance:defQualifier:secondaryTypes:override:)"))); - (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); - (NSUInteger)hash __attribute__((swift_name("hash()"))); - (void)removeBeanDefinition:(BridgeClientKoin_coreBeanDefinition *)beanDefinition __attribute__((swift_name("remove(beanDefinition:)"))); @@ -2075,6 +3030,11 @@ __attribute__((swift_name("Koin_coreScopeCallback"))) - (void)onScopeCloseScope:(BridgeClientKoin_coreScope *)scope __attribute__((swift_name("onScopeClose(scope:)"))); @end; +__attribute__((swift_name("KotlinCoroutineContextKey"))) +@protocol BridgeClientKotlinCoroutineContextKey +@required +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Ktor_client_coreHttpRequestData"))) @interface BridgeClientKtor_client_coreHttpRequestData : BridgeClientBase @@ -2410,13 +3370,6 @@ __attribute__((swift_name("Ktor_client_coreHttpResponseContainer"))) @property (readonly) id response __attribute__((swift_name("response"))); @end; -__attribute__((swift_name("KotlinIterator"))) -@protocol BridgeClientKotlinIterator -@required -- (BOOL)hasNext __attribute__((swift_name("hasNext()"))); -- (id _Nullable)next_ __attribute__((swift_name("next_()"))); -@end; - __attribute__((swift_name("Ktor_httpHeaderValueWithParameters"))) @interface BridgeClientKtor_httpHeaderValueWithParameters : BridgeClientBase - (instancetype)initWithContent:(NSString *)content parameters:(NSArray *)parameters __attribute__((swift_name("init(content:parameters:)"))) __attribute__((objc_designated_initializer)); @@ -2482,12 +3435,17 @@ __attribute__((swift_name("KotlinMapEntry"))) @property (readonly) id _Nullable value __attribute__((swift_name("value"))); @end; -__attribute__((swift_name("KotlinByteIterator"))) -@interface BridgeClientKotlinByteIterator : BridgeClientBase -- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); -+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -- (BridgeClientByte *)next_ __attribute__((swift_name("next_()"))); -- (int8_t)nextByte __attribute__((swift_name("nextByte()"))); +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("KotlinByteArray"))) +@interface BridgeClientKotlinByteArray : BridgeClientBase ++ (instancetype)arrayWithSize:(int32_t)size __attribute__((swift_name("init(size:)"))); ++ (instancetype)arrayWithSize:(int32_t)size init:(BridgeClientByte *(^)(BridgeClientInt *))init __attribute__((swift_name("init(size:init:)"))); ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); +- (int8_t)getIndex:(int32_t)index __attribute__((swift_name("get(index:)"))); +- (BridgeClientKotlinByteIterator *)iterator __attribute__((swift_name("iterator()"))); +- (void)setIndex:(int32_t)index value:(int8_t)value __attribute__((swift_name("set(index:value:)"))); +@property (readonly) int32_t size __attribute__((swift_name("size"))); @end; __attribute__((objc_subclassing_restricted)) @@ -2498,6 +3456,7 @@ __attribute__((swift_name("Koin_coreKind"))) - (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); @property (class, readonly) BridgeClientKoin_coreKind *single __attribute__((swift_name("single"))); @property (class, readonly) BridgeClientKoin_coreKind *factory __attribute__((swift_name("factory"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @end; __attribute__((objc_subclassing_restricted)) @@ -2717,8 +3676,8 @@ __attribute__((swift_name("Ktor_ioOutput"))) __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Ktor_ioIoBuffer"))) @interface BridgeClientKtor_ioIoBuffer : BridgeClientKtor_ioChunkBuffer -- (instancetype)initWithContent:(void *)content contentCapacity:(int32_t)contentCapacity __attribute__((swift_name("init(content:contentCapacity:)"))) __attribute__((objc_designated_initializer)) __attribute__((deprecated("Use Buffer instead."))); - (instancetype)initWithMemory:(BridgeClientKtor_ioMemory *)memory origin:(BridgeClientKtor_ioChunkBuffer * _Nullable)origin __attribute__((swift_name("init(memory:origin:)"))) __attribute__((objc_designated_initializer)) __attribute__((deprecated("Use Buffer instead."))); +- (instancetype)initWithContent:(void *)content contentCapacity:(int32_t)contentCapacity __attribute__((swift_name("init(content:contentCapacity:)"))) __attribute__((objc_designated_initializer)) __attribute__((deprecated("Use Buffer instead."))); - (id)appendValue:(unichar)c __attribute__((swift_name("append(value:)"))); - (id)appendCsq:(BridgeClientKotlinCharArray *)csq start:(int32_t)start end:(int32_t)end __attribute__((swift_name("append(csq:start:end:)"))); - (id)appendValue_:(id _Nullable)csq __attribute__((swift_name("append(value_:)"))); @@ -2819,6 +3778,7 @@ __attribute__((swift_name("Ktor_ioByteOrder"))) - (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); @property (class, readonly) BridgeClientKtor_ioByteOrder *bigEndian __attribute__((swift_name("bigEndian"))); @property (class, readonly) BridgeClientKtor_ioByteOrder *littleEndian __attribute__((swift_name("littleEndian"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @end; __attribute__((swift_name("KotlinKType"))) @@ -2843,6 +3803,14 @@ __attribute__((swift_name("Ktor_httpHeaderValueParam"))) @property (readonly) NSString *value __attribute__((swift_name("value"))); @end; +__attribute__((swift_name("KotlinByteIterator"))) +@interface BridgeClientKotlinByteIterator : BridgeClientBase +- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); ++ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); +- (BridgeClientByte *)next __attribute__((swift_name("next()"))); +- (int8_t)nextByte __attribute__((swift_name("nextByte()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Ktor_utilsWeekDay"))) @interface BridgeClientKtor_utilsWeekDay : BridgeClientKotlinEnum @@ -2856,6 +3824,7 @@ __attribute__((swift_name("Ktor_utilsWeekDay"))) @property (class, readonly) BridgeClientKtor_utilsWeekDay *friday __attribute__((swift_name("friday"))); @property (class, readonly) BridgeClientKtor_utilsWeekDay *saturday __attribute__((swift_name("saturday"))); @property (class, readonly) BridgeClientKtor_utilsWeekDay *sunday __attribute__((swift_name("sunday"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) NSString *value __attribute__((swift_name("value"))); @end; @@ -2877,6 +3846,7 @@ __attribute__((swift_name("Ktor_utilsMonth"))) @property (class, readonly) BridgeClientKtor_utilsMonth *october __attribute__((swift_name("october"))); @property (class, readonly) BridgeClientKtor_utilsMonth *november __attribute__((swift_name("november"))); @property (class, readonly) BridgeClientKtor_utilsMonth *december __attribute__((swift_name("december"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) NSString *value __attribute__((swift_name("value"))); @end; @@ -2972,7 +3942,7 @@ __attribute__((swift_name("KotlinCharIterator"))) @interface BridgeClientKotlinCharIterator : BridgeClientBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -- (id)next_ __attribute__((swift_name("next_()"))); +- (id)next __attribute__((swift_name("next()"))); - (unichar)nextChar __attribute__((swift_name("nextChar()"))); @end; @@ -2985,6 +3955,7 @@ __attribute__((swift_name("KotlinKVariance"))) @property (class, readonly) BridgeClientKotlinKVariance *invariant __attribute__((swift_name("invariant"))); @property (class, readonly) BridgeClientKotlinKVariance *in __attribute__((swift_name("in"))); @property (class, readonly) BridgeClientKotlinKVariance *out __attribute__((swift_name("out"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @end; __attribute__((swift_name("Kotlinx_coroutines_coreAtomicOp"))) @@ -3054,7 +4025,7 @@ __attribute__((swift_name("Kotlinx_coroutines_coreLockFreeLinkedListNodeAddLastD - (id)updatedNextAffected:(BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNode *)affected next:(BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNode *)next __attribute__((swift_name("updatedNext(affected:next:)"))); @property (readonly) BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNode * _Nullable affectedNode __attribute__((swift_name("affectedNode"))); @property (readonly) T node __attribute__((swift_name("node"))); -@property (readonly) BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNode * _Nullable originalNext __attribute__((swift_name("originalNext"))); +@property (readonly) BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNode *originalNext __attribute__((swift_name("originalNext"))); @property (readonly) BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNode *queue __attribute__((swift_name("queue"))); @end; diff --git a/SwiftPackage/Binaries/BridgeClient.xcframework/ios-arm64/dSYMs/BridgeClient.framework.dSYM/Contents/Info.plist b/SwiftPackage/Binaries/BridgeClient.xcframework/ios-arm64/dSYMs/BridgeClient.framework.dSYM/Contents/Info.plist new file mode 100644 index 000000000..97d80e383 --- /dev/null +++ b/SwiftPackage/Binaries/BridgeClient.xcframework/ios-arm64/dSYMs/BridgeClient.framework.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.org.sagebionetworks.bridge.BridgeClient + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/SwiftPackage/Binaries/BridgeClient.xcframework/ios-arm64/dSYMs/BridgeClient.framework.dSYM/Contents/Resources/DWARF/BridgeClient b/SwiftPackage/Binaries/BridgeClient.xcframework/ios-arm64/dSYMs/BridgeClient.framework.dSYM/Contents/Resources/DWARF/BridgeClient new file mode 100644 index 000000000..b7d730cae Binary files /dev/null and b/SwiftPackage/Binaries/BridgeClient.xcframework/ios-arm64/dSYMs/BridgeClient.framework.dSYM/Contents/Resources/DWARF/BridgeClient differ diff --git a/SwiftPackage/Binaries/BridgeClient.xcframework/ios-x86_64-simulator/BridgeClient.framework/BridgeClient b/SwiftPackage/Binaries/BridgeClient.xcframework/ios-x86_64-simulator/BridgeClient.framework/BridgeClient index ccfcb4cf3..925736b66 100755 Binary files a/SwiftPackage/Binaries/BridgeClient.xcframework/ios-x86_64-simulator/BridgeClient.framework/BridgeClient and b/SwiftPackage/Binaries/BridgeClient.xcframework/ios-x86_64-simulator/BridgeClient.framework/BridgeClient differ diff --git a/SwiftPackage/Binaries/BridgeClient.xcframework/ios-x86_64-simulator/BridgeClient.framework/Headers/BridgeClient.h b/SwiftPackage/Binaries/BridgeClient.xcframework/ios-x86_64-simulator/BridgeClient.framework/Headers/BridgeClient.h index 3523d2494..38e4f9029 100644 --- a/SwiftPackage/Binaries/BridgeClient.xcframework/ios-x86_64-simulator/BridgeClient.framework/Headers/BridgeClient.h +++ b/SwiftPackage/Binaries/BridgeClient.xcframework/ios-x86_64-simulator/BridgeClient.framework/Headers/BridgeClient.h @@ -6,9 +6,9 @@ #import #import -@class BridgeClientCriteria, BridgeClientKotlinx_serialization_jsonJsonElement, BridgeClientSurveyReference, BridgeClientSchemaReference, BridgeClientConfigReference, BridgeClientFileReference, BridgeClientAppConfig, BridgeClientClientInfo, BridgeClientKoin_coreKoin, BridgeClientUserSessionInfo, BridgeClientKotlinEnum, BridgeClientAccountStatus, BridgeClientAssessmentConfig, BridgeClientConsentStatus, BridgeClientEnvironment, BridgeClientPhone, BridgeClientRole, BridgeClientSharingScope, BridgeClientKtor_client_coreHttpClient, BridgeClientRefreshTokenFeature, BridgeClientKtor_utilsAttributeKey, BridgeClientRefreshTokenFeatureConfig, BridgeClientSessionTokenFeature, BridgeClientSessionTokenFeatureConfig, BridgeClientResourceAdapter, BridgeClientResourceType, BridgeClientResourceStatus, BridgeClientResource, BridgeClientRuntimeQuery<__covariant RowType>, BridgeClientResourceResult<__covariant T>, BridgeClientResourceResultFailed, BridgeClientKotlinNothing, BridgeClientResourceResultSuccess<__covariant T>, BridgeClientResourceDatabaseHelper, BridgeClientAbstractResourceRepo, BridgeClientKoin_coreModule, BridgeClientKoin_coreKoinApplication, BridgeClientKoin_coreDefinitionParameters, BridgeClientKoin_coreScope, BridgeClientKotlinLazyThreadSafetyMode, BridgeClientKoin_coreLogger, BridgeClientKoin_corePropertyRegistry, BridgeClientKoin_coreScopeRegistry, BridgeClientKtor_client_coreHttpClientEngineConfig, BridgeClientKtor_client_coreHttpClientConfig, BridgeClientKtor_client_coreHttpRequestBuilder, BridgeClientKtor_client_coreHttpClientCall, BridgeClientKotlinx_coroutines_coreCoroutineDispatcher, BridgeClientKtor_client_coreHttpReceivePipeline, BridgeClientKtor_client_coreHttpRequestPipeline, BridgeClientKtor_client_coreHttpResponsePipeline, BridgeClientKtor_client_coreHttpSendPipeline, BridgeClientKotlinThrowable, BridgeClientKotlinArray, BridgeClientKotlinException, BridgeClientKotlinRuntimeException, BridgeClientKotlinIllegalStateException, BridgeClientKtor_httpOutgoingContent, BridgeClientKtor_httpHttpMethod, BridgeClientKtor_httpUrl, BridgeClientRuntimeTransacterTransaction, BridgeClientKotlinUnit, BridgeClientKotlinByteArray, BridgeClientKoin_coreBeanDefinition, BridgeClientKoin_coreOptions, BridgeClientKoin_coreScopeDSL, BridgeClientKoin_coreLevel, BridgeClientKotlinx_serialization_coreSerializersModule, BridgeClientKotlinx_serialization_coreSerialKind, BridgeClientKoin_coreScopeDefinition, BridgeClientKtor_client_coreHttpRequestData, BridgeClientKtor_client_coreHttpResponseData, BridgeClientKtor_client_coreProxyConfig, BridgeClientKtor_httpHeadersBuilder, BridgeClientKtor_httpURLBuilder, BridgeClientKtor_client_coreTypeInfo, BridgeClientKtor_client_coreHttpResponse, BridgeClientKotlinAbstractCoroutineContextElement, BridgeClientKtor_utilsPipelinePhase, BridgeClientKtor_utilsPipeline, BridgeClientKtor_client_coreHttpResponseContainer, BridgeClientKtor_httpContentType, BridgeClientKtor_httpHttpStatusCode, BridgeClientKtor_httpURLProtocol, BridgeClientKotlinByteIterator, BridgeClientKoin_coreKind, BridgeClientKoin_coreProperties, BridgeClientKoin_coreCallbacks, BridgeClientKtor_utilsGMTDate, BridgeClientKtor_httpHttpProtocolVersion, BridgeClientKtor_utilsStringValuesBuilder, BridgeClientKtor_httpParametersBuilder, BridgeClientKotlinx_coroutines_coreCancellationException, BridgeClientKtor_ioMemory, BridgeClientKtor_ioIoBuffer, BridgeClientKtor_ioByteReadPacket, BridgeClientKtor_ioByteOrder, BridgeClientKtor_httpHeaderValueParam, BridgeClientKtor_httpHeaderValueWithParameters, BridgeClientKtor_utilsWeekDay, BridgeClientKtor_utilsMonth, BridgeClientKtor_ioBuffer, BridgeClientKtor_ioChunkBuffer, BridgeClientKotlinCharArray, BridgeClientKtor_ioAbstractInput, BridgeClientKtor_ioByteReadPacketBase, BridgeClientKtor_ioByteReadPacketPlatformBase, BridgeClientKotlinKTypeProjection, BridgeClientKotlinx_coroutines_coreAtomicDesc, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNodePrepareOp, BridgeClientKotlinCharIterator, BridgeClientKotlinKVariance, BridgeClientKotlinx_coroutines_coreAtomicOp<__contravariant T>, BridgeClientKotlinx_coroutines_coreOpDescriptor, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNode, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNodeAbstractAtomicDesc, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNodeAddLastDesc, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNodeRemoveFirstDesc; +@class BridgeClientCriteria, BridgeClientKotlinx_serialization_jsonJsonElement, BridgeClientSurveyReference, BridgeClientSchemaReference, BridgeClientConfigReference, BridgeClientFileReference, BridgeClientAppConfig, BridgeClientClientInfo, NSDate, BridgeClientNativeAdherenceRecord, BridgeClientKoin_coreKoin, BridgeClientResourceStatus, BridgeClientUserSessionInfo, BridgeClientAssessmentInfo, BridgeClientNativeScheduledAssessment, NSDateComponents, BridgeClientNotificationMessage, BridgeClientNativeScheduledNotification, NSTimeZone, BridgeClientNativeScheduledSessionWindow, BridgeClientNativeScheduledSessionTimelineSlice, BridgeClientSessionInfo, BridgeClientKotlinEnum, BridgeClientAccountStatus, BridgeClientKotlinArray, BridgeClientKotlinx_datetimeInstant, BridgeClientAdherenceRecord, BridgeClientAdherenceRecordType, BridgeClientAdherenceRecordUpdates, BridgeClientSortOrder, BridgeClientAdherenceRecordsSearch, BridgeClientAssessmentConfig, BridgeClientColorScheme, BridgeClientConsentStatus, BridgeClientEnvironment, BridgeClientNotificationType, BridgeClientNotificationInfo, BridgeClientPerformanceOrder, BridgeClientPhone, BridgeClientReminderType, BridgeClientRole, BridgeClientScheduledAssessment, BridgeClientKotlinx_datetimeDateTimePeriod, BridgeClientScheduledSession, BridgeClientSharingScope, BridgeClientStudyActivityEvent, BridgeClientStudyActivityEventList, BridgeClientTimeline, BridgeClientKtor_client_coreHttpClient, BridgeClientRefreshTokenFeature, BridgeClientKtor_utilsAttributeKey, BridgeClientRefreshTokenFeatureConfig, BridgeClientSessionTokenFeature, BridgeClientSessionTokenFeatureConfig, BridgeClientResourceAdapter, BridgeClientResourceType, BridgeClientResource, BridgeClientRuntimeQuery<__covariant RowType>, BridgeClientResourceResult<__covariant T>, BridgeClientResourceResultFailed, BridgeClientKotlinNothing, BridgeClientResourceResultSuccess<__covariant T>, BridgeClientResourceDatabaseHelper, BridgeClientAbstractResourceRepo, BridgeClientKotlinUnit, BridgeClientAdherenceRecordRepo, BridgeClientActivityEventsRepo, BridgeClientScheduledAssessmentReference, BridgeClientKotlinx_datetimeLocalDateTime, BridgeClientScheduledNotification, BridgeClientKotlinx_datetimeTimeZone, BridgeClientScheduledSessionWindow, BridgeClientScheduledSessionTimelineSlice, BridgeClientKoin_coreModule, BridgeClientKoin_coreKoinApplication, BridgeClientKotlinThrowable, BridgeClientKoin_coreDefinitionParameters, BridgeClientKoin_coreScope, BridgeClientKotlinLazyThreadSafetyMode, BridgeClientKoin_coreLogger, BridgeClientKoin_corePropertyRegistry, BridgeClientKoin_coreScopeRegistry, BridgeClientKtor_client_coreHttpClientEngineConfig, BridgeClientKtor_client_coreHttpClientConfig, BridgeClientKtor_client_coreHttpRequestBuilder, BridgeClientKtor_client_coreHttpClientCall, BridgeClientKotlinx_coroutines_coreCoroutineDispatcher, BridgeClientKtor_client_coreHttpReceivePipeline, BridgeClientKtor_client_coreHttpRequestPipeline, BridgeClientKtor_client_coreHttpResponsePipeline, BridgeClientKtor_client_coreHttpSendPipeline, BridgeClientKotlinException, BridgeClientKotlinRuntimeException, BridgeClientKotlinIllegalStateException, BridgeClientKtor_httpOutgoingContent, BridgeClientKtor_httpHttpMethod, BridgeClientKtor_httpUrl, BridgeClientRuntimeTransacterTransaction, BridgeClientKotlinx_datetimeMonth, BridgeClientKotlinx_datetimeLocalDate, BridgeClientKotlinx_datetimeDayOfWeek, BridgeClientKoin_coreBeanDefinition, BridgeClientKoin_coreOptions, BridgeClientKoin_coreScopeDSL, BridgeClientKoin_coreLevel, BridgeClientKotlinx_serialization_coreSerializersModule, BridgeClientKotlinx_serialization_coreSerialKind, BridgeClientKoin_coreScopeDefinition, BridgeClientKtor_client_coreHttpRequestData, BridgeClientKtor_client_coreHttpResponseData, BridgeClientKtor_client_coreProxyConfig, BridgeClientKtor_httpHeadersBuilder, BridgeClientKtor_httpURLBuilder, BridgeClientKtor_client_coreTypeInfo, BridgeClientKtor_client_coreHttpResponse, BridgeClientKotlinAbstractCoroutineContextElement, BridgeClientKtor_utilsPipelinePhase, BridgeClientKtor_utilsPipeline, BridgeClientKtor_client_coreHttpResponseContainer, BridgeClientKtor_httpContentType, BridgeClientKtor_httpHttpStatusCode, BridgeClientKtor_httpURLProtocol, BridgeClientKotlinByteArray, BridgeClientKoin_coreKind, BridgeClientKoin_coreProperties, BridgeClientKoin_coreCallbacks, BridgeClientKtor_utilsGMTDate, BridgeClientKtor_httpHttpProtocolVersion, BridgeClientKtor_utilsStringValuesBuilder, BridgeClientKtor_httpParametersBuilder, BridgeClientKotlinx_coroutines_coreCancellationException, BridgeClientKtor_ioMemory, BridgeClientKtor_ioIoBuffer, BridgeClientKtor_ioByteReadPacket, BridgeClientKtor_ioByteOrder, BridgeClientKtor_httpHeaderValueParam, BridgeClientKtor_httpHeaderValueWithParameters, BridgeClientKotlinByteIterator, BridgeClientKtor_utilsWeekDay, BridgeClientKtor_utilsMonth, BridgeClientKtor_ioBuffer, BridgeClientKtor_ioChunkBuffer, BridgeClientKotlinCharArray, BridgeClientKtor_ioAbstractInput, BridgeClientKtor_ioByteReadPacketBase, BridgeClientKtor_ioByteReadPacketPlatformBase, BridgeClientKotlinKTypeProjection, BridgeClientKotlinx_coroutines_coreAtomicDesc, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNodePrepareOp, BridgeClientKotlinCharIterator, BridgeClientKotlinKVariance, BridgeClientKotlinx_coroutines_coreAtomicOp<__contravariant T>, BridgeClientKotlinx_coroutines_coreOpDescriptor, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNode, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNodeAbstractAtomicDesc, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNodeAddLastDesc, BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNodeRemoveFirstDesc; -@protocol BridgeClientKotlinx_serialization_coreKSerializer, BridgeClientBridgeConfig, BridgeClientKoin_coreKoinComponent, BridgeClientKotlinComparable, BridgeClientKotlinSuspendFunction0, BridgeClientKtor_client_coreHttpRequest, BridgeClientKtor_client_coreHttpClientFeature, BridgeClientSessionTokenFeatureSessionTokenProvider, BridgeClientBridgeResourceDatabaseQueries, BridgeClientRuntimeTransactionWithoutReturn, BridgeClientRuntimeTransactionWithReturn, BridgeClientRuntimeTransacter, BridgeClientBridgeResourceDatabase, BridgeClientRuntimeSqlDriver, BridgeClientRuntimeSqlDriverSchema, BridgeClientDbDriverFactory, BridgeClientRuntimeColumnAdapter, BridgeClientKotlinx_coroutines_coreCoroutineScope, BridgeClientKotlinx_coroutines_coreFlow, BridgeClientRuntimeSqlCursor, BridgeClientRuntimeQueryListener, BridgeClientKotlinCoroutineContext, BridgeClientKotlinx_serialization_coreEncoder, BridgeClientKotlinx_serialization_coreSerialDescriptor, BridgeClientKotlinx_serialization_coreSerializationStrategy, BridgeClientKotlinx_serialization_coreDecoder, BridgeClientKotlinx_serialization_coreDeserializationStrategy, BridgeClientKotlinKClass, BridgeClientKoin_coreKoinScopeComponent, BridgeClientKoin_coreQualifier, BridgeClientKotlinLazy, BridgeClientKtor_ioCloseable, BridgeClientKtor_client_coreHttpClientEngine, BridgeClientKtor_client_coreHttpClientEngineCapability, BridgeClientKtor_utilsAttributes, BridgeClientKotlinFunction, BridgeClientKtor_httpHeaders, BridgeClientKtor_httpHttpMessage, BridgeClientRuntimeTransactionCallbacks, BridgeClientRuntimeSqlPreparedStatement, BridgeClientRuntimeCloseable, BridgeClientKotlinx_coroutines_coreFlowCollector, BridgeClientKotlinCoroutineContextElement, BridgeClientKotlinCoroutineContextKey, BridgeClientKotlinx_serialization_coreCompositeEncoder, BridgeClientKotlinAnnotation, BridgeClientKotlinx_serialization_coreCompositeDecoder, BridgeClientKotlinKDeclarationContainer, BridgeClientKotlinKAnnotatedElement, BridgeClientKotlinKClassifier, BridgeClientKoin_coreScopeCallback, BridgeClientKtor_httpHttpMessageBuilder, BridgeClientKotlinx_coroutines_coreJob, BridgeClientKtor_ioByteReadChannel, BridgeClientKotlinContinuation, BridgeClientKotlinContinuationInterceptor, BridgeClientKotlinx_coroutines_coreRunnable, BridgeClientKotlinSuspendFunction2, BridgeClientKotlinIterator, BridgeClientKtor_httpParameters, BridgeClientKotlinMapEntry, BridgeClientKtor_utilsStringValues, BridgeClientKotlinx_serialization_coreSerializersModuleCollector, BridgeClientKotlinx_coroutines_coreChildHandle, BridgeClientKotlinx_coroutines_coreChildJob, BridgeClientKotlinx_coroutines_coreDisposableHandle, BridgeClientKotlinSequence, BridgeClientKotlinx_coroutines_coreSelectClause0, BridgeClientKtor_ioReadSession, BridgeClientKotlinSuspendFunction1, BridgeClientKotlinAppendable, BridgeClientKotlinKType, BridgeClientKotlinx_coroutines_coreParentJob, BridgeClientKotlinx_coroutines_coreSelectInstance, BridgeClientKtor_ioObjectPool, BridgeClientKtor_ioInput, BridgeClientKtor_ioOutput; +@protocol BridgeClientKotlinx_serialization_coreKSerializer, BridgeClientPlatformConfig, BridgeClientBridgeConfig, BridgeClientKoin_coreKoinComponent, BridgeClientKotlinComparable, BridgeClientKotlinSuspendFunction0, BridgeClientKtor_client_coreHttpRequest, BridgeClientKtor_client_coreHttpClientFeature, BridgeClientSessionTokenFeatureSessionTokenProvider, BridgeClientBridgeResourceDatabaseQueries, BridgeClientRuntimeTransactionWithoutReturn, BridgeClientRuntimeTransactionWithReturn, BridgeClientRuntimeTransacter, BridgeClientBridgeResourceDatabase, BridgeClientRuntimeSqlDriver, BridgeClientRuntimeSqlDriverSchema, BridgeClientDbDriverFactory, BridgeClientRuntimeColumnAdapter, BridgeClientKotlinx_coroutines_coreCoroutineScope, BridgeClientKotlinx_coroutines_coreFlow, BridgeClientKotlinx_serialization_coreEncoder, BridgeClientKotlinx_serialization_coreSerialDescriptor, BridgeClientKotlinx_serialization_coreSerializationStrategy, BridgeClientKotlinx_serialization_coreDecoder, BridgeClientKotlinx_serialization_coreDeserializationStrategy, BridgeClientKotlinKClass, BridgeClientKoin_coreKoinScopeComponent, BridgeClientKoin_coreQualifier, BridgeClientKotlinLazy, BridgeClientKotlinIterator, BridgeClientKotlinCoroutineContext, BridgeClientKtor_ioCloseable, BridgeClientKtor_client_coreHttpClientEngine, BridgeClientKtor_client_coreHttpClientEngineCapability, BridgeClientKtor_utilsAttributes, BridgeClientKotlinFunction, BridgeClientKtor_httpHeaders, BridgeClientKtor_httpHttpMessage, BridgeClientRuntimeTransactionCallbacks, BridgeClientRuntimeSqlPreparedStatement, BridgeClientRuntimeSqlCursor, BridgeClientRuntimeCloseable, BridgeClientRuntimeQueryListener, BridgeClientKotlinx_coroutines_coreFlowCollector, BridgeClientKotlinx_serialization_coreCompositeEncoder, BridgeClientKotlinAnnotation, BridgeClientKotlinx_serialization_coreCompositeDecoder, BridgeClientKotlinKDeclarationContainer, BridgeClientKotlinKAnnotatedElement, BridgeClientKotlinKClassifier, BridgeClientKoin_coreScopeCallback, BridgeClientKotlinCoroutineContextElement, BridgeClientKotlinCoroutineContextKey, BridgeClientKtor_httpHttpMessageBuilder, BridgeClientKotlinx_coroutines_coreJob, BridgeClientKtor_ioByteReadChannel, BridgeClientKotlinContinuation, BridgeClientKotlinContinuationInterceptor, BridgeClientKotlinx_coroutines_coreRunnable, BridgeClientKotlinSuspendFunction2, BridgeClientKtor_httpParameters, BridgeClientKotlinMapEntry, BridgeClientKtor_utilsStringValues, BridgeClientKotlinx_serialization_coreSerializersModuleCollector, BridgeClientKotlinx_coroutines_coreChildHandle, BridgeClientKotlinx_coroutines_coreChildJob, BridgeClientKotlinx_coroutines_coreDisposableHandle, BridgeClientKotlinSequence, BridgeClientKotlinx_coroutines_coreSelectClause0, BridgeClientKtor_ioReadSession, BridgeClientKotlinSuspendFunction1, BridgeClientKotlinAppendable, BridgeClientKotlinKType, BridgeClientKotlinx_coroutines_coreParentJob, BridgeClientKotlinx_coroutines_coreSelectInstance, BridgeClientKtor_ioObjectPool, BridgeClientKtor_ioInput, BridgeClientKtor_ioOutput; NS_ASSUME_NONNULL_BEGIN #pragma clang diagnostic push @@ -291,10 +291,9 @@ __attribute__((swift_name("SurveyReference.Companion"))) - (id)serializer __attribute__((swift_name("serializer()"))); @end; -__attribute__((swift_name("BridgeConfig"))) -@protocol BridgeClientBridgeConfig +__attribute__((swift_name("PlatformConfig"))) +@protocol BridgeClientPlatformConfig @required -- (NSString * _Nullable)getUserAgentInfo:(BridgeClientClientInfo *)info __attribute__((swift_name("getUserAgent(info:)"))); @property (readonly) NSString *appId __attribute__((swift_name("appId"))); @property (readonly) NSString *appName __attribute__((swift_name("appName"))); @property (readonly) int32_t appVersion __attribute__((swift_name("appVersion"))); @@ -302,6 +301,12 @@ __attribute__((swift_name("BridgeConfig"))) @property (readonly) NSString *deviceName __attribute__((swift_name("deviceName"))); @property (readonly) NSString *osName __attribute__((swift_name("osName"))); @property (readonly) NSString *osVersion __attribute__((swift_name("osVersion"))); +@end; + +__attribute__((swift_name("BridgeConfig"))) +@protocol BridgeClientBridgeConfig +@required +- (NSString * _Nullable)getUserAgentInfo:(BridgeClientClientInfo *)info __attribute__((swift_name("getUserAgent(info:)"))); @property (readonly) int32_t sdkVersion __attribute__((swift_name("sdkVersion"))); @property (readonly) NSString *userAgent __attribute__((swift_name("userAgent"))); @end; @@ -309,8 +314,10 @@ __attribute__((swift_name("BridgeConfig"))) __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("IOSBridgeConfig"))) @interface BridgeClientIOSBridgeConfig : BridgeClientBase -- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); -+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)iOSBridgeConfig __attribute__((swift_name("init()"))); +- (void)initializePlatformConfig:(id)platformConfig __attribute__((swift_name("initialize(platformConfig:)"))); @property (readonly) NSString *appId __attribute__((swift_name("appId"))); @property (readonly) NSString *appName __attribute__((swift_name("appName"))); @property (readonly) int32_t appVersion __attribute__((swift_name("appVersion"))); @@ -321,6 +328,39 @@ __attribute__((swift_name("IOSBridgeConfig"))) @property (readonly) int32_t sdkVersion __attribute__((swift_name("sdkVersion"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("JsonElementDecoder"))) +@interface BridgeClientJsonElementDecoder : BridgeClientBase +- (instancetype)initWithJsonString:(NSString *)jsonString __attribute__((swift_name("init(jsonString:)"))) __attribute__((objc_designated_initializer)); + +/** + @note This method converts all Kotlin exceptions to errors. +*/ +- (BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)decodeObjectAndReturnError:(NSError * _Nullable * _Nullable)error __attribute__((swift_name("decodeObject()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NativeAdherenceRecord"))) +@interface BridgeClientNativeAdherenceRecord : BridgeClientBase +- (instancetype)initWithInstanceGuid:(NSString *)instanceGuid eventTimestamp:(NSString *)eventTimestamp startedOn:(NSDate * _Nullable)startedOn finishedOn:(NSDate * _Nullable)finishedOn declined:(BridgeClientBoolean * _Nullable)declined clientData:(BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)clientData __attribute__((swift_name("init(instanceGuid:eventTimestamp:startedOn:finishedOn:declined:clientData:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (NSDate * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (NSDate * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientBoolean * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)component6 __attribute__((swift_name("component6()"))); +- (BridgeClientNativeAdherenceRecord *)doCopyInstanceGuid:(NSString *)instanceGuid eventTimestamp:(NSString *)eventTimestamp startedOn:(NSDate * _Nullable)startedOn finishedOn:(NSDate * _Nullable)finishedOn declined:(BridgeClientBoolean * _Nullable)declined clientData:(BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)clientData __attribute__((swift_name("doCopy(instanceGuid:eventTimestamp:startedOn:finishedOn:declined:clientData:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable clientData __attribute__((swift_name("clientData"))); +@property (readonly) BridgeClientBoolean * _Nullable declined __attribute__((swift_name("declined"))); +@property (readonly) NSString *eventTimestamp __attribute__((swift_name("eventTimestamp"))); +@property (readonly) NSDate * _Nullable finishedOn __attribute__((swift_name("finishedOn"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) NSDate * _Nullable startedOn __attribute__((swift_name("startedOn"))); +@end; + __attribute__((swift_name("Koin_coreKoinComponent"))) @protocol BridgeClientKoin_coreKoinComponent @required @@ -328,13 +368,119 @@ __attribute__((swift_name("Koin_coreKoinComponent"))) @end; __attribute__((objc_subclassing_restricted)) -__attribute__((swift_name("NativeAssessmentViewModel"))) -@interface BridgeClientNativeAssessmentViewModel : BridgeClientBase -- (instancetype)initWithViewUpdate:(void (^)(NSString * _Nullable))viewUpdate __attribute__((swift_name("init(viewUpdate:)"))) __attribute__((objc_designated_initializer)); +__attribute__((swift_name("NativeAppConfigManager"))) +@interface BridgeClientNativeAppConfigManager : BridgeClientBase +- (instancetype)initWithViewUpdate:(void (^)(BridgeClientAppConfig * _Nullable, BridgeClientResourceStatus * _Nullable))viewUpdate __attribute__((swift_name("init(viewUpdate:)"))) __attribute__((objc_designated_initializer)); +- (void)observeAppConfig __attribute__((swift_name("observeAppConfig()"))); +- (void)onCleared __attribute__((swift_name("onCleared()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NativeAuthenticationManager"))) +@interface BridgeClientNativeAuthenticationManager : BridgeClientBase +- (instancetype)initWithViewUpdate:(void (^)(BridgeClientUserSessionInfo * _Nullable))viewUpdate __attribute__((swift_name("init(viewUpdate:)"))) __attribute__((objc_designated_initializer)); - (BOOL)isAuthenticated __attribute__((swift_name("isAuthenticated()"))); -- (void)observeAssessmentConfigIdentifier:(NSString *)identifier __attribute__((swift_name("observeAssessmentConfig(identifier:)"))); +- (void)observeUserSessionInfo __attribute__((swift_name("observeUserSessionInfo()"))); +- (void)onCleared __attribute__((swift_name("onCleared()"))); +- (BridgeClientUserSessionInfo * _Nullable)session __attribute__((swift_name("session()"))); +- (void)signInEmailUserName:(NSString *)userName password:(NSString *)password callBack:(void (^)(BridgeClientUserSessionInfo * _Nullable, BridgeClientResourceStatus *))callBack __attribute__((swift_name("signInEmail(userName:password:callBack:)"))); +- (void)signInExternalIdExternalId:(NSString *)externalId password:(NSString * _Nullable)password callBack:(void (^)(BridgeClientUserSessionInfo * _Nullable, BridgeClientResourceStatus *))callBack __attribute__((swift_name("signInExternalId(externalId:password:callBack:)"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NativeScheduledAssessment"))) +@interface BridgeClientNativeScheduledAssessment : BridgeClientBase +- (instancetype)initWithInstanceGuid:(NSString *)instanceGuid assessmentInfo:(BridgeClientAssessmentInfo *)assessmentInfo isCompleted:(BOOL)isCompleted isDeclined:(BOOL)isDeclined adherenceRecords:(NSArray * _Nullable)adherenceRecords __attribute__((swift_name("init(instanceGuid:assessmentInfo:isCompleted:isDeclined:adherenceRecords:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (BridgeClientAssessmentInfo *)component2 __attribute__((swift_name("component2()"))); +- (BOOL)component3 __attribute__((swift_name("component3()"))); +- (BOOL)component4 __attribute__((swift_name("component4()"))); +- (NSArray * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (BridgeClientNativeScheduledAssessment *)doCopyInstanceGuid:(NSString *)instanceGuid assessmentInfo:(BridgeClientAssessmentInfo *)assessmentInfo isCompleted:(BOOL)isCompleted isDeclined:(BOOL)isDeclined adherenceRecords:(NSArray * _Nullable)adherenceRecords __attribute__((swift_name("doCopy(instanceGuid:assessmentInfo:isCompleted:isDeclined:adherenceRecords:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSArray * _Nullable adherenceRecords __attribute__((swift_name("adherenceRecords"))); +@property (readonly) BridgeClientAssessmentInfo *assessmentInfo __attribute__((swift_name("assessmentInfo"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) BOOL isCompleted __attribute__((swift_name("isCompleted"))); +@property (readonly) BOOL isDeclined __attribute__((swift_name("isDeclined"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NativeScheduledNotification"))) +@interface BridgeClientNativeScheduledNotification : BridgeClientBase +- (instancetype)initWithInstanceGuid:(NSString *)instanceGuid scheduleOn:(NSDateComponents *)scheduleOn repeatInterval:(NSDateComponents * _Nullable)repeatInterval allowSnooze:(BOOL)allowSnooze message:(BridgeClientNotificationMessage * _Nullable)message __attribute__((swift_name("init(instanceGuid:scheduleOn:repeatInterval:allowSnooze:message:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (NSDateComponents *)component2 __attribute__((swift_name("component2()"))); +- (NSDateComponents * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (BOOL)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientNotificationMessage * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (BridgeClientNativeScheduledNotification *)doCopyInstanceGuid:(NSString *)instanceGuid scheduleOn:(NSDateComponents *)scheduleOn repeatInterval:(NSDateComponents * _Nullable)repeatInterval allowSnooze:(BOOL)allowSnooze message:(BridgeClientNotificationMessage * _Nullable)message __attribute__((swift_name("doCopy(instanceGuid:scheduleOn:repeatInterval:allowSnooze:message:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BOOL allowSnooze __attribute__((swift_name("allowSnooze"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) BridgeClientNotificationMessage * _Nullable message __attribute__((swift_name("message"))); +@property (readonly) NSDateComponents * _Nullable repeatInterval __attribute__((swift_name("repeatInterval"))); +@property (readonly) NSDateComponents *scheduleOn __attribute__((swift_name("scheduleOn"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NativeScheduledSessionTimelineSlice"))) +@interface BridgeClientNativeScheduledSessionTimelineSlice : BridgeClientBase +- (instancetype)initWithInstantInDay:(NSDate *)instantInDay timezone:(NSTimeZone *)timezone scheduledSessionWindows:(NSArray *)scheduledSessionWindows notifications:(NSArray *)notifications __attribute__((swift_name("init(instantInDay:timezone:scheduledSessionWindows:notifications:)"))) __attribute__((objc_designated_initializer)); +- (NSDate *)component1 __attribute__((swift_name("component1()"))); +- (NSTimeZone *)component2 __attribute__((swift_name("component2()"))); +- (NSArray *)component3 __attribute__((swift_name("component3()"))); +- (NSArray *)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientNativeScheduledSessionTimelineSlice *)doCopyInstantInDay:(NSDate *)instantInDay timezone:(NSTimeZone *)timezone scheduledSessionWindows:(NSArray *)scheduledSessionWindows notifications:(NSArray *)notifications __attribute__((swift_name("doCopy(instantInDay:timezone:scheduledSessionWindows:notifications:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSDate *instantInDay __attribute__((swift_name("instantInDay"))); +@property (readonly) NSArray *notifications __attribute__((swift_name("notifications"))); +@property (readonly) NSArray *scheduledSessionWindows __attribute__((swift_name("scheduledSessionWindows"))); +@property (readonly) NSTimeZone *timezone __attribute__((swift_name("timezone"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NativeScheduledSessionWindow"))) +@interface BridgeClientNativeScheduledSessionWindow : BridgeClientBase +- (instancetype)initWithInstanceGuid:(NSString *)instanceGuid eventTimestamp:(NSString *)eventTimestamp startDateTime:(NSDate *)startDateTime endDateTime:(NSDate *)endDateTime persistent:(BOOL)persistent hasStartTimeOfDay:(BOOL)hasStartTimeOfDay hasEndTimeOfDay:(BOOL)hasEndTimeOfDay assessments:(NSArray *)assessments sessionInfo:(BridgeClientSessionInfo *)sessionInfo __attribute__((swift_name("init(instanceGuid:eventTimestamp:startDateTime:endDateTime:persistent:hasStartTimeOfDay:hasEndTimeOfDay:assessments:sessionInfo:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (NSDate *)component3 __attribute__((swift_name("component3()"))); +- (NSDate *)component4 __attribute__((swift_name("component4()"))); +- (BOOL)component5 __attribute__((swift_name("component5()"))); +- (BOOL)component6 __attribute__((swift_name("component6()"))); +- (BOOL)component7 __attribute__((swift_name("component7()"))); +- (NSArray *)component8 __attribute__((swift_name("component8()"))); +- (BridgeClientSessionInfo *)component9 __attribute__((swift_name("component9()"))); +- (BridgeClientNativeScheduledSessionWindow *)doCopyInstanceGuid:(NSString *)instanceGuid eventTimestamp:(NSString *)eventTimestamp startDateTime:(NSDate *)startDateTime endDateTime:(NSDate *)endDateTime persistent:(BOOL)persistent hasStartTimeOfDay:(BOOL)hasStartTimeOfDay hasEndTimeOfDay:(BOOL)hasEndTimeOfDay assessments:(NSArray *)assessments sessionInfo:(BridgeClientSessionInfo *)sessionInfo __attribute__((swift_name("doCopy(instanceGuid:eventTimestamp:startDateTime:endDateTime:persistent:hasStartTimeOfDay:hasEndTimeOfDay:assessments:sessionInfo:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSArray *assessments __attribute__((swift_name("assessments"))); +@property (readonly) NSDate *endDateTime __attribute__((swift_name("endDateTime"))); +@property (readonly) NSString *eventTimestamp __attribute__((swift_name("eventTimestamp"))); +@property (readonly) BOOL hasEndTimeOfDay __attribute__((swift_name("hasEndTimeOfDay"))); +@property (readonly) BOOL hasStartTimeOfDay __attribute__((swift_name("hasStartTimeOfDay"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) BOOL persistent __attribute__((swift_name("persistent"))); +@property (readonly) BridgeClientSessionInfo *sessionInfo __attribute__((swift_name("sessionInfo"))); +@property (readonly) NSDate *startDateTime __attribute__((swift_name("startDateTime"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NativeTimelineManager"))) +@interface BridgeClientNativeTimelineManager : BridgeClientBase +- (instancetype)initWithStudyId:(NSString *)studyId includeAllNotifications:(BOOL)includeAllNotifications alwaysIncludeNextDay:(BOOL)alwaysIncludeNextDay viewUpdate:(void (^)(BridgeClientNativeScheduledSessionTimelineSlice *))viewUpdate __attribute__((swift_name("init(studyId:includeAllNotifications:alwaysIncludeNextDay:viewUpdate:)"))) __attribute__((objc_designated_initializer)); +- (void)observeTodaySchedule __attribute__((swift_name("observeTodaySchedule()"))); - (void)onCleared __attribute__((swift_name("onCleared()"))); -- (void)signInUserName:(NSString *)userName password:(NSString *)password callBack:(void (^)(BridgeClientUserSessionInfo * _Nullable))callBack __attribute__((swift_name("signIn(userName:password:callBack:)"))); +- (void)refreshTodaySchedule __attribute__((swift_name("refreshTodaySchedule()"))); +- (void)updateAdherenceRecordRecord:(BridgeClientNativeAdherenceRecord *)record __attribute__((swift_name("updateAdherenceRecord(record:)"))); @end; __attribute__((swift_name("KotlinComparable"))) @@ -363,6 +509,7 @@ __attribute__((swift_name("AccountStatus"))) @property (class, readonly) BridgeClientAccountStatus *enabled __attribute__((swift_name("enabled"))); @property (class, readonly) BridgeClientAccountStatus *disabled __attribute__((swift_name("disabled"))); @property (class, readonly) BridgeClientAccountStatus *unverified __attribute__((swift_name("unverified"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); @end; @@ -375,6 +522,134 @@ __attribute__((swift_name("AccountStatus.Companion"))) - (id)serializer __attribute__((swift_name("serializer()"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecord"))) +@interface BridgeClientAdherenceRecord : BridgeClientBase +- (instancetype)initWithInstanceGuid:(NSString *)instanceGuid eventTimestamp:(NSString *)eventTimestamp startedOn:(BridgeClientKotlinx_datetimeInstant * _Nullable)startedOn finishedOn:(BridgeClientKotlinx_datetimeInstant * _Nullable)finishedOn clientTimeZone:(NSString * _Nullable)clientTimeZone uploadedOn:(NSString * _Nullable)uploadedOn declined:(BridgeClientBoolean * _Nullable)declined clientData:(BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)clientData type:(NSString *)type __attribute__((swift_name("init(instanceGuid:eventTimestamp:startedOn:finishedOn:clientTimeZone:uploadedOn:declined:clientData:type:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (BridgeClientKotlinx_datetimeInstant * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (BridgeClientKotlinx_datetimeInstant * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (NSString * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (NSString * _Nullable)component6 __attribute__((swift_name("component6()"))); +- (BridgeClientBoolean * _Nullable)component7 __attribute__((swift_name("component7()"))); +- (BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)component8 __attribute__((swift_name("component8()"))); +- (NSString *)component9 __attribute__((swift_name("component9()"))); +- (BridgeClientAdherenceRecord *)doCopyInstanceGuid:(NSString *)instanceGuid eventTimestamp:(NSString *)eventTimestamp startedOn:(BridgeClientKotlinx_datetimeInstant * _Nullable)startedOn finishedOn:(BridgeClientKotlinx_datetimeInstant * _Nullable)finishedOn clientTimeZone:(NSString * _Nullable)clientTimeZone uploadedOn:(NSString * _Nullable)uploadedOn declined:(BridgeClientBoolean * _Nullable)declined clientData:(BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)clientData type:(NSString *)type __attribute__((swift_name("doCopy(instanceGuid:eventTimestamp:startedOn:finishedOn:clientTimeZone:uploadedOn:declined:clientData:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable clientData __attribute__((swift_name("clientData"))); +@property (readonly) NSString * _Nullable clientTimeZone __attribute__((swift_name("clientTimeZone"))); +@property (readonly) BridgeClientBoolean * _Nullable declined __attribute__((swift_name("declined"))); +@property (readonly) NSString *eventTimestamp __attribute__((swift_name("eventTimestamp"))); +@property (readonly) BridgeClientKotlinx_datetimeInstant * _Nullable finishedOn __attribute__((swift_name("finishedOn"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) BridgeClientKotlinx_datetimeInstant * _Nullable startedOn __attribute__((swift_name("startedOn"))); +@property (readonly) NSString *type __attribute__((swift_name("type"))); +@property (readonly) NSString * _Nullable uploadedOn __attribute__((swift_name("uploadedOn"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecord.Companion"))) +@interface BridgeClientAdherenceRecordCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecordType"))) +@interface BridgeClientAdherenceRecordType : BridgeClientKotlinEnum ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); +- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +@property (class, readonly) BridgeClientAdherenceRecordType *assessment __attribute__((swift_name("assessment"))); +@property (class, readonly) BridgeClientAdherenceRecordType *session __attribute__((swift_name("session"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); +@property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecordType.Companion"))) +@interface BridgeClientAdherenceRecordTypeCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecordUpdates"))) +@interface BridgeClientAdherenceRecordUpdates : BridgeClientBase +- (instancetype)initWithRecords:(NSArray *)records type:(NSString *)type __attribute__((swift_name("init(records:type:)"))) __attribute__((objc_designated_initializer)); +- (NSArray *)component1 __attribute__((swift_name("component1()"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (BridgeClientAdherenceRecordUpdates *)doCopyRecords:(NSArray *)records type:(NSString *)type __attribute__((swift_name("doCopy(records:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSArray *records __attribute__((swift_name("records"))); +@property (readonly) NSString *type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecordUpdates.Companion"))) +@interface BridgeClientAdherenceRecordUpdatesCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecordsSearch"))) +@interface BridgeClientAdherenceRecordsSearch : BridgeClientBase +- (instancetype)initWithInstanceGuids:(NSArray * _Nullable)instanceGuids assessmentIds:(NSArray * _Nullable)assessmentIds sessionGuids:(NSArray * _Nullable)sessionGuids timeWindowGuids:(NSArray * _Nullable)timeWindowGuids adherenceRecordType:(BridgeClientAdherenceRecordType * _Nullable)adherenceRecordType includeRepeats:(BridgeClientBoolean * _Nullable)includeRepeats currentTimestampsOnly:(BridgeClientBoolean * _Nullable)currentTimestampsOnly eventTimestamps:(NSDictionary * _Nullable)eventTimestamps startTime:(NSString * _Nullable)startTime endTime:(NSString * _Nullable)endTime pageSize:(BridgeClientInt * _Nullable)pageSize offsetBy:(BridgeClientInt * _Nullable)offsetBy sortOrder:(BridgeClientSortOrder * _Nullable)sortOrder type:(NSString * _Nullable)type __attribute__((swift_name("init(instanceGuids:assessmentIds:sessionGuids:timeWindowGuids:adherenceRecordType:includeRepeats:currentTimestampsOnly:eventTimestamps:startTime:endTime:pageSize:offsetBy:sortOrder:type:)"))) __attribute__((objc_designated_initializer)); +- (NSArray * _Nullable)component1 __attribute__((swift_name("component1()"))); +- (NSString * _Nullable)component10 __attribute__((swift_name("component10()"))); +- (BridgeClientInt * _Nullable)component11 __attribute__((swift_name("component11()"))); +- (BridgeClientInt * _Nullable)component12 __attribute__((swift_name("component12()"))); +- (BridgeClientSortOrder * _Nullable)component13 __attribute__((swift_name("component13()"))); +- (NSString * _Nullable)component14 __attribute__((swift_name("component14()"))); +- (NSArray * _Nullable)component2 __attribute__((swift_name("component2()"))); +- (NSArray * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (NSArray * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientAdherenceRecordType * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (BridgeClientBoolean * _Nullable)component6 __attribute__((swift_name("component6()"))); +- (BridgeClientBoolean * _Nullable)component7 __attribute__((swift_name("component7()"))); +- (NSDictionary * _Nullable)component8 __attribute__((swift_name("component8()"))); +- (NSString * _Nullable)component9 __attribute__((swift_name("component9()"))); +- (BridgeClientAdherenceRecordsSearch *)doCopyInstanceGuids:(NSArray * _Nullable)instanceGuids assessmentIds:(NSArray * _Nullable)assessmentIds sessionGuids:(NSArray * _Nullable)sessionGuids timeWindowGuids:(NSArray * _Nullable)timeWindowGuids adherenceRecordType:(BridgeClientAdherenceRecordType * _Nullable)adherenceRecordType includeRepeats:(BridgeClientBoolean * _Nullable)includeRepeats currentTimestampsOnly:(BridgeClientBoolean * _Nullable)currentTimestampsOnly eventTimestamps:(NSDictionary * _Nullable)eventTimestamps startTime:(NSString * _Nullable)startTime endTime:(NSString * _Nullable)endTime pageSize:(BridgeClientInt * _Nullable)pageSize offsetBy:(BridgeClientInt * _Nullable)offsetBy sortOrder:(BridgeClientSortOrder * _Nullable)sortOrder type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(instanceGuids:assessmentIds:sessionGuids:timeWindowGuids:adherenceRecordType:includeRepeats:currentTimestampsOnly:eventTimestamps:startTime:endTime:pageSize:offsetBy:sortOrder:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BridgeClientAdherenceRecordType * _Nullable adherenceRecordType __attribute__((swift_name("adherenceRecordType"))); +@property (readonly) NSArray * _Nullable assessmentIds __attribute__((swift_name("assessmentIds"))); +@property (readonly) BridgeClientBoolean * _Nullable currentTimestampsOnly __attribute__((swift_name("currentTimestampsOnly"))); +@property (readonly) NSString * _Nullable endTime __attribute__((swift_name("endTime"))); +@property (readonly) NSDictionary * _Nullable eventTimestamps __attribute__((swift_name("eventTimestamps"))); +@property (readonly) BridgeClientBoolean * _Nullable includeRepeats __attribute__((swift_name("includeRepeats"))); +@property (readonly) NSArray * _Nullable instanceGuids __attribute__((swift_name("instanceGuids"))); +@property (readonly) BridgeClientInt * _Nullable offsetBy __attribute__((swift_name("offsetBy"))); +@property (readonly) BridgeClientInt * _Nullable pageSize __attribute__((swift_name("pageSize"))); +@property (readonly) NSArray * _Nullable sessionGuids __attribute__((swift_name("sessionGuids"))); +@property (readonly) BridgeClientSortOrder * _Nullable sortOrder __attribute__((swift_name("sortOrder"))); +@property (readonly) NSString * _Nullable startTime __attribute__((swift_name("startTime"))); +@property (readonly) NSArray * _Nullable timeWindowGuids __attribute__((swift_name("timeWindowGuids"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecordsSearch.Companion"))) +@interface BridgeClientAdherenceRecordsSearchCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("AssessmentConfig"))) @interface BridgeClientAssessmentConfig : BridgeClientBase @@ -404,6 +679,43 @@ __attribute__((swift_name("AssessmentConfig.Companion"))) - (id)serializer __attribute__((swift_name("serializer()"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AssessmentInfo"))) +@interface BridgeClientAssessmentInfo : BridgeClientBase +- (instancetype)initWithKey:(NSString * _Nullable)key guid:(NSString * _Nullable)guid appId:(NSString * _Nullable)appId identifier:(NSString * _Nullable)identifier revision:(BridgeClientInt * _Nullable)revision label:(NSString * _Nullable)label minutesToComplete:(BridgeClientInt * _Nullable)minutesToComplete colorScheme:(BridgeClientColorScheme * _Nullable)colorScheme type:(NSString * _Nullable)type __attribute__((swift_name("init(key:guid:appId:identifier:revision:label:minutesToComplete:colorScheme:type:)"))) __attribute__((objc_designated_initializer)); +- (NSString * _Nullable)component1 __attribute__((swift_name("component1()"))); +- (NSString * _Nullable)component2 __attribute__((swift_name("component2()"))); +- (NSString * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (NSString * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientInt * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (NSString * _Nullable)component6 __attribute__((swift_name("component6()"))); +- (BridgeClientInt * _Nullable)component7 __attribute__((swift_name("component7()"))); +- (BridgeClientColorScheme * _Nullable)component8 __attribute__((swift_name("component8()"))); +- (NSString * _Nullable)component9 __attribute__((swift_name("component9()"))); +- (BridgeClientAssessmentInfo *)doCopyKey:(NSString * _Nullable)key guid:(NSString * _Nullable)guid appId:(NSString * _Nullable)appId identifier:(NSString * _Nullable)identifier revision:(BridgeClientInt * _Nullable)revision label:(NSString * _Nullable)label minutesToComplete:(BridgeClientInt * _Nullable)minutesToComplete colorScheme:(BridgeClientColorScheme * _Nullable)colorScheme type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(key:guid:appId:identifier:revision:label:minutesToComplete:colorScheme:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSString * _Nullable appId __attribute__((swift_name("appId"))); +@property (readonly) BridgeClientColorScheme * _Nullable colorScheme __attribute__((swift_name("colorScheme"))); +@property (readonly) NSString * _Nullable guid __attribute__((swift_name("guid"))); +@property (readonly) NSString * _Nullable identifier __attribute__((swift_name("identifier"))); +@property (readonly) NSString * _Nullable key __attribute__((swift_name("key"))); +@property (readonly) NSString * _Nullable label __attribute__((swift_name("label"))); +@property (readonly) BridgeClientInt * _Nullable minutesToComplete __attribute__((swift_name("minutesToComplete"))); +@property (readonly) BridgeClientInt * _Nullable revision __attribute__((swift_name("revision"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AssessmentInfo.Companion"))) +@interface BridgeClientAssessmentInfoCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ClientInfo"))) @interface BridgeClientClientInfo : BridgeClientBase @@ -439,6 +751,35 @@ __attribute__((swift_name("ClientInfo.Companion"))) - (id)serializer __attribute__((swift_name("serializer()"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ColorScheme"))) +@interface BridgeClientColorScheme : BridgeClientBase +- (instancetype)initWithForeground:(NSString * _Nullable)foreground background:(NSString * _Nullable)background activated:(NSString * _Nullable)activated inactivated:(NSString * _Nullable)inactivated type:(NSString * _Nullable)type __attribute__((swift_name("init(foreground:background:activated:inactivated:type:)"))) __attribute__((objc_designated_initializer)); +- (NSString * _Nullable)component1 __attribute__((swift_name("component1()"))); +- (NSString * _Nullable)component2 __attribute__((swift_name("component2()"))); +- (NSString * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (NSString * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (NSString * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (BridgeClientColorScheme *)doCopyForeground:(NSString * _Nullable)foreground background:(NSString * _Nullable)background activated:(NSString * _Nullable)activated inactivated:(NSString * _Nullable)inactivated type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(foreground:background:activated:inactivated:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSString * _Nullable activated __attribute__((swift_name("activated"))); +@property (readonly) NSString * _Nullable background __attribute__((swift_name("background"))); +@property (readonly) NSString * _Nullable foreground __attribute__((swift_name("foreground"))); +@property (readonly) NSString * _Nullable inactivated __attribute__((swift_name("inactivated"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ColorScheme.Companion"))) +@interface BridgeClientColorSchemeCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("ConsentStatus"))) @interface BridgeClientConsentStatus : BridgeClientBase @@ -517,6 +858,7 @@ __attribute__((swift_name("Environment"))) @property (class, readonly) BridgeClientEnvironment *develop __attribute__((swift_name("develop"))); @property (class, readonly) BridgeClientEnvironment *staging __attribute__((swift_name("staging"))); @property (class, readonly) BridgeClientEnvironment *production __attribute__((swift_name("production"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); @end; @@ -535,6 +877,107 @@ __attribute__((swift_name("Model"))) - (NSString *)getIdentifier __attribute__((swift_name("getIdentifier()"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NotificationInfo"))) +@interface BridgeClientNotificationInfo : BridgeClientBase +- (instancetype)initWithNotifyAt:(BridgeClientNotificationType *)notifyAt offset:(NSString * _Nullable)offset interval:(NSString * _Nullable)interval allowSnooze:(BridgeClientBoolean * _Nullable)allowSnooze message:(BridgeClientNotificationMessage * _Nullable)message type:(NSString * _Nullable)type __attribute__((swift_name("init(notifyAt:offset:interval:allowSnooze:message:type:)"))) __attribute__((objc_designated_initializer)); +- (BridgeClientNotificationType *)component1 __attribute__((swift_name("component1()"))); +- (NSString * _Nullable)component2 __attribute__((swift_name("component2()"))); +- (NSString * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (BridgeClientBoolean * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientNotificationMessage * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (NSString * _Nullable)component6 __attribute__((swift_name("component6()"))); +- (BridgeClientNotificationInfo *)doCopyNotifyAt:(BridgeClientNotificationType *)notifyAt offset:(NSString * _Nullable)offset interval:(NSString * _Nullable)interval allowSnooze:(BridgeClientBoolean * _Nullable)allowSnooze message:(BridgeClientNotificationMessage * _Nullable)message type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(notifyAt:offset:interval:allowSnooze:message:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BridgeClientBoolean * _Nullable allowSnooze __attribute__((swift_name("allowSnooze"))); +@property (readonly) NSString * _Nullable interval __attribute__((swift_name("interval"))); +@property (readonly) BridgeClientNotificationMessage * _Nullable message __attribute__((swift_name("message"))); +@property (readonly) BridgeClientNotificationType *notifyAt __attribute__((swift_name("notifyAt"))); +@property (readonly) NSString * _Nullable offset __attribute__((swift_name("offset"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NotificationInfo.Companion"))) +@interface BridgeClientNotificationInfoCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NotificationMessage"))) +@interface BridgeClientNotificationMessage : BridgeClientBase +- (instancetype)initWithSubject:(NSString *)subject message:(NSString *)message lang:(NSString * _Nullable)lang type:(NSString * _Nullable)type __attribute__((swift_name("init(subject:message:lang:type:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (NSString * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (NSString * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientNotificationMessage *)doCopySubject:(NSString *)subject message:(NSString *)message lang:(NSString * _Nullable)lang type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(subject:message:lang:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSString * _Nullable lang __attribute__((swift_name("lang"))); +@property (readonly) NSString *message __attribute__((swift_name("message"))); +@property (readonly) NSString *subject __attribute__((swift_name("subject"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NotificationMessage.Companion"))) +@interface BridgeClientNotificationMessageCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NotificationType"))) +@interface BridgeClientNotificationType : BridgeClientKotlinEnum ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); +- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +@property (class, readonly) BridgeClientNotificationType *afterWindowStart __attribute__((swift_name("afterWindowStart"))); +@property (class, readonly) BridgeClientNotificationType *beforeWindowEnd __attribute__((swift_name("beforeWindowEnd"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); +@property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("NotificationType.Companion"))) +@interface BridgeClientNotificationTypeCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("PerformanceOrder"))) +@interface BridgeClientPerformanceOrder : BridgeClientKotlinEnum ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); +- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +@property (class, readonly) BridgeClientPerformanceOrder *participantChoice __attribute__((swift_name("participantChoice"))); +@property (class, readonly) BridgeClientPerformanceOrder *sequential __attribute__((swift_name("sequential"))); +@property (class, readonly) BridgeClientPerformanceOrder *randomized __attribute__((swift_name("randomized"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); +@property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("PerformanceOrder.Companion"))) +@interface BridgeClientPerformanceOrderCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Phone"))) @interface BridgeClientPhone : BridgeClientBase @@ -562,6 +1005,27 @@ __attribute__((swift_name("Phone.Companion"))) - (id)serializer __attribute__((swift_name("serializer()"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ReminderType"))) +@interface BridgeClientReminderType : BridgeClientKotlinEnum ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); +- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +@property (class, readonly) BridgeClientReminderType *afterWindowStart __attribute__((swift_name("afterWindowStart"))); +@property (class, readonly) BridgeClientReminderType *beforeWindowEnd __attribute__((swift_name("beforeWindowEnd"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); +@property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ReminderType.Companion"))) +@interface BridgeClientReminderTypeCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Role"))) @interface BridgeClientRole : BridgeClientKotlinEnum @@ -572,6 +1036,7 @@ __attribute__((swift_name("Role"))) @property (class, readonly) BridgeClientRole *researcher __attribute__((swift_name("researcher"))); @property (class, readonly) BridgeClientRole *admin __attribute__((swift_name("admin"))); @property (class, readonly) BridgeClientRole *worker __attribute__((swift_name("worker"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); @end; @@ -584,6 +1049,105 @@ __attribute__((swift_name("Role.Companion"))) - (id)serializer __attribute__((swift_name("serializer()"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduledAssessment"))) +@interface BridgeClientScheduledAssessment : BridgeClientBase +- (instancetype)initWithRefKey:(NSString *)refKey instanceGuid:(NSString *)instanceGuid type:(NSString * _Nullable)type __attribute__((swift_name("init(refKey:instanceGuid:type:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (NSString * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (BridgeClientScheduledAssessment *)doCopyRefKey:(NSString *)refKey instanceGuid:(NSString *)instanceGuid type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(refKey:instanceGuid:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) NSString *refKey __attribute__((swift_name("refKey"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduledAssessment.Companion"))) +@interface BridgeClientScheduledAssessmentCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduledSession"))) +@interface BridgeClientScheduledSession : BridgeClientBase +- (instancetype)initWithRefGuid:(NSString *)refGuid instanceGuid:(NSString *)instanceGuid startDay:(int32_t)startDay endDay:(int32_t)endDay startTime:(NSString *)startTime delayTime:(NSString * _Nullable)delayTime expiration:(BridgeClientKotlinx_datetimeDateTimePeriod *)expiration persistent:(BOOL)persistent assessments:(NSArray *)assessments type:(NSString * _Nullable)type __attribute__((swift_name("init(refGuid:instanceGuid:startDay:endDay:startTime:delayTime:expiration:persistent:assessments:type:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (NSString * _Nullable)component10 __attribute__((swift_name("component10()"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (int32_t)component3 __attribute__((swift_name("component3()"))); +- (int32_t)component4 __attribute__((swift_name("component4()"))); +- (NSString *)component5 __attribute__((swift_name("component5()"))); +- (NSString * _Nullable)component6 __attribute__((swift_name("component6()"))); +- (BridgeClientKotlinx_datetimeDateTimePeriod *)component7 __attribute__((swift_name("component7()"))); +- (BOOL)component8 __attribute__((swift_name("component8()"))); +- (NSArray *)component9 __attribute__((swift_name("component9()"))); +- (BridgeClientScheduledSession *)doCopyRefGuid:(NSString *)refGuid instanceGuid:(NSString *)instanceGuid startDay:(int32_t)startDay endDay:(int32_t)endDay startTime:(NSString *)startTime delayTime:(NSString * _Nullable)delayTime expiration:(BridgeClientKotlinx_datetimeDateTimePeriod *)expiration persistent:(BOOL)persistent assessments:(NSArray *)assessments type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(refGuid:instanceGuid:startDay:endDay:startTime:delayTime:expiration:persistent:assessments:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSArray *assessments __attribute__((swift_name("assessments"))); +@property (readonly) NSString * _Nullable delayTime __attribute__((swift_name("delayTime"))); +@property (readonly) int32_t endDay __attribute__((swift_name("endDay"))); +@property (readonly) BridgeClientKotlinx_datetimeDateTimePeriod *expiration __attribute__((swift_name("expiration"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) BOOL persistent __attribute__((swift_name("persistent"))); +@property (readonly) NSString *refGuid __attribute__((swift_name("refGuid"))); +@property (readonly) int32_t startDay __attribute__((swift_name("startDay"))); +@property (readonly) NSString *startTime __attribute__((swift_name("startTime"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduledSession.Companion"))) +@interface BridgeClientScheduledSessionCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("SessionInfo"))) +@interface BridgeClientSessionInfo : BridgeClientBase +- (instancetype)initWithGuid:(NSString *)guid label:(NSString *)label startEventId:(NSString *)startEventId performanceOrder:(BridgeClientPerformanceOrder *)performanceOrder timeWindowGuids:(NSArray * _Nullable)timeWindowGuids minutesToComplete:(BridgeClientInt * _Nullable)minutesToComplete notifications:(NSArray * _Nullable)notifications type:(NSString * _Nullable)type __attribute__((swift_name("init(guid:label:startEventId:performanceOrder:timeWindowGuids:minutesToComplete:notifications:type:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (NSString *)component3 __attribute__((swift_name("component3()"))); +- (BridgeClientPerformanceOrder *)component4 __attribute__((swift_name("component4()"))); +- (NSArray * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (BridgeClientInt * _Nullable)component6 __attribute__((swift_name("component6()"))); +- (NSArray * _Nullable)component7 __attribute__((swift_name("component7()"))); +- (NSString * _Nullable)component8 __attribute__((swift_name("component8()"))); +- (BridgeClientSessionInfo *)doCopyGuid:(NSString *)guid label:(NSString *)label startEventId:(NSString *)startEventId performanceOrder:(BridgeClientPerformanceOrder *)performanceOrder timeWindowGuids:(NSArray * _Nullable)timeWindowGuids minutesToComplete:(BridgeClientInt * _Nullable)minutesToComplete notifications:(NSArray * _Nullable)notifications type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(guid:label:startEventId:performanceOrder:timeWindowGuids:minutesToComplete:notifications:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSString *guid __attribute__((swift_name("guid"))); +@property (readonly) NSString *label __attribute__((swift_name("label"))); +@property (readonly) BridgeClientInt * _Nullable minutesToComplete __attribute__((swift_name("minutesToComplete"))); +@property (readonly) NSArray * _Nullable notifications __attribute__((swift_name("notifications"))); +@property (readonly) BridgeClientPerformanceOrder *performanceOrder __attribute__((swift_name("performanceOrder"))); +@property (readonly) NSString *startEventId __attribute__((swift_name("startEventId"))); +@property (readonly) NSArray * _Nullable timeWindowGuids __attribute__((swift_name("timeWindowGuids"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("SessionInfo.Companion"))) +@interface BridgeClientSessionInfoCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("SharingScope"))) @interface BridgeClientSharingScope : BridgeClientKotlinEnum @@ -593,6 +1157,7 @@ __attribute__((swift_name("SharingScope"))) @property (class, readonly) BridgeClientSharingScope *noSharing __attribute__((swift_name("noSharing"))); @property (class, readonly) BridgeClientSharingScope *sponsorsAndPartners __attribute__((swift_name("sponsorsAndPartners"))); @property (class, readonly) BridgeClientSharingScope *allQualifiedResearchers __attribute__((swift_name("allQualifiedResearchers"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); @end; @@ -605,10 +1170,116 @@ __attribute__((swift_name("SharingScope.Companion"))) - (id)serializer __attribute__((swift_name("serializer()"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("SortOrder"))) +@interface BridgeClientSortOrder : BridgeClientKotlinEnum ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); +- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +@property (class, readonly) BridgeClientSortOrder *asc __attribute__((swift_name("asc"))); +@property (class, readonly) BridgeClientSortOrder *desc __attribute__((swift_name("desc"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); +@property (readonly) NSString * _Nullable serialName __attribute__((swift_name("serialName"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("SortOrder.Companion"))) +@interface BridgeClientSortOrderCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("StudyActivityEvent"))) +@interface BridgeClientStudyActivityEvent : BridgeClientBase +- (instancetype)initWithEventId:(NSString *)eventId timestamp:(BridgeClientKotlinx_datetimeInstant *)timestamp answerValue:(NSString * _Nullable)answerValue clientTimeZone:(NSString * _Nullable)clientTimeZone recordCount:(BridgeClientInt * _Nullable)recordCount createdOn:(NSString * _Nullable)createdOn type:(NSString * _Nullable)type __attribute__((swift_name("init(eventId:timestamp:answerValue:clientTimeZone:recordCount:createdOn:type:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (BridgeClientKotlinx_datetimeInstant *)component2 __attribute__((swift_name("component2()"))); +- (NSString * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (NSString * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientInt * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (NSString * _Nullable)component6 __attribute__((swift_name("component6()"))); +- (NSString * _Nullable)component7 __attribute__((swift_name("component7()"))); +- (BridgeClientStudyActivityEvent *)doCopyEventId:(NSString *)eventId timestamp:(BridgeClientKotlinx_datetimeInstant *)timestamp answerValue:(NSString * _Nullable)answerValue clientTimeZone:(NSString * _Nullable)clientTimeZone recordCount:(BridgeClientInt * _Nullable)recordCount createdOn:(NSString * _Nullable)createdOn type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(eventId:timestamp:answerValue:clientTimeZone:recordCount:createdOn:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSString * _Nullable answerValue __attribute__((swift_name("answerValue"))); +@property (readonly) NSString * _Nullable clientTimeZone __attribute__((swift_name("clientTimeZone"))); +@property (readonly) NSString * _Nullable createdOn __attribute__((swift_name("createdOn"))); +@property (readonly) NSString *eventId __attribute__((swift_name("eventId"))); +@property (readonly) BridgeClientInt * _Nullable recordCount __attribute__((swift_name("recordCount"))); +@property (readonly) BridgeClientKotlinx_datetimeInstant *timestamp __attribute__((swift_name("timestamp"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("StudyActivityEvent.Companion"))) +@interface BridgeClientStudyActivityEventCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("StudyActivityEventList"))) +@interface BridgeClientStudyActivityEventList : BridgeClientBase +- (instancetype)initWithItems:(NSArray * _Nullable)items type:(NSString * _Nullable)type __attribute__((swift_name("init(items:type:)"))) __attribute__((objc_designated_initializer)); +- (NSArray * _Nullable)component1 __attribute__((swift_name("component1()"))); +- (NSString * _Nullable)component2 __attribute__((swift_name("component2()"))); +- (BridgeClientStudyActivityEventList *)doCopyItems:(NSArray * _Nullable)items type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(items:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSArray * _Nullable items __attribute__((swift_name("items"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("StudyActivityEventList.Companion"))) +@interface BridgeClientStudyActivityEventListCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("Timeline"))) +@interface BridgeClientTimeline : BridgeClientBase +- (instancetype)initWithDuration:(BridgeClientKotlinx_datetimeDateTimePeriod *)duration schedule:(NSArray * _Nullable)schedule assessments:(NSArray * _Nullable)assessments sessions:(NSArray * _Nullable)sessions type:(NSString * _Nullable)type __attribute__((swift_name("init(duration:schedule:assessments:sessions:type:)"))) __attribute__((objc_designated_initializer)); +- (BridgeClientKotlinx_datetimeDateTimePeriod *)component1 __attribute__((swift_name("component1()"))); +- (NSArray * _Nullable)component2 __attribute__((swift_name("component2()"))); +- (NSArray * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (NSArray * _Nullable)component4 __attribute__((swift_name("component4()"))); +- (NSString * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (BridgeClientTimeline *)doCopyDuration:(BridgeClientKotlinx_datetimeDateTimePeriod *)duration schedule:(NSArray * _Nullable)schedule assessments:(NSArray * _Nullable)assessments sessions:(NSArray * _Nullable)sessions type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(duration:schedule:assessments:sessions:type:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSArray * _Nullable assessments __attribute__((swift_name("assessments"))); +@property (readonly) BridgeClientKotlinx_datetimeDateTimePeriod *duration __attribute__((swift_name("duration"))); +@property (readonly) NSArray * _Nullable schedule __attribute__((swift_name("schedule"))); +@property (readonly) NSArray * _Nullable sessions __attribute__((swift_name("sessions"))); +@property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("Timeline.Companion"))) +@interface BridgeClientTimelineCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +- (id)serializer __attribute__((swift_name("serializer()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("UserSessionInfo"))) @interface BridgeClientUserSessionInfo : BridgeClientBase -- (instancetype)initWithFirstName:(NSString * _Nullable)firstName lastName:(NSString * _Nullable)lastName externalId:(NSString * _Nullable)externalId id:(NSString * _Nullable)id notifyByEmail:(BridgeClientBoolean * _Nullable)notifyByEmail attributes:(NSDictionary * _Nullable)attributes sharingScope:(BridgeClientSharingScope * _Nullable)sharingScope createdOn:(NSString * _Nullable)createdOn emailVerified:(BridgeClientBoolean * _Nullable)emailVerified phoneVerified:(BridgeClientBoolean * _Nullable)phoneVerified status:(BridgeClientAccountStatus * _Nullable)status roles:(NSArray * _Nullable)roles dataGroups:(NSArray * _Nullable)dataGroups clientData:(BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)clientData languages:(NSArray * _Nullable)languages substudyIds:(NSArray * _Nullable)substudyIds externalIds:(NSDictionary * _Nullable)externalIds authenticated:(BridgeClientBoolean * _Nullable)authenticated sessionToken:(NSString * _Nullable)sessionToken reauthToken:(NSString * _Nullable)reauthToken environment:(BridgeClientEnvironment * _Nullable)environment email:(NSString * _Nullable)email phone:(BridgeClientPhone * _Nullable)phone dataSharing:(BridgeClientBoolean * _Nullable)dataSharing signedMostRecentConsent:(BridgeClientBoolean * _Nullable)signedMostRecentConsent synapseUserId:(NSString * _Nullable)synapseUserId consented:(BOOL)consented consentStatuses:(NSDictionary * _Nullable)consentStatuses type:(NSString * _Nullable)type __attribute__((swift_name("init(firstName:lastName:externalId:id:notifyByEmail:attributes:sharingScope:createdOn:emailVerified:phoneVerified:status:roles:dataGroups:clientData:languages:substudyIds:externalIds:authenticated:sessionToken:reauthToken:environment:email:phone:dataSharing:signedMostRecentConsent:synapseUserId:consented:consentStatuses:type:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithFirstName:(NSString * _Nullable)firstName lastName:(NSString * _Nullable)lastName externalId:(NSString * _Nullable)externalId id:(NSString * _Nullable)id notifyByEmail:(BridgeClientBoolean * _Nullable)notifyByEmail attributes:(NSDictionary * _Nullable)attributes sharingScope:(BridgeClientSharingScope * _Nullable)sharingScope createdOn:(NSString * _Nullable)createdOn emailVerified:(BridgeClientBoolean * _Nullable)emailVerified phoneVerified:(BridgeClientBoolean * _Nullable)phoneVerified status:(BridgeClientAccountStatus * _Nullable)status roles:(NSArray * _Nullable)roles dataGroups:(NSArray * _Nullable)dataGroups clientData:(BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)clientData languages:(NSArray * _Nullable)languages studyIds:(NSArray *)studyIds externalIds:(NSDictionary * _Nullable)externalIds authenticated:(BOOL)authenticated sessionToken:(NSString *)sessionToken reauthToken:(NSString * _Nullable)reauthToken environment:(BridgeClientEnvironment * _Nullable)environment email:(NSString * _Nullable)email phone:(BridgeClientPhone * _Nullable)phone dataSharing:(BridgeClientBoolean * _Nullable)dataSharing signedMostRecentConsent:(BridgeClientBoolean * _Nullable)signedMostRecentConsent synapseUserId:(NSString * _Nullable)synapseUserId consented:(BOOL)consented consentStatuses:(NSDictionary * _Nullable)consentStatuses orgMembership:(NSString * _Nullable)orgMembership type:(NSString * _Nullable)type __attribute__((swift_name("init(firstName:lastName:externalId:id:notifyByEmail:attributes:sharingScope:createdOn:emailVerified:phoneVerified:status:roles:dataGroups:clientData:languages:studyIds:externalIds:authenticated:sessionToken:reauthToken:environment:email:phone:dataSharing:signedMostRecentConsent:synapseUserId:consented:consentStatuses:orgMembership:type:)"))) __attribute__((objc_designated_initializer)); - (NSString * _Nullable)component1 __attribute__((swift_name("component1()"))); - (BridgeClientBoolean * _Nullable)component10 __attribute__((swift_name("component10()"))); - (BridgeClientAccountStatus * _Nullable)component11 __attribute__((swift_name("component11()"))); @@ -616,10 +1287,10 @@ __attribute__((swift_name("UserSessionInfo"))) - (NSArray * _Nullable)component13 __attribute__((swift_name("component13()"))); - (BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)component14 __attribute__((swift_name("component14()"))); - (NSArray * _Nullable)component15 __attribute__((swift_name("component15()"))); -- (NSArray * _Nullable)component16 __attribute__((swift_name("component16()"))); +- (NSArray *)component16 __attribute__((swift_name("component16()"))); - (NSDictionary * _Nullable)component17 __attribute__((swift_name("component17()"))); -- (BridgeClientBoolean * _Nullable)component18 __attribute__((swift_name("component18()"))); -- (NSString * _Nullable)component19 __attribute__((swift_name("component19()"))); +- (BOOL)component18 __attribute__((swift_name("component18()"))); +- (NSString *)component19 __attribute__((swift_name("component19()"))); - (NSString * _Nullable)component2 __attribute__((swift_name("component2()"))); - (NSString * _Nullable)component20 __attribute__((swift_name("component20()"))); - (BridgeClientEnvironment * _Nullable)component21 __attribute__((swift_name("component21()"))); @@ -632,18 +1303,19 @@ __attribute__((swift_name("UserSessionInfo"))) - (NSDictionary * _Nullable)component28 __attribute__((swift_name("component28()"))); - (NSString * _Nullable)component29 __attribute__((swift_name("component29()"))); - (NSString * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (NSString * _Nullable)component30 __attribute__((swift_name("component30()"))); - (NSString * _Nullable)component4 __attribute__((swift_name("component4()"))); - (BridgeClientBoolean * _Nullable)component5 __attribute__((swift_name("component5()"))); - (NSDictionary * _Nullable)component6 __attribute__((swift_name("component6()"))); - (BridgeClientSharingScope * _Nullable)component7 __attribute__((swift_name("component7()"))); - (NSString * _Nullable)component8 __attribute__((swift_name("component8()"))); - (BridgeClientBoolean * _Nullable)component9 __attribute__((swift_name("component9()"))); -- (BridgeClientUserSessionInfo *)doCopyFirstName:(NSString * _Nullable)firstName lastName:(NSString * _Nullable)lastName externalId:(NSString * _Nullable)externalId id:(NSString * _Nullable)id notifyByEmail:(BridgeClientBoolean * _Nullable)notifyByEmail attributes:(NSDictionary * _Nullable)attributes sharingScope:(BridgeClientSharingScope * _Nullable)sharingScope createdOn:(NSString * _Nullable)createdOn emailVerified:(BridgeClientBoolean * _Nullable)emailVerified phoneVerified:(BridgeClientBoolean * _Nullable)phoneVerified status:(BridgeClientAccountStatus * _Nullable)status roles:(NSArray * _Nullable)roles dataGroups:(NSArray * _Nullable)dataGroups clientData:(BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)clientData languages:(NSArray * _Nullable)languages substudyIds:(NSArray * _Nullable)substudyIds externalIds:(NSDictionary * _Nullable)externalIds authenticated:(BridgeClientBoolean * _Nullable)authenticated sessionToken:(NSString * _Nullable)sessionToken reauthToken:(NSString * _Nullable)reauthToken environment:(BridgeClientEnvironment * _Nullable)environment email:(NSString * _Nullable)email phone:(BridgeClientPhone * _Nullable)phone dataSharing:(BridgeClientBoolean * _Nullable)dataSharing signedMostRecentConsent:(BridgeClientBoolean * _Nullable)signedMostRecentConsent synapseUserId:(NSString * _Nullable)synapseUserId consented:(BOOL)consented consentStatuses:(NSDictionary * _Nullable)consentStatuses type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(firstName:lastName:externalId:id:notifyByEmail:attributes:sharingScope:createdOn:emailVerified:phoneVerified:status:roles:dataGroups:clientData:languages:substudyIds:externalIds:authenticated:sessionToken:reauthToken:environment:email:phone:dataSharing:signedMostRecentConsent:synapseUserId:consented:consentStatuses:type:)"))); +- (BridgeClientUserSessionInfo *)doCopyFirstName:(NSString * _Nullable)firstName lastName:(NSString * _Nullable)lastName externalId:(NSString * _Nullable)externalId id:(NSString * _Nullable)id notifyByEmail:(BridgeClientBoolean * _Nullable)notifyByEmail attributes:(NSDictionary * _Nullable)attributes sharingScope:(BridgeClientSharingScope * _Nullable)sharingScope createdOn:(NSString * _Nullable)createdOn emailVerified:(BridgeClientBoolean * _Nullable)emailVerified phoneVerified:(BridgeClientBoolean * _Nullable)phoneVerified status:(BridgeClientAccountStatus * _Nullable)status roles:(NSArray * _Nullable)roles dataGroups:(NSArray * _Nullable)dataGroups clientData:(BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable)clientData languages:(NSArray * _Nullable)languages studyIds:(NSArray *)studyIds externalIds:(NSDictionary * _Nullable)externalIds authenticated:(BOOL)authenticated sessionToken:(NSString *)sessionToken reauthToken:(NSString * _Nullable)reauthToken environment:(BridgeClientEnvironment * _Nullable)environment email:(NSString * _Nullable)email phone:(BridgeClientPhone * _Nullable)phone dataSharing:(BridgeClientBoolean * _Nullable)dataSharing signedMostRecentConsent:(BridgeClientBoolean * _Nullable)signedMostRecentConsent synapseUserId:(NSString * _Nullable)synapseUserId consented:(BOOL)consented consentStatuses:(NSDictionary * _Nullable)consentStatuses orgMembership:(NSString * _Nullable)orgMembership type:(NSString * _Nullable)type __attribute__((swift_name("doCopy(firstName:lastName:externalId:id:notifyByEmail:attributes:sharingScope:createdOn:emailVerified:phoneVerified:status:roles:dataGroups:clientData:languages:studyIds:externalIds:authenticated:sessionToken:reauthToken:environment:email:phone:dataSharing:signedMostRecentConsent:synapseUserId:consented:consentStatuses:orgMembership:type:)"))); - (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); - (NSUInteger)hash __attribute__((swift_name("hash()"))); - (NSString *)description __attribute__((swift_name("description()"))); @property (readonly) NSDictionary * _Nullable attributes __attribute__((swift_name("attributes"))); -@property (readonly) BridgeClientBoolean * _Nullable authenticated __attribute__((swift_name("authenticated"))); +@property (readonly) BOOL authenticated __attribute__((swift_name("authenticated"))); @property (readonly) BridgeClientKotlinx_serialization_jsonJsonElement * _Nullable clientData __attribute__((swift_name("clientData"))); @property (readonly) NSDictionary * _Nullable consentStatuses __attribute__((swift_name("consentStatuses"))); @property (readonly) BOOL consented __attribute__((swift_name("consented"))); @@ -660,15 +1332,16 @@ __attribute__((swift_name("UserSessionInfo"))) @property (readonly) NSArray * _Nullable languages __attribute__((swift_name("languages"))); @property (readonly) NSString * _Nullable lastName __attribute__((swift_name("lastName"))); @property (readonly) BridgeClientBoolean * _Nullable notifyByEmail __attribute__((swift_name("notifyByEmail"))); +@property (readonly) NSString * _Nullable orgMembership __attribute__((swift_name("orgMembership"))); @property (readonly) BridgeClientPhone * _Nullable phone __attribute__((swift_name("phone"))); @property (readonly) BridgeClientBoolean * _Nullable phoneVerified __attribute__((swift_name("phoneVerified"))); @property (readonly) NSString * _Nullable reauthToken __attribute__((swift_name("reauthToken"))); @property (readonly) NSArray * _Nullable roles __attribute__((swift_name("roles"))); -@property (readonly) NSString * _Nullable sessionToken __attribute__((swift_name("sessionToken"))); +@property (readonly) NSString *sessionToken __attribute__((swift_name("sessionToken"))); @property (readonly) BridgeClientSharingScope * _Nullable sharingScope __attribute__((swift_name("sharingScope"))); @property (readonly) BridgeClientBoolean * _Nullable signedMostRecentConsent __attribute__((swift_name("signedMostRecentConsent"))); @property (readonly) BridgeClientAccountStatus * _Nullable status __attribute__((swift_name("status"))); -@property (readonly) NSArray * _Nullable substudyIds __attribute__((swift_name("substudyIds"))); +@property (readonly) NSArray *studyIds __attribute__((swift_name("studyIds"))); @property (readonly) NSString * _Nullable synapseUserId __attribute__((swift_name("synapseUserId"))); @property (readonly) NSString * _Nullable type __attribute__((swift_name("type"))); @end; @@ -690,7 +1363,7 @@ __attribute__((swift_name("AbstractApi"))) @note This method converts instances of CancellationException to errors. Other uncaught Kotlin exceptions are fatal. */ -- (void)getDataPath:(NSString *)path completionHandler:(void (^)(id _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("getData(path:completionHandler:)"))); +- (void)getDataPath:(NSString *)path modifiedDateTimeString:(NSString * _Nullable)modifiedDateTimeString completionHandler:(void (^)(id _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("getData(path:modifiedDateTimeString:completionHandler:)"))); /** @note This method converts instances of CancellationException to errors. @@ -806,14 +1479,20 @@ __attribute__((swift_name("BridgeResourceDatabaseCompanion"))) __attribute__((swift_name("BridgeResourceDatabaseQueries"))) @protocol BridgeClientBridgeResourceDatabaseQueries @required -- (void)insertUpdateResourceIdentifier:(NSString *)identifier type:(BridgeClientResourceType *)type json:(NSString * _Nullable)json lastUpdate:(int64_t)lastUpdate status:(BridgeClientResourceStatus *)status __attribute__((swift_name("insertUpdateResource(identifier:type:json:lastUpdate:status:)"))); +- (void)insertUpdateResourceIdentifier:(NSString *)identifier secondaryId:(NSString *)secondaryId type:(BridgeClientResourceType *)type studyId:(NSString *)studyId json:(NSString * _Nullable)json lastUpdate:(int64_t)lastUpdate status:(BridgeClientResourceStatus *)status needSave:(BOOL)needSave __attribute__((swift_name("insertUpdateResource(identifier:secondaryId:type:studyId:json:lastUpdate:status:needSave:)"))); - (void)removeAllResources __attribute__((swift_name("removeAllResources()"))); -- (void)removeAllResourcesByTypeType:(BridgeClientResourceType *)type __attribute__((swift_name("removeAllResourcesByType(type:)"))); -- (void)removeResourceByIdIdentifier:(NSString *)identifier __attribute__((swift_name("removeResourceById(identifier:)"))); -- (BridgeClientRuntimeQuery *)selectAllResourcesByTypeType:(BridgeClientResourceType *)type __attribute__((swift_name("selectAllResourcesByType(type:)"))); -- (BridgeClientRuntimeQuery *)selectAllResourcesByTypeType:(BridgeClientResourceType *)type mapper:(id (^)(NSString *, BridgeClientResourceType *, NSString * _Nullable, BridgeClientLong *, BridgeClientResourceStatus *))mapper __attribute__((swift_name("selectAllResourcesByType(type:mapper:)"))); -- (BridgeClientRuntimeQuery *)selectResourceByIdIdentifier:(NSString *)identifier __attribute__((swift_name("selectResourceById(identifier:)"))); -- (BridgeClientRuntimeQuery *)selectResourceByIdIdentifier:(NSString *)identifier mapper:(id (^)(NSString *, BridgeClientResourceType *, NSString * _Nullable, BridgeClientLong *, BridgeClientResourceStatus *))mapper __attribute__((swift_name("selectResourceById(identifier:mapper:)"))); +- (void)removeAllResourcesByTypeType:(BridgeClientResourceType *)type studyId:(NSString *)studyId __attribute__((swift_name("removeAllResourcesByType(type:studyId:)"))); +- (void)removeResourceByIdIdentifier:(NSString *)identifier type:(BridgeClientResourceType *)type studyId:(NSString *)studyId __attribute__((swift_name("removeResourceById(identifier:type:studyId:)"))); +- (BridgeClientRuntimeQuery *)selectAllResourcesByTypeType:(BridgeClientResourceType *)type studyId:(NSString *)studyId __attribute__((swift_name("selectAllResourcesByType(type:studyId:)"))); +- (BridgeClientRuntimeQuery *)selectAllResourcesByTypeType:(BridgeClientResourceType *)type studyId:(NSString *)studyId mapper:(id (^)(NSString *, NSString *, BridgeClientResourceType *, NSString *, NSString * _Nullable, BridgeClientLong *, BridgeClientResourceStatus *, BridgeClientBoolean *))mapper __attribute__((swift_name("selectAllResourcesByType(type:studyId:mapper:)"))); +- (BridgeClientRuntimeQuery *)selectResourceByIdIdentifier:(NSString *)identifier type:(BridgeClientResourceType *)type studyId:(NSString *)studyId __attribute__((swift_name("selectResourceById(identifier:type:studyId:)"))); +- (BridgeClientRuntimeQuery *)selectResourceByIdIdentifier:(NSString *)identifier type:(BridgeClientResourceType *)type studyId:(NSString *)studyId mapper:(id (^)(NSString *, NSString *, BridgeClientResourceType *, NSString *, NSString * _Nullable, BridgeClientLong *, BridgeClientResourceStatus *, BridgeClientBoolean *))mapper __attribute__((swift_name("selectResourceById(identifier:type:studyId:mapper:)"))); +- (BridgeClientRuntimeQuery *)selectResourceByIdsIdentifier:(id)identifier type:(BridgeClientResourceType *)type studyId:(NSString *)studyId __attribute__((swift_name("selectResourceByIds(identifier:type:studyId:)"))); +- (BridgeClientRuntimeQuery *)selectResourceByIdsIdentifier:(id)identifier type:(BridgeClientResourceType *)type studyId:(NSString *)studyId mapper:(id (^)(NSString *, NSString *, BridgeClientResourceType *, NSString *, NSString * _Nullable, BridgeClientLong *, BridgeClientResourceStatus *, BridgeClientBoolean *))mapper __attribute__((swift_name("selectResourceByIds(identifier:type:studyId:mapper:)"))); +- (BridgeClientRuntimeQuery *)selectResourceBySecondaryIdSecondaryId:(NSString *)secondaryId type:(BridgeClientResourceType *)type studyId:(NSString *)studyId __attribute__((swift_name("selectResourceBySecondaryId(secondaryId:type:studyId:)"))); +- (BridgeClientRuntimeQuery *)selectResourceBySecondaryIdSecondaryId:(NSString *)secondaryId type:(BridgeClientResourceType *)type studyId:(NSString *)studyId mapper:(id (^)(NSString *, NSString *, BridgeClientResourceType *, NSString *, NSString * _Nullable, BridgeClientLong *, BridgeClientResourceStatus *, BridgeClientBoolean *))mapper __attribute__((swift_name("selectResourceBySecondaryId(secondaryId:type:studyId:mapper:)"))); +- (BridgeClientRuntimeQuery *)selectResourceNeedSaveType:(BridgeClientResourceType *)type studyId:(NSString *)studyId __attribute__((swift_name("selectResourceNeedSave(type:studyId:)"))); +- (BridgeClientRuntimeQuery *)selectResourceNeedSaveType:(BridgeClientResourceType *)type studyId:(NSString *)studyId mapper:(id (^)(NSString *, NSString *, BridgeClientResourceType *, NSString *, NSString * _Nullable, BridgeClientLong *, BridgeClientResourceStatus *, BridgeClientBoolean *))mapper __attribute__((swift_name("selectResourceNeedSave(type:studyId:mapper:)"))); @end; __attribute__((swift_name("DbDriverFactory"))) @@ -833,20 +1512,26 @@ __attribute__((swift_name("DatabaseDriverFactory"))) __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Resource"))) @interface BridgeClientResource : BridgeClientBase -- (instancetype)initWithIdentifier:(NSString *)identifier type:(BridgeClientResourceType *)type json:(NSString * _Nullable)json lastUpdate:(int64_t)lastUpdate status:(BridgeClientResourceStatus *)status __attribute__((swift_name("init(identifier:type:json:lastUpdate:status:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithIdentifier:(NSString *)identifier secondaryId:(NSString *)secondaryId type:(BridgeClientResourceType *)type studyId:(NSString *)studyId json:(NSString * _Nullable)json lastUpdate:(int64_t)lastUpdate status:(BridgeClientResourceStatus *)status needSave:(BOOL)needSave __attribute__((swift_name("init(identifier:secondaryId:type:studyId:json:lastUpdate:status:needSave:)"))) __attribute__((objc_designated_initializer)); - (NSString *)component1 __attribute__((swift_name("component1()"))); -- (BridgeClientResourceType *)component2 __attribute__((swift_name("component2()"))); -- (NSString * _Nullable)component3 __attribute__((swift_name("component3()"))); -- (int64_t)component4 __attribute__((swift_name("component4()"))); -- (BridgeClientResourceStatus *)component5 __attribute__((swift_name("component5()"))); -- (BridgeClientResource *)doCopyIdentifier:(NSString *)identifier type:(BridgeClientResourceType *)type json:(NSString * _Nullable)json lastUpdate:(int64_t)lastUpdate status:(BridgeClientResourceStatus *)status __attribute__((swift_name("doCopy(identifier:type:json:lastUpdate:status:)"))); +- (NSString *)component2 __attribute__((swift_name("component2()"))); +- (BridgeClientResourceType *)component3 __attribute__((swift_name("component3()"))); +- (NSString *)component4 __attribute__((swift_name("component4()"))); +- (NSString * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (int64_t)component6 __attribute__((swift_name("component6()"))); +- (BridgeClientResourceStatus *)component7 __attribute__((swift_name("component7()"))); +- (BOOL)component8 __attribute__((swift_name("component8()"))); +- (BridgeClientResource *)doCopyIdentifier:(NSString *)identifier secondaryId:(NSString *)secondaryId type:(BridgeClientResourceType *)type studyId:(NSString *)studyId json:(NSString * _Nullable)json lastUpdate:(int64_t)lastUpdate status:(BridgeClientResourceStatus *)status needSave:(BOOL)needSave __attribute__((swift_name("doCopy(identifier:secondaryId:type:studyId:json:lastUpdate:status:needSave:)"))); - (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); - (NSUInteger)hash __attribute__((swift_name("hash()"))); - (NSString *)description __attribute__((swift_name("description()"))); @property (readonly) NSString *identifier __attribute__((swift_name("identifier"))); @property (readonly) NSString * _Nullable json __attribute__((swift_name("json"))); @property (readonly) int64_t lastUpdate __attribute__((swift_name("lastUpdate"))); +@property (readonly) BOOL needSave __attribute__((swift_name("needSave"))); +@property (readonly) NSString *secondaryId __attribute__((swift_name("secondaryId"))); @property (readonly) BridgeClientResourceStatus *status __attribute__((swift_name("status"))); +@property (readonly) NSString *studyId __attribute__((swift_name("studyId"))); @property (readonly) BridgeClientResourceType *type __attribute__((swift_name("type"))); @end; @@ -864,6 +1549,16 @@ __attribute__((swift_name("ResourceDatabaseHelper"))) - (instancetype)initWithSqlDriver:(id)sqlDriver __attribute__((swift_name("init(sqlDriver:)"))) __attribute__((objc_designated_initializer)); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ResourceDatabaseHelper.Companion"))) +@interface BridgeClientResourceDatabaseHelperCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +@property (readonly) NSString *APP_WIDE_STUDY_ID __attribute__((swift_name("APP_WIDE_STUDY_ID"))); +@property (readonly) NSString *DEFAULT_SECONDARY_ID __attribute__((swift_name("DEFAULT_SECONDARY_ID"))); +@end; + __attribute__((swift_name("ResourceResult"))) @interface BridgeClientResourceResult<__covariant T> : BridgeClientBase @end; @@ -912,6 +1607,7 @@ __attribute__((swift_name("ResourceStatus"))) @property (class, readonly) BridgeClientResourceStatus *pending __attribute__((swift_name("pending"))); @property (class, readonly) BridgeClientResourceStatus *retry __attribute__((swift_name("retry"))); @property (class, readonly) BridgeClientResourceStatus *failed __attribute__((swift_name("failed"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @end; __attribute__((objc_subclassing_restricted)) @@ -925,12 +1621,18 @@ __attribute__((swift_name("ResourceType"))) @property (class, readonly) BridgeClientResourceType *uploadSession __attribute__((swift_name("uploadSession"))); @property (class, readonly) BridgeClientResourceType *fileUpload __attribute__((swift_name("fileUpload"))); @property (class, readonly) BridgeClientResourceType *userSessionInfo __attribute__((swift_name("userSessionInfo"))); +@property (class, readonly) BridgeClientResourceType *timeline __attribute__((swift_name("timeline"))); +@property (class, readonly) BridgeClientResourceType *activityEventsList __attribute__((swift_name("activityEventsList"))); +@property (class, readonly) BridgeClientResourceType *adherenceRecord __attribute__((swift_name("adherenceRecord"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @end; __attribute__((swift_name("AbstractResourceRepo"))) @interface BridgeClientAbstractResourceRepo : BridgeClientBase - (instancetype)initWithDatabase:(BridgeClientResourceDatabaseHelper *)database resourceType:(BridgeClientResourceType *)resourceType backgroundScope:(id)backgroundScope __attribute__((swift_name("init(database:resourceType:backgroundScope:)"))) __attribute__((objc_designated_initializer)); +@property (readonly) id backgroundScope __attribute__((swift_name("backgroundScope"))); @property (readonly) BridgeClientResourceDatabaseHelper *database __attribute__((swift_name("database"))); +@property (readonly) BridgeClientResourceType *resourceType __attribute__((swift_name("resourceType"))); @end; __attribute__((objc_subclassing_restricted)) @@ -943,12 +1645,46 @@ __attribute__((swift_name("AbstractResourceRepo.Companion"))) @property (readonly) int32_t defaultUpdateFrequency __attribute__((swift_name("defaultUpdateFrequency"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ActivityEventsRepo"))) +@interface BridgeClientActivityEventsRepo : BridgeClientAbstractResourceRepo +- (instancetype)initWithHttpClient:(BridgeClientKtor_client_coreHttpClient *)httpClient databaseHelper:(BridgeClientResourceDatabaseHelper *)databaseHelper backgroundScope:(id)backgroundScope __attribute__((swift_name("init(httpClient:databaseHelper:backgroundScope:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithDatabase:(BridgeClientResourceDatabaseHelper *)database resourceType:(BridgeClientResourceType *)resourceType backgroundScope:(id)backgroundScope __attribute__((swift_name("init(database:resourceType:backgroundScope:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +- (id)getActivityEventsStudyId:(NSString *)studyId __attribute__((swift_name("getActivityEvents(studyId:)"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ActivityEventsRepo.Companion"))) +@interface BridgeClientActivityEventsRepoCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +@property (readonly) NSString *ACTIVITY_EVENTS_LIST_ID __attribute__((swift_name("ACTIVITY_EVENTS_LIST_ID"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("AdherenceRecordRepo"))) +@interface BridgeClientAdherenceRecordRepo : BridgeClientAbstractResourceRepo +- (instancetype)initWithHttpClient:(BridgeClientKtor_client_coreHttpClient *)httpClient databaseHelper:(BridgeClientResourceDatabaseHelper *)databaseHelper backgroundScope:(id)backgroundScope __attribute__((swift_name("init(httpClient:databaseHelper:backgroundScope:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithDatabase:(BridgeClientResourceDatabaseHelper *)database resourceType:(BridgeClientResourceType *)resourceType backgroundScope:(id)backgroundScope __attribute__((swift_name("init(database:resourceType:backgroundScope:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +- (void)createUpdateAdherenceRecordAdherenceRecord:(BridgeClientAdherenceRecord *)adherenceRecord studyId:(NSString *)studyId __attribute__((swift_name("createUpdateAdherenceRecord(adherenceRecord:studyId:)"))); +- (id)getAllCachedAdherenceRecordsStudyId:(NSString *)studyId __attribute__((swift_name("getAllCachedAdherenceRecords(studyId:)"))); +- (NSDictionary *> *)getCachedAdherenceRecordsInstanceIds:(NSArray *)instanceIds studyId:(NSString *)studyId __attribute__((swift_name("getCachedAdherenceRecords(instanceIds:studyId:)"))); + +/** + @note This method converts instances of CancellationException to errors. + Other uncaught Kotlin exceptions are fatal. +*/ +- (void)loadRemoteAdherenceRecordsStudyId:(NSString *)studyId completionHandler:(void (^)(BridgeClientBoolean * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("loadRemoteAdherenceRecords(studyId:completionHandler:)"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("AppConfigRepo"))) @interface BridgeClientAppConfigRepo : BridgeClientAbstractResourceRepo -- (instancetype)initWithHttpClient:(BridgeClientKtor_client_coreHttpClient *)httpClient databaseHelper:(BridgeClientResourceDatabaseHelper *)databaseHelper backgroundScope:(id)backgroundScope __attribute__((swift_name("init(httpClient:databaseHelper:backgroundScope:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithHttpClient:(BridgeClientKtor_client_coreHttpClient *)httpClient databaseHelper:(BridgeClientResourceDatabaseHelper *)databaseHelper backgroundScope:(id)backgroundScope bridgeConfig:(id)bridgeConfig __attribute__((swift_name("init(httpClient:databaseHelper:backgroundScope:bridgeConfig:)"))) __attribute__((objc_designated_initializer)); - (instancetype)initWithDatabase:(BridgeClientResourceDatabaseHelper *)database resourceType:(BridgeClientResourceType *)resourceType backgroundScope:(id)backgroundScope __attribute__((swift_name("init(database:resourceType:backgroundScope:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); -- (id)getAppConfigAppId:(NSString *)appId __attribute__((swift_name("getAppConfig(appId:)"))); +- (id)getAppConfig __attribute__((swift_name("getAppConfig()"))); +@property (readonly) id bridgeConfig __attribute__((swift_name("bridgeConfig"))); @end; __attribute__((objc_subclassing_restricted)) @@ -963,6 +1699,7 @@ __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("AuthenticationRepository"))) @interface BridgeClientAuthenticationRepository : BridgeClientBase - (instancetype)initWithHttpClient:(BridgeClientKtor_client_coreHttpClient *)httpClient bridgeConfig:(id)bridgeConfig database:(BridgeClientResourceDatabaseHelper *)database __attribute__((swift_name("init(httpClient:bridgeConfig:database:)"))) __attribute__((objc_designated_initializer)); +- (NSString * _Nullable)currentStudyId __attribute__((swift_name("currentStudyId()"))); - (BOOL)isAuthenticated __attribute__((swift_name("isAuthenticated()"))); /** @@ -984,7 +1721,12 @@ __attribute__((swift_name("AuthenticationRepository"))) Other uncaught Kotlin exceptions are fatal. */ - (void)signInExternalIdExternalId:(NSString *)externalId password:(NSString *)password completionHandler:(void (^)(BridgeClientResourceResult * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("signInExternalId(externalId:password:completionHandler:)"))); -- (void)signOut __attribute__((swift_name("signOut()"))); + +/** + @note This method converts instances of CancellationException to errors. + Other uncaught Kotlin exceptions are fatal. +*/ +- (void)signOutWithCompletionHandler:(void (^)(BridgeClientKotlinUnit * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("signOut(completionHandler:)"))); @property (readonly) id bridgeConfig __attribute__((swift_name("bridgeConfig"))); @property (readonly) BridgeClientResourceDatabaseHelper *database __attribute__((swift_name("database"))); @end; @@ -995,40 +1737,134 @@ __attribute__((swift_name("AuthenticationRepository.Companion"))) + (instancetype)alloc __attribute__((unavailable)); + (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); + (instancetype)companion __attribute__((swift_name("init()"))); -@property (readonly) NSString *USER_SESSION_ID __attribute__((swift_name("USER_SESSION_ID"))); +@property (readonly) NSString *USER_SESSION_ID __attribute__((swift_name("USER_SESSION_ID"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ConsentRepo"))) +@interface BridgeClientConsentRepo : BridgeClientBase +- (instancetype)initWithHttpClient:(BridgeClientKtor_client_coreHttpClient *)httpClient __attribute__((swift_name("init(httpClient:)"))) __attribute__((objc_designated_initializer)); + +/** + @note This method converts instances of CancellationException to errors. + Other uncaught Kotlin exceptions are fatal. +*/ +- (void)createConsentSignatureSubpopulationGuid:(NSString *)subpopulationGuid scope:(BridgeClientSharingScope *)scope completionHandler:(void (^)(BridgeClientUserSessionInfo * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("createConsentSignature(subpopulationGuid:scope:completionHandler:)"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduleTimelineRepo"))) +@interface BridgeClientScheduleTimelineRepo : BridgeClientAbstractResourceRepo +- (instancetype)initWithAdherenceRecordRepo:(BridgeClientAdherenceRecordRepo *)adherenceRecordRepo activityEventsRepo:(BridgeClientActivityEventsRepo *)activityEventsRepo httpClient:(BridgeClientKtor_client_coreHttpClient *)httpClient databaseHelper:(BridgeClientResourceDatabaseHelper *)databaseHelper backgroundScope:(id)backgroundScope __attribute__((swift_name("init(adherenceRecordRepo:activityEventsRepo:httpClient:databaseHelper:backgroundScope:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithDatabase:(BridgeClientResourceDatabaseHelper *)database resourceType:(BridgeClientResourceType *)resourceType backgroundScope:(id)backgroundScope __attribute__((swift_name("init(database:resourceType:backgroundScope:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +- (id)getSessionsForTodayStudyId:(NSString *)studyId includeAllNotifications:(BOOL)includeAllNotifications alwaysIncludeNextDay:(BOOL)alwaysIncludeNextDay __attribute__((swift_name("getSessionsForToday(studyId:includeAllNotifications:alwaysIncludeNextDay:)"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduleTimelineRepo.Companion"))) +@interface BridgeClientScheduleTimelineRepoCompanion : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)companion __attribute__((swift_name("init()"))); +@property (readonly) NSString *SCHEDULE_TIMELINE_ID __attribute__((swift_name("SCHEDULE_TIMELINE_ID"))); @end; __attribute__((objc_subclassing_restricted)) -__attribute__((swift_name("ConsentRepo"))) -@interface BridgeClientConsentRepo : BridgeClientBase -- (instancetype)initWithHttpClient:(BridgeClientKtor_client_coreHttpClient *)httpClient __attribute__((swift_name("init(httpClient:)"))) __attribute__((objc_designated_initializer)); - -/** - @note This method converts instances of CancellationException to errors. - Other uncaught Kotlin exceptions are fatal. -*/ -- (void)createConsentSignatureSubpopulationGuid:(NSString *)subpopulationGuid scope:(BridgeClientSharingScope *)scope completionHandler:(void (^)(BridgeClientUserSessionInfo * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("createConsentSignature(subpopulationGuid:scope:completionHandler:)"))); +__attribute__((swift_name("ScheduledAssessmentReference"))) +@interface BridgeClientScheduledAssessmentReference : BridgeClientBase +- (instancetype)initWithInstanceGuid:(NSString *)instanceGuid assessmentInfo:(BridgeClientAssessmentInfo *)assessmentInfo adherenceRecordList:(NSArray * _Nullable)adherenceRecordList __attribute__((swift_name("init(instanceGuid:assessmentInfo:adherenceRecordList:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (BridgeClientAssessmentInfo *)component2 __attribute__((swift_name("component2()"))); +- (NSArray * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (BridgeClientScheduledAssessmentReference *)doCopyInstanceGuid:(NSString *)instanceGuid assessmentInfo:(BridgeClientAssessmentInfo *)assessmentInfo adherenceRecordList:(NSArray * _Nullable)adherenceRecordList __attribute__((swift_name("doCopy(instanceGuid:assessmentInfo:adherenceRecordList:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSArray * _Nullable adherenceRecordList __attribute__((swift_name("adherenceRecordList"))); +@property (readonly) BridgeClientAssessmentInfo *assessmentInfo __attribute__((swift_name("assessmentInfo"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) BOOL isCompleted __attribute__((swift_name("isCompleted"))); +@property (readonly) BOOL isDeclined __attribute__((swift_name("isDeclined"))); @end; -@interface BridgeClientResource (Extensions) -- (id _Nullable)loadResource __attribute__((swift_name("loadResource()"))); +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduledNotification"))) +@interface BridgeClientScheduledNotification : BridgeClientBase +- (instancetype)initWithInstanceGuid:(NSString *)instanceGuid scheduleOn:(BridgeClientKotlinx_datetimeLocalDateTime *)scheduleOn repeatInterval:(BridgeClientKotlinx_datetimeDateTimePeriod * _Nullable)repeatInterval allowSnooze:(BOOL)allowSnooze message:(BridgeClientNotificationMessage * _Nullable)message __attribute__((swift_name("init(instanceGuid:scheduleOn:repeatInterval:allowSnooze:message:)"))) __attribute__((objc_designated_initializer)); +- (NSString *)component1 __attribute__((swift_name("component1()"))); +- (BridgeClientKotlinx_datetimeLocalDateTime *)component2 __attribute__((swift_name("component2()"))); +- (BridgeClientKotlinx_datetimeDateTimePeriod * _Nullable)component3 __attribute__((swift_name("component3()"))); +- (BOOL)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientNotificationMessage * _Nullable)component5 __attribute__((swift_name("component5()"))); +- (BridgeClientScheduledNotification *)doCopyInstanceGuid:(NSString *)instanceGuid scheduleOn:(BridgeClientKotlinx_datetimeLocalDateTime *)scheduleOn repeatInterval:(BridgeClientKotlinx_datetimeDateTimePeriod * _Nullable)repeatInterval allowSnooze:(BOOL)allowSnooze message:(BridgeClientNotificationMessage * _Nullable)message __attribute__((swift_name("doCopy(instanceGuid:scheduleOn:repeatInterval:allowSnooze:message:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BOOL allowSnooze __attribute__((swift_name("allowSnooze"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) BridgeClientNotificationMessage * _Nullable message __attribute__((swift_name("message"))); +@property (readonly) BridgeClientKotlinx_datetimeDateTimePeriod * _Nullable repeatInterval __attribute__((swift_name("repeatInterval"))); +@property (readonly) BridgeClientKotlinx_datetimeLocalDateTime *scheduleOn __attribute__((swift_name("scheduleOn"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduledSessionTimelineSlice"))) +@interface BridgeClientScheduledSessionTimelineSlice : BridgeClientBase +- (instancetype)initWithInstantInDay:(BridgeClientKotlinx_datetimeInstant *)instantInDay timezone:(BridgeClientKotlinx_datetimeTimeZone *)timezone scheduledSessionWindows:(NSArray *)scheduledSessionWindows notifications:(NSArray *)notifications __attribute__((swift_name("init(instantInDay:timezone:scheduledSessionWindows:notifications:)"))) __attribute__((objc_designated_initializer)); +- (BridgeClientKotlinx_datetimeInstant *)component1 __attribute__((swift_name("component1()"))); +- (BridgeClientKotlinx_datetimeTimeZone *)component2 __attribute__((swift_name("component2()"))); +- (NSArray *)component3 __attribute__((swift_name("component3()"))); +- (NSArray *)component4 __attribute__((swift_name("component4()"))); +- (BridgeClientScheduledSessionTimelineSlice *)doCopyInstantInDay:(BridgeClientKotlinx_datetimeInstant *)instantInDay timezone:(BridgeClientKotlinx_datetimeTimeZone *)timezone scheduledSessionWindows:(NSArray *)scheduledSessionWindows notifications:(NSArray *)notifications __attribute__((swift_name("doCopy(instantInDay:timezone:scheduledSessionWindows:notifications:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BridgeClientKotlinx_datetimeInstant *instantInDay __attribute__((swift_name("instantInDay"))); +@property (readonly) NSArray *notifications __attribute__((swift_name("notifications"))); +@property (readonly) NSArray *scheduledSessionWindows __attribute__((swift_name("scheduledSessionWindows"))); +@property (readonly) BridgeClientKotlinx_datetimeTimeZone *timezone __attribute__((swift_name("timezone"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("ScheduledSessionWindow"))) +@interface BridgeClientScheduledSessionWindow : BridgeClientBase +- (instancetype)initWithScheduledSession:(BridgeClientScheduledSession *)scheduledSession event:(BridgeClientStudyActivityEvent *)event startDateTime:(BridgeClientKotlinx_datetimeLocalDateTime *)startDateTime endDateTime:(BridgeClientKotlinx_datetimeLocalDateTime *)endDateTime isExpired:(BOOL)isExpired isCompleted:(BOOL)isCompleted assessments:(NSArray *)assessments sessionInfo:(BridgeClientSessionInfo *)sessionInfo notifications:(NSArray * _Nullable)notifications __attribute__((swift_name("init(scheduledSession:event:startDateTime:endDateTime:isExpired:isCompleted:assessments:sessionInfo:notifications:)"))) __attribute__((objc_designated_initializer)); +- (BridgeClientScheduledSession *)component1 __attribute__((swift_name("component1()"))); +- (BridgeClientStudyActivityEvent *)component2 __attribute__((swift_name("component2()"))); +- (BridgeClientKotlinx_datetimeLocalDateTime *)component3 __attribute__((swift_name("component3()"))); +- (BridgeClientKotlinx_datetimeLocalDateTime *)component4 __attribute__((swift_name("component4()"))); +- (BOOL)component5 __attribute__((swift_name("component5()"))); +- (BOOL)component6 __attribute__((swift_name("component6()"))); +- (NSArray *)component7 __attribute__((swift_name("component7()"))); +- (BridgeClientSessionInfo *)component8 __attribute__((swift_name("component8()"))); +- (NSArray * _Nullable)component9 __attribute__((swift_name("component9()"))); +- (BridgeClientScheduledSessionWindow *)doCopyScheduledSession:(BridgeClientScheduledSession *)scheduledSession event:(BridgeClientStudyActivityEvent *)event startDateTime:(BridgeClientKotlinx_datetimeLocalDateTime *)startDateTime endDateTime:(BridgeClientKotlinx_datetimeLocalDateTime *)endDateTime isExpired:(BOOL)isExpired isCompleted:(BOOL)isCompleted assessments:(NSArray *)assessments sessionInfo:(BridgeClientSessionInfo *)sessionInfo notifications:(NSArray * _Nullable)notifications __attribute__((swift_name("doCopy(scheduledSession:event:startDateTime:endDateTime:isExpired:isCompleted:assessments:sessionInfo:notifications:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) NSArray *assessments __attribute__((swift_name("assessments"))); +@property (readonly) BridgeClientKotlinx_datetimeLocalDateTime *endDateTime __attribute__((swift_name("endDateTime"))); +@property (readonly) BridgeClientStudyActivityEvent *event __attribute__((swift_name("event"))); +@property (readonly) BridgeClientKotlinx_datetimeInstant *eventTimeStamp __attribute__((swift_name("eventTimeStamp"))); +@property (readonly) BOOL hasEndTimeOfDay __attribute__((swift_name("hasEndTimeOfDay"))); +@property (readonly) BOOL hasStartTimeOfDay __attribute__((swift_name("hasStartTimeOfDay"))); +@property (readonly) NSString *instanceGuid __attribute__((swift_name("instanceGuid"))); +@property (readonly) BOOL isCompleted __attribute__((swift_name("isCompleted"))); +@property (readonly) BOOL isExpired __attribute__((swift_name("isExpired"))); +@property (readonly) NSArray * _Nullable notifications __attribute__((swift_name("notifications"))); +@property (readonly) BOOL persistent __attribute__((swift_name("persistent"))); +@property (readonly) BridgeClientScheduledSession *scheduledSession __attribute__((swift_name("scheduledSession"))); +@property (readonly) BridgeClientSessionInfo *sessionInfo __attribute__((swift_name("sessionInfo"))); +@property (readonly) BridgeClientKotlinx_datetimeLocalDateTime *startDateTime __attribute__((swift_name("startDateTime"))); @end; -__attribute__((swift_name("RuntimeQuery"))) -@interface BridgeClientRuntimeQuery<__covariant RowType> : BridgeClientBase -- (instancetype)initWithQueries:(NSMutableArray *> *)queries mapper:(RowType (^)(id))mapper __attribute__((swift_name("init(queries:mapper:)"))) __attribute__((objc_designated_initializer)); -- (void)addListenerListener:(id)listener __attribute__((swift_name("addListener(listener:)"))); -- (id)execute __attribute__((swift_name("execute()"))); -- (NSArray *)executeAsList __attribute__((swift_name("executeAsList()"))); -- (RowType)executeAsOne __attribute__((swift_name("executeAsOne()"))); -- (RowType _Nullable)executeAsOneOrNull __attribute__((swift_name("executeAsOneOrNull()"))); -- (void)notifyDataChanged __attribute__((swift_name("notifyDataChanged()"))); -- (void)removeListenerListener:(id)listener __attribute__((swift_name("removeListener(listener:)"))); -@property (readonly) RowType (^mapper)(id) __attribute__((swift_name("mapper"))); +@interface BridgeClientAppConfig (Extensions) +- (NSString * _Nullable)clientDataJson __attribute__((swift_name("clientDataJson()"))); +- (NSString * _Nullable)configElementJsonIdentifier:(NSString *)identifier __attribute__((swift_name("configElementJson(identifier:)"))); @end; -@interface BridgeClientRuntimeQuery (Extensions) -- (id)asFlow __attribute__((swift_name("asFlow()"))); +@interface BridgeClientResource (Extensions) +- (id _Nullable)loadResource __attribute__((swift_name("loadResource()"))); @end; __attribute__((objc_subclassing_restricted)) @@ -1052,16 +1888,6 @@ __attribute__((swift_name("HttpClientModuleKt"))) + (BridgeClientKoin_coreModule *)httpClientModuleEnableNetworkLogs:(BOOL)enableNetworkLogs __attribute__((swift_name("httpClientModule(enableNetworkLogs:)"))); @end; -__attribute__((objc_subclassing_restricted)) -__attribute__((swift_name("CoroutinesExtensionsKt"))) -@interface BridgeClientCoroutinesExtensionsKt : BridgeClientBase -+ (id)mapToList:(id)receiver context:(id)context __attribute__((swift_name("mapToList(_:context:)"))); -+ (id)mapToOne:(id)receiver context:(id)context __attribute__((swift_name("mapToOne(_:context:)"))); -+ (id)mapToOneNotNull:(id)receiver context:(id)context __attribute__((swift_name("mapToOneNotNull(_:context:)"))); -+ (id)mapToOneOrDefault:(id)receiver defaultValue:(id)defaultValue context:(id)context __attribute__((swift_name("mapToOneOrDefault(_:defaultValue:context:)"))); -+ (id)mapToOneOrNull:(id)receiver context:(id)context __attribute__((swift_name("mapToOneOrNull(_:context:)"))); -@end; - __attribute__((swift_name("Kotlinx_serialization_jsonJsonElement"))) @interface BridgeClientKotlinx_serialization_jsonJsonElement : BridgeClientBase @end; @@ -1085,6 +1911,20 @@ __attribute__((swift_name("Kotlinx_serialization_coreKSerializer"))) @required @end; +__attribute__((swift_name("KotlinThrowable"))) +@interface BridgeClientKotlinThrowable : BridgeClientBase +- (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithCause:(BridgeClientKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); ++ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); +- (instancetype)initWithMessage:(NSString * _Nullable)message cause:(BridgeClientKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer)); +- (BridgeClientKotlinArray *)getStackTrace __attribute__((swift_name("getStackTrace()"))); +- (void)printStackTrace __attribute__((swift_name("printStackTrace()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BridgeClientKotlinThrowable * _Nullable cause __attribute__((swift_name("cause"))); +@property (readonly) NSString * _Nullable message __attribute__((swift_name("message"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Koin_coreKoin"))) @interface BridgeClientKoin_coreKoin : BridgeClientBase @@ -1097,10 +1937,10 @@ __attribute__((swift_name("Koin_coreKoin"))) - (BridgeClientKoin_coreScope *)createScopeScopeId:(NSString *)scopeId __attribute__((swift_name("createScope(scopeId:)"))); - (BridgeClientKoin_coreScope *)createScopeScopeId:(NSString *)scopeId source:(id _Nullable)source __attribute__((swift_name("createScope(scopeId:source:)"))); - (BridgeClientKoin_coreScope *)createScopeScopeId:(NSString *)scopeId qualifier:(id)qualifier source:(id _Nullable)source __attribute__((swift_name("createScope(scopeId:qualifier:source:)"))); -- (void)declareInstance:(id)instance qualifier:(id _Nullable)qualifier secondaryTypes:(NSArray> *)secondaryTypes override:(BOOL)override __attribute__((swift_name("declare(instance:qualifier:secondaryTypes:override:)"))); +- (void)declareInstance:(id _Nullable)instance qualifier:(id _Nullable)qualifier secondaryTypes:(NSArray> *)secondaryTypes override:(BOOL)override __attribute__((swift_name("declare(instance:qualifier:secondaryTypes:override:)"))); - (void)deletePropertyKey:(NSString *)key __attribute__((swift_name("deleteProperty(key:)"))); - (void)deleteScopeScopeId:(NSString *)scopeId __attribute__((swift_name("deleteScope(scopeId:)"))); -- (id)getClazz:(id)clazz qualifier:(id _Nullable)qualifier parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("get(clazz:qualifier:parameters:)"))); +- (id _Nullable)getClazz:(id)clazz qualifier:(id _Nullable)qualifier parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("get(clazz:qualifier:parameters:)"))); - (id)getQualifier:(id _Nullable)qualifier parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("get(qualifier:parameters:)"))); - (NSArray *)getAll __attribute__((swift_name("getAll()"))); - (BridgeClientKoin_coreScope *)getOrCreateScopeScopeId:(NSString *)scopeId __attribute__((swift_name("getOrCreateScope(scopeId:)"))); @@ -1109,6 +1949,7 @@ __attribute__((swift_name("Koin_coreKoin"))) - (id _Nullable)getOrNullQualifier:(id _Nullable)qualifier parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("getOrNull(qualifier:parameters:)"))); - (id _Nullable)getPropertyKey:(NSString *)key __attribute__((swift_name("getProperty(key:)"))); - (id)getPropertyKey:(NSString *)key defaultValue:(id)defaultValue __attribute__((swift_name("getProperty(key:defaultValue:)"))); +- (BridgeClientKoin_coreScope *)getRootScope __attribute__((swift_name("getRootScope()"))); - (BridgeClientKoin_coreScope *)getScopeScopeId:(NSString *)scopeId __attribute__((swift_name("getScope(scopeId:)"))); - (BridgeClientKoin_coreScope * _Nullable)getScopeOrNullScopeId:(NSString *)scopeId __attribute__((swift_name("getScopeOrNull(scopeId:)"))); - (id)injectQualifier:(id _Nullable)qualifier mode:(BridgeClientKotlinLazyThreadSafetyMode *)mode parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("inject(qualifier:mode:parameters:)"))); @@ -1122,6 +1963,49 @@ __attribute__((swift_name("Koin_coreKoin"))) @property (readonly) BridgeClientKoin_coreScopeRegistry *scopeRegistry __attribute__((swift_name("scopeRegistry"))); @end; +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("KotlinArray"))) +@interface BridgeClientKotlinArray : BridgeClientBase ++ (instancetype)arrayWithSize:(int32_t)size init:(T _Nullable (^)(BridgeClientInt *))init __attribute__((swift_name("init(size:init:)"))); ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); +- (T _Nullable)getIndex:(int32_t)index __attribute__((swift_name("get(index:)"))); +- (id)iterator __attribute__((swift_name("iterator()"))); +- (void)setIndex:(int32_t)index value:(T _Nullable)value __attribute__((swift_name("set(index:value:)"))); +@property (readonly) int32_t size __attribute__((swift_name("size"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("Kotlinx_datetimeInstant"))) +@interface BridgeClientKotlinx_datetimeInstant : BridgeClientBase +- (int32_t)compareToOther:(BridgeClientKotlinx_datetimeInstant *)other __attribute__((swift_name("compareTo(other:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (BridgeClientKotlinx_datetimeInstant *)minusDuration:(double)duration __attribute__((swift_name("minus(duration:)"))); +- (double)minusOther:(BridgeClientKotlinx_datetimeInstant *)other __attribute__((swift_name("minus(other:)"))); +- (BridgeClientKotlinx_datetimeInstant *)plusDuration:(double)duration __attribute__((swift_name("plus(duration:)"))); +- (int64_t)toEpochMilliseconds __attribute__((swift_name("toEpochMilliseconds()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) int64_t epochSeconds __attribute__((swift_name("epochSeconds"))); +@property (readonly) int32_t nanosecondsOfSecond __attribute__((swift_name("nanosecondsOfSecond"))); +@end; + +__attribute__((swift_name("Kotlinx_datetimeDateTimePeriod"))) +@interface BridgeClientKotlinx_datetimeDateTimePeriod : BridgeClientBase +- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); ++ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) int32_t days __attribute__((swift_name("days"))); +@property (readonly) int32_t hours __attribute__((swift_name("hours"))); +@property (readonly) int32_t minutes __attribute__((swift_name("minutes"))); +@property (readonly) int32_t months __attribute__((swift_name("months"))); +@property (readonly) int32_t nanoseconds __attribute__((swift_name("nanoseconds"))); +@property (readonly) int32_t seconds __attribute__((swift_name("seconds"))); +@property (readonly) int32_t years __attribute__((swift_name("years"))); +@end; + __attribute__((swift_name("Kotlinx_coroutines_coreCoroutineScope"))) @protocol BridgeClientKotlinx_coroutines_coreCoroutineScope @required @@ -1159,20 +2043,6 @@ __attribute__((swift_name("Ktor_client_coreHttpClient"))) @property (readonly) BridgeClientKtor_client_coreHttpSendPipeline *sendPipeline __attribute__((swift_name("sendPipeline"))); @end; -__attribute__((swift_name("KotlinThrowable"))) -@interface BridgeClientKotlinThrowable : BridgeClientBase -- (instancetype)initWithMessage:(NSString * _Nullable)message __attribute__((swift_name("init(message:)"))) __attribute__((objc_designated_initializer)); -- (instancetype)initWithCause:(BridgeClientKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(cause:)"))) __attribute__((objc_designated_initializer)); -- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); -+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -- (instancetype)initWithMessage:(NSString * _Nullable)message cause:(BridgeClientKotlinThrowable * _Nullable)cause __attribute__((swift_name("init(message:cause:)"))) __attribute__((objc_designated_initializer)); -- (BridgeClientKotlinArray *)getStackTrace __attribute__((swift_name("getStackTrace()"))); -- (void)printStackTrace __attribute__((swift_name("printStackTrace()"))); -- (NSString *)description __attribute__((swift_name("description()"))); -@property (readonly) BridgeClientKotlinThrowable * _Nullable cause __attribute__((swift_name("cause"))); -@property (readonly) NSString * _Nullable message __attribute__((swift_name("message"))); -@end; - __attribute__((swift_name("KotlinException"))) @interface BridgeClientKotlinException : BridgeClientKotlinThrowable - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); @@ -1293,6 +2163,19 @@ __attribute__((swift_name("RuntimeSqlDriverSchema"))) @property (readonly) int32_t version __attribute__((swift_name("version"))); @end; +__attribute__((swift_name("RuntimeQuery"))) +@interface BridgeClientRuntimeQuery<__covariant RowType> : BridgeClientBase +- (instancetype)initWithQueries:(NSMutableArray *> *)queries mapper:(RowType (^)(id))mapper __attribute__((swift_name("init(queries:mapper:)"))) __attribute__((objc_designated_initializer)); +- (void)addListenerListener:(id)listener __attribute__((swift_name("addListener(listener:)"))); +- (id)execute __attribute__((swift_name("execute()"))); +- (NSArray *)executeAsList __attribute__((swift_name("executeAsList()"))); +- (RowType)executeAsOne __attribute__((swift_name("executeAsOne()"))); +- (RowType _Nullable)executeAsOneOrNull __attribute__((swift_name("executeAsOneOrNull()"))); +- (void)notifyDataChanged __attribute__((swift_name("notifyDataChanged()"))); +- (void)removeListenerListener:(id)listener __attribute__((swift_name("removeListener(listener:)"))); +@property (readonly) RowType (^mapper)(id) __attribute__((swift_name("mapper"))); +@end; + __attribute__((swift_name("RuntimeColumnAdapter"))) @protocol BridgeClientRuntimeColumnAdapter @required @@ -1316,20 +2199,45 @@ __attribute__((swift_name("Kotlinx_coroutines_coreFlow"))) - (void)collectCollector:(id)collector completionHandler:(void (^)(BridgeClientKotlinUnit * _Nullable, NSError * _Nullable))completionHandler __attribute__((swift_name("collect(collector:completionHandler:)"))); @end; -__attribute__((swift_name("RuntimeSqlCursor"))) -@protocol BridgeClientRuntimeSqlCursor -@required -- (BridgeClientKotlinByteArray * _Nullable)getBytesIndex:(int32_t)index __attribute__((swift_name("getBytes(index:)"))); -- (BridgeClientDouble * _Nullable)getDoubleIndex:(int32_t)index __attribute__((swift_name("getDouble(index:)"))); -- (BridgeClientLong * _Nullable)getLongIndex:(int32_t)index __attribute__((swift_name("getLong(index:)"))); -- (NSString * _Nullable)getStringIndex:(int32_t)index __attribute__((swift_name("getString(index:)"))); -- (BOOL)next __attribute__((swift_name("next()"))); +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("KotlinUnit"))) +@interface BridgeClientKotlinUnit : BridgeClientBase ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); ++ (instancetype)unit __attribute__((swift_name("init()"))); +- (NSString *)description __attribute__((swift_name("description()"))); @end; -__attribute__((swift_name("RuntimeQueryListener"))) -@protocol BridgeClientRuntimeQueryListener -@required -- (void)queryResultsChanged __attribute__((swift_name("queryResultsChanged()"))); +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("Kotlinx_datetimeLocalDateTime"))) +@interface BridgeClientKotlinx_datetimeLocalDateTime : BridgeClientBase +- (instancetype)initWithYear:(int32_t)year monthNumber:(int32_t)monthNumber dayOfMonth:(int32_t)dayOfMonth hour:(int32_t)hour minute:(int32_t)minute second:(int32_t)second nanosecond:(int32_t)nanosecond __attribute__((swift_name("init(year:monthNumber:dayOfMonth:hour:minute:second:nanosecond:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithYear:(int32_t)year month:(BridgeClientKotlinx_datetimeMonth *)month dayOfMonth:(int32_t)dayOfMonth hour:(int32_t)hour minute:(int32_t)minute second:(int32_t)second nanosecond:(int32_t)nanosecond __attribute__((swift_name("init(year:month:dayOfMonth:hour:minute:second:nanosecond:)"))) __attribute__((objc_designated_initializer)); +- (int32_t)compareToOther:(BridgeClientKotlinx_datetimeLocalDateTime *)other __attribute__((swift_name("compareTo(other:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) BridgeClientKotlinx_datetimeLocalDate *date __attribute__((swift_name("date"))); +@property (readonly) int32_t dayOfMonth __attribute__((swift_name("dayOfMonth"))); +@property (readonly) BridgeClientKotlinx_datetimeDayOfWeek *dayOfWeek __attribute__((swift_name("dayOfWeek"))); +@property (readonly) int32_t dayOfYear __attribute__((swift_name("dayOfYear"))); +@property (readonly) int32_t hour __attribute__((swift_name("hour"))); +@property (readonly) int32_t minute __attribute__((swift_name("minute"))); +@property (readonly) BridgeClientKotlinx_datetimeMonth *month __attribute__((swift_name("month"))); +@property (readonly) int32_t monthNumber __attribute__((swift_name("monthNumber"))); +@property (readonly) int32_t nanosecond __attribute__((swift_name("nanosecond"))); +@property (readonly) int32_t second __attribute__((swift_name("second"))); +@property (readonly) int32_t year __attribute__((swift_name("year"))); +@end; + +__attribute__((swift_name("Kotlinx_datetimeTimeZone"))) +@interface BridgeClientKotlinx_datetimeTimeZone : BridgeClientBase +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); +- (NSString *)description __attribute__((swift_name("description()"))); +- (BridgeClientKotlinx_datetimeInstant *)toInstant:(BridgeClientKotlinx_datetimeLocalDateTime *)receiver __attribute__((swift_name("toInstant(_:)"))); +- (BridgeClientKotlinx_datetimeLocalDateTime *)toLocalDateTime:(BridgeClientKotlinx_datetimeInstant *)receiver __attribute__((swift_name("toLocalDateTime(_:)"))); +@property (readonly) NSString *id __attribute__((swift_name("id"))); @end; __attribute__((objc_subclassing_restricted)) @@ -1343,6 +2251,7 @@ __attribute__((swift_name("Koin_coreModule"))) - (void)scopeQualifier:(id)qualifier scopeSet:(void (^)(BridgeClientKoin_coreScopeDSL *))scopeSet __attribute__((swift_name("scope(qualifier:scopeSet:)"))); - (void)scopeScopeSet:(void (^)(BridgeClientKoin_coreScopeDSL *))scopeSet __attribute__((swift_name("scope(scopeSet:)"))); - (BridgeClientKoin_coreBeanDefinition *)singleQualifier:(id _Nullable)qualifier createdAtStart:(BOOL)createdAtStart override:(BOOL)override definition:(id _Nullable (^)(BridgeClientKoin_coreScope *, BridgeClientKoin_coreDefinitionParameters *))definition __attribute__((swift_name("single(qualifier:createdAtStart:override:definition:)"))); +@property (readonly) BOOL isLoaded __attribute__((swift_name("isLoaded"))); @end; __attribute__((objc_subclassing_restricted)) @@ -1361,15 +2270,6 @@ __attribute__((swift_name("Koin_coreKoinApplication"))) @property (readonly) BridgeClientKoin_coreKoin *koin __attribute__((swift_name("koin"))); @end; -__attribute__((swift_name("KotlinCoroutineContext"))) -@protocol BridgeClientKotlinCoroutineContext -@required -- (id _Nullable)foldInitial:(id _Nullable)initial operation:(id _Nullable (^)(id _Nullable, id))operation __attribute__((swift_name("fold(initial:operation:)"))); -- (id _Nullable)getKey:(id)key __attribute__((swift_name("get(key:)"))); -- (id)minusKeyKey:(id)key __attribute__((swift_name("minusKey(key:)"))); -- (id)plusContext:(id)context __attribute__((swift_name("plus(context:)"))); -@end; - __attribute__((swift_name("Kotlinx_serialization_coreEncoder"))) @protocol BridgeClientKotlinx_serialization_coreEncoder @required @@ -1381,6 +2281,7 @@ __attribute__((swift_name("Kotlinx_serialization_coreEncoder"))) - (void)encodeDoubleValue:(double)value __attribute__((swift_name("encodeDouble(value:)"))); - (void)encodeEnumEnumDescriptor:(id)enumDescriptor index:(int32_t)index __attribute__((swift_name("encodeEnum(enumDescriptor:index:)"))); - (void)encodeFloatValue:(float)value __attribute__((swift_name("encodeFloat(value:)"))); +- (id)encodeInlineInlineDescriptor:(id)inlineDescriptor __attribute__((swift_name("encodeInline(inlineDescriptor:)"))); - (void)encodeIntValue:(int32_t)value __attribute__((swift_name("encodeInt(value:)"))); - (void)encodeLongValue:(int64_t)value __attribute__((swift_name("encodeLong(value:)"))); - (void)encodeNotNullMark __attribute__((swift_name("encodeNotNullMark()"))); @@ -1402,6 +2303,7 @@ __attribute__((swift_name("Kotlinx_serialization_coreSerialDescriptor"))) - (BOOL)isElementOptionalIndex:(int32_t)index __attribute__((swift_name("isElementOptional(index:)"))); @property (readonly) NSArray> *annotations __attribute__((swift_name("annotations"))); @property (readonly) int32_t elementsCount __attribute__((swift_name("elementsCount"))); +@property (readonly) BOOL isInline __attribute__((swift_name("isInline"))); @property (readonly) BOOL isNullable __attribute__((swift_name("isNullable"))); @property (readonly) BridgeClientKotlinx_serialization_coreSerialKind *kind __attribute__((swift_name("kind"))); @property (readonly) NSString *serialName __attribute__((swift_name("serialName"))); @@ -1417,6 +2319,7 @@ __attribute__((swift_name("Kotlinx_serialization_coreDecoder"))) - (double)decodeDouble __attribute__((swift_name("decodeDouble()"))); - (int32_t)decodeEnumEnumDescriptor:(id)enumDescriptor __attribute__((swift_name("decodeEnum(enumDescriptor:)"))); - (float)decodeFloat __attribute__((swift_name("decodeFloat()"))); +- (id)decodeInlineInlineDescriptor:(id)inlineDescriptor __attribute__((swift_name("decodeInline(inlineDescriptor:)"))); - (int32_t)decodeInt __attribute__((swift_name("decodeInt()"))); - (int64_t)decodeLong __attribute__((swift_name("decodeLong()"))); - (BOOL)decodeNotNullMark __attribute__((swift_name("decodeNotNullMark()"))); @@ -1485,10 +2388,10 @@ __attribute__((swift_name("Koin_coreScope"))) - (NSString *)component1 __attribute__((swift_name("component1()"))); - (BridgeClientKoin_coreScopeDefinition *)component2 __attribute__((swift_name("component2()"))); - (BridgeClientKoin_coreScope *)doCopyId:(NSString *)id _scopeDefinition:(BridgeClientKoin_coreScopeDefinition *)_scopeDefinition _koin:(BridgeClientKoin_coreKoin *)_koin __attribute__((swift_name("doCopy(id:_scopeDefinition:_koin:)"))); -- (void)declareInstance:(id)instance qualifier:(id _Nullable)qualifier secondaryTypes:(NSArray> * _Nullable)secondaryTypes override:(BOOL)override __attribute__((swift_name("declare(instance:qualifier:secondaryTypes:override:)"))); +- (void)declareInstance:(id _Nullable)instance qualifier:(id _Nullable)qualifier secondaryTypes:(NSArray> * _Nullable)secondaryTypes override:(BOOL)override __attribute__((swift_name("declare(instance:qualifier:secondaryTypes:override:)"))); - (void)dropInstanceBeanDefinition:(BridgeClientKoin_coreBeanDefinition *)beanDefinition __attribute__((swift_name("dropInstance(beanDefinition:)"))); - (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); -- (id)getClazz:(id)clazz qualifier:(id _Nullable)qualifier parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("get(clazz:qualifier:parameters:)"))); +- (id _Nullable)getClazz:(id)clazz qualifier:(id _Nullable)qualifier parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("get(clazz:qualifier:parameters:)"))); - (id)getQualifier:(id _Nullable)qualifier parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("get(qualifier:parameters:)"))); - (NSArray *)getAll __attribute__((swift_name("getAll()"))); - (NSArray *)getAllClazz:(id)clazz __attribute__((swift_name("getAll(clazz:)"))); @@ -1503,6 +2406,7 @@ __attribute__((swift_name("Koin_coreScope"))) - (NSUInteger)hash __attribute__((swift_name("hash()"))); - (id)injectQualifier:(id _Nullable)qualifier mode:(BridgeClientKotlinLazyThreadSafetyMode *)mode parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("inject(qualifier:mode:parameters:)"))); - (id)injectOrNullQualifier:(id _Nullable)qualifier mode:(BridgeClientKotlinLazyThreadSafetyMode *)mode parameters:(BridgeClientKoin_coreDefinitionParameters *(^ _Nullable)(void))parameters __attribute__((swift_name("injectOrNull(qualifier:mode:parameters:)"))); +- (BOOL)isNotClosed __attribute__((swift_name("isNotClosed()"))); - (void)linkToScopes:(BridgeClientKotlinArray *)scopes __attribute__((swift_name("linkTo(scopes:)"))); - (void)loadDefinitionBeanDefinition:(BridgeClientKoin_coreBeanDefinition *)beanDefinition __attribute__((swift_name("loadDefinition(beanDefinition:)"))); - (void)registerCallbackCallback:(id)callback __attribute__((swift_name("registerCallback(callback:)"))); @@ -1544,6 +2448,7 @@ __attribute__((swift_name("KotlinLazyThreadSafetyMode"))) @property (class, readonly) BridgeClientKotlinLazyThreadSafetyMode *synchronized __attribute__((swift_name("synchronized"))); @property (class, readonly) BridgeClientKotlinLazyThreadSafetyMode *publication __attribute__((swift_name("publication"))); @property (class, readonly) BridgeClientKotlinLazyThreadSafetyMode *none __attribute__((swift_name("none"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @end; __attribute__((swift_name("Koin_coreLogger"))) @@ -1583,6 +2488,22 @@ __attribute__((swift_name("Koin_coreScopeRegistry"))) @property (readonly) NSDictionary *scopeDefinitions __attribute__((swift_name("scopeDefinitions"))); @end; +__attribute__((swift_name("KotlinIterator"))) +@protocol BridgeClientKotlinIterator +@required +- (BOOL)hasNext __attribute__((swift_name("hasNext()"))); +- (id _Nullable)next __attribute__((swift_name("next()"))); +@end; + +__attribute__((swift_name("KotlinCoroutineContext"))) +@protocol BridgeClientKotlinCoroutineContext +@required +- (id _Nullable)foldInitial:(id _Nullable)initial operation:(id _Nullable (^)(id _Nullable, id))operation __attribute__((swift_name("fold(initial:operation:)"))); +- (id _Nullable)getKey:(id)key __attribute__((swift_name("get(key:)"))); +- (id)minusKeyKey:(id)key __attribute__((swift_name("minusKey(key:)"))); +- (id)plusContext:(id)context __attribute__((swift_name("plus(context:)"))); +@end; + __attribute__((swift_name("Ktor_client_coreHttpClientEngine"))) @protocol BridgeClientKtor_client_coreHttpClientEngine @required @@ -1784,18 +2705,6 @@ __attribute__((swift_name("Ktor_client_coreHttpSendPipeline"))) @property (readonly) BOOL developmentMode __attribute__((swift_name("developmentMode"))); @end; -__attribute__((objc_subclassing_restricted)) -__attribute__((swift_name("KotlinArray"))) -@interface BridgeClientKotlinArray : BridgeClientBase -+ (instancetype)arrayWithSize:(int32_t)size init:(T _Nullable (^)(BridgeClientInt *))init __attribute__((swift_name("init(size:init:)"))); -+ (instancetype)alloc __attribute__((unavailable)); -+ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); -- (T _Nullable)getIndex:(int32_t)index __attribute__((swift_name("get(index:)"))); -- (id)iterator __attribute__((swift_name("iterator()"))); -- (void)setIndex:(int32_t)index value:(T _Nullable)value __attribute__((swift_name("set(index:value:)"))); -@property (readonly) int32_t size __attribute__((swift_name("size"))); -@end; - __attribute__((swift_name("Ktor_httpOutgoingContent"))) @interface BridgeClientKtor_httpOutgoingContent : BridgeClientBase - (id _Nullable)getPropertyKey:(BridgeClientKtor_utilsAttributeKey *)key __attribute__((swift_name("getProperty(key:)"))); @@ -1885,6 +2794,22 @@ __attribute__((swift_name("RuntimeSqlPreparedStatement"))) - (void)bindStringIndex:(int32_t)index string:(NSString * _Nullable)string __attribute__((swift_name("bindString(index:string:)"))); @end; +__attribute__((swift_name("RuntimeSqlCursor"))) +@protocol BridgeClientRuntimeSqlCursor +@required +- (BridgeClientKotlinByteArray * _Nullable)getBytesIndex:(int32_t)index __attribute__((swift_name("getBytes(index:)"))); +- (BridgeClientDouble * _Nullable)getDoubleIndex:(int32_t)index __attribute__((swift_name("getDouble(index:)"))); +- (BridgeClientLong * _Nullable)getLongIndex:(int32_t)index __attribute__((swift_name("getLong(index:)"))); +- (NSString * _Nullable)getStringIndex:(int32_t)index __attribute__((swift_name("getString(index:)"))); +- (BOOL)next_ __attribute__((swift_name("next_()"))); +@end; + +__attribute__((swift_name("RuntimeQueryListener"))) +@protocol BridgeClientRuntimeQueryListener +@required +- (void)queryResultsChanged __attribute__((swift_name("queryResultsChanged()"))); +@end; + __attribute__((swift_name("Kotlinx_coroutines_coreFlowCollector"))) @protocol BridgeClientKotlinx_coroutines_coreFlowCollector @required @@ -1897,25 +2822,57 @@ __attribute__((swift_name("Kotlinx_coroutines_coreFlowCollector"))) @end; __attribute__((objc_subclassing_restricted)) -__attribute__((swift_name("KotlinUnit"))) -@interface BridgeClientKotlinUnit : BridgeClientBase +__attribute__((swift_name("Kotlinx_datetimeMonth"))) +@interface BridgeClientKotlinx_datetimeMonth : BridgeClientKotlinEnum + (instancetype)alloc __attribute__((unavailable)); + (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); -+ (instancetype)unit __attribute__((swift_name("init()"))); +- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *january __attribute__((swift_name("january"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *february __attribute__((swift_name("february"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *march __attribute__((swift_name("march"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *april __attribute__((swift_name("april"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *may __attribute__((swift_name("may"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *june __attribute__((swift_name("june"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *july __attribute__((swift_name("july"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *august __attribute__((swift_name("august"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *september __attribute__((swift_name("september"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *october __attribute__((swift_name("october"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *november __attribute__((swift_name("november"))); +@property (class, readonly) BridgeClientKotlinx_datetimeMonth *december __attribute__((swift_name("december"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); +@end; + +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("Kotlinx_datetimeLocalDate"))) +@interface BridgeClientKotlinx_datetimeLocalDate : BridgeClientBase +- (instancetype)initWithYear:(int32_t)year month:(BridgeClientKotlinx_datetimeMonth *)month dayOfMonth:(int32_t)dayOfMonth __attribute__((swift_name("init(year:month:dayOfMonth:)"))) __attribute__((objc_designated_initializer)); +- (instancetype)initWithYear:(int32_t)year monthNumber:(int32_t)monthNumber dayOfMonth:(int32_t)dayOfMonth __attribute__((swift_name("init(year:monthNumber:dayOfMonth:)"))) __attribute__((objc_designated_initializer)); +- (int32_t)compareToOther:(BridgeClientKotlinx_datetimeLocalDate *)other __attribute__((swift_name("compareTo(other:)"))); +- (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); +- (NSUInteger)hash __attribute__((swift_name("hash()"))); - (NSString *)description __attribute__((swift_name("description()"))); +@property (readonly) int32_t dayOfMonth __attribute__((swift_name("dayOfMonth"))); +@property (readonly) BridgeClientKotlinx_datetimeDayOfWeek *dayOfWeek __attribute__((swift_name("dayOfWeek"))); +@property (readonly) int32_t dayOfYear __attribute__((swift_name("dayOfYear"))); +@property (readonly) BridgeClientKotlinx_datetimeMonth *month __attribute__((swift_name("month"))); +@property (readonly) int32_t monthNumber __attribute__((swift_name("monthNumber"))); +@property (readonly) int32_t year __attribute__((swift_name("year"))); @end; __attribute__((objc_subclassing_restricted)) -__attribute__((swift_name("KotlinByteArray"))) -@interface BridgeClientKotlinByteArray : BridgeClientBase -+ (instancetype)arrayWithSize:(int32_t)size __attribute__((swift_name("init(size:)"))); -+ (instancetype)arrayWithSize:(int32_t)size init:(BridgeClientByte *(^)(BridgeClientInt *))init __attribute__((swift_name("init(size:init:)"))); +__attribute__((swift_name("Kotlinx_datetimeDayOfWeek"))) +@interface BridgeClientKotlinx_datetimeDayOfWeek : BridgeClientKotlinEnum + (instancetype)alloc __attribute__((unavailable)); + (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); -- (int8_t)getIndex:(int32_t)index __attribute__((swift_name("get(index:)"))); -- (BridgeClientKotlinByteIterator *)iterator __attribute__((swift_name("iterator()"))); -- (void)setIndex:(int32_t)index value:(int8_t)value __attribute__((swift_name("set(index:value:)"))); -@property (readonly) int32_t size __attribute__((swift_name("size"))); +- (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); +@property (class, readonly) BridgeClientKotlinx_datetimeDayOfWeek *monday __attribute__((swift_name("monday"))); +@property (class, readonly) BridgeClientKotlinx_datetimeDayOfWeek *tuesday __attribute__((swift_name("tuesday"))); +@property (class, readonly) BridgeClientKotlinx_datetimeDayOfWeek *wednesday __attribute__((swift_name("wednesday"))); +@property (class, readonly) BridgeClientKotlinx_datetimeDayOfWeek *thursday __attribute__((swift_name("thursday"))); +@property (class, readonly) BridgeClientKotlinx_datetimeDayOfWeek *friday __attribute__((swift_name("friday"))); +@property (class, readonly) BridgeClientKotlinx_datetimeDayOfWeek *saturday __attribute__((swift_name("saturday"))); +@property (class, readonly) BridgeClientKotlinx_datetimeDayOfWeek *sunday __attribute__((swift_name("sunday"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @end; __attribute__((objc_subclassing_restricted)) @@ -1985,11 +2942,7 @@ __attribute__((swift_name("Koin_coreLevel"))) @property (class, readonly) BridgeClientKoin_coreLevel *info __attribute__((swift_name("info"))); @property (class, readonly) BridgeClientKoin_coreLevel *error __attribute__((swift_name("error"))); @property (class, readonly) BridgeClientKoin_coreLevel *none __attribute__((swift_name("none"))); -@end; - -__attribute__((swift_name("KotlinCoroutineContextKey"))) -@protocol BridgeClientKotlinCoroutineContextKey -@required ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @end; __attribute__((swift_name("Kotlinx_serialization_coreCompositeEncoder"))) @@ -2000,6 +2953,7 @@ __attribute__((swift_name("Kotlinx_serialization_coreCompositeEncoder"))) - (void)encodeCharElementDescriptor:(id)descriptor index:(int32_t)index value:(unichar)value __attribute__((swift_name("encodeCharElement(descriptor:index:value:)"))); - (void)encodeDoubleElementDescriptor:(id)descriptor index:(int32_t)index value:(double)value __attribute__((swift_name("encodeDoubleElement(descriptor:index:value:)"))); - (void)encodeFloatElementDescriptor:(id)descriptor index:(int32_t)index value:(float)value __attribute__((swift_name("encodeFloatElement(descriptor:index:value:)"))); +- (id)encodeInlineElementDescriptor:(id)descriptor index:(int32_t)index __attribute__((swift_name("encodeInlineElement(descriptor:index:)"))); - (void)encodeIntElementDescriptor:(id)descriptor index:(int32_t)index value:(int32_t)value __attribute__((swift_name("encodeIntElement(descriptor:index:value:)"))); - (void)encodeLongElementDescriptor:(id)descriptor index:(int32_t)index value:(int64_t)value __attribute__((swift_name("encodeLongElement(descriptor:index:value:)"))); - (void)encodeNullableSerializableElementDescriptor:(id)descriptor index:(int32_t)index serializer:(id)serializer value:(id _Nullable)value __attribute__((swift_name("encodeNullableSerializableElement(descriptor:index:serializer:value:)"))); @@ -2040,6 +2994,7 @@ __attribute__((swift_name("Kotlinx_serialization_coreCompositeDecoder"))) - (double)decodeDoubleElementDescriptor:(id)descriptor index:(int32_t)index __attribute__((swift_name("decodeDoubleElement(descriptor:index:)"))); - (int32_t)decodeElementIndexDescriptor:(id)descriptor __attribute__((swift_name("decodeElementIndex(descriptor:)"))); - (float)decodeFloatElementDescriptor:(id)descriptor index:(int32_t)index __attribute__((swift_name("decodeFloatElement(descriptor:index:)"))); +- (id)decodeInlineElementDescriptor:(id)descriptor index:(int32_t)index __attribute__((swift_name("decodeInlineElement(descriptor:index:)"))); - (int32_t)decodeIntElementDescriptor:(id)descriptor index:(int32_t)index __attribute__((swift_name("decodeIntElement(descriptor:index:)"))); - (int64_t)decodeLongElementDescriptor:(id)descriptor index:(int32_t)index __attribute__((swift_name("decodeLongElement(descriptor:index:)"))); - (id _Nullable)decodeNullableSerializableElementDescriptor:(id)descriptor index:(int32_t)index deserializer:(id)deserializer previousValue:(id _Nullable)previousValue __attribute__((swift_name("decodeNullableSerializableElement(descriptor:index:deserializer:previousValue:)"))); @@ -2058,7 +3013,7 @@ __attribute__((swift_name("Koin_coreScopeDefinition"))) - (id)component1 __attribute__((swift_name("component1()"))); - (BOOL)component2 __attribute__((swift_name("component2()"))); - (BridgeClientKoin_coreScopeDefinition *)doCopyQualifier:(id)qualifier isRoot:(BOOL)isRoot __attribute__((swift_name("doCopy(qualifier:isRoot:)"))); -- (BridgeClientKoin_coreBeanDefinition *)declareNewDefinitionInstance:(id)instance defQualifier:(id _Nullable)defQualifier secondaryTypes:(NSArray> * _Nullable)secondaryTypes override:(BOOL)override __attribute__((swift_name("declareNewDefinition(instance:defQualifier:secondaryTypes:override:)"))); +- (BridgeClientKoin_coreBeanDefinition *)declareNewDefinitionInstance:(id _Nullable)instance defQualifier:(id _Nullable)defQualifier secondaryTypes:(NSArray> * _Nullable)secondaryTypes override:(BOOL)override __attribute__((swift_name("declareNewDefinition(instance:defQualifier:secondaryTypes:override:)"))); - (BOOL)isEqual:(id _Nullable)other __attribute__((swift_name("isEqual(_:)"))); - (NSUInteger)hash __attribute__((swift_name("hash()"))); - (void)removeBeanDefinition:(BridgeClientKoin_coreBeanDefinition *)beanDefinition __attribute__((swift_name("remove(beanDefinition:)"))); @@ -2075,6 +3030,11 @@ __attribute__((swift_name("Koin_coreScopeCallback"))) - (void)onScopeCloseScope:(BridgeClientKoin_coreScope *)scope __attribute__((swift_name("onScopeClose(scope:)"))); @end; +__attribute__((swift_name("KotlinCoroutineContextKey"))) +@protocol BridgeClientKotlinCoroutineContextKey +@required +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Ktor_client_coreHttpRequestData"))) @interface BridgeClientKtor_client_coreHttpRequestData : BridgeClientBase @@ -2410,13 +3370,6 @@ __attribute__((swift_name("Ktor_client_coreHttpResponseContainer"))) @property (readonly) id response __attribute__((swift_name("response"))); @end; -__attribute__((swift_name("KotlinIterator"))) -@protocol BridgeClientKotlinIterator -@required -- (BOOL)hasNext __attribute__((swift_name("hasNext()"))); -- (id _Nullable)next_ __attribute__((swift_name("next_()"))); -@end; - __attribute__((swift_name("Ktor_httpHeaderValueWithParameters"))) @interface BridgeClientKtor_httpHeaderValueWithParameters : BridgeClientBase - (instancetype)initWithContent:(NSString *)content parameters:(NSArray *)parameters __attribute__((swift_name("init(content:parameters:)"))) __attribute__((objc_designated_initializer)); @@ -2482,12 +3435,17 @@ __attribute__((swift_name("KotlinMapEntry"))) @property (readonly) id _Nullable value __attribute__((swift_name("value"))); @end; -__attribute__((swift_name("KotlinByteIterator"))) -@interface BridgeClientKotlinByteIterator : BridgeClientBase -- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); -+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -- (BridgeClientByte *)next_ __attribute__((swift_name("next_()"))); -- (int8_t)nextByte __attribute__((swift_name("nextByte()"))); +__attribute__((objc_subclassing_restricted)) +__attribute__((swift_name("KotlinByteArray"))) +@interface BridgeClientKotlinByteArray : BridgeClientBase ++ (instancetype)arrayWithSize:(int32_t)size __attribute__((swift_name("init(size:)"))); ++ (instancetype)arrayWithSize:(int32_t)size init:(BridgeClientByte *(^)(BridgeClientInt *))init __attribute__((swift_name("init(size:init:)"))); ++ (instancetype)alloc __attribute__((unavailable)); ++ (instancetype)allocWithZone:(struct _NSZone *)zone __attribute__((unavailable)); +- (int8_t)getIndex:(int32_t)index __attribute__((swift_name("get(index:)"))); +- (BridgeClientKotlinByteIterator *)iterator __attribute__((swift_name("iterator()"))); +- (void)setIndex:(int32_t)index value:(int8_t)value __attribute__((swift_name("set(index:value:)"))); +@property (readonly) int32_t size __attribute__((swift_name("size"))); @end; __attribute__((objc_subclassing_restricted)) @@ -2498,6 +3456,7 @@ __attribute__((swift_name("Koin_coreKind"))) - (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); @property (class, readonly) BridgeClientKoin_coreKind *single __attribute__((swift_name("single"))); @property (class, readonly) BridgeClientKoin_coreKind *factory __attribute__((swift_name("factory"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @end; __attribute__((objc_subclassing_restricted)) @@ -2717,8 +3676,8 @@ __attribute__((swift_name("Ktor_ioOutput"))) __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Ktor_ioIoBuffer"))) @interface BridgeClientKtor_ioIoBuffer : BridgeClientKtor_ioChunkBuffer -- (instancetype)initWithContent:(void *)content contentCapacity:(int32_t)contentCapacity __attribute__((swift_name("init(content:contentCapacity:)"))) __attribute__((objc_designated_initializer)) __attribute__((deprecated("Use Buffer instead."))); - (instancetype)initWithMemory:(BridgeClientKtor_ioMemory *)memory origin:(BridgeClientKtor_ioChunkBuffer * _Nullable)origin __attribute__((swift_name("init(memory:origin:)"))) __attribute__((objc_designated_initializer)) __attribute__((deprecated("Use Buffer instead."))); +- (instancetype)initWithContent:(void *)content contentCapacity:(int32_t)contentCapacity __attribute__((swift_name("init(content:contentCapacity:)"))) __attribute__((objc_designated_initializer)) __attribute__((deprecated("Use Buffer instead."))); - (id)appendValue:(unichar)c __attribute__((swift_name("append(value:)"))); - (id)appendCsq:(BridgeClientKotlinCharArray *)csq start:(int32_t)start end:(int32_t)end __attribute__((swift_name("append(csq:start:end:)"))); - (id)appendValue_:(id _Nullable)csq __attribute__((swift_name("append(value_:)"))); @@ -2819,6 +3778,7 @@ __attribute__((swift_name("Ktor_ioByteOrder"))) - (instancetype)initWithName:(NSString *)name ordinal:(int32_t)ordinal __attribute__((swift_name("init(name:ordinal:)"))) __attribute__((objc_designated_initializer)) __attribute__((unavailable)); @property (class, readonly) BridgeClientKtor_ioByteOrder *bigEndian __attribute__((swift_name("bigEndian"))); @property (class, readonly) BridgeClientKtor_ioByteOrder *littleEndian __attribute__((swift_name("littleEndian"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @end; __attribute__((swift_name("KotlinKType"))) @@ -2843,6 +3803,14 @@ __attribute__((swift_name("Ktor_httpHeaderValueParam"))) @property (readonly) NSString *value __attribute__((swift_name("value"))); @end; +__attribute__((swift_name("KotlinByteIterator"))) +@interface BridgeClientKotlinByteIterator : BridgeClientBase +- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); ++ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); +- (BridgeClientByte *)next __attribute__((swift_name("next()"))); +- (int8_t)nextByte __attribute__((swift_name("nextByte()"))); +@end; + __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Ktor_utilsWeekDay"))) @interface BridgeClientKtor_utilsWeekDay : BridgeClientKotlinEnum @@ -2856,6 +3824,7 @@ __attribute__((swift_name("Ktor_utilsWeekDay"))) @property (class, readonly) BridgeClientKtor_utilsWeekDay *friday __attribute__((swift_name("friday"))); @property (class, readonly) BridgeClientKtor_utilsWeekDay *saturday __attribute__((swift_name("saturday"))); @property (class, readonly) BridgeClientKtor_utilsWeekDay *sunday __attribute__((swift_name("sunday"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) NSString *value __attribute__((swift_name("value"))); @end; @@ -2877,6 +3846,7 @@ __attribute__((swift_name("Ktor_utilsMonth"))) @property (class, readonly) BridgeClientKtor_utilsMonth *october __attribute__((swift_name("october"))); @property (class, readonly) BridgeClientKtor_utilsMonth *november __attribute__((swift_name("november"))); @property (class, readonly) BridgeClientKtor_utilsMonth *december __attribute__((swift_name("december"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @property (readonly) NSString *value __attribute__((swift_name("value"))); @end; @@ -2972,7 +3942,7 @@ __attribute__((swift_name("KotlinCharIterator"))) @interface BridgeClientKotlinCharIterator : BridgeClientBase - (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer)); + (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead"))); -- (id)next_ __attribute__((swift_name("next_()"))); +- (id)next __attribute__((swift_name("next()"))); - (unichar)nextChar __attribute__((swift_name("nextChar()"))); @end; @@ -2985,6 +3955,7 @@ __attribute__((swift_name("KotlinKVariance"))) @property (class, readonly) BridgeClientKotlinKVariance *invariant __attribute__((swift_name("invariant"))); @property (class, readonly) BridgeClientKotlinKVariance *in __attribute__((swift_name("in"))); @property (class, readonly) BridgeClientKotlinKVariance *out __attribute__((swift_name("out"))); ++ (BridgeClientKotlinArray *)values __attribute__((swift_name("values()"))); @end; __attribute__((swift_name("Kotlinx_coroutines_coreAtomicOp"))) @@ -3054,7 +4025,7 @@ __attribute__((swift_name("Kotlinx_coroutines_coreLockFreeLinkedListNodeAddLastD - (id)updatedNextAffected:(BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNode *)affected next:(BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNode *)next __attribute__((swift_name("updatedNext(affected:next:)"))); @property (readonly) BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNode * _Nullable affectedNode __attribute__((swift_name("affectedNode"))); @property (readonly) T node __attribute__((swift_name("node"))); -@property (readonly) BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNode * _Nullable originalNext __attribute__((swift_name("originalNext"))); +@property (readonly) BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNode *originalNext __attribute__((swift_name("originalNext"))); @property (readonly) BridgeClientKotlinx_coroutines_coreLockFreeLinkedListNode *queue __attribute__((swift_name("queue"))); @end; diff --git a/SwiftPackage/Binaries/BridgeClient.xcframework/ios-x86_64-simulator/dSYMs/BridgeClient.framework.dSYM/Contents/Info.plist b/SwiftPackage/Binaries/BridgeClient.xcframework/ios-x86_64-simulator/dSYMs/BridgeClient.framework.dSYM/Contents/Info.plist new file mode 100644 index 000000000..97d80e383 --- /dev/null +++ b/SwiftPackage/Binaries/BridgeClient.xcframework/ios-x86_64-simulator/dSYMs/BridgeClient.framework.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.org.sagebionetworks.bridge.BridgeClient + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/SwiftPackage/Binaries/BridgeClient.xcframework/ios-x86_64-simulator/dSYMs/BridgeClient.framework.dSYM/Contents/Resources/DWARF/BridgeClient b/SwiftPackage/Binaries/BridgeClient.xcframework/ios-x86_64-simulator/dSYMs/BridgeClient.framework.dSYM/Contents/Resources/DWARF/BridgeClient new file mode 100644 index 000000000..469d26d5f Binary files /dev/null and b/SwiftPackage/Binaries/BridgeClient.xcframework/ios-x86_64-simulator/dSYMs/BridgeClient.framework.dSYM/Contents/Resources/DWARF/BridgeClient differ diff --git a/SwiftPackage/Sources/BridgeClientUI/BridgeClientAppManager.swift b/SwiftPackage/Sources/BridgeClientUI/BridgeClientAppManager.swift index daf4d2f8c..70cb84cf2 100644 --- a/SwiftPackage/Sources/BridgeClientUI/BridgeClientAppManager.swift +++ b/SwiftPackage/Sources/BridgeClientUI/BridgeClientAppManager.swift @@ -142,10 +142,25 @@ public final class BridgeClientAppManager : ObservableObject { } public func encryptAndUpload(_ archives: [DataArchive]) { - DispatchQueue.main.async { - self.isUploadingResults = true - // TODO: syoung 06/17/2021 Figure out what needs to happen to allow uploading files to S3. - // Note: This will have to dispatch to the main queue before accessing the Kotlin framework. + DispatchQueue.global().async { + + // Encrypt the files. + if let path = Bundle.main.path(forResource: self.platformConfig.appId, ofType: "pem"), + let pemFile = try? String(contentsOfFile: path, encoding: .utf8) { + archives.forEach { archive in + do { + try archive.encryptArchive(using: pemFile) + } catch let err { + print("Failed to encrypt archive. \(err)") + } + } + } + + DispatchQueue.main.async { + self.isUploadingResults = true + // TODO: syoung 06/17/2021 Figure out what needs to happen to allow uploading files to S3. + // Note: This will have to dispatch to the main queue before accessing the Kotlin framework. + } } } } diff --git a/SwiftPackage/Sources/BridgeClientUI/Data Archiving/DataArchive.swift b/SwiftPackage/Sources/BridgeClientUI/Data Archiving/DataArchive.swift index e1e89ae48..5682e005a 100644 --- a/SwiftPackage/Sources/BridgeClientUI/Data Archiving/DataArchive.swift +++ b/SwiftPackage/Sources/BridgeClientUI/Data Archiving/DataArchive.swift @@ -43,6 +43,8 @@ open class DataArchive : NSObject { public final internal(set) var isCompleted: Bool = false + public final private(set) var encryptedURL: URL? + public var files: [FileEntry] { archiver.files } @@ -66,8 +68,10 @@ open class DataArchive : NSObject { try archiver.addFile(data: data, filepath: filepath, createdOn: createdOn, contentType: contentType) } + @discardableResult public final func encryptArchive(using pemFile: String) throws -> URL { - try archiver.encryptArchive(using: pemFile) + self.encryptedURL = try archiver.encryptArchive(using: pemFile) + return self.encryptedURL! } #if DEBUG diff --git a/SwiftPackage/Sources/BridgeClientUI/Data Archiving/SageResearchArchiveManager.swift b/SwiftPackage/Sources/BridgeClientUI/Data Archiving/SageResearchArchiveManager.swift index 9aae783ca..587d03f4a 100644 --- a/SwiftPackage/Sources/BridgeClientUI/Data Archiving/SageResearchArchiveManager.swift +++ b/SwiftPackage/Sources/BridgeClientUI/Data Archiving/SageResearchArchiveManager.swift @@ -246,7 +246,7 @@ open class SageResearchResultArchive : AbstractResultArchive, RSDDataArchive { true } - open func archivableData(for result: RSDResult, sectionIdentifier: String?, stepPath: String?) -> RSDArchivable? { + open func archivableData(for result: ResultData, sectionIdentifier: String?, stepPath: String?) -> RSDArchivable? { result as? RSDArchivable } diff --git a/SwiftPackage/Sources/BridgeClientUI/Extensions/Date+Utils.swift b/SwiftPackage/Sources/BridgeClientUI/Extensions/Date+Utils.swift index 81ec44afd..bd4f4265e 100644 --- a/SwiftPackage/Sources/BridgeClientUI/Extensions/Date+Utils.swift +++ b/SwiftPackage/Sources/BridgeClientUI/Extensions/Date+Utils.swift @@ -32,6 +32,7 @@ // import Foundation +import BridgeClient extension Date { @@ -49,13 +50,7 @@ extension Date { public func localizeDate(hasTimeOfDay: Bool) -> String { if !hasTimeOfDay { - if self.isTomorrow { - return NSLocalizedString("tomorrow", comment: "") - } - else { - return String.localizedStringWithFormat(NSLocalizedString("on %@", comment: ""), - DateFormatter.localizedString(from: self, dateStyle: .medium, timeStyle: .none)) - } + return DateFormatter.localizedString(from: self, dateStyle: .medium, timeStyle: .none) } else if self.isToday { return String.localizedStringWithFormat(NSLocalizedString("today at %@", comment: ""), diff --git a/SwiftPackage/Sources/BridgeClientUI/ObservableObjects/TimelineSession.swift b/SwiftPackage/Sources/BridgeClientUI/ObservableObjects/TimelineSession.swift index 9113355a6..5b34e3420 100644 --- a/SwiftPackage/Sources/BridgeClientUI/ObservableObjects/TimelineSession.swift +++ b/SwiftPackage/Sources/BridgeClientUI/ObservableObjects/TimelineSession.swift @@ -74,8 +74,8 @@ public final class TimelineSession : ObservableObject, Identifiable { } public func updateState(_ now: Date = Date()) { - let availableNow = window.availableNow() - let isExpired = window.isExpired() + let availableNow = window.availableNow(now) + let isExpired = window.isExpired(now) let performInOrder = window.performInOrder var found = false var finishedOn: Date? diff --git a/SwiftPackage/Sources/BridgeClientUI/ObservableObjects/TodayTimelineViewModel.swift b/SwiftPackage/Sources/BridgeClientUI/ObservableObjects/TodayTimelineViewModel.swift index f750e3835..1d033cd39 100644 --- a/SwiftPackage/Sources/BridgeClientUI/ObservableObjects/TodayTimelineViewModel.swift +++ b/SwiftPackage/Sources/BridgeClientUI/ObservableObjects/TodayTimelineViewModel.swift @@ -54,9 +54,7 @@ open class TodayTimelineViewModel : NSObject, ObservableObject { /// task view controller delegate and the SwiftUI requirement that views and view builders are structs. /// public var selectedAssessment: AssessmentScheduleInfo? - - internal func now() -> Date { Date() } - + private var schedules: [NativeScheduledSessionWindow] = [] { didSet { let newSessions: [TimelineSession] = schedules.map { schedule in @@ -92,7 +90,12 @@ open class TodayTimelineViewModel : NSObject, ObservableObject { public override init() { super.init() NotificationCenter.default.addObserver(forName: UIApplication.willEnterForegroundNotification, object: nil, queue: .main) { _ in - self.refreshSchedules() + let now = Date() + self.sessions.forEach { $0.updateState(now) } + if !self.today.isToday { + self.today = now + self.refreshSchedules() + } } } @@ -112,13 +115,14 @@ open class TodayTimelineViewModel : NSObject, ObservableObject { self.bridgeManager = bridgeManager self.studyId = bridgeManager.studyId ?? "preview" if !bridgeManager.isPreview { - self.timelineManager = NativeTimelineManager(studyId: studyId!) { schedules in + self.timelineManager = NativeTimelineManager(studyId: studyId!, includeAllNotifications: true, alwaysIncludeNextDay: true) { timelineSlice in DispatchQueue.main.async { - self.schedules = schedules + self.today = timelineSlice.instantInDay + self.schedules = timelineSlice.scheduledSessionWindows + // TODO: syoung 06/28/2021 Set up notifications } } self.timelineManager.observeTodaySchedule() - // TODO: syoung 06/11/2021 Setup background process to trigger at start of "tomorrow" (and figure out when "tomorrow" starts) } else { self.schedules = previewSchedules @@ -252,4 +256,3 @@ extension TodayTimelineViewModel : RSDTaskViewControllerDelegate { } } } - diff --git a/bridge-client/build.gradle.kts b/bridge-client/build.gradle.kts index 637d80d0c..2593c070e 100644 --- a/bridge-client/build.gradle.kts +++ b/bridge-client/build.gradle.kts @@ -1,3 +1,4 @@ +import org.jetbrains.kotlin.gradle.plugin.mpp.Framework import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget plugins { @@ -19,24 +20,21 @@ sqldelight { } } +val iosFrameworkName = "BridgeClient" + kotlin { android { publishAllLibraryVariants() } - // Block from https://github.com/cashapp/sqldelight/issues/2044#issuecomment-721299517. - val iOSTargetName = System.getenv("SDK_NAME") ?: project.findProperty("XCODE_SDK_NAME") as? String ?: "iphonesimulator" - val iOSTarget: (String, KotlinNativeTarget.() -> Unit) -> KotlinNativeTarget = - if (iOSTargetName.startsWith("iphoneos")) - ::iosArm64 - else - ::iosX64 - iOSTarget("ios") { + + ios { binaries { framework { - baseName = "BridgeClient" + baseName = iosFrameworkName } } } + sourceSets { val commonMain by getting { dependencies { @@ -136,16 +134,46 @@ publishing { } } -val packForXcode by tasks.creating(Sync::class) { +//region XcFramework tasks +val xcFrameworkPath = "build/xcframework/$iosFrameworkName.xcframework" +val swiftPMPath = "${project.rootDir}/SwiftPackage/Binaries/$iosFrameworkName.xcframework" + +tasks.create("deleteSwiftPMFramework") { delete = setOf(swiftPMPath) } +tasks.create("deleteXcFramework") { delete = setOf(xcFrameworkPath) } + +val buildXcFramework by tasks.registering { + val isSwiftPM = (project.findProperty("SWIFT_PM") == "true") + if (isSwiftPM) { + dependsOn("deleteSwiftPMFramework") + } else { + dependsOn("deleteXcFramework") + } group = "build" - val mode = System.getenv("CONFIGURATION") ?: project.findProperty("XCODE_CONFIGURATION") as? String ?: "DEBUG" - val sdkName = System.getenv("SDK_NAME") ?: project.findProperty("XCODE_SDK_NAME") as? String ?: "iphonesimulator" - val targetName = "ios"// + if (sdkName.startsWith("iphoneos")) "Arm64" else "X64" - val framework = kotlin.targets.getByName(targetName).binaries.getFramework(mode) + val defaultMode = if (isSwiftPM) "RELEASE" else "DEBUG" + val mode = System.getenv("CONFIGURATION") ?: project.findProperty("XCODE_CONFIGURATION") as? String ?: defaultMode + val frameworks = arrayOf("iosArm64", "iosX64") + .map { kotlin.targets.getByName(it).binaries.getFramework(mode) } inputs.property("mode", mode) - dependsOn(framework.linkTask) - val targetDir = File(buildDir, "xcode-frameworks") - from({ framework.outputDirectory }) - into(targetDir) + dependsOn(frameworks.map { it.linkTask }) + doLast { buildXcFramework(frameworks, isSwiftPM) } +} + +fun buildXcFramework(frameworks: List, isSwiftPM: Boolean) { + val buildArgs: () -> List = { + val arguments = mutableListOf("-create-xcframework") + frameworks.forEach { + arguments += "-framework" + arguments += "${it.outputDirectory}/${it.baseName}.framework" + arguments += "-debug-symbols" + arguments += "${it.outputDirectory}/${it.baseName}.framework.dSYM" + } + arguments += "-output" + arguments += if (isSwiftPM) swiftPMPath else xcFrameworkPath + arguments + } + exec { + executable = "xcodebuild" + args = buildArgs() + } } -tasks.getByName("build").dependsOn(packForXcode) +//endregion diff --git a/bridge-client/src/commonMain/kotlin/org/sagebionetworks/bridge/kmm/shared/repo/ScheduleTimelineRepo.kt b/bridge-client/src/commonMain/kotlin/org/sagebionetworks/bridge/kmm/shared/repo/ScheduleTimelineRepo.kt index 829b10a8e..ba6f6f6a6 100644 --- a/bridge-client/src/commonMain/kotlin/org/sagebionetworks/bridge/kmm/shared/repo/ScheduleTimelineRepo.kt +++ b/bridge-client/src/commonMain/kotlin/org/sagebionetworks/bridge/kmm/shared/repo/ScheduleTimelineRepo.kt @@ -49,8 +49,15 @@ class ScheduleTimelineRepo(internal val adherenceRecordRepo: AdherenceRecordRepo /** * Get all the scheduled sessions for today that have not expired. */ - fun getSessionsForToday(studyId: String): Flow>> { - return getSessionsForDay(studyId, Clock.System.now()) + fun getSessionsForToday(studyId: String, + includeAllNotifications: Boolean = false, + alwaysIncludeNextDay: Boolean = true): Flow> { + return getSessionsForDay( + studyId = studyId, + instantInDay = Clock.System.now(), + includeAllNotifications, + alwaysIncludeNextDay, + ) } /** @@ -58,20 +65,24 @@ class ScheduleTimelineRepo(internal val adherenceRecordRepo: AdherenceRecordRepo */ internal fun getSessionsForDay( studyId: String, - instantInDay: Instant - ): Flow>> { + instantInDay: Instant, + includeAllNotifications: Boolean = false, + alwaysIncludeNextDay: Boolean = false, + ): Flow> { return combine( getTimeline(studyId), activityEventsRepo.getActivityEvents(studyId), //Need to include call to get AdherenceRecords as part of the combine. //This will trigger the flow to emit a new value anytime the AdherenceRecords change. adherenceRecordRepo.getAllCachedAdherenceRecords(studyId) - ) { timeLineResource, eventsResource, adherenceRecords -> + ) { timeLineResource, eventsResource, _ -> extractSessionsForDay( timeLineResource, eventsResource, studyId, - instantInDay + instantInDay, + includeAllNotifications, + alwaysIncludeNextDay, ) } } @@ -80,11 +91,20 @@ class ScheduleTimelineRepo(internal val adherenceRecordRepo: AdherenceRecordRepo timelineResult: ResourceResult, eventsResult: ResourceResult, studyId: String, - instantInDay: Instant - ): ResourceResult> { + instantInDay: Instant, + includeAllNotifications: Boolean, + alwaysIncludeNextDay: Boolean, + ): ResourceResult { return when (eventsResult) { is ResourceResult.Success -> { - return extractSessions(eventsResult.data, timelineResult, instantInDay, studyId) + return extractSessions( + eventsResult.data, + timelineResult, + instantInDay, + studyId, + includeAllNotifications, + alwaysIncludeNextDay, + ) } is ResourceResult.InProgress -> eventsResult is ResourceResult.Failed -> eventsResult @@ -95,8 +115,10 @@ class ScheduleTimelineRepo(internal val adherenceRecordRepo: AdherenceRecordRepo eventList: StudyActivityEventList, resource: ResourceResult, instantInDay: Instant, - studyId: String - ): ResourceResult> { + studyId: String, + includeAllNotifications: Boolean, + alwaysIncludeNextDay: Boolean, + ): ResourceResult { return when (resource) { is ResourceResult.Success -> { val timeline = resource.data @@ -105,7 +127,9 @@ class ScheduleTimelineRepo(internal val adherenceRecordRepo: AdherenceRecordRepo eventList, timeline, instantInDay, - studyId + studyId, + includeAllNotifications, + alwaysIncludeNextDay, ), resource.status ) } @@ -125,37 +149,61 @@ class ScheduleTimelineRepo(internal val adherenceRecordRepo: AdherenceRecordRepo timeline: Timeline, instantInDay: Instant, studyId: String, - includeExpired: Boolean = false, + includeAllNotifications: Boolean, + alwaysIncludeNextDay: Boolean, timezone: TimeZone = TimeZone.currentSystemDefault(), - ): List { - val todaySessions = extractSessionWindows( + ): ScheduledSessionTimelineSlice { + + // Extract for today + val windows = extractSessionWindows( eventList, timeline, instantInDay, studyId, - WindowFilterType.Today, - includeExpired, + if (includeAllNotifications) WindowFilterType.TodayAndNotifications else WindowFilterType.Today, + alwaysIncludeNextDay, timezone - ) - if (!todaySessions.all { it.isCompleted || it.isExpired }) { - return todaySessions + ).sortedBy { it.startDateTime } + + // Build the timeline slice + var upNext: LocalDate? = null + val today = instantInDay.toLocalDateTime(timezone) + val schedules = mutableListOf() + val notifications = mutableListOf() + + run loop@ { + windows.forEach { window -> + + when { + // Include in available now if already started. + (window.startDateTime <= today) || + (alwaysIncludeNextDay && window.startDateTime.date == today.date) -> { + schedules.add(window) + } + + // else include in up next if this is for the next window of time + // (either later today or next day with a schedule). + upNext == null || upNext == window.startDateTime.date -> { + upNext = window.startDateTime.date + schedules.add(window) + } + + // If we aren't adding notifications then we have found everything + // we need so exit the loop. + else -> if (!includeAllNotifications) return@loop + } + // Add the notifications + notifications.addAll(window.notifications ?: emptyList()) + } } - val futureWindows = extractSessionWindows( - eventList, - timeline, - instantInDay, - studyId, - WindowFilterType.Future, - includeExpired, - timezone - ) - val first = futureWindows.firstOrNull() ?: return todaySessions - val nextWindows = futureWindows.filter { it.startDateTime.date == first.startDateTime.date } - return todaySessions.plus(nextWindows) - } + notifications.sortBy { it.scheduleOn } - private enum class WindowFilterType { - Future, Past, Today, Notifications + return ScheduledSessionTimelineSlice( + instantInDay = instantInDay, + timezone = timezone, + scheduledSessionWindows = schedules, + notifications = notifications + ) } @OptIn(ExperimentalTime::class) @@ -165,50 +213,63 @@ class ScheduleTimelineRepo(internal val adherenceRecordRepo: AdherenceRecordRepo instantInDay: Instant, studyId: String, filterType: WindowFilterType, - includeExpired: Boolean, + alwaysIncludeNextDay: Boolean, timezone: TimeZone, ): List { - // Map of eventID to SessionInfo - val sessionInfoMap = timeline.sessions?.groupBy { it.startEventId } ?: return emptyList() - // Map of key to AssessmentInfo - val assessmentInfoMap = - timeline.assessments?.associateBy({ it.key }, { it }) ?: return emptyList() - // Map of Session Guid to ScheduledSessionList + // Set up maps so that we are iterating through each set only once before switching + // to using a hashmap. + val assessmentInfoMap = timeline.assessments?.associateBy({ it.key }, { it }) ?: return emptyList() val scheduleSessionMap = timeline.schedule?.groupBy { it.refGuid } ?: return emptyList() + val eventMap = eventList.items?.associateBy( { it.eventId}, {it }) ?: return emptyList() + val sessions = timeline.sessions ?: emptyList() + // Get date portion of instantInDay val day: LocalDate = instantInDay.toLocalDateTime(timezone).date - val events = eventList.items ?: return emptyList() - return events.map { event -> - // Convert the event timestamp to a LocalDate - val eventLocalDate = event.timestamp.toLocalDateTime(timezone).date - // Get number of days since the event date - val daysSince = eventLocalDate.daysUntil(day) - - val sessions = sessionInfoMap[event.eventId] ?: emptyList() - sessions.map { session -> - //Find the list of scheduled sessions for the given session - val scheduledSessionList = scheduleSessionMap[session.guid] ?: emptyList() + val foundState = FoundWindowState() + return sessions.mapNotNull { session -> + val event = eventMap[session.startEventId] + val scheduledSessionList = scheduleSessionMap[session.guid] + if (event == null || scheduledSessionList == null) { + null + } else { + // Convert the event timestamp to a LocalDate + val eventLocalDate = event.timestamp.toLocalDateTime(timezone).date + // Get number of days since the event date + val daysSince = eventLocalDate.daysUntil(day) + //Map the schedules to windows scheduledSessionList.mapNotNull { scheduledSession -> createScheduledSessionWindow( scheduledSession, filterType, - daysSince, + alwaysIncludeNextDay, day, instantInDay, + daysSince, studyId, assessmentInfoMap, session, event, - includeExpired, - timezone + timezone, + foundState ) } - }.flatten() + } }.flatten() - .sortedBy { it.startDateTime } + } + + // Work-around for Kotlin not having inout variables. syoung 06/25/2021 + private class FoundWindowState(var foundToday: Boolean = false, var nextDay: LocalDate? = null) + + internal enum class WindowFilterType { + Future, Past, Today, Notifications, TodayAndNotifications; + + fun isToday() = listOf(Today, TodayAndNotifications).contains(this) + fun includeCompleted() = listOf(Today, TodayAndNotifications, Past).contains(this) + fun isNotifications() = listOf(Notifications, TodayAndNotifications).contains(this) + fun includeExpired() = listOf(Past).contains(this) } /** @@ -216,38 +277,45 @@ class ScheduleTimelineRepo(internal val adherenceRecordRepo: AdherenceRecordRepo * allow for using explicit returns in the `mapNotNull` method. I find mapping * functions in Kotlin with early exits difficult to grok. syoung 06/24/2021 */ + @ExperimentalTime private fun createScheduledSessionWindow( scheduledSession: ScheduledSession, filterType: WindowFilterType, - daysSince: Int, + alwaysIncludeNextDay: Boolean, day: LocalDate, instantInDay: Instant, + daysSince: Int, studyId: String, assessmentInfoMap: Map, session: SessionInfo, event: StudyActivityEvent, - includeExpired: Boolean, timezone: TimeZone, + foundState: FoundWindowState, ): ScheduledSessionWindow? { + fun rulesForNotifications() = + scheduledSession.startDay >= daysSince && !session.notifications.isNullOrEmpty() + fun rulesForAvailableToday() = + (daysSince in scheduledSession.startDay..scheduledSession.endDay) + fun rulesForToday(startDate: LocalDate? = null) = when { + foundState.foundToday && !alwaysIncludeNextDay -> rulesForAvailableToday() + startDate != null && foundState.nextDay != null -> startDate <= foundState.nextDay!! + else -> scheduledSession.endDay >= daysSince + } // Exit early if this schedule is not in the range that we are looking for if (!when (filterType) { - WindowFilterType.Notifications -> scheduledSession.startDay >= daysSince + WindowFilterType.Notifications -> rulesForNotifications() WindowFilterType.Future -> scheduledSession.startDay > daysSince - WindowFilterType.Today -> daysSince in scheduledSession.startDay..scheduledSession.endDay WindowFilterType.Past -> scheduledSession.startDay <= daysSince - }) return null - - // Exit early if all the assessments are completed and this filtering does - // not include them. - val assessments = mapAssessments(scheduledSession, studyId, assessmentInfoMap) - val isCompleted = assessments.all { it.isCompleted || it.isDeclined } - val includeCompleted = (filterType == WindowFilterType.Today || filterType == WindowFilterType.Past) - if (!includeCompleted && isCompleted) return null + WindowFilterType.Today -> rulesForToday() + WindowFilterType.TodayAndNotifications -> rulesForToday() || rulesForNotifications() + }) { + return null + } //Used for sorting when sessions span multiple days - val startDaysFromToday = scheduledSession.startDay - daysSince - val startDate = day.plus(startDaysFromToday.toLong(), DateTimeUnit.DateBased.DayBased(1)) + val startDaysFromDay = scheduledSession.startDay - daysSince + val startDate = day.plus(startDaysFromDay.toLong(), DateTimeUnit.DateBased.DayBased(1)) // LocalTime support is hopefully coming: https://github.com/Kotlin/kotlinx-datetime/issues/57#issuecomment-800287971 // Construct a startDateTime from today and startTime @@ -261,18 +329,50 @@ class ScheduleTimelineRepo(internal val adherenceRecordRepo: AdherenceRecordRepo val endDateTime = expirationInstant.toLocalDateTime(timezone) val isExpired = (expirationInstant < instantInDay) - // Expiration is in the past so don't include it - return if (includeExpired || !isExpired) - ScheduledSessionWindow( - scheduledSession = scheduledSession, - sessionInfo = session, - assessments = assessments, - event = event, - isExpired = isExpired, - isCompleted = isCompleted, - startDateTime = startDateTime, - endDateTime = endDateTime - ) else null + // Exit early if all the assessments are completed and this filtering does + // not include them. + val assessments = mapAssessments(scheduledSession, studyId, assessmentInfoMap) + val isCompleted = assessments.all { it.isCompleted || it.isDeclined } + if (!filterType.includeCompleted() && isCompleted) { + return null + } + + // Exit early if expired and not completed. + if (!filterType.includeExpired() && isExpired && !isCompleted) { + return null + } + + // If we are filtering for today schedules and one was found that is available today + // but *not* available NOW then track that. + if (rulesForAvailableToday() && startInstant > instantInDay) { + foundState.foundToday = true + } else if (alwaysIncludeNextDay && startDate > day && + (foundState.nextDay == null || foundState.nextDay!! > startDate)) { + foundState.nextDay = startDate + } + + // Convert notifications + val notifications = session.notifications?.mapNotNull { + it.scheduleAt(scheduledSession.instanceGuid, instantInDay, startDateTime, endDateTime) + } + // Exit early if this is only getting future notifications and there aren't any. + if (notifications.isNullOrEmpty() && + filterType.isNotifications() && + (!filterType.isToday() || !rulesForToday(startDate))) { + return null + } + + return ScheduledSessionWindow( + scheduledSession = scheduledSession, + sessionInfo = session, + assessments = assessments, + event = event, + isExpired = isExpired, + isCompleted = isCompleted, + startDateTime = startDateTime, + endDateTime = endDateTime, + notifications = if (notifications.isNullOrEmpty()) null else notifications + ) } private fun mapAssessments( @@ -297,6 +397,53 @@ class ScheduleTimelineRepo(internal val adherenceRecordRepo: AdherenceRecordRepo } } +@ExperimentalTime +internal fun NotificationInfo.scheduleAt(instanceGuid: String, + instantInDay: Instant, + startDateTime: LocalDateTime, + endDateTime: LocalDateTime, +): ScheduledNotification? { + + // Get the first notification trigger + val timeZone = TimeZone.currentSystemDefault() + val period = this.offset?.let { DateTimePeriod.parse(it) } ?: DateTimePeriod() + var firstInstant = if (notifyAt == NotificationType.AFTER_WINDOW_START) { + startDateTime.toInstant(timeZone).plus(period, timeZone) + } else { + endDateTime.toInstant(timeZone).minus(period, timeZone) + } + + // If there is an interval, move the firstInstant forward to after the current time + val intervalPeriod = this.interval?.let { DateTimePeriod.parse(it) } + if (intervalPeriod != null && intervalPeriod.days > 0) { + val endInstant = endDateTime.toInstant(timeZone) + while(firstInstant < instantInDay && firstInstant < endInstant) { + firstInstant = firstInstant.plus(intervalPeriod, timeZone) + } + } + + // Return null if the first instant isn't in the future + return if (firstInstant < instantInDay) null + else ScheduledNotification( + instanceGuid, + firstInstant.toLocalDateTime(timeZone), + intervalPeriod, + allowSnooze ?: false, + message + ) +} + +/** + * A parsed instance of the schedule calculated at a given instant in time and split into + * which schedules are available now, up next, or require scheduling a notification. + */ +data class ScheduledSessionTimelineSlice ( + val instantInDay: Instant, + val timezone: TimeZone, + val scheduledSessionWindows: List, + val notifications: List, +) + data class ScheduledSessionWindow ( val scheduledSession: ScheduledSession, val event: StudyActivityEvent, @@ -305,7 +452,8 @@ data class ScheduledSessionWindow ( val isExpired: Boolean, val isCompleted: Boolean, val assessments: List, - val sessionInfo: SessionInfo + val sessionInfo: SessionInfo, + val notifications: List?, ) { val instanceGuid = scheduledSession.instanceGuid val eventTimeStamp = event.timestamp @@ -321,4 +469,12 @@ data class ScheduledAssessmentReference ( ) { val isCompleted = adherenceRecordList?.any { it.finishedOn != null } ?: false val isDeclined = !isCompleted && adherenceRecordList?.any { it.declined == true } ?: false -} \ No newline at end of file +} + +data class ScheduledNotification( + val instanceGuid: String, + val scheduleOn: LocalDateTime, + val repeatInterval: DateTimePeriod?, + val allowSnooze: Boolean, + val message: NotificationMessage?, +) \ No newline at end of file diff --git a/bridge-client/src/commonTest/kotlin/org/sagebionetworks/bridge/kmm/shared/repo/ScheduleTimelineRepoTest.kt b/bridge-client/src/commonTest/kotlin/org/sagebionetworks/bridge/kmm/shared/repo/ScheduleTimelineRepoTest.kt index 1f29d9ba2..92f36ed42 100644 --- a/bridge-client/src/commonTest/kotlin/org/sagebionetworks/bridge/kmm/shared/repo/ScheduleTimelineRepoTest.kt +++ b/bridge-client/src/commonTest/kotlin/org/sagebionetworks/bridge/kmm/shared/repo/ScheduleTimelineRepoTest.kt @@ -63,7 +63,21 @@ class ScheduleTimelineRepoTest: BaseTest() { "timeWindowGuids": [ "pFWgzjk-7wOa3GSDbvpy-JDc" ], - "notifications": [], + "notifications": [ + { + "notifyAt": "after_window_start", + "allowSnooze": true, + "offset": "PT8H", + "interval": "P1D", + "message": { + "lang": "en", + "subject": "Reminder One time 3 day session", + "message": "Reminder Text", + "type": "NotificationMessage" + }, + "type": "NotificationInfo" + } + ], "type": "SessionInfo" }, { @@ -354,16 +368,9 @@ class ScheduleTimelineRepoTest: BaseTest() { " \"finishedOn\":\"2021-05-12T23:44:54.319Z\",\n" + " \"eventTimestamp\":\"2021-05-12T23:44:51.872Z\",\n" + " \"type\":\"AdherenceRecord\"\n" + - " },\n" + - " {\n" + - " \"instanceGuid\":\"GYMXqSOe1JFKifK2XWx2Gg\",\n" + - " \"startedOn\":\"2021-05-12T23:44:54.319Z\",\n" + - " \"finishedOn\":\"2021-05-12T23:44:54.319Z\",\n" + - " \"eventTimestamp\":\"2021-05-12T23:44:51.872Z\",\n" + - " \"type\":\"AdherenceRecord\"\n" + " }\n" + " ],\n" + - " \"total\":3,\n" + + " \"total\":2,\n" + " \"type\":\"PagedResourceList\"\n" + "}" @@ -395,13 +402,16 @@ class ScheduleTimelineRepoTest: BaseTest() { val resourceResult = repo.getSessionsForDay("sage-assessment-test", getTodayInstant()).firstOrNull { it is ResourceResult.Success } assertTrue(resourceResult is ResourceResult.Success) - val sessionList = resourceResult.data + val sessionList = resourceResult.data.scheduledSessionWindows assertNotNull(sessionList) assertEquals(3, sessionList.size) //First session should be the 3 day session that started yesterday val session1 = sessionList[0] assertEquals("One time 3 day session", session1.sessionInfo.label) + val notification1 = session1.notifications?.firstOrNull() + assertNotNull(notification1) + //assertEquals(notification1.scheduleOn) //Second session should have started in current hour val session2 = sessionList[1] @@ -413,7 +423,184 @@ class ScheduleTimelineRepoTest: BaseTest() { assertEquals("Daily Sessions", session3.sessionInfo.label) assertEquals("-B_yTKp8eTGK7NY_qJ0UTA", session3.instanceGuid) } + } + + @Test + fun testScheduledSessionsDay1TodayAndNotifications() { + runTest { + val eventTimeStamp = Clock.System.now().minus(DateTimeUnit.DAY, TimeZone.currentSystemDefault()) + val repo = getTestScheduleTimelineRepo(timeStamp = eventTimeStamp) + + val resourceResult = repo.getSessionsForDay( + "sage-assessment-test", + getTodayInstant(), + true + ).firstOrNull { it is ResourceResult.Success } + + assertTrue(resourceResult is ResourceResult.Success) + val sessionList = resourceResult.data.scheduledSessionWindows + assertNotNull(sessionList) + assertEquals(3, sessionList.size) + + //First session should be the 3 day session that started yesterday + val session1 = sessionList[0] + assertEquals("One time 3 day session", session1.sessionInfo.label) + + //Second session should have started in current hour + val session2 = sessionList[1] + assertEquals("Daily Sessions", session2.sessionInfo.label) + assertEquals("XlZ3SrLpmEQ2E8PuUUcs7g", session2.instanceGuid) + //Third session will be starting next hour + val session3 = sessionList[2] + assertEquals("Daily Sessions", session3.sessionInfo.label) + assertEquals("-B_yTKp8eTGK7NY_qJ0UTA", session3.instanceGuid) + + val notifications = resourceResult.data.notifications + assertNotNull(notifications) + assertEquals(9, notifications.size) + } + } + + @Test + fun testScheduledSessionsDay1TodayAndTomorrow() { + runTest { + val eventTimeStamp = Clock.System.now().minus(DateTimeUnit.DAY, TimeZone.currentSystemDefault()) + val repo = getTestScheduleTimelineRepo(timeStamp = eventTimeStamp) + + val resourceResult = repo.getSessionsForDay( + "sage-assessment-test", + getTodayInstant(), + includeAllNotifications = true, + alwaysIncludeNextDay = true + ).firstOrNull { it is ResourceResult.Success } + + assertTrue(resourceResult is ResourceResult.Success) + val sessionList = resourceResult.data.scheduledSessionWindows + assertNotNull(sessionList) + assertEquals(6, sessionList.size) + + //First session should be the 3 day session that started yesterday + val session1 = sessionList[0] + assertEquals("One time 3 day session", session1.sessionInfo.label) + + //Second session should have started in current hour + val session2 = sessionList[1] + assertEquals("Daily Sessions", session2.sessionInfo.label) + assertEquals("XlZ3SrLpmEQ2E8PuUUcs7g", session2.instanceGuid) + + //Third session will be starting next hour + val session3 = sessionList[2] + assertEquals("Daily Sessions", session3.sessionInfo.label) + assertEquals("-B_yTKp8eTGK7NY_qJ0UTA", session3.instanceGuid) + + // Next day is shown b/c it was explicitly asked to be included + + val session4 = sessionList[3] + assertEquals("Daily Sessions", session4.sessionInfo.label) + assertEquals("6YyBNuEPir0Vkd3a-crQbA", session4.instanceGuid) + + val session5 = sessionList[4] + assertEquals("Daily Sessions", session5.sessionInfo.label) + assertEquals("CDWlxjraDB_yn_jUl0YagA", session5.instanceGuid) + + val session6 = sessionList[5] + assertEquals("Daily Sessions", session6.sessionInfo.label) + assertEquals("wSFtq35JbCog5s4TXXMNRw", session6.instanceGuid) + + val notifications = resourceResult.data.notifications + assertNotNull(notifications) + assertEquals(9, notifications.size) + } + } + + @Test + fun testScheduledSessionsDay1TodayAndTomorrow_NoNotifications() { + runTest { + val eventTimeStamp = Clock.System.now().minus(DateTimeUnit.DAY, TimeZone.currentSystemDefault()) + val repo = getTestScheduleTimelineRepo(timeStamp = eventTimeStamp) + + val resourceResult = repo.getSessionsForDay( + "sage-assessment-test", + getTodayInstant(), + includeAllNotifications = false, + alwaysIncludeNextDay = true + ).firstOrNull { it is ResourceResult.Success } + + assertTrue(resourceResult is ResourceResult.Success) + val sessionList = resourceResult.data.scheduledSessionWindows + assertNotNull(sessionList) + assertEquals(6, sessionList.size) + + //First session should be the 3 day session that started yesterday + val session1 = sessionList[0] + assertEquals("One time 3 day session", session1.sessionInfo.label) + + //Second session should have started in current hour + val session2 = sessionList[1] + assertEquals("Daily Sessions", session2.sessionInfo.label) + assertEquals("XlZ3SrLpmEQ2E8PuUUcs7g", session2.instanceGuid) + + //Third session will be starting next hour + val session3 = sessionList[2] + assertEquals("Daily Sessions", session3.sessionInfo.label) + assertEquals("-B_yTKp8eTGK7NY_qJ0UTA", session3.instanceGuid) + + // Next day is shown b/c it was explicitly asked to be included + + val session4 = sessionList[3] + assertEquals("Daily Sessions", session4.sessionInfo.label) + assertEquals("6YyBNuEPir0Vkd3a-crQbA", session4.instanceGuid) + + val session5 = sessionList[4] + assertEquals("Daily Sessions", session5.sessionInfo.label) + assertEquals("CDWlxjraDB_yn_jUl0YagA", session5.instanceGuid) + + val session6 = sessionList[5] + assertEquals("Daily Sessions", session6.sessionInfo.label) + assertEquals("wSFtq35JbCog5s4TXXMNRw", session6.instanceGuid) + } + } + + @Test + fun testScheduledSessionsDay1NoUpNextOnToday() { + runTest { + val eventTimeStamp = Clock.System.now().minus(DateTimeUnit.DAY, TimeZone.currentSystemDefault()) + val repo = getTestScheduleTimelineRepo(timeStamp = eventTimeStamp) + + val todayInstant = getTodayInstant().plus(90, DateTimeUnit.MINUTE, TimeZone.currentSystemDefault()) + val resourceResult = repo.getSessionsForDay("sage-assessment-test", todayInstant).firstOrNull { it is ResourceResult.Success } + + assertTrue(resourceResult is ResourceResult.Success) + val sessionList = resourceResult.data.scheduledSessionWindows + assertNotNull(sessionList) + assertEquals(5, sessionList.size) + + //First session should be the 3 day session that started yesterday + val session1 = sessionList[0] + assertEquals("One time 3 day session", session1.sessionInfo.label) + assertFalse(session1.isCompleted) + + //Second session should have started today + val session2 = sessionList[1] + assertEquals("Daily Sessions", session2.sessionInfo.label) + assertEquals("-B_yTKp8eTGK7NY_qJ0UTA", session2.instanceGuid) + assertFalse(session2.isCompleted) + + // Next day is shown b/c the current day is finished or available + + val session3 = sessionList[2] + assertEquals("Daily Sessions", session3.sessionInfo.label) + assertEquals("6YyBNuEPir0Vkd3a-crQbA", session3.instanceGuid) + + val session4 = sessionList[3] + assertEquals("Daily Sessions", session4.sessionInfo.label) + assertEquals("CDWlxjraDB_yn_jUl0YagA", session4.instanceGuid) + + val session5 = sessionList[4] + assertEquals("Daily Sessions", session5.sessionInfo.label) + assertEquals("wSFtq35JbCog5s4TXXMNRw", session5.instanceGuid) + } } @Test @@ -423,9 +610,11 @@ class ScheduleTimelineRepoTest: BaseTest() { val eventTimeStamp = Clock.System.now().minus(2, DateTimeUnit.DAY, TimeZone.currentSystemDefault()) val repo = getTestScheduleTimelineRepo(adherenceRecordDay2json, timeStamp = eventTimeStamp) repo.adherenceRecordRepo.loadRemoteAdherenceRecords(studyId) - val resourceResult = repo.getSessionsForDay(studyId, getTodayInstant()).firstOrNull { it is ResourceResult.Success } + + val todayInstant = getTodayInstant().plus(90, DateTimeUnit.MINUTE, TimeZone.currentSystemDefault()) + val resourceResult = repo.getSessionsForDay(studyId, todayInstant).firstOrNull { it is ResourceResult.Success } assertTrue(resourceResult is ResourceResult.Success) - val sessionList = resourceResult.data + val sessionList = resourceResult.data.scheduledSessionWindows assertNotNull(sessionList) assertEquals(6, sessionList.size) @@ -434,19 +623,19 @@ class ScheduleTimelineRepoTest: BaseTest() { assertEquals("One time 3 day session", session1.sessionInfo.label) assertTrue(session1.isCompleted) - //Second session should have started in current hour and be completed + //Second session should have started today val session2 = sessionList[1] assertEquals("Daily Sessions", session2.sessionInfo.label) assertEquals("CDWlxjraDB_yn_jUl0YagA", session2.instanceGuid) assertTrue(session2.isCompleted) - //Third session will be starting next hour + //Third session should have started today val session3 = sessionList[2] assertEquals("Daily Sessions", session3.sessionInfo.label) assertEquals("wSFtq35JbCog5s4TXXMNRw", session3.instanceGuid) - assertTrue(session3.isCompleted) + assertFalse(session3.isCompleted) - // Next day is shown b/c the current day is finished. + // Next day is shown b/c the current day is finished or available //Fourth session will start tomorrow val session4 = sessionList[3] @@ -473,7 +662,7 @@ class ScheduleTimelineRepoTest: BaseTest() { val resourceResult = repo.getSessionsForDay("sage-assessment-test", getTodayInstant()).firstOrNull { it is ResourceResult.Success } assertTrue(resourceResult is ResourceResult.Success) - val sessionList = resourceResult.data + val sessionList = resourceResult.data.scheduledSessionWindows assertNotNull(sessionList) assertEquals(2, sessionList.size) @@ -500,7 +689,7 @@ class ScheduleTimelineRepoTest: BaseTest() { repo.adherenceRecordRepo.loadRemoteAdherenceRecords(studyId) val resourceResult = repo.getSessionsForDay(studyId, getTodayInstant()).firstOrNull { it is ResourceResult.Success } assertTrue(resourceResult is ResourceResult.Success) - val sessionList = resourceResult.data + val sessionList = resourceResult.data.scheduledSessionWindows assertNotNull(sessionList) assertEquals(2, sessionList.size) @@ -526,7 +715,7 @@ class ScheduleTimelineRepoTest: BaseTest() { val resourceResult = repo.getSessionsForDay("sage-assessment-test", getTodayInstant()).firstOrNull { it is ResourceResult.Success } assertTrue(resourceResult is ResourceResult.Success) - val sessionList = resourceResult.data + val sessionList = resourceResult.data.scheduledSessionWindows assertNotNull(sessionList) assertTrue(sessionList.isEmpty()) } diff --git a/bridge-client/src/iosMain/kotlin/org/sagebionetworks/bridge/kmm/shared/NativeTimelineManager.kt b/bridge-client/src/iosMain/kotlin/org/sagebionetworks/bridge/kmm/shared/NativeTimelineManager.kt index b56fa35e6..6af327a0d 100644 --- a/bridge-client/src/iosMain/kotlin/org/sagebionetworks/bridge/kmm/shared/NativeTimelineManager.kt +++ b/bridge-client/src/iosMain/kotlin/org/sagebionetworks/bridge/kmm/shared/NativeTimelineManager.kt @@ -11,13 +11,16 @@ import org.koin.core.component.inject import org.sagebionetworks.bridge.kmm.shared.cache.* import org.sagebionetworks.bridge.kmm.shared.models.AdherenceRecord import org.sagebionetworks.bridge.kmm.shared.models.AssessmentInfo +import org.sagebionetworks.bridge.kmm.shared.models.NotificationMessage import org.sagebionetworks.bridge.kmm.shared.models.SessionInfo import org.sagebionetworks.bridge.kmm.shared.repo.* import platform.Foundation.* class NativeTimelineManager( - val studyId: String, - private val viewUpdate: (List) -> Unit + private val studyId: String, + private val includeAllNotifications: Boolean, + private val alwaysIncludeNextDay: Boolean, + private val viewUpdate: (NativeScheduledSessionTimelineSlice) -> Unit ) : KoinComponent { private val repo : ScheduleTimelineRepo by inject(mode = LazyThreadSafetyMode.NONE) @@ -27,9 +30,9 @@ class NativeTimelineManager( fun observeTodaySchedule() { scope.launch { - repo.getSessionsForToday(studyId).collect { timelineResource -> - (timelineResource as? ResourceResult.Success)?.data?.let { list -> - viewUpdate( list.map { it.toNative() } ) + repo.getSessionsForToday(studyId, includeAllNotifications, alwaysIncludeNextDay).collect { timelineResource -> + (timelineResource as? ResourceResult.Success)?.data?.let { timelineSlice -> + viewUpdate(timelineSlice.toNaive()) } } } @@ -58,7 +61,15 @@ class NativeTimelineManager( } } -internal fun ScheduledSessionWindow.toNative() : NativeScheduledSessionWindow = +internal fun ScheduledSessionTimelineSlice.toNaive() = + NativeScheduledSessionTimelineSlice( + instantInDay = instantInDay.toNSDate(), + timezone = timezone.toNSTimeZone(), + scheduledSessionWindows = scheduledSessionWindows.map { it.toNative() }, + notifications = notifications.map { it.toNative() } + ) + +internal fun ScheduledSessionWindow.toNative() = NativeScheduledSessionWindow( instanceGuid = instanceGuid, eventTimestamp = eventTimeStamp.toString(), @@ -71,7 +82,7 @@ internal fun ScheduledSessionWindow.toNative() : NativeScheduledSessionWindow = sessionInfo = sessionInfo, ) -internal fun ScheduledAssessmentReference.toNative() : NativeScheduledAssessment = +internal fun ScheduledAssessmentReference.toNative() = NativeScheduledAssessment( instanceGuid = instanceGuid, assessmentInfo = assessmentInfo, @@ -80,7 +91,7 @@ internal fun ScheduledAssessmentReference.toNative() : NativeScheduledAssessment adherenceRecords = this.adherenceRecordList?.map { it.toNative() }, ) -internal fun AdherenceRecord.toNative() : NativeAdherenceRecord = +internal fun AdherenceRecord.toNative() = NativeAdherenceRecord( instanceGuid = instanceGuid, eventTimestamp = eventTimestamp, @@ -90,6 +101,28 @@ internal fun AdherenceRecord.toNative() : NativeAdherenceRecord = clientData = clientData, ) +internal fun ScheduledNotification.toNative() = + NativeScheduledNotification( + instanceGuid = instanceGuid, + scheduleOn = scheduleOn.toNSDateComponents(), + repeatInterval = repeatInterval?.let { period -> + val components = NSDateComponents() + components.hour = period.hours.toLong() + components.minute = period.minutes.toLong() + components.day = period.days.toLong() + components.month = period.months.toLong() + components }, + allowSnooze = allowSnooze, + message = message, + ) + +data class NativeScheduledSessionTimelineSlice ( + val instantInDay: NSDate, + val timezone: NSTimeZone, + val scheduledSessionWindows: List, + val notifications: List, +) + data class NativeScheduledSessionWindow( val instanceGuid: String, val eventTimestamp: String, @@ -99,7 +132,7 @@ data class NativeScheduledSessionWindow( val hasStartTimeOfDay: Boolean, val hasEndTimeOfDay: Boolean, val assessments: List, - val sessionInfo: SessionInfo + val sessionInfo: SessionInfo, ) data class NativeScheduledAssessment( @@ -119,3 +152,11 @@ data class NativeAdherenceRecord( val clientData: JsonElement?, ) +data class NativeScheduledNotification( + val instanceGuid: String, + val scheduleOn: NSDateComponents, + val repeatInterval: NSDateComponents?, + val allowSnooze: Boolean, + val message: NotificationMessage?, +) + diff --git a/iosApp/iosApp.xcodeproj/project.pbxproj b/iosApp/iosApp.xcodeproj/project.pbxproj index d285a6705..fd475eb37 100644 --- a/iosApp/iosApp.xcodeproj/project.pbxproj +++ b/iosApp/iosApp.xcodeproj/project.pbxproj @@ -15,13 +15,23 @@ 7555FF8B242A565B00829871 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7555FF89242A565B00829871 /* LaunchScreen.storyboard */; }; 7555FF96242A565B00829871 /* iosAppTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7555FF95242A565B00829871 /* iosAppTests.swift */; }; 7555FFA1242A565B00829871 /* iosAppUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7555FFA0242A565B00829871 /* iosAppUITests.swift */; }; + FF12D01E2695011200520C4D /* BridgeClient.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = FF12D01D2695011200520C4D /* BridgeClient.xcframework */; }; + FF12D01F2695011200520C4D /* BridgeClient.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = FF12D01D2695011200520C4D /* BridgeClient.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; + FF12D0302695019800520C4D /* TimelineAssessment.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF12D0222695019800520C4D /* TimelineAssessment.swift */; }; + FF12D0312695019800520C4D /* TimelineSession.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF12D0232695019800520C4D /* TimelineSession.swift */; }; + FF12D0322695019800520C4D /* TodayTimelineViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF12D0242695019800520C4D /* TodayTimelineViewModel.swift */; }; + FF12D0332695019800520C4D /* AssessmentScheduleInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF12D0262695019800520C4D /* AssessmentScheduleInfo.swift */; }; + FF12D0342695019800520C4D /* NativeScheduledSessionWindow+View.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF12D0282695019800520C4D /* NativeScheduledSessionWindow+View.swift */; }; + FF12D0352695019800520C4D /* JsonSerializable+Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF12D0292695019800520C4D /* JsonSerializable+Utils.swift */; }; + FF12D0362695019800520C4D /* AppConfig+Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF12D02A2695019800520C4D /* AppConfig+Utils.swift */; }; + FF12D0372695019800520C4D /* Date+Utils.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF12D02B2695019800520C4D /* Date+Utils.swift */; }; + FF12D0382695019800520C4D /* SageResearchArchiveManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF12D02D2695019800520C4D /* SageResearchArchiveManager.swift */; }; + FF12D0392695019800520C4D /* AbstractResultArchive.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF12D02E2695019800520C4D /* AbstractResultArchive.swift */; }; + FF12D03A2695019800520C4D /* DataArchive.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF12D02F2695019800520C4D /* DataArchive.swift */; }; FF5657BF266F12C7008671B5 /* PlatformConfigImpl.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF5657BB266F12C7008671B5 /* PlatformConfigImpl.swift */; }; FF8D1F7E26276F3100C44DE9 /* Research in Frameworks */ = {isa = PBXBuildFile; productRef = FF8D1F7D26276F3100C44DE9 /* Research */; }; FF8D1F8026276F3100C44DE9 /* ResearchUI in Frameworks */ = {isa = PBXBuildFile; productRef = FF8D1F7F26276F3100C44DE9 /* ResearchUI */; }; FF8D1F8526276F5700C44DE9 /* BridgeArchiver in Frameworks */ = {isa = PBXBuildFile; productRef = FF8D1F8426276F5700C44DE9 /* BridgeArchiver */; }; - FF8D1F8A2627705C00C44DE9 /* BridgeUploaderInfoV2.swift in Sources */ = {isa = PBXBuildFile; fileRef = FF8D1F892627705C00C44DE9 /* BridgeUploaderInfoV2.swift */; }; - FF8F8D1F261F858900366307 /* BridgeClient.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FF8F8D1E261F858900366307 /* BridgeClient.framework */; }; - FF8F8D20261F858900366307 /* BridgeClient.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = FF8F8D1E261F858900366307 /* BridgeClient.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; FFACECFF26727E1500F764E5 /* BridgeClientAppManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = FFACECFE26727E1500F764E5 /* BridgeClientAppManager.swift */; }; FFACED0126727E2100F764E5 /* ExternalIdLoginView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FFACED0026727E2100F764E5 /* ExternalIdLoginView.swift */; }; FFACED0426727F2800F764E5 /* SharedMobileUI in Frameworks */ = {isa = PBXBuildFile; productRef = FFACED0326727F2800F764E5 /* SharedMobileUI */; }; @@ -45,13 +55,13 @@ /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ - FF8F8D21261F858900366307 /* Embed Frameworks */ = { + FF12D0202695011200520C4D /* Embed Frameworks */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; dstSubfolderSpec = 10; files = ( - FF8F8D20261F858900366307 /* BridgeClient.framework in Embed Frameworks */, + FF12D01F2695011200520C4D /* BridgeClient.xcframework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -74,8 +84,20 @@ 7555FFA0242A565B00829871 /* iosAppUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = iosAppUITests.swift; sourceTree = ""; }; 7555FFA2242A565B00829871 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; E9B7695625D73E8D0031D67E /* bridge_client.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = bridge_client.framework; path = "../bridge-client/build/xcode-frameworks/bridge_client.framework"; sourceTree = ""; }; + FF12D019269500E300520C4D /* BridgeClient.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = BridgeClient.framework; path = "../bridge-client/build/xcode-frameworks/BridgeClient.framework"; sourceTree = ""; }; + FF12D01D2695011200520C4D /* BridgeClient.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = BridgeClient.xcframework; path = "../bridge-client/build/xcframework/BridgeClient.xcframework"; sourceTree = ""; }; + FF12D0222695019800520C4D /* TimelineAssessment.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TimelineAssessment.swift; sourceTree = ""; }; + FF12D0232695019800520C4D /* TimelineSession.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TimelineSession.swift; sourceTree = ""; }; + FF12D0242695019800520C4D /* TodayTimelineViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TodayTimelineViewModel.swift; sourceTree = ""; }; + FF12D0262695019800520C4D /* AssessmentScheduleInfo.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AssessmentScheduleInfo.swift; sourceTree = ""; }; + FF12D0282695019800520C4D /* NativeScheduledSessionWindow+View.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "NativeScheduledSessionWindow+View.swift"; sourceTree = ""; }; + FF12D0292695019800520C4D /* JsonSerializable+Utils.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "JsonSerializable+Utils.swift"; sourceTree = ""; }; + FF12D02A2695019800520C4D /* AppConfig+Utils.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "AppConfig+Utils.swift"; sourceTree = ""; }; + FF12D02B2695019800520C4D /* Date+Utils.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Date+Utils.swift"; sourceTree = ""; }; + FF12D02D2695019800520C4D /* SageResearchArchiveManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SageResearchArchiveManager.swift; sourceTree = ""; }; + FF12D02E2695019800520C4D /* AbstractResultArchive.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AbstractResultArchive.swift; sourceTree = ""; }; + FF12D02F2695019800520C4D /* DataArchive.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DataArchive.swift; sourceTree = ""; }; FF5657BB266F12C7008671B5 /* PlatformConfigImpl.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PlatformConfigImpl.swift; sourceTree = ""; }; - FF8D1F892627705C00C44DE9 /* BridgeUploaderInfoV2.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BridgeUploaderInfoV2.swift; sourceTree = ""; }; FF8F8D1E261F858900366307 /* BridgeClient.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = BridgeClient.framework; path = "../bridge-client/build/bin/ios/debugFramework/BridgeClient.framework"; sourceTree = ""; }; FFACECFE26727E1500F764E5 /* BridgeClientAppManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BridgeClientAppManager.swift; sourceTree = ""; }; FFACED0026727E2100F764E5 /* ExternalIdLoginView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ExternalIdLoginView.swift; sourceTree = ""; }; @@ -86,7 +108,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - FF8F8D1F261F858900366307 /* BridgeClient.framework in Frameworks */, + FF12D01E2695011200520C4D /* BridgeClient.xcframework in Frameworks */, FF8D1F7E26276F3100C44DE9 /* Research in Frameworks */, FF8D1F8026276F3100C44DE9 /* ResearchUI in Frameworks */, FF8D1F8526276F5700C44DE9 /* BridgeArchiver in Frameworks */, @@ -176,12 +198,53 @@ 7555FFB0242A642200829871 /* Frameworks */ = { isa = PBXGroup; children = ( + FF12D01D2695011200520C4D /* BridgeClient.xcframework */, FF8F8D1E261F858900366307 /* BridgeClient.framework */, + FF12D019269500E300520C4D /* BridgeClient.framework */, E9B7695625D73E8D0031D67E /* bridge_client.framework */, ); name = Frameworks; sourceTree = ""; }; + FF12D0212695019800520C4D /* ObservableObjects */ = { + isa = PBXGroup; + children = ( + FF12D0222695019800520C4D /* TimelineAssessment.swift */, + FF12D0232695019800520C4D /* TimelineSession.swift */, + FF12D0242695019800520C4D /* TodayTimelineViewModel.swift */, + ); + path = ObservableObjects; + sourceTree = ""; + }; + FF12D0252695019800520C4D /* Models */ = { + isa = PBXGroup; + children = ( + FF12D0262695019800520C4D /* AssessmentScheduleInfo.swift */, + ); + path = Models; + sourceTree = ""; + }; + FF12D0272695019800520C4D /* Extensions */ = { + isa = PBXGroup; + children = ( + FF12D0282695019800520C4D /* NativeScheduledSessionWindow+View.swift */, + FF12D0292695019800520C4D /* JsonSerializable+Utils.swift */, + FF12D02A2695019800520C4D /* AppConfig+Utils.swift */, + FF12D02B2695019800520C4D /* Date+Utils.swift */, + ); + path = Extensions; + sourceTree = ""; + }; + FF12D02C2695019800520C4D /* Data Archiving */ = { + isa = PBXGroup; + children = ( + FF12D02D2695019800520C4D /* SageResearchArchiveManager.swift */, + FF12D02E2695019800520C4D /* AbstractResultArchive.swift */, + FF12D02F2695019800520C4D /* DataArchive.swift */, + ); + path = "Data Archiving"; + sourceTree = ""; + }; FF5657BC266F12C7008671B5 /* Views */ = { isa = PBXGroup; children = ( @@ -193,23 +256,18 @@ FF8D1F7326276A5800C44DE9 /* BridgeClientUI */ = { isa = PBXGroup; children = ( + FF12D02C2695019800520C4D /* Data Archiving */, + FF12D0272695019800520C4D /* Extensions */, + FF12D0252695019800520C4D /* Models */, + FF12D0212695019800520C4D /* ObservableObjects */, + FF5657BC266F12C7008671B5 /* Views */, FFACECFE26727E1500F764E5 /* BridgeClientAppManager.swift */, FF5657BB266F12C7008671B5 /* PlatformConfigImpl.swift */, - FF5657BC266F12C7008671B5 /* Views */, - FF8D1F882627702D00C44DE9 /* Data Archiving */, ); name = BridgeClientUI; path = ../../SwiftPackage/Sources/BridgeClientUI; sourceTree = ""; }; - FF8D1F882627702D00C44DE9 /* Data Archiving */ = { - isa = PBXGroup; - children = ( - FF8D1F892627705C00C44DE9 /* BridgeUploaderInfoV2.swift */, - ); - path = "Data Archiving"; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -221,7 +279,7 @@ 7555FF77242A565900829871 /* Sources */, 7555FF78242A565900829871 /* Frameworks */, 7555FF79242A565900829871 /* Resources */, - FF8F8D21261F858900366307 /* Embed Frameworks */, + FF12D0202695011200520C4D /* Embed Frameworks */, ); buildRules = ( ); @@ -365,7 +423,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "cd \"$SRCROOT/..\"\n./gradlew :bridge-client:packForXCode -PXCODE_CONFIGURATION=${CONFIGURATION}\n"; + shellScript = "cd \"$SRCROOT/..\"\n./gradlew :bridge-client:buildXcFramework -PXCODE_CONFIGURATION=${CONFIGURATION}\n"; }; /* End PBXShellScriptBuildPhase section */ @@ -374,12 +432,22 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + FF12D0382695019800520C4D /* SageResearchArchiveManager.swift in Sources */, 7555FF7F242A565900829871 /* AppDelegate.swift in Sources */, 7555FF81242A565900829871 /* SceneDelegate.swift in Sources */, FFACED0126727E2100F764E5 /* ExternalIdLoginView.swift in Sources */, - FF8D1F8A2627705C00C44DE9 /* BridgeUploaderInfoV2.swift in Sources */, + FF12D03A2695019800520C4D /* DataArchive.swift in Sources */, + FF12D0342695019800520C4D /* NativeScheduledSessionWindow+View.swift in Sources */, + FF12D0362695019800520C4D /* AppConfig+Utils.swift in Sources */, + FF12D0372695019800520C4D /* Date+Utils.swift in Sources */, + FF12D0312695019800520C4D /* TimelineSession.swift in Sources */, + FF12D0332695019800520C4D /* AssessmentScheduleInfo.swift in Sources */, FFACECFF26727E1500F764E5 /* BridgeClientAppManager.swift in Sources */, + FF12D0322695019800520C4D /* TodayTimelineViewModel.swift in Sources */, + FF12D0392695019800520C4D /* AbstractResultArchive.swift in Sources */, + FF12D0352695019800520C4D /* JsonSerializable+Utils.swift in Sources */, 7555FF83242A565900829871 /* ContentView.swift in Sources */, + FF12D0302695019800520C4D /* TimelineAssessment.swift in Sources */, FF5657BF266F12C7008671B5 /* PlatformConfigImpl.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -717,8 +785,8 @@ isa = XCRemoteSwiftPackageReference; repositoryURL = "https://github.com/Sage-Bionetworks/BridgeArchiver-Swift.git"; requirement = { - kind = upToNextMajorVersion; - minimumVersion = 0.1.0; + branch = main; + kind = branch; }; }; FFACED0226727F2800F764E5 /* XCRemoteSwiftPackageReference "SharedMobileUI-AppleOS" */ = { diff --git a/iosApp/iosApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/iosApp/iosApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved index 6de0baa8a..155ffac8f 100644 --- a/iosApp/iosApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/iosApp/iosApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -5,9 +5,9 @@ "package": "BridgeArchiver", "repositoryURL": "https://github.com/Sage-Bionetworks/BridgeArchiver-Swift.git", "state": { - "branch": null, - "revision": "5dc7b0d00d568fbdb4a32993bc18bd55c82a9de4", - "version": "0.1.0" + "branch": "main", + "revision": "f1f0c4a9f177b13315bae618db186c12ecbc5bdb", + "version": null } }, { diff --git a/xcframework_build.sh b/xcframework_build.sh index ab1457500..47007d9d9 100755 --- a/xcframework_build.sh +++ b/xcframework_build.sh @@ -4,11 +4,5 @@ # iosApp # -rm -rf ./SwiftPackage/Binaries/BridgeClient.xcframework -rm -rf ./bridge-client/build/bin/ -./gradlew :bridge-client:packForXCode -PXCODE_CONFIGURATION="RELEASE" -PXCODE_SDK_NAME="iphoneos" -mv ./bridge-client/build/bin/ios ./bridge-client/build/bin/iosArm64 -./gradlew :bridge-client:packForXCode -PXCODE_CONFIGURATION="RELEASE" -PXCODE_SDK_NAME="iphonesimulator" -mv ./bridge-client/build/bin/ios ./bridge-client/build/bin/iosX64 -xcodebuild -create-xcframework -framework ./bridge-client/build/bin/iosArm64/releaseFramework/BridgeClient.framework -framework ./bridge-client/build/bin/iosX64/releaseFramework/BridgeClient.framework -output ./SwiftPackage/Binaries/BridgeClient.xcframework +./gradlew :bridge-client:buildXcFramework -PSWIFT_PM="true"