@appzung/react-native-code-push 11.0.0-rc1 → 11.0.0-rc10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CodePush.podspec +3 -5
- package/README.md +26 -24
- package/android/app/proguard-rules.pro +5 -0
- package/android/app/src/main/java/com/appzung/codepush/react/CodePush.java +4 -0
- package/android/app/src/main/java/com/appzung/codepush/react/CodePushConstants.java +2 -0
- package/android/app/src/main/java/com/appzung/codepush/react/CodePushNativeModule.java +86 -4
- package/android/app/src/main/java/com/appzung/codepush/react/ExpoUtils.java +22 -0
- package/ios/CodePush/CodePush.h +11 -6
- package/ios/CodePush/{CodePush.m → CodePush.mm} +132 -141
- package/ios/CodePush/CodePushConfig.m +54 -0
- package/ios/CodePush.xcodeproj/project.pbxproj +6 -6
- package/lib/commonjs/CodePush.js +11 -2
- package/lib/commonjs/CodePush.js.map +1 -1
- package/lib/commonjs/allowRestart.js +6 -2
- package/lib/commonjs/allowRestart.js.map +1 -1
- package/lib/commonjs/checkForUpdates.js +25 -26
- package/lib/commonjs/checkForUpdates.js.map +1 -1
- package/lib/commonjs/clearUpdates.js +6 -3
- package/lib/commonjs/clearUpdates.js.map +1 -1
- package/lib/commonjs/dataTransmission.js +28 -0
- package/lib/commonjs/dataTransmission.js.map +1 -0
- package/lib/commonjs/disallowRestart.js +6 -2
- package/lib/commonjs/disallowRestart.js.map +1 -1
- package/lib/commonjs/enums/CheckFrequency.enum.js +2 -2
- package/lib/commonjs/enums/InstallMode.enum.js +7 -3
- package/lib/commonjs/enums/InstallMode.enum.js.map +1 -1
- package/lib/commonjs/enums/LogLevel.enum.js +17 -0
- package/lib/commonjs/enums/LogLevel.enum.js.map +1 -0
- package/lib/commonjs/enums/SyncStatus.enum.js +7 -7
- package/lib/commonjs/enums/UpdateState.enum.js +7 -6
- package/lib/commonjs/enums/UpdateState.enum.js.map +1 -1
- package/lib/commonjs/getClientUniqueId.js +16 -0
- package/lib/commonjs/getClientUniqueId.js.map +1 -0
- package/lib/commonjs/index.js +90 -9
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/internals/CodePushApiSdk.errors.js +26 -0
- package/lib/commonjs/internals/CodePushApiSdk.errors.js.map +1 -0
- package/lib/commonjs/internals/CodePushApiSdk.js +122 -0
- package/lib/commonjs/internals/CodePushApiSdk.js.map +1 -0
- package/lib/commonjs/{enums/DeploymentStatus.enum.js → internals/CodePushApiSdk.types.js} +3 -2
- package/lib/commonjs/internals/CodePushApiSdk.types.js.map +1 -0
- package/lib/commonjs/internals/CodePushEventEmitter.js +10 -0
- package/lib/commonjs/internals/CodePushEventEmitter.js.map +1 -0
- package/lib/commonjs/internals/RemotePackageImplementation.js +9 -8
- package/lib/commonjs/internals/RemotePackageImplementation.js.map +1 -1
- package/lib/commonjs/internals/getConfiguration.js +4 -0
- package/lib/commonjs/internals/getConfiguration.js.map +1 -1
- package/lib/commonjs/internals/logger.js +51 -0
- package/lib/commonjs/internals/logger.js.map +1 -0
- package/lib/commonjs/internals/shouldUpdateBeIgnored.js +6 -5
- package/lib/commonjs/internals/shouldUpdateBeIgnored.js.map +1 -1
- package/lib/commonjs/internals/utils/fetchRetry.js +59 -0
- package/lib/commonjs/internals/utils/fetchRetry.js.map +1 -0
- package/lib/commonjs/internals/utils/log.js +10 -3
- package/lib/commonjs/internals/utils/log.js.map +1 -1
- package/lib/commonjs/internals/utils/queryStringify.js +25 -0
- package/lib/commonjs/internals/utils/queryStringify.js.map +1 -0
- package/lib/commonjs/internals/utils/requestFetchAdapter.js +38 -0
- package/lib/commonjs/internals/utils/requestFetchAdapter.js.map +1 -0
- package/lib/commonjs/internals/version.js +1 -1
- package/lib/commonjs/internals/version.js.map +1 -1
- package/lib/commonjs/logLevel.js +15 -0
- package/lib/commonjs/logLevel.js.map +1 -0
- package/lib/commonjs/logger.js +19 -0
- package/lib/commonjs/logger.js.map +1 -0
- package/lib/commonjs/notifyAppReady.js +26 -15
- package/lib/commonjs/notifyAppReady.js.map +1 -1
- package/lib/commonjs/resetClientUniqueId.js +18 -0
- package/lib/commonjs/resetClientUniqueId.js.map +1 -0
- package/lib/commonjs/restartApp.js +4 -2
- package/lib/commonjs/restartApp.js.map +1 -1
- package/lib/commonjs/sync.js +35 -28
- package/lib/commonjs/sync.js.map +1 -1
- package/lib/commonjs/telemetry.js +28 -0
- package/lib/commonjs/telemetry.js.map +1 -0
- package/lib/module/CodePush.js +11 -2
- package/lib/module/CodePush.js.map +1 -1
- package/lib/module/allowRestart.js +5 -1
- package/lib/module/allowRestart.js.map +1 -1
- package/lib/module/checkForUpdates.js +25 -26
- package/lib/module/checkForUpdates.js.map +1 -1
- package/lib/module/clearUpdates.js +5 -2
- package/lib/module/clearUpdates.js.map +1 -1
- package/lib/module/dataTransmission.js +24 -0
- package/lib/module/dataTransmission.js.map +1 -0
- package/lib/module/disallowRestart.js +5 -1
- package/lib/module/disallowRestart.js.map +1 -1
- package/lib/module/enums/CheckFrequency.enum.js +2 -2
- package/lib/module/enums/InstallMode.enum.js +7 -3
- package/lib/module/enums/InstallMode.enum.js.map +1 -1
- package/lib/module/enums/LogLevel.enum.js +13 -0
- package/lib/module/enums/LogLevel.enum.js.map +1 -0
- package/lib/module/enums/SyncStatus.enum.js +7 -7
- package/lib/module/enums/UpdateState.enum.js +7 -6
- package/lib/module/enums/UpdateState.enum.js.map +1 -1
- package/lib/module/getClientUniqueId.js +12 -0
- package/lib/module/getClientUniqueId.js.map +1 -0
- package/lib/module/index.js +8 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/internals/CodePushApiSdk.errors.js +20 -0
- package/lib/module/internals/CodePushApiSdk.errors.js.map +1 -0
- package/lib/module/internals/CodePushApiSdk.js +118 -0
- package/lib/module/internals/CodePushApiSdk.js.map +1 -0
- package/lib/module/{enums/DeploymentStatus.enum.js → internals/CodePushApiSdk.types.js} +2 -1
- package/lib/module/internals/CodePushApiSdk.types.js.map +1 -0
- package/lib/module/internals/CodePushEventEmitter.js +6 -0
- package/lib/module/internals/CodePushEventEmitter.js.map +1 -0
- package/lib/module/internals/RemotePackageImplementation.js +9 -8
- package/lib/module/internals/RemotePackageImplementation.js.map +1 -1
- package/lib/module/internals/getConfiguration.js +3 -0
- package/lib/module/internals/getConfiguration.js.map +1 -1
- package/lib/module/internals/logger.js +44 -0
- package/lib/module/internals/logger.js.map +1 -0
- package/lib/module/internals/shouldUpdateBeIgnored.js +6 -5
- package/lib/module/internals/shouldUpdateBeIgnored.js.map +1 -1
- package/lib/module/internals/utils/fetchRetry.js +55 -0
- package/lib/module/internals/utils/fetchRetry.js.map +1 -0
- package/lib/module/internals/utils/log.js +11 -3
- package/lib/module/internals/utils/log.js.map +1 -1
- package/lib/module/internals/utils/queryStringify.js +21 -0
- package/lib/module/internals/utils/queryStringify.js.map +1 -0
- package/lib/module/internals/utils/requestFetchAdapter.js +34 -0
- package/lib/module/internals/utils/requestFetchAdapter.js.map +1 -0
- package/lib/module/internals/version.js +1 -1
- package/lib/module/internals/version.js.map +1 -1
- package/lib/module/logLevel.js +9 -0
- package/lib/module/logLevel.js.map +1 -0
- package/lib/module/logger.js +4 -0
- package/lib/module/logger.js.map +1 -0
- package/lib/module/notifyAppReady.js +26 -15
- package/lib/module/notifyAppReady.js.map +1 -1
- package/lib/module/resetClientUniqueId.js +14 -0
- package/lib/module/resetClientUniqueId.js.map +1 -0
- package/lib/module/restartApp.js +4 -2
- package/lib/module/restartApp.js.map +1 -1
- package/lib/module/sync.js +35 -28
- package/lib/module/sync.js.map +1 -1
- package/lib/module/telemetry.js +24 -0
- package/lib/module/telemetry.js.map +1 -0
- package/lib/typescript/commonjs/src/CodePush.d.ts +10 -5
- package/lib/typescript/commonjs/src/CodePush.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/allowRestart.d.ts +3 -1
- package/lib/typescript/commonjs/src/allowRestart.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/checkForUpdates.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/clearUpdates.d.ts +3 -2
- package/lib/typescript/commonjs/src/clearUpdates.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/dataTransmission.d.ts +13 -0
- package/lib/typescript/commonjs/src/dataTransmission.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/disallowRestart.d.ts +3 -1
- package/lib/typescript/commonjs/src/disallowRestart.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/enums/CheckFrequency.enum.d.ts +2 -2
- package/lib/typescript/commonjs/src/enums/InstallMode.enum.d.ts +7 -3
- package/lib/typescript/commonjs/src/enums/InstallMode.enum.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/enums/LogLevel.enum.d.ts +10 -0
- package/lib/typescript/commonjs/src/enums/LogLevel.enum.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/enums/SyncStatus.enum.d.ts +7 -7
- package/lib/typescript/commonjs/src/enums/UpdateState.enum.d.ts +7 -6
- package/lib/typescript/commonjs/src/enums/UpdateState.enum.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/getClientUniqueId.d.ts +5 -0
- package/lib/typescript/commonjs/src/getClientUniqueId.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +8 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/CodePushApiSdk.d.ts +15 -0
- package/lib/typescript/commonjs/src/internals/CodePushApiSdk.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/internals/CodePushApiSdk.errors.d.ts +9 -0
- package/lib/typescript/commonjs/src/internals/CodePushApiSdk.errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/internals/CodePushApiSdk.types.d.ts +103 -0
- package/lib/typescript/commonjs/src/internals/CodePushApiSdk.types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/internals/CodePushEventEmitter.d.ts +3 -0
- package/lib/typescript/commonjs/src/internals/CodePushEventEmitter.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/internals/RNAppZungCodePushModuleSpec.d.ts +5 -0
- package/lib/typescript/commonjs/src/internals/RNAppZungCodePushModuleSpec.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/RemotePackageImplementation.d.ts +2 -2
- package/lib/typescript/commonjs/src/internals/RemotePackageImplementation.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/getConfiguration.d.ts +1 -0
- package/lib/typescript/commonjs/src/internals/getConfiguration.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/logger.d.ts +33 -0
- package/lib/typescript/commonjs/src/internals/logger.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/internals/shouldUpdateBeIgnored.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/types.d.ts +2 -2
- package/lib/typescript/commonjs/src/internals/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/utils/fetchRetry.d.ts +9 -0
- package/lib/typescript/commonjs/src/internals/utils/fetchRetry.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/internals/utils/log.d.ts +2 -1
- package/lib/typescript/commonjs/src/internals/utils/log.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/internals/utils/queryStringify.d.ts +4 -0
- package/lib/typescript/commonjs/src/internals/utils/queryStringify.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/internals/utils/requestFetchAdapter.d.ts +3 -0
- package/lib/typescript/commonjs/src/internals/utils/requestFetchAdapter.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/internals/version.d.ts +1 -1
- package/lib/typescript/commonjs/src/internals/version.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/logLevel.d.ts +4 -0
- package/lib/typescript/commonjs/src/logLevel.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/logger.d.ts +3 -0
- package/lib/typescript/commonjs/src/logger.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/notifyAppReady.d.ts +4 -0
- package/lib/typescript/commonjs/src/notifyAppReady.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/resetClientUniqueId.d.ts +5 -0
- package/lib/typescript/commonjs/src/resetClientUniqueId.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/restartApp.d.ts +2 -0
- package/lib/typescript/commonjs/src/restartApp.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/sync.d.ts +5 -1
- package/lib/typescript/commonjs/src/sync.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/telemetry.d.ts +13 -0
- package/lib/typescript/commonjs/src/telemetry.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/types.d.ts +72 -29
- package/lib/typescript/commonjs/src/types.d.ts.map +1 -1
- package/lib/typescript/module/src/CodePush.d.ts +10 -5
- package/lib/typescript/module/src/CodePush.d.ts.map +1 -1
- package/lib/typescript/module/src/allowRestart.d.ts +3 -1
- package/lib/typescript/module/src/allowRestart.d.ts.map +1 -1
- package/lib/typescript/module/src/checkForUpdates.d.ts.map +1 -1
- package/lib/typescript/module/src/clearUpdates.d.ts +3 -2
- package/lib/typescript/module/src/clearUpdates.d.ts.map +1 -1
- package/lib/typescript/module/src/dataTransmission.d.ts +13 -0
- package/lib/typescript/module/src/dataTransmission.d.ts.map +1 -0
- package/lib/typescript/module/src/disallowRestart.d.ts +3 -1
- package/lib/typescript/module/src/disallowRestart.d.ts.map +1 -1
- package/lib/typescript/module/src/enums/CheckFrequency.enum.d.ts +2 -2
- package/lib/typescript/module/src/enums/InstallMode.enum.d.ts +7 -3
- package/lib/typescript/module/src/enums/InstallMode.enum.d.ts.map +1 -1
- package/lib/typescript/module/src/enums/LogLevel.enum.d.ts +10 -0
- package/lib/typescript/module/src/enums/LogLevel.enum.d.ts.map +1 -0
- package/lib/typescript/module/src/enums/SyncStatus.enum.d.ts +7 -7
- package/lib/typescript/module/src/enums/UpdateState.enum.d.ts +7 -6
- package/lib/typescript/module/src/enums/UpdateState.enum.d.ts.map +1 -1
- package/lib/typescript/module/src/getClientUniqueId.d.ts +5 -0
- package/lib/typescript/module/src/getClientUniqueId.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +8 -1
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/CodePushApiSdk.d.ts +15 -0
- package/lib/typescript/module/src/internals/CodePushApiSdk.d.ts.map +1 -0
- package/lib/typescript/module/src/internals/CodePushApiSdk.errors.d.ts +9 -0
- package/lib/typescript/module/src/internals/CodePushApiSdk.errors.d.ts.map +1 -0
- package/lib/typescript/module/src/internals/CodePushApiSdk.types.d.ts +103 -0
- package/lib/typescript/module/src/internals/CodePushApiSdk.types.d.ts.map +1 -0
- package/lib/typescript/module/src/internals/CodePushEventEmitter.d.ts +3 -0
- package/lib/typescript/module/src/internals/CodePushEventEmitter.d.ts.map +1 -0
- package/lib/typescript/module/src/internals/RNAppZungCodePushModuleSpec.d.ts +5 -0
- package/lib/typescript/module/src/internals/RNAppZungCodePushModuleSpec.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/RemotePackageImplementation.d.ts +2 -2
- package/lib/typescript/module/src/internals/RemotePackageImplementation.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/getConfiguration.d.ts +1 -0
- package/lib/typescript/module/src/internals/getConfiguration.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/logger.d.ts +33 -0
- package/lib/typescript/module/src/internals/logger.d.ts.map +1 -0
- package/lib/typescript/module/src/internals/shouldUpdateBeIgnored.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/types.d.ts +2 -2
- package/lib/typescript/module/src/internals/types.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/utils/fetchRetry.d.ts +9 -0
- package/lib/typescript/module/src/internals/utils/fetchRetry.d.ts.map +1 -0
- package/lib/typescript/module/src/internals/utils/log.d.ts +2 -1
- package/lib/typescript/module/src/internals/utils/log.d.ts.map +1 -1
- package/lib/typescript/module/src/internals/utils/queryStringify.d.ts +4 -0
- package/lib/typescript/module/src/internals/utils/queryStringify.d.ts.map +1 -0
- package/lib/typescript/module/src/internals/utils/requestFetchAdapter.d.ts +3 -0
- package/lib/typescript/module/src/internals/utils/requestFetchAdapter.d.ts.map +1 -0
- package/lib/typescript/module/src/internals/version.d.ts +1 -1
- package/lib/typescript/module/src/internals/version.d.ts.map +1 -1
- package/lib/typescript/module/src/logLevel.d.ts +4 -0
- package/lib/typescript/module/src/logLevel.d.ts.map +1 -0
- package/lib/typescript/module/src/logger.d.ts +3 -0
- package/lib/typescript/module/src/logger.d.ts.map +1 -0
- package/lib/typescript/module/src/notifyAppReady.d.ts +4 -0
- package/lib/typescript/module/src/notifyAppReady.d.ts.map +1 -1
- package/lib/typescript/module/src/resetClientUniqueId.d.ts +5 -0
- package/lib/typescript/module/src/resetClientUniqueId.d.ts.map +1 -0
- package/lib/typescript/module/src/restartApp.d.ts +2 -0
- package/lib/typescript/module/src/restartApp.d.ts.map +1 -1
- package/lib/typescript/module/src/sync.d.ts +5 -1
- package/lib/typescript/module/src/sync.d.ts.map +1 -1
- package/lib/typescript/module/src/telemetry.d.ts +13 -0
- package/lib/typescript/module/src/telemetry.d.ts.map +1 -0
- package/lib/typescript/module/src/types.d.ts +72 -29
- package/lib/typescript/module/src/types.d.ts.map +1 -1
- package/package.json +24 -13
- package/scripts/generateBundledResourcesHash.js +73 -68
- package/scripts/getFilesInFolder.js +12 -12
- package/scripts/recordFilesBeforeBundleCommand.js +19 -20
- package/src/CodePush.tsx +20 -5
- package/src/allowRestart.ts +5 -1
- package/src/checkForUpdates.ts +26 -24
- package/src/clearUpdates.ts +5 -2
- package/src/dataTransmission.ts +21 -0
- package/src/disallowRestart.ts +5 -1
- package/src/enums/CheckFrequency.enum.ts +2 -2
- package/src/enums/InstallMode.enum.ts +7 -3
- package/src/enums/LogLevel.enum.ts +9 -0
- package/src/enums/SyncStatus.enum.ts +7 -7
- package/src/enums/UpdateState.enum.ts +7 -6
- package/src/getClientUniqueId.ts +9 -0
- package/src/index.ts +8 -1
- package/src/internals/CodePushApiSdk.errors.ts +22 -0
- package/src/internals/CodePushApiSdk.ts +160 -0
- package/src/internals/CodePushApiSdk.types.ts +117 -0
- package/src/internals/CodePushEventEmitter.ts +4 -0
- package/src/internals/RNAppZungCodePushModuleSpec.ts +7 -0
- package/src/internals/RemotePackageImplementation.ts +11 -10
- package/src/internals/getConfiguration.ts +4 -0
- package/src/internals/logger.ts +46 -0
- package/src/internals/shouldUpdateBeIgnored.ts +6 -5
- package/src/internals/types.ts +2 -2
- package/src/internals/utils/fetchRetry.ts +72 -0
- package/src/internals/utils/log.ts +13 -3
- package/src/internals/utils/queryStringify.ts +22 -0
- package/src/internals/utils/requestFetchAdapter.ts +36 -0
- package/src/internals/version.ts +1 -1
- package/src/logLevel.ts +9 -0
- package/src/logger.ts +2 -0
- package/src/notifyAppReady.ts +29 -18
- package/src/resetClientUniqueId.ts +11 -0
- package/src/restartApp.ts +4 -2
- package/src/sync.ts +41 -27
- package/src/telemetry.ts +21 -0
- package/src/types.ts +72 -29
- package/android/app/.gradle/config.properties +0 -2
- package/android/app/local.properties +0 -8
- package/docs/advanced-usage.md +0 -56
- package/docs/api-android.md +0 -22
- package/docs/api-ios.md +0 -19
- package/docs/api-js.md +0 -557
- package/docs/code-signing.md +0 -62
- package/docs/migrating-to-v10.md +0 -31
- package/docs/setup-android.md +0 -81
- package/docs/setup-ios.md +0 -108
- package/docs/setup-windows.md +0 -55
- package/lib/commonjs/enums/DeploymentStatus.enum.js.map +0 -1
- package/lib/commonjs/internals/AcquisitionSdk.js +0 -9
- package/lib/commonjs/internals/AcquisitionSdk.js.map +0 -1
- package/lib/commonjs/internals/getPromisifiedSdk.js +0 -49
- package/lib/commonjs/internals/getPromisifiedSdk.js.map +0 -1
- package/lib/commonjs/internals/utils/request-fetch-adapter.js +0 -50
- package/lib/commonjs/internals/utils/request-fetch-adapter.js.map +0 -1
- package/lib/module/enums/DeploymentStatus.enum.js.map +0 -1
- package/lib/module/internals/AcquisitionSdk.js +0 -5
- package/lib/module/internals/AcquisitionSdk.js.map +0 -1
- package/lib/module/internals/getPromisifiedSdk.js +0 -45
- package/lib/module/internals/getPromisifiedSdk.js.map +0 -1
- package/lib/module/internals/utils/request-fetch-adapter.js +0 -46
- package/lib/module/internals/utils/request-fetch-adapter.js.map +0 -1
- package/lib/typescript/commonjs/src/enums/DeploymentStatus.enum.d.ts +0 -14
- package/lib/typescript/commonjs/src/enums/DeploymentStatus.enum.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/internals/AcquisitionSdk.d.ts +0 -3
- package/lib/typescript/commonjs/src/internals/AcquisitionSdk.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/internals/getPromisifiedSdk.d.ts +0 -13
- package/lib/typescript/commonjs/src/internals/getPromisifiedSdk.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/internals/utils/request-fetch-adapter.d.ts +0 -3
- package/lib/typescript/commonjs/src/internals/utils/request-fetch-adapter.d.ts.map +0 -1
- package/lib/typescript/module/src/enums/DeploymentStatus.enum.d.ts +0 -14
- package/lib/typescript/module/src/enums/DeploymentStatus.enum.d.ts.map +0 -1
- package/lib/typescript/module/src/internals/AcquisitionSdk.d.ts +0 -3
- package/lib/typescript/module/src/internals/AcquisitionSdk.d.ts.map +0 -1
- package/lib/typescript/module/src/internals/getPromisifiedSdk.d.ts +0 -13
- package/lib/typescript/module/src/internals/getPromisifiedSdk.d.ts.map +0 -1
- package/lib/typescript/module/src/internals/utils/request-fetch-adapter.d.ts +0 -3
- package/lib/typescript/module/src/internals/utils/request-fetch-adapter.d.ts.map +0 -1
- package/src/enums/DeploymentStatus.enum.ts +0 -14
- package/src/internals/AcquisitionSdk.ts +0 -3
- package/src/internals/getPromisifiedSdk.ts +0 -72
- package/src/internals/utils/request-fetch-adapter.ts +0 -58
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkForUpdates.d.ts","sourceRoot":"","sources":["../../../../src/checkForUpdates.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkForUpdates.d.ts","sourceRoot":"","sources":["../../../../src/checkForUpdates.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,mCAAmC,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAElF;;;;;GAKG;AACH,wBAAsB,cAAc,CAClC,sBAAsB,CAAC,EAAE,MAAM,EAC/B,mCAAmC,CAAC,EAAE,mCAAmC,GACxE,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,CAwF/B"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Clears all downloaded CodePush updates.
|
|
3
|
+
*
|
|
3
4
|
* This is useful when switching to a different release channel which may have an older release than the current package.
|
|
4
|
-
* Note: we don’t recommend
|
|
5
|
+
* Note: we don’t recommend using this method in scenarios other than that (CodePush will call
|
|
5
6
|
* this method automatically when needed in other cases) as it could lead to unpredictable behavior.
|
|
6
7
|
*/
|
|
7
|
-
export declare
|
|
8
|
+
export declare function clearUpdates(): void;
|
|
8
9
|
//# sourceMappingURL=clearUpdates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clearUpdates.d.ts","sourceRoot":"","sources":["../../../../src/clearUpdates.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"clearUpdates.d.ts","sourceRoot":"","sources":["../../../../src/clearUpdates.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,YAAY,SAE3B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Controls data transmission for CodePush. This may be used for privacy optIn.
|
|
3
|
+
*
|
|
4
|
+
* @param enabled - When false, disables all external API calls to CodePush servers. Checking for updates will be disabled.
|
|
5
|
+
*/
|
|
6
|
+
export declare function setDataTransmissionEnabled(enabled: boolean): Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* Gets the current data transmission status.
|
|
9
|
+
*
|
|
10
|
+
* When setDataTransmissionEnabled has never been called, returns the default value set in your configuration.
|
|
11
|
+
*/
|
|
12
|
+
export declare function getDataTransmissionEnabled(): Promise<boolean>;
|
|
13
|
+
//# sourceMappingURL=dataTransmission.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataTransmission.d.ts","sourceRoot":"","sources":["../../../../src/dataTransmission.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAsB,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAGhF;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,IAAI,OAAO,CAAC,OAAO,CAAC,CAE7D"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Forbid CodePush to restart the app.
|
|
3
|
+
*
|
|
4
|
+
* This is an advanced API, and is useful when a component within your app (for example an onboarding process) needs to ensure that no end-user interruptions can occur during its lifetime.
|
|
3
5
|
*/
|
|
4
|
-
export declare
|
|
6
|
+
export declare function disallowRestart(): Promise<void>;
|
|
5
7
|
//# sourceMappingURL=disallowRestart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disallowRestart.d.ts","sourceRoot":"","sources":["../../../../src/disallowRestart.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"disallowRestart.d.ts","sourceRoot":"","sources":["../../../../src/disallowRestart.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,eAAe,kBAE9B"}
|
|
@@ -7,11 +7,11 @@ export declare enum CheckFrequency {
|
|
|
7
7
|
*/
|
|
8
8
|
ON_APP_START = 0,
|
|
9
9
|
/**
|
|
10
|
-
* When the app re-enters the foreground.
|
|
10
|
+
* When the app re-enters the foreground after being "backgrounded" (user pressed the home button, app launches a separate payment process, etc.)
|
|
11
11
|
*/
|
|
12
12
|
ON_APP_RESUME = 1,
|
|
13
13
|
/**
|
|
14
|
-
* Don't automatically check for updates, but only do it when
|
|
14
|
+
* Don't automatically check for updates, but only do it when `sync()` is manually called in app code.
|
|
15
15
|
*/
|
|
16
16
|
MANUAL = 2
|
|
17
17
|
}
|
|
@@ -4,16 +4,20 @@
|
|
|
4
4
|
export declare enum InstallMode {
|
|
5
5
|
/**
|
|
6
6
|
* Indicates that you want to install the update and restart the app immediately.
|
|
7
|
+
*
|
|
8
|
+
* This value is appropriate for debugging scenarios as well as when displaying an update prompt to the user, since they would expect to see the changes immediately after accepting the installation. Additionally, this mode can be used to enforce mandatory updates, since it removes the potentially undesired latency between the update installation and the next time the end user restarts or resumes the app.
|
|
7
9
|
*/
|
|
8
10
|
IMMEDIATE,
|
|
9
11
|
/**
|
|
10
12
|
* Indicates that you want to install the update, but not forcibly restart the app.
|
|
13
|
+
*
|
|
14
|
+
* When the app is "naturally" restarted (due the OS or end user killing it), the update will be seamlessly picked up. This value is appropriate when performing silent updates, since it would likely be disruptive to the end user if the app suddenly restarted out of nowhere, since they wouldn't have realized an update was even downloaded. This is the default mode used for both the `sync` and `LocalPackage.install` methods.
|
|
11
15
|
*/
|
|
12
16
|
ON_NEXT_RESTART,
|
|
13
17
|
/**
|
|
14
|
-
* Indicates that you want to install the update, but don't want to restart the app until the next time
|
|
15
|
-
*
|
|
16
|
-
* but you can get the update in front of them sooner than having to wait for the next natural restart.
|
|
18
|
+
* Indicates that you want to install the update, but don't want to restart the app until the next time the end user resumes it from the background.
|
|
19
|
+
*
|
|
20
|
+
* This way, you don't disrupt their current session,but you can get the update in front of them sooner than having to wait for the next natural restart.
|
|
17
21
|
* This value is appropriate for silent installs that can be applied on resume in a non-invasive way.
|
|
18
22
|
*/
|
|
19
23
|
ON_NEXT_RESUME,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstallMode.enum.d.ts","sourceRoot":"","sources":["../../../../../src/enums/InstallMode.enum.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,WAAW;IACrB
|
|
1
|
+
{"version":3,"file":"InstallMode.enum.d.ts","sourceRoot":"","sources":["../../../../../src/enums/InstallMode.enum.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,WAAW;IACrB;;;;OAIG;IACH,SAAqF;IAErF;;;;OAIG;IACH,eAA+F;IAE/F;;;;;OAKG;IACH,cAA6F;IAE7F;;;;OAIG;IACH,eAA+F;CAChG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogLevel.enum.d.ts","sourceRoot":"","sources":["../../../../../src/enums/LogLevel.enum.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,QAAQ;IAClB,KAAK,IAAA;IACL,IAAI,IAAA;IACJ,IAAI,IAAA;IACJ,KAAK,IAAA;CACN"}
|
|
@@ -3,26 +3,26 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare enum SyncStatus {
|
|
5
5
|
/**
|
|
6
|
-
* The app is up-to-date with the
|
|
6
|
+
* The app is fully up-to-date with the configured release channel.
|
|
7
7
|
*/
|
|
8
8
|
UP_TO_DATE = 0,
|
|
9
9
|
/**
|
|
10
10
|
* An available update has been installed and will be run either immediately after the
|
|
11
|
-
* syncStatusChangedCallback function returns or the next time the app resumes/restarts,
|
|
12
|
-
* depending on the InstallMode specified in SyncOptions
|
|
11
|
+
* `syncStatusChangedCallback` function returns or the next time the app resumes/restarts,
|
|
12
|
+
* depending on the `InstallMode` specified in `SyncOptions`
|
|
13
13
|
*/
|
|
14
14
|
UPDATE_INSTALLED = 1,
|
|
15
15
|
/**
|
|
16
16
|
* The app had an optional update which the end user chose to ignore.
|
|
17
|
-
* (This is only applicable when the updateDialog is used)
|
|
17
|
+
* (This is only applicable when the `updateDialog` is used)
|
|
18
18
|
*/
|
|
19
19
|
UPDATE_IGNORED = 2,
|
|
20
20
|
/**
|
|
21
|
-
* The sync operation encountered an unknown error.
|
|
21
|
+
* The `sync` operation encountered an unknown error.
|
|
22
22
|
*/
|
|
23
23
|
UNKNOWN_ERROR = 3,
|
|
24
24
|
/**
|
|
25
|
-
* There is an ongoing sync operation running which prevents the current call from being executed.
|
|
25
|
+
* There is an ongoing `sync` operation running which prevents the current call from being executed.
|
|
26
26
|
*/
|
|
27
27
|
SYNC_IN_PROGRESS = 4,
|
|
28
28
|
/**
|
|
@@ -31,7 +31,7 @@ export declare enum SyncStatus {
|
|
|
31
31
|
CHECKING_FOR_UPDATE = 5,
|
|
32
32
|
/**
|
|
33
33
|
* An update is available, and a confirmation dialog was shown
|
|
34
|
-
* to the end user. (This is only applicable when the updateDialog is used)
|
|
34
|
+
* to the end user. (This is only applicable when the `updateDialog` is used)
|
|
35
35
|
*/
|
|
36
36
|
AWAITING_USER_ACTION = 6,
|
|
37
37
|
/**
|
|
@@ -3,18 +3,19 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare enum UpdateState {
|
|
5
5
|
/**
|
|
6
|
-
* Indicates that an update represents the
|
|
7
|
-
*
|
|
6
|
+
* Indicates that an update represents the version of the app that is currently running.
|
|
7
|
+
*
|
|
8
|
+
* This can be useful for identifying attributes about the app, for scenarios such as displaying the release description in a "what's new?" dialog or reporting the latest version to an analytics and/or crash reporting service.
|
|
8
9
|
*/
|
|
9
10
|
RUNNING,
|
|
10
11
|
/**
|
|
11
|
-
* Indicates than an update has been installed, but the
|
|
12
|
-
*
|
|
12
|
+
* Indicates than an update has been installed, but the app hasn't been restarted yet in order to apply it.
|
|
13
|
+
*
|
|
14
|
+
* This can be useful for determining whether there is a pending update, which you may want to force a programmatic restart (via `restartApp`) in order to apply.
|
|
13
15
|
*/
|
|
14
16
|
PENDING,
|
|
15
17
|
/**
|
|
16
|
-
* Indicates than an update represents the latest available
|
|
17
|
-
* release, and can be either currently running or pending.
|
|
18
|
+
* Indicates than an update represents the latest available release, and can be either currently running or pending.
|
|
18
19
|
*/
|
|
19
20
|
LATEST
|
|
20
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateState.enum.d.ts","sourceRoot":"","sources":["../../../../../src/enums/UpdateState.enum.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,WAAW;IACrB
|
|
1
|
+
{"version":3,"file":"UpdateState.enum.d.ts","sourceRoot":"","sources":["../../../../../src/enums/UpdateState.enum.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,oBAAY,WAAW;IACrB;;;;OAIG;IACH,OAAiF;IAEjF;;;;OAIG;IACH,OAAiF;IAEjF;;OAEG;IACH,MAA+E;CAChF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getClientUniqueId.d.ts","sourceRoot":"","sources":["../../../../src/getClientUniqueId.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,eAAO,MAAM,iBAAiB,uBAG7B,CAAC"}
|
|
@@ -8,10 +8,17 @@ export * from './getUpdateMetadata';
|
|
|
8
8
|
export * from './notifyAppReady';
|
|
9
9
|
export * from './restartApp';
|
|
10
10
|
export * from './sync';
|
|
11
|
+
export * from './getClientUniqueId';
|
|
12
|
+
export * from './resetClientUniqueId';
|
|
13
|
+
export * from './logLevel';
|
|
14
|
+
export * from './logger';
|
|
15
|
+
export * from './telemetry';
|
|
16
|
+
export * from './dataTransmission';
|
|
11
17
|
export * from './types';
|
|
12
18
|
export * from './enums/SyncStatus.enum';
|
|
13
19
|
export * from './enums/InstallMode.enum';
|
|
14
20
|
export * from './enums/UpdateState.enum';
|
|
15
|
-
export
|
|
21
|
+
export { DeploymentStatus } from './internals/CodePushApiSdk.types';
|
|
16
22
|
export * from './enums/CheckFrequency.enum';
|
|
23
|
+
export * from './enums/LogLevel.enum';
|
|
17
24
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AAEnC,cAAc,SAAS,CAAC;AAExB,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LogLevel } from '../enums/LogLevel.enum';
|
|
2
|
+
import { type ApiSdkConfiguration, type ApiSdkDeployReportPackageInfo, type ApiSdkDownloadReportPackageInfo, type ApiSdkNativeUpdateNotification, type ApiSdkQueryUpdatePackageInfo, type ApiSdkRemotePackage, DeploymentStatus, type Http } from './CodePushApiSdk.types';
|
|
3
|
+
export declare class CodePushApiSdk {
|
|
4
|
+
private readonly httpRequester;
|
|
5
|
+
private readonly log;
|
|
6
|
+
private configuration;
|
|
7
|
+
constructor(httpRequester: Http.Requester, log: (level: LogLevel, message: string) => void, configuration: ApiSdkConfiguration);
|
|
8
|
+
queryUpdateWithCurrentPackage(currentPackageInfo: ApiSdkQueryUpdatePackageInfo): Promise<ApiSdkRemotePackage | ApiSdkNativeUpdateNotification | null>;
|
|
9
|
+
reportStatusDeploy(deployedPackageInfo: {
|
|
10
|
+
package: ApiSdkDeployReportPackageInfo;
|
|
11
|
+
status: DeploymentStatus;
|
|
12
|
+
} | null, previousLabelOrAppVersion: string | null, previousDeploymentKey: string | null): Promise<void>;
|
|
13
|
+
reportStatusDownload(downloadedPackage: ApiSdkDownloadReportPackageInfo): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=CodePushApiSdk.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodePushApiSdk.d.ts","sourceRoot":"","sources":["../../../../../src/internals/CodePushApiSdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,mBAAmB,EAGxB,gBAAgB,EAChB,KAAK,IAAI,EAGV,MAAM,wBAAwB,CAAC;AAKhC,qBAAa,cAAc;IAIvB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,GAAG;IAJtB,OAAO,CAAC,aAAa,CAAsB;gBAGxB,aAAa,EAAE,IAAI,CAAC,SAAS,EAC7B,GAAG,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,EAChE,aAAa,EAAE,mBAAmB;IAS9B,6BAA6B,CACjC,kBAAkB,EAAE,4BAA4B,GAC/C,OAAO,CAAC,mBAAmB,GAAG,8BAA8B,GAAG,IAAI,CAAC;IAqDjE,kBAAkB,CACtB,mBAAmB,EAAE;QAAE,OAAO,EAAE,6BAA6B,CAAC;QAAC,MAAM,EAAE,gBAAgB,CAAA;KAAE,GAAG,IAAI,EAChG,yBAAyB,EAAE,MAAM,GAAG,IAAI,EACxC,qBAAqB,EAAE,MAAM,GAAG,IAAI,GACnC,OAAO,CAAC,IAAI,CAAC;IAwCV,oBAAoB,CAAC,iBAAiB,EAAE,+BAA+B,GAAG,OAAO,CAAC,IAAI,CAAC;CAyB9F"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class CodePushError extends Error {
|
|
2
|
+
constructor(message: string);
|
|
3
|
+
}
|
|
4
|
+
export declare class CodePushHttpError extends CodePushError {
|
|
5
|
+
readonly url: string;
|
|
6
|
+
readonly statusCode: number;
|
|
7
|
+
constructor(url: string, statusCode: number, message: string);
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=CodePushApiSdk.errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodePushApiSdk.errors.d.ts","sourceRoot":"","sources":["../../../../../src/internals/CodePushApiSdk.errors.ts"],"names":[],"mappings":"AAAA,qBAAa,aAAc,SAAQ,KAAK;gBAC1B,OAAO,EAAE,MAAM;CAI5B;AAED,qBAAa,iBAAkB,SAAQ,aAAa;IAEhD,QAAQ,CAAC,GAAG,EAAE,MAAM;IACpB,QAAQ,CAAC,UAAU,EAAE,MAAM;gBADlB,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,EAC3B,OAAO,EAAE,MAAM;CAUlB"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export interface ApiSdkQueryUpdatePackageInfo {
|
|
2
|
+
appVersion: string;
|
|
3
|
+
label?: string;
|
|
4
|
+
packageHash?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ApiSdkDeployReportPackageInfo {
|
|
7
|
+
label: string;
|
|
8
|
+
appVersion: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ApiSdkDownloadReportPackageInfo {
|
|
11
|
+
label: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ApiSdkRemotePackage {
|
|
14
|
+
releaseChannelPublicId: string;
|
|
15
|
+
label: string;
|
|
16
|
+
appVersion: string;
|
|
17
|
+
description: string;
|
|
18
|
+
isMandatory: boolean;
|
|
19
|
+
packageSize: number;
|
|
20
|
+
packageHash: string;
|
|
21
|
+
downloadUrl: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ApiSdkNativeUpdateNotification {
|
|
24
|
+
updateAppVersion: true;
|
|
25
|
+
appVersion: string;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace Http {
|
|
28
|
+
interface Response {
|
|
29
|
+
statusCode: number;
|
|
30
|
+
body?: string;
|
|
31
|
+
}
|
|
32
|
+
interface Requester {
|
|
33
|
+
request(verb: 'GET' | 'POST', url: string, requestBody?: string | object | null): Promise<Response>;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export interface ApiSdkConfiguration {
|
|
37
|
+
appVersion: string;
|
|
38
|
+
clientUniqueId: string;
|
|
39
|
+
releaseChannelPublicId: string;
|
|
40
|
+
serverUrl: string;
|
|
41
|
+
dataTransmissionEnabled: boolean;
|
|
42
|
+
telemetryEnabled: boolean;
|
|
43
|
+
ignoreAppVersion?: boolean;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Indicates the status of a deployment (after installing and restarting).
|
|
47
|
+
*/
|
|
48
|
+
export declare enum DeploymentStatus {
|
|
49
|
+
/**
|
|
50
|
+
* The deployment failed (and was rolled back).
|
|
51
|
+
*/
|
|
52
|
+
FAILED = "DeploymentFailed",
|
|
53
|
+
/**
|
|
54
|
+
* The deployment succeeded.
|
|
55
|
+
*/
|
|
56
|
+
SUCCEEDED = "DeploymentSucceeded"
|
|
57
|
+
}
|
|
58
|
+
export interface ReportDeployInput {
|
|
59
|
+
deployment_key: string;
|
|
60
|
+
app_version: string;
|
|
61
|
+
status?: DeploymentStatus;
|
|
62
|
+
label?: string;
|
|
63
|
+
client_unique_id?: string;
|
|
64
|
+
previous_label_or_app_version?: string;
|
|
65
|
+
previous_deployment_key?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface ReportDownloadInput {
|
|
68
|
+
deployment_key: string;
|
|
69
|
+
label: string;
|
|
70
|
+
client_unique_id?: string;
|
|
71
|
+
}
|
|
72
|
+
export interface CheckUpdateRequestInput {
|
|
73
|
+
deployment_key: string;
|
|
74
|
+
app_version: string;
|
|
75
|
+
package_hash?: string;
|
|
76
|
+
label?: string;
|
|
77
|
+
client_unique_id?: string;
|
|
78
|
+
is_companion?: boolean;
|
|
79
|
+
previous_label_or_app_version?: string;
|
|
80
|
+
previous_deployment_key?: string;
|
|
81
|
+
}
|
|
82
|
+
export interface CheckUpdateResponse {
|
|
83
|
+
update_info: {
|
|
84
|
+
is_available: true;
|
|
85
|
+
target_binary_range: string;
|
|
86
|
+
description: string;
|
|
87
|
+
is_disabled: boolean;
|
|
88
|
+
is_mandatory: boolean;
|
|
89
|
+
rollout: number;
|
|
90
|
+
download_url: string;
|
|
91
|
+
package_size: number;
|
|
92
|
+
package_hash: string;
|
|
93
|
+
label: string;
|
|
94
|
+
should_run_binary_version: boolean;
|
|
95
|
+
update_app_version: boolean;
|
|
96
|
+
} | {
|
|
97
|
+
is_available: false;
|
|
98
|
+
should_run_binary_version: boolean;
|
|
99
|
+
target_binary_range: string;
|
|
100
|
+
update_app_version?: boolean;
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=CodePushApiSdk.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodePushApiSdk.types.d.ts","sourceRoot":"","sources":["../../../../../src/internals/CodePushApiSdk.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,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Root":"","sources":["../../../../../src/internals/CodePushEventEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGlD,eAAO,MAAM,oBAAoB,oBAAwD,CAAC"}
|
|
@@ -16,6 +16,7 @@ export interface Spec extends TurboModule {
|
|
|
16
16
|
codePushUpdateStateRunning: number;
|
|
17
17
|
};
|
|
18
18
|
getConfiguration(): Promise<Configuration>;
|
|
19
|
+
resetClientUniqueId(): Promise<string>;
|
|
19
20
|
getUpdateMetadata(updateState: UpdateState): Promise<OmitFunctions<LocalPackage>>;
|
|
20
21
|
installUpdate(localPackage: OmitFunctions<LocalPackage>, installMode: InstallMode, minimumBackgroundDuration: number): Promise<void>;
|
|
21
22
|
downloadUpdate(remotePackage: OmitFunctions<RemotePackage>, notifyProgress: boolean): Promise<OmitFunctions<LocalPackage>>;
|
|
@@ -32,5 +33,9 @@ export interface Spec extends TurboModule {
|
|
|
32
33
|
getLatestRollbackInfo(): Promise<LatestRollbackInfo>;
|
|
33
34
|
isFirstRun(packageHash: string): Promise<boolean>;
|
|
34
35
|
isFailedUpdate(packageHash: string): Promise<boolean>;
|
|
36
|
+
setTelemetryEnabled(enabled: boolean): Promise<void>;
|
|
37
|
+
getTelemetryEnabled(): Promise<boolean>;
|
|
38
|
+
setDataTransmissionEnabled(enabled: boolean): Promise<void>;
|
|
39
|
+
getDataTransmissionEnabled(): Promise<boolean>;
|
|
35
40
|
}
|
|
36
41
|
//# sourceMappingURL=RNAppZungCodePushModuleSpec.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RNAppZungCodePushModuleSpec.d.ts","sourceRoot":"","sources":["../../../../../src/internals/RNAppZungCodePushModuleSpec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,KAAK,EAA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,YAAY,GAAG,IAAI,CAAC;IACvD,wBAAwB,CAAC,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;IAE3D,qBAAqB,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAErD,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAClD,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEtD,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,mBAAmB,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAExC,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5D,0BAA0B,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;CAChD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Package } from 'code-push/script/acquisition-sdk';
|
|
2
1
|
import type { DownloadProgressCallback, LocalPackage, RemotePackage } from '../types';
|
|
2
|
+
import type { ApiSdkDownloadReportPackageInfo } from './CodePushApiSdk.types';
|
|
3
3
|
export declare class RemotePackageImpl implements RemotePackage {
|
|
4
|
-
constructor(remotePackageData: Omit<RemotePackage, 'download'>, reportStatusDownload
|
|
4
|
+
constructor(remotePackageData: Omit<RemotePackage, 'download'>, reportStatusDownload: (downloadedPackage: ApiSdkDownloadReportPackageInfo) => Promise<void>);
|
|
5
5
|
download: (downloadProgressCallback?: DownloadProgressCallback) => Promise<LocalPackage>;
|
|
6
6
|
appVersion: string;
|
|
7
7
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemotePackageImplementation.d.ts","sourceRoot":"","sources":["../../../../../src/internals/RemotePackageImplementation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RemotePackageImplementation.d.ts","sourceRoot":"","sources":["../../../../../src/internals/RemotePackageImplementation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACtF,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAM9E,qBAAa,iBAAkB,YAAW,aAAa;gBAEnD,iBAAiB,EAAE,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC,EAClD,oBAAoB,EAAE,CAAC,iBAAiB,EAAE,+BAA+B,KAAK,OAAO,CAAC,IAAI,CAAC;IA6C7F,QAAQ,EAAE,CAAC,wBAAwB,CAAC,EAAE,wBAAwB,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;IAEzF,UAAU,EAAG,MAAM,CAAC;IACpB,WAAW,EAAG,MAAM,CAAC;IACrB,WAAW,EAAG,MAAM,CAAC;IACrB,aAAa,EAAG,OAAO,CAAC;IACxB,UAAU,EAAG,OAAO,CAAC;IACrB,WAAW,EAAG,OAAO,CAAC;IACtB,SAAS,UAAS;IAClB,KAAK,EAAG,MAAM,CAAC;IACf,WAAW,EAAG,MAAM,CAAC;IACrB,WAAW,EAAG,MAAM,CAAC;IACrB,sBAAsB,EAAG,MAAM,CAAC;CACjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConfiguration.d.ts","sourceRoot":"","sources":["../../../../../src/internals/getConfiguration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAI7C,wBAAsB,gBAAgB,2BAMrC"}
|
|
1
|
+
{"version":3,"file":"getConfiguration.d.ts","sourceRoot":"","sources":["../../../../../src/internals/getConfiguration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAI7C,wBAAsB,gBAAgB,2BAMrC;AAED,wBAAsB,yBAAyB,kBAE9C"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { LogLevel } from '../enums/LogLevel.enum';
|
|
2
|
+
export type LoggerFunction = (level: LogLevel, message: string) => void;
|
|
3
|
+
/**
|
|
4
|
+
* Set a custom logger function to handle all CodePush logs
|
|
5
|
+
*
|
|
6
|
+
* @param logger A function that takes a log level and message and handles the logging
|
|
7
|
+
* @example
|
|
8
|
+
* ```
|
|
9
|
+
* import { setLogger, LogLevel } from '@appzung/react-native-code-push';
|
|
10
|
+
*
|
|
11
|
+
* // Custom logger that sends critical logs to a crash reporting service
|
|
12
|
+
* setLogger((level, message) => {
|
|
13
|
+
* // Always log to console
|
|
14
|
+
* console.log(`[CodePush] ${message}`);
|
|
15
|
+
*
|
|
16
|
+
* // Send error logs to crash reporting
|
|
17
|
+
* if (level === LogLevel.ERROR) {
|
|
18
|
+
* MyCrashReportingService.log(`CodePush error: ${message}`);
|
|
19
|
+
* }
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare const setLogger: (logger: LoggerFunction) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Get the current logger function
|
|
26
|
+
* @returns The current logger function
|
|
27
|
+
*/
|
|
28
|
+
export declare const getLogger: () => LoggerFunction;
|
|
29
|
+
/**
|
|
30
|
+
* Reset the logger to the default implementation
|
|
31
|
+
*/
|
|
32
|
+
export declare const resetLogger: () => void;
|
|
33
|
+
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../../src/internals/logger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAEvD,MAAM,MAAM,cAAc,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;AAQxE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,SAAS,GAAI,QAAQ,cAAc,KAAG,IAElD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS,QAAO,cAA+B,CAAC;AAE7D;;GAEG;AACH,eAAO,MAAM,WAAW,QAAO,IAE9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shouldUpdateBeIgnored.d.ts","sourceRoot":"","sources":["../../../../../src/internals/shouldUpdateBeIgnored.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shouldUpdateBeIgnored.d.ts","sourceRoot":"","sources":["../../../../../src/internals/shouldUpdateBeIgnored.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAwB,WAAW,EAAE,MAAM,UAAU,CAAC;AAuCjF,wBAAsB,qBAAqB,CAAC,aAAa,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,EAAE,WAAW,EAAE,WAAW,oBAoCpH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export interface Configuration extends
|
|
1
|
+
import type { ApiSdkConfiguration } from './CodePushApiSdk.types';
|
|
2
|
+
export interface Configuration extends ApiSdkConfiguration {
|
|
3
3
|
releaseChannelPublicId: string;
|
|
4
4
|
packageHash?: string;
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/internals/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/internals/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,WAAW,aAAc,SAAQ,mBAAmB;IACxD,sBAAsB,EAAE,MAAM,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,KAAK,qBAAqB,CAAC,CAAC,IAAI;KAC7B,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,QAAQ,GAAG,CAAC,GAAG,KAAK;CAClD,CAAC,MAAM,CAAC,CAAC,CAAC;AAEX,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,IAAI,IAAI,CAAC,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function fetchRetry(url: string, options?: FetchRetryOptions, attempt?: number): Promise<Response>;
|
|
2
|
+
interface FetchRetryOptions extends RequestInit {
|
|
3
|
+
maxRetries?: number;
|
|
4
|
+
initialBackoff?: number;
|
|
5
|
+
backoffMultiplier?: number;
|
|
6
|
+
maxRetryDelay?: number;
|
|
7
|
+
}
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=fetchRetry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchRetry.d.ts","sourceRoot":"","sources":["../../../../../../src/internals/utils/fetchRetry.ts"],"names":[],"mappings":"AAAA,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,iBAAsB,EAAE,OAAO,SAAI,GAAG,OAAO,CAAC,QAAQ,CAAC,CAwC7G;AAED,UAAU,iBAAkB,SAAQ,WAAW;IAC7C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../../../src/internals/utils/log.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../../../../src/internals/utils/log.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAK1D,wBAAgB,GAAG,CAAC,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAQ1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryStringify.d.ts","sourceRoot":"","sources":["../../../../../../src/internals/utils/queryStringify.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,MAAM,CAqBrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requestFetchAdapter.d.ts","sourceRoot":"","sources":["../../../../../../src/internals/utils/requestFetchAdapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAKpD,eAAO,MAAM,mBAAmB,EAAE,IAAI,CAAC,SA6BtC,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "11.0.0-
|
|
1
|
+
export declare const version = "11.0.0-rc10";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../../src/internals/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../../src/internals/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logLevel.d.ts","sourceRoot":"","sources":["../../../../src/logLevel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAIjD,eAAO,MAAM,WAAW,GAAI,OAAO,QAAQ,SAE1C,CAAC;AAEF,eAAO,MAAM,WAAW,gBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../src/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC5D,YAAY,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { StatusReport } from './types';
|
|
2
2
|
/**
|
|
3
|
+
* @function
|
|
4
|
+
*
|
|
3
5
|
* Notifies the CodePush runtime that an installed update is considered successful.
|
|
6
|
+
*
|
|
7
|
+
* If you are manually checking for and installing updates (i.e. not using the `sync` method to handle it all for you), then this method **MUST** be called; otherwise CodePush will treat the update as failed and rollback to the previous version when the app next restarts.
|
|
4
8
|
*/
|
|
5
9
|
export declare const notifyAppReady: () => Promise<void | StatusReport>;
|
|
6
10
|
//# sourceMappingURL=notifyAppReady.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifyAppReady.d.ts","sourceRoot":"","sources":["../../../../src/notifyAppReady.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notifyAppReady.d.ts","sourceRoot":"","sources":["../../../../src/notifyAppReady.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,oCAYvB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resets the client's unique ID. You may use this in some GDPR compliance scenarios. Note that this will create a new MAU if a new request is sent later.
|
|
3
|
+
*/
|
|
4
|
+
export declare const resetClientUniqueId: () => Promise<string>;
|
|
5
|
+
//# sourceMappingURL=resetClientUniqueId.d.ts.map
|